OcNOS SP : Timing and Synchronization Guide : Precision Time Protocol Configuration : PTP G.8265.1 Profile Configuration
PTP G.8265.1 Profile Configuration
This chapter shows how to configure a PTP G.8265.1 profile over IPv4. G.8265.1 profile only supports Ordinary Clock-type (a clock with only one PTP port).
Topology
Configuration Topology
In this example, SW1, SW2 and SW3 are running PTP. SW1 acting as T-GM, SW2 as a Transparent clock and SW3 as a slave clock.
PTP G.8265.1 Profile Configuration
This section shows how to set up G.8265.1 profile.
SW2 (Transparent clock)
 
#configure terminal
Enter Configure mode
(config)#bridge 1 protocol mstp
Create bridge 1 as an MSTP bridge (this step is not mandatory, but is a good practice to avoid layer 2 loops)
(config)#vlan database
Create Vlan database
(config-vlan)#vlan 10 bridge 1
Configure Vlan 10 associated with bridge1
(config-vlan)#exit
Exit Interface mode
(config)#ptp clock 0 profile e2e-transparent
Configure Switch as Transparent clock
(config)#interface xe4
Configure interface xe4
(config-if)#switchport
Configure xe4 as Layer 2 port
(config-if)#bridge-group 1
Configure xe4 in bridge group 1
(config-if)#switchport mode trunk
Configure mode trunk
(config-if)#switchport trunk allowed vlan add 10
Add vlan 10 to the interface xe4
(conig-if)#exit
Exit Interface mode
(config)#interface xe6
Configure interface xe6
(config-if)#switchport
Configure xe6 as Layer 2 port
(config-if)#bridge-group 1
Configure xe6 in bridge group 1
(config-if)#switchport mode trunk
Configure mode trunk
(config-if)#switchport trunk allowed vlan add 10
Add vlan 10 to the interface xe4
(conig-if)#exit
Exit Interface mode
SW3 (Slave clock)
 
(config)#synce-interface ptp
Configure synce interface ptp
(config-synce-if)#mode synchronous
Configure synchronous mode
(config-synce-if)#input-source 1
Configure the interface as an input source with priority 1
(config-synce-if)#quality-level QL_PRC
Configure QL-value.
(config-synce-if)#mode synchronous
Configure synchronous mode.
(config-synce-if)#wait-to-restore 0
Configure Wait-to-Restore timer.
(config-synce-if)#exit
Exit Interface configure mode
(config)#interface xe6
Configure interface xe6
(config-if)#ip address 192.168.5.103/24
Configure Ipv4 address of interface
(config-if)#exit
Exit interface mode
(config)#ptp clock 0 profile g8265.1
Enables G8265.1 for PTP time/phase telecom profile
(config-ptp-clk)#slave-only
Configure the device as a Slave clock
(config-clk-clk)#clock-port 1
Configure ptp clock-port 1
(config-clk-port)#transport ipv4
Configure transport as ipv4
(config-clk-port)#network-interface xe6
Configure underlying interface that is used by this PTP Port
(config-clk-port)#master ipv4 192.168.5.102
Configure the master ipv4 address
(config-clk-port)#exit
Exit ptp clock port mode
SW1 (T-GM)
 
