freeCodeCamp/guide/chinese/network-engineering/udp-header/index.md

20 lines
849 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: UDP Header
localeTitle: UDP标头
---
## UDP头格式
用户数据报协议UDP是Internet协议IP套件中常用的协议之一以及TCP和ICMP。 UDP的定义功能是快速无连接协议。通过UDP标头可以促进这些功能。
UDP标头由以下四个字段组成
* 源端口16位 发送方计算机上用于UDP连接的端口也称为发送端口。当与发送者IP结合使用时它允许发送计算机创建多个独立的连接称为多路复用
* 目标端口16位 接收计算机上用于UDP连接的端口也称为接收端口。当与接收器IP结合时它允许多路复用。
* 长度16位 指定UDP标头和数据的长度。
* 校验和16位 用于错误检查标头和数据。可选的。
#### 更多信息: