IEEE 802.1AS 属于数据链路层协议,主要用于时钟同步,其报文通常包含一些关键的字段和信息,例如同步消息的类型、时间戳、源标识符等,以实现精确的时钟同步。
所有 PTP 消息的通用头格式如 Table 10 - 7 所示
![]()
包含 majorSdoId、minorVersionPTP、versionPTP、messageLength、domainNumber、minorSdoId、flags、correctionField、messageTypeSpecific、sourcePortIdentity、sequenceId、controlField 和 logMessageInterval 等字段。
![]()
PTP 消息概述:PTP 消息包括 Announce(通告)和 Signaling(信令)等,每个消息都有头、体和后缀(如果有),后缀包含一个或多个 TLV(类型、长度、值)
- Announce 消息Body段必须遵守表10-11:
- Signaling 消息格式:
- 主体字段:如 Table 10 - 13 所示,包含 header、targetPortIdentity、message interval request TLV、gPTP - capable TLV 或 gPTP - capable message interval request TLV 等字段。
- 消息间隔请求 TLV:定义在 10.6.4.3,包含 tlvType、lengthField、organizationId、organizationSubType、logLinkDelayInterval、logTimeSyncInterval、logAnnounceInterval、flags 和 reserved 等字段。
- gPTP - capable TLV:定义在 10.6.4.4,包含 tlvType、lengthField、organizationId、organizationSubType、logGptpCapableMessageInterval 和 flags 等字段。
- gPTP - capable 消息间隔请求 TLV:定义在 10.6.4.5,包含 tlvType、lengthField、organizationId、organizationSubType、logGptpCapableMessageInterval 和 reserved 等字段。
![]()
此外,文档还规定了消息中各字段的具体含义、取值范围以及相关的