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

简述UDP、TCP的异同点 #5

Open
lxinr opened this issue Apr 19, 2019 · 0 comments
Open

简述UDP、TCP的异同点 #5

lxinr opened this issue Apr 19, 2019 · 0 comments

Comments

@lxinr
Copy link
Owner

lxinr commented Apr 19, 2019

TCP => 传输控制协议(Transmission Control Protocol),是一种面向连接、可靠、基字节流的传输层协议。

UDP => 用户数据报协议(User Datagram Protocol),又称用户数据包协议)是一个简单的面向数据报的传输层协议

两者之间的异同

相同点

1、都属于TCP/IP协议
2、都属于传输层

不同点

1、TCP基于连接,UDP不是

2、UDP对系统资源要求更低(UDP要8字节,TCP至少20个字节)

3、UDP协议结构更加简单

4、TCP的数据传输保证可靠,UDP则不一定

5、TCP保证数据顺序,UDP不保证

6、UDP速度比较快

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