No relevant resource is found in the selected language.
This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
This document describes the configurations of Device Management, including device status query, hardware management, Stack, SVF, cloud-based management, PoE, monitoring interface, OPS, energy-saving management, information center, fault management, NTP, synchronous ethernet, PTP.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Encapsulation Mode for 1588v2 Messages
Configuring the Encapsulation Mode for 1588v2 Messages
Context
You can configure MAC or UDP encapsulation for 1588v2 messages based on the link type used for 1588v2 message transmission:
MAC encapsulation: applies to Layer 2 link transmission.
UDP encapsulation: applies to Layer 3 link transmission.
By default, the system uses multicast MAC encapsulation.
Devices that perform clock synchronization through 1588v2 messages must use the same encapsulation mode of 1588v2 messages. Otherwise, the devices cannot communicate.
You can configure unicast or multicast encapsulation for 1588v2 messages based on the topology of the master and slave devices:
Unicast encapsulation: applies to point-to-point clock signal synchronization. This mode is used when a single device needs to synchronize with the master clock. If the destination MAC address or IP address of 1588v2 messages to be sent is set
to a unicast address, 1588v2 messages are encapsulated in unicast encapsulation mode.
Multicast encapsulation: applies to point-to-multipoint clock signal synchronization. By default, devices that reside in the same PTP domain and use the same delay measurement mechanism join the same multicast group. Therefore, when multicast encapsulation
is used, the destination MAC address or IP address does not need to be configured for 1588v2 messages.
Procedure
Configure the MAC encapsulation mode.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
Run ptp mac-egressdestination-macdestination-mac
The 1588v2 messages to be sent from the interface are encapsulated in MAC encapsulation mode, and the destination MAC address is configured.
By default, the multicast destination MAC address is 011B-1900-0000 if the delay request-response
mechanism is used; the multicast destination MAC address is 0180-C200-000E if the Pdelay mechanism is used.
(Optional) Run ptp mac-egressvlanvlan-id [ prioritypriority-value ]
The VLAN ID and 802.1p priority are configured for MAC-encapsulated 1588v2 messages.
Configure the UDP encapsulation mode.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
Run ptp udp-egresssource-ipsource-ip [ destination-ipdestination-ip ]
The 1588v2 messages to be sent from the interface are encapsulated in UDP encapsulation mode, and the source and destination IP addresses are configured.
By default, if UDP encapsulation is configured, the destination IP address is multicast
address 224.0.1.129 when the delay request-response mechanism is used; the destination IP address is multicast address 224.0.0.107 when the Pdelay mechanism is used.
(Optional) Run ptp udp-egressdestination-macdestination-mac
The next-hop MAC address of 1588v2 messages is configured.
(Optional) Run ptp udp-egresssource-ipsource-ip [ dscpdscp ]
The DSCP priority is configured for UDP-encapsulated 1588v2 messages.
(Optional) Run ptp udp-egresssource-ipsource-ipvlanvlan-id [ prioritypriority ]
The VLAN ID and 802.1p priority are configured for UDP-encapsulated 1588v2 messages.