Hi,
I'm using ptp4l 3.0 version. I'm testing unicast client profile with two unicast master configured. Two unicast grand masters are Symmetricom and configurations are in sync. Please check below for configuration, log and issues observed. Below is the ptp4l configuration, [global] domainNumber 4 dscp_event 5 dscp_general 5 clock_type OC slaveOnly 1 masterOnly 0 time_stamping hardware path_trace_enabled 0 unicast_req_duration 100 free_running 1 [unicast_master_table] table_id 1 logQueryInterval 2 UDPv4 50.0.0.1 UDPv4 50.0.0.2 [eth4] unicast_listen 1 hybrid_e2e 1 delay_mechanism E2E network_transport UDPv4 unicast_master_table 1 logAnnounceInterval -3 announceReceiptTimeout 5 logSyncInterval -7 logMinDelayReqInterval -7 Below is ptp4l log, ./ptp4l -f loop_ptp.cfg -m -l 7 ptp4l[4516405.837]: config item (null).assume_two_step is 0 ptp4l[4516405.837]: config item (null).check_fup_sync is 0 ptp4l[4516405.838]: config item (null).tx_timestamp_timeout is 1 ptp4l[4516405.838]: config item (null).hwts_filter is 0 ptp4l[4516405.838]: config item (null).clock_servo is 0 ptp4l[4516405.838]: config item (null).clock_type is 32768 ptp4l[4516405.838]: config item (null).clock_servo is 0 ptp4l[4516405.838]: config item (null).clockClass is 248 ptp4l[4516405.838]: config item (null).clockAccuracy is 254 ptp4l[4516405.838]: config item (null).offsetScaledLogVariance is 65535 ptp4l[4516405.838]: config item (null).productDescription is ';;' ptp4l[4516405.838]: config item (null).revisionData is ';;' ptp4l[4516405.838]: config item (null).userDescription is '' ptp4l[4516405.838]: config item (null).manufacturerIdentity is '00:00:00' ptp4l[4516405.838]: config item (null).domainNumber is 4 ptp4l[4516405.838]: config item (null).slaveOnly is 1 ptp4l[4516405.838]: config item (null).gmCapable is 1 ptp4l[4516405.838]: config item (null).gmCapable is 1 ptp4l[4516405.838]: config item (null).G.8275.defaultDS.localPriority is 128 ptp4l[4516405.838]: config item (null).maxStepsRemoved is 255 ptp4l[4516405.838]: config item (null).time_stamping is 1 ptp4l[4516405.838]: config item (null).twoStepFlag is 1 ptp4l[4516405.838]: config item (null).twoStepFlag is 1 ptp4l[4516405.838]: config item (null).time_stamping is 1 ptp4l[4516405.838]: config item (null).priority1 is 128 ptp4l[4516405.838]: config item (null).priority2 is 128 ptp4l[4516405.839]: interface index 6 is up ptp4l[4516405.839]: config item (null).free_running is 1 ptp4l[4516405.839]: config item (null).clockIdentity is '000000.0000.000000' ptp4l[4516405.839]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[4516405.839]: section item /var/run/ptp4l.announceReceiptTimeout now 0 ptp4l[4516405.839]: section item /var/run/ptp4l.delay_mechanism now 0 ptp4l[4516405.839]: section item /var/run/ptp4l.network_transport now 0 ptp4l[4516405.839]: section item /var/run/ptp4l.delay_filter_length now 1 ptp4l[4516405.839]: config item (null).free_running is 1 ptp4l[4516405.839]: config item (null).freq_est_interval is 1 ptp4l[4516405.839]: config item (null).write_phase_mode is 0 ptp4l[4516405.839]: config item (null).gmCapable is 1 ptp4l[4516405.839]: config item (null).kernel_leap is 1 ptp4l[4516405.839]: config item (null).utc_offset is 37 ptp4l[4516405.839]: config item (null).timeSource is 160 ptp4l[4516405.839]: config item (null).pi_proportional_const is 0.000000 ptp4l[4516405.839]: config item (null).pi_integral_const is 0.000000 ptp4l[4516405.839]: config item (null).pi_proportional_scale is 0.000000 ptp4l[4516405.839]: config item (null).pi_proportional_exponent is -0.300000 ptp4l[4516405.839]: config item (null).pi_proportional_norm_max is 0.700000 ptp4l[4516405.839]: config item (null).pi_integral_scale is 0.000000 ptp4l[4516405.839]: config item (null).pi_integral_exponent is 0.400000 ptp4l[4516405.839]: config item (null).pi_integral_norm_max is 0.300000 ptp4l[4516405.839]: config item (null).step_threshold is 0.000000 ptp4l[4516405.839]: config item (null).first_step_threshold is 0.000020 ptp4l[4516405.839]: config item (null).max_frequency is 900000000 ptp4l[4516405.839]: config item (null).servo_offset_threshold is 0 ptp4l[4516405.840]: config item (null).servo_num_offset_values is 10 ptp4l[4516405.840]: config item (null).dataset_comparison is 0 ptp4l[4516405.840]: config item (null).delay_filter_length is 10 ptp4l[4516405.840]: config item (null).delay_filter is 1 ptp4l[4516405.840]: config item (null).tsproc_mode is 0 ptp4l[4516405.840]: config item (null).initial_delay is 0 ptp4l[4516405.840]: config item (null).summary_interval is 0 ptp4l[4516405.840]: config item (null).sanity_freq_limit is 200000000 ptp4l[4516405.840]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 ptp4l[4516405.840]: config item /var/run/ptp4l.boundary_clock_jbod is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.network_transport is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.masterOnly is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.BMCA is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.delayAsymmetry is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.follow_up_info is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.freq_est_interval is 1 ptp4l[4516405.840]: config item /var/run/ptp4l.msg_interval_request is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.net_sync_monitor is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.path_trace_enabled is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.tc_spanning_tree is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.ingressLatency is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.egressLatency is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.delay_mechanism is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.asCapable is 1 ptp4l[4516405.840]: config item /var/run/ptp4l.hybrid_e2e is 0 ptp4l[4516405.840]: config item /var/run/ptp4l.fault_badpeernet_interval is 16 ptp4l[4516405.840]: config item /var/run/ptp4l.fault_reset_interval is 4 ptp4l[4516405.840]: config item /var/run/ptp4l.delay_filter_length is 1 ptp4l[4516405.840]: config item /var/run/ptp4l.delay_filter is 1 ptp4l[4516405.840]: config item /var/run/ptp4l.tsproc_mode is 0 ptp4l[4516405.841]: config item (null).slave_event_monitor is '' ptp4l[4516405.841]: config item eth4.boundary_clock_jbod is 0 ptp4l[4516405.841]: config item eth4.network_transport is 1 ptp4l[4516405.841]: config item eth4.masterOnly is 0 ptp4l[4516405.841]: config item eth4.BMCA is 0 ptp4l[4516405.841]: config item eth4.delayAsymmetry is 0 ptp4l[4516405.841]: config item eth4.follow_up_info is 0 ptp4l[4516405.841]: config item eth4.freq_est_interval is 1 ptp4l[4516405.841]: config item eth4.msg_interval_request is 0 ptp4l[4516405.841]: config item eth4.net_sync_monitor is 0 ptp4l[4516405.841]: config item eth4.path_trace_enabled is 0 ptp4l[4516405.841]: config item eth4.tc_spanning_tree is 0 ptp4l[4516405.841]: config item eth4.ingressLatency is 0 ptp4l[4516405.841]: config item eth4.egressLatency is 0 ptp4l[4516405.841]: config item eth4.delay_mechanism is 1 ptp4l[4516405.841]: config item eth4.asCapable is 1 ptp4l[4516405.841]: config item eth4.unicast_master_table is 1 ptp4l[4516405.841]: config item eth4.unicast_req_duration is 60 ptp4l[4516405.841]: section item eth4.hybrid_e2e now 1 ptp4l[4516405.841]: config item eth4.unicast_listen is 1 ptp4l[4516405.841]: section item eth4.hybrid_e2e now 1 ptp4l[4516405.841]: config item eth4.inhibit_multicast_service is 0 ptp4l[4516405.841]: config item eth4.hybrid_e2e is 1 ptp4l[4516405.841]: config item eth4.fault_badpeernet_interval is 16 ptp4l[4516405.841]: config item eth4.fault_reset_interval is 4 ptp4l[4516405.841]: config item eth4.delay_filter_length is 10 ptp4l[4516405.841]: config item eth4.delay_filter is 1 ptp4l[4516405.841]: config item eth4.tsproc_mode is 0 ptp4l[4516405.841]: config item eth4.logMinDelayReqInterval is -1 ptp4l[4516405.841]: config item eth4.logAnnounceInterval is 4 ptp4l[4516405.841]: config item eth4.inhibit_announce is 0 ptp4l[4516405.841]: config item eth4.ignore_source_id is 0 ptp4l[4516405.841]: config item eth4.announceReceiptTimeout is 5 ptp4l[4516405.842]: config item eth4.syncReceiptTimeout is 0 ptp4l[4516405.842]: config item eth4.transportSpecific is 0 ptp4l[4516405.842]: config item eth4.ignore_transport_specific is 0 ptp4l[4516405.842]: config item eth4.G.8275.portDS.localPriority is 128 ptp4l[4516405.842]: config item eth4.logSyncInterval is -1 ptp4l[4516405.842]: config item eth4.operLogSyncInterval is 0 ptp4l[4516405.842]: config item eth4.logMinPdelayReqInterval is 0 ptp4l[4516405.842]: config item eth4.operLogPdelayReqInterval is 0 ptp4l[4516405.842]: config item eth4.neighborPropDelayThresh is 20000000 ptp4l[4516405.842]: config item eth4.min_neighbor_prop_delay is -20000000 ptp4l[4516405.842]: config item eth4.asCapable is 1 ptp4l[4516405.842]: config item eth4.inhibit_delay_req is 0 ptp4l[4516405.842]: config item eth4.udp_ttl is 1 ptp4l[4516405.843]: config item (null).dscp_event is 6 ptp4l[4516405.843]: config item (null).dscp_general is 6 ptp4l[4516405.843]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[4516405.843]: config item /var/run/ptp4l.logMinDelayReqInterval is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.logAnnounceInterval is 1 ptp4l[4516405.843]: config item /var/run/ptp4l.inhibit_announce is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.ignore_source_id is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.announceReceiptTimeout is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.syncReceiptTimeout is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.transportSpecific is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.ignore_transport_specific is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.G.8275.portDS.localPriority is 128 ptp4l[4516405.843]: config item /var/run/ptp4l.logSyncInterval is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.operLogSyncInterval is 0 ptp4l[4516405.843]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0 ptp4l[4516405.844]: config item /var/run/ptp4l.operLogPdelayReqInterval is 0 ptp4l[4516405.844]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000 ptp4l[4516405.844]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000 ptp4l[4516405.844]: config item /var/run/ptp4l.asCapable is 1 ptp4l[4516405.844]: config item /var/run/ptp4l.inhibit_delay_req is 0 ptp4l[4516405.844]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[4516405.844]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[4516405.844]: port 1: received link status notification ptp4l[4516405.844]: interface index 6 is up ptp4l[4516406.206]: port 1: setting asCapable ptp4l[4516409.843]: port 1: unicast request timeout ptp4l[4516409.845]: port 1: unicast ANNOUNCE granted for 60 sec ptp4l[4516409.845]: port 1: renewal timeout at 4516454 ptp4l[4516409.912]: port 1: unicast ANNOUNCE granted for 60 sec ptp4l[4516409.913]: port 1: renewal timeout at 4516454 ptp4l[4516413.706]: port 1: new foreign master 000000.0000.000001-1 <-Master 1 ptp4l[4516413.843]: port 1: unicast request timeout ptp4l[4516417.375]: port 1: new foreign master 000000.0000.000002-2 <-Master 2 ptp4l[4516417.843]: port 1: unicast request timeout ptp4l[4516421.844]: port 1: unicast request timeout ptp4l[4516425.844]: port 1: unicast request timeout ptp4l[4516429.844]: port 1: unicast request timeout ptp4l[4516433.844]: port 1: unicast request timeout ptp4l[4516437.844]: port 1: unicast request timeout ptp4l[4516441.844]: port 1: unicast request timeout ptp4l[4516445.706]: selected best master clock 000000.0000.000001 <-1. initial selected best clock (1) ptp4l[4516445.706]: running in a temporal vortex ptp4l[4516445.706]: updating UTC offset to 35 ptp4l[4516445.706]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[4516445.844]: port 1: unicast request timeout ptp4l[4516445.925]: port 1: unicast SYNC granted for 60 sec <- 2. unicast syn request granted ptp4l[4516445.925]: PI servo: sync interval 0.500 kp 0.862 ki 0.227357 ptp4l[4516445.925]: port 1: unicast DELAY_RESP granted for 60 sec <- 3. unicast delay-resp granted ptp4l[4516445.976]: port 1: delay timeout ptp4l[4516446.960]: port 1: delay timeout ptp4l[4516446.961]: delay filtered 7582 raw 7582 ptp4l[4516447.429]: port 1: delay timeout ptp4l[4516447.429]: delay filtered 7578 raw 7575 ptp4l[4516448.206]: peer/local 1.000000000 ptp4l[4516448.206]: fup_info 1.000000000 ptp4l[4516448.206]: product 1.000000000 ptp4l[4516448.206]: sum-1 1.000000000 ptp4l[4516448.206]: master/local 1.000000480 ptp4l[4516448.206]: diff +0.000000480 ptp4l[4516448.317]: port 1: delay timeout ptp4l[4516448.318]: delay filtered 7575 raw 7547 ptp4l[4516448.629]: port 1: delay timeout ptp4l[4516448.629]: delay filtered 7578 raw 7625 ptp4l[4516449.288]: port 1: delay timeout ptp4l[4516449.288]: delay filtered 7575 raw 7539 ptp4l[4516449.375]: selected best master clock 000000.0000.000002-2 <- 4. switch from previous selected clock(1)->(2) ptp4l[4516449.481]: port 1: delay timeout ptp4l[4516449.845]: port 1: unicast request timeout ptp4l[4516450.083]: port 1: delay timeout ptp4l[4516451.070]: port 1: delay timeout ptp4l[4516451.294]: port 1: delay timeout ptp4l[4516451.629]: port 1: delay timeout ptp4l[4516451.973]: port 1: delay timeout ptp4l[4516452.959]: port 1: delay timeout ptp4l[4516453.548]: port 1: delay timeout ptp4l[4516453.845]: port 1: unicast request timeout ptp4l[4516454.447]: port 1: delay timeout ptp4l[4516454.999]: port 1: delay timeout ptp4l[4516455.314]: port 1: delay timeout ptp4l[4516455.837]: port 1: delay timeout ptp4l[4516455.987]: port 1: delay timeout ptp4l[4516456.884]: port 1: delay timeout ptp4l[4517318.624]: port 1: delay timeout ptp4l[4517318.745]: port 1: unicast request timeout ptp4l[4517318.745]: port 1: time to renew unicast subscriptions ptp4l[4517318.745]: port 1: time to renew unicast subscriptions ptp4l[4517318.746]: port 1: unicast ANNOUNCE granted for 60 sec ptp4l[4517318.809]: port 1: unicast ANNOUNCE granted for 60 sec ptp4l[4517318.809]: port 1: renewal timeout at 4517363 ptp4l[4517318.810]: port 1: unicast SYNC granted for 60 sec ptp4l[4517318.810]: port 1: unicast DELAY_RESP granted for 60 sec ptp4l[4517319.384]: port 1: delay timeout <-No response from new master (2) ptp4l[4517320.129]: port 1: delay timeout ptp4l[4517320.344]: port 1: delay timeout ptp4l[4517320.622]: port 1: delay timeout ptp4l[4517321.621]: port 1: delay timeout ptp4l[4517321.767]: port 1: delay timeout ptp4l[4517322.579]: port 1: delay timeout ptp4l[4517322.745]: port 1: unicast request timeout ptp4l[4517322.745]: port 1: time to renew unicast subscriptions ptp4l[4517322.747]: port 1: unicast ANNOUNCE granted for 60 sec ptp4l[4517323.174]: port 1: delay timeout ptp4l[4517323.989]: port 1: delay timeout ptp4l[4517324.334]: port 1: delay timeout ptp4l[4517325.196]: port 1: delay timeout Below are the three issues I'm facing: 1. When switchover happens from master 1 to master 2, active services like Sync and Delay-Resp should be cancelled from master 1 before sending new service request to master 2. Expecting Announce service to be active on both the masters. 2. Sometimes when switchover happens from Master 1 to Master 2 ptp4l fails to send service request (Sync and Delay-Resp)to Master 2. Due to this Sync from master 2 is never received and delay requests are never responded. Above log shows this issue. 3. After terminating the process I see that ptp4l never cancels active service requests from all the masters. Note: Security reasons I changed clock Identities from log. Thanks & Regards, Pavan Lakote Loop Telecommunication International, Inc. Loop Telecommunication International Loop-V4150 DS0 Cross Connect Multiplexer supports up to 504E1/672T1 worth of DS0 non-blocking cross connect matrix. The V4150 DS0 Cross Connect System can provide users with the high-density capacity up to 504 E1/T1, 24 T3MX3, or 8 STM-1 (OC-3). All interfaces are fully compliant for use with the relevant ETSI standards and ITU recommendations. In addition, Loop-V4150 with E1/T1 cards, through the protection relay shelf, is able to perform 1+1, 1:N and 1:1 redundancy switching to ensure the high-availability circuit system. For further arrangement and more information, please contact Loop Telecom.
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users