Skip to content
Ask AI

SyncE Configuration

SyncE is a synchronization technique based on carrying and recovering frequency information from physical layer code streams. It can choose whether the device uses its own crystal frequency or the crystal frequency obtained from the peer-to-peer port. It is common to use SyncE in conjunction with the PTP technique to simultaneously meet the requirements of high accuracy in both frequency and phase, and to achieve nanosecond time synchronization.

The interface is master by default after enabling SyncE, and it is recommended that the interface SyncE mode is the same as PTP mode.

OperationCommandDescription
Enter the interface configuration viewinterface ethernet interface_num
Configure SyncE modesynce mode {master|slave}

When more than one interface enables SyncE, the interface with the highest priority is used as the selected.

OperationCommandDescription
Enter the interface configuration viewinterface ethernet interface_num
Configure SyncE prioritysynce priority {priority}Assignable value range 0-255, the smaller the value the higher the priority
OperationCommand
Display SyncE status of deviceshow synce status
Display Synce information of interfaceshow ptp interface status interface_num

Network requirements

In this network, Device B uses the crystal frequency of the peer Device A. Configure the interface on which Device B interconnects with Device A as slave. (When multiple interfaces interconnect, select the interface with the lowest priority to synchronize the clock signals).

Procedure

# Device A

sonic(config)# interface ethernet 1
sonic(config-if-1)# synce enable
sonic(config-if-1)# synce mode master

# Device B

sonic(config)# interface ethernet 1
sonic(config-if-1)# synce enable
sonic(config-if-1)# synce mode slave
sonic(config-if-1)# synce priority 10

Verify configuration

# Display SyncE information of interface on Device B

sonic# show ptp interface 1
SyncE Enable: true
SyncE Mode: slave
SyncE Priority: 10

# Display SyncE status on Device B

sonic# show synce status
Interface Enable Mode Priority Selected
----------- -------- ------ ---------- ------------
Ethernet1 true slave 10 selected