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 Ordinary TimeReceiver Clock With Unicast-Negotiation

date_range 20-Dec-24

This example shows the base configuration of a Precision Time Protocol (PTP) ordinary timeReceiver clock with unicast-negotiation on an ACX Series router.

Note:

ACX5048 and ACX5096 routers do not support ordinary 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.

  • One ACX Series router

  • Junos OS Release 12.2 or later

Overview

In this configuration, the ordinary timeReceiver clock uses unicast-negotiation and compensates for some network asymmetry.

Note:

The values in this example are for illustration purposes only. You can set the values for each parameter according to your requirements.

Configuration

To configure an ordinary timeReceiver clock with unicast-negotiation, perform these tasks:

CLI Quick Configuration

content_copy zoom_out_map
set ptp clock-mode ordinary
set ptp domain 110
set ptp unicast-negotiation
set ptp slave delay-request -6
set ptp slave announce-timeout 2
set ptp slave announce-interval 3
set ptp slave sync-interval -5
set ptp slave grant-duration 7200
set ptp slave interface ge-0/1/0.0 unicast-mode transport ipv4
set ptp slave interface ge-0/1/0.0 unicast-mode clock-source 10.10.10.50 local-ip-address 10.10.10.75 asymmetry -4500

Configuring an ordinary client clock with unicast-negotiation

Step-by-Step Procedure

  1. Configure the clock mode, domain, and unicast-negotiation:

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set clock-mode ordinary domain 110 unicast-negotiation 
    
  2. Configure the announce timeout and the announce interval:

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# set slave announce-timeout 2 announce-interval 3 
    
  3. Configure the synchronization interval and the grant duration:

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host#  set slave sync-interval -5 grant-duration 7200 
    
  4. Configure the timeReceiver interface:

    content_copy zoom_out_map
    [edit protocols ptp]
    user@host# edit slave interface ge-0/1/0.0
    
  5. Configure the unicast transport mode:

    content_copy zoom_out_map
    [edit protocols ptp slave interface ge-0/1/0.0]
    user@host# set unicast-mode transport ipv4
    
  6. Configure the clock source:

    content_copy zoom_out_map
    [edit protocols ptp slave interface ge-0/1/0.0]
    user@host# edit unicast-mode clock-source 10.10.10.50 local-ip-address 10.10.10.75 
    
  7. Configure the asymmetric path:

    content_copy zoom_out_map
     [edit protocols ptp slave interface ge-0/1/0.0 unicast-mode clock-source 10.10.10.50 local-ip-address 10.10.10.75]
    user@host# set asymmetry -4500
    
  8. Verify the configuration:

    content_copy zoom_out_map
     [edit protocols ptp slave interface ge-0/1/0.0 unicast-mode clock-source 10.10.10.50 local-ip-address 10.10.10.75]
    user@host# top
     [edit]
    user@host# edit protocols
     [edit protocols]
    user@host# show
    

    See the output for the show command in the Results section.

Results

The following output shows the configuration of unicast-negotiation and compensation for some network asymmetry. The unicast-negotiation statement includes the parameters for the delay request, announce interval, synchronization interval, and grant duration values. Interface ge-0/1/0.0 is configured to compensate for an asymmetric path to the PTP timeTransmitter by subtracting 4.5 microseconds from the timeReceiver-to-timeTransmitter direction delay calculations.

content_copy zoom_out_map
[edit protocols]
user@host# show 
ptp {
    clock-mode ordinary;
    domain 110;
    unicast-negotiation;
    slave {
        delay-request -6;
        announce-timeout 2;
        announce-interval 3;
        sync-interval -5;
        grant-duration 7200;
        interface ge-0/1/0.0 {
            unicast-mode {
                transport ipv4;
                clock-source 10.10.10.50 local-ip-address 10.10.10.75 {
                    asymmetry -4500;
                }
            }
        }
    }
}
footer-navigation