HomeDocs-Technical WhitePaper08-EFT.WP.Core.Sea v1.0

Chapter 3 — Synchronization and Time Bases


I. Objectives and Scope


II. Fundamentals and Model

  1. Time bases
    • tau_mono: the local monotonic timebase for measuring latency, jitter, and timeouts.
    • ts: UTC wall-clock time for publication and audit.
    • sync_ref: the synchronization reference source, drawn from {"ptp","ntp","gnss_pps","hw_fanout"}.
    • clock_id: a clock identifier bound to a sid or host domain.
  2. Linear clock model
    ts_i(t) = alpha_i * tau_mono + beta_i + epsilon_i(t)
    where alpha_i is the skew (dimensionless), beta_i the offset (seconds), and epsilon_i(t) a zero-mean noise term.For each clock i relative to the reference tau_mono:
  3. Derived quantities
    • Relative to reference r:
      offset_{i->r}(t) = ( alpha_i - alpha_r ) * tau_mono + ( beta_i - beta_r ).
    • Relative frequency offset (ppm):
      skew_ppm(i->r) = 1e6 * ( alpha_i / alpha_r - 1 ).
    • Jitter: J_i = rms( epsilon_i(t) ) (seconds).

III. Postulates P83- (Synchronization and Time Semantics)*


IV. Minimal Equations S83- (Estimation and Bounds)*

  1. S83-1 OLS estimates for alpha_i and beta_i
    Given samples { ( t_k, s_k ) } with t_k = tau_mono(k) and s_k = ts_i(k):
    • alpha_hat = cov(t,s) / var(t); beta_hat = mean(s) - alpha_hat * mean(t).
    • Residual variance:
      sigma_eps^2 = ( 1 / (K - 2) ) * ∑ ( s_k - ( alpha_hat * t_k + beta_hat ) )^2.
    • Approximate uncertainties:
      u(alpha_i)^2 ≈ sigma_eps^2 / ∑ ( t_k - mean(t) )^2;
      u(beta_i)^2 ≈ sigma_eps^2 * ( 1/K + mean(t)^2 / ∑ ( t_k - mean(t) )^2 ).
  2. S83-2 Relative offset and frequency offset
    With reference r, compute offset_{i->r}(t) and skew_ppm(i->r) as defined above; for online use, substitute t = tau_mono_now.
  3. S83-3 Jitter impact on coherence
    Phase standard deviation: sigma_phi ≈ 2 * pi * f_in * J_i; coherence attenuation:
    • coh ≈ exp( -0.5 * sigma_phi^2 ).
    • Jitter-limited SNR (dB): SNR_jitter_dB ≈ -20 * log10( 2 * pi * f_in * J_i ) (consistent with S82-4).
  4. S83-4 Sample alignment error
    Delta_t_n(i->r) = offset_{i->r}(t_n) + ( fs_i_err / fs_i ) * t_n, where fs_i_err ≈ skew(i->r) * fs_i.For device i, ideal time at sample n: t_n = n / fs_i. Relative to reference:
  5. S83-5 Projecting arrival time onto a common base
    • If T_arr_i is measured, map it to the reference base:
      T_arr_i_ref = alpha_r^{-1} * ( alpha_i * T_arr_i + beta_i - beta_r ).
    • Linearized propagation of uncertainty:
      u(T_arr_i_ref)^2 ≈ ( ∂T/∂alpha_i )^2 u(alpha_i)^2 + ( ∂T/∂beta_i )^2 u(beta_i)^2 + ....

V. Estimators and Calibration Methods

  1. Coarse-to-fine estimation
    • Coarse: align via gnss_pps or frame markers to initialize beta_i (sub-ms).
    • Fine: sliding-window OLS or RLS to update alpha_i/beta_i; for broadband data, use cross-correlation (xcorr) to refine fractional offset.
  2. Online RLS (recommended)
    Recursive update for theta_k = [ alpha, beta ]^T:
    theta_k = theta_{k-1} + K_k * ( s_k - phi_k^T * theta_{k-1} );
    with phi_k = [ t_k, 1 ]^T,
    K_k = P_{k-1} * phi_k / ( lambda + phi_k^T * P_{k-1} * phi_k ),
    P_k = ( P_{k-1} - K_k * phi_k^T * P_{k-1} ) / lambda;
    forgetting factor lambda ∈ (0,1] governs responsiveness to drift.
  3. Uncertainty reporting
    For OLS, use u(alpha_i), u(beta_i) from S83-1; for RLS, use sqrt(diag(P_k)) as confidence radii. Always include Delta_t and sample count K.
  4. Jitter measurement
    For PPS or zero-crossing streams, compute RMS of time-of-arrival jitter; for waveforms, band-pass, xcorr to extract TOA series, then compute J_i.

VI. Protocol and Reference Source Guidance


VII. Quality Thresholds and Fallback

  1. Suggested thresholds (relative to r):
    • | offset_{i->r}(now) | ≤ 100 us (general sensing); ≤ 1 us (high-coherence acoustic/RF).
    • | skew_ppm(i->r) | ≤ 5 ppm (general); ≤ 0.1 ppm (precision).
    • J_i such that SNR_jitter_dB is within 3 dB of the target (per Chapter 2 objectives).
  2. Fallback
    On violation: switch sync_ref to the secondary source; raise RLS weight for fast correction; if necessary, downsample or narrow bandwidth to preserve coherence. Log the event and raise_alert(kind="sync_fault").

VIII. Synchronization and Arrival Time (Cross-chapter Alignment)

and record delta_form in the manifest.
T_arr = ( ∫ ( n_eff / c_ref ) d ell ),orT_arr = ( 1 / c_ref ) * ( ∫ n_eff d ell )
When using T_arr for time calibration, first correct offset/skew on the common tau_mono, then compute the dual-form arrival time per Chapter 8:

IX. Configuration and Execution — Workflow Mx-3 (Sync Baseline)


X. Implementation Bindings and Interface Hints (I80-2 and I80-6)


XI. Provenance and Manifest — Minimal Fields


Copyright & License (CC BY 4.0)

Copyright: Unless otherwise noted, the copyright of “Energy Filament Theory” (text, charts, illustrations, symbols, and formulas) belongs to the author “Guanglin Tu”.
License: This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0). You may copy, redistribute, excerpt, adapt, and share for commercial or non‑commercial purposes with proper attribution.
Suggested attribution: Author: “Guanglin Tu”; Work: “Energy Filament Theory”; Source: energyfilament.org; License: CC BY 4.0.

First published: 2025-11-11|Current version:v5.1
License link:https://creativecommons.org/licenses/by/4.0/