14-Network Management and Monitoring Command Reference

HomeSupportRoutersCR16000-F SeriesReference GuidesCommand ReferencesH3C CR16000-F Routers Command References-Release795x-6W10014-Network Management and Monitoring Command Reference
04-PTP commands
Title Size Download
04-PTP commands 154.58 KB

PTP commands

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

This command takes effect only after you specify a PTP profile (PTP standard) or a PTP clock node type.

Examples

# Display PTP clock information.

<Sysname> display ptp clock

PTP profile         : IEEE 1588 Version 2

PTP mode            : BC

Slave only          : No

Clock ID            : 000FE2-FFFE-FF0000

Clock type          : ToD0

 ToD direction  : In

 ToD delay time : 0 (ns)

Clock domain        : 0

Number of PTP ports : 2

Priority1     : 128

Priority2     : 128

Clock quality :

 Class                 : 6

 Accuracy              : 32

 Offset (log variance) : 65535

Offset from master : 0 (ns)

Mean path delay    : 0 (ns)

Steps removed      : 0

Local clock time   : Sun Jan 15 20:57:29 2011

Table 1 Command output

Field

Description

PTP profile

PTP standard. The value is IEEE 1588 version 2.

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.

Clock ID

Clock ID for the device, which uniquely identifies a PTP device.

Clock type

Clock type of the device:

·         Local—Local clock.

·         ToD0—ToD 0 clock.

·         ToD1—ToD 1 clock.

ToD direction

ToD input or output:

·         IN—The device receives clock signals from an external ToD clock.

·         Out—The device transmits ToD clock signals as a master.

·         N/A—The device neither receives nor transmits ToD clock signals.

This field is not displayed for a local clock.

ToD delay time

Delay correction value in nanoseconds for the ToD clock. This field is not displayed when the device is a 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 and PTP clock node type 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

XGE3/1/1     Mar 11 03:14:54 2012     0,74                  0.999999973

XGE3/1/1     Mar 11 03:14:55 2012    -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 clock node type for the device.

·          The device has a PTP port in slave or uncalibrated 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

--------- ----------------------- ---- ---- ---- ---- ----- ---------

XGE3/1/1     000FE2-FFFE-FF0000   0    128  248  37  65535  0    Yes

XGE3/1/2     000FE2-FFFE-FF0001   0    128  248  37  65535  1    No

Table 3 Command output

Field

Description

Interface

Name of a PTP interface.

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 an interface.

Syntax

display ptp interface [ interface-type interface-number | 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 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 interface or all 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 interfaces.

<Sysname> display ptp interface brief

Name         State        Delay mechanism  Clock step  Asymmetry correction

XGE3/1/1     Slave        E2E              Two         0

XGE3/1/2     Passive      E2E              Two         0

# Display detailed PTP running information for Ten-GigabitEthernet 3/1/1.

<Sysname> display ptp interface ten-gigabitethernet 3/1/1

Clock ID                    : 000FE2-FFFE-FF0000

Port number                 : 15

PTP version                 : 2

PTP enable                  : Enabled

Transport of PTP            : User Datagram Protocol (IPv4)

Unicast destination address : 10.10.10.2

DSCP priority               : 56

Port state                  : Slave

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)               : 2

Delay request interval (log mean)      : 2

Peer delay request interval (log mean) : 0

Mean path delay                        : 0 (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, fixed at Two, which represents the 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 enable

Whether PTP is enabled or disabled:

·         Enabled.

·         Disabled.

Transport of PTP

PTP message transport protocol:

·         User Datagram Protocol (IPv4).

·         IEEE 802.3/Ethernet.

Unicast destination address

Destination IP address for unicast PTP messages that are transmitted over UDP. This field is not displayed if the ptp unicast-destination command is not executed.

DSCP priority

DSCP value for PTP messages that are transmitted over UDP. This field is not displayed if the ptp dscp command is not executed.

VLAN

VLAN ID for PTP messages. This field is not displayed if the ptp vlan command is not executed.

Dot1p priority

802.1p precedence for PTP messages. This field is not displayed if the ptp vlan command is not executed.

Force state

Whether the force state is configured:

·         Yes.

·         No.

Announce interval (log mean)

Announce message sending interval (in seconds) = 2internal. 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) = 2internal. This field displays the value for the interval exponent.

