Deep diving into SQM on gigabit networks

Guys, on 100mbit networks and gigabit networks it's just too different. I have to significantly reduce my speed. But that isn't feasible. So, I was just reseaching about how to make SQM better, for gigabit users. Please what to do more here?

I have the strongest router for openwrt ever, so I am a good test candidate(ASUS TUF AX6000). I've had come up with this. Enable software offloading and set your wan port for sqm, not pppoe-wan. Even if you use PPPoE, choose wan(eth1 in my case). So in the end my /etc/config/sqm:

config queue
	option interface 'eth1'
	option download '850000' #maybe do it 800
	option upload '40000' #50mbps upload
	option qdisc 'cake'
	option script 'piece_of_cake.qos'
	option qdisc_advanced '1'
	option linklayer 'ethernet'
	option overhead '52' #added +8 pppoe overhead
	option iqdisc_opts 'nat dual-dsthost ingress'
	option eqdisc_opts 'nat dual-srchost egress'
	option enabled '1'

I can get this result with this, it seems perfect but there is still warnings at low latency gaming. I don't know why. It seems perfect. What else to do here?

1 Like

What speed does your ISP provide for your internet connection?

1 Like

i has similar router ax4200

https://www.waveform.com/tools/bufferbloat?test-id=f3e22a2e-94c5-4a55-8a54-a1cc97b89bb7

but my game in cod is insane

2 Likes

AX4200 is simply the same CPU.

I said gigabit speed. Btw I researched some more, so waveform selects some farthest locations to me, so thats why it is 45ms unloaded. And its why it gives warning signs on gaming. But, from Istanbul to anywhere in Germany, there is no way to have less delay than 45ms. Its just impossible. So it seems my connection is just fine as is?

so you get 1Gb (download) / 1Gb (upload)...

Then why did you only set

ps: I'm asking because it could be that they give you different download and upload speeds.

1 Like

yes, 50mbit upload speed

You can show us a traceroute for example (to analyze how many hops your outgoing packets make):

traceroute -n 8.8.8.8; traceroute -n 1.1.1.1
1 Like

traceroute -n 8.8.8.8; traceroute -n 1.1.1.1
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.1.1 0.664 ms 0.643 ms 0.366 ms
2 78.171.68.1 5.436 ms 4.373 ms 5.393 ms
3 81.212.73.197 2.022 ms 2.000 ms 2.298 ms
4 * * *
5 * * *
6 212.156.104.158 12.325 ms 12.182 ms 11.939 ms
7 72.14.204.8 10.128 ms 10.271 ms *
8 * 74.125.243.29 11.389 ms *
9 8.8.8.8 10.227 ms 10.461 ms 10.241 ms
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 60 byte packets
1 192.168.1.1 0.651 ms 0.695 ms 0.384 ms
2 78.171.68.1 3.685 ms 3.664 ms 4.673 ms
3 81.212.73.197 2.165 ms 2.146 ms 2.126 ms
4 81.212.218.178 2.107 ms * *
5 * * *
6 86.106.122.141 2.878 ms 2.829 ms 2.443 ms
7 86.106.122.122 16.515 ms 86.106.122.106 14.791 ms 14.744 ms
8 172.71.185.13 3.310 ms 172.71.185.19 3.896 ms 3.061 ms
9 1.1.1.1 1.967 ms 2.938 ms 2.431 ms

1 Like

Personally, I don't see anything exceptional (in the sense that I don't see any mistakes). :grinning_face:

Try asking: @brada4
if she has any ideas. I don't see any errors ...

But I could very well have made a mistake. :sweat_smile:

ps: I suppose it will be helpful to see a test without sqm active to understand how much the connection is affected.

Como assim no bacalhau , Novato voce poderia passar o script que o francês instalou para vc , ou passar o nome do canal do YouTuber por gentileza

Or simply get a router with CPUs (and memory system) powerful enough to handle Gigabit without needing any offloads... if I understand correctly, your recommendation to use ethX instead of pppoe-wan is a result of software flow offloading not working as expected with pppoe-wan. Now, cake likely does not care much about the additional encapsulation, but hotplugging might not fully work as expected.

2 Likes

Could you post local capacity tests with sqm disabled to:

1 Like

It is download buffer. You can not control that perfectly.

1 Like

This is your speed

Ok, now without hw offloading and sw offloading, I hereby post the results:



libreqos is very far, ignore it.

can you try Qosmate (cake) package instead of simple piece of cake sqm? The result will be different

Not even close. The strongest router for OpenWrt ever is a server-grade x64 system.

Your router runs on a quad-core ARM processor at 2 GHz. SQM runs single-threaded, so the number of cores is not very relevant, as long as it’s greater than one (SQM runs on one core, the rest of the system can have others).

I run SQM on a 500 Mbps connection on a Sophos SG 115 router. The router runs on a dual-core Intel Atom E3827 processor at 1.74 GHz. When I run bufferbloat tests, I briefly max out one of my processor cores. This makes me think that running SQM on a Gigabit connection would require a processor running at about 3.5 GHz. You have 2.

My shallow dive (this is wifi with competing AP-s) - 100ms outlier is there no matter how hard I slam cake at qos or whatever https://www.waveform.com/tools/bufferbloat?test-id=7cac0289-0cb4-434a-81a3-c5401f12d99b

1 Like