Skip to content

Compatibility fixes for PTP traceable in SDP and ST 2022-7 - #11

Open
knneth wants to merge 2 commits into
alabou:testing-IPMXfrom
knneth:testing-IPMX-160117-fixes
Open

Compatibility fixes for PTP traceable in SDP and ST 2022-7#11
knneth wants to merge 2 commits into
alabou:testing-IPMXfrom
knneth:testing-IPMX-160117-fixes

Conversation

@knneth

@knneth knneth commented Jan 18, 2026

Copy link
Copy Markdown

See commit messages for details

Fixes failing test_02 and test_03 due to interpreting traceable as
gmid when encountering the following SDP attributes:

    a=ts-refclk:ptp=IEEE1588-2008:00-20-D2-FF-FE-DC-47-BA:127
    a=ts-refclk:ptp=IEEE1588-2008:traceable

A similar example can be found in ST 2110-10:2022, section 8.2.

Signed-off-by: Kenneth Klette Jonassen <kenneth@bridgetech.tv>
…arams

According to IS-05 v1.1.2, requests including transport_params must
have a matching number of legs as that specified in the constraints.

Under ST 2022-7 behaviour for the RTP transport type:
  "In all cases, if a client request includes transport_params, it
   MUST have the same number of array elements (or ‘legs’) as
   specified in the constraints. If no changes are needed to a
   specific leg it MUST be included as an empty object ({})."

Signed-off-by: Kenneth Klette Jonassen <kenneth@bridgetech.tv>
@knneth knneth changed the title Compatibility fixes for PTP traceable in SDP and ST 2022-7 receivers Compatibility fixes for PTP traceable in SDP and ST 2022-7 Jan 18, 2026
@knneth knneth closed this Jan 19, 2026
@knneth

knneth commented Jan 19, 2026

Copy link
Copy Markdown
Author

Fixed in 2129fbe

@knneth

knneth commented Jul 10, 2026

Copy link
Copy Markdown
Author

After rebasing on testing-IPMX locally, found there is a bug in commit 2129fbe:
The previous value of self.ts_ref_clock_ptp_gmid, etc., gets overriden when parsing the SDP line with traceable attribute, so senders writing SDPs compliant with ST 2110-10 that correctly signal traceable can still fail the IPMX SDP test. Compare to the suggested change in 18ec13f which avoided this.

Failing IPMX-Sdp test_02 and test_03 description:

Sender 000bdf33-aa34-5703-8de4-46a0e7aa3526 SDP media clock: source ptp, delay 0, gmid , version IEEE1588-2008 do not match Node clock {'gmid': '00-20-d2-ff-fe-dc-47-ba', 'locked': True, 'name': 'clk8', 'ref_type': 'ptp', 'traceable': True, 'version': 'IEEE1588-2008'}

SDP text:

a=ts-refclk:ptp=IEEE1588-2008:00-20-D2-FF-FE-DC-47-BA:127
a=ts-refclk:ptp=IEEE1588-2008:traceable

Note that signalling the traceable attribute is a SHALL in ST 2110-10 Section 8.2, so perhaps we should actually be failing senders that do not signal traceable in their SDP when the node clock is traceable.

@knneth knneth reopened this Jul 10, 2026
@alabou

alabou commented Jul 14, 2026

Copy link
Copy Markdown
Owner

ST 2110 indicates

Timestamp Reference Clock Signaling
All stream descriptions shall have a ts-refclk attribute as specified in IETF RFC 7273 section 4. Devices which are referenced to IEEE Std 1588-2008 shall use the ts-refclk:ptp form, signaling either the grandmaster clockIdentity and domain number, or signaling that the PTP is traceable."

And RFC 7273 §4.8 does allow repeating ts-refclk at one level, but with two conditions: all entries at that level are assumed to be equivalent, and traceable time sources MUST NOT be mixed with non-traceable time sources at any given level.

So the signaling is either "traceable" or "gmid:domain" not both simultaneously so " gets overriden when parsing the SDP line with traceable attribute" should not be an issue. Am I missing something ?

@alabou

alabou commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Waiting for a decision of AIMS and VSF about the possibility to support both a traceable and a GMID declaration in the SDP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants