cancel
Showing results for 
Search instead for 
Did you mean: 

gPTP port roles

gPTP port roles

John_Lemonovich
New Contributor
I am using an X430-8p switch to connect two Altera Arria 10 kits running Linux PTP. I am using L2 802.1AS (gPTP) and I'm wondering how the port role assignment should work in my case. If I would like my one A10 kits to be GM, and the other one to be an OC slave, what should be the port roles? I am able to manipulate priorities to get both A10 nodes as slaves to the switch, and in this case, the sync works very well (~20ns or less) but when I have one as master and one as slave, they seem to sync but very poorly with large path delays.

In this case, where I would like one A10 kit to be master and one as slave (through the switch), should both switch ports report as Passive gPTP port role? Is there a way to force ports to passive role?

Thank you,
John

9 REPLIES 9

Chad_Smith1
Extreme Employee
John,

If you are the GMC why would you be sending Announce/Sync timeout messages? Shouldn't you be sending the Announce and Sync messages as the GMC? If i'm understanding correctly, it sounds as if the device may not be actually acting as GMC.

Unlike PTP, with gPTP we do not perform any local clock synchronization. We measure propagation delays and we are aware of the offset from the GMC, but the local clock is not synchronized with the GMC. There isn't a way to measure sync quality on the switch other than to monitor the measured peer propagation delays and the Cumulative Rate Ratio ("show network-clock gptp parent-set" will give you this).

It may be more efficient at this point to open up a case with GTAC

John_Lemonovich
New Contributor
Thanks for the reply. I have tried increasing the allowed-lost-responses, but it hasn't helped. I don't know that I tried the neighbor threshold though.

It seems as if it's the switch that doesn't like the messages being returned by my slave. In any case, I thought I would try a different test. I have connected one of my boards as GMC to just one switch port - eliminating my one A10 board, and a switch port. The switch correctly reports it as 802.1AS capable, and labels it as a slave, but my master is printing constant sync and announce timeout messages. I'm not sure why and I'm now installing wireshark on the embedded Linux/FPGA side.
Would you expect the switch port in this case to simply work as an ordinary clock slave and remain sync'd with my master? Is there any way to verify the time offsets or quality of the sync w/out a PPS output?

Chad_Smith1
Extreme Employee
Based on the counters, it seems like there may be an intermittent delay or total loss of response messages from the Alterra. When the port is in Master state what is the normal propagation delay measurement?

You can find that in:
show network-clock gptp port PORTCould you try extending the threshold to see if it helps?configure network-clock gptp ports PORT peer-delay neighbor-thresh THRESHOLDOr maybe extend the allowed lost response?
configure network-clock gptp ports PORT peer-delay allowed-lost-responses COUNTUltimately, you probably need to figure out why the device isn't responding or why we think it isn't responding.

John_Lemonovich
New Contributor
Chad,

Thanks for the reply. I have played with turning off BMCA - my board connected to port 3 is set to priority1=128 and board 2 connected to port 5 is priority1=255. When I issue the commands you listed, indeed port 3 (connected to GMC) shows 3s, but port 5 will "bobble" between 5d/5m. It's as if my slave is timing out and beginning to run the BMCA itself (maybe)? It's confusing because the slave is not printing that it's selecting a "new foreign master". It is printing as if they are sync'd - but the offset times are large and varying quite a bit.

Looking at netwrowk clock port 5 counters shows:
Port number : 5
gPTP port status : Enabled
------------------------------------------------------------
Parameter Receive Transmit
------------------------------------------------------------
Announce 0 14012
Sync 0 118634
Follow Up 0 118632
Peer Delay Request 20581 31525
Peer Delay Response 20592 20581
Peer Delay Response Follow Up 20590 20581
gPTP packet discards 10925 -
------------------------------------------------------------
Announce Receipt Timeout Count : 0
Sync Receipt Timeout Count : 0
Peer Delay Allowed Lost Response Exceeded Count : 10823

Any ideas?

Thanks!

John

Chad_Smith1
Extreme Employee
John,

If you want to ignore the Best Master Clock Algorithm (BMCA) and manually specify master and slave ports you need to issue the following commands:
configure network-clock gptp bmca off
configure network-clock gptp slave-port PORT_TO_GMCThis will force the port connected to the GM to act as a slave port, all other ports will act as master ports. You do not want ports in the passive mode in this scenario.

If you want to still use the BMCA then the device that you wish to be the GMC needs to advertise a lower priority value than the switch (default for switch is 246) or change the switch priority to be higher than the device:
configure network-clock gptp default-set priority1 PRIORITY
GTM-P2G8KFN