Delay request interval (log mean)

Minimum delay request message sending interval (in seconds) = 2internal. This field displays the value for the interval exponent.

Peer delay request interval (log mean)

Peer delay request message sending interval (in seconds) = 2internal. 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 parent node (master node) information for the PTP device.

Syntax

display ptp parent

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

The command does not display any information in any of the following circumstances:

·          No PTP profile is specified.

·          No PTP clock node type is specified, or the PTP clock node type is TC.

·          The ptp active force-state command has been executed.

Examples

# Display parent node information for the PTP device.

<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              : 37

  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

The command takes effect only after you specify a PTP profile or a PTP clock node type.

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

 

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 for all interfaces.

Usage guidelines

The command does not display any PTP statistics if you have not specified a PTP profile or a PTP clock node type.

Examples

# Display PTP statistics on Ten-GigabitEthernet 3/1/1.

<Sysname> display ptp statistics interface ten-gigabitethernet 3/1/1

                     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

Table 7 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 properties.

Syntax

display ptp time-property

Views

Any view

Predefined user roles

network-admin

network-operator

Usage guidelines

This command does not take effect in any of the following circumstances:

·          You have not specified a PTP profile or a clock node type.

·          You have specified the e2etc or p2ptc clock node type.

·          You have executed the ptp active force-state command.

Examples

# Display PTP clock properties.

<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)

 Sync uncertain      : False

Table 8 Command output

Field

Description

Current UTC offset valid

Whether the UTC offset is valid:

·         True—Yes.

·         False—No.

Current UTC offset

