-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FollowUp message interval #16
Comments
Hans, If you want someone to investigate, you will have to provide more information than this. FollowUp is sent as soon as PTPd receives its own Sync message. Indeed, in your capture every 60 seconds FollowUp is delayed by the same amount, 61 ms. The reason could be anything, and if the reason is not external to PTPd, it could be some internal housekeeping task taking too long, such as writing to a file or something similar. Which version are you using - github source? Thanks, |
I've used PTPDv2 2.3.0 and it was full reproducible on two different ubuntu systems. Please handle this report only as a hint. Sorry, but I'm not able to give you more informations. The systems aren't longer available. |
Thanks - are you aware of this actually causing issues? In addition - this should not be happening on systems which use transmit timestamping, because in those cases PTPd always grabs the TX timestamp after sending the Sync, and sends FollowUp immediately after. Same case with hardware timestamping. The delay can only happen if PTPd has to receive its own packets to approximate when they were sent. If there is no TX timestamping, the process is:
So as you see, step 4. can cause some delay. Furthermore, timers interrupt the select() call waiting for packets. I would classify this as a performance issue where Sync transmission co-incides with another task. This can be looked into at some point, for example by using slightly randomised timers. This is for multicast, one sync for all. Now if you're running unicast and have hundreds of slaves, this gets even more interesting. |
It seems that every minute the follow up messages are delayed. I've attached a corresponding wireshark capture. The first delayed packet is number 144.
ptpd2-syncfup-interval.zip
The text was updated successfully, but these errors were encountered: