- Table of Contents
-
- H3C S6116 Ultra-Low Latency Switch Series Command References-Release 671x-6W101
- 00-Preface
- 01-Interface forwarding commands
- 02-CLI commands
- 03-RBAC commands
- 04-Login management commands
- 05-FTP and TFTP commands
- 06-File system management commands
- 07-Configuration file management commands
- 08-Software upgrade commands
- 09-Device management commands
- 10-Tcl commands
- 11-Bulk interface commands
- 12-IP addressing commands
- 13-IPv6 basics commands
- 14-Static routing commands
- 15-IPv6 static routing commands
- 16-AAA commands
- 17-Public key management commands
- 18-SSH commands
- 19-System maintenance and debugging commands
- 20-NTP commands
- 21-SNMP commands
- 22-RMON commands
- 23-Event MIB commands
- 24-Information center commands
- 25-PTP commands
- 26-Network synchronization commands
- Related Documents
-
Title | Size | Download |
---|---|---|
25-PTP commands | 258.01 KB |
PTP commands
Only management Ethernet interfaces support PTP.
The PTP time might jump and get unlocked if it is synchronized with the NTP time or system time, both of which have a lower precision. As a best practice, use PTP for time synchronization when PTP is enabled on the device.
display ptp clock
Use display ptp clock to display PTP clock information.
Syntax
display ptp clock
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
The PTP clock information is display only after you have specified a PTP profile, a PTP mode, and a PTP domain.
Examples
# Display PTP clock information.
<Sysname> display ptp clock
PTP global state : Enabled
PTP profile : IEEE 1588 Version 2
PTP mode : BC
Slave only : No
Lock status : Locked
Clock ID : 000FE2-FFFE-FF0000
Clock type : Local
Clock domain : 0
Number of PTP ports : 1
Priority1 : 128
Priority2 : 128
Clock quality :
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset from master : -4 (ns)
Mean path delay : 101 (ns)
Steps removed : 1
Local clock time : Sun Jan 15 20:57:29 2019
Field |
Description |
PTP global state |
Whether PTP is enabled globally: · Enabled. · Disabled. |
PTP profile |
PTP standard: · IEEE 1588 version 2. · IEEE 802.1AS. · SMPTE ST 2059-2. · AES67-2015. |
PTP mode |
Clock node type: · BC. · E2ETC. · E2ETC-OC. · OC. · P2PTC. · P2PTC-OC. |
Slave only |
Whether the OC operates in Slave only mode: · Yes. · No. |
Lock status |
Whether the PTP time is locked: · Locked. · Unlocked. |
Clock ID |
Clock ID for the device, which uniquely identifies a PTP device. |
Clock type |
Clock type of the device. The value is Local, indicating the local clock. |
Clock domain |
PTP domain where the device resides. |
Priority1 |
Priority 1 value for the device. |
Priority2 |
Priority 2 value for the device. |
Class |
Time class of the device. |
Accuracy |
Time accuracy of the device. |
Offset (log variance) |
Offset of the grandmaster clock. |
Offset from master |
Offset from the master clock node (parent clock node), in nanoseconds. N/A indicates that information for this field is not obtained. |
Mean path delay |
Mean path delay, in nanoseconds. N/A indicates that information for this field is not obtained. |
Steps removed |
Hops from the grandmaster to the local clock node. N/A indicates that information for this field is not obtained. |
display ptp corrections
Use display ptp corrections to display PTP corrections that have occurred on a subordinate port.
Syntax
display ptp corrections
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
The PTP corrections are displayed only when the following conditions are met:
· You have specified a PTP profile, PTP mode, and PTP domain for the device.
· The device has a subordinate port and has performed time or frequency synchronization through the port.
If the subordinate port is changed, the recorded information will be cleared.
Examples
# Display PTP corrections that have occurred on a subordinate port.
<Sysname> display ptp corrections
Slave port Correction time Corrections(s,ns) Rate ratio
MGE0/0/0 Mar 11 03:14:54 2019 0,74 0.999999973
MGE0/0/0 Mar 11 03:14:55 2019 -1,17 0.999999980
Table 2 Command output
Field |
Description |
Slave port |
Name of the subordinate port. |
Correction time |
Time when the correction occurred. |
Corrections(s,ns) |
Time corrections in seconds or nanoseconds. N/A indicates that no correction occurred this time. |
Rate ratio |
Ratio of the subordinate port rate to the master port rate. N/A indicates that no correction occurred this time. |
display ptp foreign-masters-record
Use display ptp foreign-masters-record to display information about foreign master nodes.
Syntax
display ptp foreign-masters-record [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays information about foreign master nodes for all interfaces.
Usage guidelines
Foreign master node information is displayed only when the following conditions are met:
· You have specified a PTP mode and PTP domain for the device.
· The device has a port in slave, passive, or subordinate state.
Examples
# Display information about foreign master nodes for all interfaces.
<Sysname> display ptp foreign-masters-record
P1=Priority1, P2=Priority2, C=Class, A=Accuracy,
OSLV=Offset-scaled-log-variance, SR=Steps-removed
GM=Grandmaster
----------------------- -------------------- ---- ---- ---- ---- ------ ---- ---
Interface Clock ID P1 P2 C A OSLV SR GM
----------------------- -------------------- ---- ---- ---- ---- ------ ---- ---
MGE0/0/0 62214E-FFFE-B20100 128 128 248 254 65535 0 Yes
Table 3 Command output
Field |
Description |
Interface |
PTP interface name. |
Clock ID |
Clock ID of the foreign master node. |
C |
Time class. |
A |
Time accuracy. |
OSLV |
Offset of the grandmaster clock. |
SR |
Hops from the grandmaster to the local clock node. |
GM |
Whether the node represents the grandmaster clock: · Yes. · No. |
display ptp interface
Use display ptp interface to display PTP running information for one or all PTP interfaces.
Syntax
display ptp interface [ interface-type interface-number ]
display ptp interface brief
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays PTP running information for all PTP interfaces.
brief: Displays brief PTP running information for all interfaces. If you do not specify this keyword, this command displays detailed PTP running information for the specified PTP interface or all PTP interfaces.
Usage guidelines
The detailed PTP running information can be displayed only if you enable PTP on the interface. The brief PTP running information can be displayed only when PTP is operating on the interface.
Examples
# Display brief PTP running information for all PTP interfaces.
<Sysname> display ptp interface brief
Name State Delay mechanism Clock step Asymmetry correction
MGE0/0/0 Slave E2E Two 0
# Display detailed PTP running information for M-GigabitEthernet 0/0/0.
<Sysname> display ptp interface m-gigabitethernet 0/0/0
Clock ID : 000FE2-FFFE-FF0000
Port number : 15
PTP version : 2
PTP state : Enabled
Transport protocol of PTP : User Datagram Protocol (IPv4)
Unicast destination address : 10.10.10.2
DSCP priority : 56
Port state : Slave
Unicast negotiate port role : Request-port
Force state : No
Clock step : Two
Asymmetry correction : 0
Delay mechanism : End to End
Announce interval (log mean) : 1
Announce receipt time out : 3
Sync interval (log mean) : 0
Delay request interval (log mean) : 2
Peer delay request interval (log mean) : 0
Mean path delay : 1357 (ns)
Table 4 Command output
Field |
Description |
Name |
Name of the PTP interface. |
State |
States of the PTP interface: · Slave—Receives synchronization messages. · Uncalibrated—Temporary state before the interface enters Slave state. · Passive—Neither receives nor sends synchronization messages. A PTP interface is in passive state after it receives an announce messages. · Master—Sends synchronization messages. · Premaster—Temporary state before the interface enters Master state. · Listening—Neither receives nor sends synchronization messages. A PTP interface is in listening state after being initialized. · Faulty—PTP is running incorrectly. A PTP interface in faulty state does not process PTP messages. · Disabled—PTP is not running on the interface. A PTP interface in disabled state does not process PTP messages. · Initializing—The interface is initializing. A PTP interface in initializing state does not process PTP messages. · N/A—No PTP interface state is obtained. |
Delay mechanism |
Delay measurement mechanism: · End to End—Request-response mechanism. · Peer to Peer—Peer delay mechanism. |
Clock step |
Mode for carrying timestamps: · One—Single-step mode. This value is not supported in the current software version. · Two—Two-step mode. |
Asymmetry correction |
Asymmetric delay correction value (in nanoseconds). |
Clock ID |
Clock ID of the device where the interface resides. |
PTP version |
PTP version number. The version number is always 2. |
PTP state |
Whether PTP is enabled on the port: · Enabled. · Disabled. |
Transport protocol of PTP |
PTP message transport protocol: · User Datagram Protocol (IPv4). · IEEE 802.3/Ethernet. |
Port state |
PTP port state. It has the same value as the State field. |
Unicast negotiate port role |
This field is available only when the PTP profile is IEEE 1588 version 2. Role of the port for unicast negotiation. · Request-port · Grant-port This field displays Invalid when unicast negotiation is disabled on the port. |
Unicast destination address |
Destination IP address for unicast PTP messages that are transmitted over IPv4 UDP. |
DSCP priority |
DSCP value for PTP messages that are transmitted over IPv4 UDP. |
Force state |
Whether the force state is configured: · Yes. · No. |
Announce interval (log mean) |
Announce message sending interval (in seconds) = 2interval. This field displays the value for the interval exponent. |
Announce receipt time out |
Number of announcement intervals before the receiving node stops receiving announce messages. If a member node does not receive any announce message from the master node within the specified value, it considers the master node invalid. |
Sync interval (log mean) |
Sync message sending interval (in seconds) = 2interval. This field displays the value for the interval exponent. |
Delay request interval (log mean) |
Minimum delay request message sending interval (in seconds) = 2interval. This field displays the value for the interval exponent. |
Peer delay request interval (log mean) |
Peer delay request message sending interval (in seconds) = 2interval. This field displays the value for the interval exponent. |
Mean path delay |
Mean path delay, in nanoseconds. |
display ptp parent
Use display ptp parent to display information about the parent node (master node).
Syntax
display ptp parent
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
The command does not display information about the parent node (master node) in any of the following circumstances:
· PTP profile, PTP mode, or PTP domain is not configured for the device.
· The clock node type of the device is TC.
· The ptp active force-state command has been executed.
Examples
# Display information about the parent node.
<Sysname> display ptp parent
Parent clock:
Parent clock ID : 000FE2-FFFE-FF0005
Parent port number : 15
Observed parent offset (log variance) : N/A
Observed parent clock phase change rate : N/A
Grandmaster clock:
Grandmaster clock ID: 000FE2-FFFE-FF0000
Grandmaster clock quality:
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Priority1 : 128
Priority2 : 128
Table 5 Command output
Field |
Description |
Parent port number |
Outgoing interface number of the parent clock. |
Observed parent offset (log variance) |
Offset from the parent clock node. N/A indicates that information for this field is not obtained. |
Class |
Time class of the grandmaster clock. |
Accuracy |
Time accuracy of the grandmaster clock. |
Offset (log variance) |
Offset of the grandmaster clock. |
Priority1 |
Priority 1 value of the grandmaster clock. |
Priority2 |
Priority 2 value of the grandmaster clock. |
display ptp path-trace
Use display ptp path-trace to display brief information about the PTP synchronization path from the GM to the device.
Syntax
display ptp path-trace
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
This command does not have an output if one of the following conditions exists:
· The PTP profile, PTP clock node type, or PTP domain is not configured.
· The clock node type is E2ETC, E2ETC-OC, P2PTC, P2PTC-OC, or T-TC.
· The ptp active force-state command has been configured.
Examples
# Display brief information about the PTP synchronization path from the GM to the device.
<Sysname> display ptp path-trace
Sequence number Clock ID
1 000FE2-FFFE-FF0000
2 000FE3-FFFE-F90000
3 000FE4-FFFE-F50000
4 000FE5-FFFE-F20000
5 000FE6-FFFE-F70000
Table 6 Command output
Field |
Description |
Sequence number |
Sequence number of the clock node. |
Clock ID |
ID of the clock node |
Related commands
ptp active force-state
ptp domain
ptp mode
ptp profile
display ptp port-history
Use display ptp port-history to display historical role change information for PTP ports.
Syntax
display ptp port-history [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays historical role change information for all interfaces.
Examples
# Display historical role change information for all PTP ports.
<Sysname> display ptp port-history
Interface: M-GigabitEthernet 0/0/0
Role change: Disabled -> Listening
Time : Apr 15 08:56:50 2020
IfBMCInfo : 0 255 255 255 255 65535 65535 65535 65535 65535 6
Role change: Listening -> Master
Time : Apr 15 08:56:56 2020
IfBMCInfo : 0 255 255 255 255 65535 65535 65535 65535 65535 6
Table 7 Command output
Field |
Description |
Interface |
PTP port name. |
Role change |
Role change of the PTP port. |
Time |
Time at which the PTP port role was calculated. |
IfBMCInfo |
BMC information for the PTP port. When the PTP profile is IEEE 1588 Version 2, the information includes protocol type, priority 1, clock class, clock accuracy, priority 2, sending port number, receiving port number, source port number, hops, offset (log variance), and port number, which are separated by spaces. |
display ptp statistics
Use display ptp statistics to display PTP statistics.
Syntax
display ptp statistics [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays PTP statistics on all interfaces.
Usage guidelines
The command displays PTP statistics only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Display PTP statistics on M-GigabitEthernet 0/0/0.
<Sysname> display ptp statistics interface m-gigabitethernet 0/0/0
Received packets
--------------------------------------------------------------------------
Announce :0 Sync :0 Signaling :0
DelayReq :0 DelayResp :0 FollowUp :0
PdelayReq:0 PdelayResp:0 PdelayRespFollowUp :0
Sent packets
--------------------------------------------------------------------------
Announce :476 Sync :2543 Signaling :0
DelayReq :0 DelayResp :0 FollowUp :2542
PdelayReq:238 PdelayResp:0 PdelayRespFollowUp :0
Discarded packets
--------------------------------------------------------------------------
Announce :0 Sync :0 Signaling :0
DelayReq :0 DelayResp :0 FollowUp :0
PdelayReq:0 PdelayResp:0 PdelayRespFollowUp :0
# Display PTP statistics on all interfaces.
<Sysname> display ptp statistics
Interface : M-GigabitEthernet 0/0/0
Received packets
--------------------------------------------------------------------------
Announce :2353 Sync :4700 Signaling :0
DelayReq :0 DelayResp :4450 FollowUp :4700
PdelayReq:0 PdelayResp:0 PdelayRespFollowUp :0
Sent packets
--------------------------------------------------------------------------
Announce :8 Sync :14 Signaling :0
DelayReq :4450 DelayResp :0 FollowUp :14
PdelayReq:0 PdelayResp:0 PdelayRespFollowUp :0
Discarded packets
--------------------------------------------------------------------------
Announce :0 Sync :4 Signaling :0
DelayReq :0 DelayResp :0 FollowUp :4
PdelayReq:0 PdelayResp:0 PdelayRespFollowUp :0
Table 8 Command output
Field |
Description |
Received packets |
Statistics about received PTP messages. |
Sent packets |
Statistics about sent PTP messages. |
Discarded packets |
Statistics about discarded PTP messages. |
display ptp time-property
Use display ptp time-property to display PTP clock time information.
Syntax
display ptp time-property
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
This command does not display PTP clock time information in any of the following circumstances:
· PTP profile, PTP mode, or PTP domain is not configured for the device.
· The clock node type of the device is TC.
· The ptp active force-state command has been executed.
Examples
# Display PTP clock time information.
<Sysname> display ptp time-property
PTP clock time property:
Current UTC offset valid : True
Current UTC offset : 33
Leap59 : Yes
Leap61 : No
Time traceable : True
Frequency traceable : True
PTP timescale : True
Time source : 0xA0 (Internal oscillator)
Table 9 Command output
Field |
Description |
Current UTC offset valid |
Whether the Coordinated Universal Time (UTC) offset is valid: · True—Yes. · False—No. |
Current UTC offset |
Cumulative offset (in seconds) between the UTC of the grandmaster clock and the International Atomic Time (TAI). |
Leap59 |
Whether cumulative offset is minus 1: · Yes. · No. |
Leap61 |
Whether cumulative offset is plus 1: · Yes. · No. |
Time traceable |
Whether the PTP time is traceable: · True—Yes. · False—No. |
Frequency traceable |
Whether the PTP frequency is traceable: · True—Yes. · False—No. |
PTP timescale |
The possible timescales available for use by the grandmaster clock: · True—PTP timescale. · False—Non-PTP timescale. |
Time source |
Attributes of the grandmaster clock: · Atomic clock. · GPS. · Handset. · Internal oscillator. · NTP. · Other. · PTP. · Terrestrial radio. · Unknown. |
ptp active force-state
Use ptp active force-state to activate the port role configuration.
Use undo ptp active force-state to restore the default.
Syntax
ptp active force-state
undo ptp active force-state
Default
The port role configuration is not activated.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Activate the port role configuration.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] ptp active force-state
Related commands
ptp domain
ptp force-state
ptp mode
ptp profile
ptp announce-interval
Use ptp announce-interval to set the interval for sending announce messages.
Use undo ptp announce-interval to restore the default.
Syntax
ptp announce-interval interval
undo ptp announce-interval
Default
The interval argument value is 1 and the announce message sending interval is 2 (21) seconds.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
interval: Specifies an exponent, to the power of which base 2 is raised to get the interval in seconds for sending announce messages. The value range for the interval argument is 0 to 4.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
The interval at which the master node sends announce messages depends on whether unicast negotiation is enabled.
· If unicast negotiation is not enabled, the master node uses the value configured by using the ptp announce-interval command on its interface as the interval.
· If unicast negotiation is enabled, you must configure the interval on the request-port of the client. The request-port uses the configured interval to negotiate with the grant-port on the server for the interval at which the grant-port sends announce messages to the client. If the negotiation succeeds, the grant-port sends announce messages at the configured interval to the client. If the negotiation fails, the grant-port does not send announce messages to the client.
Examples
# Set the announce message sending interval to 4 (22) seconds on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp announce-interval 2
Related commands
ptp domain
ptp mode
ptp profile
ptp announce-timeout
Use ptp announce-timeout to set the timeout multiplier for the announce message receiving interval.
Use undo ptp announce-timeout to restore the default.
Syntax
ptp announce-timeout multiple-value
undo ptp announce-timeout
Default
The timeout multiplier for the announce message receiving interval is 3.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
multiple-value: Sets the timeout multiplier for the announce message receiving interval, in the range of 2 to 10.
Usage guidelines
A master node periodically sends announce messages to the member nodes. If a member node does not receive any announce message from the master node within multiple-value times the announce message sending interval, it determines that the master node is invalid.
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
To ensure a stable PTP network, set the timeout multiplier for receiving announce messages to a value in the range of 5 to 7.
Examples
# Set the timeout multiplier for the announce message sending interval to 5 on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp announce-timeout 5
Related commands
ptp announce-interval
ptp domain
ptp mode
ptp profile
ptp asymmetry-correction
Use ptp asymmetry-correction to set the asymmetric delay correction time.
Use undo ptp asymmetry-correction to restore the default.
Syntax
ptp asymmetry-correction { minus | plus } value
undo ptp asymmetry-correction
Default
The asymmetric delay correction time is 0 nanoseconds, which means that delay correction is not performed.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
minus: Subtracts the specified asymmetric delay correction value.
plus: Adds the specified asymmetric delay correction value.
value: Specifies the asymmetric delay correction value in the range of 0 to 2000000 nanoseconds.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Set the asymmetric delay correction time to 100 nanoseconds on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp asymmetry-correction plus 100
Related commands
ptp domain
ptp mode
ptp profile
ptp clock-step
Use ptp clock-step to configure the mode for carrying timestamps.
Use undo ptp clock-step to restore the default.
Syntax
ptp clock-step two-step
undo ptp clock-step
Default
Two-step mode is used for carrying timestamps.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
two-step: Specifies the two-step mode.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Configure the two-step timestamp-carrying mode on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp clock-step two-step
Related commands
ptp domain
ptp mode
ptp profile
ptp delay-mechanism
Use ptp delay-mechanism to specify a delay measurement mechanism for a BC or an OC.
Use undo ptp delay-mechanism to restore the default.
Syntax
ptp delay-mechanism { e2e | p2p }
undo ptp delay-mechanism
Default
The request-response delay measurement applies.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
e2e: Specifies the request-response mechanism.
p2p: Specifies the peer delay mechanism.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device. Follow these restrictions and guidelines when you configure this command:
· You can configure this command only for a BC or OC clock node.
· The E2ETC, E2ETC+OC, P2PTC, and P2PTC+OC clock nodes do not support this command.
Examples
# Specify the OC clock node type. Specify the request-response delay measurement mechanism (e2e) on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp delay-mechanism e2e
Related commands
ptp domain
ptp mode
ptp profile
ptp unicast-negotiate
ptp destination-mac
Use ptp destination-mac to configure the destination MAC address for non-peer delay messages.
Use undo ptp destination-mac to restore the default.
Syntax
ptp destination-mac mac-address
undo ptp destination-mac
Default
The destination MAC address for non-peer delay messages is 011B-1900-0000.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
mac-address: Specifies the destination MAC address for non-peer delay messages as 0180-C200-000E or 011B-1900-0000.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Peer delay messages include Pdelay_Req, Pdelay_Resp, and Pdelay_Resp_Follow_Up messages. The destination MAC address for peer delay messages is 0180-C200-000E, which cannot be modified.
This command takes effect only if PTP messages are encapsulated in IEEE 802.3/Ethernet packets.
Examples
# Set the destination MAC address for non-peer delay messages to 0180-C200-000E on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet 0/0/0] ptp destination-mac 0180-c200-000e
Related commands
ptp domain
ptp mode
ptp profile
ptp domain
Use ptp domain to specify a PTP domain.
Use undo ptp domain to restore the default.
Syntax
ptp domain domain-number
undo ptp domain
Default
No PTP domain exists.
Views
System view
Predefined user roles
network-admin
Parameters
domain-number: Specifies a PTP domain by its number. The value range for the domain-number argument is 0 to 255.
Usage guidelines
You can configure this command only after you have specified a PTP profile and PTP mode for the device.
If you delete a PTP domain, all PTP configurations related to the domain are deleted, except the PTP profile and PTP mode settings.
Examples
# Assign the device to PTP domain 2.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 2
Related commands
ptp mode
ptp profile
ptp enable
Use ptp enable to enable PTP.
Use undo ptp enable to disable PTP.
Syntax
ptp enable
undo ptp enable
Default
PTP is disabled.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
You can enable PTP on only one port if the clock node type of the device is OC.
For PTP to run on an interface, enable PTP globally and on the interface. As a best practice, enable PTP on an interface after you complete PTP configuration on the interface.
Examples
# Specify the OC clock node type and enable PTP on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp enable
Related commands
ptp domain
ptp global enable
ptp mode
ptp profile
ptp force-state
Use ptp force-state to configure a role for a PTP port.
Use undo ptp force-state to restore the default.
Syntax
ptp force-state { master | passive | slave }
undo ptp force-state
Default
The PTP port role is automatically calculated based on the BMC algorithm.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
master: Specifies the PTP port as a master port.
passive: Specifies the PTP port as a passive port.
slave: Specifies the PTP port as a subordinate port.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
You can configure only one subordinate port for a device.
By default, the PTP port roles are automatically negotiated based on the BMC algorithm. If you use this command to change the role of one PTP port, all the other PTP ports in the PTP domain stop working. For these PTP ports to function, you must specify a role for each of them by using this command. As a best practice, enable automatic negotiation of PTP port roles based on the BMC algorithm.
After changing the role of a PTP port, you must execute the ptp active force-state command for the new PTP port role to take effect.
Under the IEEE 1588 version 2 PTP profile, the ptp force-state command and the ptp unicast-negotiate command are mutually exclusive
Examples
# Specify the OC clock node type and specify M-GigabitEthernet 0/0/0 as a subordinate port.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp force-state slave
Related commands
ptp active force-state
ptp domain
ptp mode
ptp profile
ptp slave-only
ptp unicast-negotiate
ptp global enable
Use ptp global enable to enable PTP globally.
Use undo ptp global enable to disable PTP globally.
Syntax
ptp global enable
undo ptp global enable
Default
PTP is enabled globally.
Views
System view
Predefined user roles
network-admin
Usage guidelines
For PTP to run on an interface, enable PTP globally and on the interface.
Examples
# Enable PTP globally.
<Sysname> system-view
[Sysname] ptp global enable
Related commands
ptp enable
ptp min-delayreq-interval
Use ptp min-delayreq-interval to set the minimum interval for sending delay request messages.
Use undo ptp min-delayreq-interval to restore the default.
Syntax
ptp min-delayreq-interval interval
undo ptp min-delayreq-interval
Default
The minimum interval for sending delay request messages is 1 (20) second.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
interval: Specifies an exponent, to the power of which base 2 is raised to get the interval in seconds for sending delay request messages. The value range for the interval argument is –4 to 6.
Usage guidelines
When a member clock receives a Sync message, it responds by sending a Delay_Req message and starts a timer defined by this command. The member clock will not send another Delay_Req message until it receives a Sync message after the timer expires.
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
In PTP multicast transport mode, this command takes effect only when configured on the master clock. The master clock sends the value to a member clock through PTP messages to control the interval for the member clock to send Delay_Req messages. To view the interval, execute the display ptp interface command on the member clock.
In PTP unicast transport mode, this command takes effect when configured on member clocks. It does not take effect when configured on the master clock.
Examples
# Set the minimum interval to 4 (22) seconds for sending delay request messages on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp min-delayreq-interval 2
Related commands
ptp domain
ptp mode
ptp profile
ptp syn-interval
ptp mode
Use ptp mode to specify a clock node type for the device.
Use undo ptp mode to restore the default.
Syntax
ptp mode { bc | e2etc | e2etc-oc | oc | p2ptc | p2ptc-oc }
undo ptp mode
Default
No clock node type is specified.
Views
System view
Predefined user roles
network-admin
Parameters
bc: Specifies the boundary clock (BC) type.
e2etc: Specifies the end-to-end transparent clock (E2ETC) type.
e2etc-oc: Specifies the E2ETC+OC type.
oc: Specifies the ordinary clock (OC) type.
p2ptc: Specifies the peer-to-peer transparent clock (P2PTC) type.
p2ptc-oc: Specifies the P2PTC+OC type.
Usage guidelines
CAUTION: If you change the clock node type for the device, all settings except for the PTP profile will be removed. |
You can configure this command only after you have specified a PTP profile for the device.
This command is available only after you specify a PTP profile.
If the ptp unicast-forward enable command has been configured, you can specify only the E2ETC clock node type for the device.
Examples
# Specify the OC clock node type for the device.
<Sysname> system-view
[Sysname] ptp profile 1588v2
Related commands
ptp profile
ptp unicast-forward enable
ptp path-trace disable
Use ptp path-trace disable to disable PTP path tracing.
Use undo ptp path-trace disable to enable PTP path tracing.
Syntax
ptp path-trace disable
undo ptp path-trace disable
Default
PTP path tracing is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
PTP path tracing traces the clock nodes that the clock signals traverse from the GM to the device. The system can obtain complete path tracing information only when all clock nodes on the path are enabled with PTP path tracing. If a device on the path does not support PTP path tracing, disable this feature to prevent PTP intercommunication issues.
This command is available only after you have specified a PTP profile, PTP clock node type, and PTP domain.
Examples
# Disable PTP path tracing.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode bc
[Sysname] ptp domain 1
[Sysname] ptp path-trace disable
Related commands
display ptp path-trace
ptp mode
ptp profile
ptp pdelay-req-interval
Use ptp pdelay-req-interval to set the interval for sending peer delay request messages.
Use undo ptp pdelay-req-interval to restore the default.
Syntax
ptp pdelay-req-interval interval
undo ptp pdelay-req-interval
Default
The interval for sending peer delay request messages is 1 (20) second.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
interval: Specifies an exponent, to the power of which base 2 is raised to get the interval in seconds for sending peer delay request messages. The value range for the interval argument is 0 to 5.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Set the interval to 4 (22) seconds for sending peer delay request messages on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp pdelay-req-interval 2
Related commands
ptp domain
ptp mode
ptp profile
ptp syn-interval
ptp port-mode
Use ptp port-mode to specify the OC port type for a TC+OC (including E2ETC+OC and P2PTC+OC) clock.
Use undo ptp port-mode to restore the default.
Syntax
ptp port-mode oc
undo ptp port-mode
Default
The type of all ports on an E2ETC+OC or a P2PTC+OC clock is TC.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
oc: Specifies the OC port type for a TC+OC clock.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
This command is applicable only for E2ETC+OC and P2PTC+OC clocks.
Examples
# Specify the P2PTC+OC clock node type for the device. Specify the OC port type for M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode p2ptc-oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp port-mode oc
Related commands
ptp domain
ptp mode
ptp profile
ptp priority
Use ptp priority clock-source to configure the priority for the specified clock for GM election through BMC.
Use undo ptp priority clock-source to restore the specified priority to its default value.
Syntax
ptp priority clock-source local { priority1 priority1 | priority2 priority2 }
undo ptp priority clock-source local { priority1 | priority2 }
Default
The priority 1 and priority 2 values are both 128.
Views
System view
Predefined user roles
network-admin
Parameters
local: Specifies the local clock.
priority1 priority1: Specifies priority 1 for the clock, in the range of 0 to 255. A numerically smaller value has higher priority.
priority2 priority2: Specifies priority 2 for the clock, in the range of 0 to 255. A numerically smaller value has higher priority.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Set priority 1 to 10 for the local clock.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] ptp priority clock-source local priority1 10
Related commands
ptp domain
ptp mode
ptp profile
ptp profile
Use ptp profile to specify a PTP profile for the device.
Use undo ptp profile to restore the default.
Syntax
ptp profile 1588v2
undo ptp profile
Default
PTP operates only after you specify a PTP profile.
Views
System view
Predefined user roles
network-admin
Parameters
1588v2: Specifies the IEEE 1588 version 2 PTP profile.
Usage guidelines
Specify a PTP profile for the device before any other PTP configurations.
Changing or removing a PTP profile clears all settings under the PTP profile.
Examples
# Specify the IEEE 1588 version 2 PTP profile.
<Sysname> system-view
[Sysname] ptp profile 1588v2
ptp slave-only
Use ptp slave-only to configure the OC to operate only as a member clock.
Use undo ptp slave-only to restore the default.
Syntax
ptp slave-only
undo ptp slave-only
Default
An OC can operate either as a master clock or a member clock.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
This command is applicable only to OCs.
You can execute the ptp force-state command to specify a subordinate port as a master port or passive port even if the OC operates as a member clock.
Under the IEEE 1588 version 2 PTP profile, the ptp slave-only command and the ptp unicast-negotiate command are mutually exclusive.
Examples
# Specify the OC clock node type for the device. Configure the OC to operate only as a member clock.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] ptp slave-only
Related commands
ptp domain
ptp force-state
ptp mode
ptp profile
ptp unicast-negotiate
ptp source
Use ptp source to configure the source IP address for multicast PTP messages transmitted over IPv4 UDP.
Use undo ptp source to remove the specified source IP address for multicast PTP messages transmitted over IPv4 UDP.
|
NOTE: This command is supported only in E6709 and later. |
Syntax
ptp source ip-address
undo ptp source ip-address
Default
No source IP address is configured for multicast PTP messages transmitted over IPv4 UDP.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the source IP address for multicast PTP messages transmitted over IPv4 UDP.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
This command takes effect only when PTP messages are transmitted over IPv4 UDP in multicast mode.
Examples
# Configure the source IP address as 3.5.1.5 for multicast PTP messages transmitted over IPv4 UDP.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] ptp source 3.5.1.5
Related commands
ptp domain
ptp mode
ptp profile
ptp transport-protocol
ptp syn-interval
Use ptp syn-interval to set the interval for sending Sync messages.
Use undo ptp syn-interval to restore the default.
Syntax
ptp syn-interval interval
undo ptp syn-interval
Default
The interval argument value is 0 and the interval for sending Sync messages is 1 (20) second.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
interval: Specifies an exponent, to the power of which base 2 is raised to get the interval in seconds for sending Sync messages. In versions earlier than R6712, the value range for the interval argument is –1 to +1. In R6712 and later, the value range for the interval argument is –5 to +1.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
The interval at which the master node sends Sync messages to member nodes depends on whether unicast negotiation is enabled (only the IEEE 1588 version 2 PTP profile supports unicast negotiation). (Devices that support unicast negotiation)
· If unicast negotiation is not enabled, the master node uses the value configured by using the ptp syn-interval command on its interface as the interval.
· If unicast negotiation is enabled, you must configure the interval on the request-port of the client. The request-port uses the configured interval to negotiate with the grant-port on the server for the interval at which the grant-port sends Sync messages to the client. If the negotiation succeeds, the grant-port sends Sync messages at the configured interval to the client. If the negotiation fails, the grant-port does not send Sync messages to the client
Examples
# Set the Sync message sending interval to 2 (21) seconds on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet 0/0/0] ptp syn-interval 1
Related commands
ptp domain
ptp mode
ptp profile
ptp transport-protocol
Use ptp transport-protocol to specify the IPv4 PTP transport protocol for PTP messages.
Use undo ptp transport-protocol to restore the default.
|
NOTE: This command is supported only in E6709 and later. |
Syntax
ptp transport-protocol udp
undo ptp transport-protocol
Default
PTP messages are transported through IEEE 802.3 and Ethernet.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
udp: Specifies the IPv4 PTP transport protocol for PTP messages.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
Examples
# Specify the IPv4 PTP transport protocol for PTP messages on M-GigabitEthernet 0/0/0.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp transport-protocol udp
Related commands
ptp domain
ptp mode
ptp profile
ptp unicast-destination
Use ptp unicast-destination to configure the destination IP address for unicast PTP messages transmitted over IPv4 UDP.
Use undo ptp unicast-destination to restore the default.
|
NOTE: This command is supported only in E6709 and later. |
Syntax
ptp unicast-destination ip-address
undo ptp unicast-destination ip-address
Default
No destination IP address is configured for unicast PTP messages transmitted over IPv4 UDP.
Views
Management Ethernet interface view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the destination IP address for unicast PTP messages transmitted over IPv4 UDP.
Usage guidelines
You can configure this command only after you have specified a PTP profile, PTP mode, and PTP domain for the device.
This command takes effect only when PTP messages are transmitted over IPv4 UDP.
Examples
# Set the destination IP address to 10.10.10.2 for unicast PTP messages transmitted over IPv4 UDP.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode oc
[Sysname] ptp domain 0
[Sysname] interface m-gigabitethernet 0/0/0
[Sysname-M-GigabitEthernet0/0/0] ptp transport-protocol udp
[Sysname-M-GigabitEthernet0/0/0] ptp unicast-destination 10.10.10.2
Related commands
ptp domain
ptp mode
ptp profile
ptp transport-protocol
ptp utc
Use ptp utc to add or subtract one second from the UTC scale on the specified date.
Use undo ptp utc to restore the default.
Syntax
ptp utc { leap59-date | leap61-date } date
undo ptp utc { leap59-date | leap61-date }
Default
No second is added to or subtracted from the UTC scale.
Views
System view
Predefined user roles
network-admin
Parameters
leap59-date: Subtracts one second from the UTC time scale at the last minute (23:59) on the specified date.
leap61-date: Adds one second to the UTC time scale at the last minute (23:59) on the specified date.
date: Sets the date to adjust the UTC, in the format of YYYY/MM/DD. The value range for YYYY and MM is 2000 to 2035 and 1 to 12, respectively. The value range for DD depends on the specified month. For the configuration to take effect, do not specify a date earlier than the current date.
Usage guidelines
UTC is based on International Atomic Time (TAI), a high-precision atomic coordinate time scale, and adjusted by leap seconds for synchronization with astronomical time.
UTC is constantly compared with UT1 (astronomical time, reflecting the earth's rotation). The International Bureau of Weights and Measures (BIPM) will notify to add or subtract one second from the UTC time scale at the last minute on a specific date (typically June 30 or December 31) to ensure that the difference between UTC and UT1 is within one second.
You can use this command to add or subtract one second from the UTC time on the specific date as published by BIPM.
You can configure this command only after you have specified a PTP profile and PTP mode for the device.
This command takes effect only when it is configured on the master clock node and the local clock of the master clock node is the GM.
If you execute this command multiple times, the most recent configuration takes effect.
Examples
# Assume that the current date is August 8, 2016. Specify the BC clock node type for the device. According to information published by BIPM, add one second to the UTC time at 23:59:60 on December 31, 2016.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode bc
[Sysname] ptp utc offset 36
[Sysname] ptp utc leap61-date 2016/12/31
Related commands
ptp mode
ptp profile
ptp utc offset
ptp utc offset
Use ptp utc offset to set the cumulative offset of UTC relative to TAI.
Use undo ptp utc offset to restore the default.
Syntax
ptp utc offset utc-offset
undo ptp utc offset
Default
The cumulative offset of UTC relative to TAI is 0 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
utc-offset: Sets the cumulative offset of UTC relative to TAI, in seconds. The value range varies by device model.
Usage guidelines
A time difference exists between UTC and TAI. Internet devices typically use the UTC time. To provide more accurate time, PTP also uses TAI. If the device acts as a subordinate clock node, it uses the UTC time and TAI time of the clock reference. If the device acts as the clock reference, it will calculate the TAI time based on the UTC time, and synchronize the UTC and TAI time to the subordinate clocks. TAI provided by the device = Current UTC + cumulative offset + leap second.
BIPM periodically publishes the cumulative offset of UTC relative to TAI. Use the value published by BIPM to configure this command.
You can configure this command only after you have specified a PTP profile and PTP mode for the device.
This command takes effect only when it is configured on the master clock node and the local clock of the master clock node is the GM.
Examples
# According to information published by BIPM, the cumulative offset of UTC relative to TAI is 37 seconds. Set the cumulative offset of UTC relative to TAI to 37 seconds.
<Sysname> system-view
[Sysname] ptp profile 1588v2
[Sysname] ptp mode bc
[Sysname] ptp utc offset 37
Related commands
ptp mode
ptp profile
ptp utc
reset ptp statistics
Use reset ptp statistics to clear PTP statistics.
Syntax
reset ptp statistics [ interface interface-type interface-number ]
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command clears PTP statistics on all interfaces.
Examples
# Clear PTP statistics on M-GigabitEthernet 0/0/0.
<Sysname> reset ptp statistics interface m-gigabitethernet 0/0/0
Related commands
display ptp statistics