首页 > 其他分享 >Wireshark - HTTP Continuation——就是大包分块传输

Wireshark - HTTP Continuation——就是大包分块传输

时间:2023-06-08 13:06:23浏览次数:55  
标签:HTTP Continuation packets server Stage1 example Wireshark

Wireshark - HTTP Continuation



by Jeremy Canfield  |   Updated: March 9th, 2020   |   Wireshark articles


Let's take an example where there is a file named Stage1.php on the www.example.com web server, and Stage1.php contains the phrase Hello World.

Wireshark - HTTP Continuation——就是大包分块传输_网络

 

When a client requets www.example.com/Stage1.php, the server will be able to transmit Stage1.php to the client in a single packet. In this example, the length of the HTTP/1.1 200 OK response packet is 230 bytes.

Wireshark - HTTP Continuation——就是大包分块传输_Wireshark_02

 

Now let's consider the scenario where Stage1.php includes a Click here link, and the link contains a very large file. In this example, the Click here link downloads a 2.6 GB .iso file.

Wireshark - HTTP Continuation——就是大包分块传输_网络_03

 

Packets typically cannot exceed 1314 bytes. If a file is greater than 1314 bytes, numerous packets will need to be transmitted from the server to the client to produce the file. When numerous packets for a single file are transmitted, Wireshark will display HTTP Continuation or TCP segment of a reassembled PDU packets. As the name suggests, HTTP Continuation packets continue to send the data from the web server to the client. In this example, over a million packets were needed to download the 2.6 GB .iso file. 

Wireshark - HTTP Continuation——就是大包分块传输_网络_04

 

A high number of HTTP Continuation packets can cause latency. However, a high number of HTTP Continuation packets do not guarantee latency. There are some factors to consider, such as network throughput, the amount of memory and CPU available to the server, and the quality of the application that is used to produce the GET request. 

For example, if HTTP Continuation packets are being sent from the server to the client, and then a new HTTP GET request for a web page is sent to the server while the server is currently sending HTTP Continuation packets, the server may be delayed in responding to the GET request.

In this example, Stage1.php was requested 15 seconds into the capture, which began the big spike, and then Stage1.php completed transmission 35 seconds into the capture, which is where the big spike levels off. It took the web server 20 seconds to send all of the HTTP Continuation packets to the client. Since the server was busy serving HTTP Continuation packets for 20 seconds, the server was delayed in responding to other HTTP GET requests.

Wireshark - HTTP Continuation——就是大包分块传输_Wireshark_05

标签:HTTP,Continuation,packets,server,Stage1,example,Wireshark
From: https://blog.51cto.com/u_11908275/6439007

相关文章

  • 拨号获取IP和HTTP代理有什么区别
    在网络通信中,IP地址和HTTP代理都扮演着非常重要的角色。而拨号获取IP与HTTP代理虽然都可以隐藏用户的真实IP地址,但是它们本质上有着很大的区别。下面我们来详细介绍一下他们的区别。一、拨号获取IP拨号获取IP,是指用户通过拨打互联网服务提供商(ISP)的电话线路,建立网络连......
  • 深入了解 HTTP 请求和响应、表单处理和验证、URL 路由和重定向、Web 服务和 API 开发,
    在Web开发中,了解HTTP请求和响应、表单处理和验证、URL路由和重定向、Web服务和API开发,以及PHP模板引擎和视图是非常重要的。本文将深入探讨这些概念,并提供相关的代码示例。1.HTTP请求和响应HTTP(超文本传输协议)是用于在客户端和服务器之间传输数据的协议。在Web开发中......
  • requests:一个比net/http包更简洁、高效的开源包
    今天给大家推荐一个高效的HTTP的请求包:carlmjohnson/requests。项目地址是:https://github.com/carlmjohnson/requests该包诞生的背景作者在自己的博客中描述了自己为什么写这个request包。作者这样描述go的net/http包:Go的net/http包虽然功能强大、用途也广泛,但要想正确地使用请......
  • 每个 ASP.NET 开发人员都应该知道的 IIS 管道中的 HTTP 请求生命周期事件
    原文:https://www.dotnetcurry.com/aspnet/747/http-request-lifecycle-events-iis-pipeline-aspnet......
  • harbor配置https
    1、首先需要准备好ssl证书,没有安全的ssl证书的话,可以用openssl配置harbor自签名证书生成CA证书私钥:opensslgenrsa-outca.key40962、生成CA证书(有两种配置,域名或者IP两种方式,下边分别说明)域名方式:opensslreq-x509-new-nodes-sha512-days3650\-subj"/C=CN/ST=Beijing......
  • Http详解-中
    转自:https://juejin.cn/post/71495489890067415123.进阶3.1实体数据3.1.1数据类型MIMEtypeHTTP是应用层的协议,数据到达客户端之后,还必须要告诉上层应用这是什么数据才行,否则上层应用就无法处理。早在HTTP协议诞生之前就已经有了针对这种问题的解决方案,不过它是用在电子......
  • 一文搞懂TCP、HTTP、Socket、Socket连接池
    一文搞懂TCP、HTTP、Socket、Socket连接池架构师社区 2023-06-0711:40 发表于北京作者:数澜科技来源:www.jianshu.com/p/e47a766e03da前言:作为一名开发人员我们经常会听到HTTP协议、TCP/IP协议、UDP协议、Socket、Socket长连接、Socket连接池等字眼,然而它们之间的关系......
  • Wireshark抓包分析TCP协议
     版权声明:本文为作者原创文章,可以随意转载,但必须在明确位置表明出处!!!之前有一篇文章介绍了http协议「初识http协议」, http协议协议是基于tcp协议的,所以作者觉得有必要针对tcp协议做一个介绍,希望各位读者能够静下心来认真阅读,也可以自己去看看TCP/IP协议详解这本书,一定要让自己成......
  • 【HarmonyOS】【ArkTS】如何使用HTTP网络请求获取动态数据刷新UI界面
    【关键字】HttpRequest、ArkTS、网络数据请求、@ohos.net.http【前言】在使用ArkTS开发HarmonyOS应用时,需要调用HTTP网络请求 @ohos.net.http 动态获取数据,进行UI列表刷新,这想必是应用开发最常见的功能。但是根据官网网络请求的示例代码进行功能开发时,封装方法进行HTTP请求后,返回......
  • 一文搞懂TCP、HTTP、Socket、Socket连接池
    前言:作为一名开发人员我们经常会听到HTTP协议、TCP/IP协议、UDP协议、Socket、Socket长连接、Socket连接池等字眼,然而它们之间的关系、区别及原理并不是所有人都能理解清楚,这篇文章就从网络协议基础开始到Socket连接池,一步一步解释他们之间的关系。七层网络模型首先从网络通信的......