NTP broadcasts break NTP synchronization (RTEMS)

Bug #663875 reported by Ralph Lange
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Medium
mdavidsaver

Bug Description

The code that implements the NTP request based sync binds the receiver to the well-known NTP port 123 (instead of using an epheremal port). That way the receiver will not only get the answers to the requests, but also all broadcasts on the network. All incoming traffic is buffered in the socket, and the NTP sync code pulls out an old broadcast instead of the answer to its most recent request, thereby effectively stopping the IOC time. (generalTime does not allow backward jumps in time, but will stop advancing until the NTP answer eventually catches up.)

In other words: NTP broadcasts on the IOC network break the NTP synchronization.

Tags: libcom osd rtems
tags: added: osd rtems
removed: osi
Changed in epics-base:
milestone: none → 3.14.12
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

Switch the port which the RTEMS NTP client uses when sending requests to a random (>1024) port.

Revision history for this message
Ralph Lange (ralph-lange) wrote :

Pushed Michael Davidsaver's fix to the 3.14 branch.

Changed in epics-base:
assignee: nobody → mdavidsaver (mdavidsaver)
importance: Undecided → Medium
status: New → Fix Committed
Andrew Johnson (anj)
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.