#configure terminal
Enter Configure mode
(config)#bridge 1 protocol mstp
Create bridge 1 as an MSTP bridge (this step is not mandatory, but is a good practice to avoid layer 2 loops)
(config)#synce
Enter configure Synchronous Ethernet mode.
(config-synce)#synchronization option 1
Set the synchronization network type.
(config-synce)#exit
Exit Synce mode
(config)#synce-interface gps
Configure synce interface gps
(config-synce-if)#mode synchronous
Configure synchronous mode
(config-synce-if)#input-source 1
Configure the interface as an input source with priority 1
(config-synce-if)#quality-level QL_PRC
Configure QL-value.
(config-synce-if)#mode synchronous
Configure synchronous mode.
(config-synce-if)#wait-to-restore 0
Configure Wait-to-Restore timer.
(config-synce-if)#exit
Exit Port Configure mode
(config)#interface xe4
Configure interface xe4
(config-if)#ip address 192.168.5.102/24
Configure ipv4 address of xe4
(config-if)#exit
Exit interface mode
(config)#ptp clock 0 profile g8265.1
Enables G8265.1 for PTP time/phase telecom profile
(config-ptp-clk)#clock-type tgm
Enables clock type as T-GM
(config-ptp-clk)#number-ports 2
Configure the number of PTP ports on the instance
(config-ptp-clk)#clock-port 2
Configure ptp clock-port 2
(config-ptp-clk)#transport ipv4
Configure transport as ipv4
(config-clk-port)#master-only
Configure the port as an master-only port
(config-clk-port)#network-interface xe4
Configure underlying interface that is used by this PTP Port
(config-clk-port)#exit
Exit ptp clock port mode
(config-ptp-clk)#clock-port 1
Configure ptp clock-port 1
(config-clk-port)#network-interface gps
Configure underlying interface that is used by this PTP Port
(config-clk-port)#exit
Exit ptp clock port mode
Validation
SW1
1. Verify the port state on SW1.
#sh ptp servo
PTP servo status for clock 0
Servo Config : Freq + Phase Correction
Servo State : Time Locked
Servo State Duration : 00:16:07
Servo APTS Mode : GPS
Frequency Correction : 231.812 ppb
Phase Correction : -155999960695.000 nsec
Offset From Master : 0.000 nsec
Mean Path Delay : 0 nsec
APTS GPS to PTP Offset : 0 nsec
Sync Packet Rate : 0
Delay Packet Rate : 0
SW3
 
1. Verify the ptp servo on SW3.
#sh ptp servo
PTP servo status for clock 0
Servo Config : Freq + Phase Correction
Servo State : Time Locked
Servo State Duration : 00:16:39
Servo APTS Mode : PTP
Frequency Correction : -217.791 ppb
Phase Correction : 48.000 nsec
Offset From Master : 77.000 nsec
Mean Path Delay : 246 nsec
APTS GPS to PTP Offset : 0 nsec
Sync Packet Rate : 32
Delay Packet Rate : 32
2. Verify the port status on SW3.
#sh ptp port
Port 1:
Port State : Slave
Port Identity : E8:C5:7A:FF:FE:5C:A0:6C:00:01
Peer Mean Path Delay : 0
Log Announce Interval : 1
Log Min Delay Req Interval : -5
Log Sync Interval : -5
Announce Receipt Timeout : 3
Delay Mechanism : End to end
Version Number : 2
Local Priority : 128
Master only : False
Signal Fail : False
Network Interface : xe6
Vlan Configured :
Description :
TTL : 64
DSCP : 56
Unicast Grant Duration : 300
Configured delay asymmetry : 0 nsec
 
Number of Foreign Masters : 1
Current Foreign Master : 0
 
Foreign Master #0
IPv4 Address : 192.168.5.102
Grandmaster clockIdentity : E8:C5:7A:FF:FE:69:4D:E6
Port ID : E8:C5:7A:FF:FE:69:4D:E6:00:01
clockClass : 84
Clock accuracy : 33
Offset scaled log variance : 20061
priority1 : 128
priority2 : 128
Steps removed : 1
PDV Scaled Allan Variance : 21
 
Received Packets : 255700
Discarded Packets : 122
Transmitted Packets : 126785
 
Drop Counters
Pkt rcvd on bad port state : 122
 
Peer #0
IPv4 Address : 192.168.5.102
Clock Identity : e8:c5:7a:ff:fe:69:4d:e6
Received Announce : 1983
Received Sync : 61345
Received Delay Response : 61223
Received Signalling : 81
Transmitted Delay Request : 61223
Transmitted Signalling : 28
 
Master #0 : 192.168.5.102
 
Note: Note: Use show ptp stats to collect the PTP statistics and use clear ptp stats to clear the same.