Feed Forward Events Log
Every clock synchronization input and output, for advanced diagnostics and replay.
The Feed Forward Events Log captures clock synchronization corrections produced by the synchronization algorithm based on input events from the time sources configured with the ClockBound daemon.
The Feed Forward Events Log is useful for advanced diagnostics, enabling time synchronization experts to analyze the response of the synchronization algorithm when faced with noisy input (network variability, system load, environmental changes). The ClockBound clock synchronization algorithm can deterministically replay this log using the clock-bound-ff-tester. When new scenarios arise in the algorithm, this log allows developers to reproduce the issue and validate fixes with certainty.
Most users do not need to read or parse this log. It is not a stable format, as it exposes internal components within the clock synchronization algorithm. Fields can change from version to version.
- For time synchronization history, see
synchronization.log. - For a periodic summary of source status, see
sources.log.
Log location
<log_directory>/ffevents.log- Format: Newline-delimited JSON (one JSON object per line)
- Configuration: Optional (recommended for expert analysis). Enable it with
[logging.ffevents];<log_directory>islogging.log_directory. - Volume: High - one entry per time synchronization event per source (multiple entries per second depending on poll rates)
Event types
Each line in the log file is a JSON object. The following top level keys are included in every JSON object (examples on this page are pretty-printed; in the file each object is on a single line):
{
"timestamp": "2026-07-16T14:34:00.000000Z",
"event": "<event_type>",
"seq": 42,
"<event_type>": {
...
},
"version": "3.0.0"
}| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 UTC timestamp, with microsecond precision, of when the event was emitted |
event | string | The type of event, one of init, disruption, feed |
seq | integer | Event sequence number. Starts at 0 with the init event and increases by one with every following feed or disruption event. |
<event_type> | object | The event body, keyed by the value of event |
version | string | ClockBound daemon version |
| Event | Frequency | Description |
|---|---|---|
init | Rare (startup-only) | The daemon started or restarted |
disruption | Rare | A clock disruption was detected and handled by the ClockBound daemon. |
feed | High (every input) | A time source event was processed, possibly updating the clock synchronization parameters and accuracy bound. |
Event: init
Marks daemon startup. Delimits boundaries between separate runs when processing log files.
Example
{
"timestamp": "2026-07-16T14:30:00.000000Z",
"event": "init",
"seq": 0,
"init": {
"message": "Clock Sync Algorithm initialized"
},
"version": "3.0.0"
}Fields
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 UTC timestamp of when this entry was emitted |
event | string | Always "init" |
seq | integer | Event sequence number |
version | string | ClockBound daemon version |
init.message | string | Always "Clock Sync Algorithm initialized" |
When replaying log files, init lines indicate where a new daemon session begins. All prior state should be discarded at this boundary.
Event: disruption
Indicates a clock disruption has been detected and handled. The daemon discards buffered events and resets synchronization state when this occurs.
Example
{
"timestamp": "2026-07-16T15:00:00.000000Z",
"event": "disruption",
"seq": 18234,
"disruption": {
"message": "Disruption occurred"
},
"version": "3.0.0"
}Fields
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 UTC timestamp of when this entry was emitted |
event | string | Always "disruption" |
seq | integer | Event sequence number |
version | string | ClockBound daemon version |
disruption.message | string | Always "Disruption occurred" |
After a disruption, all feed events will temporarily show a null output until sufficient new measurements are collected to re-establish clock parameters.
Event: feed
Feed lines are the bulk of the log. Each one records an input event (NTP response, PHC reading, etc.) fed into the clock synchronization algorithm along with the resulting clock parameters if the time source is selected.
Example - NTP event (not selected)
{
"timestamp": "2026-07-16T14:33:49.654418Z",
"event": "feed",
"seq": 1287,
"feed": {
"input": {
"type": "ntp",
"identifier": "169.254.169.123:123",
"counter_pre": 482393264419,
"counter_post": 482393405301,
"data": {
"server_recv_time_ns": 1784212429654307727,
"server_send_time_ns": 1784212429654319674,
"root_delay_ns": 30517,
"root_dispersion_ns": 15258,
"stratum": 1
}
},
"output": null
},
"version": "3.0.0"
}Example - PHC event (selected, shows synchronization output)
{
"timestamp": "2026-07-16T14:33:49.654572Z",
"event": "feed",
"seq": 1288,
"feed": {
"input": {
"type": "phc",
"identifier": "/dev/ptp0",
"counter_pre": 482393526053,
"counter_post": 482393528552,
"data": {
"time_ns": 1784212429654498913,
"clock_error_bound_ns": 21119
}
},
"output": {
"counter_sync": 482393527302,
"time_sync_ns": 1784212429654499150,
"clock_error_bound_ns": 30007,
"period_s": 9.524024204451513e-10,
"period_max_error_s": 7.277185320026017e-16
}
},
"version": "3.0.0"
}Feed fields
| Field | Type | Description |
|---|---|---|
timestamp | string | ISO 8601 UTC timestamp of when this entry was emitted |
event | string | Always "feed" |
seq | integer | Event sequence number |
version | string | ClockBound daemon version |
feed.input | object | The input event (see Input details below) |
feed.output | object or null | Per-source clock parameters after processing, or null if insufficient data or not the selected source (see Output details below). |
When output is null, the source is either not selected by ClockBound or the algorithm does not yet have enough data to produce an estimate.
The timestamp values (server_recv_time_ns, server_send_time_ns, time_ns and time_sync_ns) are the number of nanoseconds since the beginning of UNIX epoch (1970-01-01T00:00:00Z). All other *_ns values are durations in nanoseconds.
Input details: feed.input
Each feed.input variant is of a type identified by feed.input.type. The type can be one of ntp (source providing time information over the Network Time Protocol) or phc (source presented as a PTP Hardware Clock device).
Type: NTP
NTP packet exchange with the time source.
"input": {
"type": "ntp",
"identifier": "169.254.169.123:123",
"counter_pre": 482393264419,
"counter_post": 482393405301,
"data": {
"server_recv_time_ns": 1784212429654307727,
"server_send_time_ns": 1784212429654319674,
"root_delay_ns": 30517,
"root_dispersion_ns": 15258,
"stratum": 1
}
}| Field | Type | Description |
|---|---|---|
type | string | Always ntp |
identifier | string | IP address and port (ip:port) identifying the time source |
counter_pre | integer | Hardware counter reading before sending the NTP request |
counter_post | integer | Hardware counter reading after receiving the NTP response |
data.server_recv_time_ns | integer | NTP server receive timestamp in nanoseconds |
data.server_send_time_ns | integer | NTP server send timestamp in nanoseconds |
data.root_delay_ns | integer | Root delay reported by the NTP server in nanoseconds |
data.root_dispersion_ns | integer | Root dispersion reported by the NTP server in nanoseconds |
data.stratum | integer | NTP stratum level (1 = primary reference clock) |
Type: PHC
PTP Hardware Clock reading. The hardware counter is read before and after the PHC syscall to bracket the measurement.
"input": {
"type": "phc",
"identifier": "/dev/ptp0",
"counter_pre": 482393526053,
"counter_post": 482393528552,
"data": {
"time_ns": 1784212429654498913,
"clock_error_bound_ns": 21119
}
}| Field | Type | Description |
|---|---|---|
type | string | Always phc |
identifier | string | Filepath for the PHC device. |
counter_pre | integer | Hardware counter reading before the PHC read |
counter_post | integer | Hardware counter reading after the PHC read |
data.time_ns | integer | PHC time reading |
data.clock_error_bound_ns | integer | Hardware-reported clock error bound, in nanoseconds |
Output details: feed.output
The feed.output object contains information about the clock synchronization achieved by the ClockBound daemon. Note that this field is only present when:
- the synchronization algorithm has converged to produce a reliable clock synchronization output.
- the input source of the
feedevent is currently selected as the source of time for the algorithm.
When present, the feed.output object contains the clock parameters representing ClockBound current best estimate of wall-clock time.
Example
"output": {
"counter_sync": 482393527302,
"time_sync_ns": 1784212429654499150,
"clock_error_bound_ns": 30007,
"period_s": 9.524024204451513e-10,
"period_max_error_s": 7.277185320026017e-16
}| Field | Type | Description |
|---|---|---|
counter_sync | integer | Hardware counter value at the instant the input was processed and a new clock correction applied |
time_sync_ns | integer | Wall-clock time at the instant the input was processed and a new clock correction applied |
clock_error_bound_ns | integer | Computed clock error bound, in nanoseconds, at the instant the input was processed and a new clock correction applied |
period_s | float | Hardware counter oscillator period in seconds per tick |
period_max_error_s | float | Maximum error in the period estimate, in seconds per tick |