Cumulative offset (in seconds) between the Coordinated Universal Time (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

Time source type of the grandmaster clock:

·         Atomic clock.

·         GPS.

·         Handset.

·         Internal oscillator.

·         NTP.

·         Other.

·         PTP.

·         Terrestrial radio.

·         Unknown.

Sync uncertain

Whether the upstream clock (master clock) is not reliable:

·         True—The upstream clock is not reliable.

·         False—The upstream clock is reliable.

 

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

This command is available only after you specify a PTP profile and a PTP clock node type.

After you change the role of a PTP port, you must execute this command to activate the port role configuration.

Examples

# Activate the port role configuration.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp active force-state

Related commands

ptp force-state

ptp mode

ptp profile 1588v2

ptp alarm-threshold clock-source-class

Use ptp alarm-threshold clock-source-class to set the class threshold for the clock source.

Use undo ptp alarm-threshold clock-source-class to restore the default.

Syntax

ptp alarm-threshold clock-source-class class-value

undo ptp alarm-threshold clock-source-class

Default

The class threshold is 6 for the clock source.

Views

System view

Predefined user roles

network-admin

Parameters

class-value: Specifies a class threshold for the clock source, in the range of 0 to 255.

Usage guidelines

Each PTP clock source has a class value. For a ToD clock source, you can set its class value by using the ptp clock-source command. The higher the value, the lower the class. When the class value of the clock source crosses the threshold, the system outputs a log for notification.

This command is available only after you specify a PTP profile and PTP clock node type.

Examples

# Set the class threshold to 20 for the clock source.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp alarm-threshold clock-source-class 20

Related commands

ptp clock-source

ptp mode

ptp profile 1588v2

ptp alarm-threshold time-offset

Use ptp alarm-threshold time-offset to set the time-offset threshold between the external reference clock and the PTP clock.

Use undo ptp alarm-threshold time-offset to restore the default.

Syntax

ptp alarm-threshold time-offset time-offset-value

undo ptp alarm-threshold time-offset

Default

The time-offset threshold between the external reference clock and the PTP clock is 500.

Views

System view

Predefined user roles

network-admin

Parameters

time-offset-value: Specifies the time-offset threshold between the external reference clock and the PTP clock, in the range of 200 to 1000, in nanoseconds.

Usage guidelines

If the device uses an external reference clock, it periodically calculates the time offset between the external reference clock and the PTP clock. When the offset exceeds the threshold, the device outputs a log for notification.

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the time-offset threshold between the external reference clock and the PTP clock to 800.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp alarm-threshold time-offset 800

Related commands

ptp mode

ptp profile 1588v2

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 value of the interval argument is 1 and the announce message sending interval is 2 (21) seconds.

Views

Layer 2 Ethernet interface view

Layer 3 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

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the announce message sending interval to 4 (22) seconds on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp announce-interval 2

Related commands

ptp mode

ptp profile 1588v2

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

Layer 2 Ethernet interface view

Layer 3 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 configured on the master node, it determines that the master node is invalid.

This command is available only after you specify a PTP profile and a PTP clock node type.

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 Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp announce-timeout 5

Related commands

ptp announce-interval

ptp mode

ptp profile 1588v2

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

Layer 2 Ethernet interface view

Layer 3 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

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the asymmetric delay correction time to 100 nanoseconds on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp asymmetry-correction plus 100

Related commands

ptp mode

ptp profile 1588v2

ptp clock-source

Use ptp clock-source to configure ToD clock parameters.

Use undo ptp clock-source to restore ToD clock parameters to their default values.

Syntax

ptp clock-source { tod0 | tod1 } { accuracy acc-value | class class-value | time-source ts-value }

undo ptp clock-source { tod0 | tod1 } { accuracy | class | time-source }

Default

For a ToD clock, the accuracy is 32, the clock class is 6, and the attribute value is 32.

Views

System view

Predefined user roles

network-admin

Parameters

tod0: Specifies the ToD 0 clock. This keyword is not supported in the current software version.

tod1: Specifies the ToD 1 clock.

accuracy acc-value: Specifies the accuracy of the ToD clock, in the range of 0 to 255. A smaller value indicates a higher accuracy. Table 9 shows the description for clock accuracy values.

Table 9 Clock accuracy value description

Clock accuracy value (in hexadecimal format)

Description

00 through 1F

Reserved.

20

Less than 25 nanoseconds (1 nanosecond = 10-9 second).

21

Less than 100 nanoseconds.

22

Less than 250 nanoseconds.

23

Less than 1 microsecond (10-6 second).

24

Less than 2.5 microseconds.

25

Less than 10 microseconds.

26

Less than 25 microseconds.

27

Less than 100 microseconds.

28

Less than 250 microseconds.

29

Less than 1 millisecond (10-3 second).

2A

Less than 2.5 milliseconds.

2B

Less than 10 milliseconds.

2C

Less than 25 milliseconds.

2D

Less than 100 milliseconds.

2E

Less than 250 milliseconds.

2F

Less than 1 second.

30

Less than 10 seconds.

31

More than 10 seconds.

32 through 7F

Reserved.

80 through FD

For use by alternate PTP profiles.

FE

Unknown.

FF

Reserved.

 

class class-value: Specifies the class of the ToD clock, in the range of 0 to 255. A smaller value indicates a higher time class. Table 10 shows the description for clock classes. The values not listed in the table are reserved by the protocol. As a best practice, do not use those values.

Table 10 Clock class description

Clock class (in decimal format)

Description

6

The clock node synchronizes its time to the master reference time source. PTP assigns a time table to the clock node. A clock node with time class 6 cannot become a member clock of any other clocks in the domain.

7

The former time class is 6. The clock node cannot synchronize its time to a time source. It enters the reappointment mode and meets the reappointment conditions. PTP assigns a time table to the clock node. A clock node with time class 7 cannot become a member clock of any other clocks in the domain.

13

The clock node synchronizes its time to a time source. ARB assigns a time table to the clock node. A clock node with time class 13 cannot become a member clock of any other clocks in the domain.

14

The former time class is 13. The clock node cannot synchronize its time to a time source. It enters the reappointment mode and meets the reappointment conditions. ARB assigns a time table to the clock node. A clock node with time class 14 cannot become a member clock of any other clocks in the domain.

52

The clock node with time class 7 becomes optional clock A because it does not meet the reappointment conditions. A clock node with time class 52 cannot become a member clock of any other clocks in the domain.

58

The clock node with time class 14 becomes optional clock A because it does not meet the reappointment conditions. A clock node with time class 58 cannot become a member clock of any other clocks in the domain.

187

The clock node with time class 7 becomes optional clock B because it does not meet the reappointment conditions. A clock node with time class 187 can become a member clock of another clock in the domain.

193

The clock node with time class 14 becomes optional clock B because it does not meet the reappointment conditions. A clock node with time class 193 can become a member clock of another clock in the domain.

248

Default time class value.

255

Clock node operating in slave-only mode.

 

time-source ts-value: Specifies the clock attribute value in the range of 0 to 255. Table 11 shows the description for the clock attribute values (those not listed are reserved for the protocol).

Table 11 GM attribute value description

GM attribute values (in hexadecimal format)

Description

10

Atomic clock.

20

GPS.

30

Terrestrial radio.

40

PTP.

50

NTP.

60

Handset.

90

Other.

A0

Internal oscillator.

F0 to FE

For use by alternate PTP profiles.

FF

Reserved.

 

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Configure the time accuracy for the ToD 0 clock as 44.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp clock-source tod0 accuracy 44

Related commands

ptp mode

ptp profile 1588v2

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 { one-step | two-step }

undo ptp clock-step

Default

Two-step mode is used for carrying timestamps.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

one-step: Specifies the single-step mode. This keyword is not supported in the current software version.

two-step: Specifies the two-step mode.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Specify the two-step timestamp carrying mode on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp clock-step two-step

Related commands

ptp mode

ptp profile 1588v2

ptp delay-mechanism

Use ptp delay-mechanism to specify a PTP delay measurement mechanism.

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 mechanism applies.

Views

Layer 2 Ethernet interface view

Layer 3 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 for BCs and OCs. The delay measurement mechanism is Request_Response for E2ETCs and E2ETC+OCs and Peer Delay for P2PTCs and P2PTC+OCs. You cannot change the delay measurement mechanism for these clock nodes.

Examples

# Specify the OC clock type. On Ten-GigabitEthernet 3/1/1, specify the request-response delay measurement mechanism (e2e).

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp delay-mechanism e2e

Related commands

ptp mode

ptp profile 1588v2

ptp destination-mac

Use ptp destination-mac to configure the destination MAC address for PTP 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.

The destination MAC address for peer delay messages is 0180-C200-000E.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

mac-address: Specifies the destination MAC address (any unicast MAC address) for PTP unicast messages or specifies the destination MAC address (0180-C200-000E or 011B-1900-0000) for non-peer delay multicast messages.

Usage guidelines

This command is available only after you specify a PTP profile and specify a PTP clock node type.

This command takes effect only when PTP messages are encapsulated in IEEE 802.3/Ethernet packets.

IEEE 802.3/Ethernet-encapsulated PTP messages can be sent through multicast (default) or unicast.

·          In multicast mode, the destination MAC address is 0180-C200-000E or 011B-1900-0000 for non-Pdelay messages and 0180-C200-000E for Pdelay messages. Non-Pdelay messages include delay_Req, delay_Resp, delay_Resp_Follow_Up, Announce, Sync, and FollowUp messages. Pdelay messages include Pdelay_Req, Pdelay_Resp, and Pdelay_Resp_Follow_Up messages.

·          In unicast mode, you can configure any unicast MAC address as the destination address for PTP messages.

Examples

# Configure 0180-C200-000E as the destination MAC address for non-peer delay messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp destination-mac 0180-c200-000e

Related commands

ptp mode

ptp profile 1588v2

ptp domain

Use ptp domain to specify the PTP domain.

Use undo ptp domain to restore the default.

Syntax

ptp domain domain-number

undo ptp domain

Default

The device is in PTP domain 0.

Views

System view

Predefined user roles

network-admin

Parameters

domain-number: Specifies a PTP domain by its domain number in the range of 0 to 255.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Specify PTP domain 2 for the device.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp domain 2

Related commands

ptp mode

ptp profile 1588v2

ptp dscp

Use ptp dscp to set the DSCP value for UDP-encapsulated PTP messages.

Use undo ptp dscp to restore the default.

Syntax

ptp dscp dscp

undo ptp dscp

Default

The DSCP value is 56 for UDP-encapsulated PTP messages.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

dscp: Sets a DSCP value in the range of 0 to 63.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

This command takes effect only for UDP-encapsulated PTP messages.

Examples

# Set the DSCP value to 63 for UDP-encapsulated PTP messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp transport-protocol udp

[Sysname-Ten-GigabitEthernet3/1/1] ptp dscp 63

Related commands

ptp mode

ptp profile 1588v2

ptp transport-protocol

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

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

For an OC clock node, you can enable PTP only on one port.

As a best practice, enable PTP on an interface after you configure PTP parameters.

Examples

# Specify the OC clock node type, and enable PTP on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp enable

# Specify the E2ETC clock node type, and enable PTP on Ten-GigabitEthernet 3/1/1 and Ten-GigabitEthernet 3/1/2.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode e2etc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp enable

[Sysname-Ten-GigabitEthernet3/1/1] interface ten-gigabitethernet 3/1/2

[Sysname-Ten-GigabitEthernet3/1/2] ptp enable

Related commands

ptp mode

ptp profile 1588v2

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 by BMC.

Views

Layer 2 Ethernet interface view

Layer 3 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

This command is available only after you specify a PTP profile and a PTP clock node type.

You can configure only one subordinate port for a device.

After you change the role of a PTP port, you must execute the ptp active force-state command to activate the port role configuration.

Examples

# Specify the OC clock node type. Specify the PTP port Ten-GigabitEthernet 3/1/1 as a subordinate port.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp force-state slave

Related commands

ptp active force-state

ptp mode

ptp profile 1588v2

ptp slave-only

ptp max-steps-removed

Use ptp max-steps-removed to specify the maximum number of removed steps (clock nodes) from the GM to the device.

Use undo ptp max-steps-removed to restore the default.

Syntax

ptp max-steps-removed step-removed-value

undo ptp max-steps-removed

Default

The maximum number of removed steps is 255 from the GM to the device.

Views

System view

Predefined user roles

network-admin

Parameters

step-removed-value: Specifies the maximum number of removed steps from the GM to the device, in the range of 1 to 255.

Usage guidelines

If the number of removed steps from the GM to the device exceeds the maximum number, the device cannot synchronize time to the GM.

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the maximum number of removed steps from the GM to the device to 20.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp max-steps-removed 20

Related commands

ptp mode

ptp profile 1588v2

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

Layer 2 Ethernet interface view

Layer 3 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.

This command is available only after you specify a PTP profile and a PTP clock node type.

The configured interval takes effect only when it is set 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 value on a member clock, execute the display ptp interface command on the member clock.

Examples

# Set the minimum interval to 4 (22) seconds for sending delay request messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp min-delayreq-interval 2

Related commands

ptp mode

ptp profile 1588v2

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

CAUTION:

If you change the clock node type for the device, all settings except for the PTP profile will be removed.

 

The following restrictions apply for using this command:

·          This command is available only after you specify a PTP profile.

·          You can specify only one clock node type for a device.

·          Changing or removing the clock node type will restore the default settings of the PTP profile.

Examples

# Specify the OC clock node type for the device.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

Related commands

ptp profile 1588v2

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

Layer 2 Ethernet interface view

Layer 3 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

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the interval to 4 (22) seconds for sending peer delay request messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp pdelay-req-interval 2

Related commands

ptp mode

ptp profile 1588v2

ptp port-mode

Use ptp port-mode to configure the port type as OC 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

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

oc: Specifies the port type for a TC+OC clock as OC.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type. Only E2ETC+OC and P2PTC+OC clock nodes support this command.

Examples

# Specify the P2PTC+OC clock node type for the device. Configure the port type for Ten-GigabitEthernet 3/1/1 as OC.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode p2ptc-oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp port-mode oc

Related commands

ptp mode

ptp profile 1588v2

ptp priority clock-source

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 | tod0 | tod1 } { priority1 priority1| priority2 priority2 }

