ON THIS PAGE
Configure Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
Configure Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
Example: Configure Hybrid Mode and ESMC Quality-Level Mapping on ACX Series Router
Example: Configure Hybrid Mode and ESMC Quality-Level Mapping on MX240 Router
Configure Hybrid Mode and ESMC Quality-Level Mapping
Configure Hybrid Mode and ESMC Quality-Level Mapping
You can configure hybrid mode (that is, the combined operation of Synchronous Ethernet and PTP) on ACX Series routers, MX240, MX480, and MX960 Universal Routing Platforms and on MX80 Universal Routing Platforms with precision timing support (MX80-P) and with timing support (MX80-T). On the MX240, MX480, and MX960 routers, the combined operation is possible only when the PTP client and the Synchronous Ethernet source are on the same enhanced Modular Port Concentrator (MPC) and are traceable to the same primary. On the ACX Series routers, the combined operation is possible only when the PTP client and the Synchronous Ethernet source are on the same device and are traceable to the same primary. When acting as a PTP client, the router can accept any external Synchronous Ethernet clock as reference. Note that when the selected Synchronous Ethernet reference fails, the router continues to work in PTP mode.
In hybrid mode, the synchronous Ethernet equipment clock (EEC) on the MPC derives the frequency from Synchronous Ethernet and the phase and time of day from PTP.
The hybrid mode is configured on the client. On the client, one or more interfaces are configured as Synchronous Ethernet source interfaces.
The Ethernet Synchronization Message Channel (ESMC) quality level value is mapped to the clock class value either by mapping the PTP clock class to the ESMC quality level or by configuring a user-defined mapping of PTP clock class to ESMC quality level. The following procedures explain configuring hybrid mode with either of the modes in detail.
Configure the Router in Hybrid Mode
To configure the router in hybrid mode, you must:
Configure Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
To configure hybrid mode options with mapping of the PTP clock class to the ESMC quality level, perform the following steps:
Configure Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
To configure hybrid mode options with a user-defined mapping of the PTP clock class to the ESMC quality level, perform the following steps:
Example: Configure Hybrid Mode and ESMC Quality-Level Mapping on ACX Series Router
This example shows the configuration of hybrid mode by mapping the PTP clock class to the ESMC quality level and also by configuring a user-defined mapping of the PTP clock class to the ESMC quality level on ACX Series Routers.
Requirements for Hybrid Mode Configuration
This example uses the following hardware and software components:
-
One ACX Series router
-
Junos OS Release 12.2R2 or later
Overview
The combined operation of Synchronous Ethernet and Precision Time Protocol (PTP) is also known as hybrid mode. In hybrid mode, the synchronous Ethernet equipment clock (EEC) on the Modular Port Concentrator (MPC) derives the frequency from Synchronous Ethernet and the phase and time of day from PTP.
You can configure hybrid mode on ACX Series routers. On these routers, the combined operation is possible only when the PTP client and the Synchronous Ethernet source are on the same device and are traceable to the same primary. When acting as a PTP client, the router can accept any external Synchronous Ethernet clock as reference. Note that when the selected Synchronous Ethernet reference fails, the router continues to work in PTP mode.
Hybrid mode is configured on the client. On the client, one or more interfaces are configured as Synchronous Ethernet source interfaces.
You can set the values for each parameter according to your requirement. The values given in this example are for illustration purposes only.
The ESMC quality level value is mapped to the clock class value either by mapping the PTP clock class to the ESMC quality level or by configuring a user-defined mapping of the PTP clock class to the ESMC quality level. The following examples explain configuring hybrid mode with either of the modes in detail.
To configure the router in hybrid mode, you must:
-
Configure Synchronous Ethernet options at the
[edit chassis synchronization]
hierarchy level:-
Configure the
auto-select
mode of operation. You can select the clock source either from a free-run local oscillator or from an external qualified clock.When the router is configured with the
auto-select
option, the router chooses up to two best upstream clock sources. It then uses the clock recovered from one of the sources to lock the chassis clock. If an upstream clock with acceptable quality is not available or if the router is configured in free-run mode, the router uses the internal oscillator. -
Configure the
esmc-transmit
andnetwork-option
options at the[edit chassis synchronization]
hierarchy level. -
Configure one or more interfaces at the
[edit chassis synchronization]
hierarchy level as Synchronous Ethernet sources as needed.
-
-
Configure PTP options at the
[edit protocols ptp]
hierarchy level. -
Configure hybrid mode options at the
[edit protocols ptp slave]
hierarchy level.
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Use the CLI Editor in Configuration Mode.
Configuration
- Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
- Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
CLI Quick Configuration
To quickly configure hybrid mode on the ge-1/2/3.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.
[edit]
set protocols ptp slave hybrid
set protocols
ptp slave interface ge-1/2/3.0 unicast-mode clock-source 2.2.2.2
set protocols ptp slave
convert-clock-class-to-quality-level
Step-by-Step Procedure
To configure hybrid mode on an ACX Series router with mapping of the PTP clock class to the ESMC quality level, perform the following steps:
-
Configure the
convert-clock-class-to-quality-level
option on the client at the[edit protocols ptp slave]
hierarchy level.[edit protocols ptp slave] user@host# set convert-clock-class-to-quality-level
-
Configure hybrid mode on the client.
[edit protocols ptp slave] user@host# edit hybrid
-
Configure the Synchronous Ethernet mapping option, IP address of the primary clock as 2.2.2.2, and the interface ge-1/2/3.0 for hybrid mode on the client.
[edit protocols ptp slave] user@host# set interface ge-1/2/3.0 unicast-mode clock-source 2.2.2.2
Results
Display the results of the configuration of hybrid mode with the mapping of the PTP clock class to the ESMC quality level:
[edit protocols ptp slave] user@host# show convert-clock-class-to-quality-level interface ge-1/2/3.0 unicast-mode clock-source 2.2.2.2 hybrid
Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
CLI Quick Configuration
To quickly configure hybrid mode on the interface ge-1/2/3.0, 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
set protocols ptp slave
interface unicast-mode ge-1/2/3.0 clock-source
2.2.2.2
set protocols ptp slave
clock-class-to-quality-level-mapping quality-level prc clock-class
80
Step-by-Step Procedure
To configure hybrid mode with a user-defined mapping of the PTP clock class to the ESMC quality level on an ACX Series router, perform the following steps:
-
Configure the
quality-level
option for theclock-class-to-quality-level-mapping
statement on the client at the[edit protocols ptp slave]
hierarchy level and then configure theclock-class
option for the set quality level if you want to manually override the mapping of the ESMC quality level to the clock class.[edit protocols ptp slave] user@host# set clock-class-to-quality-level-mapping quality-level prc clock-class 80
-
Configure hybrid mode on the client.
[edit protocols ptp slave] user@host# edit hybrid
-
Configure the IP address of the primary clock as 2.2.2.2 , and the interface ge-1/2/3.0 for hybrid mode on the client.
[edit protocols ptp slave] user@host# set interface ge-1/2/3.0 unicast-mode clock-source 2.2.2.2
Results
Display the results of the configuration of hybrid mode with a user-defined mapping of the PTP clock class to the ESMC quality level:
[edit protocols ptp slave] user@host# show clock-class-to-quality-level-mapping { quality-level prc { clock-class 80; } } interface ge-1/2/3.0 unicast-mode clock-source 2.2.2.2 hybrid
Verification
- Verify That the Router Is Operating in Hybrid Mode
- Verify the Quality Level Change on the Transmit Side
- Verify Global Information Parameters After Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
- Verify Global Information Parameters After Configuring User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Verify That the Router Is Operating in Hybrid Mode
Purpose
Verify the current mode of operation of the client.
Action
In operational mode, enter the run show ptp hybrid
command
to display the current configuration and current mode of operation of the
client.
In operational mode, enter the run show ptp hybrid config
command to display the PTP source to Synchronous Ethernet interface
mappings.
In operational mode, enter the run show ptp hybrid status
command to display the current hybrid mode operational status.
Meaning
The output displays the current configuration and current mode of operation
of the client. For information about the run show ptp
hybrid
operational command, see show ptp hybrid.
Verify the Quality Level Change on the Transmit Side
Purpose
Verify the quality level change on the transmit side of the router.
Action
In operational mode, enter the run show synchronous-ethernet esmc
transmit detail
command to display the ESMC transmit interface
details.
Meaning
The output displays the ESMC SSM quality level transmitted out of various
Ethernet interfaces. For information about the run show
synchronous-ethernet esmc transmit detail
operational command,
see show synchronous-ethernet esmc transmit.
Verify Global Information Parameters After Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Purpose
Verify the global information parameters after mapping of the PTP clock class
to the ESMC quality level in hybrid mode by enabling the
convert-clock-class-to-quality-level
option.
Action
In operational mode, enter the run show ptp
global-information
command to display the following output:
user@host> run show ptp global-information PTP Global Configuration: Domain number : 0 Transport Encapsulation : IPv4 Clock mode : Ordinary Priority Level1 : 128 Priority Level2 : 128 Unicast Negotiation : Disabled ESMC QL From Clock Class: Enabled Clock Class/ESMC QL : 84 / (QL SSU-A/SSM 0x4) Slave Parameters: Sync Interval : - Delay Request Interval: -6 (64 packets per second) Announce Interval : - Announce Timeout : 3 Master Parameters: Sync Interval : -6 (64 packets per second) Delay Request Interval: - Announce Interval : 1 (1 packet every 2 seconds) Clock Step : one-step Number of Slaves : 1 Number of Masters : 0
In operational mode, enter the run show ptp
quality-level-mapping
command to display the following
output:
user@host> run show ptp quality-level-mapping quality level ptp clock class PRC 84 SSU-A 92 SSU-B 96 SEC 104
Meaning
The output for run show ptp global-information
displays the
parameters set in Synchronous Ethernet mode and the parameters set for the
primary and the client.
The output of run show ptp quality-level-mapping
displays
the default mapping of the clock class to the ESMC quality level.
Verify Global Information Parameters After Configuring User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Purpose
Verify the global information parameters after configuring a user-defined
mapping of the PTP clock class to the ESMC quality level in hybrid mode by
disabling the convert-clock-class-to-quality-level
option.
Action
In operational mode, enter the run show ptp
global-information
command to display the following output:
user@host> run show ptp global-information PTP Global Configuration: Domain number : 0 Transport Encapsulation : IPv4 Clock mode : Ordinary Priority Level1 : 128 Priority Level2 : 128 Unicast Negotiation : Disabled ESMC QL From Clock Class: Disabled Clock Class/ESMC QL : - Slave Parameters: Sync Interval : - Delay Request Interval: -6 (64 packets per second) Announce Interval : - Announce Timeout : 3 Master Parameters: Sync Interval : -6 (64 packets per second) Delay Request Interval: - Announce Interval : 1 (1 packet every 2 seconds) Clock Step : one-step
Meaning
The output displays the parameters set in Synchronous Ethernet mode and the parameters set for the primary and the client.
Example: Configure Hybrid Mode and ESMC Quality-Level Mapping on MX240 Router
This example shows the configuration of hybrid mode by mapping the PTP clock class to the ESMC quality level and also by configuring a user-defined mapping of the PTP clock class to the ESMC quality level on MX240 Universal Routing Platforms.
Requirements for Hybrid Mode Configuration
This example uses the following hardware and software components:
-
One MX240 router
-
Junos OS Release 12.2R2 or later
Overview
The combined operation of Synchronous Ethernet and Precision Time Protocol (PTP) is also known as hybrid mode. In hybrid mode, the synchronous Ethernet equipment clock (EEC) on the Modular Port Concentrator (MPC) derives the frequency from Synchronous Ethernet and the phase and time of day from PTP.
You can configure hybrid mode on MX240, MX480, and MX960 Universal Routing Platforms and on MX80 Universal Routing Platforms with precision timing support (MX80-P) and with timing support (MX80-T). On the MX240, MX480, and MX960 routers, the combined operation is possible only when the PTP client and the Synchronous Ethernet source are on the same enhanced MPC and are traceable to the same primary. When acting as a PTP client, an MX80-P or MX80-T router can accept any external Synchronous Ethernet clock as reference. Note that when the selected Synchronous Ethernet reference fails, the router continues to work in PTP mode.
Hybrid mode is configured on the client. On the client, one or more interfaces are configured as Synchronous Ethernet source interfaces.
You can set the values for each parameter according to your requirement. The values given in this example are for illustration purposes only.
The ESMC quality level value is mapped to the clock class value either by mapping the PTP clock class to the ESMC quality level or by configuring a user-defined mapping of the PTP clock class to the ESMC quality level. The following examples explain configuring hybrid mode with either of the modes in detail.
To configure the router in hybrid mode, you must:
-
Configure Synchronous Ethernet options at the
[edit chassis synchronization]
hierarchy level:-
Configure the
auto-select
mode of operation. You can select the clock source either from a free-run local oscillator or from an external qualified clock.When the router is configured with the
auto-select
option, the router chooses up to two best upstream clock sources. It then uses the clock recovered from one of the sources to lock the chassis clock. If an upstream clock with acceptable quality is not available or if the router is configured in free-run mode, the router uses the internal oscillator. -
Configure the
esmc-transmit
andnetwork-option
options at the[edit chassis synchronization]
hierarchy level. -
Configure one or more interfaces at the
[edit chassis synchronization]
hierarchy level as Synchronous Ethernet sources as needed.
-
-
Configure PTP options at the
[edit protocols ptp]
hierarchy level. -
Configure hybrid mode options at the
[edit protocols ptp slave]
hierarchy level.
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Use the CLI Editor in Configuration Mode.
Configuration
- Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
- Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
Hybrid Mode with Mapping of the PTP Clock Class to the ESMC Quality-Level
CLI Quick Configuration
To quickly configure hybrid mode on the ge-1/2/3.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.
[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
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 to the ESMC quality level, perform the following steps:
-
Configure the
convert-clock-class-to-quality-level
option on the client at the[edit protocols ptp slave]
hierarchy level.[edit protocols ptp slave] user@host# set convert-clock-class-to-quality-level
-
Configure hybrid mode on the client.
[edit protocols ptp slave] user@host# edit hybrid
-
Configure the Synchronous Ethernet mapping option, IP address of the primary clock as 2.2.2.2, and the interface ge-1/2/3.0 for hybrid mode on the client.
[edit protocols ptp slave hybrid] user@host# set synchronous-ethernet-mapping clock-source 2.2.2.2 interface ge-1/2/3.0
Results
Display the results of the configuration of hybrid mode with the mapping of the PTP clock class to the ESMC quality level:
[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-1/2/3.0; } } }
Hybrid Mode with a User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level
CLI Quick Configuration
To quickly configure hybrid mode on the interface ge-1/2/3.0, 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
set protocols ptp slave
clock-class-to-quality-level-mapping quality-level prc clock-class
80
Step-by-Step Procedure
To configure hybrid mode with a user-defined mapping of the PTP clock class to the ESMC quality level on an MX240 router, perform the following steps:
-
Configure the
quality-level
option for theclock-class-to-quality-level-mapping
statement on the client at the[edit protocols ptp slave]
hierarchy level and then configure theclock-class
option for the set quality level if you want to manually override the mapping of the ESMC quality level to the clock class.[edit protocols ptp slave] user@host# set clock-class-to-quality-level-mapping quality-level prc clock-class 80
-
Configure hybrid mode on the client.
[edit protocols ptp slave] user@host# edit hybrid
-
Configure the Synchronous Ethernet mapping option, IP address of the primary clock as 2.2.2.2 , and the interface ge-1/2/3.0 for hybrid mode on the client.
[edit protocols ptp slave hybrid] user@host# set synchronous-ethernet-mapping clock-source 2.2.2.2 interface ge-1/2/3.0
Results
Display the results of the configuration of hybrid mode with a user-defined mapping of the PTP clock class to the ESMC quality level:
[edit protocols ptp slave] user@host# show clock-class-to-quality-level-mapping { quality-level prc { clock-class 80; } } hybrid { synchronous-ethernet-mapping { clock-source 2.2.2.2 { interface ge-1/2/3.0; } } }
Verification
- Verify That the Router Is Operating in Hybrid Mode
- Verify the Quality Level Change on the Transmit Side
- Verify Global Information Parameters After Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
- Verify Global Information Parameters After Configuring User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Verify That the Router Is Operating in Hybrid Mode
Purpose
Verify the current mode of operation of the client.
Action
In operational mode, enter the run show ptp hybrid
command
to display the current configuration and current mode of operation of the
client.
In operational mode, enter the run show ptp hybrid config
command to display the PTP source to Synchronous Ethernet interface
mappings.
In operational mode, enter the run show ptp hybrid status
command to display the current hybrid mode operational status.
Meaning
The output displays the current configuration and current mode of operation
of the client. For information about the run show ptp
hybrid
operational command, see show ptp hybrid.
Verify the Quality Level Change on the Transmit Side
Purpose
Verify the quality level change on the transmit side of the router.
Action
In operational mode, enter the run show synchronous-ethernet esmc
transmit detail
command to display the ESMC transmit interface
details.
Meaning
The output displays the ESMC SSM quality level transmitted out of various
Ethernet interfaces. For information about the run show
synchronous-ethernet esmc transmit detail
operational command,
see show synchronous-ethernet esmc transmit.
Verify Global Information Parameters After Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Purpose
Verify the global information parameters after mapping of the PTP clock class
to the ESMC quality level in hybrid mode by enabling the
convert-clock-class-to-quality-level
option.
Action
In operational mode, enter the run show ptp
global-information
command to display the following output:
user@host> run show ptp global-information PTP Global Configuration: Domain number : 0 Transport Encapsulation : IPv4 Clock mode : Ordinary Priority Level1 : 128 Priority Level2 : 128 Unicast Negotiation : Disabled ESMC QL From Clock Class: Enabled Clock Class/ESMC QL : 84 / (QL SSU-A/SSM 0x4) Slave Parameters: Sync Interval : - Delay Request Interval: -6 (64 packets per second) Announce Interval : - Announce Timeout : 3 Master Parameters: Sync Interval : -6 (64 packets per second) Delay Request Interval: - Announce Interval : 1 (1 packet every 2 seconds) Clock Step : one-step Number of Slaves : 1 Number of Masters : 0
In operational mode, enter the run show ptp
quality-level-mapping
command to display the following
output:
user@host> run show ptp quality-level-mapping quality level ptp clock class PRC 84 SSU-A 92 SSU-B 96 SEC 104
Meaning
The output for run show ptp global-information
displays the
parameters set in Synchronous Ethernet mode and the parameters set for the
primary and the client.
The output of run show ptp quality-level-mapping
displays
the default mapping of the clock class to the ESMC quality level.
Verify Global Information Parameters After Configuring User-Defined Mapping of the PTP Clock Class to the ESMC Quality-Level in Hybrid Mode
Purpose
Verify the global information parameters after configuring a user-defined
mapping of the PTP clock class to the ESMC quality level in hybrid mode by
disabling the convert-clock-class-to-quality-level
option.
Action
In operational mode, enter the run show ptp
global-information
command to display the following output:
user@host> run show ptp global-information PTP Global Configuration: Domain number : 0 Transport Encapsulation : IPv4 Clock mode : Ordinary Priority Level1 : 128 Priority Level2 : 128 Unicast Negotiation : Disabled ESMC QL From Clock Class: Disabled Clock Class/ESMC QL : - Slave Parameters: Sync Interval : - Delay Request Interval: -6 (64 packets per second) Announce Interval : - Announce Timeout : 3 Master Parameters: Sync Interval : -6 (64 packets per second) Delay Request Interval: - Announce Interval : 1 (1 packet every 2 seconds) Clock Step : one-step
Meaning
The output displays the parameters set in Synchronous Ethernet mode and the parameters set for the primary and the client.