Usage Scenario
You can encapsulate 1588v2 messages into Layer 2 and Layer 3 packets and set the destination address and transmission priority.
An encapsulation mode depends on a specific link type:
- Layer 2 links: The ptp mac-egress command configures the MAC encapsulation mode.
- Layer 3 links: The undo ptp udp-egress command configures the UDP encapsulation mode.
The multicast MAC encapsulation mode is used by default. Specify a destination IP address as needed:
- Specify a destination IP address if unicast encapsulation mode is used.
- Use a default destination IP address if multicast UDP encapsulation is used. The addresses 224.0.1.129 (for all except peer delay measurement mechanisms) and 224.0.0.107 (for peer delay measurement mechanism) are default multicast IP addresses when specific delay measurement mechanisms are used.
This command applies only to 1588v2 and SMPTE-2059-2.
Prerequisites
A delay measurement mechanism has been specified using the ptp delay-mechanism { delay | pdelay } command.
1588v2 has been enabled on an interface using the
ptp enable command.
Precautions
The MAC encapsulation mode and UDP encapsulation mode are mutually exclusive. Before configuring the UDP encapsulation mode, you need to clear the configured MAC encapsulation mode.
If destination-mac and destination-ip are not configured, the encapsulation mode is multicast encapsulation.
For clock services, the higher the DSCP and priority, the higher the packet priority, the more timely the packet forwarding, and the less the impact of packet delay on the clock recovery performance. The default value is the maximum value. Generally, you do not need to change the value.
The GPS 3.0 module does not support this command.