在網路上鮮少有關於 Synology RT2600ac QoS 設定方面的分享, 從來沒有去注意到手上的 RT2600ac 原來還有著眾多功能待發覺, 所以決定將自己學習到的內容紀錄下來.

Synology RT2600ac

Synology RT2600ac QoS 學習筆記
(圖片取自官網)

重要規格:
Qualcomm IPQ8065 quad-core network processor @ 1.7 GHz
Switch: QCA8337
RAM: 512MB
Flash: 4GB/8MB
2.4GHz Radio: QCA9984 4x4 Wave-2 802.11ac, Skyworks SE2623L 2.4 GHz Power Amp (x4)
5GHz Radio: QCA9984 4x4 Wave-2 802.11ac, RFMD PA5542 5 GHz power amp (x4)

這是 IPQ8064 diagram, IPQ8065 也相似.
Synology RT2600ac QoS 學習筆記

IPQ8065:
*Dual Core SMP Krait CPU 1.7GHz, ARM-v7-compliant instruction set.
*include NSS (Network Subsystem) network accelerator.

The IPQ8065 also includes a network accelerator with an aggregate throughput capacity of 5 Gbps. This network accelerator is referred to as the Networking Subsystem (NSS). The NSS consists of two programmable, multithreaded, network accelerator engines. Each network accelerator engine supports 12 threads of execution. The function of each thread is determined by firmware (FW) provided by Qualcomm Atheros. The NSS architecture allows the threads to operate in parallel. NSS functions include L2/L3 routing/bridging, Samba acceleration, LRO/TSO offload, connectivity acceleration, as well as traffic management.

The IPQ8065 typically runs an OpenWRT Linux IP stack on the Dual Core SMP Krait, while the NSS accelerates networking traffic (fast path). The NSS operates under full control of the Linux stack. Rules in the NSS are set by the Linux stack. Networking packets that do not match these rules are passed on to the Linux stack through an exception handling mechanism in the NSS.


相關資源
IPQ806x Hardware acceleration
tc - show/manipulate traffic control settings
traffic shaping
文章關鍵字
啟用 RT2600ac QoS

必須先啟用 RT2600ac QoS 功能, 並設定上下傳的頻寬.


頻寬可依據 ISP 測試網站所提供的資訊填入, 例如 hinet 可至 speed.hinet.net 實測而得.

或是根據 speedtest.net 網站測試. 自己是接中華電信 100M/40M 光世代. 測出來的數據還蠻接近的.


未啟用QoS時. (ssh 進 RT2600ac 查詢 QoS 相關設定)

SynologyRouter> tc qdisc
SynologyRouter> tc qdisc
qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth2 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev wifi0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev wifi1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev ppp0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1

SynologyRouter> tc qdisc show dev ppp0
qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1


啟用QoS後:

SynologyRouter> tc qdisc
qdisc nsshtb 11: dev eth0 root refcnt 2 r2q 20008
qdisc nsscodel 3e9: dev eth0 parent 11:11 target 50.0ms limit 100p interval 100.0ms set_default
qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev eth2 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev wifi0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev wifi1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc nsshtb 12: dev lbr0 root refcnt 2 r2q 20008
qdisc nsscodel 3e9: dev lbr0 parent 12:12 target 50.0ms limit 100p interval 100.0ms set_default
qdisc htb 13: dev ppp0 root refcnt 2 r2q 1 default 500 direct_packets_stat 5
qdisc fq_codel 3e9: dev ppp0 parent 13:500 limit 100p flows 1024 quantum 1514 target 50.0ms interval 100.0ms ecn

