CAKE QoS Script (OpenWrt)

if the integrated is connected to my isp and the 2 USB dongles go one to my PC and the other to the archer

So given the properties of the different ethernet controllers most people use one of the USB dongles for the WAN side and the integrated for the LAN side.

That still hints at the archer doing NAT but is not 100% conclusive. If you connect a computer t6 the archer, what IP address will it get?

1 Like

no, the integrated is wan and the two dongles are for lan

OK I interpret that as archer does NAT, so your QoS rule (runing on the rpi4b) would only need to be for 192.168.1.105 and should cover all connected devices on the archer as well.

Yes, I understand that that is what you do here. I was stating that generally people here using rpi4bs with SQM/cake seem to recommend to use one of the USB dongles for the WAN side, but your netwrk, your decisions.

1 Like

this is a little confusing in my language, I must assume that it is enough to use the ip of the archer

2 Likes

is it because all the bandwidth is reached ?

No, because if there is an issue with USB then at least the router will be reachable from your LAN to debug.

2 Likes

I think part of the reason is that USB dongles tend to be over-buffered and have their own bufferbloat, but if you use a traffic shaper like cake these USB-dongle buffers will never overfill. But this is from hearsay, I did not try to convert my rpi4b into router service, it acts as my GPS disciplines time server instead.

1 Like

my family told me that they had Internet disconnections, I should assume that because they are in the mass class, my doubt that is the problem ?

Bulk only has very little guaranteed throughput in total, this is why I would consider it rude to put the rest of my family's traffic in the bulk tin.

But as long as there is no other traffic in one of the higher tins they should be getting all of the capacity. So what else was going on in your network during that they reported the internet disrupted? (And keep in mind that the cause of their promblem might actually be outside of your home network)

3 Likes

latency for me remained low until now, they just said the connection was cut off when they were in a meeting (meet), then came back

hi,

just a note to anyone trying to use this (or probably other similar) script and Voice over IP (VoIP): there is a common misunderstanding how VoIP works. Without understanding the concept this script will not do what you expect, from VoIP point of view at least.
so, VoIP is not just SIP, it can be H323 as well, they are different protocols but are common in one aspect which is the problem here: both are differentiating between signalling and media traffic!

## Voice over Internet Protocol (VoIP)
ipt46dscp -p tcp -m multiport --ports 5060:5061 -j DSCP --set-dscp-class $TELEPHONY -m comment --comment "VoIP to $TELEPHONY (TCP)"
ipt46dscp -p udp -m multiport --ports 5060:5061 -j DSCP --set-dscp-class $TELEPHONY -m comment --comment "VoIP to $TELEPHONY (UDP)"

The problem with this part from the script are:

  • assumes VoIP = SIP, if your using H323 should adjust ports,
  • assumes the default port 5060 and Secure SIP 5061 are used but it can be actually whatever high port, should adjust to match to your config,
  • missing the media part !! the media traffic is more important than the signalling traffic (covered only here), there should be additional rule with the UDP port range used by media traffic,
  • this is signalling traffic only, it may cog up the EF queue, media traffic is usually using small packets and should be in EF, the signalling traffic rather be in AF31. some QoS designs even check packet size and only allow <500bytes in EF, which is usually not the case with "chatty" SIP for example.

this script is a great summary how to do CAKE/DSCP. don't get me wrong, just if you use VoIP don't forget about media and VoIP != SIP is my suggestion.

otherwise great work, thank you!

1 Like

hi xato i recommand if you are wrt3200 400/400 for best bufferbloat,

my mate has rt3200 like me and the best bufferbloat is with 400/400 have a nice day and good game :wink:

hello, after many tests I only see lost packets when I slow down, when I set 1gb I don't have that many packets but it is true that bufferbloats are not g
ood...

ok do you has a settings properly to overhead framing ...

you can just put ethernet and not conservatrice

the rest of settings is not necessary like say elan for the fiber optic :wink:

you can verify if overhead mpu its correct with this command in putty

tc -s qdisc and check your overhead is present

hi xato,

try this test packetlosstest.com and post the result for compared ..

1 Like

latency stays low, but at non-consecutive random moments, it goes up and then goes down again. is this normal ? or it could be cpu saturation I don't create or some parameter I need to modify

1 Like

hi edwpat

all i can tell you is that i don't have the same gaming experience with an rb750 g3 or archer c7 or erx or hap ac2 as with my latest belkin rt3200

one is under mt7621 the other under armv7
and the last belkin that I use is in armv8 my experience is only pleasant with this one, so maybe the ram proc etc plays something, that I leave the choice to answer it ^^

1 Like

I don't understand well about CIDR, I'm not a network expert either, so how do I convert these ips into CIDR?
192.168.1.140
192.168.1.174
192.168.1.162
192.168.1.227
192.168.1.146
192.168.1.220

/32 at end