[Linuxptp-devel] [PATCH v2 0/6] Common Mean Link Delay Service (CMLDS)
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Richard C. <ric...@gm...> - 2023-12-02 22:25:08
|
The CMLDS lets one peer-to-peer delay measurement be shared among
multiple PTP stack instances running on the same host.
To try it, connect the Ethernet ports of two hosts directly:
On one host run CMLDS setup:
ptp4l -mqf CMLDS_server.cfg
ptp4l -mqf CMLDS_client.cfg
and on the other host run a normal P2P stack:
ptp4l -mqi eth1 -P --ignore_transport_specific=1
(The ignore_transport_specific is needed because of the extremely
silly way the majorSdoId aka transportSpecific field is specified in
1588.)
Changes in v2
~~~~~~~~~~~~~
- Added timer to renew push subscription and detect missing server.
- Addressed Andrew and Kishen's review comments.
- Added example configuration files.
Richard Cochran (6):
interface: Add an optional remote address for use by the UDS
transport.
pmc/uds: Configure the remote server address using the interface API.
Introduce the Common Mean Link Delay Information TLV.
Add a push notification for the CMLDS TLV.
Implement the COMMON_P2P delay mechanism.
Add example Common Mean Link Delay Service configuration files.
clock.c | 5 +-
config.c | 8 +-
configs/CMLDS_client.cfg | 10 ++
configs/CMLDS_server.cfg | 16 ++++
configs/default.cfg | 5 +
dm.h | 3 +
fd.h | 1 +
interface.c | 12 ++-
interface.h | 10 +-
makefile | 4 +-
notification.h | 1 +
pmc.c | 23 ++++-
pmc_agent.c | 3 +-
pmc_common.c | 23 +++--
pmc_common.h | 6 +-
port.c | 196 ++++++++++++++++++++++++++++++++++++---
port.h | 2 +
port_private.h | 7 ++
ptp4l.8 | 35 +++++++
tlv.c | 16 ++++
tlv.h | 7 ++
tz2alt.c | 3 +-
uds.c | 6 +-
23 files changed, 363 insertions(+), 39 deletions(-)
create mode 100644 configs/CMLDS_client.cfg
create mode 100644 configs/CMLDS_server.cfg
--
2.39.2
|