首页 > 解决方案 > 网络时间协议 V4 - 数据包中的扩展字段计数

问题描述

我正在学习网络时间协议,并大致通过了IETF的 RFC 5905 。

它指出,The packet format consists of three components: the header itself, one or more optional extension fields, and an optional message authentication code (MAC)从第 7.3 节开始,但似乎没有关于编码方案中这些可选扩展字段的计数。据我了解,如果没有此信息,则无法可靠地读取整个数据包,因为如果有任何扩展字段,总长度是未知的。

请任何人指出我错过或误解的内容。

标签: ntp

解决方案


推荐阅读