S300, S500, S1700, S2700, S5700, and S6700 V200R021C00, C01 Command Reference
This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Clock Synchronization Commands
- Command Support
- clock alarm-threshold frequency-offset
- clock clear
- clock ethernet-synchronization enable
- clock freq-deviation-detect enable
- clock map unk
- clock priority (interface view)
- clock source ptp priority (system view)
- clock run-mode
- clock source
- clock source-lost holdoff-time
- clock source ptp ssm (system view)
- clock ssm (interface view)
- clock ssm-control
- clock switch
- clock synchronization enable
- clock source ptp synchronization enable
- clock wtr
- display clock
- display clock source freq-deviation
clock alarm-threshold frequency-offset
Function
The clock alarm-threshold frequency-offset command configures an alarm threshold for frequency offset.
The undo clock alarm-threshold frequency-offset command restores the default alarm threshold of frequency offset.
By default, the alarm threshold of frequency offset is 9200 ppb.
Format
clock alarm-threshold frequency-offset frequency-offset-value
undo clock alarm-threshold frequency-offset [ frequency-offset-value ]
Parameters
Parameter | Description | Value |
---|---|---|
frequency-offset-value | Specifies the alarm threshold of frequency offset. | The value is an integer that ranges from 10 to 92, in 100 ppb. The default value is 92. |
Usage Guidelines
Frequency offset can be performed on a list of clock sources. If the frequency offset value of a clock source exceeds the specified threshold, the clock source is abnormal and does not participate in clock source selection. To configure an alarm threshold for frequency offset, run the clock alarm-threshold frequency-offset command.
clock clear
Parameters
Parameter | Description | Value |
---|---|---|
slot slot-id | Specifies a slot ID. | The value range depends on the device configuration. |
clock ethernet-synchronization enable
Function
The clock ethernet-synchronization enable command enables synchronous Ethernet.
The undo clock ethernet-synchronization enable command disables synchronous Ethernet.
By default, synchronous Ethernet is not enabled.
Usage Guidelines
To enable synchronous Ethernet, run the clock ethernet-synchronization enable command. After synchronous Ethernet is enabled on a switch, the switch selects the clock signal sent through Ethernet interfaces as the clock source.
The synchronous Ethernet function of an interface needs to be enabled both globally and on this interface. If the global synchronous Ethernet configuration is disabled, the synchronous Ethernet configuration on the interface is not deleted, but this function becomes unavailable.
clock freq-deviation-detect enable
Function
The clock freq-deviation-detect enable command enables frequency offset check on clock signals.
The undo clock freq-deviation-detect enable command disables frequency offset check on clock signals.
By default, frequency offset check on clock signals is not enabled.
Usage Guidelines
If the clock synchronization network has high requirements for frequency offset of clock signals, run the clock freq-deviation-detect enable command to enable frequency offset check. After this function is enabled, the system performs frequency offset check on clock signals. If the frequency offset value exceeds the specified threshold, the system considers that the clock source is unreliable and triggers another automatic clock source selection.
Frequency offset check on a clock source helps determine whether the quality of the clock source is good or not. If the frequency offset value of a clock source exceeds the specified threshold, the system clock does not trace this clock source any more. To configure the range of frequency offset check, run the clock alarm-threshold frequency-offset frequency-offset-value command.
clock map unk
Function
The clock map unk command maps a clock source with the SSM quality level of UNK to a new SSM quality level.
Parameters
Parameter | Description | Value |
---|---|---|
prc | Indicates G.811 clock signals with the SSM quality level of PRC. | - |
ssua | Indicates G.812 transit node clock signals with the SSM quality level of SSUA. | - |
ssub | Indicates G.812 local node clock signals with the SSM quality level of SSUB. | - |
sec | Indicates SDH clock source signals with the SSM quality level of SEC. | - |
dnu | Indicates that the clock with the SSM quality level of DNU cannot function as a clock source. | - |
Usage Guidelines
If the SSM quality level of an upstream clock source is UNK, to allow switches to trace this clock source, run the clock map unk command to map the upstream clock source to a new SSM quality level. By default, a clock source with the SSM quality level of UNK is mapped to the SSM quality level of DNU. In this case, if SSM control is enabled also, the clock source does not participate in clock source selection.
By default, when SSM control is enabled, the clock source with the SSM quality level of UNK does not participate in clock source selection.
clock priority (interface view)
Function
The clock priority command sets the priority of a clock source.
The undo clock priority command restores the default priority of a clock source.
By default, the priority of a clock source is 0.
Parameters
Parameter | Description | Value |
---|---|---|
priority-value | Specifies the priority of a clock source. | The value is an integer that ranges from 1 to 255. A smaller value indicates a higher priority. |
Usage Guidelines
By default, the priority of a clock source is 0, indicating that the clock source does not participate in clock source selection.
In automatic clock source selection mode, a clock source can participate in clock source selection only when a priority is configured. In manual and forcible clock source selection modes, clock source switching can be performed regardless of the clock source priority. In this case, whether a priority is configured does not affect the switching result. To set the priority of a clock source, run the clock priority command.
clock source ptp priority (system view)
Function
The clock source ptp priority command sets the priority of a ptp clock source.
The undo clock source ptp priority command restores the default priority of a ptp clock source.
The default priority of a ptp clock source is 0.
Format
clock source ptp priority priority-value slot slot-id
undo clock source ptp priority slot slot-id
Parameters
Parameter | Description | Value |
---|---|---|
priority-value | Specifies the priority of a clock source. | The value is an integer that ranges from 1 to 255. The default value is 0. A smaller value indicates a higher priority. |
slot slot-id | Specifies a slot ID. | The value range depends on the device configuration. |
Usage Guidelines
When PTP is enabled and the PTP clock is a slave clock, the frequency of the PTP clock can be used as a line clock to participate in clock source selection.
In automatic clock source selection mode, a clock source can participate in clock source selection only when a priority is configured. In manual and forcible clock source selection modes, clock source switching can be performed regardless of the clock source priority. In this case, whether a priority is configured does not affect the switching result. To set the priority of a clock source, run the clock source priority command.
clock run-mode
Function
The clock run-mode command configures a clock node to work in free, hold, or normal mode.
By default, a clock node works in normal mode.
Parameters
Parameter | Description | Value |
---|---|---|
free | Indicates that a clock node works in free mode. | - |
hold | Indicates that a clock node works in hold mode. | - |
normal | Indicates that a clock node works in normal mode. | - |
slot slot-id | Specifies a slot ID. | The value range depends on the device configuration. |
Usage Guidelines
- In free mode, a clock node does not select a clock source using the clock source selection algorithm.
- In hold mode, a clock node retains the locked frequency.
- In normal mode, a clock node selects a clock source using the clock source selection algorithm. If no clock source is available, the clock node automatically enters the free or hold mode.
clock source
Function
The clock source command sets the clock source selection mode to manual or forcible and specifies the master clock source.
By default, the automatic clock source selection mode is used.
Format
clock { manual | force } source { ptp slot slot-id | interface interface-type interface-number }
Parameters
Parameter | Description | Value |
---|---|---|
manual | Indicates that the manual clock source selection mode is used. | - |
force | Indicates that the forcible clock source selection mode is used. | - |
ptp | Indicates that an PTP clock source is used as the clock source. | - |
interface interface-type interface-number | Specifies the input interface of the clock source.
|
- |
slot slot-id | Specifies the slot ID of the master clock source. | The value range depends on the device configuration. |
Usage Guidelines
To configure the clock source selection mode as manual or forcible, run the clock source command. In manual clock source selection mode, a clock source can be switched to a clock source with a higher SSM quality level, regardless of the clock source priority. In forcible clock source selection mode, a clock can be selected regardless of the SSM quality level and priority.
Precautions- The synchronous Ethernet function is enabled.
- The SSM quality level is the highest and not DNU.
- The status of the selected clock source is not abnormal or initial.
- The synchronous Ethernet function is enabled.
If a clock source in manual clock source selection mode does not meet conditions, the clock source automatically switches to the automatic clock source selection mode. If a clock source in forcible clock source selection mode does not meet conditions, for example, the clock source is abnormal, the clock source automatically switches to the hold mode. After the clock source is restored, it is automatically selected again.
A manually selected clock source is used temporarily and no configuration file is generated. To permanently use a clock source, use the forcible clock source selection mode.
The latest configuration of manual clock source selection overrides the previous configuration of manual clock source selection but not forcible clock source selection. The latest configuration of forcible clock source selection overrides the previous configuration of manual or forcible clock source selection.
clock source-lost holdoff-time
Function
The clock source-lost holdoff-time command configures the holdoff time for the system to consider a clock source lost.
By default, the holdoff time for the system to consider a clock source lost is 1000 ms.
Parameters
Parameter | Description | Value |
---|---|---|
value | Specifies the holdoff time for the system to consider a clock source lost. |
The value is an integer that ranges from 300 to 1800, in milliseconds. |
Usage Guidelines
The system considers a clock source lost after a specified holdoff time. Within this period, the system considers that the clock source exists. Setting the holdoff time can avoid some mistakes in determining the clock source caused by occasional signal jitter on the network. To set the holdoff time for the system to consider a clock source lost, run the clock source-lost holdoff-time command.
If clock source switching needs to be implemented as soon as possible, set holdoff-time to a small value. To prevent frequent clock source switching, set holdoff-time to a large value.
clock source ptp ssm (system view)
Function
The clock source ptp ssm command configures the SSM quality level of a clock source.
The undo clock source ptp ssm command restores the default SSM quality level of a clock source.
By default, the SSM quality level of a clock source is unknown.
Format
clock source ptp ssm { unk | prc | ssua | ssub | sec | dnu } slot slot-id
undo clock source ptp ssm slot slot-id
Parameters
Parameter | Description | Value |
---|---|---|
ptp | Indicates a PTP clock source. | - |
dnu | Indicates that the clock source is unavailable. | - |
prc | Indicates G.811 clock signals with the SSM quality level of PRC. | - |
sec | Indicates SDH clock source signals with the SSM quality level of SEC. | - |
ssua | Indicates G.812 transit node clock signals with the SSM quality level of SSUA. | - |
ssub | Indicates G.812 local node clock signals with the SSM quality level of SSUB. | - |
unk | Indicates clock signals with unknown synchronization quality. | - |
slot slot-id | Specifies a slot ID. | The value range depends on the device configuration. |
Usage Guidelines
When SSM control is enabled using the clock ssm-control on command, an SSM quality level needs to be specified for the clock source on an interface. To set the SSM quality level of a clock source, run the clock source ptp ssm command.
In switch stacking scenarios, each switch independently runs synchronous Ethernet and PTP. Therefore, this command needs to be configured for the stacked switch in each slot.
clock ssm (interface view)
Function
The clock ssm command sets the SSM quality level of a clock source.
The undo clock ssm command cancels the configured SSM priority level of a clock source.
By default, no SSM quality level is configured for a clock source. The SSM quality level of a line clock source is transmitted from the peer device.
Parameters
Parameter | Description | Value |
---|---|---|
dnu | Indicates that the clock source is unavailable. | - |
prc | Indicates G.811 clock signals with the SSM quality level of PRC. | - |
sec | Indicates SDH clock source signals with the SSM quality level of SEC. | - |
ssua | Indicates G.812 transit node clock signals with the SSM quality level of SSUA. | - |
ssub | Indicates G.812 local node clock signals with the SSM quality level of SSUB. | - |
unk | Indicates clock signals with unknown synchronization quality. | - |
Usage Guidelines
When SSM control is enabled on a clock source using the clock ssm-control on command in the system view, an SSM quality level needs to be specified for the clock source on an interface. To set the SSM quality level of a clock source, run the clock ssm command. In switch stacking scenarios, each switch independently runs synchronous Ethernet and PTP. Therefore, this command needs to be configured for the stacked switch in each slot.
clock ssm-control
Function
The clock ssm-control command enables or disables SSM quality levels are used for automatic clock source selection.
By default, SSM quality levels are used for clock source selection.
Usage Guidelines
When the system clock works in automatic clock source selection mode, if SSM control is enabled, the system clock selects the clock source to trace based on SSM quality levels and then the priorities. If SSM control is disabled, the system clock selects the clock source to trace based on priorities. To configure SSM control, run the clock ssm-control command.
clock switch
Function
The clock switch command configures the recovery mode of a clock node.
By default, clock nodes work in revertive mode.
Parameters
Parameter | Description | Value |
---|---|---|
revertive | Indicates the revertive mode. | - |
non-revertive | Indicates the non-revertive mode. | - |
Usage Guidelines
- Revertive mode: Switching is performed if the new clock source has a higher SSM quality level. If the new clock source has the same SSM quality level but a higher priority than the old clock source, switching is also performed. In other situations, switching is not performed.
- Non-revertive mode: Switching is performed if the new clock source has a higher SSM quality level. If the new clock source has the same SSM quality level but a higher priority than the old clock source, switching is not performed. In other situations, switching is not performed.
clock synchronization enable
Function
The clock synchronization enable command enables clock synchronization.
The undo clock synchronization enable command disables clock synchronization.
By default, clock synchronization is not enabled.
clock source ptp synchronization enable
Function
The clock source ptp synchronization enable command enables clock synchronization of a PTP clock source.
The undo clock source ptp synchronization enable command disables clock synchronization from a PTP clock source.
By default, clock synchronization is not enabled for a PTP clock source.
Format
clock source ptp synchronization enable slot slot-id
undo clock source ptp synchronization enable slot slot-id
Parameters
Parameter | Description | Value |
---|---|---|
slot slot-id | Specifies a slot ID. | The value depends on the device configuration. |
Usage Guidelines
To enable clock synchronization for a PTP clock source, run the clock source ptp synchronization enable command. If a PTP clock source with clock synchronization enabled is selected as the clock source, frequency is transmitted through PTP messages.
An interface can participate in clock source selection after it is enabled with clock synchronization using the clock synchronization enable command.
clock wtr
Function
The clock wtr command sets the wait-to-restore (WTR) time for a clock source.
By default, the WTR time of a clock source is 5 minutes.
Parameters
Parameter | Description | Value |
---|---|---|
wtr-time | Specifies the WTR time of a clock source. | The value is an integer that ranges from 0 to 12, in minutes. |
Usage Guidelines
When a lost clock source is restored, the system waits for a period of 0 to 12 minutes before considering the clock source available. During this period, the system considers the clock source lost.
Setting the WTR time can avoid some mistakes in determining the clock source caused by occasional signal jitter on the network.
The default WTR time of a clock source is 5 minutes. Generally, you do not need to change the default value. If you want to view the clock source switching result during debugging, set the WTR time to 0.
display clock
Function
The display clock command displays synchronous Ethernet configurations or the attributes of a PTP clock source.
Parameters
Parameter | Description | Value |
---|---|---|
config | Displays the current clock configurations. | - |
source | Displays the attributes of all clock sources. | - |
ptp | Displays the attributes of a PTP clock source. | - |
slot slot-id | Displays configurations based on a slot ID. | The value range depends on the device configuration. |
Usage Guidelines
After a clock source is configured, run the display clock config command to view clock configurations. During routing maintenance, run the display clock source command to view attributes of the clock source being traced or all clock sources.
Example
# Display synchronous Ethernet configurations on a switch.
<HUAWEI> display clock config
ethernet synchronization :enable clock freq deviation detect:disable clock unk map :dnu system pll run mode :normal switch config sys pll :auto mode SSM control :on switch mode :revertive wtr :5min holdoff time :1000ms source config ptp Sync enable Pri(sys) :1 SSM :unk XGigabitEthernet0/0/4 Sync enable Pri(sys) :10 SSM :sec
Item |
Description |
---|---|
ethernet synchronization |
Whether synchronous Ethernet is enabled globally |
clock freq deviation detect |
Whether frequency offset check is enabled |
clock unk map |
SSM quality level mapped to the clock source with the SSM quality level of UNK |
system pll run mode |
PLL running mode |
switch config |
Switching configuration |
sys pll |
Clock source selection mode of the system phase-locked loop |
SSM control |
Whether the SSM quality level is used in clock source selection |
switch mode |
Switching mode |
wtr |
WTR time |
holdoff time |
Holdoff time |
source config |
Clock source configuration |
ptp |
PTP clock source |
XGigabitEthernet0/0/4 |
Line clock source |
Sync enable |
Whether clock synchronization is enabled |
Pri(sys) |
Priority |
SSM |
SSM quality level |
display clock source freq-deviation
Function
The display clock source freq-deviation command displays the frequency offset value of a clock source.
Parameters
Parameter | Description | Value |
---|---|---|
slot slot-id | Specifies a slot ID. | The value depends on the device configuration. |
Usage Guidelines
To view the frequency offset value of a clock source, run the display clock source freq-deviation command. If the frequency offset value is greater than or equal to the specified threshold, the frequency offset is abnormal. If the frequency offset value is less than the threshold, the frequency offset is normal.
Precautions- If frequency offset check is not enabled, this command also displays the frequency offset check result of the clock source. The check result, however, is not used for clock source selection.
- A clock source that does not pass the frequency offset check is tagged "--".
Example
# Display the frequency offset result of the clock source in slot 2.
<HUAWEI> display clock source freq-deviation slot 2
Frequence deviation detect: enable
Source Freq-deviation-value
----------------------------------------------------------
XGE2/0/4 -0.05ppm(normal)
Item |
Description |
---|---|
Source |
Interface clock source or PTP clock source with synchronous Ethernet enabled |
Freq-deviation-value |
Frequency offset value, which is in the format of symbol (negative sign only) + frequency offset value + unit (ppm) + frequency offset status. If the value is "---", the frequency offset check cannot be performed on the clock source. |
- Command Support
- clock alarm-threshold frequency-offset
- clock clear
- clock ethernet-synchronization enable
- clock freq-deviation-detect enable
- clock map unk
- clock priority (interface view)
- clock source ptp priority (system view)
- clock run-mode
- clock source
- clock source-lost holdoff-time
- clock source ptp ssm (system view)
- clock ssm (interface view)
- clock ssm-control
- clock switch
- clock synchronization enable
- clock source ptp synchronization enable
- clock wtr
- display clock
- display clock source freq-deviation