I was able to figure out the routing issue by adding the sub net instead of
the IP for the next hop.
However I am still unable to get the transparent clock working.

on the GM side I am using the followings
ptp4l -P -i enp25s0f0 -f GM.cfg

with GM.cfg being

[global]
dataset_comparison              G.8275.x
priority1                       201
priority2                       200
G.8275.defaultDS.localPriority  128
masterOnly                      1
G.8275.portDS.localPriority     128
hybrid_e2e                      0
inhibit_multicast_service       1
unicast_listen                  1
unicast_req_duration            60
announceReceiptTimeout          20
delay_mechanism                 P2P

[unicast_master_table]
table_id                        1
logQueryInterval                2
UDPv4                           192.168.2.100
#
[enp25s0f0]
unicast_master_table            1

on the OC I have
ptp4l -P -i enp25s0f0 -f OC.cfg -s -m
 with OC.cfg being

[global]
dataset_comparison              G.8275.x
G.8275.defaultDS.localPriority  128
priority1                       221
priority2                       220
masterOnly                      0
G.8275.portDS.localPriority     128
hybrid_e2e                      1
inhibit_multicast_service       1
unicast_listen                  1
unicast_req_duration            60
announceReceiptTimeout          10
delay_mechanism                 P2P

[unicast_master_table]
table_id                        1
logQueryInterval                2
UDPv4                           192.168.2.100

[enp25s0f0]
unicast_master_table            1

and on the TC (the node in the middle connecting GM to OC)

ptp4l -i enp25s0f0 -i enp25s0f1 -s -f P2P-TC.cfg -m
with P2P-TC.cfg being

[global]
priority1               254
free_running            1
freq_est_interval       3
tc_spanning_tree        1
summary_interval        1
clock_type              P2P_TC
network_transport      L2
delay_mechanism         P2P
tx_timestamp_timeout    50000

My observation is, the OC works and syncs with the GM the moment I start
the TC code but with high error (less than of 100us).

GM output:
ptp4l[257115.762]: selected /dev/ptp0 as PTP clock
ptp4l[257115.763]: port 1: hybrid_e2e only works with E2E
ptp4l[257115.764]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257115.764]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257156.194]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[257156.194]: selected local clock 000f53.fffe.5727f0 as best master
ptp4l[257156.194]: assuming the grand master role

OC output:
ptp4l[257133.410]: selected /dev/ptp0 as PTP clock
ptp4l[257133.410]: port 0: hybrid_e2e only works with E2E
ptp4l[257133.410]: port 1: hybrid_e2e only works with E2E
ptp4l[257133.412]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257133.412]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257137.422]: port 1: new foreign master 000f53.fffe.5727f0-1
ptp4l[257141.422]: selected best master clock 000f53.fffe.5727f0
ptp4l[257141.422]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[257192.422]: master offset  -35727616 s0 freq  +70209 path delay
  -19
ptp4l[257193.422]: master offset  -35861156 s1[root@tc PTP]# ./TC.sh
ptp4l[257075.848]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257075.849]: port 2: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257075.849]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257082.975]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257083.634]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257089.421]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257091.150]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257096.862]: selected local clock 000f53.fffe.572890 as best master
freq  -63356 path delay       -16
ptp4l[257194.422]: master offset     122614 s2 freq  +59258 path delay
  -14
ptp4l[257194.422]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[257195.421]: master offset      10626 s2 freq  -15945 path delay
  -16
ptp4l[257196.422]: master offset      88512 s2 freq  +65128 path delay
  -14
ptp4l[257197.422]: master offset     -51922 s2 freq  -48752 path delay
  -16
ptp4l[257198.422]: master offset      58903 s2 freq  +46496 path delay
  -14

TC output:
[root@tc PTP]# ./TC.sh
ptp4l[257075.848]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257075.849]: port 2: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257075.849]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[257082.975]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257083.634]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257089.421]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257091.150]: selected local clock 000f53.fffe.572890 as best master
ptp4l[257096.862]: selected local clock 000f53.fffe.572890 as best master

Any suggestion would be really appreciated.
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to