configuringclocking - cisco · commandoraction purpose •defaultfornorthamericaoroptioniiist1esfif...

66
Configuring Clocking This chapter provides information about configuring clocking on the Series Aggregation Services Router. Configuring Clocking, on page 1 Restrictions, on page 1 Configuring Network Clock for Router, on page 1 Configuring PTP for the Router, on page 16 Configuring Clocking This chapter provides information about configuring clocking on the Series Aggregation Services Router. Restrictions • The line to external option is not supported for external Synchronization Supply Unit (SSU). • Revertive and non-revertive modes work correctly only with two clock sources. • If copper Gigabit Ethernet port is selected as the input clock source, the link must be configured as a IEEE 802.3 link-slave, using synce state slave command. • Adaptive clocking is not supported in router. • The show network-clocks command is not supported in Router. • Do not use network-clock synchronization command while configuring 2dmm, as it is not supported. If you proceed with the unsupported configuration, it will show junk values. Configuring Network Clock for Router router supports time, phase and frequency awareness through ethernet networks; it also enables clock selection and translation between the various clock frequencies. If interoperates with devices that do not support synchronization, synchronization features can be disabled or partially enabled to maintain backward compatibility. The network clock can be configured in global configuration mode and interface configuration mode: Configuring Clocking 1

Upload: others

Post on 30-Dec-2019

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Configuring Clocking

This chapter provides information about configuring clocking on the Series Aggregation Services Router.

• Configuring Clocking, on page 1• Restrictions, on page 1• Configuring Network Clock for Router, on page 1• Configuring PTP for the Router, on page 16

Configuring ClockingThis chapter provides information about configuring clocking on the Series Aggregation Services Router.

Restrictions• The line to external option is not supported for external Synchronization Supply Unit (SSU).• Revertive and non-revertive modes work correctly only with two clock sources.• If copper Gigabit Ethernet port is selected as the input clock source, the link must be configured as aIEEE 802.3 link-slave, using synce state slave command.

• Adaptive clocking is not supported in router.• The show network-clocks command is not supported in Router.• Do not use network-clock synchronization command while configuring 2dmm, as it is not supported.If you proceed with the unsupported configuration, it will show junk values.

Configuring Network Clock for Routerrouter supports time, phase and frequency awareness through ethernet networks; it also enables clock selectionand translation between the various clock frequencies.

If interoperates with devices that do not support synchronization, synchronization features can be disabledor partially enabled to maintain backward compatibility.

The network clock can be configured in global configuration mode and interface configuration mode:

Configuring Clocking1

Page 2: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Configuring Network Clock in Global Configuration ModeComplete the following steps to configure the network clock in global configuration mode:

SUMMARY STEPS

