Configuring Clocking and Timing
Configuring Clocking and Timing
This chapter explains how to configure timing ports on the Cisco ASR 920 Series Router.
             • Clocking and Timing Restrictions, on page 1
             • Clocking and Timing Overview, on page 3
             • Configuring Clocking and Timing, on page 14
             • Verifying the Configuration, on page 45
             • Troubleshooting, on page 45
             • Configuration Examples, on page 47
                                     Note    The Cisco ASR-920-24SZ-M and ASR-920-24TZ-M do not have a ToD port,
                                             BITS port or a 1pps SMB port.
The table below summarizes the PTP functionalities that are available, by license type:
                       Metro IP Service + IEEE 1588-2008 BC/MC                 All PTP functionality including boundary and master
                                                                               clock
                       Metro Aggregation Service + IEEE 1588-2008              All PTP functionality including boundary and master
                       BC/MC                                                   clock
Note If you install the IEEE 1588-2008 BC/MC license, you must reload the router to use the full PTP functionality.
                       The following restrictions apply when configuring synchronous Ethernet SSM and ESMC:
                          • To use the network-clock synchronization ssm option command, ensure that the router configuration
                            does not include the following:
                               • Input clock source
                               • Network clock quality level
                               • Network clock source quality source (synchronous Ethernet interfaces)
                          • The network-clock synchronization ssm option command must be compatible with the network-clock
                            eec command in the configuration.
                          • To use the network-clock synchronization ssm option command, ensure that there is not a network
                            clocking configuration applied to synchronous Ethernet interfaces, BITS interfaces, and timing port
                            interfaces.
                          • We recommended that you do not configure multiple input sources with the same priority as this impacts
                            the TSM (Switching message delay).
                          • You can configure a maximum of 4 clock sources on interface modules, with a maximum of 2 per interface
                            module. This limitation applies to both synchronous Ethernet and TDM interfaces.
                          • The network-clock input-interface ptp domain command is not supported.
                          • To shift from non hybrid clock configuration to hybrid clock configuration, you must first unconfigure
                            PTP, unconfigure netsync, reconfigure netsync and configure hybrid PTP.
                               • Receive input clocking at 10 Mhz, 2.048 Mhz, and 1.544 Mhz (Cisco ASR-920-24SZ-IM Router)
                           SyncE is supported in both LAN and WAN mode on a 10 Gigabit Ethernet interface.
Understanding PTP
                           The Precision Time Protocol (PTP), as defined in the IEEE 1588 standard, synchronizes with nanosecond
                           accuracy the real-time clocks of the devices in a network. The clocks in are organized into a master-member
                           hierarchy. PTP identifies the switch port that is connected to a device with the most precise clock. This clock
                           is referred to as the master clock. All the other devices on the network synchronize their clocks with the master
                           and are referred to as members. Constantly exchanged timing messages ensure continued synchronization.
                           PTP is particularly useful for industrial automation systems and process control networks, where motion and
                           precision control of instrumentation and test equipment are important.
Grandmaster (GM)              A network device physically attached to the primary time source. All clocks are synchronized to the
                              grandmaster clock.
Ordinary Clock (OC)           An ordinary clock is a 1588 clock with a single PTP port that can operate in one of the following modes:
                                  • Master mode—Distributes timing information over the network to one or more slave clocks, thus
                                    allowing the slave to synchronize its clock to the master.
                                  • Slave mode—Synchronizes its clock to a master clock. You can enable the slave mode on up to two
                                    interfaces simultaneously in order to connect to two different master clocks.
Boundary Clock (BC)           The device participates in selecting the best master clock and can act as the master clock if no better clocks
                              are detected.
                              Boundary clock starts its own PTP session with a number of downstream slaves. The boundary clock
                              mitigates the number of network hops and results in packet delay variations in the packet network between
                              the Grand Master and Slave.
Transparent Clock (TC) A transparent clock is a device or a switch that calculates the time it requires to forward traffic and updates
                       the PTP time correction field to account for the delay, making the device transparent in terms of time
                       calculations.
Telecom Profiles
                           Release 3.8 introduces support for telecom profiles, which allow you to configure a clock to use the G.8265.1
                           recommendations for establishing PTP sessions, determining the best master clock, handling SSM, and
                           mapping PTP classes. For information about how to configure telecom profiles, see Configuring Clocking
                           and Timing.
                           Effective Cisco IOS-XE Release 3.18, the G.8275.1 telecom profile is also supported on the Cisco ASR920
                           Series Routers (Cisco ASR-920-12CZ-A/D, ASR-920-4SZ-A/D, Cisco ASR 920-10SZ-PD and Cisco
                           ASR-920-24SZ-IM, ASR-920-24SZ-M, ASR-920-24TZ-M). For more information, see G.8275.1 Telecom
                           Profile.
PTP Redundancy
                        PTP redundancy is an implementation on different clock nodes. This helps the PTP slave clock node achieve
                        the following:
                           • Interact with multiple master ports such as grand master clocks and boundary clock nodes.
                           • Open PTP sessions.
                           • Select the best master from the existing list of masters (referred to as the primary PTP master port or
                             primary clock source).
                           • Switch to the next best master available in case the primary master fails, or the connectivity to the primary
                             master fails.
                 Note   BMCA can also be triggered if clock class of the newly-added master is better. This is true for both, normal
                        PTP as well as PTP with hybrid.
Note The Cisco ASR 920 Series Router supports unicast-based timing as specified in the 1588-2008 standard.
For instructions on how to configure PTP redundancy, see Configuring PTP Redundancy, on page 32.
Prerequisites
                             • PTP boundary clock configuration is required on all clock nodes in the ring, except the master clock
                               nodes (GM), which provide the clock timing to ring. In the above example nodes S1—S5 must be
                               configured as BC.
                             • The master clock (GM1 and GM2 in the above figure ) nodes in the ring can be either a OC master or
                               BC master.
                           • Instead of each BC using same the GM as a PTP master, each BC selects its adjacent nodes as PTP
                             masters. These PTP BC-masters are traceable to the GM in the network.
                           • Boundary clock nodes must be configured with the single-hop keyword in the PTP configuration to
                             ensure that a PTP node can communicate with it’s adjacent nodes only.
Restrictions
                           • Timing loops should not exist in the topology. For example, if for a node there are two paths to get the
                             same clock back, then the topology is not valid. Consider the following topology and configuration.
                        The paths with double arrows (>>) are the currently active clock paths and paths with single arrow (>) are
                        redundant clock path. This configuration results in a timing loop if the link between the BC-1 and GM fails.
                           • In a BC configuration, the same loopback interface should never be used for both master and slave port
                             configuration.
                           • Single-hop keyword is not supported for PTP over MPLS with explicit null configuration. The Single-hop
                             keyword is not supported when PTP packets are sent out with a MPLS tag.
                         Now consider there is a failure between BC1 and BC2 (see the figure below ). In this case, the BC2 cannot
                         communicate with GM1. Node BC2 receives the clock from BC3, which in turn receives the clock from GM2.
                                                                    1
                      Clock Node Behavior in the PTP Ring
                                                                    1
                            Clock Node Behavior in the PTP Ring
Configuration Example
                            PTP Ring boundary clocks must be configured with single-hop keyword in PTP configuration. The PTP node
                            can communicate with its adjacent nodes only. This is required for PTP hop-by-hop ring topology.
                 Note       The single-hop keyword is not supported for PTP over MPLS with explicit NULL configurations. The
                            single-hop keyword is not supported when PTP packets are sent out with a MPLS tag.
Hybrid BMCA
                        In hybrid BMCA implementation, the phase is derived from a PTP source and frequency is derived from a
                        physical lock source. More than one master clock is configured in this model and the best master is selected.
                        If the physical clock does down, then PTP is affected.
Hybrid Clocking
                        The Cisco ASR 920 Series Router support a hybrid clocking mode that uses clock frequency obtained from
                        the synchronous Ethernet port while using the phase (ToD or 1 PPS) obtained using PTP. The combination
                        of using physical source for frequency and PTP for time and phase improves the performance as opposed to
                        using only PTP.
                 Note   When configuring a hybrid clock, ensure that the frequency and phase sources are traceable to the same master
                        clock.
                        For more information on how to configure hybrid clocking, see Configuring a Transparent Clock, on page
                        24.
Transparent Clocking
                        A transparent clock is a network device such as a switch that calculates the time it requires to forward traffic
                        and updates the PTP time correction field to account for the delay, making the device transparent in terms of
                        timing calculations. The transparent clock ports have no state because the transparent clock does not need to
                        synchronize to the grandmaster clock.
                        There are two kinds of transparent clocks:
                           • End-to-end transparent clock—Measures the residence time of a PTP message and accumulates the times
                             in the correction field of the PTP message or an associated follow-up message.
                               • Peer-to-peer transparent clock— Measures the residence time of a PTP message and computes the link
                                 delay between each port and a similarly equipped port on another node that shares the link. For a packet,
                                 this incoming link delay is added to the residence time in the correction field of the PTP message or an
                                 associated follow-up message.
Note The Cisco ASR 920 Series Router does not currently support peer-to-peer transparent clock mode.
                           For information on how to configure the Cisco ASR 920 Series Router as a transparent clock, see Configuring
                           a Transparent Clock, on page 24.
Table 6: Framing Modes for a BITS Port on a Cisco ASR 920 Series Router
                            BITS or SSU Port Support Matrix Framing Modes Supported SSM or QL Support Tx               Rx
                                                                                                      Port             Port
T1 T1 SF No Yes Yes
The BITS port behaves similarly to the T1/E1 ports on the T1/E1 interface module.
Note The router can only operate in one clock selection mode at a time.
Note PTP clock sources are not supported with synchronous Ethernet.
QL-Enabled Mode
                        In QL-enabled mode, the router considers the following parameters when selecting a clock source:
                           • Clock quality level (QL)
                           • Clock availability
                           • Priority
QL-Disabled Mode
                        In QL-disabled mode, the router considers the following parameters when selecting a clock source:
                           • Clock availability
                           • Priority
                 Note   You can use override the default clock selection using the commands described in the Specifying a Clock
                        Source, on page 43 and Disabling a Clock Source, on page 44 sections.
SUMMARY STEPS
                        1.      enable
                        2.      configure terminal
                        3.      platform ptp 1pps GPS
                        4.      ptp clock ordinary domain domain-number
                        5.      priority1 priorityvalue
                        6.      priority2 priorityvalue
                        7.      utc-offset value leap-second “date time” offset {-1 | 1}
                        8.      input [1pps] {R0 | R1}
                        9.      tod {R0 | R1} {ubx | nmea | cisco | ntp}
                        10.     clock-port port-name {master | slave} [profile {g8265.1}]
                        11.     Do one of the following:
                                    • transport ipv4 unicast interface interface-type interface-number [negotiation]
                                    • transport ethernet unicast [negotiation]
                        12.     exit
                        13.     network-clock synchronization automatic
                        14.     network-clock synchronization mode ql-enabled
                        15.     Use one of the following options:
                                    • network-clock input-source <priority> controller {SONET | wanphy}
                                    • network-clock input-source <priority> external {R0 | R1} [10m | 2m]
                                  • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {cas {120ohms | 75ohms |
                                    crc4}}]
                                  • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {crc4 | fas] {120ohms |
                                    75ohms} {linecode {ami | hdb3}}
                                  • network-clock input-source <priority> external {R0 | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]
                                  • network-clock input-source <priority> interface <type/slot/port>
                         16.   clock destination source-address | mac-address {bridge-domain bridge-domain-id} | interface
                               interface-name}
                         17.   sync interval interval
                         18.   announce interval interval
                         19.   end
DETAILED STEPS
Router> enable
Step 4          ptp clock ordinary domain domain-number                     Configures the PTP clock. You can create the following
                                                                            clock types:
                Example:
                                                                                • ordinary—A 1588 clock with a single PTP port that
                Router(config)# ptp clock ordinary domain 0                       can operate in Master or Slave mode.
                Example:
Router(config-ptp-clk)#
Step 5          priority1 priorityvalue                                     Sets the preference level for a clock. Slave devices use the
                                                                            priority1 value when selecting a master clock: a lower
                Example:
                                                                            priority1 value indicates a preferred clock. The priority1
                                                                            value is considered above all other clock attributes.
                Router(config-ptp-clk)# priority1 priorityvalue
                                                                            Valid values are from 0-255. The default value is 128.
Step 6          priority2 priorityvalue                                     Sets a secondary preference level for a clock. Slave devices
                                                                            use the priority2 value when selecting a master clock: a
                Example:
                                                                            lower priority2 value indicates a preferred clock. The
                Router(config-ptp-clk)# priority2 priorityvalue
Step 7         utc-offset value leap-second “date time” offset {-1 | 1} (Optional) Starting with Cisco IOS-XE Release 3.18SP,
                                                                        the new utc-offset CLI is used to set the UTC offset value.
               Example:
                                                                        Valid values are from 0-255. The default value is 36.
               Router(config-ptp-clk)# utc-offset 45
                                                                        (Optional) Starting with Cisco IOS-XE Release 3.18.1SP,
               leap-second “01-01-2017 00:00:00” offset you can configure the current UTC offset, leap second
                1                                                       event date and Offset value (+1 or -1). Leap second
                                                                         configuration will work only when the frequency source
                                                                         is locked and ToD was up before.
                                                                             • “date time”— Leap second effective date in
                                                                               dd-mm-yyyy hh:mm:ss format.
Step 8         input [1pps] {R0 | R1}                                    Enables Precision Time Protocol input 1PPS using a 1PPS
                                                                         input port.
               Example:
                                                                         Use R0 or R1 to specify the active RSP slot.
               Router(config-ptp-clk)# input 1pps R0
Step 9         tod {R0 | R1} {ubx | nmea | cisco | ntp}                  Configures the time of day message format used by the
                                                                         ToD interface.
               Example:
                                                                         Note      It is mandatory that when electrical ToD is used,
               Router(config-ptp-clk)# tod R0 ntp                                  the utc-offset command is configured before
                                                                                   configuring the tod R0, otherwise there will be
                                                                                   a time difference of approximately 37 seconds
                                                                                   between the master and slave clocks.
Step 10        clock-port port-name {master | slave} [profile {g8265.1}] Defines a new clock port and sets the port to PTP master
                                                                         or slave mode; in master mode, the port exchanges timing
               Example:
                                                                         packets with PTP slave devices.
               Router(config-ptp-clk)#      clock-port Master            The profile keyword configures the clock to use the
               master                                                    G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
               Example:                                                  mapping PTP classes.
               Router(config-ptp-port)#                                  Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 11        Do one of the following:                                  Specifies the transport mechanism for clocking traffic; you
                                                                         can use IPv4 or Ethernet transport.
                   • transport ipv4 unicast interface interface-type
                     interface-number [negotiation]                      The negotiation keyword configures the router to discover
                   • transport ethernet unicast [negotiation]            a PTP master clock from all available PTP clock sources.
Step 14        network-clock synchronization mode ql-enabled             Enables automatic selection of a clock source based on
                                                                         quality level (QL).
               Example:
                                                                         Note      This command is disabled by default.
                            network-clock
               Router(config)#
               synchronization mode ql-enabled
Step 15        Use one of the following options:                            • (Optional) To nominate SDH or SONET controller
                                                                              as network clock input source.
                  • network-clock input-source <priority> controller
                    {SONET | wanphy}                                        • (Optional) To nominate 10Mhz port as network clock
                  • network-clock input-source <priority> external {R0        input source.
                    | R1} [10m | 2m]
                                                                            • (Optional) To nominate BITS port as network clock
                  • network-clock input-source <priority> external {R0
                                                                              input source in e1 mode.
                    | R1} [2048k | e1 {cas {120ohms | 75ohms | crc4}}]
                  • network-clock input-source <priority> external {R0      • (Optional) To nominate BITS port as network clock
                    | R1} [2048k | e1 {crc4 | fas] {120ohms | 75ohms}         input source in e1 mode.
                    {linecode {ami | hdb3}}
                                                                            • (Optional) To nominate BITS port as network clock
                  • network-clock input-source <priority> external {R0
                                                                              input source in t1 mode.
                    | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]
                  • network-clock input-source <priority> interface         • (Optional) To nominate Ethernet interface as network
                    <type/slot/port>                                          clock input source.
               Example:
Step 16        clock destination source-address | mac-address            Specifies the IP address or MAC address of a clock
               {bridge-domain bridge-domain-id} | interface              destination when the router is in PTP master mode.
               interface-name}
               Example:
Step 18        announce interval interval                     Specifies the interval for PTP announce messages. The
                                                              intervals are set using log base 2 values, as follows:
               Example:
                                                                 • 3—1 packet every 8 seconds
               Router(config-ptp-port)# announce interval 2
                                                                 • 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 per
                                                                   second
                                                                 • -2—1 packet every 1/4 second, or 4 packets per
                                                                   second
                                                                 • -3—1 packet every 1/8 second, or 8 packets per
                                                                   second
Router(config-ptp-port)# end
                         Example
                         The following example shows that the utc-offset is configured before configuring the ToD to avoid
                         a delay of 37 seconds between the master and slave clocks:
                         ptp clock ordinary domain 24
local-priority 1
                         priority2 128
                         utc-offset 37
                         tod R0 cisco
                         clock-port master-port-1 master profile g8275.1 local-priority 1
                         transport ethernet multicast interface Gig 0/0/1
SUMMARY STEPS
                         1.    enable
                         2.    configure terminal
                         3.    ptp clock ordinary domain domain-number [hybrid]
                         4.    output [1pps] {R0 | R1} [offset offset-value] [pulse-width value]
                         5.    tod {R0 | R1} {ubx | nmea | cisco | ntp}
                         6.    clock-port port-name {master | slave} [profile {g8265.1}]
                         7.    Do one of the following:
                                   • transport ipv4 unicast interface interface-type interface-number [negotiation]
                                   •
                                   • transport ethernet unicast [negotiation]
                         8.    clock source source-address | mac-address {bridge-domain bridge-domain-id} | interface
                               interface-name} [priority]
                         9.    announce timeout value
                         10.   delay-req interval interval
                         11.   end
DETAILED STEPS
Router> enable
Step 3         ptp clock ordinary domain domain-number [hybrid]          Configures the PTP clock. You can create the following
                                                                         clock types:
               Example:
                                                                            • ordinary—A 1588 clock with a single PTP port that
               Router(config)# ptp clock ordinary domain 0                    can operate in Master or Slave mode.
Step 4         output [1pps] {R0 | R1} [offset offset-value] [pulse-width Enables Precision Time Protocol input 1PPS using a 1PPS
               value]                                                     input port.
               Example:                                                  Use R0 or R1 to specify the active RSP slot.
                                                                         Note      Effective Cisco IOS XE Everest 16.6.1, on the
               Router(config-ptp-clk)# output 1pps R0 offset 200
                pulse-width 20 μsec                                                Cisco ASR-920-12SZ-IM router, the 1pps pulse
                                                                                   bandwith can be changed from the default value
                                                                                   of 500 milliseconds to up to 20 microsecond.
Step 5         tod {R0 | R1} {ubx | nmea | cisco | ntp}                  Configures the time of day message format used by the
                                                                         ToD interface.
               Example:
                                                                         Note      The ToD port acts as an input port in case of
               Router(config-ptp-clk)# tod R0 ntp                                  Master clock and as an output port in case of
                                                                                   Slave clock.
Step 6         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in slave
                                                                         mode, the port exchanges timing packets with a PTP master
               Example:
                                                                         clock.
               Router(config-ptp-clk)# clock-port Slave slave            The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 7         Do one of the following:                                  Specifies the transport mechanism for clocking traffic; you
                                                                         can use IPv4 or Ethernet transport.
                   • transport ipv4 unicast interface interface-type
                     interface-number [negotiation]                      The negotiation keyword configures the router to discover
                   •                                                     a PTP master clock from all available PTP clock sources.
                   • transport ethernet unicast [negotiation]            Note      PTP redundancy is supported only on unicast
               Example:                                                            negotiation mode.
Step 8         clock source source-address | mac-address                 Specifies the IP or MAC address of a PTP master clock.
               {bridge-domain bridge-domain-id} | interface
               interface-name} [priority]
               Example:
Step 9         announce timeout value                                   Specifies the number of PTP announcement intervals
                                                                        before the session times out. Valid values are 1-10.
               Example:
Step 10        delay-req interval interval                              Configures the minimum interval allowed between PTP
                                                                        delay-request messages when the port is in the master state.
               Example:
                                                                        The intervals are set using log base 2 values, as follows:
               Router(config-ptp-port)# delay-req interval 1
                                                                           • 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 per
                                                                             second
                                                                           • -2—1 packet every 1/4 second, or 4 packets per
                                                                             second
                                                                           • -3—1 packet every 1/8 second, or 8 packets per
                                                                             second
                                                                           • -4—1 packet every 1/16 seconds, or 16 packets per
                                                                             second.
                                                                           • -5—1 packet every 1/32 seconds, or 32 packets per
                                                                             second.
                                                                           • -6—1 packet every 1/64 seconds, or 64 packets per
                                                                             second.
                                                                           • -7—1 packet every 1/128 seconds, or 128 packets per
                                                                             second.
