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

Day386:HTTP3.0为什么要使用UDP? #389

Open
qappleh opened this issue Aug 30, 2021 · 1 comment
Open

Day386:HTTP3.0为什么要使用UDP? #389

qappleh opened this issue Aug 30, 2021 · 1 comment

Comments

@qappleh
Copy link
Owner

qappleh commented Aug 30, 2021

No description provided.

@qappleh qappleh changed the title Day386:怎么实现一个v-model? Day386:HTTP3.0为什么要使用UDP? Aug 30, 2021
@qappleh
Copy link
Owner Author

qappleh commented Sep 6, 2021

我们单纯地看看TCP协议的不足和UDP的一些优点:

  • 基于TCP开发的设备和协议非常多,兼容困难

  • TCP协议栈是Linux内部的重要部分,修改和升级成本很大

  • UDP本身是无连接的、没有建链和拆链成本

  • UDP的数据包无队头阻塞问题

  • UDP改造成本小

从上面的对比可以知道,谷歌要想从TCP上进行改造升级绝非易事,但是UDP虽然没有TCP为了保证可靠连接而引发的问题,但是UDP本身不可靠,又不能直接用。

image

综合而知,谷歌决定在UDP基础上改造一个具备TCP协议优点的新协议也就顺理成章了,这个新协议就是QUIC协议(即http3.0)。

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

No branches or pull requests

1 participant