Repository navigation
v1.19.0
v1.19.0 — 不抢网设备 (设备级带宽仲裁)
新能力
不抢网设备 (D22):把指定设备的流量标记为低优先级 (DSCP CS1),网络繁忙时自动让路——家人看视频、远程访问优先;空闲时它仍可用满带宽。适合下载机、共享盒子 (如网心云)、NAS 同步等后台设备。
与 v1.13 游戏通道对称:那是把设备升优先级 (CS4),这是降优先级 (CS1),共用同一条 nft 标记管线。
组成
netsteer-bulk:多设备列表管理 (add/remove/list/status/off/reapply) + 存量手工规则迁移检测 (migrate/migrate --apply,兼容dscp set cs1与数值dscp set 8两种写法)- 智能模式页新卡:设备 chips 点击移除、IP 添加、徽标 (已启用 · N 台让路中)、besteffort 模式提示
- 存量迁移提示:检测到 /etc/nftables.d/ 手工 CS1 规则时,卡内显示"一键迁入"
- 判定建议 (qos suggest):持续吃上行的设备自动出现在"发现疑似后台占用"条,点击即加入
- 游戏通道互斥:同一设备不可同时升/降优先级,脚本层硬校验 (ERR: game-conflict)
- boot/hotplug 兜底:重拨/重启后规则自动恢复;规则带 counter,status 可见标记包量
原理
上行 nft forward 钩子 (priority -140) 标记源地址 → WAN cake bulk tin (thresh≈带宽/16);下行 netdev ingress 钩子 (-440) 标记目的地址 → ifb cake。不切 SQM 脚本,对现有整形配置零侵入;besteffort 模式无 tin (标记保存,切回 diffserv 模式后生效,UI 有提示)。
实测 (网心云 .175 持续吃满 48M 上行场景):CS1 标记后 Best Effort 队列积压 158KB→0、延迟 21.7ms→393μs,网心云自动让路至 bulk tin 3Mbit。
测试
- 单测 6 套 422 项全绿:core 302 / bulk 33 (新增) / sense 21 / tune 15 / qos-awk 9 / feed 11
- e2e 16 项真机全绿 (含不抢网卡在位/徽标语义/互斥脚注)
- 真机链路:migrate 检测→迁入→nft 表生成→标记计数增长→reapply 兜底恢复→互斥拒绝
v1.19.0 — No-fight Devices (Per-device Bandwidth Arbitration)
New capability
No-fight devices (D22): mark a device's traffic as low priority (DSCP CS1) — it automatically yields when the network is busy: family video and remote access go first; when idle it can still use the full bandwidth. Fit for download boxes, shared-bandwidth boxes (e.g. passive-income miners), NAS sync, and other background devices.
Symmetric to the v1.13 game channel: that one raises a device's priority (CS4), this one lowers it (CS1) — both share the same nft marking pipeline.
Composition
netsteer-bulk: multi-device list management (add/remove/list/status/off/reapply) + legacy hand-written rule migration detection (migrate/migrate --apply; understands bothdscp set cs1and numericdscp set 8spellings)- New card on the Smart page: device chips (tap to remove), IP add, badge ("on · N devices yielding"), besteffort-mode hint
- Legacy migration banner: when hand-written CS1 rules are found under /etc/nftables.d/, the card offers one-click adoption
- Suggestion engine (qos suggest): devices continuously saturating the uplink surface in the "possible background hog" strip — one tap to add
- Game-channel mutual exclusion: one device cannot be both raised and lowered; hard-checked at script level (ERR: game-conflict)
- boot/hotplug self-healing: rules auto-restore after redial/reboot; rules carry counters, status shows marked packet volume
How it works
Uplink: nft forward hook (priority -140) marks the source address → WAN cake bulk tin (thresh≈bandwidth/16). Downlink: netdev ingress hook (-440) marks the destination → ifb cake. No SQM script switching — zero intrusion into existing shaping; besteffort mode has no tins (markings saved, effective once back on a diffserv mode; the UI says so).
Measured (miner box .175 continuously saturating a 48M uplink): after CS1 marking, Best Effort backlog 158KB→0, latency 21.7ms→393μs; the box automatically yields into the 3Mbit bulk tin.
Tests
- 6 suites, 422 assertions all green: core 302 / bulk 33 (new) / sense 21 / tune 15 / qos-awk 9 / feed 11
- E2E 16 all green on a real router (card present / badge semantics / exclusion footnote)
- On-device chain: migrate detect → adopt → nft table created → marking counters climbing → reapply self-heal → exclusion rejection
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.