undo ptp priority clock-source { local | tod0 | tod1 } { 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.

tod0: Specifies the ToD 0 clock.

tod1: Specifies the ToD 1 clock.

priority1 priority1: Specifies priority 1 for the clock. The value is in the range of 0 to 255. A numerically smaller value has higher priority.

priority2 priority2: Specifies priority 2 for the clock. A numerically smaller value has higher priority. The value range for the argument is 0 to 255.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

The local priority of a clock will not be carried in PTP announce messages.

Examples

# Set priority 1 to 10 for the local clock.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp priority clock-source local priority1 10

Related commands

ptp mode

ptp profile 1588v2

ptp profile 1588v2

Use ptp profile 1588v2 to specify the IEEE 1588 version 2 PTP profile.

Use undo ptp profile to restore the default.

Syntax

ptp profile 1588v2

undo ptp profile

Default

No PTP profile is configured, and PTP is not running on the device.

Views

System view

Predefined user roles

network-admin

Usage guidelines

You must first specify a PTP profile before configuring PTP commands.

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

This command is applicable only to OCs and is available only after you specify a PTP profile and a PTP clock node type.

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.

Examples

# Specify the clock node type as OC 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 slave-only

Related commands

ptp force-state

ptp mode

ptp profile 1588v2

ptp source

Use ptp source to configure the source IP address for UDP-encapsulated multicast PTP messages.

Use undo ptp source to remove the specified source IP address for UDP-encapsulated multicast PTP messages.

Syntax

ptp source ip-address [ vpn-instance vpn-instance-name ]

undo ptp source ip-address [ vpn-instance vpn-instance-name ]

Default

No source IP address is configured for UDP-encapsulated multicast PTP messages.

Views

System view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the source IP address for UDP-encapsulated multicast PTP messages.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance used for communication between the local device and the peer device. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the peer device belongs to the public network, do not specify this option.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock type.

This command takes effect only for UDP-encapsulated multicast PTP messages.

Examples

# Specify 3.5.1.5 as the source address for UDP-encapsulated multicast PTP messages.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp source 3.5.1.5

Related commands

ptp mode

ptp profile 1588v2

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 value of the interval argument is 0 and the interval for sending Sync messages is 1 (20) second.

Views

Layer 2 Ethernet interface view

Layer 3 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. The value range for the interval argument is–1 to 1.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the Sync message sending interval to 2 (21) seconds on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp syn-interval 1

Related commands

ptp mode

ptp profile 1588v2

ptp { tod0 | tod1 }

Use ptp { tod0 | tod1 } to configure ToD input or output.

Use undo ptp { tod0 | tod1 } to restore the default delay correction value.

Syntax

ptp tod0 input [ delay input-delay-time ]

undo ptp tod0 input

ptp tod1 output [ delay output-delay-time ]

undo ptp tod1 output

Default

Whether to transmit or receive ToD signals is not configured.

Views

System view

Predefined user roles

network-admin

Parameters

tod0: Specifies the ToD 0 clock.

tod1: Specifies the ToD 1 clock.

input: Specifies the input direction for the device to receive ToD clock signals. It can be used only with the tod0 keyword, not the tod1 keyword.

input-delay-time: Specifies the delay correction value for receiving ToD clock signals. The value range for this argument is 0 to 2000000, in nanoseconds. The default value is 0.

output: Specifies the output direction for the device to send ToD clock signals as a master. It can be used only with the tod1 keyword, not the tod0 keyword.

output-delay-time: Specifies the delay correction value for sending ToD clock signals. The value range for this argument is 0 to 1600, in nanoseconds. The default value is 0.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

If you execute this command multiple times, the most recent configuration takes effect.

For the undo form of the command to take effect, first modify ToD input or output settings by executing this command.

Examples

# Set the delay correction value to 1000 nanoseconds for receiving ToD 0 clock signals.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp tod0 input delay 1000

Related commands

ptp mode

ptp profile 1588v2

ptp transport-protocol

Use ptp transport-protocol to specify UDP encapsulation for PTP messages.

Use undo ptp transport-protocol to restore the default.

Syntax

ptp transport-protocol udp

undo ptp transport-protocol

Default

PTP messages are IEEE 802.3/Ethernet-encapsulated.

Views

Layer 2 Ethernet interface view

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

udp: Specifies UDP encapsulation.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Specify UDP encapsulation for PTP messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp transport-protocol udp

Related commands

ptp mode

ptp profile 1588v2

ptp unicast-destination

Use ptp unicast-destination to configure the unicast destination IP address for UDP-encapsulated PTP messages.

Use undo ptp unicast-destination to restore the default.

Syntax

ptp unicast-destination ip-address

undo ptp unicast-destination ip-address

Default

No unicast destination IP address is configured for UDP-encapsulated PTP messages.

Views

Layer 3 Ethernet interface view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the unicast destination IP address for UDP-encapsulated PTP messages.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

This command takes effect only for UDP-encapsulated PTP messages.

Examples

# Configure 10.10.10.2 as the unicast destination address for UDP-encapsulated PTP messages.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp transport-protocol udp

[Sysname-Ten-GigabitEthernet3/1/1] ptp unicast-destination 10.10.10.2

Related commands

ptp mode

ptp profile 1588v2

ptp transport-protocol

ptp utc

Use ptp utc to set the correction date for the UTC.

Use undo ptp utc to remove the correction date configured for the UTC.

Syntax

ptp utc { leap59-date | leap61-date } date

undo ptp utc { leap59-date | leap61-date }

Default

No correction date is configured for the UTC.

Views

System view

Predefined user roles

network-admin

Parameters

leap59-date: Adjusts the UTC at the last minute (23:59) of the specified date so that the UTC is one second slower than the TAI.

leap61-date: Adjusts the UTC at the last minute (23:59) of the specified date so that the UTC is one second faster than the TAI.

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

This command is available only after you specify a PTP profile and a PTP clock node type.

Specify either the leap59-date or leap61-date keyword in this command. If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Assume the current date is August 8, 2010. Specify the clock node type as BC for the device. Adjust the UTC at the last minute of December 31, 2010 so that the UTC is one second slower than the TAI.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode bc

[Sysname] ptp utc leap59-date 2010/12/31

Related commands

ptp mode

ptp profile 1588v2

ptp utc offset

Use ptp utc offset to set the cumulative offset between the UTC and TAI.

Use undo ptp utc offset to restore the default.

Syntax

ptp utc offset utc-offset

undo ptp utc offset

Default

The cumulative offset between the UTC and TAI is 0 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

utc-offset: Sets the cumulative offset between the UTC and TAI. The value range for this argument is 0 to 999, in seconds.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Set the cumulative offset to 33 seconds between the UTC and TAI.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] ptp utc offset 33

Related commands

ptp mode

ptp profile 1588v2

ptp vlan

Use ptp vlan to specify a VLAN tag for PTP messages.

Use undo ptp vlan to restore the default.

Syntax

ptp vlan vlan-id [ dot1p dot1p-value ]

undo ptp vlan [ dot1p ]

Default

PTP messages do not have a VLAN tag.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Parameters

vlan vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.

dot1p dot1p-value: Specifies an 802.1p precedence for PTP messages. The value range is 0 to 7. The default is 7. The device uses the default value 7 regardless of your setting.

Usage guidelines

This command is available only after you specify a PTP profile and a PTP clock node type.

Examples

# Specify VLAN 2 and set the 802.1p precedence to 6 for PTP messages on Ten-GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] ptp profile 1588v2

[Sysname] ptp mode oc

[Sysname] interface ten-gigabitethernet 3/1/1

[Sysname-Ten-GigabitEthernet3/1/1] ptp vlan 2 dot1p 6

Related commands

ptp mode

ptp profile 1588v2

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 Ten-GigabitEthernet 3/1/1.

<Sysname> reset ptp statistics interface ten-gigabitethernet 3/1/1

Related commands

display ptp statistics

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网