目录文档-技术白皮书51-管线卡 Template v1.0

第5章 时基、同步与缓冲(采样一致)


I. 目的与范围(Purpose & Scope)


II. 前置条件与输入(Prerequisites & Inputs)


III. 时基建模(Timebase Modeling)

  1. 采样约束
    • Nyquist:f_s ≥ 2·f_max;微批场景 batch_window = k / f_s。
    • 路径步长:Δell ≤ ( c_ref / f_s ) / max(n_eff);相位时间步长:Δt ≤ λ_ref / ( 2 c_ref )。
  2. 时间戳语义:统一 ISO-8601,明确 acq.ts_start/ts_end 与时区;对齐策略 align(ts, T_win)。
  3. 窗口与对齐:滑动/翻转窗口需要对齐边界落桶规则(drop/round/nearest)。

IV. 同步链路(Synchronization Chain)


V. 缓冲与背压(Buffering & Backpressure)


VI. 路径阶段的采样一致(Sampling Consistency for Path Stages)

  1. 必备输入:gamma(ell)、d ell、n_eff(ell)、c_ref、(相位类)λ_ref;记录 delta_form。
  2. 统一口径(两种等价)
    • T_arr = ( 1 / c_ref ) * ( ∫ n_eff d ell )
    • T_arr = ( ∫ ( n_eff / c_ref ) d ell )
      相位:Phi = ( 2π / λ_ref ) * ( ∫ n_eff d ell )。
  3. 对齐顺序:先时间对齐(窗口/水位)→ 再路径对齐(gamma_ell/d_ell/n_eff 同步)→ 再相位对齐(参考窗)。

VII. 门限与阈值(Gates & Thresholds)


VIII. 机读配置(Machine-Readable Configs)
A. timebase.yaml

version: "1.0.0"

sampling:

fs_hz: 2000

t_exp_s: 0.01

cadence_s: 0.05

windows:

type: "tumbling" # tumbling|sliding

size_s: 1.0

align: "epoch"

nyquist:

f_max_hz: 800

path_constraints:

delta_ell_max_m: "c_ref/fs_hz/max(n_eff)"

phase_limit:

dt_max_s: "lambda_ref/(2*c_ref)"

B. sync_config.yaml

version: "1.0.0"

sources: ["GNSS_PPS","PTP","NTP"]

thresholds:

abs_ns: 50

skew_ns: 5

allan_1s: 1.0e-11

fallback:

order: ["GNSS_PPS","PTP","NTP"]

on_fail: ["increase_uncertainty","mark_quality_flag","switch_mode"]


C. buffer_policy.yaml

version: "1.0.0"

buffer:

strategy: "watermark"

capacity: 4096

lateness:

T_late_s: 0.5

T_max_s: 2.0

backpressure:

mode: "slowdown" # slowdown|drop_tail|shed|requeue

shed_threshold: 0.9

alerts:

topics: ["buffer_alert","sync_alert"]


IX. 校验与监控(Validation & Monitoring)


X. 反例与修正(Anti-Patterns & Fixes)


XI. 发布与目录结构(Release & Layout)

PTN_EXPORT/

configs/

timebase.yaml

sync_config.yaml

buffer_policy.yaml

reports/

check_dim_report.json

validate_report.json

audit.jsonl

figs/

sync_health.pdf

buffer_watermark.svg

path_alignment.pdf

report_manifest.yaml

SIGNATURE.asc


XII. 交叉引用(Cross-References)


XIII. 执行勾选清单(Checklist)


版权与许可(CC BY 4.0)

版权声明:除另有说明外,《能量丝理论》(含文本、图表、插图、符号与公式)的著作权由作者(“屠广林”先生)享有。
许可方式:本作品采用 Creative Commons 署名 4.0 国际许可协议(CC BY 4.0)进行许可;在注明作者与来源的前提下,允许为商业或非商业目的进行复制、转载、节选、改编与再分发。
署名格式(建议):作者:“屠广林”;作品:《能量丝理论》;来源:energyfilament.org;许可证:CC BY 4.0。

首次发布: 2025-11-11|当前版本:v5.1
协议链接:https://creativecommons.org/licenses/by/4.0/