Configuring PTP transparent-clock mode
Use Precision Time Protocol (PTP) transparent-clock mode to measure the overall path delay for packets in a network to improve the time precision. There are two transparent-clock modes:
- End-to-end measures the path delay for the entire path
- Peer-to-peer measures the path delay between each pair of nodes
The PTP implementation in FortiSwitchOS is based on the following:
- PTP profile supported: IEEE 1588v2 (default)
- Sync message: One step (interoperable with the two-step Sync message)
- Network protocol: IEEE 802.3 (EtherType 0x88F7), UDP IPv4, and UDP IPv6 (all accepted; not configurable)
- Peer delay link measurement: The egress link delay fixed value is based on the link speed.
Use the following steps to configure PTP transparent-clock mode:
- Configure the global PTP settings.
By default, PTP is disabled. - Enable the PTP policy.
By default, the PTP policy is disabled. - Apply the PTP policy to a port.
To configure the global PTP settings:
config switch ptp settings
set mode {disable | transparent-e2e | transparent-p2p}
end
To enable the PTP policy:
config switch ptp policy
edit {default | <policy_name>}
set status {enable | disable}
next
end
To apply the PTP policy to a port:
config switch interface
edit <port_name>
set ptp-policy {default | <policy_name>}
next
end
For example:
config switch ptp settings
set mode transparent-e2e
end
config switch ptp policy
edit default
set status enable
next
end
config switch interface
edit port12
set ptp-policy default
next
end