This series adds support for Meinberg Funkuhren's NetSync Monitor (NSM) protocol. NSM allows a node with a local time reference (like a GM using GPS) to measure the offset of a given clock. In a nutshell, NSM works by having the node to be measured act like a unicast master clock on demand.
1. The monitoring node sends a unicast delay request with a special TLV attached. 2. The node to be measured replies with a unicast delay response, followed by unicast Sync and FollowUp messages. 3. Once the monitoring node receives the three responses, it calculates the measured node's offset. The details of the protocol are described in a brief PDF published by Meinberg. If anyone would like a copy, please contact me off list. * Changes in V2: - rebased to use the multiple TLV API - the NSM client is now its own program, not a part of pmc Richard Cochran (11): msg: Allow zero length TLVs. msg: Allow tacking a TLV onto a delay request message. clock: Introduce a method to get the current dataset. clock: Introduce a method to obtain the last synchronization time. tmv: Add a method to convert to a struct Timestamp. tlv: Introduce the NetSync Monitor TLVs. port: Introduce unicast sync messages. port: Implement the NetSync Monitor protocol. Add a configuration file option to enable the NetSync Monitor protocol. util: Relocate utility functions from pmc.c. nsm: Implement the NetSync Monitor query. .gitignore | 1 + clock.c | 10 + clock.h | 14 ++ config.c | 1 + default.cfg | 1 + gPTP.cfg | 1 + makefile | 7 +- msg.c | 5 +- msg.h | 1 + nsm.c | 627 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pmc.c | 48 ----- port.c | 145 +++++++++++++- ptp4l.8 | 12 +- tlv.c | 138 +++++++++++++ tlv.h | 18 ++ tmv.h | 15 ++ util.c | 39 ++++ util.h | 15 ++ 18 files changed, 1039 insertions(+), 59 deletions(-) create mode 100644 nsm.c -- 2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel