Christian
2016-06-23 12:08:02 UTC
Hello,
I'm currently trying to set up a ptp4l session between 3 servers, which are connected via a Cisco Nexus 5000 switch
Server A is supposed to be the grand master, Server B and C should be the slaves.
The Grandmaster is working fine, the Switch does accept it, but the Slaves are not working properly.
Here is the ptp log of one of the slave servers:
@s0002794:~$ ptp4l[618557.966]: selected /dev/ptp0 as PTP clock
ptp4l[618557.967]: driver changed our HWTSTAMP options
ptp4l[618557.967]: tx_type 1 not 1
ptp4l[618557.967]: rx_filter 1 not 12
ptp4l[618557.967]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[618557.967]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[618564.664]: driver changed our HWTSTAMP options
ptp4l[618564.664]: tx_type 1 not 1
ptp4l[618564.664]: rx_filter 1 not 12
ptp4l[618564.664]: selected best master clock a0369f.fffe.a1b68c <-- MAC Addr. of the Slave server
ptp4l[618564.840]: port 1: new foreign master 002a6a.fffe.ac97fc-16 <-- MAC Addr. of the Switch port
ptp4l[618571.137]: driver changed our HWTSTAMP options
ptp4l[618571.137]: tx_type 1 not 1
ptp4l[618571.137]: rx_filter 1 not 12
ptp4l[618571.137]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618578.192]: driver changed our HWTSTAMP options
ptp4l[618578.192]: tx_type 1 not 1
ptp4l[618578.192]: rx_filter 1 not 12
ptp4l[618578.192]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618580.850]: selected best master clock a0369f.fffe.a1b688 <-- MAC Addr. of the Master server
ptp4l[618580.850]: foreign master not using PTP timescale
ptp4l[618580.850]: running in a temporal vortex
ptp4l[618580.850]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[618582.669]: port 1: minimum delay request interval 2^4
ptp4l[618582.851]: master offset 1299422 s0 freq +4989 path delay -11798
ptp4l[618584.852]: master offset 1321175 s1 freq +15865 path delay -9425
ptp4l[618587.572]: driver changed our HWTSTAMP options
ptp4l[618587.572]: tx_type 1 not 1
ptp4l[618587.572]: rx_filter 1 not 12
ptp4l[618587.572]: port 1: UNCALIBRATED to LISTENING on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[618587.572]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618594.597]: driver changed our HWTSTAMP options
ptp4l[618594.597]: tx_type 1 not 1
ptp4l[618594.597]: rx_filter 1 not 12
ptp4l[618594.597]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618596.851]: selected best master clock a0369f.fffe.a1b688
ptp4l[618596.851]: foreign master not using PTP timescale
ptp4l[618596.851]: running in a temporal vortex
ptp4l[618596.851]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[618598.850]: master offset 43778 s2 freq +37754 path delay 0
ptp4l[618598.850]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[618600.852]: master offset 6710 s2 freq +25787 path delay 0
there also was this line every one in a while:
ptp4l[5828.626]: port 1: minimum delay request interval 2^^4
I am starting the Master with a config File.
ptp4l -f /etc/ptp.config
with following config file:
[global]
verbose 1
path_trace_enabled 1
time_stamping hardware
priority1 1
priority2 1
[eth4]
The Slaves are started via: ptp4l -A -m -i eth4 -s
I also wrote a config file for them, but if I use the file, they do select themself as the best clock.
***@s0002794:~$ ptp4l[619043.020]: selected best master clock a0369f.fffe.a1b68c <--MAC Addr. of the Slave
ptp4l[619050.271]: selected best master clock a0369f.fffe.a1b68c
ptp4l[619056.348]: selected best master clock a0369f.fffe.a1b68c
ptp4l[619062.726]: selected best master clock a0369f.fffe.a1b68c
with following config File:
[global]
verbose 1
path_trace_enabled 1
time_stamping hardware
slaveOnly 1
priority1 255
priority2 255
[eth4]
Phc2sys is running on both, the Master and the Slaves.
Master: phc2sys -s CLOCK_REALTIME -c eth4 -w &
Slaves: phc2sys -s eth4 -w &
Here is the configuration of the Switch:
ptp brief:
PTP port status
-----------------------
Port State
------- --------------
Eth1/17 Master <--Server C
Eth1/19 Master <--Server B
Eth1/31 Slave <--Server A
ptp clock:
PTP Device Type: Boundary clock
Clock Identity : 00:2a:6a:ff:fe:ac:97:fc
Clock Domain: 0
Number of PTP ports: 3
Priority1 : 2
Priority2 : 2
Clock Quality:
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset From Master : 467
Mean Path Delay : 33580
Steps removed : 1
Local clock time:Thu Jun 23 13:52:14 2016
Slave port:
PTP Port Dataset: Eth1/17
Port identity: clock identity: 00:2a:6a:ff:fe:ac:97:fc
Port identity: port number: 16
PTP version: 2
Port state: Master
VLAN info: 1
Delay request interval(log mean): 4
Announce receipt time out: 2
Peer mean path delay: 0
Announce interval(log mean): 3
Sync interval(log mean): 1
Delay Mechanism: End to End
Master port:
PTP Port Dataset: Eth1/31
Port identity: clock identity: 00:2a:6a:ff:fe:ac:97:fc
Port identity: port number: 30
PTP version: 2
Port state: Slave
VLAN info: 1
Delay request interval(log mean): 4
Announce receipt time out: 2
Peer mean path delay: 0
Announce interval(log mean): 3
Sync interval(log mean): 1
Delay Mechanism: End to End
Thank you in advance.
Greeting,
Christian
I'm currently trying to set up a ptp4l session between 3 servers, which are connected via a Cisco Nexus 5000 switch
Server A is supposed to be the grand master, Server B and C should be the slaves.
The Grandmaster is working fine, the Switch does accept it, but the Slaves are not working properly.
Here is the ptp log of one of the slave servers:
@s0002794:~$ ptp4l[618557.966]: selected /dev/ptp0 as PTP clock
ptp4l[618557.967]: driver changed our HWTSTAMP options
ptp4l[618557.967]: tx_type 1 not 1
ptp4l[618557.967]: rx_filter 1 not 12
ptp4l[618557.967]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[618557.967]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[618564.664]: driver changed our HWTSTAMP options
ptp4l[618564.664]: tx_type 1 not 1
ptp4l[618564.664]: rx_filter 1 not 12
ptp4l[618564.664]: selected best master clock a0369f.fffe.a1b68c <-- MAC Addr. of the Slave server
ptp4l[618564.840]: port 1: new foreign master 002a6a.fffe.ac97fc-16 <-- MAC Addr. of the Switch port
ptp4l[618571.137]: driver changed our HWTSTAMP options
ptp4l[618571.137]: tx_type 1 not 1
ptp4l[618571.137]: rx_filter 1 not 12
ptp4l[618571.137]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618578.192]: driver changed our HWTSTAMP options
ptp4l[618578.192]: tx_type 1 not 1
ptp4l[618578.192]: rx_filter 1 not 12
ptp4l[618578.192]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618580.850]: selected best master clock a0369f.fffe.a1b688 <-- MAC Addr. of the Master server
ptp4l[618580.850]: foreign master not using PTP timescale
ptp4l[618580.850]: running in a temporal vortex
ptp4l[618580.850]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[618582.669]: port 1: minimum delay request interval 2^4
ptp4l[618582.851]: master offset 1299422 s0 freq +4989 path delay -11798
ptp4l[618584.852]: master offset 1321175 s1 freq +15865 path delay -9425
ptp4l[618587.572]: driver changed our HWTSTAMP options
ptp4l[618587.572]: tx_type 1 not 1
ptp4l[618587.572]: rx_filter 1 not 12
ptp4l[618587.572]: port 1: UNCALIBRATED to LISTENING on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[618587.572]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618594.597]: driver changed our HWTSTAMP options
ptp4l[618594.597]: tx_type 1 not 1
ptp4l[618594.597]: rx_filter 1 not 12
ptp4l[618594.597]: selected best master clock a0369f.fffe.a1b68c
ptp4l[618596.851]: selected best master clock a0369f.fffe.a1b688
ptp4l[618596.851]: foreign master not using PTP timescale
ptp4l[618596.851]: running in a temporal vortex
ptp4l[618596.851]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[618598.850]: master offset 43778 s2 freq +37754 path delay 0
ptp4l[618598.850]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[618600.852]: master offset 6710 s2 freq +25787 path delay 0
there also was this line every one in a while:
ptp4l[5828.626]: port 1: minimum delay request interval 2^^4
I am starting the Master with a config File.
ptp4l -f /etc/ptp.config
with following config file:
[global]
verbose 1
path_trace_enabled 1
time_stamping hardware
priority1 1
priority2 1
[eth4]
The Slaves are started via: ptp4l -A -m -i eth4 -s
I also wrote a config file for them, but if I use the file, they do select themself as the best clock.
***@s0002794:~$ ptp4l[619043.020]: selected best master clock a0369f.fffe.a1b68c <--MAC Addr. of the Slave
ptp4l[619050.271]: selected best master clock a0369f.fffe.a1b68c
ptp4l[619056.348]: selected best master clock a0369f.fffe.a1b68c
ptp4l[619062.726]: selected best master clock a0369f.fffe.a1b68c
with following config File:
[global]
verbose 1
path_trace_enabled 1
time_stamping hardware
slaveOnly 1
priority1 255
priority2 255
[eth4]
Phc2sys is running on both, the Master and the Slaves.
Master: phc2sys -s CLOCK_REALTIME -c eth4 -w &
Slaves: phc2sys -s eth4 -w &
Here is the configuration of the Switch:
ptp brief:
PTP port status
-----------------------
Port State
------- --------------
Eth1/17 Master <--Server C
Eth1/19 Master <--Server B
Eth1/31 Slave <--Server A
ptp clock:
PTP Device Type: Boundary clock
Clock Identity : 00:2a:6a:ff:fe:ac:97:fc
Clock Domain: 0
Number of PTP ports: 3
Priority1 : 2
Priority2 : 2
Clock Quality:
Class : 248
Accuracy : 254
Offset (log variance) : 65535
Offset From Master : 467
Mean Path Delay : 33580
Steps removed : 1
Local clock time:Thu Jun 23 13:52:14 2016
Slave port:
PTP Port Dataset: Eth1/17
Port identity: clock identity: 00:2a:6a:ff:fe:ac:97:fc
Port identity: port number: 16
PTP version: 2
Port state: Master
VLAN info: 1
Delay request interval(log mean): 4
Announce receipt time out: 2
Peer mean path delay: 0
Announce interval(log mean): 3
Sync interval(log mean): 1
Delay Mechanism: End to End
Master port:
PTP Port Dataset: Eth1/31
Port identity: clock identity: 00:2a:6a:ff:fe:ac:97:fc
Port identity: port number: 30
PTP version: 2
Port state: Slave
VLAN info: 1
Delay request interval(log mean): 4
Announce receipt time out: 2
Peer mean path delay: 0
Announce interval(log mean): 3
Sync interval(log mean): 1
Delay Mechanism: End to End
Thank you in advance.
Greeting,
Christian