计算机网络实验lab1
也可以保存数据。
运行Ethereal/wireshark
选择合适的接口
运行时,如果没有获取到报文, 选择工具栏Capture->Start, 显示“Ethereal: Capture Options” 窗口:
使用Wireshark / Ethereal
1. The Basic HTTP GET/response interaction 启动Web Browser 启动Ethereal,但不要capture,在display filter中输入http 等待一分钟,开始capture 在Web browser输入 /ethereal-labs/lab2-1.html 取回一个简单的HTML文件 停止capture。
具有Embeded 对象的HTML 文档
启动Web Browser,确定删除了浏览器的缓存内容 启动Ethereal,开始capture 在Web browser输入 某个URL,例如: 停止capture,在display filter 中输入http
分析报文,回答问题
分析报文,回答问题
8.Inspect the contents of the first HTTP GET request from your browser to the server. Do you see an "IFMODIFIED-SINCE" line in the HTTP GET? 9. Inspect the contents of the server response. Did the server explicitly return the contents of the file? How can you tell? 10. Now inspect the contents of the second HTTP GET request from your browser to the server. Do you see an "IF-MODIFIED-SINCE:" line in the HTTP GET? If so, what information follows the "IF-MODIFIED-SINCE:" header? 11. What is the HTTP status code and phrase returned from the server in response to this second HTTP GET? Did the server explicitly return the contents of the file? Explain.
观察FTP协议的交互
Telnet to a FTP server:几种方式
1. Start FTP and link to the server at the same time: ftp <hostname> 2. Start FTP first, then link to the server : ftp> open <hostname>|<ip-address> 3.利用telnet登录 telnet <hostname>|<ip-address> 21
网络技术基础实验 实验一
实验目的与内容
1. 熟悉实验室的基本网络结构 2.了解常用的网络报文分析工具 3. 理解并掌握HTTP协议的要点 4. 提交实验报告 5.观察FTP协议交互的过程
实验步骤
1.实验室的基本设备 PC终端 Hub(switch) Router 2.安装报文捕获与分析软件
安装 WinPcap & Wireshark / Ethereal之後
运行
开始获取数据 【capture】->【start】 Capture Filter:有选择的获取packets
Display Filter: 有选择的显示获取的packets
具体语法参见帮助
测试Wireshark/Ethereal
12.How many HTTP GET request messages were sent by your browser? To which Internet addresses were these GET requests sent?
观察POST命令
登录到某个网站,进行表单填写,提交。 观察POST命令 登录到某个网站,输入账号和密码,观察数据 的传输形式,是否有加密。
启动Web Browser 启动Wireshark/Ethereal,但不要capture,在 display filter中输入http 等待半分钟,开始capture 在Web browser输入某个URL 取回一个简单的HTML文件 停止capture。 观察
利用Ethereal分析HTTP协议
有条件的 HTTP GET
启动Web Browser,确定删除了浏览器的缓存内容 启动Ethereal,开始capture 在Web browser输入 某个URL,例如: 取回一个简单的HTML文件 在web browser中再次输入该地址,或者点击 refresh按钮 停止capture,在display filter 中输入http
安装winPcap
免费软件
在Windows平台上,选择使用WinPcap 2.3以后的 版本
安装Wireshark / Ethereal
免费软件,可运行于多种平台 资源代码公开,是一个Open Source项目,可以跟踪更新 使用Wireshark,动态地抓取、分析目前网络上的数据,
观察Http协议消息的交互过程
1. Telnet to your favorite Web server: telnet 80 Opens TCP connection to port 80 at 2. Type in a GET http request: GET /index.jsp HTTP/1.0 (或者其他文件) Hit carriage return twice, you send this minimal (but complete) GET request to http server 3.可以借助zoc_win_english.exe 完成远程信息交互
分析报文,回答问题
1.Is your browser running HTTP version 1.0 or 1.1? 2.What version of HTTP is the server running? 3.What languages (if any) does your browser indicate that it can accept to the server? 4.What is the IP address of your computer? Of the server? 5.What is the status code returned from the server to your browser? 6.When was the HTML file that you are retrieving last modified at the server? 7. How many bytes of content are being returned to your browser?