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

【Q442】http3 解决了什么问题 #450

Open
shfshanyue opened this issue Dec 18, 2020 · 3 comments
Open

【Q442】http3 解决了什么问题 #450

shfshanyue opened this issue Dec 18, 2020 · 3 comments
Labels

Comments

@shfshanyue
Copy link
Owner

No description provided.

@shfshanyue
Copy link
Owner Author

http3 基于 UDP 协议,这是与以前版本的 http 最大的不同,可以解决 http2 TCP 连接阻塞的问题。

@marsk6
Copy link

marsk6 commented Apr 21, 2022

我们都知道 UDP 不可靠,那么如何保证连接传输的可靠性

@kurodasense
Copy link

一个参考文献:https://www.cnblogs.com/wiesslibrary/p/16446553.html

  • TCP 为了保证可靠性,窗口左边向右滑动时的长度取决于已经确认的字节数。如果中间出现丢包,就算接收到了更大序号的 Segment,窗口也无法超过这个序列号。
  • 而QUIC通过 window_update 帧告诉对端自己可以接收的字节数,这样发送方就不会发送超过这个数量的数据,并且通过 BlockFrame 告诉对端由于流量控制被阻塞了,无法发送数据。因此就算此前有些 packet 没有接收到,它的滑动只取决于接收到的最大偏移字节数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants