Skip to content

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.

Log location 

path
<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> is logging.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):

json
{
  "timestamp": "2026-07-16T14:34:00.000000Z",
  "event": "<event_type>",
  "seq": 42,
  "<event_type>": {
    ...
  },
  "version": "3.0.0"
}
FieldTypeDescription
timestampstringISO 8601 UTC timestamp, with microsecond precision, of when the event was emitted
eventstringThe type of event, one of init, disruption, feed
seqintegerEvent sequence number. Starts at 0 with the init event and increases by one with every following feed or disruption event.
<event_type>objectThe event body, keyed by the value of event
versionstringClockBound daemon version
EventFrequencyDescription
initRare (startup-only)The daemon started or restarted
disruptionRareA clock disruption was detected and handled by the ClockBound daemon.
feedHigh (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 

json
{
  "timestamp": "2026-07-16T14:30:00.000000Z",
  "event": "init",
  "seq": 0,
  "init": {
    "message": "Clock Sync Algorithm initialized"
  },
  "version": "3.0.0"
}

Fields 

FieldTypeDescription
timestampstringISO 8601 UTC timestamp of when this entry was emitted
eventstringAlways "init"
seqintegerEvent sequence number
versionstringClockBound daemon version
init.messagestringAlways "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 

json
{
  "timestamp": "2026-07-16T15:00:00.000000Z",
  "event": "disruption",
  "seq": 18234,
  "disruption": {
    "message": "Disruption occurred"
  },
  "version": "3.0.0"
}

Fields 

FieldTypeDescription
timestampstringISO 8601 UTC timestamp of when this entry was emitted
eventstringAlways "disruption"
seqintegerEvent sequence number
versionstringClockBound daemon version
disruption.messagestringAlways "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) 

json
{
  "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) 

json
{
  "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 

FieldTypeDescription
timestampstringISO 8601 UTC timestamp of when this entry was emitted
eventstringAlways "feed"
seqintegerEvent sequence number
versionstringClockBound daemon version
feed.inputobjectThe input event (see Input details below)
feed.outputobject or nullPer-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.

json
"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
  }
}
FieldTypeDescription
typestringAlways ntp
identifierstringIP address and port (ip:port) identifying the time source
counter_preintegerHardware counter reading before sending the NTP request
counter_postintegerHardware counter reading after receiving the NTP response
data.server_recv_time_nsintegerNTP server receive timestamp in nanoseconds
data.server_send_time_nsintegerNTP server send timestamp in nanoseconds
data.root_delay_nsintegerRoot delay reported by the NTP server in nanoseconds
data.root_dispersion_nsintegerRoot dispersion reported by the NTP server in nanoseconds
data.stratumintegerNTP 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.

json
"input": {
  "type": "phc",
  "identifier": "/dev/ptp0",
  "counter_pre": 482393526053,
  "counter_post": 482393528552,
  "data": {
    "time_ns": 1784212429654498913,
    "clock_error_bound_ns": 21119
  }
}
FieldTypeDescription
typestringAlways phc
identifierstringFilepath for the PHC device.
counter_preintegerHardware counter reading before the PHC read
counter_postintegerHardware counter reading after the PHC read
data.time_nsintegerPHC time reading
data.clock_error_bound_nsintegerHardware-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:

  1. the synchronization algorithm has converged to produce a reliable clock synchronization output.
  2. the input source of the feed event 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 

json
"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
}
FieldTypeDescription
counter_syncintegerHardware counter value at the instant the input was processed and a new clock correction applied
time_sync_nsintegerWall-clock time at the instant the input was processed and a new clock correction applied
clock_error_bound_nsintegerComputed clock error bound, in nanoseconds, at the instant the input was processed and a new clock correction applied
period_sfloatHardware counter oscillator period in seconds per tick
period_max_error_sfloatMaximum error in the period estimate, in seconds per tick