Related Documentation
Example: Configuring Hybrid Mode
Requirements for Hybrid Mode Configuration
This example uses the following hardware and software components:
- Junos OS Release 12.1 or later.
- One MX80-T, MX80-P, MX240, MX480, or MX960 router.
Overview
This example shows the configuration of hybrid mode on all Ethernet Modular Interface Cards (MICs) and Enhanced Module Port Concentrators (MPCEs) on MX240, MX480, and MX960 routers and on the MX80 3D Universal Edge Routers with precision timing support (MX80-P) and with timing support (MX80-T).
In hybrid mode, the time synchronization is achieved through Synchronous Ethernet for frequency synchronization and through Precision Time Protocol (PTP) for phase synchronization.
![]() | Note: You can set the values for each parameter according to your requirement. The values given in this example are for illustration purposes only. |
Configuration
CLI Quick Configuration
To quickly configure hybrid mode on an interface, copy the following commands, paste them in a text file, remove any line breaks, and then copy and paste the commands into the CLI.
[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-1/2/3.0 interface ge-1/2/2.0
set protocols ptp slave convert-clock-class-to-quality-level
set protocols ptp slave clock-class-to-quality-level-mapping
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.
For step-by-step configuration, see Configuring Hybrid Mode.
To configure hybrid mode, perform the following tasks:
- Configure the frequency-only and delay-request options for the convert-clock-class-to-quality-level statement
and configure the clock-class and quality-level options
for the clock-class-to-quality-level-mapping statement on
the client node at the [edit protocols ptp slave] hierarchy
level.[edit protocols ptp slave]user@host# set convert-clock-class-to-quality-level delay-request delay-request-value frequency-onlyuser@host# set convert-clock-class-to-quality-level quality-level ql-value clock-class clock-class-value
- Configure hybrid mode on the client node.[edit protocols ptp slave]user@host# edit hybrid
- Configure the Synchronous Ethernet mapping option, IP
address of the master clock, and the interfaces for hybrid mode on
the client node.[edit protocols ptp slave hybrid]user@host# set synchronous-ethernet-mapping clock-source ip-address interface interface1-name interface interface2-name
Results
Display the results of the configuration:
Verification
Confirm the current mode of operation.
Verifying the Mode of Operation
Purpose
Verify the current operation mode of the system.
Action
In operational mode, enter the run show ptp hybrid command to display the current operating mode of the system as either hybrid or ptp-only mode.
Meaning
The output displays the mode of operation as either hybrid mode or PTP only mode.
