I did an interop test of PTP between Juniper ACX as Boundary Clock Master and a Cisco ASR 901 and ALU 7705 SR.
GM ===== ACX2000 ====== Cisco ASR 901
||
=========== ALU 7705 SR
It works!
---------------
Cisco Configuration - ASR 901
interface Loopback0
ip address 192.168.112.200 255.255.255.255
!
interface GigabitEthernet0/0
speed 1000
duplex full
no negotiation auto
cdp enable
service instance 1 ethernet
encapsulation untagged
bridge-domain 1
!
!
interface Loopback0
ip address 192.168.112.200 255.255.255.255
interface Vlan1
ip address 192.168.112.2 255.255.255.252
!
router ospf 1
router-id 99.99.99.99
area 0.0.0.1 stub
network 192.168.112.0 0.0.0.3 area 0.0.0.1
network 192.168.112.200 0.0.0.0 area 0.0.0.1
!
ptp clock ordinary domain 17
priority1 100
priority2 101
1pps-out 0 125 ms
clock-port slave slave
sync interval -7
transport ipv4 unicast interface Lo0 negotiation
clock source 192.168.112.1
!
end
asr901#show ptp clock running
PTP Ordinary Clock [Domain 17]
State Ports Pkts sent Pkts rcvd
ACQUIRING 1 108406 208432
PORT SUMMARY
Name Tx Mode Role Transport State Sessions
slave unicast slave Lo0 Slave 1
Cisco Restrictions
• The loopback address configured for PTP port can be used only for PTP functionality.
• The loopback address configured for PTP port does not respond to pings.
• A clock port once configured as master cannot change to slave dynamically, and vice versa.
• PTP boundary clock can be configured for only one domain.
asr901#show ptp clock dataset default
CLOCK [Ordinary Clock, domain 17]
Two Step Flag: No
Clock Identity: 0xFC:99:47:FF:FE:A6:3B:4D
Number Of Ports: 1
Priority1: 100
Priority2: 101
Domain Number: 17
Slave Only: Yes
Clock Quality:
Class: 248
Accuracy: Within 25us
Offset (log variance): 22272
asr901#show ptp clock dataset parent domain
CLOCK [Ordinary Clock, domain 17]
Parent Stats: No
Observed Parent Offset (log variance): 0
Observed Parent Clock Phase Change Rate: 0
Grandmaster Clock:
Identity: 0xF8:C0:1:FF:FE:8:C1:8E
Priority1: 0
Priority2: 0
Clock Quality:
Class: 52
Accuracy: Unknown
Offset (log variance): 11952
asr901# show ptp clock dataset default
CLOCK [Ordinary Clock, domain 17]
Two Step Flag: No
Clock Identity: 0xFC:99:47:FF:FE:A6:3B:4D
Number Of Ports: 1
Priority1: 100
Priority2: 101
Domain Number: 17
Slave Only: Yes
Clock Quality:
Class: 248
Accuracy: Within 25us
Offset (log variance): 22272
show ptp clock runn dom 17
PTP Ordinary Clock [Domain 17]
State Ports Pkts sent Pkts rcvd
PHASE_ALIGNED 1 131863 279178
PORT SUMMARY
Name Tx Mode Role Transport State Sessions
slave unicast slave Lo0 Slave 1
SESSION INFORMATION
slave [Lo0] [Sessions 1]
Peer addr Pkts in Pkts out In Errs Out Errs
192.168.112.1 130314 47461 0 0
asr901#show platform ptp state
FLL State : 3 (Normal Loop)
FLL Status Duration : 118 (sec)
Forward Flow Weight : 0.0
Forward Flow Transient-Free : 900 (900 sec Window)
Forward Flow Transient-Free : 3600 (3600 sec Window)
Forward Flow Transactions Used: 199.0 (%)
Forward Flow Oper. Min TDEV : 638.0 (nsec)
Forward Mafie : 0.0
Forward Flow Min Cluster Width: 433.0 (nsec)
Forward Flow Mode Width : 1000.0 (nsec)
Reverse Flow Weight : 100.0
Reverse Flow Transient-Free : 900 (900 sec Window)
Reverse Flow Transient-Free : 3600 (3600 sec Window)
Reverse Flow Transactions Used: 199.0 (%)
Reverse Flow Oper. Min TDEV : 637.0 (nsec)
Reverse Mafie : 0.0
Reverse Flow Min Cluster Width: 433.0 (nsec)
Reverse Flow Mode Width : 1000.0 (nsec)
Frequency Correction : 33.290 (ppb)
Phase Correction : 0.0 (ppb)
Output TDEV Estimate : 637.0 (nsec)
Output MDEV Estimate : 1.0 (ppb)
Residual Phase Error : -14.64 (nsec)
Min. Roundtrip Delay : 14.0 (nsec)
Sync Packet Rate* : 64 (pkts/sec)
Delay Packet Rate* : 66 (pkts/sec)
Forward IPDV % Below Threshold: 0.0
Forward Maximum IPDV : 0.0 (usec)
Forward Interpacket Jitter : 0.0 (usec)
Reverse IPDV % Below Threshold: 0.0
Reverse Maximum IPDV : 0.0 (usec)
Reverse Interpacket Jitter : 0.0 (usec)
Note: The maximum rates for Sync and Delay packets will be approximately 64 pps.
asr901#show platform ptp stats
Statistics for PTP clock 0
###############################
Number of ports : 1
Pkts Sent : 143257
Pkts Rcvd : 313459
Pkts Discarded : 0
Statistics for PTP clock port 1
##################################
Pkts Sent : 58854
Pkts Rcvd : 164592
Pkts Discarded : 0
Signals Rejected : 0
Statistics for peer 0
########################
IP addr : 192.168.112.1
Pkts Sent : 58854
Pkts Rcvd : 164592
-----------
ALU 7705
*A:7705>show# system sync-if-timing
===============================================================================
System Interface Timing Operational Info
===============================================================================
System Status CSM A : Master Locked
Reference Input Mode : Revertive
Quality Level Selection : Disabled
Reference Order : ref1 ref2 external
Reference Input 1
Admin Status : up
Configured Quality Level : none
Rx Quality Level : dnu
Qualified For Use : Yes
Selected For Use : Yes
Source Port : None
Source PTP Clock : 1
Reference Input 2
Admin Status : down
Configured Quality Level : none
Rx Quality Level : unknown
Qualified For Use : No
Not Qualified Due To : disabled
Selected For Use : No
Not Selected Due To : disabled
Source Port : None
External Reference Input
Admin Status : down
Configured Quality Level : stu
Qualified For Use : No
Not Qualified Due To : disabled
Selected For Use : No
Not Selected Due To : disabled
Type : 2048Khz-G703
Impedance : 50-Ohm
External Reference Output
Type : 2048Khz-G703
===============================================================================
System Name : 7705-ci
System Type : 7705 SAR-F
System Version : B-5.0.R1
*A:7705>config>system# info
----------------------------------------------
#--------------------------------------------------
echo "System Configuration"
#--------------------------------------------------
name "7705"
sync-if-timing
ref-order ref1 ref2 external
ref1
source-ptp-clock 1
no shutdown
exit
ref2
shutdown
exit
external
input-interface
shutdown
exit
exit
revert
exit
snmp
exit
login-control
idle-timeout disable
exit
ptp
clock 1 create
source-interface "to-ACX2K"
clock-mda 1/2
domain 17
priority1 100
priority2 101
ptp-port 1
log-sync-interval -7
peer 1
description "To-ACX2K"
ip-address 192.168.113.1
exit
peer 2
exit
no shutdown
exit
no shutdown
exit
exit
time
ntp
server 172.17.27.46
no shutdown
exit
sntp
shutdown
exit
zone PST
exit
thresholds
rmon
exit
exit
--------------
Juniper configuration
[edit]
user@ACX2000# show chassis
fpc 0 {
pic 0 {
framing e1;
}
}
synchronization {
network-option option-1;
esmc-transmit {
interfaces all;
}
}
user@ACX2000# show protocols ptp
clock-mode boundary;
priority1 1;
priority2 2;
domain 17;
unicast-negotiation;
slave {
convert-clock-class-to-quality-level;
interface ge-0/2/0.0 {
unicast-mode {
transport ipv4;
clock-source 200.200.3.2 local-ip-address 200.200.3.1;
}
}
}
master {
interface ge-0/1/0.0 {
unicast-mode {
transport ipv4;
clock-client 192.168.112.200/32 local-ip-address 192.168.112.1;
}
}
interface ge-0/1/1.0 {
unicast-mode {
transport ipv4;
clock-client 192.168.113.2/32 local-ip-address 192.168.113.1;
}
}
}
[edit]
user@ACX2000# run show ptp port
PTP port-data:
Local IP : 192.168.112.1 Remote IP : 192.168.112.200
Clock Stream : 4 Clock Identity : 84:18:88:ff:fe:c0:81:00
Port State : Master Delay Req Interval: -6
Announce Interval : 1 Announce Timeout : 3
Sync Interval : -7 Delay Mechanism : End-to-end
Port Number : 5 Operating Mode : Slave
Local IP : 192.168.113.1 Remote IP : 192.168.113.2
Clock Stream : 5 Clock Identity : 84:18:88:ff:fe:c0:81:00
Port State : Master Delay Req Interval: -7
Announce Interval : 1 Announce Timeout : 3
Sync Interval : -7 Delay Mechanism : End-to-end
Port Number : 6 Operating Mode : Slave
[edit]
user@ACX2000# run show ptp statistics
Local Address Remote Address Role Stream Received Transmitted
200.200.3.1 200.200.3.2 Slave 0 36819732 18332374
192.168.112.1 192.168.112.200 Master 4 8097 51867879
192.168.113.1 192.168.113.2 Master 5 7989 51865182