Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP部分的勘误 #1915

Closed
RuiGao98 opened this issue Feb 8, 2023 · 4 comments
Closed

HTTP部分的勘误 #1915

RuiGao98 opened this issue Feb 8, 2023 · 4 comments
Labels
enhancement New feature or request or suggestion

Comments

@RuiGao98
Copy link
Contributor

RuiGao98 commented Feb 8, 2023

1675862233(1)
HTTP是基于TCP还是UDP的?
HTTP3.0之前是基于TCP协议的,而HTTP3.0将弃用TCP,改用基于UDP的QUIC协议。
来源:https://zh.wikipedia.org/zh-tw/HTTP/3
https://datatracker.ietf.org/doc/rfc9114/

@Snailclimb
Copy link
Owner

1675862233(1) HTTP是基于TCP还是UDP的? HTTP3.0之前是基于TCP协议的,而HTTP3.0将弃用TCP,改用基于UDP的QUIC协议。 来源:https://zh.wikipedia.org/zh-tw/HTTP/3 https://datatracker.ietf.org/doc/rfc9114/

感谢补充完善👍

@Snailclimb Snailclimb added the enhancement New feature or request or suggestion label Feb 10, 2023
@zhiyiYo
Copy link

zhiyiYo commented Jul 5, 2023

另外,HTTP/2.0 需要经过经典的 TCP 三次握手过程(一般是 3 个 RTT)

这里有点疑惑,不应该是 1.5 个 RTT 吗

@Snailclimb
Copy link
Owner

另外,HTTP/2.0 需要经过经典的 TCP 三次握手过程(一般是 3 个 RTT)

这里有点疑惑,不应该是 1.5 个 RTT 吗

我描述的不太清楚,抱歉。

HTTP/2.0 需要经过经典的 TCP 三次握手过程(由于安全的 HTTP 连接建立还需要 TLS 握手,共需要大约 3 个 RTT)。由于 QUIC 协议的特性(TLS 1.3,TLS 1.3 除了支持 1 个 RTT 的握手,还支持 0 个 RTT 的握手)连接建立仅需 0-RTT 或者 1-RTT。这意味着 QUIC 在最佳情况下不需要任何的额外往返时间就可以建立新连接。

@zhiyiYo
Copy link

zhiyiYo commented Jul 7, 2023

感谢解答

@RuiGao98 RuiGao98 closed this as completed Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request or suggestion
Projects
None yet
Development

No branches or pull requests

3 participants