1588v2 packets can be encapsulated into Layer 2 or Layer 3 packets. You can configure an encapsulation mode for 1588v2 packets based on the actual network conditions, as well as the destination addresses and transmission priority for the 1588v2 packets.
Prerequisites
Before configuring a 1588v2 packet encapsulation mode, check the link type used for 1588v2 packet transmission.
- For the 1588v2 packets transmitted over a Layer 2 link, configure the MAC encapsulation mode.
- For the 1588v2 packets transmitted over a Layer 3 link, configure the UDP encapsulation mode.
Context
You can encapsulate 1588v2 messages into Layer 2 and Layer 3 packets and set the destination address and transmission priority.
Perform the following steps on each 1588v2 device:
Procedure
- Configure the MAC encapsulation mode.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run ptp mac-egress { destination-mac destination-mac | vlan vlan-id [ priority priority-value ] }The MAC encapsulation mode is configured for 1588v2 packets to be sent from the interface, and a destination MAC address is configured.
For unicast MAC encapsulation
Run this command to specify the destination MAC address for the 1588v2 packets to be sent from the interface.
For multicast MAC encapsulation
A default multicast destination MAC address is adopted, which means that no extra configuration is required. Default multicast destination MAC addresses for different delay measurement mechanisms For details, see the following table.
Table 1 Default multicast destination MAC addresses for different delay measurement mechanismsDelay Measurement Mechanism
|
MAC Address
|
Non-peer delay measurement mechanism
|
01-1B-19-00-00-00
|
Peer delay measurement mechanism
|
01-80-C2-00-00-0E
|
If no unicast destination MAC address is specified, the interface uses the multicast destination MAC address by default.
- Run ptp mac-egress vlan vlan-id [ priority priority ]
A VLAN ID and 802.1p value are set.
1588v2 services require higher priority than other services. A high transmission priority minimizes the delay or congestion impact on clock signal recovery. Using the default highest priority is recommended.
- Run commit
The configuration is committed.
- Configure the UDP encapsulation mode.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] The UDP encapsulation mode is specified for the 1588v2 packets to be sent by the interface and the source and destination IP addresses of 1588v2 packets are configured.
For UDP unicast encapsulation:
Specify a destination IP address for unicast encapsulation.
For UDP multicast encapsulation:
Multicast 1588v2 packets have a default multicast destination IP address. Therefore, the
destination-ip destination-ip parameter does not need to be specified. The multicast destination IP address used by UDP encapsulation varies according to the delay measurement mechanism. For details, see the following table.
Table 2 Multicast destination IP addresses used for UDP encapsulation in different delay measurement mechanismsDelay Measurement Mechanism
|
IP Address
|
Non-peer delay measurement mechanism
|
224.0.1.129
|
Peer delay measurement mechanism
|
224.0.0.107
|
If the destination-ip destination-ip parameter is not specified, the multicast IP address is used by default.
- Run ptp udp-egress destination-mac destination-mac
A next-hop MAC address is specified for the 1588v2 packets to be sent from the interface.
- Run ptp udp-egress source-ip source-ip [ dscp dscp ]
A DSCP value is set for the UDP 1588v2 packets to be sent from the interface.
- Run ptp udp-egress source-ip source-ip vlan vlan-id [ priority priority ]
A VLAN ID and a priority value are set for 1588v2 packets.
1588v2 services require a higher DSCP value and a higher priority value than other services. A high transmission priority minimizes the delay or congestion impact on clock signal recovery.
- Run commit
The configuration is committed.