1. enable2. configure terminal3. network-clock synchronization automatic4. network-clock eec {1 | 2 }5. network-clock synchronization ssm option {1 | 2 {GEN1 | GEN2 } }6. network-clock hold-off {0 | 50-10000} global7. network-clock external slot/card/port hold-off {0 | 50-10000}8. network-clock wait-to-restore 0-86400 global9. network-clock input-source priority { interface interface-name slot/port | top slot/port | {external

slot/card/port [t1{sf| efs| d4} | e1 [crc4| fas| cas[crc4] | 2048k | 10m]}}10. network-clock input-source priority controller [ t1 | e1] slot/port11. network-clock revertive12. network-clock output-source system priority {external slot/card/port [t1{sf| efs| d4} | e1 [crc4| fas|

cas[crc4] | 2048k | 10m]}}

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Enables G.781-based automatic clock selection process.G.781 is the ITU-T Recommendation that specifies thesynchronization layer functions.

network-clock synchronization automatic

Example:

Router(config)#network-clock synchronization automatic

Step 3

Configures the clocking system hardware with the desiredparameters. These are the options:

network-clock eec {1 | 2 }

Example:

Step 4

• For option 1, the default value is EEC-Option 1(2048).Router(config)# network-clock eec 1

• For option 2, the default value is EEC-Option 2(1544).

Configuring Clocking2

Configuring ClockingConfiguring Network Clock in Global Configuration Mode

Page 3: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Configures the router to work in a synchronized networkmode as described in G.781. The following are the options:

network-clock synchronization ssm option {1 | 2 {GEN1| GEN2 } }

Step 5

Example: • Option 1: refers to synchronization networks designedfor Europe (E1 framings are compatible with thisoption).Router(config)# network-clock synchronization ssm

option 2 GEN1• Option 2: refers to synchronization networks designedfor the US (T1 framings are compatible with thisoption). The default option is 1 and while choosingoption 2, you need to specify the second generationmessage (GEN2) or first generationmessage (GEN1).

Network-clock configurations that are notcommon between options need to be configuredagain.

Note

Configures general hold-off timer in milliseconds. Thedefault value is 300 milliseconds.

network-clock hold-off {0 | 50-10000} global

Example:

Step 6

Displays a warning message for values below300 ms and above 1800 ms.

NoteRouter(config)# network-clock hold-off75 global

Overrides hold-off timer value for external interface.network-clock external slot/card/port hold-off {0 |50-10000}

Step 7

Displays a warning message for values above1800 ms, as waiting longer causes the clock togo into the holdover mode.

NoteExample:

Router(config)# network-clock external3/1/1 hold-off 300

Sets the value for the wait-to-restore timer globally.network-clock wait-to-restore 0-86400 globalStep 8

Example: The wait to restore time is configurable in the range of 0to 86400 seconds. The default value is 300 seconds.

Router(config)# network-clock externalwait-to-restore 1000 global Ensure that you set the wait-to-restore values

above 50 seconds to avoid a timing flap.Caution

Configures a clock source line interface, an external timinginput interface, GPS interface, or a packet-based timing

network-clock input-source priority { interfaceinterface-name slot/port | top slot/port | {external

Step 9

recovered clock as the input clock for the system andslot/card/port [t1{sf| efs| d4} | e1 [crc4| fas| cas[crc4] |2048k | 10m]}} defines its priority. Priority is a number between 1 and

250.Example:

This command also configures the type of signal for anexternal timing input interface. These signals are:Router(config)# network-clock input-source 1

nterface top 0/12• T1 with Standard Frame format or Extended StandardFrame format.Example:

Example for GPS InterfaceRouter(config)# network-clock input-source 1external 0/0/0 10m

• E1 with or without CRC4• 2 MHz signal• Default for Europe or Option I is e1 crc4 if the signaltype is not specified.

Configuring Clocking3

Configuring ClockingConfiguring Network Clock in Global Configuration Mode

Page 4: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

• Default for North America or Option II is t1 esf ifsignal type is not specified.

The no version of the command reverses thecommand configuration, implying that thepriority has changed to undefined and the statemachine is informed.

Note

Adds the clock recovered from the serial interfaces as oneof the nominated sources, for network-clock selection.

network-clock input-source priority controller [ t1 |e1] slot/port

Example:

Step 10

Router(config)# network-clock input-source 10controller e1 0/12

Specifies whether or not the clock source is revertive.Clock sources with the same priority are alwaysnon-revertive. The default value is non-revertive.

network-clock revertive

Example:

Router(config)# network-clock revertive

Step 11

In non-revertive switching, a switch to an alternatereference is maintained even after the original referencerecovers from the failure that caused the switch. Inrevertive switching, the clock switches back to the originalreference after that reference recovers from the failure,independent of the condition of the alternate reference.

Allows transmitting the system clock to external timingoutput interfaces.

network-clock output-source system priority {externalslot/card/port [t1{sf| efs| d4} | e1 [crc4| fas| cas[crc4] |2048k | 10m]}}

Step 12

This command provides station clock output as per G.781.We recommend that you use the interface level commandExample:instead of global commands. Global command should

Router(config)#network-clock output-sourcesystem 55 external 0/0/0 t1 efs

preferably be used for interfaces that do not have aninterface sub mode. For more information on configuringnetwork clock in interface level mode, see ConfiguringNetwork Clock in Interface ConfigurationMode , on page4.

Configuring Network Clock in Interface Configuration ModeComplete the following steps to configure the network clock in interface configuration mode:

SUMMARY STEPS

1. enable2. configure terminal3. interface4. synchronous mode5. network-clock hold-off {0 | 50-10000}6. network-clock wait-to-restore 0-86400

Configuring Clocking4

Configuring ClockingConfiguring Network Clock in Interface Configuration Mode

Page 5: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Enters interface configuration mode.interface

Example:

Step 3

Router(config)# interface

Configures the ethernet interface to synchronous mode.synchronous modeStep 4

Example: This command is applicable to SynchronousEthernet capable interfaces. The default value isasynchronous mode.

Note

Router(config-if)# synchronous mode

Configures hold-off timer for interface. The default valueis 300 milliseconds.

network-clock hold-off {0 | 50-10000}

Example:

Step 5

Displays a warning for values below 300ms andabove 1800 ms.

NoteRouter(config-if)# network-clock hold-off 1000

Configures the wait-to-restore timer on the SyncE interface.network-clock wait-to-restore 0-86400Step 6

Example: Ensure that you set the wait-to-restore valuesabove 50 seconds to avoid timing flap.

Caution

Router(config-if)#network-clock wait-to-restore1000

Understanding SSM and ESMCNetwork Clocking uses these mechanisms to exchange the quality level of the clock between the networkelements:

Synchronization Status MessageNetwork elements use Synchronization Status Messages (SSM) to inform the neighboring elements about theQuality Level (QL) of the clock. The non-ethernet interfaces such as optical interfaces and SONET/T1/E1SPA framers use SSM. The key benefits of the SSM functionality are:

• Prevents timing loops.• Provides fast recovery when a part of the network fails.• Ensures that a node derives timing from the most reliable clock source.

Configuring Clocking5

Configuring ClockingUnderstanding SSM and ESMC

Page 6: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Ethernet Synchronization Messaging ChannelIn order to maintain a logical communication channel in synchronous network connections, ethernet relies ona channel called Ethernet Synchronization Messaging Channel (ESMC) based on IEEE 802.3 OrganizationSpecific Slow Protocol standards. ESMC relays the SSM code that represents the quality level of the EthernetEquipment Clock (EEC) in a physical layer.

The ESMC packets are received only for those ports configured as clock sources and transmitted on all theSyncE interfaces in the system. The received packets are processed by the clock selection algorithm and areused to select the best clock. The Tx frame is generated based on the QL value of the selected clock sourceand sent to all the enabled SyncE ports.

Clock Selection AlgorithmClock selection algorithm selects the best available synchronization source from the nominated sources. Theclock selection algorithm has a non-revertive behavior among clock sources with same QL value and alwaysselects the signal with the best QL value. For clock option 1, the default is revertive and for clock option 2,the default is non-revertive.

The clock selection process works in the QL enabled and QL disabled modes. When multiple selectionprocesses are present in a network element, all processes work in the same mode.

QL-enabled mode

In the QL-enabled mode, the following parameters contribute to the selection process:

• Quality level• Signal fail via QL-FAILED• Priority• External commands.

If no external commands are active, the algorithm selects the reference (for clock selection) with the highestquality level that does not experience a signal fail condition.

If multiple inputs have the same highest quality level, the input with the highest priority is selected.

For multiple inputs having the same highest priority and quality level, the existing reference is maintained (ifit belongs to this group), otherwise an arbitrary reference from this group is selected.

QL-disabled mode

In the QL-disabled mode, the following parameters contribute to the selection process:

• Signal failure• Priority• External commands

If no external commands are active, the algorithm selects the reference (for clock selection) with the highestpriority that does not experience a signal fail condition.

For multiple inputs having the same highest priority, the existing reference is maintained (if it belongs to thisgroup), otherwise an arbitrary reference from this group is selected.

Configuring Clocking6

Configuring ClockingEthernet Synchronization Messaging Channel

Page 7: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

ESMC behavior for Port ChannelsESMC is an Organization Specific Slow Protocol (OSSP) like LACP of port channel, sharing the same slowprotocol type, indicating it is in the same sub-layer as LACP. Hence, ESMC works on the link layer onindividual physical interfaces without any knowledge of the port channel. This is achieved by setting theegress VLAN as the default VLAN (VLAN 1) and the interface as a physical interface while sending out thepackets from the CPU. So none of the service instance, port channel, or VLAN rules apply to the packetpassing through the switch ASIC.

ESMC behavior for STP Blocked PortsESMCworks just above the MAC layer (below spanning tree protocol), and ignores spanning tree Port status.So, ESMC is exchanged even when the port is in the blocked state (but not disabled state). This is achievedby setting the egress VLAN as the default VLAN (VLAN 1) and the interface as a physical interface whilesending out packets from the CPU. So none of the service instance, port channel, or VLAN port state, or rulesapply to the packet passing through the switch ASIC.

Configuring ESMC in Global Configuration ModeComplete the following steps to configure ESMC in global configuration mode:

SUMMARY STEPS

1. enable2. configure terminal3. network-clock synchronization mode ql-enabled4. esmc process5. network-clock quality-level {tx | rx} value {interface interface-name slot/sub-slot/port | external

slot/sub-slot/port | gps slot/sub-slot | controller slot/sub-slot/port}

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the automatic selection process QL-enabledmode.

network-clock synchronization mode ql-enabled

Example:

Step 3

• QL is disabled by default.Router(config)# network-clock synchronizationmode ql-enabled

• ql-enabled mode can be used only when thesynchronization interface is capable to send SSM.

Configuring Clocking7

Configuring ClockingESMC behavior for Port Channels

Page 8: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Enables the ESMC process.esmc processStep 4

Example: ESMC can be enabled globally or at the sync-Einterface level

Note

Router(config)# esmc process

Forces the QL value for line or external timing output.network-clock quality-level {tx | rx} value {interfaceinterface-name slot/sub-slot/port | external

Step 5

slot/sub-slot/port | gps slot/sub-slot | controllerslot/sub-slot/port}

Example:

Router(config)# network-clock quality-levelrx qL-pRC external 0/0/0 e1 crc4

Configuring ESMC in Interface Configuration ModeComplete the following steps to configure ESMC in interface configuration mode:

SUMMARY STEPS

1. enable2. configure terminal3. interface4. esmc mode {tx | rx}5. network-clock source quality-level value {tx | rx}6. esmc mode ql-disabled

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Enters interface configuration mode.interface

Example:

Step 3

Router(config)# interface

Configuring Clocking8

Configuring ClockingConfiguring ESMC in Interface Configuration Mode

Page 9: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Enables the ESMC process at the interface level. The noform of the command disables the ESMC process.

esmc mode {tx | rx}

Example:

Step 4

Router(config-if)# esmc mode tx

Configures the QL value for ESMC on a GigabitEthernetport. The value is based on global interworking options:

network-clock source quality-level value {tx | rx}

Example:

Step 5

• If Option 1 is configured, the available values areQL-PRC, QL-SSU-A, QL-SSU-B, QL-SEC, andQL-DNU.

Router(config-if)# network-clock sourcequality-level <value> tx

• If Option 2 is configured with GEN 2, the availablevalues are QL-PRS, QL-STU, QL-ST2, QL-TNC,QL-ST3, QL-SMC, QL-ST4, and QL-DUS.

• If Option 2 is configured with GEN1, the availablevalues are QL-PRS, QL-STU, QL-ST2, QL-SMC,QL-ST4, and QL-DUS

Enables the QL-disabled mode.esmc mode ql-disabled

Example:

Step 6

Router(config-if)# esmc mode ql-disabled

What to do next

By disabling Rx on an interface, any ESMC packet received on the interface shall be discarded. By disablingTx on an interface, ESMC packets will not be sent on the interface; any pending Switching Message Delaytimers (TSM) are also stopped.

Note

Verifying ESMC ConfigurationUse the following commands to verify ESMC configuration:

• show esmc• show network-clock synchronization

Router#show esmc interface gigabitEthernet ?<0-1> GigabitEthernet interface number

Router#show esmc interface gigabitEthernet 0/10Interface: GigabitEthernet0/10Administative configurations:Mode: SynchronousESMC TX: EnableESMC RX: EnableQL TX: -QL RX: -

Operational status:Port status: UPQL Receive: QL-SEC

Configuring Clocking9

Configuring ClockingVerifying ESMC Configuration

Page 10: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

QL Transmit: QL-DNUQL rx overrided: -ESMC Information rate: 1 packet/secondESMC Expiry: 5 second

Router# show network-clocks synchronization

Symbols: En - Enable, Dis - Disable, Adis - Admin DisableNA - Not Applicable* - Synchronization source selected# - Synchronization source force selected& - Synchronization source manually switched

Automatic selection process : EnableEquipment Clock : 2048 (EEC-Option1)Clock Mode : QL-DisableESMC : DisabledSSM Option : 1T0 : GigabitEthernet0/4Hold-off (global) : 300 msWait-to-restore (global) : 300 secTsm Delay : 180 msRevertive : NoNominated InterfacesInterface SigType Mode/QL Prio QL_IN ESMC Tx ESMC RxInternal NA NA/Dis 251 QL-SEC NA NATo0/12 NA NA/En 1 QL-FAILED NA NAExternal 0/0/0 10M NA/Dis 2 QL-FAILED NA NAGi0/1 NA Sync/En 20 QL-FAILED - -*Gi0/4 NA Sync/En 21 QL-DNU - -T4 OutExternal Interface SigType Input Prio Squelch AISExternal 0/0/0 E1 CRC4 Internal 1 FALSE FALSE

Managing SynchronizationYou can manage the synchronization using the following management commands:

PurposeCommand

Forcefully selects a synchronization sourceirrespective of whether the source is availableand is within the range.

network-clock switch force {interface interface_nameslot/port | external slot/card/port}

Router(config)# network-clock switch force interfaceGigabitEthernet 0/1 t1

Manually selects a synchronization source,provided the source is available and is withinthe range.

network-clock switch manual {interface interface_nameslot/port | external slot/card/port}

Router(config)# network-clock switch manualinterface GigabitEthernet 0/1 t1

Clears the forced switch and manual switchcommands.

network-clock clear switch {t0 | external slot/card/port [10m| 2m]}

Router(config)# network-clock clear switch t0

Configuring Clocking10

Configuring ClockingManaging Synchronization

Page 11: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Synchronization ExampleConfiguration for QL-disabled mode clock selection

network-clock synchronization automaticnetwork-clock input-source 1 interface ToP0/12network-clock input-source 2 External 0/0/0 10mnetwork-clock input-source 20 interface GigabitEthernet0/1network-clock input-source 21 interface GigabitEthernet0/4network-clock output-source system 1 External 0/0/0 e1 crc4!interface GigabitEthernet0/1synchronous modesynce state slave!interface GigabitEthernet0/4negotiation autosynchronous modesynce state slaveend

GPS Configuration

10MHz signalnetwork-clock input-source 1 External 0/0/0 10m2M signalnetwork-clock input-source 1 External 0/0/0 2048K

Configuring Synchronous Ethernet for Copper PortsYou can configure synchronization on the copper ports using the following commands:

PurposeCommand

Configures synchronous ethernet copper port as slave.Router(config-if)# synce state slave

Configures synchronous ethernet copper port as master.Router(config-if)# synce state master

Synchronization on the ethernet copper port is not supported for 10 Mbps speed.Note

Verifying the Synchronous Ethernet configurationUse the show network-clock synchronization command to display the sample output.

Router# show network-clocks synchronization

Symbols: En - Enable, Dis - Disable, Adis - Admin DisableNA - Not Applicable* - Synchronization source selected# - Synchronization source force selected& - Synchronization source manually switched

Automatic selection process : Enable

Configuring Clocking11

Configuring ClockingSynchronization Example

Page 12: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Equipment Clock : 2048 (EEC-Option1)Clock Mode : QL-DisableESMC : DisabledSSM Option : 1T0 : GigabitEthernet0/4Hold-off (global) : 300 msWait-to-restore (global) : 300 secTsm Delay : 180 msRevertive : NoNominated InterfacesInterface SigType Mode/QL Prio QL_IN ESMC Tx ESMC RxInternal NA NA/Dis 251 QL-SEC NA NATo0/12 NA NA/En 1 QL-FAILED NA NAExternal 0/0/0 10M NA/Dis 2 QL-FAILED NA NAGi0/1 NA Sync/En 20 QL-FAILED - -*Gi0/4 NA Sync/En 21 QL-DNU - -T4 OutExternal Interface SigType Input Prio Squelch AISExternal 0/0/0 E1 CRC4 Internal 1 FALSE FALSE

Use the show network-clock synchronization detail command to display all details of network-clocksynchronization parameters at the global and interface levels.

Router# show network-clocks synchronization detailSymbols: En - Enable, Dis - Disable, Adis - Admin Disable

NA - Not Applicable* - Synchronization source selected# - Synchronization source force selected& - Synchronization source manually switched

Automatic selection process : EnableEquipment Clock : 2048 (EEC-Option1)Clock Mode : QL-DisableESMC : DisabledSSM Option : 1T0 : External 0/0/0 10mHold-off (global) : 300 msWait-to-restore (global) : 0 secTsm Delay : 180 msRevertive : YesForce Switch: FALSEManual Switch: FALSENumber of synchronization sources: 3sm(netsync NETCLK_QL_DISABLE), running yes, state 2ALast transition recorded: (begin)-> 2A (sf_change)-> 2ANominated InterfacesInterface SigType Mode/QL Prio QL_IN ESMC Tx ESMC RxInternal NA NA/Dis 251 QL-SEC NA NATo0/12 NA NA/En 3 QL-SEC NA NA*External 0/0/0 10M NA/Dis 1 QL-SEC NA NAGi0/11 NA Sync/En 2 QL-DNU - -T4 OutExternal Interface SigType Input Prio Squelch AISExternal 0/0/0 E1 CRC4 Internal 1 FALSE FALSEInterface:---------------------------------------------Local Interface: InternalSignal Type: NAMode: NA(Ql-disabled)SSM Tx: DISABLEDSSM Rx: DISABLEDPriority: 251QL Receive: QL-SECQL Receive Configured: -QL Receive Overrided: -

Configuring Clocking12

Configuring ClockingVerifying the Synchronous Ethernet configuration

Page 13: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

QL Transmit: -QL Transmit Configured: -Hold-off: 0Wait-to-restore: 0Lock Out: FALSESignal Fail: FALSEAlarms: FALSESlot Disabled: FALSESNMP input source index: 1SNMP parent list index: 0Local Interface: To0/12Signal Type: NAMode: NA(Ql-disabled)SSM Tx: DISABLEDSSM Rx: ENABLEDPriority: 3QL Receive: QL-SECQL Receive Configured: -QL Receive Overrided: -QL Transmit: -QL Transmit Configured: -Hold-off: 300Wait-to-restore: 0Lock Out: FALSESignal Fail: FALSEAlarms: FALSESlot Disabled: FALSESNMP input source index: 2SNMP parent list index: 0Local Interface: External 0/0/0Signal Type: 10MMode: NA(Ql-disabled)SSM Tx: DISABLEDSSM Rx: DISABLEDPriority: 1QL Receive: QL-SECQL Receive Configured: -QL Receive Overrided: -QL Transmit: -QL Transmit Configured: -Hold-off: 300Wait-to-restore: 0Lock Out: FALSESignal Fail: FALSEAlarms: FALSEActive Alarms : NoneSlot Disabled: FALSESNMP input source index: 3SNMP parent list index: 0Local Interface: Gi0/11Signal Type: NAMode: Synchronous(Ql-disabled)ESMC Tx: ENABLEDESMC Rx: ENABLEDPriority: 2QL Receive: QL-DNUQL Receive Configured: -QL Receive Overrided: -QL Transmit: -QL Transmit Configured: -Hold-off: 300Wait-to-restore: 0Lock Out: FALSESignal Fail: FALSE

Configuring Clocking13

Configuring ClockingVerifying the Synchronous Ethernet configuration

Page 14: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Alarms: FALSE NoneSlot Disabled: FALSESNMP input source index: 4SNMP parent list index: 0External 0/0/0 e1 crc4's Input:InternalLocal Interface: InternalSignal Type: NAMode: NA(Ql-disabled)SSM Tx: DISABLEDSSM Rx: DISABLEDPriority: 1QL Receive: QL-SECQL Receive Configured: -QL Receive Overrided: -QL Transmit: -QL Transmit Configured: -Hold-off: 300Wait-to-restore: 0Lock Out: FALSESignal Fail: FALSEAlarms: FALSESlot Disabled: FALSESNMP input source index: 1SNMP parent list index: 1

Troubleshooting Tips

Before you troubleshoot, ensure that all the network clock synchronization configurations are complete.Note

The following table provides the troubleshooting scenarios encountered while configuring the synchronousethernet.

Configuring Clocking14

Configuring ClockingTroubleshooting Tips

Page 15: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Table 1: Troubleshooting Scenarios for Synchronous Ethernet Configuration

SolutionProblem

• Verify that there are no alarms on the interfaces. Use the shownetwork-clock synchronization detail RP command to confirm.

• Use the show network-clock synchronization command to confirm ifthe system is in revertive mode or non-revertive mode and verify thenon-revertive configurations as shown in the following example:

Router# show network-clocks synchronization

Symbols: En - Enable, Dis - Disable, Adis - Admin DisableNA - Not Applicable* - Synchronization source selected# - Synchronization source force selected& - Synchronization source manually switchedAutomatic selection process : EnableEquipment Clock : 2048 (EEC-Option1)Clock Mode : QL-DisableESMC : DisabledSSM Option : 1T0 : GigabitEthernet0/4Hold-off (global) : 300 msWait-to-restore (global) : 300 secTsm Delay : 180 msRevertive : Yes<<<<If it is non revertive then it will show NOhere.

The above example does not show the complete command output.For complete command output, see the example in Verifying theSynchronous Ethernet configuration, on page 11.

Note

Reproduce the current issue and collect the logs using the debug network-clockerrors, debug network-clock event, and debug network-clock sm RPcommands.

We suggest you do not use these debug commands without TACsupervision. Contact Cisco technical support if the issue persists.

Note

Clock selection

Use thenetwork clock synchronization SSM[ option 1 | option 2] commandto confirm that there is no framing mismatch.

Use the show run interface [ option 1 | option 2] command to validate theframing for a specific interface. For the SSM option 1 framing should be an E1and for SSM option 2, it should be a T1.

Incorrect quality level (QL)values when you use theshow network-clocksynchronization detailcommand.

Interfaces with alarms or OOR cannot be the part of selection process even ifit has higher quality level or priority. OOR should be cleared manually. OORcan be cleared by clear platform timing oor-alarms command.

Error message%NETCLK-6-SRC_UPD:Synchronization source 10m0/0/0 status (CriticalAlarms(OOR)) is posted toall selection process isdisplayed.

Configuring Clocking15

Configuring ClockingTroubleshooting Tips

Page 16: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Troubleshooting ESMC ConfigurationUse the following debug commands to troubleshoot the PTP configuration on the router:

We suggest you do not use these debug commands without TAC supervision.Danger

PurposeCommand

Verify whether the ESMC packets aretransmitted and received with properquality-level values.

debug esmc error

debug esmc event

debug esmc packet [interface interface-name>]

debug esmc packet rx [interfaceinterface-name]

debug esmc packet tx [interfaceinterface-name]

Configuring PTP for the RouterEffective from Cisco IOS Release 15.4 (3) S, the Router supports PTP over Ethernet.

Before configuring PTP, you should set the system time to the current time. See Setting System Time toCurrent Time, on page 19 section for configuration details.

Note

This section contains the following topics:

• Restrictions, on page 17• Setting System Time to Current Time, on page 19• Configuring PTP Ordinary Clock, on page 20• Configuring PTP in Unicast Mode, on page 25• Configuring PTP in Unicast Negotiation Mode, on page 26• PTP Boundary Clock, on page 28• Verifying PTP modes, on page 32• Verifying PTP Configuration on the 1588V2 Slave in Unicast Mode, on page 35• Verifying PTP Configuration on the 1588V2 Master in Unicast Mode, on page 40• PTP Hybrid Clock, on page 44• SSM and PTP Interaction, on page 51• ClockClass Mapping, on page 51• PTP Redundancy, on page 52• Configuring ToD on 1588V2 Slave, on page 61• Troubleshooting Tips, on page 65

Configuring Clocking16

Configuring ClockingTroubleshooting ESMC Configuration

Page 17: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Restrictions• In IP mode only unicast static and unicast negotiation modes are supported. Multicast mode is notsupported.

• PTP over Ethernet is supported only in multicast mode.• PTP over Ethernet is not supported in telecom profiles.• PTP slave supports both single and two-step modes. PTP master supports only two-step mode.• VLAN 4094 is used for internal PTP communication; do not use VLAN 4094 in your network.

Effective from Cisco IOS Release 15.4 (3) S, VLAN 4093 is not reserved forinternal communication. However, every clock-port created picks a VLAN fromthe free pool list and reserves it internally for PTP usage only.

Note

• Effective from Cisco IOS Release 15.5 (2)S, SVI interface is supported. With this, you can use SVI orLoopback interface in router instead of ToP interface for configuring 1588 interface/IP address.

• Sync and Delay request rates should be above 32 pps. The optimum value is 64 pps.• Clock-ports start as master even when they are configured as slave-only. The initial or reset state of theclock is master. Therefore, the master clock must have higher priority (priority1, priority2) for the slaveto accept the master.

• IEEEv2BMCA is supported only in unicast negotiation mode.

• IEEEv2BMCA is not supported in multicast and unicast modes.

• You should use no transport ipv4 unicastcommand to remove an existing transport configuration beforechanging the transport configuration from Loopback to VLAN and vice versa.

• You should use no transport ipv4 unicast command when there is change in the IP address of theinterface on which PTP Master is configured.

• Effective from Cisco IOS Release 15.4 (3) S, VLAN id is reserved for each of the clock-port beingconfigured. Therefore, depending on number of clock-ports, maximum of 20 VLANs can get reservedfor internal purpose on Boundary Clock. For finding an internal VLAN for clock-port over PTPconfiguration, a free VLAN id is searched from 4093 in decreasing order. The free VLAN id remainsreserved as long as the corresponding clocking-port is configured and this VLAN id cannot be used forany other purpose.

• You should not use VLAN 4094 on your network as Vlan 4094 is reserved internally to process PTPmanagement packets.

• The 1pps port is enabled by default to receive output signal.

Note

Precision Time ProtocolThe Router supports the Precision Time Protocol (PTP) as defined by the IEEE 1588-2008 standard. PTPprovides accurate time synchronization over packet-switched networks.

The following table provides the description of the nodes within a PTP network.

Configuring Clocking17

Configuring ClockingRestrictions

Page 18: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

DescriptionNetwork Element

A network device physically attached to the primarytime source. All clocks are synchronized to thegrandmaster clock.

Grandmaster

An ordinary clock is a 1588 clock with a single PTPport that can operate in one of the following modes:

• Master mode—Distributes timing informationover the network to one or more slave clocks,thus allowing the slave to synchronize its clockto the master.

• Slave mode—Synchronizes its clock to a masterclock. You can enable the slave mode on up totwo interfaces simultaneously in order to connectto two different master clocks.

Ordinary Clock

The device participates in selecting the best masterclock and can act as the master clock if no betterclocks are detected.

Boundary clock starts its own PTP session with anumber of downstream slaves. The boundary clockmitigates the number of network hops and results inpacket delay variations in the packet network betweenthe Grand Master and Slave.

Boundary Clock

A transparent clock is a device or a switch thatcalculates the time it requires to forward traffic andupdates the PTP time correction field to account forthe delay, making the device transparent in terms oftime calculations.

Transparent Clock

IEEEV2 Best Master Clock Algorithm Overview1588-2008 is an IEEE standard for a Precision Clock Synchronization Protocol for Networked Measurementand Control Systems. Effective from Cisco IOS Release 15.4(3)S, the Router supports IEEEV2 Best MasterClock Algorithm (BMCA).

Information About Best Master Clock AlgorithmBMCA is used to select the master clock on each link, and ultimately, select the grandmaster clock for theentire Precision Time Protocol (PTP) domain. BCMA runs locally on each port of the ordinary and boundaryclocks, and selects the best clock on the link by comparing the local data sets with the received data from theannounce messages. BMCA also runs the state decision algorithm to determine the PTP port states.

The best master clock is selected based on the following parameters:

• Priority1—User-configurable value ranging from 0 to 255; lower value takes precedence

• ClockClass—Defines the traceability of time or frequency from the grandmaster clock

Configuring Clocking18

Configuring ClockingIEEEV2 Best Master Clock Algorithm Overview

Page 19: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

• ClockAccuracy—Defines the accuracy of a clock; lower value takes precedence

• OffsetScaledLogVariance—Defines the stability of a clock

• Priority2—User-configurable value ranging from 0 to 255; lower value takes precedence

• ClockIdentity—8-byte number, typically in IEEE-EUI64 format, to uniquely identify a clock

By changing the user-configurable values, network administrators can influence the way the grandmasterclock is selected. BMCA provides the mechanism that allows all PTP clocks to dynamically select the bestmaster clock (grandmaster) in an administration-free, fault-tolerant way, especially when the grandmasterclocks changes.

The following figure shows a sample IEEEV2 BMCA topology.Figure 1: Sample IEEEV2 BMCA Topology

The Router supports IEEEv2 BMCA in following scenarios:

• IEEEv2BMCA with Slave Ordinary Clock

• IEEEv2BMCA with Hybrid Ordinary Clock

• IEEEv2BMCA with Boundary Clock

• IEEEv2BMCA with Hybrid Boundary clock

For more information on configuring the BMCA in ordinary and boundary clocks, see Configuring PTPOrdinary Clock, on page 20 and PTP Boundary Clock, on page 28.

Setting System Time to Current TimeTo set the system time to the current time before configuring PTP, complete the steps given below:

Configuring Clocking19

Configuring ClockingSetting System Time to Current Time

Page 20: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand

Sets the hardware clock.

• hh : mm : ss—RCurrent time in hours (using 24-hournotation), minutes, and seconds.

• day—Current day (by date) in the month.• month—Current month (by name).• year—Current year (no abbreviation).

Router# calendar set hh : mm : ss day monthyear

Router# calendar set 09:00:00 6 Feb 2013

Synchronizes the system clock with the calendar time.Router# clock read-calendar

Verifies the clock setting.Router# show clock

Configuring PTP Ordinary ClockThe following sections describe how to configure a PTP ordinary clock.

Configuring Master Ordinary ClockComplete the following steps to configure the a master ordinary clock:

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock ordinary domain domain4. priority1 priority-value5. priority2 priority-value6. clock-port port-namemaster7. Do one of the following:

• transport ipv4 unicast interface interface-type interface-number• transport ethernet multicast bridge-domain bridge-id

8. clock-destination clock-ip-address9. sync interval interval10. announce interval interval11. end

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Configuring Clocking20

Configuring ClockingConfiguring PTP Ordinary Clock

Page 21: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP clock as an ordinary clock and entersclock configuration mode.

ptp clock ordinary domain domain

Example:

Step 3

• domain—The PTP clocking domain number. Therange is from 0 to 127.Router(config)# ptp clock ordinary domain 0

(Optional) Sets the preference level for a clock.priority1 priority-valueStep 4

Example: • priority-value—The range is from 0 to 255. Thedefault is 128.

Router(config-ptp-clk)# priority1 4

(Optional) Sets a secondary preference level for a clock.The priority2 value is considered only when the router is

priority2 priority-value

Example:

Step 5

unable to use priority1 and other clock attributes to selecta clock.

Router(config-ptp-clk)# priority2 8

• priority-value—The range is from 0 to 255. Thedefault is 128.

Sets the clock port to PTP master and enters clock portconfiguration mode. In master mode, the port exchangestiming packets with PTP slave devices.

clock-port port-namemaster

Example:

Router(config-ptp-clk)# clock-port Master master

Step 6

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Do one of the following:Step 7

• transport ipv4 unicast interface interface-typeinterface-number • interface-type—The type of the interface.

• interface-number—The number of the interface.• transport ethernet multicast bridge-domainbridge-id Configures a bridge domain.

Example: • bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.Router(config-ptp-port)# transport ipv4

unicast interface loopback 0

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported. The option of usingdynamic IP for PTP over VLAN is generallymeant for a Slave interface. Though theimplementation supports dynamic IP assignmenton the PTP master, you must configure thedynamically assigned IP in “clock source”command on the PTP Slave.

Note

Configuring Clocking21

Configuring ClockingConfiguring Master Ordinary Clock

Page 22: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Specifies the IP address of a clock destination when therouter is in PTP master mode.

clock-destination clock-ip-address

Example:

Step 8

Router(config-ptp-port)# clock-destination 8.8.8.1

(Optional) Specifies the interval used to send PTPsynchronization messages. The intervals are set using logbase 2 values. The router supports the following values:

sync interval interval

Example:

Router(config-ptp-port)# sync interval -5

Step 9

• -5—1 packet every 1/32 seconds, or 32 packets persecond.

• -6—1 packet every 1/64 seconds, or 64 packets persecond.

The default is -6.

(Optional) Specifies the interval for PTP announcemessages. The intervals are set using log base 2 values, asfollows:

announce interval interval

Example:

Router(config-ptp-port)# announce interval 2

Step 10

• 4—1 packet every 16 seconds.• 3—1 packet every 8 seconds.• 2—1 packet every 4 seconds.• 1—1 packet every 2 seconds.• 0—1 packet every second (default).

Exits clock port configuration mode and enters privilegedEXEC mode.

end

Example:

Step 11

Router(config-ptp-port)# end

Configuring Slave Ordinary ClockComplete the following steps to configure a slave ordinary clock:

PTP redundancy is an implementation on different clock nodes by which the PTP slave clock node interactswith multiple master ports such as grand master, boundary clock nodes, and so on. A new servo mode isdefined under PTP to support high PDV scenarios (when the PDVs exceed G.8261 standard profiles). Youshould use the servo mode high-jitter command to enable this mode on the PTP slave. In servo mode,convergence time would be longer than usual, as this mode is meant only for frequency synchronization.

Note

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock ordinary domain domain

Configuring Clocking22

Configuring ClockingConfiguring Slave Ordinary Clock

Page 23: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

4. clock-port port-name slave5. transport ipv4 unicast interface interface-type interface-number or•

• transport ethernet multicast bridge-domain bridge-id

6. clock source source-address priority7. clock source source-address8. announce timeout value9. delay-req interval interval10. sync interval interval11. end

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP clock as an ordinary clock and entersclock configuration mode.

ptp clock ordinary domain domain

Example:

Step 3

Router(config)# ptp clock ordinary domain 0

Sets the clock port to PTP slave mode and enters clockport configurationmode. In slavemode, the port exchangestiming packets with a PTP master clock.

clock-port port-name slave

Example:

Router(config-ptp-clk)# clock-port Slave slave

Step 4

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Step 5 • transport ipv4 unicast interface interface-typeinterface-number or

• transport ethernet multicast bridge-domainbridge-id

• interface-type—Type of the interface, for example,loopback.

• interface-number—Number of the interface. Valuesrange from 0 to 2,14,74,83,647.

Example:Router(config-ptp-port)# transport ipv4 unicastinterface loopback 0 Configures a bridge domain.

• bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.

Effective with Cisco IOS Release 15.5(2)S,VLAN interface (with DHCP assigned IP orstatic IP) is also supported.

Note

Configuring Clocking23

Configuring ClockingConfiguring Slave Ordinary Clock

Page 24: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Specifies the address of a PTP master clock. You canspecify a priority value as follows:

clock source source-address priority

Example:

Step 6

• No priority value—Assigns a priority value of 0, thehighest priority.Router(config-ptp-port)# clock source 5.5.5.5

• 1—Assigns a priority value of 1.• 2—Assigns a priority value of 2.• 3—Assigns a priority value of 3.

Repeat this step for each additional master clock. You canconfigure up to four master clocks.

Priority is used as an index for the configuredclock sources and is not a criteria for theBMCA.

Note

Specifies the address of a PTP master clock.clock source source-address

Example:

Step 7

Router(config-ptp-port)# clock source 8.8.8.1

(Optional) Specifies the number of PTP announcementintervals before the session times out.

announce timeout value

Example:

Step 8

• value—The range is from 1 to 10. The default is 3.Router(config-ptp-port)# announce timeout 8

(Optional) Configures the minimum interval allowedbetween PTP delay request messages.

delay-req interval interval

Example:

Step 9

The intervals are set using log base 2 values, as follows:Router(config-ptp-port)# delay-req interval 1 • 5—1 packet every 32 seconds

• 4—1 packet every 16 seconds• 3—1 packet every 8 seconds• 2—1 packet every 4 seconds• 1—1 packet every 2 seconds• 0—1 packet every second• -1—1 packet every 1/2 second, or 2 packets persecond

• -2—1 packet every 1/4 second, or 4 packets persecond

• -3—1 packet every 1/8 second, or 8 packets persecond

• -4—1 packet every 1/16 seconds, or 16 packets persecond.

• -5—1 packet every 1/32 seconds, or 32 packets persecond.

• -6—1 packet every 1/64 seconds, or 64 packets persecond.

Configuring Clocking24

Configuring ClockingConfiguring Slave Ordinary Clock

Page 25: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

• -7—1 packet every 1/128 seconds, or 128 packets persecond.

The default is -6.

(Optional) Specifies the interval used to send PTPsynchronization messages. The intervals are set using logbase 2 values. The router supports the following values:

sync interval interval

Example:

Router(config-ptp-port)# sync interval -5

Step 10

• -5—1 packet every 1/32 seconds, or 32 packets persecond.

• -6—1 packet every 1/64 seconds, or 64 packets persecond.

The default is -6.

Exits clock port configuration mode and enters privilegedEXEC mode.

end

Example:

Step 11

Router(config-ptp-port)# end

Configuring PTP in Unicast ModeIn unicast mode, the slave port and the master port need to know each other’s IP address. Unicast mode hasone to one mapping between the slave and the master. One master can have just one slave and vice-versa.Unicast mode is not a good option for scalability.

The command used for configuring on unicast mode is clock-port.

PurposeCommand

Configures Cisco ASR 901 on unicast mode. The following optionscan be configured with this command:

• Port Name• Port Role

Router(config-ptp-clk)# clock-port

Before configuring on different modes, you need to configure the loopback address. The following exampleshows the configuration of loopback address:

This loopback address cannot be used for any protocol other than PTP. If a VLAN interface is used insteadof loopback, the Vlan IP can be used by other protocols. It does not become dedicated to PTP.

Note

Router(config)#int loopbackRouter(config-if)#ip address 8.8.8.2 255.255.255.255Router(config-if)#no sh

Router#sh run int loopbackBuilding configuration...

Configuring Clocking25

Configuring ClockingConfiguring PTP in Unicast Mode

Page 26: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Current configuration : 72 bytes!interface loopbackip address 8.8.8.2 255.255.255.255end!

Ensure that this loopback interface is reachable (using ICMP ping) from remote locations, before assigningthe interface to PTP. Once the interface is assigned to PTP, it does not respond to ICMP pings. However, IfPTP is configured over VLAN, the interface responds to ICMP ping even after it is assigned to PTP.

Note

The following example shows the configuration of on the unicast mode:

Router# configure terminalRouter(config)# ptp clock ordinary domain 0

Router(config-ptp-clk) clock-port SLAVE slaveRouter(config-ptp-port)# transport ipv4 unicast interface loopback 10Router(config-ptp-port)# clock-source 8.8.8.1

Configuring PTP in Unicast Negotiation ModeIn unicast negotiation mode, master port does not know the slave port at the outset. Slave port sends negotiationTLV when active and master port figures out that there is some slave port for synchronization. Unicastnegotiation mode is a good option for scalability as one master has multiple slaves.

The command used for configuring router on unicast negotiation mode is clock-port.

PurposeCommand

Configures router on unicast negotiation mode. The following optionscan be configured with this command:

• Port Name• Port Role

Router(config-ptp-clk)# clock-port

The following example shows the configuration of router on the unicast negotiation mode:

Router# configure terminalRouter(config)# ptp clock ordinary domain 0Router(config-ptp-clk) clock-port SLAVE slaveRouter(config-ptp-port)# transport ipv4 unicast interface loopback 23 negotiationRouter(config-ptp-port)# clock-source 8.8.8.1

Router(config)# ptp clock ordinary domain 0Router(config-ptp-clk)# clock-port MASTER MasterRouter(config-ptp-port)# transport ipv4 unicast interface loopback 23 negotiationRouter(config-ptp-port)# sync interval <>Router (config-ptp-port)# announce interval <>

Configuring Clocking26

Configuring ClockingConfiguring PTP in Unicast Negotiation Mode

Page 27: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Configuring PTP in Multicast ModePTP over Ethernet uses multicast MAC addresses for communication of PTP messages between the slaveclock and the master clock. The master sends the announce, synchronization, and delay-response packetsusing the multicast method. The PTP slave receives the multicast announce packets from the master or multiplemasters and determines the best master using Best Master Clock Algorithm (BMCA). The slave receives andprocesses the synchronization from the selected master clock in the same bridge domain.

You should configure the transit nodes as boundary clocks so that the master and the slave clocks can beoperated in different bridge domains. This will control the multicast traffic on the network. The followingtopology is used for configuring PTP in multicast mode.Figure 2: PTP Topology in Multicast Mode

Before configuring Router on different modes, you need to configure the bridge domain. The followingexample shows the configuration of bridge domain and the PTP topology in multicast mode:Figure 3: Example for PTP Topology in Multicast Mode

RouterA #show run interface gigabitethernet0/3

Building configuration...Current configuration : 202 bytes!interface GigabitEthernet0/3no ip addressnegotiation autoservice instance 1 ethernetencapsulation dot1q 100rewrite ingress tag pop 1 symmetricbridge-domain 999!901end

RouterA# configure terminalRouterA(config)# ptp clock ordinary domain 0RouterA(config-ptp-clk)# clock-port MASTER master

Configuring Clocking27

Configuring ClockingConfiguring PTP in Multicast Mode

Page 28: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

RouterA(config-ptp-port)# transport ethernet multicast bridge-domain 999

RouterB# show run interface gigabitethernet0/3

Building configuration...Current configuration : 202 bytes!interface GigabitEthernet0/3no ip addressnegotiation autoservice instance 1 ethernetencapsulation dot1q 100rewrite ingress tag pop 1 symmetricbridge-domain 999

! end

RouterB# configure terminalRouterB(config)# ptp clock ordinary domain 0RouterB(config-ptp-clk)# clock-port SLAVE slaveRouterB(config-ptp-port)# transport ethernet multicast bridge-domain 999

For PTP over Ethernet support on Router, the PTP packets received from an external interface should besingle tagged with pop1 and double tagged with pop2. Also, the external interface on which the PTP packetsare received should have one of the following configurations on EVC.

pop 2pop 1No pop

——YesUntag

—Yes—Dot1q

Yes——QinQ

—Yes—Dot1ad

Yes——Dot1ad-dot1ad

———Default

—Yes—Priority

Note

PTP Boundary ClockA PTP boundary clock (BC) acts as a middle hop between a PTP master and PTP slave. It has multiple portswhich can act as a master or slave port as shown in Figure 4: PTP Boundary Clock, on page 29. A PTPboundary clock has one slave port and one or more master ports. A slave port acts as a slave to a remote PTPmaster, while a master port acts as a master to a remote PTP slave. A PTP boundary clock derives clock froma master/grand master clock (by acting as a slave) and sends the derived clock to the slaves connected to it(by acting as a master).

PTP boundary clock starts its own PTP session with a number of downstream slaves. The PTP boundary clockmitigates the number of network hops and results in packet delay variations in the packet network betweenthe grand master and slave.

Configuring Clocking28

Configuring ClockingPTP Boundary Clock

Page 29: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Figure 4: PTP Boundary Clock

The PTP boundary clock has the following capabilities:

• Support for up to 20 clock ports.• Simultaneous support for static and negotiated clock ports.• Support for up to 36 slaves and 1 master.

If all clock ports created in PTP boundary clock are static, supports only 1 master port and 19 slave ports.However, if one or more slave ports are configured in unicast negotiation mode, can support up to 36 slaves.

Note

• Support for dynamic addition and deletion of clock ports. This capability is supported only on boundaryclock master ports.

• Support for selecting boundary clock as the clock source.

Configuring PTP Boundary ClockComplete the following steps to configure the PTP boundary clock.

Before you begin

If PTP boundary clock is configured before installing the 1588BC license, remove the boundary clockconfiguration and reconfigure the boundary clock after the license installation.

Note

• The loopback address configured for PTP port can be used only for PTP functionality. This restrictionapplies only for PTP over loopback. VLAN IP can be used by other protocols.

• The loopback address configured for PTP port does not respond to pings. However, VLAN address (ifconfigured for PTP) will respond to pings.

• A clock port once configured as master cannot change to slave dynamically, and vice versa.• PTP boundary clock can be configured for only one domain.

Note

SUMMARY STEPS

1. enable

Configuring Clocking29

Configuring ClockingConfiguring PTP Boundary Clock

Page 30: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

2. configure terminal3. ptp clock boundary domain domain4. clock-port port-name slave5. Do one of the following:

• transport ipv4 unicast interface interface-type interface-number [negotiation]• transport ethernet multicast bridge-domain bridge-id

6. clock source source-address priority7. clock source source-address priority8. clock source source-address priority9. clock source source-address priority10. clock source source-address11. clock-port port-namemaster12. Do one of the following:

• transport ipv4 unicast interface interface-type interface-number [negotiation]• transport ethernet multicast bridge-domain bridge-id

13. exit

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP boundary clock and selects the bestmaster clock. It also acts as the master clock if no betterclocks are detected. Enters clock configuration mode.

ptp clock boundary domain domain

Example:

Router(config)# ptp clock boundary domain 0

Step 3

• domain—The PTP clocking domain number. Validvalues are from 0 to 127.

Sets the clock port to PTP slave mode and enters the clockport configurationmode. In slavemode, the port exchangestiming packets with a PTP master clock.

clock-port port-name slave

Example:

Router(config-ptp-clk)# clock-port SLAVE slave

Step 4

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Do one of the following:Step 5

• transport ipv4 unicast interface interface-typeinterface-number [negotiation] • interface-type—The type of the interface.

• interface-number—The number of the interface.

Configuring Clocking30

Configuring ClockingConfiguring PTP Boundary Clock

Page 31: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

• transport ethernet multicast bridge-domainbridge-id

• negotiation—(Optional) Enables dynamic discoveryof slave devices and their preferred format for syncinterval and announce interval messages.

Example:Configures a bridge domain.Router(config-ptp-port)# transport ipv4 unicast

interface loopback 0 negotiation • bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported.

Note

Specifies the address of a PTP master clock. You canspecify a priority value as follows:

clock source source-address priority

Example:

Step 6

• No priority value—Assigns a priority value of 0, thehighest priority.Router(config-ptp-port)# clock source 5.5.5.5

• 1—Assigns a priority value of 1.• 2—Assigns a priority value of 2.• 3—Assigns a priority value of 3.

Priority is used as an index for the configuredclock sources and is not a criteria for theBMCA.

Note

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 30.30.30.301

Step 7

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 2.2.2.2 2

Step 8

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 50.50.50.503

Step 9

Specifies the address of a PTP master clock.clock source source-address

Example:

Step 10

Router(config-ptp-port)# clock source133.133.133.133

Configuring Clocking31

Configuring ClockingConfiguring PTP Boundary Clock

Page 32: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Sets the clock port to PTP master mode. In master mode,the port exchanges timing packets with PTP slave devices.

clock-port port-namemaster

Example:

Step 11

The master clock-port does not establish aclocking session until the slave clock-port isphase aligned.

NoteRouter(config-ptp-port)# clock-port Master master

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Do one of the following:Step 12

• transport ipv4 unicast interface interface-typeinterface-number [negotiation] • interface-type—The type of the interface.

• interface-number—The number of the interface.• transport ethernet multicast bridge-domainbridge-id • negotiation—(Optional) Enables dynamic discovery

of slave devices and their preferred format for syncinterval and announce interval messages.

Example:Router(config-ptp-port)# transport ipv4 unicastinterface loopback 0 negotiation Configures a bridge domain.

• bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported. The option of usingdynamic IP for PTP over VLAN is generallymeant for a Slave interface. Though theimplementation supports dynamic IP assignmenton the PTP master, you must configure thedynamically assigned IP in “clock source”command on the PTP Slave.

Note

Exits clock port configuration mode.exit

Example:

Step 13

Router(config-ptp-port)# exit

Verifying PTP modes

Ordinary Clock

Use the show ptp clock dataset current command to display the sample output.

Router#show ptp clock dataset currentCLOCK [Ordinary Clock, domain 0]Steps Removed: 1Offset From Master: 0

Use the show ptp clock dataset default command to display the sample output.

Router#show ptp clock dataset default

Configuring Clocking32

Configuring ClockingVerifying PTP modes

Page 33: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

CLOCK [Ordinary Clock, domain 0]Two Step Flag: NoClock Identity: 0x0:A:8B:FF:FF:5C:A:80Number Of Ports: 1Priority1: 128Priority2: 128Domain Number: 0Slave Only: YesClock Quality:Class: 13Accuracy: Greater than 10sOffset (log variance): 52592

Use the show ptp clock dataset parent domain command to display the sample output.

Router# show ptp clock dataset parent domain 0CLOCK [Ordinary Clock, domain 0]Parent Stats: NoObserved Parent Offset (log variance): 65535Observed Parent Clock Phase Change Rate: 0Grandmaster Clock:Identity: 0x0:D0:4:FF:FF:B8:6C:0Priority1: 128Priority2: 128Clock Quality:Class: 13Accuracy: Within 1sOffset (log variance): 52592

Use the show ptp clock dataset time-properties domain command to display the sample output.

Router# show ptp clock dataset time-properties domain 0CLOCK [Ordinary Clock, domain 0]Current UTC Offset Valid: TRUECurrent UTC Offset: 33Leap 59: FALSELeap 61: FALSETime Traceable: TRUEFrequency Traceable: TRUEPTP Timescale: TRUETime Source: Internal Oscillator

Boundary Clock

Use the show ptp clock dataset current command to display the sample output.

Router# show ptp clock dataset currentCLOCK [Boundary Clock, domain 0]Steps Removed: 0Offset From Master: 0ns

Use the show ptp clock dataset default command to display the sample output.

Router# show ptp clock dataset defaultCLOCK [Boundary Clock, domain 0]Two Step Flag: NoClock Identity: 0x0:0:0:FF:FE:0:23:45

Configuring Clocking33

Configuring ClockingVerifying PTP modes

Page 34: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Number Of Ports: 1Priority1: 128Priority2: 128Domain Number: 0Slave Only: YesClock Quality:Class: 248Accuracy: Within 25usOffset (log variance): 22272

Use the show ptp clock dataset parent domain command to display the sample output.

Router# show ptp clock dataset parent domain 0CLOCK [Boundary Clock, domain 0]Parent Stats: NoObserved Parent Offset (log variance): 0Observed Parent Clock Phase Change Rate: 0Grandmaster Clock:Identity: 0x0:0:0:FF:FE:0:23:45Priority1: 128Priority2: 128Clock Quality:Class: 248Accuracy: Within 25usOffset (log variance): 22272

Use the show ptp clock dataset time-properties domain command to display the sample output.

Router# show ptp clock dataset time-properties domain 0CLOCK [Boundary Clock, domain 0]Current UTC Offset Valid: FALSECurrent UTC Offset: 34Leap 59: FALSELeap 61: FALSETime Traceable: FALSEFrequency Traceable: FALSEPTP Timescale: FALSETime Source: Internal Oscillator

Use the show ptp port running detail command to display the details of PTP boundary clock such as masterclock sources added, clock class, and variance.

Router# show ptp port running detail

Router#show ptp port running detail

PORT [SLAVE] CURRENT PTP MASTER PORT

PORT [SLAVE] PREVIOUS PTP MASTER PORT

PORT [SLAVE] LIST OF PTP MASTER PORTS

LOCAL PRIORITY 1Protocol Address: 22.22.22.22Clock Identity: 0x40:55:39:FF:FE:89:6F:40PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128

Configuring Clocking34

Configuring ClockingVerifying PTP modes

Page 35: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Priority2: 128Class: 58Accuracy: Within 25usOffset (log variance): 22272Steps Removed: 0

LOCAL PRIORITY 2Protocol Address: 66.66.66.66Clock Identity: 0x4C:0:82:FF:FE:C7:6F:1CPTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128Class: 58Accuracy: Within 25usOffset (log variance): 22272Steps Removed: 0

LOCAL PRIORITY 3Protocol Address: 77.77.77.77Clock Identity: 0x0:0:0:0:0:0:0:0PTSF Status: PTSF_SIGNAL_FAILAlarm In Stream: ALARM_ANNOUNCE_FAILClock Stream Id: 0Priority1: 0Priority2: 0Class: 0Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

Use the show ptp clock running domain command to display the sample output.

Router#show ptp clock running doman 0

PTP Boundary Clock [Domain 0]

State Ports Pkts sent Pkts rcvd Redundancy Model

PHASE_ALIGNED 2 324215 1257513 Hot standby

PORT SUMMARYPTP

MasterName Tx Mode Role Transport State Sessions PortAddr

SLAVE unicast slave To3/0/2 - 1 9.9.9.1MASTER unicast master To3/0/2 - 2

Verifying PTP Configuration on the 1588V2 Slave in Unicast ModeThe following examples help you verify the PTP configuration on the1588V2 slave.

Configuring Clocking35

Configuring ClockingVerifying PTP Configuration on the 1588V2 Slave in Unicast Mode

Page 36: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

The loopback interface assigned to PTP does not respond to ICMP pings. To check route availability, eitherdo it before assigning the interface to PTP, or remove PTP from the interface and then perform ICMP ping.For removing PTP, useno transport ipv4 unicast interface loopback interfacecommand. For PTP overVLAN, ping will work even when interface is assigned to PTP.

Note

The bridge state indicates the extension of previously known state which can be ignored or considered to benormal. The clock state can get into holdover from bridge state when the packet delay variation is high on thereceived PTP packets or the PTP connection is lost. This holdover state indicates that the clock cannot berecovered from PTP packets as the quality is poor.

Note

Example 1

Router# show ptp clock runn dom 0PTP Ordinary Clock [Domain 0]

State Ports Pkts sent Pkts rcvdACQUIRING 1 5308 27185

PORT SUMMARYName Tx Mode Role Transport State SessionsSLAVE unicast slave Lo10 - 1

SESSION INFORMATIONSLAVE [L010] [Sessions 1]Peer addr Pkts in Pkts out In Errs Out Errs3.3.3.3 27185 5308 0 0

Example 2

Router# show platform ptp stateflag = 2FLL State : 2 (Fast Loop)FLL Status Duration : 7049 (sec)Forward Flow Weight : 0.0Forward Flow Transient-Free : 900 (900 sec Window)Forward Flow Transient-Free : 3600 (3600 sec Window)Forward Flow Transactions Used: 23.0 (%)Forward Flow Oper. Min TDEV : 4254.0 (nsec)Forward Mafie : 38.0Forward Flow Min Cluster Width: 7550.0 (nsec)Forward Flow Mode Width : 21400.0 (nsec)Reverse Flow Weight : 100.0Reverse Flow Transient-Free : 900 (900 sec Window)Reverse Flow Transient-Free : 3600 (3600 sec Window)Reverse Flow Transactions Used: 200.0 (%)Reverse Flow Oper. Min TDEV : 487.0 (nsec)Reverse Mafie : 36.0Reverse Flow Min Cluster Width: 225.0 (nsec)Reverse Flow Mode Width : 450.0 (nsec)Frequency Correction : 257.0 (ppb)Phase Correction : 0.0 (ppb)Output TDEV Estimate : 1057.0 (nsec)Output MDEV Estimate : 1.0 (ppb)Residual Phase Error : 0.0 (nsec)Min. Roundtrip Delay : 45.0 (nsec)Sync Packet Rate : 65 (pkts/sec)

Configuring Clocking36

Configuring ClockingVerifying PTP Configuration on the 1588V2 Slave in Unicast Mode

Page 37: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Delay Packet Rate : 65 (pkts/sec)Forward IPDV % Below Threshold: 0.0Forward Maximum IPDV : 0.0 (usec)Forward Interpacket Jitter : 0.0 (usec)Reverse IPDV % Below Threshold: 0.0Reverse Maximum IPDV : 0.0 (usec)Reverse Interpacket Jitter : 0.0 (usec)

Verifying PTP Configuration on the 1588V2 Slave in Multicast ModeA typical configuration on a 1588V2 slave in the multicast mode is:

For a OC-Slave configured in PTP over ethernet in the multicast mode, clock source details cannot be specified.The show ptp port running detail command shows all the four master clock details. However, the detailsof those master clocks that are having a session with the slave clock will be constantly updated. In the followingexample two OC-MASTER clocks are having session with a OC-SLAVE.

Note

Router# show run | sec ptpptp clock ordinary domain 01pps-out 0 1 nsclock-port SLAVE slavetransport ethernet multicast bridge-domain 77

Router# show ptp port running detail

PORT [SLAVE] CURRENT PTP MASTER PORTProtocol Address: 4055.3989.728bClock Identity: 0x40:55:39:FF:FE:89:72:88

PORT [SLAVE] PREVIOUS PTP MASTER PORTProtocol Address: 0000.0000.0000Clock Identity: 0x0:0:0:0:0:0:0:0Reason:

PORT [SLAVE] LIST OF PTP MASTER PORTS

LOCAL PRIORITY 0Protocol Address: 4055.3989.78a3Clock Identity: 0x40:55:39:FF:FE:89:78:A0PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128Class: 248Accuracy: Within 25usOffset (log variance): 22272Steps Removed: 0

LOCAL PRIORITY 1Protocol Address: 4055.3989.728bClock Identity: 0x40:55:39:FF:FE:89:72:88PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128

Configuring Clocking37

Configuring ClockingVerifying PTP Configuration on the 1588V2 Slave in Multicast Mode

Page 38: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Class: 58Accuracy: Within 25usOffset (log variance): 22272Steps Removed: 0

LOCAL PRIORITY 2Protocol Address: UNKNOWNClock Identity: 0x0:0:0:0:0:0:0:0PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 0Priority2: 0Class: 0Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

LOCAL PRIORITY 3Protocol Address: UNKNOWNClock Identity: 0x0:0:0:0:0:0:0:0PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 0Priority2: 0Class: 0Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

Router# show run int gigabitEthernet 0/0Building configuration...

Current configuration : 183 bytes!interface GigabitEthernet0/0no ip addressnegotiation autoservice instance 1 ethernetencapsulation dot1q 33rewrite ingress tag pop 1 symmetricbridge-domain 77!end

Router# show run int gigabitEthernet 0/3Building configuration...

Current configuration : 297 bytes!interface GigabitEthernet0/3no ip addressnegotiation autosynchronous modesynce state slaveservice instance 2 ethernetencapsulation dot1q 33rewrite ingress tag pop 1 symmetricbridge-domain 77!service instance 17 ethernetencapsulation untagged

Configuring Clocking38

Configuring ClockingVerifying PTP Configuration on the 1588V2 Slave in Multicast Mode

Page 39: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

bridge-domain 17!end

Router# show platform ptp stats detailedStatistics for PTP clock 0###############################Number of ports : 1Pkts Sent : 4793Pkts Rcvd : 26531Pkts Discarded : 0

LAST FLL STATE###################Normal loop : Number of Transitions = 0 and Last transition at : 00:00:00.000 UTC Mon Jan1 1900Bridge state: Number of Transitions = 0 and Last transition at : 00:00:00.000 UTC Mon Jan1 1900Holdover state : Number of Transitions = 1 and Last transition at : 12:08:38.774 UTC ThuJun 19 2014

Statistics for PTP clock port 1##################################Pkts Sent : 4793Pkts Rcvd : 26531Pkts Discarded : 0Signals Rejected : 0Statistics for L2 Multicast packets###################################Multicast address : 011b.1900.0000Announces Sent : 0Syncs Sent : 0Follow Ups Sent : 0Delay Reqs Sent : 4793Delay Resps Sent : 0Signals Sent : 0Packets Discarded : 0

Statistics for peer 1########################L2 address : 4055.3989.728bAnnounces Sent : 0Announces Rcvd : 37Syncs Sent : 0Syncs Rcvd : 4752Follow Ups Sent : 0Follow Ups Rcvd : 4752Delay Reqs Sent : 0Delay Reqs Rcvd : 0Delay Resps Sent : 0Delay Resps Rcvd : 4753Mgmts Sent Rcvd : 0Mgmts Rcvd : 0Signals Sent : 0Signals Rcvd : 0Packets Discarded : 0

Statistics for peer 2########################L2 address : 4055.3989.78a3Announces Sent : 0Announces Rcvd : 31Syncs Sent : 0Syncs Rcvd : 4069

Configuring Clocking39

Configuring ClockingVerifying PTP Configuration on the 1588V2 Slave in Multicast Mode

Page 40: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Follow Ups Sent : 0Follow Ups Rcvd : 4069Delay Reqs Sent : 0Delay Reqs Rcvd : 0Delay Resps Sent : 0Delay Resps Rcvd : 4068Mgmts Sent Rcvd : 0Mgmts Rcvd : 0Signals Sent : 0Signals Rcvd : 0Packets Discarded : 0

Verifying PTP Configuration on the 1588V2 Master in Unicast ModeA typical configuration on a 1588V2 master is:

ptp clock ordinary domain 0tod 0/0 ciscoinput 1pps 0/0clock-port MASTER mastertransport ipv4 unicast interface Lo20 negotiation

Use the show ptp clock running domain command to display the PTP clock configuration:

Router# show ptp clock running domain 0PTP Ordinary Clock [Domain 0]

State Ports Pkts sent Pkts rcvdFREQ_LOCKED 1 1757273 599954PORT SUMMARY

Name Tx Mode Role Transport State Sessionso unicast master Lo20 Master 5

SESSION INFORMATIONo [Lo20] [Sessions 5]Peer addr Pkts in Pkts out In Errs Out Errs9.9.9.14 120208 344732 0 09.9.9.13 120159 344608 0 09.9.9.11 120148 343955 0 09.9.9.12 119699 342863 0 09.9.9.10 119511 342033 0 0

Use the show platform ptp stats command to display the PTP statistics:

Statistics for PTP clock 0###############################Number of ports : 1Pkts Sent : 1811997Pkts Rcvd : 619038Pkts Discarded : 0Statistics for PTP clock port 1##################################Pkts Sent : 1811997Pkts Rcvd : 619038Pkts Discarded : 0Signals Rejected : 0Statistics for peer 1########################IP addr : 9.9.9.14Pkts Sent : 355660Pkts Rcvd : 124008Statistics for peer 2

Configuring Clocking40

Configuring ClockingVerifying PTP Configuration on the 1588V2 Master in Unicast Mode

Page 41: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

########################IP addr : 9.9.9.13Pkts Sent : 355550Pkts Rcvd : 123973Statistics for peer 3########################IP addr : 9.9.9.11Pkts Sent : 354904Pkts Rcvd : 123972Statistics for peer 4########################IP addr : 9.9.9.12Pkts Sent : 353815Pkts Rcvd : 123525Statistics for peer 5########################IP addr : 9.9.9.10Pkts Sent : 352973Pkts Rcvd : 123326

Verifying PTP Configuration on the 1588V2 Master in Multicast ModeA typical configuration on a 1588V2 master is:

ptp clock boundary domain 0clock-port SLAVE slavetransport ipv4 unicast interface Lo45 negotiationclock source 40.40.40.1

clock-port MASTER mastertransport ethernet multicast bridge-domain 1

Use the show ptp clock running domain command to display the PTP clock configuration:

Router# show ptp clock running domain 0

PTP Boundary Clock [Domain 0]

State Ports Pkts sent Pkts rcvd Redundancy Mode

PHASE_ALIGNED 2 242559956 189887918 Track all

PORT SUMMARYPTP Master

Name Tx Mode Role Transport State Sessions Port Addr

SLAVE unicast slave Lo45 Slave 1 40.40.40.1MASTER mcast master Ethernet Master 1 -

SESSION INFORMATION

SLAVE [Lo45] [Sessions 1]

Peer addr Pkts in Pkts out In Errs Out Errs

40.40.40.1 132729502 44138439 0 0

MASTER [Ethernet] [Sessions 1]

Peer addr Pkts in Pkts out In Errs Out Errs

Configuring Clocking41

Configuring ClockingVerifying PTP Configuration on the 1588V2 Master in Multicast Mode

Page 42: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

4c00.8287.1d33 [BD 1 ] 960676 960676 0 0

Use the show platform ptp state command to display the PTP servo state:

FLL State : 3 (Normal Loop)FLL Status Duration : 687618 (sec)

Forward Flow Weight : 47.0Forward Flow Transient-Free : 900 (900 sec Window)Forward Flow Transient-Free : 3600 (3600 sec Window)Forward Flow Transactions Used: 200.0 (%)Forward Flow Oper. Min TDEV : 5.0 (nsec)Forward Mafie : 0.0Forward Flow Min Cluster Width: 15000.0 (nsec)Forward Flow Mode Width : 100.0 (nsec)

Reverse Flow Weight : 52.0Reverse Flow Transient-Free : 900 (900 sec Window)Reverse Flow Transient-Free : 3600 (3600 sec Window)Reverse Flow Transactions Used: 200.0 (%)Reverse Flow Oper. Min TDEV : 6.0 (nsec)Reverse Mafie : 0.0Reverse Flow Min Cluster Width: 7500.0 (nsec)Reverse Flow Mode Width : 100.0 (nsec)

Frequency Correction : 54.836 (ppb)Phase Correction : 0.0 (ppb)

Output TDEV Estimate : 6.0 (nsec)Output MDEV Estimate : 0.0 (ppb)

Residual Phase Error : 3.206 (nsec)Min. Roundtrip Delay : 14.0 (nsec)

Sync Packet Rate* : 64 (pkts/sec)Delay Packet Rate* : 64 (pkts/sec)

Forward IPDV % Below Threshold: 0.0Forward Maximum IPDV : 0.0 (usec)Forward Interpacket Jitter : 0.0 (usec)

Reverse IPDV % Below Threshold: 0.0Reverse Maximum IPDV : 0.0 (usec)Reverse Interpacket Jitter : 0.0 (usec)Note: The maximum rates for Sync and Delay packets will be approximately 64 pps.

Use the show platform ptp stats detailed command to display the PTP statistics:Router#sh platform ptp stats detailedStatistics for PTP clock 0###############################Number of ports : 2Pkts Sent : 242525543Pkts Rcvd : 189865083Pkts Discarded : 0

LAST FLL STATE###################Normal loop : Number of Transitions = 1 and Last transition at : 15:51:16.155 UTC Mon Apr21 2014Bridge state: Number of Transitions = 0 and Last transition at : 00:00:00.000 UTC Mon Jan1 1900

Configuring Clocking42

Configuring ClockingVerifying PTP Configuration on the 1588V2 Master in Multicast Mode

Page 43: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Holdover state : Number of Transitions = 0 and Last transition at : 00:00:00.000 UTC MonJan 1 1900

Statistics for PTP clock port 1##################################Pkts Sent : 44132739Pkts Rcvd : 132712363Pkts Discarded : 0Signals Rejected : 0

Statistics for peer 1########################IP address : 40.40.40.1Announces Sent : 0Announces Rcvd : 344686Syncs Sent : 0Syncs Rcvd : 44119383Follow Ups Sent : 0Follow Ups Rcvd : 44119383Delay Reqs Sent : 44119179Delay Reqs Rcvd : 0Delay Resps Sent : 0Delay Resps Rcvd : 44115351Mgmts Sent Rcvd : 0Mgmts Rcvd : 0Signals Sent : 13560Signals Rcvd : 13560Packets Discarded : 0

Statistics for PTP clock port 2##################################Pkts Sent : 198392804Pkts Rcvd : 57152720Pkts Discarded : 0Signals Rejected : 0Statistics for L2 Multicast packets###################################Multicast address : 011b.1900.0000Announces Sent : 343722Syncs Sent : 83733919Follow Ups Sent : 83733919Delay Reqs Sent : 0Delay Resps Sent : 0Signals Sent : 0Packets Discarded : 0

Statistics for peer 2########################L2 address : 4c00.8287.1d33Announces Sent : 0Announces Rcvd : 0Syncs Sent : 0Syncs Rcvd : 0Follow Ups Sent : 0Follow Ups Rcvd : 0Delay Reqs Sent : 0Delay Reqs Rcvd : 954979Delay Resps Sent : 954979Delay Resps Rcvd : 0Mgmts Sent Rcvd : 0Mgmts Rcvd : 0Signals Sent : 0Signals Rcvd : 0Packets Discarded : 0

Configuring Clocking43

Configuring ClockingVerifying PTP Configuration on the 1588V2 Master in Multicast Mode

Page 44: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

In Master node, the Delay Resps packet sent to a specific peer is a response to the Delay Reqs packet. Hence,the sh platform ptp stats detailed command displays the details of both the sent and received packets.

Note

PTP Hybrid ClockTo improve the clock quality, you can either improve the oscillator class or reduce the number of hops betweenthe master and the slave. In PTP hybrid mode, the oscillator class is improved by using a physical layer clock(sourced from a stratum-1 clock) instead of the available internal oscillator. The PTP hybrid mode is supportedfor ordinary clock (in slave mode only) and boundary clock.

Configuring a Hybrid Ordinary ClockComplete the following steps to configure a hybrid clocking in ordinary slave clock mode:

Before you begin

When configuring a hybrid clock, ensure that the frequency and phase sources are traceable to the samemasterclock.

• Hybrid mode is not supported when PTP ordinary clock is in the master mode.• Hybrid clock is not supported with ToP as network-clock. It needs a valid physical clock source, forexample, Sync-E.

Note

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock ordinary domain domain hybrid4. clock-port port-name slave5. Do one of the following:

• transport ipv4 unicast interface interface-type interface-number• transport ethernet multicast bridge-domain bridge-id

6. clock source source-address priority7. clock source source-address8. announce timeout value9. delay-req interval interval10. sync interval interval11. end

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Configuring Clocking44

Configuring ClockingPTP Hybrid Clock

Page 45: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP clock as an ordinary clock and entersclock configuration mode.

ptp clock ordinary domain domain hybrid

Example:

Step 3

• domain—The PTP clocking domain number. Validvalues are from 0 to 127.Router(config)# ptp clock ordinary domain 0

• hybrid—(Optional) Enables the PTP boundary clockto work in hybrid mode. Enables the hybrid clocksuch that the output of the clock is transmitted to theremote slaves.

Sets the clock port to PTP slave mode and enters clockport configurationmode. In slavemode, the port exchangestiming packets with a PTP master clock.

clock-port port-name slave

Example:

Router(config-ptp-clk)# clock-port Slave slave

Step 4

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Do one of the following:Step 5

• transport ipv4 unicast interface interface-typeinterface-number • interface-type—The type of the interface.

• interface-number—The number of the interface.• transport ethernet multicast bridge-domainbridge-id Configures a bridge domain.

Example: • bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.Router(config-ptp-port)# transport ipv4

unicast interface loopback 0

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported.

Note

Specifies the address of a PTP master clock. You canspecify a priority value as follows:

clock source source-address priority

Example:

Step 6

• No priority value—Assigns a priority value of 0, thehighest priority.Router(config-ptp-port)# clock source 5.5.5.5

• 1—Assigns a priority value of 1.• 2—Assigns a priority value of 2.• 3—Assigns a priority value of 3.

Repeat this step for each additional master clock. You canconfigure up to four master clocks.

Configuring Clocking45

Configuring ClockingConfiguring a Hybrid Ordinary Clock

Page 46: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Priority is used as an index for the configuredclock sources and is not a criteria for theBMCA.

Note

Specifies the address of a PTP master clock.clock source source-address

Example:

Step 7

Router(config-ptp-port)# clock source 8.8.8.1

(Optional) Specifies the number of PTP announcementintervals before the session times out.

announce timeout value

Example:

Step 8

• value—The range is from 1 to 10. The default is 3.Router(config-ptp-port)# announce timeout 8

(Optional) Configures the minimum interval allowedbetween PTP delay request messages.

delay-req interval interval

Example:

Step 9

The intervals are set using log base 2 values, as follows:Router(config-ptp-port)# delay-req interval 1 • 5—1 packet every 32 seconds

• 4—1 packet every 16 seconds• 3—1 packet every 8 seconds• 2—1 packet every 4 seconds• 1—1 packet every 2 seconds• 0—1 packet every second• -1—1 packet every 1/2 second, or 2 packets persecond

• -2—1 packet every 1/4 second, or 4 packets persecond

• -3—1 packet every 1/8 second, or 8 packets persecond

• -4—1 packet every 1/16 seconds, or 16 packets persecond.

• -5—1 packet every 1/32 seconds, or 32 packets persecond.

• -6—1 packet every 1/64 seconds, or 64 packets persecond.

• -7—1 packet every 1/128 seconds, or 128 packets persecond.

The default is -6.

(Optional) Specifies the interval used to send PTPsynchronization messages. The intervals are set using logbase 2 values. The router supports the following values:

sync interval interval

Example:

Router(config-ptp-port)# sync interval -5

Step 10

• -5—1 packet every 1/32 seconds, or 32 packets persecond.

• -6—1 packet every 1/64 seconds, or 64 packets persecond.

Configuring Clocking46

Configuring ClockingConfiguring a Hybrid Ordinary Clock

Page 47: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

The default is -6.

Exits clock port configuration mode and enters privilegedEXEC mode.

end

Example:

Step 11

Router(config-ptp-port)# end

Configuring a Hybrid Boundary ClockComplete the following steps to configure a hybrid clocking in PTP boundary clock mode.

Before you begin

When configuring a hybrid clock, ensure that the frequency and phase sources are traceable to the samemasterclock.

Hybrid clock is not supported with ToP as network-clock. It needs a valid physical clock source, for example,Sync-E.

Note

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock boundary domain domain hybrid4. clock-port port-name slave5. Do one of the following:

• transport ipv4 unicast interface interface-type interface-number [negotiation]• transport ethernet multicast bridge-domain bridge-id

6. clock source source-address priority7. clock source source-address8. clock-port port-namemaster9. transport ipv4 unicast interface interface-type interface-number [negotiation]10. exit

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Configuring Clocking47

Configuring ClockingConfiguring a Hybrid Boundary Clock

Page 48: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP boundary clock and enters clockconfiguration mode.

ptp clock boundary domain domain hybrid

Example:

Step 3

• domain—The PTP clocking domain number. Validvalues are from 0 to 127.Router(config)# ptp clock boundary domain 0 hybrid

• hybrid—(Optional) Enables the PTP boundary clockto work in hybrid mode. Enables the hybrid clocksuch that the output of the clock is transmitted to theremote slaves.

Sets the clock port to PTP slave mode and enters the clockport configurationmode. In slavemode, the port exchangestiming packets with a PTP master clock.

clock-port port-name slave

Example:

Router(config-ptp-clk)# clock-port SLAVE slave

Step 4

Specifies the transport mechanism for clocking traffic; youcan use IPv4 or Ethernet transport.

Do one of the following:Step 5

• transport ipv4 unicast interface interface-typeinterface-number [negotiation] • interface-type—The type of the interface.

• interface-number—The number of the interface.• transport ethernet multicast bridge-domainbridge-id • negotiation—(Optional) Enables dynamic discovery

of slave devices and their preferred format for syncinterval and announce interval messages.

Example:Router(config-ptp-port)# transport ipv4 unicastinterface loopback 0 negotiation Configures a bridge domain.

• bridge-id—Identifier for the bridge domain instance.The range is from 1 to 4094.

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported.

Note

Specifies the address of a PTP master clock. You canspecify a priority value as follows:

clock source source-address priority

Example:

Step 6

• No priority value—Assigns a priority value of 0, thehighest priority.Router(config-ptp-port)# clock source 5.5.5.5

• 1—Assigns a priority value of 1.• 2—Assigns a priority value of 2.• 3—Assigns a priority value of 3.

Repeat this step for each additional master clock. You canconfigure up to four master clocks.

Configuring Clocking48

Configuring ClockingConfiguring a Hybrid Boundary Clock

Page 49: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Priority is used as an index for the configuredclock sources and is not a criteria for theBMCA.

Note

Specifies the address of a PTP master clock.clock source source-address

Example:

Step 7

Router(config-ptp-port)# clock source133.133.133.133

Sets the clock port to PTP master mode. In master mode,the port exchanges timing packets with PTP slave devices.

clock-port port-namemaster

Example:

Step 8

The master clock-port does not establish aclocking session until the slave clock-port isphase aligned.

NoteRouter(config-ptp-port)# clock-port Master master

Sets port transport parameters.transport ipv4 unicast interface interface-typeinterface-number [negotiation]

Step 9

• interface-type—The type of the interface.Example: • interface-number—The number of the interface.

• negotiation—(Optional) Enables dynamic discoveryof slave devices and their preferred format for syncinterval and announce interval messages.

Router(config-ptp-port)# transport ipv4 unicastinterface Loopback 1 negotiation

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported. The option of usingdynamic IP for PTP over VLAN is generallymeant for a Slave interface. Though theimplementation supports dynamic IP assignmenton the PTP master, you must configure thedynamically assigned IP in “clock source”command on the PTP Slave.

Note

Exits clock port configuration mode.exitStep 10

Example: The hybrid clocking in PTP boundary clockmode will work as a PTP ordinary clock whenfrequency source is not selected.

Note

Router(config-ptp-port)# exit

The hybrid clock (HC) relies on an externalclock source for frequency recoverywhile phaseis recovered through PTP. Once the HC reachesthe normal or phase aligned state, and if theexternal frequency channel is active andtraceable to PRC, then the HC moves into thephase aligned state even when the PTP link isdown.

Note

Configuring Clocking49

Configuring ClockingConfiguring a Hybrid Boundary Clock

Page 50: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Verifying Hybrid modesUse the show running-config | section ptp command to display the sample output.

Router# show running-config | section ptpptp clock ordinary domain 20 hybridtime-properties gps timeScaleTRUE currentUtcOffsetValidTRUE leap59FALSE leap61FALSE 35clock-port SLAVE slavetransport ipv4 unicast interface Lo17clock source 17.17.1.1

Use the show ptp clock running domain command to display the sample output.

Router# show ptp clock running domainPTP Ordinary Clock [Domain 20] [Hybrid]

State Ports Pkts sent Pkts rcvd Redundancy ModePHASE_ALIGNED 1 27132197 81606642 Track all

PORT SUMMARYPTP Master

Name Tx Mode Role Transport State Sessions Port AddrSLAVE unicast slave Lo17 Slave 1 17.17.1.1

Use the show platform ptp channel_status command to display the sample output after PTP is in normal state.

Router#show platform ptp channel_statusConfigured channels : 2channel[0]: type=0, source=0, frequency=0, tod_index=0, freq_prio=5

time_enabled=y, freq_enabled=y, time_prio=1 freq_assumed_QL=0time_assumed_ql=0, assumed_ql_enabled=n

channel[1]: type=6, source=17, frequency=0, tod_index=0, freq_prio=2time_enabled=n, freq_enabled=y, time_prio=0 freq_assumed_QL=0time_assumed_ql=0, assumed_ql_enabled=n

Channel 0: Frequency Time---------------------------------------

Status OK OKWeight 0 100QL 9 9

---------------------------------------QL is not read externally. Fault status: 00000000Channel 1: Frequency Time

---------------------------------------Status OK DisabledWeight 100 0QL 9 9

---------------------------------------QL is not read externally. Fault status: 00000000

Configuration Examples for BMCAThis section provides the following configuration examples:

• Example: Configuring a Slave Ordinary Clock in BMCA, on page 50

• Example: Configuring a Slave Ordinary Clock in BMCA, on page 50

Example: Configuring a Slave Ordinary Clock in BMCAThe following is a sample configuration of a slave ordinary clock in BMCA:

Configuring Clocking50

Configuring ClockingVerifying Hybrid modes

Page 51: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

!ptp clock ordinary domain 0clock-port SLAVE slavetransport ipv4 unicast interface Lo30 negotiationclock source 22.22.22.1clock source 66.66.66.1 1clock source 33.33.33.1 2clock source 44.44.44.1 3

!

Example: Configuring a Boundary Clock in BMCAThe following is a sample configuration of a boundary clock in BMCA:

!ptp clock boundary domain 0clock-port SLAVE slavetransport ipv4 unicast interface Lo30 negotiationclock source 22.22.22.1clock source 66.66.66.1 1clock source 33.33.33.1 2clock source 44.44.44.1 3clock-port MASTER mastertransport ipv4 unicast interface Lo50 negotiation

!

The ordinary clock and boundary clock configurations remain the same for both hybrid clock and hybridboundary clock. Change the PTP domain configuration to ptp clock ordinary domain 0 hybrid for a hybridclock and ptp clock boundary domain 0 hybrid for a hybrid boundary clock. An appropriate frequency source(SyncE) will be enabled for the hybrid mode.

Note

SSM and PTP InteractionPTP carries clock quality in its datasets in the structure defined by the IEEE 1588 specification. The OrdinaryClock (OC) master carries the Grand Master (GM) clock quality in its default dataset which is sent to thedownstream OC slaves and Boundary Clocks (BC). The OC slaves and BCs keep the GM clock quality intheir parent datasets.

If the T0 clock in is driven by the clock recovered from the OC Slave (if ToP0/12 is selected as clock-source),then the clock quality in the PTP parent dataset represents the quality of the ToP0/12 input clock. This shouldbe informed to the netsync process for proper clock selection. This is done by translating clockClass data fieldin clock quality to QL-values expected by netsync.

On the other hand, if serves as the OC Master, then the GM clock is the clock providing T0 clock to router.Hence, the T0 clock quality should be used by OC master to fill up clockClass in the clock quality field, inits default dataset. For this, the T0 output QL-value should be mapped to the clockClass value according toITU-T Telecom Profile, and set in the default dataset of the OC Master. This QL-value is then transmitted tothe PTP slaves and BC downstream.

ClockClass MappingThe router supports two methods of mapping PTP ClockClass to SSM/QL-value:

Configuring Clocking51

Configuring ClockingExample: Configuring a Boundary Clock in BMCA

Page 52: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

• TelecomProfile based on ITU-TG.8265.1/Y.1365.1 PTP (Telecom) Profile for Frequency Synchronization[2]

• Default method of calculating clockClass based on IEEE 1588v2 PTP specification.

Telecom ProfilesThe Telecom Profile specifies an alternative algorithm for selecting between different master clocks, basedon the quality level (QL) of master clocks and on a local priority given to each master clock. Release 3.11introduces support for telecom profiles using a new configuration method, which allow you to configure aclock to use the G.8265.1 recommendations for establishing PTP sessions, determining the best master clock,handling SSM, and mapping PTP classes.

PTP RedundancyPTP redundancy is an implementation on different clock nodes by which the PTP slave clock node achievesthe following:

• Interact with multiple master ports such as grand master, boundary clock nodes, and so on.• Open PTP sessions.• Select the best master from the existing list of masters (referred to as the primary PTP master port orprimary clock source).

• Switch to the next best master available in case the primary master fails, or the connectivity to the primarymaster fails.

The Series Router supports unicast-based timing as specified in the 1588-2008 standard. Hybrid mode is notsupported with PTP 1588 redundancy.

Note

Configuring Telecom Profile in Slave Ordinary ClockComplete the following steps to configure the telecom profile in slave ordinary clock.

Before you begin

• When configuring the Telecom profile, ensure that the master and slave nodes have the same networkoption configured.

• Negotiation should be enabled for master and slave modes.• router must be enabled using the network-clock synchronization mode QL-enabled command for bothmaster and slave modes.

• Telecom profile is not applicable for boundary clocks. It is only applicable for ordinary clocks.• Hybrid mode with OC-MASTER is not supported.

Note

SUMMARY STEPS

1. enable2. configure terminal

Configuring Clocking52

Configuring ClockingTelecom Profiles

Page 53: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

3. ptp clock ordinary domain domain-name4. clock-port port-name {master | slave} profile g8265.15. transport ipv4 unicast interface interface-type interface-number6. clock source source-address priority7. clock source source-address priority8. clock source source-address priority9. clock source source-address priority10. end

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP ordinary clock and enters clockconfiguration mode.

ptp clock ordinary domain domain-name

Example:

Step 3

• domain—The PTP clocking domain number. Validvalues are from 4 to 23.Router(config)# ptp clock ordinary domain 4

Sets the clock port to PTP slave mode and enters clockport configurationmode. In slavemode, the port exchangestiming packets with a PTP master clock.

clock-port port-name {master | slave} profile g8265.1

Example:

Router(config-ptp-clk)# clock-port Slave slave

Step 4

The profile keyword configures the clock to use theG.8265.1 recommendations for establishing PTP sessions,determining the best master clock, handling SSM, andmapping PTP classes.

Using a telecom profile requires that the clockhave a domain number of 4–23.

Note

Sets port transport parameters.transport ipv4 unicast interface interface-typeinterface-number

Step 5

• interface-type—The type of the interface.Example: • interface-number—The number of the interface.

Router(config-ptp-port)# transport ipv4unicast interface loopback 0

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (withDHCP assignedIP or static IP) is supported.

Note

Specifies the address of a PTP master clock. You canspecify a priority value as follows:

clock source source-address priority

Example:

Step 6

Configuring Clocking53

Configuring ClockingConfiguring Telecom Profile in Slave Ordinary Clock

Page 54: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Router(config-ptp-port)# clock source 8.8.8.1• No priority value—Assigns a priority value of 0, thehighest priority.

• 1—Assigns a priority value of 1.• 2—Assigns a priority value of 2.

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 8.8.8.2 1

Step 7

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 8.8.8.3 2

Step 8

Specifies the address of an additional PTP master clock;repeat this step for each additional master clock. You canconfigure up to four master clocks.

clock source source-address priority

Example:

Router(config-ptp-port)# clock source 8.8.8.4 3

Step 9

Exits clock port configuration mode and enters privilegedEXEC mode.

end

Example:

Step 10

Router(config-ptp-port)# end

Configuring Telecom Profile in Master Ordinary ClockComplete the following steps to configure the telecom profile in the master ordinary clock.

Before you begin

• When configuring the telecom profile, ensure that the master and slave nodes have the same networkoption configured.

• Negotiation should be enabled for master and slave modes.• router must be enabled using the network-clock synchronization mode QL-enabled command for bothmaster and slave modes.

• Telecom profile is not applicable for boundary clocks. It is only applicable for ordinary clocks.• Hybrid mode with OC-MASTER is not supported.

Note

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock ordinary domain domain-name

Configuring Clocking54

Configuring ClockingConfiguring Telecom Profile in Master Ordinary Clock

Page 55: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

4. clock-port port-name {master | slave} profile g8265.15. transport ipv4 unicast interface interface-type interface-number6. end

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.

Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Configures the PTP ordinary clock and enters clockconfiguration mode.

ptp clock ordinary domain domain-name

Example:

Step 3

• domain—The PTP clocking domain number. Validvalues are from 4 to 23.Router(config)# ptp clock ordinary domain 4

Sets the clock port to PTP master and enters clock portconfiguration mode. In master mode, the port exchangestiming packets with a PTP slave devices.

clock-port port-name {master | slave} profile g8265.1

Example:

Router(config-ptp-clk)# clock-portMaster master profile g8265.1

Step 4

The profile keyword configures the clock to use theG.8265.1 recommendations for establishing PTP sessions,determining the best master clock, handling SSM, andmapping PTP classes.

Using a telecom profile requires that the clockhave a domain number of 4–23.

Note

Sets port transport parameters.transport ipv4 unicast interface interface-typeinterface-number

Step 5

• interface-type—The type of the interface.Example: • interface-number—The number of the interface.

Router(config-ptp-port)# transport ipv4unicast interface loopback 0

Effective with Cisco IOS Release 15.5(2)Sonwards, VLAN interface (with DHCP assignedIP or static IP) is supported. The option of usingdynamic IP for PTP over VLAN is generallymeant for a Slave interface. Though theimplementation supports dynamic IP assignmenton the PTP master, you must configure thedynamically assigned IP in “clock source”command on the PTP Slave.

Note

Exits clock port configuration mode and enters privilegedEXEC mode.

end

Example:

Step 6

Configuring Clocking55

Configuring ClockingConfiguring Telecom Profile in Master Ordinary Clock

Page 56: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Router(config-ptp-port)# end

Verifying Telecom profileUse the show ptp port running detail command to display the details of PTP masters configured for a Telecomprofile slave. The PTSF and Alarm fields indicate the alarm experienced by the SLAVE clock for theMASTERclock.

Router#show ptp port running detailPORT [slave] CURRENT PTP MASTER PORTProtocol Address: 208.1.1.3Clock Identity: 0xE4:D3:F1:FF:FE:FF:BC:E4

PORT [slave] PREVIOUS PTP MASTER PORTProtocol Address: 208.1.1.1Clock Identity: 0xE4:D3:F1:FF:FE:22:F2:C8Reason:

PORT [slave] LIST OF PTP MASTER PORTSLOCAL PRIORITY 0Protocol Address: 208.1.1.1

Clock Identity: 0xE4:D3:F1:FF:FE:22:F2:C8PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128Class: 102Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

LOCAL PRIORITY 1Protocol Address: 208.1.1.3Clock Identity: 0xE4:D3:F1:FF:FE:FF:BC:E4PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128Class: 100Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

LOCAL PRIORITY 2Protocol Address: 208.1.1.4Clock Identity: 0x40:55:39:FF:FE:89:44:48PTSF Status:Alarm In Stream:Clock Stream Id: 0Priority1: 128Priority2: 128Class: 102Accuracy: UnknownOffset (log variance): 0Steps Removed: 0

Use the show ptp clock running domain command to display the sample output.

Router#show ptp clock running domain 10PTP Ordinary Clock [Domain 10]

Configuring Clocking56

Configuring ClockingVerifying Telecom profile

Page 57: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

State Ports Pkts sent Pkts rcvd Redundancy ModePHASE_ALIGNED 1 22459694 67364835 Track all

PORT SUMMARYPTP Master

Name Tx Mode Role Transport State Sessions Port AddrSLAVE unicast slave Lo40 Slave 1 4.4.4.3

SESSION INFORMATIONSLAVE [Lo40] [Sessions 1]Peer addr Pkts in Pkts out In Errs Out Errs4.4.4.3 60023902 20011138 0 0

Setting the TimePropertiesThe timeProperties dataset members (except timeTraceable and frequencyTraceable) can be individually setby using the time-properties command.

The time-properties command does not perform any input validation; use this command with caution.Caution

The following is an example of the time-properties command:

Router(config-ptp-clk)# time-properties atomic-clock timeScaleTRUE currentUtcOffsetValidTRUEleap59TRUE leap61FALSE 34slave#show ptp clock dataset time-propertiesCLOCK [Ordinary Clock, domain 0]Current UTC Offset Valid: TRUECurrent UTC Offset: 34Leap 59: TRUELeap 61: FALSETime Traceable: TRUEFrequency Traceable: TRUEPTP Timescale: TRUETime Source: Atomic

The values of Time Traceable and Frequency Traceable are determined dynamically.

Negotiation MechanismThe router supports a maximum of 36 slaves, when configured as a negotiated 1588V2 master. For a slaveto successfully negotiate with the master, it should request sync and announce packet rates that are not greaterthan the sync and announce rate that are currently set in the master.

For example, if the sync interval on the master is -5 (32 packets/second), and if the slave tries to negotiate avalue of sync interval value of -6 (64 packets/second), the negotiation fails.

Static Unicast ModeA clock destination can be added when the master is configured in the static unicast mode (by configuringthe transport without the negotiation flag). The master does not communicate with any other slave, in thisconfiguration.

Router(config-ptp-port)#clock destination9.9.9.10

Configuring Clocking57

Configuring ClockingSetting the TimeProperties

Page 58: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

VRF-Aware Precision Time ProtocolEffective from Cisco IOS Release 15.4(3)S, the Router supports VRF-aware PTP. PTP support over virtualrouting and forwarding (VRF) instance-enabled interfaces allows the PTP loopback interface to be part ofVRF rather than maintaining the loopback addresses in the global routing table. This enables the serviceproviders to reuse the same IP address for multiple loopback interfaces by configuring PTP loopback underVRF. This enables you to use PTP over VRF lite and PTP over VRF with MPLS network. You can configurea loopback interface as part of a VRF instance or a global routing table depending on the requirement.

Configuring VRF-Aware Precision Time ProtocolTo configure VRF-aware PTP, perform the following tasks:

Restrictions

• Bridge domains used internally by PTP are not available to user. To view the list of such internally usedbridge domains, use the show vlan internal usage command.

• VRF-aware PTP feature is supported only on loopback interfaces with or without VRFs.

• The PTP with route leaks is not supported when the master is in global routing table and the slave is invrf table.

SUMMARY STEPS

1. enable2. configure terminal3. ip vrf vrf-name4. rd route-distinguisher5. route-target export route-target-ext-community6. route-target import route-target-ext-community7. exit8. interface vlanvlan-id9. ip vrf forwarding vrf-name10. ip address address mask11. exit12. router ospf process-id [vrf vrf-name ]13. network ip-address wildcard-mask area area-id14. exit

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: Enter your password if prompted.Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Configuring Clocking58

Configuring ClockingVRF-Aware Precision Time Protocol

Page 59: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or ActionRouter# configure terminal

Creates a VPN routing and forwarding (VRF) instance.ip vrf vrf-nameStep 3

Example: • vrf-name—Name assigned to the VRF.Router(config)# ip vrf green

Specifies a route distinguisher (RD) for a VRF instance.rd route-distinguisherStep 4

Example: • route-distinguisher—An autonomous system number(ASN) and an arbitrary number (for example, 101:1),Router(config-vrf)# rd 100:1or an IP address and an arbitrary number (forexample, 192.168.122.15:1).

Creates lists of export route-target extended communitiesfor the specified VRF.

route-target export route-target-ext-community

Example:

Step 5

• route-target-ext-community—An autonomous systemnumber (ASN) and an arbitrary number (for example,

Router(config-vrf)# route-target export 100:1

100:1) or an IP address and an arbitrary number (forexample, 192.168.122.15:1). Enter theroute-distinguisher value specified in Step 4.

Creates lists of import route-target-extended communitiesfor the specified VRF.

route-target import route-target-ext-community

Example:

Step 6

• route-target-ext-community—An autonomous systemnumber (ASN) and an arbitrary number (for example,

Router(config-vrf)# route-target import 100:1

100:1), or an IP address and an arbitrary number (forexample, 192.168.122.15:1). Enter theroute-distinguisher value specified in Step 4.

Exits VRF configuration mode.exit

Example:

Step 7

Router(config-vrf)# exit

Configures a VLAN interface and enters interfaceconfiguration mode.

interface vlanvlan-id

Example:

Step 8

• vlan-id—VLAN identifier. VLAN range is from 1to 4093.

Router(config)# interface vlan 4

Associates a VRF with an interface or subinterface.ip vrf forwarding vrf-nameStep 9

Example: • vrf-name—Name assigned to the VRF. Enter thevalue specified in Step 3.Router(config-if)# ip vrf forwarding green

Sets a primary or secondary IP address for the interface.By default, sets the primary IP address.

ip address address mask

Example:

Step 10

• address—IP addressRouter(config-if)# ip address 4.4.4.2255.255.255.0 • mask—Subnet mask

Configuring Clocking59

Configuring ClockingConfiguring VRF-Aware Precision Time Protocol

Page 60: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or Action

Exits interface configuration mode.exit

Example:

Step 11

Router(config-if)# exit

Configures an OSPF routing process and enters routerconfiguration mode.

router ospf process-id [vrf vrf-name ]

Example:

Step 12

• process-id—Internally-used identification parameterfor an OSPF routing process. It is locally assigned

Router(config)# router ospf 2 vrf green

and can be any positive integer. A unique value isassigned for each OSPF routing process.

• vrf-name—Name assigned to the VRF. Enter thevalue specified in Step 3.

Configures the interfaces on which OSPF runs and definesthe area ID for those interfaces.

network ip-address wildcard-mask area area-id

Example:

Step 13

• ip-address—IP addressRouter(config-router)# router ospf 2 vrf green• wildcard-mask—IP-address-type mask that includesoptional bits.

• area-id—Area that is to be associated with the OSPFaddress range. It can be specified as either a decimalvalue or as an IP address. If you intend to associateareas with IP subnets, you can specify a subnetaddress as the value of the area-id argument.

Repeat this step to configure differentinterfaces on which OSPF runs, and todefine the area ID for those interfaces.

Note

Exits router configuration mode.exit

Example:

Step 14

Router(config-router)# exit

ExamplesThe following is a sample configuration of VRF-aware PTP:

!ip vrf greenrd 100:1route-target export 100:1route-target import 100:1!!interface Vlan4ip vrf forwarding greenip address 4.4.4.2 255.255.255.0mpls ip!interface Loopback4ip vrf forwarding green

Configuring Clocking60

Configuring ClockingExamples

Page 61: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

ip address 50.50.50.50 255.255.255.255!router ospf 2 vrf greennetwork 4.4.4.0 0.0.0.255 area 2network 50.50.50.50 0.0.0.0 area 2!!end

ptp clock ordinary domain 0Clock-port slave slaveTransport ipv4 unicast interface loopback 4 negotiationClock source 5.5.5.5!

Configuring ToD on 1588V2 SlaveUse the following commands configure ToD on the 1588V2 slave:

PurposeCommand

Configures ToD on 1588V2.tod {slot|subslot} {cisco/ntp|ubx|nmea}

Configures 1 PPS output parameters.1pps-out 1 PPS offset in ns pulse width pulse width unit

This example shows the ToD configuration on the 1588V2 slave:

Router# config terminalRouter(config)# ptp clock ordinary domain 0Router(config-ptp-clk)# tod 0/0 ciscoRouter(config-ptp-clk)# 1pps-out 0 2250 nsRouter(config-ptp-clk)# clock-port SLAVE slaveRouter(config-ptp-port)# transport ipv4 unicast interface Lo10 negotiationRouter(config-ptp-port)# clock source 1.1.1.1Router(config-ptp-port)# end

1588v2 Phase Asymmetry CorrectionIn Optical Transport Network (OTN ) network based deployments, though the PDV produced by the networkis within the G.8261 limits and asymmetry created by traffic is also less, the OTN elements may add a fixedasymmetry (about 4-5usec) when the OTN element is reboots or optical link related event occurs. Theasymmetry detection is tied to the BMCA clock switchover and correction is supported from Cisco IOSRelease 15.5(1)S on the Cisco ASR 901 Series Routers. This mechanism is enabled on both ordinary clock(OC) slave and boundary clock (BC) slave.

The following diagram indicates the design statement of asymmetry correction at a high level.

Configuring Clocking61

Configuring ClockingConfiguring ToD on 1588V2 Slave

Page 62: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Figure 5: 1588v2 Phase Asymmetry Correction

When the BMCA algorithm selects a new master, the previous recovered servo-reported phase offset is savedas fixed-phase-offset and a flag is set to indicate to use this value instead of the servo-reported phase offset.This results in phase holdover from the previous master until the path to new master is available. The BMCAmaster and the servo events portray a path to the new master by comparing the fixed-phase-offset value tothe servo-reported phase offset from the new master. The delta phase is computed and applied to servo, whichenables the servo to come out of phase holdover.

For certain failures over one path, the delay asymmetry could differ by up to 4 usec after restoration, whichwould shift the phase or time by up to 2 usec. The valid path continues to provide an accurate phase or time.The root cause for this behavior is the underlying optical network that causes the asymmetry variation andforces the system to do an internal allocation during a disruption. When a link goes down, the underlyingoptical network fails to allow the same buffer, causing the variation.

In the following scenarios, the asymmetry is corrected after an optical link disruption, based on the persistentPTP link:

Initially, the symmetry is corrected based on measurements and manual adjustment on the router. For that:

• Time Link 1 is marked as ACTIVE.

• Time Link 2 is marked as STANDBY.

The initial path asymmetry is compensated by using an external measurement device and compensates the1pps offset.

Note

Configuring Clocking62

Configuring Clocking1588v2 Phase Asymmetry Correction

Page 63: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

In Scenario 1, the optical link 1 goes down and comes back after a while. Here:

• Time is persistent on Link 2 and is used as ACTIVE.

• When Link 1 comes back; time from this link is marked as suspicious.

• Asymmetry is adjusted based on Link 2, enabling it to be in sync with Link 1.

• Link 1 is marked as ACTIVE.

• Link 2 is marked as STANDBY.

In Scenario 2, the optical link 2 goes down and comes back after a while. Here:

• Time is persistent on Link 2 and is used as ACTIVE.

• When Link 2 comes back; time from this link is marked as suspicious.

• Asymmetry is adjusted based on Link 1, enabling it to be in sync with Link 2.

• Link 2 is marked as ACTIVE.

• Link 1 is marked as STANDBY.

Both the above scenarios requires use of phase holdovermode, which becomes active when there is a Masterswitch. After the old link is restored, the SERVO learns the new path and applies the correction.

Note

• The PTP phase symmetry correction feature is supported only on IEEE1588v2 BMCA.

• Delay asymmetry value should be enabled on the available master clock source if reference master isremoved.

• The delay asymmetry in the network should be measured exactly before its applied on the clock source.

• The Hybrid Slave clock always remains in Normal_loop during a PTP master switch and hence, thenewly calculated asymmetry is compensated after 10 minutes of the master switch.

• If the selected PTP master before-reload is not the same after-reload, then the asymmetry table in flashis cleared to avoid using stale values for the new master.

• Phase asymmetry is not supported in Telecom profile and PTP over Ethernet.

• Phase asymmetry (phase correction and path asymmetry) is supported only in Ordinary Slave clock,Boundary Clock slave, Hybrid Slave clock, and Hybrid Boundary Slave clock.

• Exact delay asymmetry value should be measured from the network path to the master source before itsapplied on clock source.

• The clock sources should be enabled with delay-asymmetry value configuration measured from thenetwork path.

• The router supports phase asymmetry correction feature for a maximum of four BMCA clock sources.

• A syslog message is generated for every phase correction change applied by phase correction feature.

Configuring Clocking63

Configuring Clocking1588v2 Phase Asymmetry Correction

Page 64: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

Configuring Asymmetry Correction

SUMMARY STEPS

1. enable2. configure terminal3. ptp clock ordinary domain domain4. asymmetry-compensation5. clock-port name slave6. transport ipv4 unicast interface interface-type negotiation7. clock source source-address local-priority delay-asymmetry asymmetry-delay nanoseconds8. clock source source-address local-priority delay-asymmetry asymmetry-delay nanoseconds9. clock source source-address local-priority delay-asymmetry asymmetry-delay nanoseconds

DETAILED STEPS

PurposeCommand or Action

Enables privileged EXEC mode.enableStep 1

Example: • Enter your password if prompted.Router> enable

Enters global configuration mode.configure terminal

Example:

Step 2

Router# configure terminal

Creates a Precision Time Protocol (PTP) clock and specifiesthe clock mode.

ptp clock ordinary domain domain

Example:

Step 3

Router(config)# ptp clock ordinary domain 0

Enables inter-path asymmetry compensation.asymmetry-compensation

Example:

Step 4

Router(config-ptp-clk)# asymmetry-compensation

Specifies the clocking mode of a PTP clock port and entersclock port configuration mode.

clock-port name slave

Example:

Step 5

Router(config-ptp-clk)# clock-port SLAVE slave

Specifies the IP version, transmission mode, and interfacethat a PTP clock port uses to exchange timing packets.

transport ipv4 unicast interface interface-typenegotiation

Example:

Step 6

Router(config-ptp-port)# transport ipv4unicast interface Lo1 negotiation

Configures a connection to a PTP master device, and setsthe asymmetry delay.

clock source source-address local-prioritydelay-asymmetry asymmetry-delay nanoseconds

Example:

Step 7

Configuring Clocking64

Configuring ClockingConfiguring Asymmetry Correction

Page 65: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand or ActionRouter(config-ptp-port)# clock source100.100.100.100 1 delay-asymmetry 73000 nanoseconds

Configures a connection to a PTP master device, and setsthe asymmetry delay.

clock source source-address local-prioritydelay-asymmetry asymmetry-delay nanoseconds

Example:

Step 8

Router(config-ptp-port)# clock source 9.9.9.9 2delay-asymmetry 56000 nanoseconds

Configures a connection to a PTP master device, and setsthe asymmetry delay.

clock source source-address local-prioritydelay-asymmetry asymmetry-delay nanoseconds

Example:

Step 9

Router(config-ptp-port)# clock source 5.5.5.1 3delay-asymmetry 89000 nanoseconds

Verifying 1588v2 Phase Asymmetry CorrectionTo verify the 1588v2 phase asymmetry correction configuration, use the show command as shown in theexample below:Router# show platform ptp phase_correction_details

Last Phase Correction applied : 36500 nanoseconds

Example: Configuring 1588v2 Phase Asymmetry Correction

ptp clock ordinary domain 0asymmetry-compensationclock-port SLAVE slavetransport ipv4 unicast interface Lo1 negotiationclock source 100.100.100.100 1 delay-asymmetry 73000 nanosecondsclock source 9.9.9.9 2 delay-asymmetry 56000 nanosecondsclock source 5.5.5.1 3 delay-asymmetry 89000 nanoseconds

Troubleshooting TipsUse the following debug commands to troubleshoot the PTP configuration on the router:

We suggest you do not use these debug commands without TAC supervision.Danger

PurposeCommand

Enables debugging of internal errors.

The no form of the command disables debugging internal errors.

[no] debug platform ptp error

Configuring Clocking65

Configuring ClockingVerifying 1588v2 Phase Asymmetry Correction

Page 66: ConfiguringClocking - Cisco · CommandorAction Purpose •DefaultforNorthAmericaorOptionIIist1esfif signaltypeisnotspecified. Thenoversionofthecommandreversesthe commandconfiguration,implyingthatthe

PurposeCommand

Displays event messages.

The no form of the command disables displaying event messages.

[no] debug platform ptp event

Displays verbose output.

The no form of the command disables displaying verbose output.

[no] debug platform ptp verbose

Debugs for error, event and verbose.

The no form of the command disables all debugging.

[no] debug platform ptp all

Configuring Clocking66

Configuring ClockingTroubleshooting Tips