Repository navigation
v1.18.1 — 参数自适应 + 联动/排除 UI
v1.18.1 — D20 参数自适应 + 联动/排除 UI
发布日期: 2026-11-10
定位: v1.18 范围收口 — Task 4 参数自适应落地 + Task 3 联动/设备排除的用户面补齐。
新增
netsteer-tune (D20 参数自适应)
- 新增
netsteer-tune <tier|show>: 按档写三组参数并持久化- nf_conntrack_max 按内存自适应(根治满表断网):
clamp(mem_mb×512, 16384, 262144)
— 128MB→65536 / 256MB→131072 / ≥512MB→262144 顶格;buckets=max/4;
运行时 sysctl -w +/etc/sysctl.d/10-netsteer.conf开机重放 - rfs_sock_flow_entries: T0 16384 / T1 32768 / T2 65536
- sense-daemon 采样间隔: T0 60s / T1 30s / T2 20s(kill 后等退干净再 restart,防幂等跳过)
- nf_conntrack_max 按内存自适应(根治满表断网):
- 向导 apply 自动调用(分级完即按档调参);
show子命令输出当前参数 JSON
智能模式页两块新卡 (D14 用户面)
- 自动切换卡: 联动开关 + 一句状态行("正在检测: 看视频 → 将自动切到「低延迟优先」");
用户语言呈现,不暴露档位字母;手动选的 P2P/极速档明示不改动 - 排除设备卡: IP 列表(点击移除)+ 输入添加(IPv4 校验);
保存后 daemon 下一轮采样自动生效(每轮重读 sense_exclude,无需 reload)
修复
- netsteer-tune 首版 daemon 换活竞态:kill 后 init.d 幂等 restart 看到未退净进程会跳过拉起
→ kill 后最多等 3s + 强制 9 号兜底 + 删 pid 再 restart
测试基线
- core 301 / sense 21 / tune 15(新增,公式三档抽验)/ qos-awk 9 / feed 11
- e2e 15 ALL GREEN;真机验证: tune T1 端到端(sysctl 落地+uci 三项+daemon 换活 pid 变化)、
UI 两卡渲染与文案、联动状态行用户语言
v1.18.1 — D20 Parameter Auto-tuning + Linkage/Exclusion UI
Positioning: v1.18 scope close-out — Task 4 parameter auto-tuning + Task 3 user-facing linkage/exclusion surfaces.
Added
netsteer-tune (D20 parameter auto-tuning)
- New
netsteer-tune <tier|show>: writes three parameter groups per tier, persisted- nf_conntrack_max scaled to memory (root fix for table-full outages):
clamp(mem_mb×512, 16384, 262144)— 128MB→65536 / 256MB→131072 / ≥512MB→262144 cap; buckets=max/4; runtimesysctl -w+/etc/sysctl.d/10-netsteer.confreplay at boot - rfs_sock_flow_entries: T0 16384 / T1 32768 / T2 65536
- sense-daemon sampling interval: T0 60s / T1 30s / T2 20s (after kill, wait for full exit before restart to avoid idempotent skip)
- nf_conntrack_max scaled to memory (root fix for table-full outages):
- Wizard apply calls it automatically (tuned right after tiering);
showprints current parameters as JSON
Two new cards on the Smart page (D14 user surface)
- Auto-switch card: linkage toggle + one status line ("detecting: video → will switch to low-latency"); user language only, no tier letters; manually chosen P2P/turbo modes explicitly never overridden
- Excluded devices card: IP list (tap to remove) + input to add (IPv4 validated); saved entries take effect on the daemon's next sampling round (sense_exclude re-read each round, no reload needed)
Fixed
- netsteer-tune first-version daemon restart race: init.d idempotent restart saw the not-yet-exited process and skipped relaunch → now waits up to 3s after kill + SIGKILL fallback + pid removal before restart
Test baseline
- core 301 / sense 21 / tune 15 (new; formula spot-checks across tiers) / qos-awk 9 / feed 11
- E2E 15 ALL GREEN; on-device: tune T1 end-to-end (sysctl landed + three uci values + daemon pid change), both cards' rendering and copy, linkage status line in user language
Download the .apk matching your device architecture (check /etc/apk/arch on the router).
Install (OpenWrt 24.10+/25.12):
apk add --allow-untrusted /tmp/luci-app-netsteer-*.apk
Built automatically by CI from this tag — unit tests + 4-arch build matrix.
Every package is verified with apk verify before it is attached.