Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring an Ordinary Slave Clock Without Unicast-Negotiation

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

Requirements

This example uses the following hardware and software components:

  • One ACX Series router
  • Junos OS Release 12.2 or later

Overview

In this configuration, unicast-negotiation is not configured, so the PTP slave has no control over the rate of the negotiation. The PTP master (a Brilliant Grand Master or an MX Series router) must be configured with the parameters of the PTP slave, such as announce, synchronization, and delay-response packets to control the rate of the negotiation.

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 slave clock without unicast-negotiation, perform these tasks:

CLI Quick Configuration

set protocols ptp clock-mode ordinary
set protocols ptp ipv4-dscp 46
set protocols ptp slave interface ge-0/2/0.0 unicast-mode transport ipv4
set protocols ptp slave interface ge-0/2/0.0 unicast-mode clock-source 12.1.1.4 local-ip-address 12.1.1.5

Configuring an ordinary slave clock without unicast-negotiation

Step-by-Step Procedure

  1. Configure the clock mode:
    [edit protocols ptp]user@host# set clock-mode ordinary
  2. Configure the Differentiated Services code point (DSCP) value for all PTP IPv4 packets originated by the router:
    [edit protocols ptp]user@host# set ipv4-dscp 46
  3. Configure the slave interface:
    [edit protocols ptp]user@host# edit slave interface ge-0/2/0.0
  4. Configure the unicast transport mode:
    [edit protocols ptp slave interface ge-0/2/0.0]user@host# set unicast-mode transport ipv4
  5. Configure the clock source:
    [edit protocols ptp slave interface ge-0/2/0.0]user@host# unicast-mode clock-source 12.1.1.4 local-ip-address 12.1.1.5
  6. Verify the configuration:
    [edit protocols ptp slave interface ge-0/2/0.0]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

In this example, the PTP slave on the local interface ge-0/2/0 is assigned a local IP address of 12.1.1.5. Unicast-negotiation is not configured so the PTP master must be explicitly configured with the details of the PTP slave (12.1.1.5).

[edit protocols]
user@host# show 
ptp {
    clock-mode ordinary;
    ipv4-dscp 46;
    slave {
        interface ge-0/2/0.0 {
            unicast-mode {
                transport ipv4;
                clock-source 12.1.1.4 local-ip-address 12.1.1.5;
            }
        }
    }
}

Published: 2013-01-11