Skip to main content

Crate rtime_ptp

Crate rtime_ptp 

Source
Expand description

PTP / IEEE 1588 (Precision Time Protocol) implementation for the rTime time synchronization daemon.

Covers the message codec, the Best Master Clock Algorithm (BMCA), the datasets that describe a PTP port and clock, and the end-to-end delay computation used to derive offset from Sync/Follow_Up/Delay_Req/Delay_Resp exchanges.

§Modules

  • message — PTP message header and body codec.
  • announceAnnounce message handling.
  • bmca — Best Master Clock Algorithm (dataset comparison and master selection).
  • dataset — default/current/parent/time-properties datasets.
  • delay — end-to-end delay and offset computation.
  • port — PTP port state machine.
  • tlv — TLV (type-length-value) extension encoding.

Modules§

announce
Foreign master table for tracking announce messages (IEEE 1588-2019 Section 9.3.2.4).
bmca
Best Master Clock Algorithm (BMCA) per IEEE 1588-2019 Section 9.3.
dataset
PTP datasets per IEEE 1588-2019 Section 8.2.
delay
End-to-end (E2E) delay measurement per IEEE 1588-2019 Section 11.3.
message
port
PTP port state machine (IEEE 1588-2019 Section 9.2).
tlv
Type-Length-Value (TLV) parsing for PTP messages (IEEE 1588-2019 Section 14).