The ptp udp-egress command configures the UDP encapsulation parameters for 1588v2 packets to be sent by an interface.
The undo ptp udp-egress destination-mac command restores the default MAC encapsulation mode.
The undo ptp udp-egress command restores the default UDP encapsulation settings.
By default, 1588v2 packets are encapsulated in UDP multicast mode.
Parameter | Description | Value |
---|---|---|
source-ip source-ip |
Specifies a source IP address for UDP-encapsulated 1588v2 packets. |
The value is an IP address. |
destination-ip destination-ip |
Specifies a destination IP address for UDP 1588v2 packets. |
The value is an IP address. |
dscp dscp |
Specifies a DSCP value for UDP-encapsulated 1588v2 packets. |
The value is an integer ranging from 0 to 63. The default value is 56. |
vlan vlan-id |
Specifies a VLAN ID for sent and received packets. |
The value is an integer ranging from 1 to 4094. |
priority priority-value |
Specifies the priority value for VLAN encapsulation packets. |
The value is an integer ranging from 0 to 7. The default value is 7, indicating the highest priority. |
destination-mac destination-mac |
Specifies a destination MAC address for UDP-encapsulated 1588v2 packets. |
The value is in the format of H-H-H. Each H indicates a 4-digit hexadecimal number. |
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: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.