Hi,
I try use grand master clock working with ptpv2 G.8265.1 as clock source in my 
Linux using ptp4l. Unfortunately I cannot config it properly. Could you look 
into my configuration and logs and give me some advice where can I start?

Information about Grand Master clock that I got:

Grand master uses G8265.1 standard which is a L3 unicast frequency 
synchronization source.
IP: 10.133.1.2
Doamin Number = 4.
Announce interval = 1 every 2 sec
Sync Interval = 128 sync messages per sec
delay request interval = 128 request messages per sec

My configuration file for ptp4l:
[global]
masterOnly                      0
hybrid_e2e                      1
inhibit_multicast_service       1
unicast_listen                  1
unicast_req_duration            60
domainNumber                    4
#
[unicast_master_table]
table_id                        1
logQueryInterval                1
UDPv4                           10.133.1.2
peer_address                    10.133.1.2
[enp3s0f0]
unicast_master_table            1

Command I use:
./ptp4l -m -l 7 -f  ~/G.8265.1.cfg > ~/ptp4l.log
ptp4l[807690.131]: port 0: hybrid_e2e only works with E2E

And logs from command running:
./ptp4l -m -l 7 -f  ~/G.8265.1.cfg
ptp4l[807938.532]: config item (null).assume_two_step is 0
ptp4l[807938.533]: config item (null).check_fup_sync is 0
ptp4l[807938.533]: config item (null).tx_timestamp_timeout is 1
ptp4l[807938.534]: config item (null).hwts_filter is 0
ptp4l[807938.534]: config item (null).clock_servo is 0
ptp4l[807938.534]: config item (null).clock_type is 32768
ptp4l[807938.534]: config item (null).clock_servo is 0
ptp4l[807938.534]: config item (null).clockClass is 248
ptp4l[807938.534]: config item (null).clockAccuracy is 254
ptp4l[807938.534]: config item (null).offsetScaledLogVariance is 65535
ptp4l[807938.534]: config item (null).productDescription is ';;'
ptp4l[807938.534]: config item (null).revisionData is ';;'
ptp4l[807938.534]: config item (null).userDescription is ''
ptp4l[807938.534]: config item (null).manufacturerIdentity is '00:00:00'
ptp4l[807938.534]: config item (null).domainNumber is 4
ptp4l[807938.534]: config item (null).slaveOnly is 0
ptp4l[807938.534]: config item (null).gmCapable is 1
ptp4l[807938.534]: config item (null).gmCapable is 1
ptp4l[807938.534]: config item (null).G.8275.defaultDS.localPriority is 128
ptp4l[807938.534]: config item (null).maxStepsRemoved is 255
ptp4l[807938.534]: config item (null).time_stamping is 1
ptp4l[807938.534]: config item (null).twoStepFlag is 1
ptp4l[807938.534]: config item (null).twoStepFlag is 1
ptp4l[807938.534]: config item (null).time_stamping is 1
ptp4l[807938.534]: config item (null).priority1 is 128
ptp4l[807938.534]: config item (null).priority2 is 128
ptp4l[807938.534]: interface index 4 is up
ptp4l[807938.534]: config item (null).free_running is 0
ptp4l[807938.534]: selected /dev/ptp5 as PTP clock
ptp4l[807938.534]: config item (null).clockIdentity is '000000.0000.000000'
ptp4l[807938.534]: config item (null).uds_address is '/var/run/ptp4l'
ptp4l[807938.534]: section item /var/run/ptp4l.announceReceiptTimeout now 0
ptp4l[807938.534]: section item /var/run/ptp4l.delay_mechanism now 0
ptp4l[807938.534]: section item /var/run/ptp4l.network_transport now 0
ptp4l[807938.534]: section item /var/run/ptp4l.delay_filter_length now 1
ptp4l[807938.534]: config item (null).free_running is 0
ptp4l[807938.534]: config item (null).freq_est_interval is 1
ptp4l[807938.534]: config item (null).gmCapable is 1
ptp4l[807938.534]: config item (null).kernel_leap is 1
ptp4l[807938.534]: config item (null).utc_offset is 37
ptp4l[807938.534]: config item (null).timeSource is 160
ptp4l[807938.534]: config item (null).pi_proportional_const is 0.000000
ptp4l[807938.534]: config item (null).pi_integral_const is 0.000000
ptp4l[807938.534]: config item (null).pi_proportional_scale is 0.000000
ptp4l[807938.534]: config item (null).pi_proportional_exponent is -0.300000
ptp4l[807938.534]: config item (null).pi_proportional_norm_max is 0.700000
ptp4l[807938.534]: config item (null).pi_integral_scale is 0.000000
ptp4l[807938.534]: config item (null).pi_integral_exponent is 0.400000
ptp4l[807938.534]: config item (null).pi_integral_norm_max is 0.300000
ptp4l[807938.534]: config item (null).step_threshold is 0.000000
ptp4l[807938.534]: config item (null).first_step_threshold is 0.000020
ptp4l[807938.534]: config item (null).max_frequency is 900000000
ptp4l[807938.534]: config item (null).dataset_comparison is 0
ptp4l[807938.534]: config item (null).delay_filter_length is 10
ptp4l[807938.534]: config item (null).delay_filter is 1
ptp4l[807938.534]: config item (null).tsproc_mode is 0
ptp4l[807938.534]: config item (null).initial_delay is 0
ptp4l[807938.534]: config item (null).summary_interval is 0
ptp4l[807938.534]: config item (null).sanity_freq_limit is 200000000
ptp4l[807938.534]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
ptp4l[807938.534]: config item /var/run/ptp4l.boundary_clock_jbod is 0
ptp4l[807938.534]: config item /var/run/ptp4l.network_transport is 0
ptp4l[807938.534]: config item /var/run/ptp4l.masterOnly is 0
ptp4l[807938.534]: config item /var/run/ptp4l.BMCA is 0
ptp4l[807938.534]: config item /var/run/ptp4l.delayAsymmetry is 0
ptp4l[807938.534]: config item /var/run/ptp4l.follow_up_info is 0
ptp4l[807938.534]: config item /var/run/ptp4l.freq_est_interval is 1
ptp4l[807938.534]: config item /var/run/ptp4l.net_sync_monitor is 0
ptp4l[807938.534]: config item /var/run/ptp4l.path_trace_enabled is 0
ptp4l[807938.534]: config item /var/run/ptp4l.tc_spanning_tree is 0
ptp4l[807938.534]: config item /var/run/ptp4l.ingressLatency is 0
ptp4l[807938.534]: config item /var/run/ptp4l.egressLatency is 0
ptp4l[807938.535]: config item /var/run/ptp4l.delay_mechanism is 0
ptp4l[807938.535]: config item /var/run/ptp4l.hybrid_e2e is 1
ptp4l[807938.535]: port 0: hybrid_e2e only works with E2E
ptp4l[807938.535]: config item /var/run/ptp4l.fault_badpeernet_interval is 16
ptp4l[807938.535]: config item /var/run/ptp4l.fault_reset_interval is 4
ptp4l[807938.535]: config item /var/run/ptp4l.delay_filter_length is 1
ptp4l[807938.535]: config item /var/run/ptp4l.delay_filter is 1
ptp4l[807938.535]: config item /var/run/ptp4l.tsproc_mode is 0
ptp4l[807938.535]: config item enp3s0f0.boundary_clock_jbod is 0
ptp4l[807938.535]: config item enp3s0f0.network_transport is 1
ptp4l[807938.535]: config item enp3s0f0.masterOnly is 0
ptp4l[807938.535]: config item enp3s0f0.BMCA is 0
ptp4l[807938.535]: config item enp3s0f0.delayAsymmetry is 0
ptp4l[807938.535]: config item enp3s0f0.follow_up_info is 0
ptp4l[807938.535]: config item enp3s0f0.freq_est_interval is 1
ptp4l[807938.535]: config item enp3s0f0.net_sync_monitor is 0
ptp4l[807938.535]: config item enp3s0f0.path_trace_enabled is 0
ptp4l[807938.535]: config item enp3s0f0.tc_spanning_tree is 0
ptp4l[807938.535]: config item enp3s0f0.ingressLatency is 0
ptp4l[807938.535]: config item enp3s0f0.egressLatency is 0
ptp4l[807938.535]: config item enp3s0f0.delay_mechanism is 1
ptp4l[807938.535]: config item enp3s0f0.unicast_master_table is 1
ptp4l[807938.535]: config item enp3s0f0.unicast_req_duration is 60
ptp4l[807938.535]: section item enp3s0f0.hybrid_e2e now 1
ptp4l[807938.535]: config item enp3s0f0.unicast_listen is 1
ptp4l[807938.535]: section item enp3s0f0.hybrid_e2e now 1
ptp4l[807938.535]: config item enp3s0f0.inhibit_multicast_service is 1
ptp4l[807938.535]: config item enp3s0f0.hybrid_e2e is 1
ptp4l[807938.535]: config item enp3s0f0.fault_badpeernet_interval is 16
ptp4l[807938.535]: config item enp3s0f0.fault_reset_interval is 4
ptp4l[807938.535]: config item enp3s0f0.delay_filter_length is 10
ptp4l[807938.535]: config item enp3s0f0.delay_filter is 1
ptp4l[807938.535]: config item enp3s0f0.tsproc_mode is 0
ptp4l[807938.535]: config item enp3s0f0.logMinDelayReqInterval is 0
ptp4l[807938.535]: config item enp3s0f0.logAnnounceInterval is 1
ptp4l[807938.535]: config item enp3s0f0.inhibit_announce is 0
ptp4l[807938.535]: config item enp3s0f0.ignore_source_id is 0
ptp4l[807938.535]: config item enp3s0f0.announceReceiptTimeout is 3
ptp4l[807938.535]: config item enp3s0f0.syncReceiptTimeout is 0
ptp4l[807938.535]: config item enp3s0f0.transportSpecific is 0
ptp4l[807938.535]: config item enp3s0f0.ignore_transport_specific is 0
ptp4l[807938.535]: config item enp3s0f0.G.8275.portDS.localPriority is 128
ptp4l[807938.535]: config item enp3s0f0.logSyncInterval is 0
ptp4l[807938.535]: config item enp3s0f0.logMinPdelayReqInterval is 0
ptp4l[807938.535]: config item enp3s0f0.neighborPropDelayThresh is 20000000
ptp4l[807938.535]: config item enp3s0f0.min_neighbor_prop_delay is -20000000
ptp4l[807938.535]: config item enp3s0f0.asCapable is 1
ptp4l[807938.535]: config item enp3s0f0.udp_ttl is 1
ptp4l[807938.536]: config item (null).dscp_event is 0
ptp4l[807938.536]: config item (null).dscp_general is 0
ptp4l[807938.536]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[807938.536]: config item /var/run/ptp4l.logMinDelayReqInterval is 0
ptp4l[807938.536]: config item /var/run/ptp4l.logAnnounceInterval is 1
ptp4l[807938.536]: config item /var/run/ptp4l.inhibit_announce is 0
ptp4l[807938.536]: config item /var/run/ptp4l.ignore_source_id is 0
ptp4l[807938.536]: config item /var/run/ptp4l.announceReceiptTimeout is 0
ptp4l[807938.536]: config item /var/run/ptp4l.syncReceiptTimeout is 0
ptp4l[807938.536]: config item /var/run/ptp4l.transportSpecific is 0
ptp4l[807938.536]: config item /var/run/ptp4l.ignore_transport_specific is 0
ptp4l[807938.536]: config item /var/run/ptp4l.G.8275.portDS.localPriority is 128
ptp4l[807938.536]: config item /var/run/ptp4l.logSyncInterval is 0
ptp4l[807938.536]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0
ptp4l[807938.536]: config item /var/run/ptp4l.neighborPropDelayThresh is 
20000000
ptp4l[807938.536]: config item /var/run/ptp4l.min_neighbor_prop_delay is 
-20000000
ptp4l[807938.536]: config item /var/run/ptp4l.asCapable is 1
ptp4l[807938.536]: config item (null).uds_address is '/var/run/ptp4l'
ptp4l[807938.536]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[807938.536]: port 1: received link status notification
ptp4l[807938.536]: interface index 4 is up
ptp4l[807940.536]: port 1: unicast request timeout
ptp4l[807942.537]: port 1: unicast request timeout
ptp4l[807944.537]: port 1: unicast request timeout
ptp4l[807945.645]: port 1: announce timeout
ptp4l[807945.645]: port 1: LISTENING to MASTER on 
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[807945.645]: selected local clock b49691.fffe.350398 as best master
ptp4l[807945.645]: assuming the grand master role
ptp4l[807945.646]: port 1: master tx announce timeout
ptp4l[807946.537]: port 1: unicast request timeout
ptp4l[807946.645]: port 1: master sync timeout
ptp4l[807947.645]: port 1: master sync timeout
ptp4l[807947.646]: port 1: master tx announce timeout
ptp4l[807948.537]: port 1: unicast request timeout
ptp4l[807948.646]: port 1: master sync timeout
ptp4l[807949.646]: port 1: master sync timeout
ptp4l[807949.646]: port 1: master tx announce timeout
ptp4l[807950.538]: port 1: unicast request timeout
ptp4l[807950.646]: port 1: master sync timeout
ptp4l[807951.646]: port 1: master sync timeout
ptp4l[807951.647]: port 1: master tx announce timeout
ptp4l[807952.538]: port 1: unicast request timeout
ptp4l[807952.647]: port 1: master sync timeout
ptp4l[807953.647]: port 1: master sync timeout
ptp4l[807953.647]: port 1: master tx announce timeout
ptp4l[807954.538]: port 1: unicast request timeout


I use tcpdump end I notice that only message on this interface are:

19:02:32.655474 IP (tos 0x0, ttl 64, id 39118, offset 0, flags [DF], proto UDP 
(17), length 82)
    10.133.2.1.320 > 10.133.1.2.320: UDP, length 54
19:02:32.655713 IP (tos 0xc0, ttl 61, id 20982, offset 0, flags [none], proto 
ICMP (1), length 110)
    10.133.1.2 > 10.133.2.1: ICMP 10.133.1.2 udp port 320 unreachable, length 90
                IP (tos 0x0, ttl 61, id 39118, offset 0, flags [DF], proto UDP 
(17), length 82)
    10.133.2.1.320 > 10.133.1.1.320: UDP, length 54

Thanks,
Łukasz Zbrzeźniak
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to