Router(config-ptp-port)# end
SUMMARY STEPS
                        1.        enable
                        2.        configure terminal
                        3.        ptp clock ordinary domain domain-number
                        4.        time-properties persist value
                        5.        clock-port port-name {master | slave} [profile {g8265.1}]
                        6.        transport ipv4 unicast interface interface-type interface-number [negotiation]
                        7.        clock-source source-address [priority]
                        8.        clock-port port-name {master | slave} [profile {g8265.1}]
                        9.        transport ipv4 unicast interface interface-type interface-number [negotiation]
                        10.       end
DETAILED STEPS
Router> enable
Step 3        ptp clock ordinary domain domain-number                       Configures the PTP clock. You can create the following
                                                                            clock types:
              Example:
                                                                                • ordinary—A 1588 clock with a single PTP port that
              Router(config)# ptp clock ordinary domain 0                         can operate in Master or Slave mode.
Step 4        time-properties persist value                                 (Optional) Starting with Cisco IOS-XE Release 3.18.1SP,
                                                                            you can configure time properties holdover time. Valid
              Example:
                                                                            values are from 0 to 10000 seconds.
              Router(config-ptp-clk)#          time-properties              When a master clock is lost, the time properties holdover
              persist 600                                                   timer starts. During this period, the time properties flags
                                                                            (currentUtcOffset, currentUtcOffsetValid, leap61, leap59)
                                                                            persist for the holdover timeout period. Once the holdover
                                                                            timer expires, currentUtcOffsetValid, leap59, and leap61
                                                                            flags are set to false and the currentUtcOffset remains
                                                                            unchanged. In case leap second midnight occurs when
                                                                            holdover timer is running, utc-offset value is updated based
                                                                            on leap59 or leap61 flags. This value is used as long as
                                                                            there are no PTP packets being received from the selected
                                                                            master. In case the selected master is sending announce
                                                                            packets, the time-properties advertised by master is used.
Step 6         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation]
                                                                         The negotiation keyword configures the router to discover
               Example:                                                  a PTP master clock from all available PTP clock sources.
                                                                         Note      PTP redundancy is supported only on unicast
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 0 negotiation                                    negotiation mode.
Step 7         clock-source source-address [priority]                    Specifies the address of a PTP master clock. You can
                                                                         specify a priority value as follows:
               Example:
                                                                             • No priority value—Assigns a priority value of 0.
               Router(config-ptp-port)# clock source                         • 1—Assigns a priority value of 1.
               133.133.133.133
                                                                             • 2—Assigns a priority value of 2, the highest priority.
Step 8         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in master
                                                                         mode, the port exchanges timing packets with PTP slave
               Example:
                                                                         devices.
               Router(config-ptp-port)# clock-port Master master Note              The master clock-port does not establish a
                                                                                   clocking session until the slave clock-port is
                                                                                   phase aligned.
                                                                         The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 9         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation]
                                                                         The negotiation keyword configures the router to discover
               Example:                                                  a PTP master clock from all available PTP clock sources.
                                                                         Note      PTP redundancy is supported only on unicast
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 1 negotiation                                    negotiation mode.
Router(config-ptp-port)# end
Note The Cisco ASR 920 Series Router does not support peer-to-peer transparent clock mode.
SUMMARY STEPS
                          1.   enable
                          2.   configure terminal
                          3.   ptp clock e2e-transparent domain domain-number
                          4.   exit
DETAILED STEPS
Router> enable
Step 3        ptp clock e2e-transparent domain domain-number              Configures the router as an end-to-end transparent clock.
              Example:                                                       • e2e-transparent—Updates the PTP time correction
                                                                               field to account for the delay in forwarding the traffic.
              Router(config)# ptp clock e2e-transparent domain                 This helps improve the accuracy of 1588 clock at slave.
              0
Router(config)# exit
                 Note    When configuring a hybrid clock, ensure that the frequency and phase sources are traceable to the same master
                         clock.
SUMMARY STEPS
                         1.    enable
                         2.    configure terminal
                         3.    ptp clock {ordinary | boundary} domain domain-number hybrid
                         4.    time-properties persist value
                         5.    utc-offset value leap-second “date time” offset {-1 | 1}
                         6.    min-clock-class value
                         7.    clock-port port-name {master | slave} [profile {g8265.1}]
                         8.    transport ipv4 unicast interface interface-type interface-number [negotiation] [single-hop]
                         9.    clock-source source-address [priority]
                         10.   clock-port port-name {master | slave} [profile {g8265.1}]
                         11.   transport ipv4 unicast interface interface-type interface-number [negotiation] [single-hop]
                         12.   exit
                         13.   network-clock synchronization automatic
                         14.   network-clock synchronization mode ql-enabled
                         15.   Use one of the following options:
                                  • network-clock input-source <priority> controller {SONET | wanphy}
                                  • network-clock input-source <priority> external {R0 | R1} [10m | 2m]
                                  • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {cas {120ohms | 75ohms |
                                    crc4}}]
                                  • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {crc4 | fas] {120ohms |
                                    75ohms} {linecode {ami | hdb3}}
                                  • network-clock input-source <priority> external {R0 | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]
                                  • network-clock input-source <priority> interface <type/slot/port>
                         16.   network-clock synchronization input-threshold ql value
                         17.   network-clock hold-off {0 | milliseconds}
                         18.   end
DETAILED STEPS
Router> enable
Step 3         ptp clock {ordinary | boundary} domain domain-number Configures the PTP clock. You can create the following
               hybrid                                               clock types:
               Example:                                                      • ordinary—A 1588 clock with a single PTP port that
                                                                               can operate in Master or Slave mode.
               Router(config)# ptp clock ordinary domain 0 hybrid            • boundary—Terminates PTP session from
                                                                               Grandmaster and acts as PTP master to slaves
                                                                               downstream.
Step 4         time-properties persist value                             (Optional) Starting with Cisco IOS-XE Release 3.18.1SP,
                                                                         you can configure time properties holdover time. Valid
               Example:
                                                                         values are from 0 to 10000 seconds. The default value is
                                                                         300 seconds.
               Router(config-ptp-clk)#         time-properties
               persist 600                                               When a master clock is lost, the time properties holdover
                                                                         timer starts. During this period, the time properties flags
                                                                         (currentUtcOffset, currentUtcOffsetValid, leap61, leap59)
                                                                         persist for the holdover timeout period. Once the holdover
                                                                         timer expires, currentUtcOffsetValid, leap59, and leap61
                                                                         flags are set to false and the currentUtcOffset remains
                                                                         unchanged. In case leap second midnight occurs when
                                                                         holdover timer is running, utc-offset value is updated based
                                                                         on leap59 or leap61 flags. This value is used as long as
                                                                         there are no PTP packets being received from the selected
                                                                         master. In case the selected master is sending announce
                                                                         packets, the time-properties advertised by master is used.
