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