Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Timing and Synchronization Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configure Centralized Clocking on MX2020

date_range 20-Dec-24

These examples show how to configure the following clock sources and features on an MX2020 router.

These examples show how to configure the following clock sources and features on an MX2020 router: Synchronous Ethernet, Precision Time Protocol (PTP) timeReceiver, hybrid PTP timeReceiver, and retiming through the building-integrated timing supply (BITS) external interface.

Requirements

These examples use the following hardware and software components:

  • One MX2020, with MPC 16x10GE or MPC2Es (see MPCs Supported by MX Series Routers) for Synchronous Ethernet clock sources, or MPC2E-P for PTP clock sources

  • One Synchronous Ethernet clock source device

  • One PTP grandmaster clock device

  • One BITS device (may be the same as the PTP grandmaster clock device)

  • Junos OS Release 13.3 for MX2020 routers

  • Junos OS Release 13.3 or later to configure a BITS interface as an input, output, or I/O clock source for MX2020 router

  • Configure the MX Series interface as a chassis synchronization source to the device that provides a Synchronous Ethernet clock source.

Overview

With the addition of a Stratum 3 (ST3) clock module the MX2020 chassis can perform clock monitoring, filtering, and holdover in a centralized chassis location. Chassis line cards can be configured to recover network timing clocks at the physical layer via Synchronous Ethernet or by a packet-based PTP implementation. These recovered clocks are routed to MX2020 SCB ST3 clock module via the chassis backplane. A clock selection algorithm is run that selects the best quality recovered clock from the list of configured clock sources. The ST3 clock module locks to the selected clock source and fans it out to the chassis line cards. 16x10GE 3D and MPC2Es (see MPCs Supported by MX Series Routers) can distribute this clock to downstream network elements via Synchronous Ethernet.

The ST3 clock module acquires holdover data while locked to the selected clock source. If the clock fails, the ST3 clock module enters holdover mode and replays collected holdover data to maintain its output clock. The ST3 holdover performance depends on the drift of the MX SCB OCXO device.

In Junos 13.3, support was added for synchronizing an MX2020 chassis to a BITS timing source using any of the two BITS interfaces. The quality level is used by the chassis clock-selection algorithm. When BITS output is configured, the source-mode can be configured as either chassis or line.

The BITS external interface can be connected to a retiming device, which cleans up the clock and sends it back in the external BITS interface. The conditioned input BITS clock is selected as the chassis clock and distributed downstream via Synchronous Ethernet interfaces. The tx-dnu-to-line-source-enable option is used to prevent a timing loop. For instructions on how to configure retiming through the BITS external interface, see Configure Retiming through the BITS External Interface.

Prior to 13.3, clock monitoring, filtering, and holdover functions were distributed throughout the chassis and performed on MPC2E line cards. This distributed clocking mode limits the distribution of timing to downstream network elements on MPC2E interfaces only. Centralized clocking mode removes this limitation by supporting the distribution of timing on MPC 16x 10GE line interfaces as well.

Configuration

To configure centralized clocking, perform one or more of these tasks:

Configure Centralized Clocking from a Synchronous Ethernet Clock Source

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
set chassis synchronization network-option option-2
set chassis synchronization source interfaces ge-4/1/0 priority 1 
set chassis synchronization source interfaces ge-4/1/0 quality-level st3 

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure a Synchronous Ethernet clock source:

  1. Configure the network option:

    content_copy zoom_out_map
    [edit chassis synchronization]
    user@host# set network-option option-2
    
  2. Configure the priority and quality level of the clock source on this interface:

    content_copy zoom_out_map
    [edit chassis synchronization source interfaces ge-4/1/0]
    user@host# set priority 1
    user@host# set quality-level st3
    

Results

From configuration mode, confirm your configuration by entering the show chassis synchronization command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

content_copy zoom_out_map
[edit]
user@host# show chassis synchronization
network-option option-2;
source {                
     interfaces ge-4/1/0 {   
          priority 1;             
          quality-level st3;      
     }
}

After you configure the device, enter commit from configuration mode.

Configure an Ordinary PTP Clock Source

Step-by-Step Procedure

To configure a PTP clock source:

  1. Configure ordinary mode PTP on the ge-4/1/9 interface to the PTP grandmaster clock device. See Example: Configure Precision Time Protocol.

Configure Centralized Clocking from a Hybrid Mode PTP Clock Source

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
set chassis synchronization network-option option-2
set chassis synchronization source interfaces ge-4/1/0 priority 1 
set chassis synchronization source interfaces ge-4/1/0 quality-level st3 

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure a hybrid mode PTP clock source:

  1. Configure the network option:

    content_copy zoom_out_map
    [edit chassis synchronization]
    user@host# set network-option option-2
    
  2. Configure the priority and quality level of the clock source on this interface:

    content_copy zoom_out_map
    [edit chassis synchronization source interfaces ge-4/1/0]
    user@host# set priority 1
    user@host# set quality-level st3
    
  3. To configure hybrid mode PTP on the ge-4/1/9 interface to the PTP grandmaster clock device, see Configure Hybrid Mode PTP.

Results

From configuration mode, confirm your configuration by entering the show chassis synchronization command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

content_copy zoom_out_map
[edit]
user@host# show chassis synchronization
network-option option-2;
source {                
     interfaces ge-4/1/0 {   
          priority 1;             
          quality-level st3;      
     }
}

After you configure the device, enter commit from configuration mode.

Configure Hybrid Mode PTP

CLI Quick Configuration

To quickly configure hybrid mode on the ge-4/1/0 interface with the clock source IP address as 2.2.2.2, copy the following commands, paste them in a text file, remove any line breaks, and then copy and paste the commands into the CLI.

content_copy zoom_out_map
[edit]
set protocols ptp slave hybrid
set protocols ptp slave hybrid synchronous-ethernet-mapping
set protocols ptp slave hybrid synchronous-ethernet-mapping clock-source 2.2.2.2 interface ge-4/1/0
set protocols ptp slave convert-clock-class-to-quality-level

Step-by-Step Procedure

To configure hybrid mode on an MX240 router with mapping of the PTP clock class perform the following steps:

  1. Configure the convert-clock-class-to-quality-level option on the timeReceiver at the [edit protocols ptp slave] hierarchy level.

    content_copy zoom_out_map
    [edit protocols ptp slave]
    user@host# set convert-clock-class-to-quality-level
    
  2. Configure hybrid mode on the timeReceiver.

    content_copy zoom_out_map
    [edit protocols ptp slave]
    user@host# edit hybrid
    
  3. Configure the Synchronous Ethernet mapping option, IP address of the timeTransmitter clock as 2.2.2.2, and the interface ge-4/1/0 for hybrid mode on the timeReceiver.

    content_copy zoom_out_map
    [edit protocols ptp slave hybrid]
    user@host# set synchronous-ethernet-mapping clock-source 2.2.2.2 interface ge-4/1/0
    

Results

Display the results of the configuration of hybrid mode with the mapping of the PTP clock class to the ESMC quality level:

content_copy zoom_out_map
[edit protocols ptp slave]
user@host# show
convert-clock-class-to-quality-level
hybrid {
    synchronous-ethernet-mapping {
        clock-source 2.2.2.2 {
        interface  ge-4/1/0;
        }
    }
}

Configure Retiming through the BITS External Interface

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
set chassis synchronization network-option option-2
set chassis synchronization interfaces external signal-type t1
set chassis synchronization interfaces external t1-options line-encoding b8zs
set chassis synchronization interfaces external t1-options framing sf
set chassis synchronization output interfaces external wander-filter-disable
set chassis synchronization output interfaces external holdover-mode-disable
set chassis synchronization output interfaces external source-mode line
set chassis synchronization output interfaces external tx-dnu-to-line-source-enable
set chassis synchronization output interfaces external minimum-quality st3
set chassis synchronization source interfaces ge-4/0/1 quality-level st3
set chassis synchronization source interfaces external quality-level prs

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure retiming through the BITS external interface using an SSU:

  1. Configure the network option (G.812 type IV clock):

    content_copy zoom_out_map
    [edit chassis synchronization]
    user@host# set network-option option-2
    
  2. Configure the external BITS signal type (T1-coded 1.544-MHz signal on 100-ohm balanced line):

    content_copy zoom_out_map
    [edit chassis synchronization interfaces external]
    set signal-type t1
    
  3. Configure the external BITS signal line-encoding (B8ZS) and framing (superframe) options:

    content_copy zoom_out_map
    [edit chassis synchronization interfaces external]
    user@host# set t1-options line-encoding b8zs
    user@host# set t1-options framing sf
    
  4. Configure the output external BITS signal properties:

    • Disable wander filtering:

      content_copy zoom_out_map
      [edit chassis synchronization output interfaces external]
      user@host# set wander-filter-disable
      
    • Disable holdover:

      content_copy zoom_out_map
      [edit chassis synchronization output interfaces external]
      user@host# set holdover-mode-disable
      
    • Select the best line clock source for output:

      content_copy zoom_out_map
      [edit chassis synchronization output interfaces external]
      user@host# set source-mode line
      
    • Set Tx QL to DNU/DUS on the line source interface to prevent a timing loop:

      content_copy zoom_out_map
      [edit chassis synchronization output interfaces external]
      user@host# set tx-dnu-to-line-source-enable
      
    • Set minimum quality level:

      content_copy zoom_out_map
      [edit chassis synchronization output interfaces external]
      user@host# set minimum-quality st3
      
  5. Configure the incoming clock source and quality level:

    content_copy zoom_out_map
    [edit chassis synchronization source interfaces ge-4/0/1]
    user@host# set quality-level st3
    
  6. Configure the external clock source and quality level:

    content_copy zoom_out_map
    [edit chassis synchronization source interfaces external]
    user@host# set quality-level prs
    

Results

From configuration mode, confirm your configuration by entering the show chassis synchronization command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

content_copy zoom_out_map
[edit]
user@host# show chassis synchronization
network-option option-2;
interfaces external {
    signal-type t1;
    t1-options {
        line-encoding b8zs;
        framing sf;
    }
}
output {
    interfaces external {
        wander-filter-disable;
        holdover-mode-disable;
        source-mode line;
        tx-dnu-to-line-source-enable;
        minimum-quality st3;
    }
}
source {
    interfaces ge-4/0/1 {
        quality-level st3;
    }
    interfaces external {
        quality-level prs;
    }
}

After you configure the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verify the Synchronous Ethernet Clock Source

Purpose

Verify that the MX Series router recovers, selects, qualifies, and locks to the configured Synchronous Ethernet clock source.

Action

From operational mode, enter the show chassis synchronization clock-module command.

content_copy zoom_out_map
user@host> show chassis synchronization clock-module

Clock module on SCB0
  Current role     : master
  Current state    : locked to ge-4/1/0
    State for      : 0 days, 00 hrs, 00 mins, 15 secs
    State since    : Mon Jun  6 07:28:47 2011
  Monitored clock sources
    Interface      Type         Status
    ge-4/1/0       syncE        qualified-selected

Meaning

The Monitored clock sources field shows that the ge-4/1/0 interface has the Synchronous Ethernet type and is the qualified and selected centralized clock source.

Verify the Ordinary PTP Clock Source

Purpose

Verify that the MX Series router recovers, selects, qualifies, and locks to the configured PTP clock source.

Action

From operational mode, enter the show chassis synchronization clock-module command.

content_copy zoom_out_map
user@host> show chassis synchronization clock-module

Clock module on SCB0
  Current role     : master
  Current state    : locked to ge-4/1/9
    State for      : 0 days, 00 hrs, 00 mins, 45 secs
    State since    : Wed Jun 29 10:52:05 2011
  Monitored clock sources
    Interface      Type         Status
    ge-4/1/9       ptp          qualified-selected

Meaning

The Monitored clock sources field shows that the ge-4/1/9 interface has the ptp type and is the qualified and selected centralized clock source.

Verify the Hybrid PTP Clock Source

Purpose

Verify that the MX Series router recovers, selects, qualifies, and locks to the configured hybrid PTP clock source.

Action

From operational mode, enter the show chassis synchronization clock-module command.

content_copy zoom_out_map
user@host> show chassis synchronization clock-module

Clock module on SCB0
  Current role     : master
  Current state    : locked to ge-4/1/9
    State for      : 0 days, 00 hrs, 00 mins, 15 secs
    State since    : Wed Jun 29 11:19:25 2011
  Monitored clock sources
    Interface      Type         Status
    ge-4/1/9       ptp-hybrid   qualified-selected

Configured sources:

Interface           : ge-4/1/0
Status              : Primary       Index       : 218
Clock source state  : Clk qualified Priority    : 1
Configured QL       : ST3           ESMC QL     : DUS
Clock source type   : ifd           Clock Event : Clock locked
Kernel flags        : Up,sec,

Meaning

The Monitored clock sources field shows that the ge-4/1/9 interface has the ptp-hybrid type and is the qualified and selected centralized clock source. The Configured sources field shows that the ge-4/1/0 interface has the Clock locked Clock Event .

Verify the Retiming through the BITS External Interface

Purpose

Verify that the MX Series router recovers, selects, qualifies, and locks to the configured clock source, and that the external clock is locked to the configured clock source.

Action

From operational mode, enter the show chassis synchronization extensive command.

content_copy zoom_out_map
user@host> show chassis synchronization extensive

Current clock status  : Locked
Clock locked to       : Primary

Configured interfaces:

Name         : external
Signal type  : t1 (sf b8zs)
Rx status    : active
Tx status    : active
LED color    : green

Configured outputs:

Interface      : external
Tx status      : active
Minimum QL     : ST3             Tx QL         : ST3
Holdover mode  : disabled        Wander filter : disabled
Source mode    : line            Source Tx DNU : enabled
Holdover data  : valid
Current state  : locked to ge-4/0/1
  State for    : 0 days, 00 hrs, 24 mins, 47 secs
  State since  : Thu Sep  6 13:01:07 2012

Configured sources:

Interface           : external
Status              : Primary       Index       : 0
Clock source state  : Clk qualified Priority    : Default(6)
Configured QL       : PRS           ESMC QL     : PRS
Clock source type   : extern        Clock Event : Clock locked
Interface State     : Up,pri,

Interface           : ge-4/0/1
Status              : Secondary     Index       : 152
Clock source state  : Clk qualified Priority    : Default(8)
Configured QL       : ST3           ESMC QL     : DUS
Clock source type   : ifd           Clock Event : Clock qualified
Interface State     : Up,sec,ESMC TX(QL DUS/SSM 0xf),

Meaning

The Configured interfaces field shows that the external interface receive and transmit statuses are active. The Configured outputs field shows that the current state is locked to ge-4/0/1. The Configured sources field shows that the external interface is the qualified and selected centralized clock source, and has the Clock locked Clock Event. The Configured sources field shows that the ge-4/0/1 interface is the secondary clock source, and has the Clock qualified Clock Event.

footer-navigation