Step 5         utc-offset value leap-second “date time” offset {-1 | 1} (Optional) Starting with Cisco IOS-XE Release 3.18SP,
                                                                        the new utc-offset CLI is used to set the UTC offset value.
               Example:
                                                                        Valid values are from 0-255. The default value is 36.
               Router(config-ptp-clk)# utc-offset 45
                                                                        (Optional) Starting with Cisco IOS-XE Release 3.18.1SP,
               leap-second “01-01-2017 00:00:00” offset you can configure the current UTC offset, leap second
                1                                                       event date and Offset value (+1 or -1). Leap second
                                                                         configuration will work only when the frequency source
                                                                         is locked and ToD was up before.
                                                                             • “date time”— Leap second effective date in
                                                                               dd-mm-yyyy hh:mm:ss format.
Step 6         min-clock-class value                                     Sets the threshold clock-class value. This allows the PTP
                                                                         algorithm to use the time stamps from an upstream master
               Example:
                                                                         clock, only if the clock-class sent by the master clock is
                                                                         less than or equal to the configured threshold clock-class.
               Router(config-ptp-clk)#         min-clock-class 157
                                                                         Valid values are from 0-255.
Step 7         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in slave
                                                                         mode, the port exchanges timing packets with a PTP master
               Example:
                                                                         clock.
               Router(config-ptp-clk)# clock-port SLAVE slave            Note      Hybrid mode is only supported with slave
                                                                                   clock-ports; master mode is not supported.
                                                                         The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 8         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation] [single-hop]
                                                                             • negotiation—(Optional) configures the router to
               Example:                                                        discover a PTP master clock from all available PTP
                                                                               clock sources.
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 0 negotiation                          Note      PTP redundancy is supported only on unicast
                                                                                   negotiation mode.
               Example:
                                                                         Note      single-hop—(Optional) Must be configured,
               Router(config-ptp-port)# transport ipv4 unicast                     if Hop-by-Hop PTP ring topology is used. It
               interface Loopback 0 negotiation single-hop                         ensures that the PTP node communicates
                                                                                   only with the adjacent nodes.
Step 9         clock-source source-address [priority]                    Specifies the address of a PTP master clock. You can
                                                                         specify a priority value as follows:
               Example:
                                                                             • No priority value—Assigns a priority value of 0.
               Router(config-ptp-port)# clock source                         • 1—Assigns a priority value of 1.
               133.133.133.133
                                                                             • 2—Assigns a priority value of 2, the highest priority.
Step 10        clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in master
                                                                         mode, the port exchanges timing packets with PTP slave
               Example:
                                                                         devices.
               Router(config-ptp-port)# clock-port MASTER master         The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 11        transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation] [single-hop]
Step 14        network-clock synchronization mode ql-enabled             Enables automatic selection of a clock source based on
                                                                         quality level (QL).
               Example:
                                                                         Note      This command is disabled by default.
               Router(config)# network-clock synchronization mode
                ql-enabled
Step 15        Use one of the following options:                            • (Optional) To nominate SDH or SONET controller
                                                                              as network clock input source.
                  • network-clock input-source <priority> controller
                    {SONET | wanphy}                                        • (Optional) To nominate 10Mhz port as network clock
                                                                              input source.
                  • network-clock input-source <priority> external {R0
                    | R1} [10m | 2m]                                        • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {cas {120ohms | 75ohms | crc4}}]      • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {crc4 | fas] {120ohms | 75ohms}       • (Optional) To nominate BITS port as network clock
                    {linecode {ami | hdb3}}                                   input source in t1 mode.
                  • network-clock input-source <priority> external {R0      • (Optional) To nominate Ethernet interface as network
                    | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]        clock input source.
                  • network-clock input-source <priority> interface
                    <type/slot/port>
               Example:
Step 16        network-clock synchronization input-threshold ql value    (Optional) Starting with Cisco IOS-XE Release 3.18SP,
                                                                         this new CLI is used to set the threshold QL value for the
               Example:
                                                                         input frequency source. The input frequency source, which
Step 17        network-clock hold-off {0 | milliseconds}                  (Optional) Configures a global hold-off timer specifying
                                                                          the amount of time that the router waits when a
               Example:
                                                                          synchronous Ethernet clock source fails before taking
                                                                          action.
               Router(config)# network-clock hold-off 0
                                                                          Note      You can also specify a hold-off value for an
                                                                                    individual interface using the network-clock
                                                                                    hold-off command in interface mode.
Router(config)# end
                Note   When configuring a hybrid clock, ensure that the frequency and phase sources are traceable to the same master
                       clock.
SUMMARY STEPS
                       1.    enable
                       2.    configure terminal
                       3.    ptp clock {ordinary | boundary} domain domain-number hybrid
                       4.    output [1pps] {R0 | R1} [offset offset-value] [pulse-width value]
                       5.    tod {R0 | R1} {ubx | nmea | cisco | ntp}
                       6.    clock-port port-name {master | slave} [profile {g8265.1}]
                       7.    transport ipv4 unicast interface interface-type interface-number [negotiation]
                       8.    clock-source source-address [priority]
                       9.    exit
                       10.   Use one of the following options:
                                • network-clock input-source <priority> controller {SONET | wanphy}
                                • network-clock input-source <priority> external {R0 | R1} [10m | 2m]
                                • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {cas {120ohms | 75ohms |
                                  crc4}}]
                                • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {crc4 | fas] {120ohms |
                                  75ohms} {linecode {ami | hdb3}}
                                • network-clock input-source <priority> external {R0 | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]
DETAILED STEPS
Router> enable
Step 3         ptp clock {ordinary | boundary} domain domain-number Configures the PTP clock. You can create the following
               hybrid                                               clock types:
               Example:                                                        • ordinary—A 1588 clock with a single PTP port that
                                                                                 can operate in Master or Slave mode.
               Router(config)# ptp clock ordinary domain 0 hybrid              • boundary—Terminates PTP session from
                                                                                 Grandmaster and acts as PTP master to slaves
                                                                                 downstream.
Step 4         output [1pps] {R0 | R1} [offset offset-value] [pulse-width Enables Precision Time Protocol input 1PPS using a 1PPS
               value]                                                     input port.
               Example:                                                     Use R0 or R1 to specify the active RSP slot.
                                                                            Note      Effective Cisco IOS XE Everest 16.6.1, on the
               Router(config-ptp-clk)# output 1pps R0 offset 200
                pulse-width 20 μsec                                                   Cisco ASR-920-12SZ-IM router, the 1pps pulse
                                                                                      bandwith can be changed from the default value
                                                                                      of 500 milliseconds to up to 20 microsecond.
Step 5         tod {R0 | R1} {ubx | nmea | cisco | ntp}                     Configures the time of day message format used by the
                                                                            ToD interface.
               Example:
                                                                            Note      The ToD port acts as an input port in case of
               Router(config-ptp-clk)# tod R0 ntp                                     Master clock and as an output port in case of
                                                                                      Slave clock.
Step 6         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in slave
                                                                         mode, the port exchanges timing packets with a PTP master
               Example:
                                                                         clock.
               Router(config-ptp-clk)# clock-port SLAVE slave               Note      Hybrid mode is only supported with slave
                                                                                      clock-ports; master mode is not supported.
Step 7         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation]
                                                                         The negotiation keyword configures the router to discover
               Example:                                                  a PTP master clock from all available PTP clock sources.
                                                                         Note      PTP redundancy is supported only on unicast
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 0 negotiation                                    negotiation mode.
Step 8         clock-source source-address [priority]                    Specifies the address of a PTP master clock. You can
                                                                         specify a priority value as follows:
               Example:
                                                                            • No priority value—Assigns a priority value of 0.
               Router(config-ptp-port)# clock source                        • 1—Assigns a priority value of 1.
               133.133.133.133
                                                                            • 2—Assigns a priority value of 2, the highest priority.
Router(config-ptp-port)# exit
Step 10        Use one of the following options:                            • (Optional) To nominate SDH or SONET controller
                                                                              as network clock input source.
                  • network-clock input-source <priority> controller
                    {SONET | wanphy}                                        • (Optional) To nominate 10Mhz port as network clock
                                                                              input source.
                  • network-clock input-source <priority> external {R0
                    | R1} [10m | 2m]                                        • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {cas {120ohms | 75ohms | crc4}}]      • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {crc4 | fas] {120ohms | 75ohms}       • (Optional) To nominate BITS port as network clock
                    {linecode {ami | hdb3}}                                   input source in t1 mode.
                  • network-clock input-source <priority> external {R0      • (Optional) To nominate Ethernet interface as network
                    | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]        clock input source.
                  • network-clock input-source <priority> interface
                    <type/slot/port>
               Example:
Step 11        network-clock synchronization mode ql-enabled             Enables automatic selection of a clock source based on
                                                                         quality level (QL).
               Example:
                                                                         Note      This command is disabled by default.
               Router(config-ptp-clk)# network-clock
               synchronization mode ql-enabled
Step 12        network-clock hold-off {0 | milliseconds}                  (Optional) Configures a global hold-off timer specifying
                                                                          the amount of time that the router waits when a
               Example:
                                                                          synchronous Ethernet clock source fails before taking
                                                                          action.
               Router(config-ptp-clk)# network-clock hold-off 0
                                                                          Note      You can also specify a hold-off value for an
                                                                                    individual interface using the network-clock
                                                                                    hold-off command in interface mode.
Router(config-ptp-clk)# end
SUMMARY STEPS
                        1.      enable
                        2.      configure terminal
                        3.      ptp clock {ordinary | boundary} domain domain-number [hybrid]
                        4.      ptp clock e2e-transparent domain domain-number
                        5.      clock-port port-name {master | slave} [profile {g8265.1}]
                        6.      transport ipv4 unicast interface interface-type interface-number [negotiation] [single-hop]
                        7.      clock-source source-address [priority]
                        8.      clock-source source-address [priority]
                        9.      clock-source source-address [priority]
                        10.     end
DETAILED STEPS
Router> enable
Step 3         ptp clock {ordinary | boundary} domain domain-number Configures the PTP clock. You can create the following
               [hybrid]                                             clock types:
               Example:                                                     • ordinary—A 1588 clock with a single PTP port that
                                                                              can operate in Master or Slave mode.
               Router(config)# ptp clock ordinary domain 0                  • boundary—Terminates PTP session from
                                                                              Grandmaster and acts as PTP master to slaves
                                                                              downstream.
Step 4         ptp clock e2e-transparent domain domain-number            Configures the PTP clock.
               Example:                                                     • e2e-transparent—Updates the PTP time correction
                                                                              field to account for the delay in forwarding the traffic.
               Router(config)# ptp clock e2e-transparent domain               This helps improve the accuracy of 1588 clock at
                0                                                             slave.
Step 5         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in slave
                                                                         mode, the port exchanges timing packets with a PTP master
               Example:
                                                                         clock.
               Router(config-ptp-clk)# clock-port SLAVE slave            The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 6         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation] [single-hop]
                                                                            • negotiation—(Optional) Configures the router to
               Example:                                                       discover a PTP master clock from all available PTP
                                                                              clock sources.
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 0 negotiation                          Note      PTP redundancy is supported only on unicast
                                                                                   negotiation mode.
               Example:
                                                                            • single-hop—(Optional) It ensures that the PTP
               Router(config-ptp-port)# transport ipv4 unicast                node communicates only with the adjacent nodes.
               interface Loopback 0 negotiation single-hop
Step 7         clock-source source-address [priority]                    Specifies the address of a PTP master clock. You can
                                                                         specify a priority value as follows:
               Example:
                                                                            • No priority value—Assigns a priority value of 0.
               Router(config-ptp-port)# clock source                        • 1—Assigns a priority value of 1.
               133.133.133.133 1
                                                                            • 2—Assigns a priority value of 2, the highest priority.
Step 9         clock-source source-address [priority]                    Specifies the address of an additional PTP master clock;
                                                                         repeat this step for each additional master clock. You can
               Example:
                                                                         configure up to 3 master clocks.
               Router(config-ptp-port)# clock source
               133.133.133.135
Router(config-ptp-port)# end
SUMMARY STEPS
                        1.     enable
                        2.     Router# configure terminal
                        3.     ptp clock {ordinary | boundary} domain domain-number [hybrid]
                        4.     ptp clock e2e-transparent domain domain-number
                        5.     clock-port port-name {master | slave} [profile {g8265.1}]
                        6.     transport ipv4 unicast interface interface-type interface-number [negotiation] [single-hop]
                        7.     clock-source source-address [priority]
                        8.     clock-source source-address [priority]
                        9.     clock-source source-address [priority]
                        10.    clock-port port-name {master | slave} [profile {g8265.1}]
                        11.    transport ipv4 unicast interface interface-type interface-number [negotiation] [single-hop]
                        12.    end
DETAILED STEPS
Router> enable
Step 4         ptp clock e2e-transparent domain domain-number            Configures the PTP clock.
               Example:                                                     • e2e-transparent—Updates the PTP time correction
                                                                              field to account for the delay in forwarding the traffic.
               Router(config)# ptp clock e2e-transparent domain               This helps improve the accuracy of 1588 clock at
                0                                                             slave.
Step 5         clock-port port-name {master | slave} [profile {g8265.1}] Sets the clock port to PTP master or slave mode; in slave
                                                                         mode, the port exchanges timing packets with a PTP master
               Example:
                                                                         clock.
               Router(config-ptp-clk)# clock-port SLAVE slave            The profile keyword configures the clock to use the
                                                                         G.8265.1 recommendations for establishing PTP sessions,
                                                                         determining the best master clock, handling SSM, and
                                                                         mapping PTP classes.
                                                                         Note      Using a telecom profile requires that the clock
                                                                                   have a domain number of 4–23.
Step 6         transport ipv4 unicast interface interface-type           Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation] [single-hop]
                                                                            • negotiation—(Optional) Configures the router to
               Example:                                                       discover a PTP master clock from all available PTP
                                                                              clock sources.
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 0 negotiation                          Note      PTP redundancy is supported only on unicast
                                                                                   negotiation mode.
               Example:
                                                                            • single-hop—(Optional) Must be configured, if
               Router(config-ptp-port)# transport ipv4 unicast                Hop-by-Hop PTP ring topology is used. It ensures
               interface Loopback 0 negotiation single-hop                    that the PTP node communicates only with the
                                                                              adjacent nodes.
Step 7         clock-source source-address [priority]                    Specifies the address of a PTP master clock. You can
                                                                         specify a priority value as follows:
               Example:
                                                                            • No priority value—Assigns a priority value of 0.
               Router(config-ptp-port)# clock source                        • 1—Assigns a priority value of 1.
               133.133.133.133 1
                                                                            • 2—Assigns a priority value of 2, the highest priority.
Step 8         clock-source source-address [priority]                    Specifies the address of an additional PTP master clock;
                                                                         repeat this step for each additional master clock. You can
               Example:
                                                                         configure up to 3 master clocks.
               Router(config-ptp-port)# clock source
               133.133.133.134 2
Step 10        clock-port port-name {master | slave} [profile {g8265.1}] Specifies the address of a PTP master clock.
               Example:                                                   The profile keyword configures the clock to use the
                                                                          G.8265.1 recommendations for establishing PTP sessions,
               Router(config-ptp-port)# clock-port MASTER master          determining the best master clock, handling SSM, and
                                                                          mapping PTP classes.
                                                                          Note      Using a telecom profile requires that the clock
                                                                                    have a domain number of 4–23.
Step 11        transport ipv4 unicast interface interface-type            Specifies the transport mechanism for clocking traffic.
               interface-number [negotiation] [single-hop]
                                                                             • negotiation—(Optional) Configures the router to
               Example:                                                        discover a PTP master clock from all available PTP
                                                                               clock sources.
               Router(config-ptp-port)# transport ipv4 unicast
               interface Loopback 1 negotiation single-hop                Note      PTP redundancy is supported only on unicast
                                                                                    negotiation mode.
                                                                             • single-hop—(Optional) Must be configured if
                                                                               Hop-by-Hop PTP ring topology is used. It ensures
                                                                               that the PTP node communicates only with the
                                                                               adjacent nodes
Router(config-ptp-port)# end
                Note     System time to a ToD source (Master Mode) can be configured only when PTP master is configured. See
                         Configuring a Master Ordinary Clock, on page 14. Select any one of the four available ToD format; cisco,
                         nmea, ntp or ubx.10m must be configured as network clock input source.
Follow these steps to configure the system clock to a ToD source in master mode.
SUMMARY STEPS
                        1.   enable
                        2.   configure terminal
                        3.   tod-clock input-source priority {gps {R0 | R1} | ptp domain domain}
                        4.   exit
DETAILED STEPS
Router> enable
Step 3       tod-clock input-source priority {gps {R0 | R1} | ptp        In master mode, specify a GPS port connected to a ToD
             domain domain}                                              source.
             Example:
Router(config)# exit
                 Note   System time to a ToD source (Slave Mode) can be configured only when PTP slave is configured. See
                        Configuring a Slave Ordinary Clock, on page 19.
                        Follow these steps to configure the system clock to a ToD source in slave mode. In slave mode, specify a PTP
                        domain as a ToD input source.
SUMMARY STEPS
                        1.   enable
                        2.   configure terminal
                        3.   tod-clock input-source priority {gps {R0 | R1} | ptp domain domain}
                        4.   Router(config)# end
DETAILED STEPS
Router> enable
Step 3        tod-clock input-source priority {gps {R0 | R1} | ptp            In slave mode, specify a PTP domain as a ToD input source.
              domain domain}
              Example:
