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

TCP VS UDP #10

Open
AILINGANGEL opened this issue May 27, 2019 · 0 comments
Open

TCP VS UDP #10

AILINGANGEL opened this issue May 27, 2019 · 0 comments

Comments

@AILINGANGEL
Copy link
Owner

TCP

  • 面向连接的可靠的数据传输服务
  • 拥塞控制保证可靠的数据传输
  • 首部20个字节

UDP

  • 无连接的,尽最大努力的数据传输服务(不保证数据传输的可靠性)
  • 没有拥塞控制(网络阻塞的时候源服务器不会减低发送数据数据的速率),有利于实时的应用,比如直播
  • 支持一对一,一对多,多对一以及多对多的交互通信
  • 首部只需要8个字节
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant