Wireshark HTTP实验—Wireshark Lab: HTTP v7.0(计算机网络自顶向下第七版)

Posted 之墨_

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wireshark HTTP实验—Wireshark Lab: HTTP v7.0(计算机网络自顶向下第七版)相关的知识,希望对你有一定的参考价值。

Wireshark Lab: TCP v7.0

1. The Basic HTTP GET/response interaction

  1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the server running?

    浏览器与服务器的版本均为 H T T P / 1.1 HTTP/1.1 HTTP/1.1

  2. What languages (if any) does your browser indicate that it can accept to the server?

能接受简体中文以及英文。

  1. What is the IP address of your computer? Of the gaia.cs.umass.edu server?

    根据 G E T GET GET消息的 D e s t i n a t i o n Destination Destination可知 g a i a . c s . u m a s s . e d u gaia.cs.umass.edu gaia.cs.umass.edu I P IP IP地址为 128.119.245.12 128.119.245.12 128.119.245.12

    根据 O K OK OK消息的 S o u r c e Source Source可知本机 I P IP IP地址为 114.214.246.244 114.214.246.244 114.214.246.244

  2. What is the status code returned from the server to your browser?

    返回 s t a t u s   c o d e = 200 status\\ code = 200 status code=200,正常状态。

  3. When was the HTML file that you are retrieving last modified at the server?

    上次修改时间为 2022 2022 2022 9 9 9 14 14 14日,星期三, 5 5 5 59 59 59 01 01 01秒。

  4. How many bytes of content are being returned to your browser?

    内容大小为 128 b y t e s 128bytes 128bytes

  5. By inspecting the raw data in the packet content window, do you see any headers within the data that are not displayed in the packet-listing window? If so, name one.

    查看包信息与列表,没有找到未出现的报头。

2.The HTTP CONDITIONAL GET/response interaction

  1. Inspect the contents of the first HTTP GET request from your browser to the server. Do you see an “IF-MODIFIED-SINCE” line in the HTTP GET?

    查看 G E T GET GET报文,未找到 I F − M O D I F I E D − S I N C E IF-MODIFIED-SINCE IFMODIFIEDSINCE

  2. Inspect the contents of the server response. Did the server explicitly return the contents of the file? How can you tell?

    在本机浏览器缓存已清空的情况下,向服务器发送第一个 G E T GET GET请求后,服务器的响应信息包含文件具体内容。

    但立即发送第二个 G E T GET GET请求,服务器回复的内容中不含 H e a d e r Header Header L i n e − b a s e d   t e x t   d a t a Line-based\\ text\\ data Linebased text data的信息,即服务器并未返回具体的文件内容。因为在第一次访问时浏览器目标网站成功后,浏览器已有了网页内容的缓存,在下一次访问时,当网站内容尚未更新,便会直接从浏览器缓存中获取,因此无需服务器返回具体的文件内容。

  3. 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?

H y p e r t e x t   T r a n s f e r   P r o t o c o l Hypertext\\ Transfer\\ Protocol Hypertext Transfer Protocol中找到了 I F − M O D I F I E D − S I N C E IF-MODIFIED-SINCE IFMODIFIEDSINCE消息,包含的信息为上一次服务器响应信息的更改时间。

  1. 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.

    s t a t u s   c o d e = 304 , p h r a s e = N o t   M o d i f i e d status\\ code = 304, phrase = Not\\ Modified status code=304,phrase=Not Modified,表示未发生改变,直接调用缓存中已有的文本。利用缓存可以减轻服务器压力,提高效率。

3.Retrieving Long Documents

  1. How many HTTP GET request messages did your browser send? Which packet number in the trace contains the GET message for the Bill or Rights?

    浏览器仅发送了一个 H T T P   G E T HTTP\\ GET HTTP GET请求消息,序号为 213 213 213

  2. Which packet number in the trace contains the status code and phrase associated with the response to the HTTP GET request?

    序号为 238 238 238的响应报文包含了响应 H T T P   G E T HTTP\\ GET HTTP GET请求的状态码和短语。

  3. What is the status code and phrase in the response?

    $ status\\ code=200,phrase=OK$,表示正常响应状态。

  4. How many data-containing TCP segments were needed to carry the single HTTP response and the text of the Bill of Rights?

需要4个 T C P TCP TCP报文段。

4.html Documents with Embedded Objects

  1. How many HTTP GET request messages did your browser send? To which Internet addresses were these GET requests sent?

    发送了 3 3 3个服务器请求,消息中的 F u l l   r e q u e s t   U R I Full\\ request\\ URI Full request URI就是请求的网站。

  2. Can you tell whether your browser downloaded the two images serially, or whether they were downloaded from the two web sites in parallel? Explain.

在第一张图片下载请求得到响应后,才发出下载第二张图片的请求,所以图片下载是串行的。

5 HTTP Authentication

  1. What is the server’s response (status code and phrase) in response to the initia HTTP GET message from your browser?

$response :\\  status\\ code = 401,phrase=Unauthorized$,表示未经授权,因为此页面需要登录认证。
  1. When your browser’s sends the HTTP GET message for the second time, what new field is included in the HTTP GET message.

新增了 A u t h o r i z a t i o n Authorization Authorization字段,此字段与登录验证的用户名密码相关。

以上是关于Wireshark HTTP实验—Wireshark Lab: HTTP v7.0(计算机网络自顶向下第七版)的主要内容,如果未能解决你的问题,请参考以下文章

分析网络流量工具

java怎么解析Wireshark抓包文件

wireshark的配置

Wireshark安装使用及报文分析(图文详解)

使用Wireshark分析-以太网帧与ARP协议-IP协议-ICMP-UDP协议-TCP协议-协议HTTP-DNS协议

Wireshark HTTP实验—Wireshark Lab: HTTP v7.0(计算机网络自顶向下第七版)