We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 应用服务还是 UDP 应用服务:
每个网络通信套接字(socket)都由以下四元组唯一标识:
操作系统通过传输层协议类型区分同一端口号属于 TCP 还是 UDP。
bind
当网络数据包到达服务器时:
应用服务是否为 TCP 或 UDP,完全取决于其在绑定端口时指定的协议类型,而区分的关键在于操作系统管理的协议类型和端口号表。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
操作系统和网络协议栈通过以下方式区分端口上运行的是 TCP 应用服务还是 UDP 应用服务:
1. 协议标识
每个网络通信套接字(socket)都由以下四元组唯一标识:
操作系统通过传输层协议类型区分同一端口号属于 TCP 还是 UDP。
2. 套接字绑定
bind
)绑定某个端口,并显式指定是使用 TCP 或 UDP。3. 数据包头信息
当网络数据包到达服务器时:
4. 应用层的处理
总结
应用服务是否为 TCP 或 UDP,完全取决于其在绑定端口时指定的协议类型,而区分的关键在于操作系统管理的协议类型和端口号表。
The text was updated successfully, but these errors were encountered: