HTTP/3:修订间差异

来自WHY42
Riguz留言 | 贡献
无编辑摘要
Riguz留言 | 贡献
第4行: 第4行:


= Overview =
= Overview =
== HTTP/2 vs HTTP/3
One of the main touted advantages of HTTP/3 is increased performance, specifically around fetching multiple objects simultaneously. With HTTP/2, any interruption (packet loss) in the TCP connection blocks all streams (Head of line blocking). Because HTTP/3 is UDP-based, if a packet gets dropped that only interrupts that one stream, not all of them.


In addition, HTTP/3 offers 0-RTT support, which means that subsequent connections can start up much faster by eliminating the TLS acknowledgement from the server when setting up the connection. This means the client can start requesting data much faster than with a full TLS negotiation, meaning the website starts loading earlier.<ref>https://blog.cloudflare.com/http-3-vs-http-2</ref>


HTTP2:
[[Image:HTTP2 packet loss.gif]]
HTTP3:
[[Image:HTTP3 packet loss.gif]]


[[Category:Network]]
[[Category:Network]]

2024年1月17日 (三) 11:03的版本

HTTP/3 is the third major version of the Hypertext Transfer Protocol used to exchange information on the World Wide Web, complementing the widely-deployed [HTTP/1.1] and [HTTP/2]. Unlike previous versions which relied on the well-established TCP (published in 1974), HTTP/3 uses [QUIC], a multiplexed transport protocol built on UDP. On 6 June 2022, IETF published HTTP/3 as a Proposed Standard in RFC 9114.

Overview

== HTTP/2 vs HTTP/3 One of the main touted advantages of HTTP/3 is increased performance, specifically around fetching multiple objects simultaneously. With HTTP/2, any interruption (packet loss) in the TCP connection blocks all streams (Head of line blocking). Because HTTP/3 is UDP-based, if a packet gets dropped that only interrupts that one stream, not all of them.

In addition, HTTP/3 offers 0-RTT support, which means that subsequent connections can start up much faster by eliminating the TLS acknowledgement from the server when setting up the connection. This means the client can start requesting data much faster than with a full TLS negotiation, meaning the website starts loading earlier.[1]

HTTP2:

HTTP3: