PTP IWF Profile Configuration
This chapter shows how to configure an Interworking function (IWF) Profile Configuration. IWF can translate between different profiles used on different network segments. OcNOS supports maximum 2 PTP instances, and instance 0 is always the master instance or instance with slave PTP ports (servo instance). Instance 1 can only have PTP ports as master and doesn't have a servo.
Topology
PTP IWF Profile Configuration
In this example, SW2 receives G.8275.1 clock from SW1 (T-GM), and after the translation, it sends G.8275.2 clock to SW3.
PTP IWF Profile Configuration
This section shows how to set up an IWF profile configuration.
SW2 (Boundary Clock)
#configure terminal | Enter Configure mode |
(config)#synce | Enter configure Synchronous Ethernet mode. |
(config-synce)#exit | Exit Synce mode |
(config)#interface eth1 | Configure interface ge14 |
(config-if)# synce | Enter configure Synchronous Ethernet mode. |
(config-synce-if)# mode synchronous | Configure synchronous mode |
(config-synce-if)# input-source 2 | Configure the interface as an input source with priority 2 |
(config-synce-if)# wait-to-restore 1 | Configure Wait-to-Restore timer. |
(config-synce-if)# exit | Exit synce Configure mode. |
(config-if)# exit | Exit port Configure mode. |
(config)# interface eth2 | Configure interface eth2 |
(config-if)# ip address 192.168.4.100/24 | Configure the IP address of the interface. |
(config-if)# exit | Exit from the Configure mode |
(config-if)# commit | Commit the configuration |
(config)#ptp clock 0 profile g8275.1 | Enables G8275.1 for PTP time/phase telecom profile |
(config-ptp-clk)#number-ports 2 | Configure the number of PTP ports on the instance |
(config-ptp-clk)#clock-port 1 | Configure PTP port |
(config-clk-port)#network-interface eth1 | Configure underlying interface that is used by this PTP Port |
(config-clk-port)# commit | Commit the configuration |
(config-clk-port)# end | Exit from configure mode |
#configure terminal | Enter Configure mode |
(config)#ptp clock 1 profile g8275.2 | Enables G8275.2 for PTP time/phase telecom profile |
(config-ptp-clk)#number-ports 2 | Configure the number of PTP ports on the instance |
(config-ptp-clk)#clock-port 2 | Configure PTP port |
(config-clk-port)#transport ipv4 | Set transport type ipv4 |
(config-clk-port)#network-interface eth2 | Configure underlying interface that is used by this PTP Port |
(config-clk-port)# commit | Commit the configuration |
(config-clk-port)# end | Exit from configure mode |
Validation
SW2
#sh ptp clock 0
PTP Clock Profile : g8275.1
Default Dataset:
Two Step Flag : No
Clock Identity : E8:C5:7A:FF:FE:8F:CA:97
Number Of Ports : 2
Priority1 : 128
Priority2 : 128
Slave Only : No
Local Priority : 128
Max Steps Removed : 255
Domain Number : 24
Clock Quality :
Clock Class : 248
Clock Accuracy : 254
Offset ScaledLogVariance : 65535
Current Dataset:
Steps Removed : 2
Offset From Master : 1 nsec
Mean Path Delay : -74 nsec
Parent Dataset:
Parent Port ID :
Clock Identity : E8:C5:7A:FF:FE:9F:20:37
Port Number : 2
Parent Stats : No
Observed Parent O.S.L.V : 65535 (Offset Scaled Log Variance)
Observed Parent P.C.R. : 2147483647 (Phase Change Rate)
Grandmaster Identity : E8:C5:7A:FF:FE:9F:20:37
Grandmaster Priority1 : 128
Grandmaster Priority2 : 128
Grandmaster Clock Quality :
Clock Class : 6
Clock Accuracy : 33
Offset ScaledLogVariance : 20061
Time Dateset:
Current UTC Offset Valid : True
Current UTC Offset : 37
Leap 59 : False
Leap 61 : False
Time Traceable : True
Frequency Traceable : True
PTP Timescale : True
Time Source : Global positioning system
Time of Day : Fri 15 Jul 2022 17:58:27 IST
#sh ptp clock 1
PTP Clock Profile : g8275.2
Default Dataset:
Two Step Flag : No
Clock Identity : E8:C5:7A:FF:FE:8F:CA:98
Number Of Ports : 2
Priority1 : 128
Priority2 : 128
Slave Only : No
Local Priority : 128
Max Steps Removed : 255
Domain Number : 44
Clock Quality :
Clock Class : 248
Clock Accuracy : 254
Offset ScaledLogVariance : 65535
Current Dataset:
Steps Removed : 0
Offset From Master : 0 nsec
Mean Path Delay : 0 nsec
Parent Dataset:
Parent Port ID :
Clock Identity : E8:C5:7A:FF:FE:8F:CA:98
Port Number : 0
Parent Stats : No
Observed Parent O.S.L.V : 65535 (Offset Scaled Log Variance)
Observed Parent P.C.R. : 2147483647 (Phase Change Rate)
Grandmaster Identity : E8:C5:7A:FF:FE:9F:20:37
Grandmaster Priority1 : 128
Grandmaster Priority2 : 128
Grandmaster Clock Quality :
Clock Class : 6
Clock Accuracy : 33
Offset ScaledLogVariance : 20061
Time Dateset:
Current UTC Offset Valid : True
Current UTC Offset : 37
Leap 59 : False
Leap 61 : False
Time Traceable : True
Frequency Traceable : True
PTP Timescale : True
Time Source : Global positioning system
Time of Day : Fri 15 Jul 2022 17:58:29 IST
#sh ptp clock 0 port
Port 1:
Port State : Slave
L2 Destination Mac : 01:1B:19:00:00:00
Port Identity : E8:C5:7A:FF:FE:8F:CA:97:00:01
Peer Mean Path Delay : -73
Log Announce Interval : -3
Log Min Delay Req Interval : -4
Log Sync Interval : -4
Announce Receipt Timeout : 3
Delay Mechanism : End to end
Version Number : 2
Local Priority : 128
Master only : False
Signal Fail : False
Network Interface : xe16
Vlan Configured :
Description :
Configured delay asymmetry : 0 nsec
Number of Foreign Masters : 1
Current Foreign Master : 0
Foreign Master #0
L2 Address : e8:c5:7a:88:17:4d
Grandmaster clockIdentity : E8:C5:7A:FF:FE:9F:20:37
Port ID : E8:C5:7A:FF:FE:9F:20:37:00:01
clockClass : 6
Clock accuracy : 33
Offset scaled log variance : 20061
priority1 : 128
priority2 : 128
Steps removed : 2
Received Packets : 13788
Discarded Packets : 8
Transmitted Packets : 5522
#sh ptp clock 1 port
Port 2:
Port State : Master
Port Identity : E8:C5:7A:FF:FE:8F:CA:98:00:02
Peer Mean Path Delay : 0
Log Announce Interval : -3
Log Min Delay Req Interval : -6
Log Sync Interval : -6
Announce Receipt Timeout : 3
Delay Mechanism : End to end
Version Number : 2
Local Priority : 128
Master only : True
Signal Fail : False
Network Interface : xe23
Vlan Configured :
Description :
TTL : 64
DSCP : 56
Unicast Grant Duration : 300
Configured delay asymmetry : 0 nsec
Received Packets : 13247
Discarded Packets : 0
Transmitted Packets : 28446
Peer #0
IPv4 Address : 192.168.4.101
Clock Identity : b8:6a:97:ff:fe:f5:ea:c4
Received Delay Request : 13241
Received Signalling : 6
Transmitted Announce : 1693
Transmitted Sync : 13506
Transmitted Delay Response : 13241
Transmitted Signalling : 6
Slave #0
IPv4 Address : 192.168.4.101
Clock Identity : b8:6a:97:ff:fe:f5:ea:c4
Delay Mechanism : End to end
log Announce Interval : -3
log Sync Interval : -6
Log Delay Req Interval : -6
#sh ptp clock 0 stats
clock 0:
Number of ports : 32
Received Packets : 14898
Discarded Packets : 8
Received IPv4 PTP Packets : 0
Received IPv6 PTP Packets : 0
Received L2 PTP Packets : 14898
RX Queue Overflows : 0
Transmitted Packets : 5966
Port 1:
Received Packets : 14898
Discarded Packets : 8
Transmitted Packets : 5966
#sh ptp clock 1 stats
clock 1:
Number of ports : 32
Received Packets : 15991
Discarded Packets : 0
Received IPv4 PTP Packets : 15991
Received IPv6 PTP Packets : 0
Received L2 PTP Packets : 0
RX Queue Overflows : 0
Transmitted Packets : 34252
Port 2:
Received Packets : 15991
Discarded Packets : 0
Transmitted Packets : 34252