Discussion:
[Linuxptp-users] PTP Slave to Master Signaling
Rohit Borse
2016-05-25 11:49:48 UTC
Permalink
Hi,


In PTP protocol specification, I found Signaling message, which can be sent when PTP slave is Synchronized to PTP Master.


In linuxptp-1.3 stack, Is there any message to notify PTP

Synchronization Status (i.e.Synchronization lost) from PTP Slave to PTP Master or any command/message can be sent from PTP Master to Slave to check PTP Synchronization status?


Thanks and Regards,

Rohit Borse

This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Richard Cochran
2016-05-25 13:01:49 UTC
Permalink
Post by Rohit Borse
In PTP protocol specification, I found Signaling message, which can
be sent when PTP slave is Synchronized to PTP Master.
Yes, there is a "Signaling" message in 1588, but it is not used in
that way.
Post by Rohit Borse
In linuxptp-1.3 stack, Is there any message to notify PTP
Synchronization Status (i.e.Synchronization lost) from PTP Slave to
PTP Master or any command/message can be sent from PTP Master to
Slave to check PTP Synchronization status?
To monitor synchronization status, use the "pmc" program.

HTH,
Richard
Richard Cochran
2016-05-31 07:46:08 UTC
Permalink
From PTP Master side code, can we know the PTP clock time status of
Remote Slave node using programmatic approach rather than using pmc
command.
If you don't want to use the pmc program, then you can send the
appropriate management messages directly. See pmc_common.h and
pmc_common.c for an example.
eg. If master A needs that clock time of master A is not in sync
with clock time of slave B, to send some signal to any dependent
module which would be helpful.
That is not the way it works. If node A wants information about node
B, then node A must request it. For your case, this implies that A
will poll the state of B.
So how master A can know if PTP time of slave B is not in sync/or in
sync.
1. Send the "GET PORT_DATA_SET" request and check that portState is SLAVE.
2. Send the "GET CURRENT_DATA_SET" request and check offsetFromMaster.
Currently we are planning to decide if Maser clock is not in sync
with slave Clock, if pDelayReq message is not sent by Slave for some
defined timeout. Is this suitable logic?
No, that won't work at all. The delay requests are sent periodically,
regardless of the synchronization status.

Cheers,
Richard

Loading...