SynologyRouter>
SynologyRouter> tc class show dev ppp0
class htb 13:500 parent 13:3 leaf 3e9: prio 2 rate 8000bit ceil 40960Kbit burst 1600b cburst 26204b
class htb 13:3 root rate 40960Kbit ceil 40960Kbit burst 26204b cburst 26204b
class fq_codel 3e9:35 parent 3e9:
class fq_codel 3e9:4b parent 3e9:
class fq_codel 3e9:ad parent 3e9:
class fq_codel 3e9:b6 parent 3e9:
class fq_codel 3e9:b8 parent 3e9:
class fq_codel 3e9:d9 parent 3e9:
class fq_codel 3e9:e0 parent 3e9:
class fq_codel 3e9:150 parent 3e9:
class fq_codel 3e9:186 parent 3e9:
class fq_codel 3e9:1cc parent 3e9:
class fq_codel 3e9:265 parent 3e9:
class fq_codel 3e9:270 parent 3e9:
class fq_codel 3e9:280 parent 3e9:
class fq_codel 3e9:295 parent 3e9:
class fq_codel 3e9:3f6 parent 3e9:

SynologyRouter> tc class show dev eth0
class nsshtb 11:11 root leaf 3e9: burst 1600b rate 8000bit cburst 26214b crate 40960Kbit priority 2 quantum 2Kb overhead 0b
class nsshtb 11:1 root burst 26214b rate 40960Kbit cburst 26214b crate 40960Kbit priority 2 quantum 2Kb overhead 0b
FB: Pctine
QoS簡測

決定先從最初步的 QoS 開始測試, 單台PC上下傳限制在 30/80mbps (3840KB/s, 10240KB/s)


speedtest 實測也蠻接近的.



SynologyRouter> tc qdisc show dev ppp0
qdisc htb 13: root refcnt 2 r2q 1 default 500 direct_packets_stat 0
qdisc fq_codel 3e9: parent 13:500 limit 100p flows 1024 quantum 1514 target 50.0ms interval 100.0ms ecn
qdisc fq_codel 402: parent 13:1026 limit 100p flows 1024 quantum 1514 target 50.0ms interval 100.0ms ecn

SynologyRouter> tc qdisc show dev eth0
qdisc nsshtb 11: root refcnt 2 r2q 20008
qdisc nsscodel 3e9: parent 11:11 target 50.0ms limit 100p interval 100.0ms set_default
qdisc nsscodel 402: parent 11:1026 target 50.0ms limit 100p interval 100.0ms


SynologyRouter> tc class show dev ppp0
class htb 13:3 root rate 40960Kbit ceil 40960Kbit burst 26204b cburst 26204b
class htb 13:500 parent 13:3 leaf 3e9: prio 2 rate 8000bit ceil 40960Kbit burst 1600b cburst 26204b
class htb 13:1026 parent 13:1024 leaf 402: prio 2 rate 20480Kbit ceil 30720Kbit burst 13102b cburst 19653b
class htb 13:1024 parent 13:3 rate 20480Kbit ceil 30720Kbit burst 13102b cburst 19653b
class fq_codel 3e9:2b7 parent 3e9:
class fq_codel 402:3a7 parent 402:


SynologyRouter> tc class show dev eth0
class nsshtb 11:11 root leaf 3e9: burst 1600b rate 8000bit cburst 26214b crate 40960Kbit priority 2 quantum 2Kb overhead 0b
class nsshtb 11:1 root burst 26214b rate 40960Kbit cburst 26214b crate 40960Kbit priority 2 quantum 2Kb overhead 0b
class nsshtb 11:1026 root leaf 402: burst 13107b rate 20480Kbit cburst 19660b crate 30720Kbit priority 2 quantum 2Kb overhead 0b
class nsshtb 11:1024 root burst 13107b rate 20480Kbit cburst 19660b crate 30720Kbit priority 2 quantum 2Kb overhead 0b


FB: Pctine
QoS 設定少了 enable/disable 的選項

和 firewall rule 一樣, 有時候有些條件只是暫時 disable, 並不想去刪除它, 以做為後續參考之用, 在 RT2600ac 的設定頁面, 少了這 disable/enable 的選項, QoS rule 只能刪除而無法 disable, 這是比較不理想的地方.

FB: Pctine
感謝Pctine大分享,受益良多~
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!