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 PTP Boundary Clock

date_range 20-Dec-24

This example shows how to configure a Precision Timing Protocol (PTP) boundary clock. A boundary clock must include the configuration of at least one timeTransmitter and at least one timeReceiver. The boundary timeTransmitter receives time from a remote timeTransmitter through the timeReceiver, and in turn passes that time on to the timeReceiver clocks, which are in a timeReceiver relationship to the boundary timeTransmitter. In this example, you configure a timeTransmitter, timeReceiver, clock source, and clock client.

Note:

ACX5048 and ACX5096 routers do not support boundary clock.

Requirements

This example uses the following hardware and software components:

Note:

This example also applies to QFX Series switches. QFX Series switches do not support Gigabit Ethernet interfaces. Instead, configure PTP boundary clock parameters on 10-Gigabit Ethernet interfaces.

  • An ACX Series router

  • Junos OS Release 12.3 or later

Overview

In this example, the timeReceiver clock or clock client immediately receives announce and synchronization packets after completion of the configuration.

Configuration

Procedure

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them in 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 protocols ptp clock-mode boundary
set protocols ptp slave interface ge-1/3/9.0 unicast-mode transport ipv4
set protocols ptp slave interface ge-1/3/9.0 unicast-mode clock-source 192.1.1.2 local-ip-address 192.1.1.1
set protocols ptp master interface ge-1/0/0.0 unicast-mode transport ipv4
set protocols ptp master interface ge-1/0/0.0 unicast-mode clock-client 20.20.20.2/32 local-ip-address 20.20.20.1

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy.

To configure a boundary clock without unicast negotiation:

  1. Configure the clock mode.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set clock-mode boundary
    
  2. Configure the timeReceiver interface.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit slave interface ge-1/3/9.0
    
  3. Configure the upstream unicast PTP timeTransmitter clock source parameters.

    content_copy zoom_out_map
    [edit protocols ptp slave interface ge-1/3/9.0]
    user@host# edit unicast-mode
    
  4. Configure the encapsulation type for PTP packet transport.

    content_copy zoom_out_map
    [edit protocols ptp slave interface ge-1/3/9.0 unicast-mode ]
    user@host# set transport ipv4
    
  5. Configure the IP address of the timeTransmitter interface.

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit master interface ge-1/0/0.0
    
  6. Specify the IP address and subnet of the remote PTP host, and the IP address of the local PTP timeTransmitter interface.

    content_copy zoom_out_map
    [edit protocols ptp master interface ge-1/0/0.0 ]
    user@host# edit unicast-mode
    user@host# set protocols ptp master interface ge-1/0/0.0 unicast-mode clock-client 20.20.20.2/32 local-ip-address 20.20.20.1
    
    Note:

    For the configuration to work, the timeTransmitter interface you specify must be configured with this IP address at the [edit interfaces interface-name] hierarchy level.

  7. Configure the encapsulation type for PTP packet transport.

    content_copy zoom_out_map
    [edit protocols ptp master interface ge-1/0/0.0 unicast-mode]
    user@host# set transport ipv4
    

Results

From configuration mode, confirm your configuration by entering the show 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 protocols ptp]
user@host# show 
clock-mode boundary;
slave {
    interface ge-1/3/9.0 {
        unicast-mode {
            transport ipv4;
            clock-source 192.1.1.2 local-ip-address 192.1.1.1;
        }
    }
}
master {
    interface ge-1/0/0.0 {
        unicast-mode {
            transport ipv4;
            clock-client 20.20.20.2/32 local-ip-address 20.20.20.1;
        }
    }
}

After you have configured the device, enter the commit command from configuration mode.

footer-navigation