refactor(NET): 源码注释去阶段化 + 网络两份文档重构 + 不稳根因图更新
- 源码注释:删去自愈收敛阶段 1/1.5/3等 scaffolding 称谓,改为语义引用 (E-02 收口 / F-NET-2/3/4 / docs/网络/网络自愈架构设计.md §5.2 E13); 涉及 net_socket/.h、net_events、net_listener、net_pending、net_types、 net_config、ch395f、time_sync、iec104_serv、ui_net_sink、lftpd、 simulator/sim/net_socket_sim、board/host 测试与探针 - 文档重构:网络自愈架构设计.md 与 Net层阻塞模型架构设计.md 改为现状口径 (删历史节与阶段叙事),NET/README.md、docs/README.md 同步 - 工具与配图:gen_net_instability_svg.py 与 docs/images/网络不稳根因总览.svg 随源码口径一并更新 - 门禁:@build 0 错误 0 警告
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1560" height="1468" viewBox="0 0 1560 1468" font-family="Microsoft YaHei, Segoe UI, PingFang SC, sans-serif">
|
||||
<rect x="0" y="0" width="1560" height="1468" fill="#ffffff"/>
|
||||
<text x="26" y="40" font-size="20" font-weight="700" fill="#0f172a">为什么网络「一直不稳」——七个误会与逐个拆掉(自愈架构复盘)</text>
|
||||
<text x="26" y="62" font-size="13" fill="#64748b">左列 = 根因(比喻 + 机制);右列 = 自愈收敛阶段 0~3 的对应拆法;环与环叠加才构成「玄学」</text>
|
||||
<text x="26" y="62" font-size="13" fill="#64748b">左列 = 根因(比喻 + 机制);右列 = 现状机制的对应拆法;环与环叠加才构成「玄学」</text>
|
||||
<rect x="26" y="78.0" width="690" height="120.0" rx="10" fill="#fff1f2" stroke="#e11d48" stroke-opacity="0.45"/>
|
||||
<text x="42" y="100.0" font-size="15" font-weight="700" fill="#e11d48">① 门铃听不见</text>
|
||||
<text x="151" y="100.0" font-size="11.5" fill="#64748b">TRAP-NET-17:事件未收到(E14 复核:非芯片丢,是被读清消费)</text>
|
||||
@@ -61,8 +61,8 @@
|
||||
<text x="860" y="580.0" font-size="15" font-weight="700" fill="#16a34a">修电梯的只剩一个人</text>
|
||||
<rect x="860" y="590.0" width="528" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1124" y="611.5" font-size="13" fill="#1e293b" text-anchor="middle">重建收敛到唯一所有者(net_listener + reconciler),其余位置只置事实不动手</text>
|
||||
<rect x="860" y="632.0" width="457" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1088" y="653.5" font-size="13" fill="#1e293b" text-anchor="middle">不变量 II:唯一周期重建决策者(消费者即时重建三处保留,P2a 实测)</text>
|
||||
<rect x="860" y="632.0" width="453" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1086" y="653.5" font-size="13" fill="#1e293b" text-anchor="middle">不变量 II:唯一周期重建决策者(消费者即时重建三处保留,台架实测)</text>
|
||||
<line x1="722" y1="618.0" x2="834" y2="618.0" stroke="#94a3b8" stroke-width="2.5"/>
|
||||
<path d="M 834 618.0 l -9 -6 v 12 z" fill="#94a3b8"/>
|
||||
<text x="780" y="610.0" font-size="11" fill="#64748b" text-anchor="middle">拆掉</text>
|
||||
@@ -77,8 +77,8 @@
|
||||
<text x="860" y="740.0" font-size="15" font-weight="700" fill="#16a34a">传达员永不离开传达室</text>
|
||||
<rect x="860" y="750.0" width="499" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1109" y="771.5" font-size="13" fill="#1e293b" text-anchor="middle">忙等统一为 net_sock_reset_sync 有界排渣(600 ms 硬上限),阻塞消息化</text>
|
||||
<rect x="860" y="792.0" width="489" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1104" y="813.5" font-size="13" fill="#1e293b" text-anchor="middle">阶段 1.5:net_recv 默认非阻塞 + net_recv_nb + 60 s tripwire 日志</text>
|
||||
<rect x="860" y="792.0" width="549" height="34" rx="7" fill="#ffffff" stroke="#16a34a" stroke-opacity="0.55"/>
|
||||
<text x="1134" y="813.5" font-size="13" fill="#1e293b" text-anchor="middle">recv 语义主流化:net_recv 默认无限阻塞 + net_recv_nb + 60 s tripwire 日志</text>
|
||||
<line x1="722" y1="778.0" x2="834" y2="778.0" stroke="#94a3b8" stroke-width="2.5"/>
|
||||
<path d="M 834 778.0 l -9 -6 v 12 z" fill="#94a3b8"/>
|
||||
<text x="780" y="770.0" font-size="11" fill="#64748b" text-anchor="middle">拆掉</text>
|
||||
@@ -149,7 +149,7 @@
|
||||
<text x="42" y="1372" font-size="15" font-weight="700" fill="#e11d48">七环叠加 =「玄学不稳」</text>
|
||||
<text x="42" y="1396" font-size="12" fill="#334155">随机 · 无错误日志 · 时好时坏——每个环节单看都「正常工作」</text>
|
||||
<rect x="844" y="1344" width="690" height="78" rx="10" fill="#f0fdf4" stroke="#16a34a" stroke-opacity="0.5"/>
|
||||
<text x="860" y="1372" font-size="15" font-weight="700" fill="#16a34a">逐环拆掉 = 稳(自愈收敛阶段 0~3 已实施)</text>
|
||||
<text x="860" y="1372" font-size="15" font-weight="700" fill="#16a34a">逐环拆掉 = 稳(现状机制已全部落地)</text>
|
||||
<text x="860" y="1396" font-size="12" fill="#334155">不依赖门铃 · 唯一主人 · 永不冻结 · 100ms 对账 · 开张前排渣——台架回归全绿</text>
|
||||
<text x="26" y="1452" font-size="12" fill="#94a3b8">证据链:docs/问题记录/CH395F_Trap_Records.md(TRAP-NET-07/-09/-12/-17/-18/-20) · 架构现状 docs/网络/网络自愈架构设计.md §2~§4 · 实证锚点同文档 §5.2(E1~E13)</text>
|
||||
<text x="26" y="1452" font-size="12" fill="#94a3b8">证据链:docs/问题记录/CH395F_Trap_Records.md(TRAP-NET-07/-09/-12/-17/-18/-20) · 架构现状 docs/网络/网络自愈架构设计.md §2~§4 · 实证锚点同文档 §5.2(E0~E19)</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user