Ask Your Question
0

How are measuredMessagePeriod, SyncTimestamp, SyncRateRatio calculated for PTP?

asked 2023-11-26 14:21:45 +0000

updated 2023-11-26 14:53:01 +0000

Chuckc gravatar image

There are

ptp.v2.analysis.sync.measuredMessagePeriod
ptp.v2.analysis.sync.timestamp
ptp.v2.analysis.sync.calculatedRateRatio
ptp.v2.analysis.sync.calculatedRateRatio_ppm

field that help in analysis of a captured frame of PTP packets.

How are these fields calculated?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-11-26 15:11:24 +0000

Chuckc gravatar image

How are you with "C" code?
It's possible to work back from the field definitions in the code to where they are set to a value.
You would start here and work back to where value is set: epan/dissectors/packet-ptp.c:

        { &hf_ptp_v2_analysis_sync_period,
          { "measuredMessagePeriod", "ptp.v2.analysis.sync.measuredMessagePeriod",
            FT_DOUBLE, BASE_NONE, NULL, 0x00,
            NULL, HFILL }
        },


Or you can try contacting the author/contributor by adding a comment to the merge request:
5929: PTP: Analysis of Message Intervals (Sync and PDelay_Req)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-11-26 14:21:45 +0000

Seen: 243 times

Last updated: Nov 26 '23