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

20 篇文章 36 订阅
7 篇文章 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字段,此字段与登录验证的用户名密码相关。

  • 8
    点赞
  • 42
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

之墨_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值