SUMMARY STEPS
                          1.     enable
                          2.     configure terminal
                          3.     network-clock synchronization automatic
                          4.     network-clock eec {1 | 2}
                          5.     network-clock synchronization ssm option {1 | 2 {GEN1 | GEN2}}
                          6.     Use one of the following options:
                                     • network-clock input-source <priority> controller {SONET | wanphy}
                                     • network-clock input-source <priority> external {R0 | R1} [10m | 2m]
                                     • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {cas {120ohms | 75ohms |
                                       crc4}}]
                                     • network-clock input-source <priority> external {R0 | R1} [2048k | e1 {crc4 | fas] {120ohms |
                                       75ohms} {linecode {ami | hdb3}}
                                     • network-clock input-source <priority> external {R0 | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]
                                     • network-clock input-source <priority> interface <type/slot/port>
DETAILED STEPS
Router> enable
Step 3          network-clock synchronization automatic                    Enables the network clock selection algorithm. This
                                                                           command disables the Cisco-specific network clock
                Example:
                                                                           process and turns on the G.781-based automatic clock
                                                                           selection process.
                Router(config)# network-clock synchronization
                automatic                                                  Note      This command must be configured before any
                                                                                     input source.
Step 4          network-clock eec {1 | 2}                                  Specifies the Ethernet Equipment Clock (EEC) type. Valid
                                                                           values are
                Example:
                                                                              • 1—ITU-T G.8262 option 1 (2048)
                Router(config)# network-clock eec 1                           • 2—ITU-T G.8262 option 2 and Telcordia GR-1244
                                                                                (1544)
Step 5          network-clock synchronization ssm option {1 | 2 {GEN1 Configures the G.781 synchronization option used to send
                | GEN2}}                                              synchronization messages. The following guidelines apply
                                                                      for this command:
                Example:
Step 6        Use one of the following options:                             • (Optional) To nominate SDH or SONET controller
                                                                              as network clock input source.
                  • network-clock input-source <priority> controller
                    {SONET | wanphy}                                        • (Optional) To nominate 10Mhz port as network clock
                                                                              input source.
                  • network-clock input-source <priority> external {R0
                    | R1} [10m | 2m]                                        • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {cas {120ohms | 75ohms | crc4}}]      • (Optional) To nominate BITS port as network clock
                                                                              input source in e1 mode.
                  • network-clock input-source <priority> external {R0
                    | R1} [2048k | e1 {crc4 | fas] {120ohms | 75ohms}       • (Optional) To nominate BITS port as network clock
                    {linecode {ami | hdb3}}                                   input source in t1 mode.
                  • network-clock input-source <priority> external {R0      • (Optional) To nominate Ethernet interface as network
                    | R1} [t1 {d4 | esf | sf} {linecode {ami | b8zs}}]        clock input source.
                  • network-clock input-source <priority> interface         • (Optional) To nominate PTP as network clock input
                    <type/slot/port>                                          source.
                  • network-clock input-source <priority> ptp domain
                    <domain-number>
              Example:
Step 7        network-clock synchronization mode ql-enabled              Enables automatic selection of a clock source based on
                                                                         quality level (QL).
              Example:
                                                                         Note      This command is disabled by default.
              Router(config)# network-clock synchronization mode
               ql-enabled
Step 8        network-clock hold-off {0 | milliseconds}                  (Optional) Configures a global hold-off timer specifying
                                                                         the amount of time that the router waits when a
              Example:
                                                                         synchronous Ethernet clock source fails before taking
                                                                         action.
              Router(config)# network-clock hold-off 0
                                                                         Note      You can also specify a hold-off value for an
                                                                                   individual interface using the network-clock
                                                                                   hold-off command in interface mode.
Step 9        network-clock wait-to-restore seconds                      (Optional) Configures a global wait-to-restore timer for
                                                                         synchronous Ethernet clock sources. The timer specifies
              Example:
Step 10        network-clock revertive                                    (Optional) Sets the router in revertive switching mode
                                                                          when recovering from a failure. To disable revertive mode,
               Example:
                                                                          use the no form of this command.
               Router(config)# network-clock revertive
Step 12        network-clock external slot/card/port hold-off {0 |        Overrides the hold-off timer value for the external
               milliseconds}                                              interface.
               Example:
Step 13        network-clock quality-level {tx | rx} value {controller Specifies a quality level for a line or external clock source.
               [E1| BITS] slot/card/port | external [2m | 10m | 2048k |
                                                                        The available quality values depend on the G.781
               t1 | e1] }
                                                                        synchronization settings specified by the network-clock
               Example:                                                 synchronization ssm option command:
                                                                              • Option 1—Available values are QL-PRC, QL-SSU-A,
               Router(config)# network-clock quality-level rx
               qL-pRC external R0 e1 cas crc4                                   QL-SSU-B, QL-SEC, and QL-DNU.
                                                                              • Option 2, GEN1—Available values are QL-PRS,
                                                                                QL-STU, QL-ST2, QL-SMC, QL-ST4, and QL-DUS.
                                                                              • Option 2, GEN 2—Available values are QL-PRS,
                                                                                QL-STU, QL-ST2, QL-TNC, QL-ST3, QL-SMC,
                                                                                QL-ST4, and QL-DUS.
Example:
Router(config-if)#
Step 16        network-clock source quality-level value {tx | rx}     Applies quality level on sync E interface.
               Example:                                               The available quality values depend on the G.781
                                                                      synchronization settings specified by the network-clock
               Router(config-if)# network-clock source                synchronization ssm option command:
               quality-level QL-PrC tx
                                                                         • Option 1—Available values are QL-PRC, QL-SSU-A,
                                                                           QL-SSU-B, QL-SEC, and QL-DNU.
                                                                         • Option 2, GEN1—Available values are QL-PRS,
                                                                           QL-STU, QL-ST2, QL-SMC, QL-ST4, and QL-DUS.
                                                                         • Option 2, GEN 2—Available values are QL-PRS,
                                                                           QL-STU, QL-ST2, QL-TNC, QL-ST3, QL-SMC,
                                                                           QL-ST4, and QL-DUS.
Step 17        esmc mode [ql-disabled | tx | rx] value                Enables the ESMC process at the interface level. The no
                                                                      form of the command disables the ESMC process.
               Example:
Step 19        network-clock wait-to-restore seconds                  (Optional) Configures the wait-to-restore timer for an
                                                                      individual synchronous Ethernet interface.
               Example:
Router(config-if)# end
                        What to do next
                        You can use the show network-clocks command to verify your configuration.
                Note   The new clock source must be of higher quality than the current clock source; otherwise the router does not
                       select the new clock source.
Command Purpose
                       network-clock clear switch {t0 | external slot/card/port [10m Disable a clock source selection.
                       | 2m]}
Note This command selects the new clock regardless of availability or quality.
Note Forcing a clock source selection overrides a clock selection using the network-clock switch manual command.
Command Purpose
                       network-clock switch force external R0 | R1 {{E1 {crc4 Forces the router to use a specific synchronous
                       | cas |fas}} {T1 {d4 | sf | esf}} }                    Ethernet clock source, regardless of clock
                                                                              quality or availability.
                       Router# network-clock switch force r0 e1 crc4
Command Purpose
                         network-clock clear switch {t0 | external slot/card/port     Disable a clock source selection.
                         [10m | 2m]}
Command Purpose
network-clock clear switch {t0 | external slot/card/port [10m | 2m]} Disable a clock source selection.
Command Purpose
Command Purpose
Troubleshooting
                       The below table list the debug commands that are available for troubleshooting the SyncE configuration on
                       the Cisco ASR 920 Series Router:
Caution We recommend that you do not use debug commands without TAC supervision.
                       debug platform network-clock                      Debugs issues related to the network clock including
                                                                         active-standby selection, alarms, and OOR messages.
                      debug esmc error                                        These commands verify whether the ESMC packets are
                                                                              transmitted and received with proper quality-level values.
                      debug esmc event
                      debug esmc packet [interface interface-name]
                      debug esmc packet rx [interface interface-name]
                      debug esmc packet tx [interface interface-name]
The below table provides the information about troubleshooting your configuration
Problem Solution
                      Clock selection                        • Verify that there are no alarms on the interfaces using the show
                                                               network-clock synchronization detail command.
                                                             • Ensure that the nonrevertive configurations are in place.
                                                             • Reproduce the issue and collect the logs using the debug network-clock
                                                               errors, debug network-clock event, and debug network-clock sm
                                                               commands. Contact Cisco Technical Support if the issue persists.
                      Incorrect QL values                    • Ensure that there is no framing mismatch with the SSM option.
                                                             • Reproduce the issue using the debug network-clock errors and debug
                                                               network-clock event commands.
                      Alarms                                 • Reproduce the issue using the debug platform network-clock command
                                                               enabled in the RSP. Alternatively, enable the debug network-clock event
                                                               and debug network-clock errors commands.
                      Incorrect clock limit set or           • Verify that there are no alarms on the interfaces using the show
                      queue limit disabled mode                network-clock synchronization detail command.
                                                             • Use the show network-clock synchronization command to confirm if
                                                               the system is in revertive mode or nonrevertive mode and verify the
                                                               non-revertive configurations.
                                                             • Reproduce the current issue and collect the logs using the debug
                                                               network-clock errors, debug network-clock event, and debug network-clock
                                                               sm RSP commands.
                      Incorrect QL values when               • Use the network clock synchronization SSM (option 1 |option 2)
                      you use the show                         command to confirm that there is no framing mismatch. Use the show
                      network-clock                            run interface command to validate the framing for a specific interface.
                      synchronization detail                   For the SSM option 1, framing should be SDH or E1, and for SSM option
                      command.                                 2, it should be T1.
                                                             • Reproduce the issue using the debug network-clock errors and debug
                                                               network-clock event RSP commands.
Configuration Examples
                       This section contains sample configurations for clocking features on the Cisco ASR 920 Series Router.
Note This section contains partial router configurations intended to demonstrate a specific feature.
Ordinary Clock—Slave
Ordinary Clock—Master
Unicast Negotiation—Slave
Unicast Negotiation—Master
Boundary Clock
Transparent Clock
Hybrid Clock—Boundary
Hybrid Clock—Slave
PTP Redundancy—Slave
PTP Redundancy—Boundary
ToD/1PPS Configuration—Master
ToD/1PPS Configuration—Slave
Show Commands
                       PTP Master
                     Name                  Tx Mode         Role           Transport State            Sessions Port Addr
                     !
                     Interface GigabitEthernet0/0
                         synchronous mode
                         network-clock wait-to-restore 720
                     !
                     Interface GigabitEthernet0/1
                         synchronous mode
                     !
                     !
                     network-clock synchronization automatic
                     network-clock input-source 1 External R0 e1 crc4
                     network-clock input-source 1 gigabitethernet 0/0
                     network-clock input-source 2 gigabitethernet 0/1
                     network-clock synchronization mode QL-enabled
                     no network-clock revertive