Ultimate SQM settings: Layer_cake + DSCP marks (New Script!)

isp router 192.168.1.1, DMZ for OpenWrt router (ip 192.168.1.39) openwrt router 192.168.2.1. game console 192.168.2.160, pc 192.168.2.181

Type vdsl2 speed 70 Down 20 Up

ping: unrecognized option: D
BusyBox v1.34.0 (2021-10-03 19:48:16 UTC) multi-call binary.

Usage: ping [OPTIONS] HOST

Send ICMP ECHO_REQUESTs to HOST

        -4,-6           Force IP or IPv6 name resolution
        -c CNT          Send only CNT pings
        -s SIZE         Send SIZE data bytes in packets (default 56)
        -i SECS         Interval
        -A              Ping as soon as reply is recevied
        -t TTL          Set TTL
        -I IFACE/IP     Source interface or IP address
        -W SEC          Seconds to wait for the first response (default 10)
                        (after all -c CNT packets are sent)
        -w SEC          Seconds until ping exits (default:infinite)
                        (can exit earlier with -c CNT)
        -q              Quiet, only display output at start/finish
        -p HEXBYTE      Payload pattern

i dont have option D

Yepp, busybox ping is not full featured enough*, try:

opkg update ; opkg install iputils-ping iputils-ping6

to get the full featured ping installed.

*) No beef, busybox is small so some features will have to be left out.

For iputils-ping

  • The installed version of package kernel is not compatible, require 5.10.70-1-97de24e4… while 5.10.70-1-6c1889ba… is installed.

its ok so

root@OpenWrt:~# ping -D -n -w 1000 3.168.81.205
PING 3.168.81.205 (3.168.81.205) 56(84) bytes of data.

Lodi Drei..youre here too,,one of your supporter sa ML anti lag config,,i been trying this script since day one tru my newifi D2 , well any thoughts if you succeed on running this script..kindly let me know on how to..much appreciated.

I am testing the script and it gives me this error when editing

Use the raw github url:
https://raw.githubusercontent.com/hisham2630/Ultimate-SQM-settings-Layer_cake-DSCP-marks-New-Script/master/DSCP-ipv4.sh

do I need to install a package and where do I put my ip ?

root@OpenWrt:~# sh DSCP-ipv4.sh
DSCP-ipv4.sh: line 8: tc: not found
ip: RTNETLINK answers: Not supported
ip: SIOCGIFFLAGS: No such device
ip: SIOCGIFFLAGS: No such device
ip: SIOCGIFFLAGS: No such device
brctl: iface veth1: No such device
ip: RTNETLINK answers: No such file or directory
ip: can't find device 'veth0'
DSCP-ipv4.sh: line 33: ipset: not found
DSCP-ipv4.sh: line 34: ipset: not found
DSCP-ipv4.sh: line 35: ipset: not found
DSCP-ipv4.sh: line 36: ipset: not found
iptables v1.8.7 (legacy): unknown option "--set-dscp"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `hashlimit':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `connmark':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `connmark':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `length':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `length':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `dscp':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `dscp':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `set':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `connbytes':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): Couldn't load match `connbytes':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (legacy): unknown option "--set-dscp-class"
Try `iptables -h' or 'iptables --help' for more information.

hi, can you help me configure the script ??? I am on version 19 07 and I do not configure the veth interfaces, I have 1gb ftth fiber and I have 1 vlan, my wan interface is eth1.1074 and lan eth0.1, I have all the packages installed and the rules load me, I only need the veth interface.

Is this thread about telling CAKE what to drop when the bandwidth that is set is saturated? So if you have ten OneDrive downloads and one gaming stream it will not drop the gaming stream? Does it work in both directions?

I thought streams needing low latency like VOIP and gaming streams typically don't need so much bandwidth so how often and in what scenarios will this script offer an improvement?

How would this behave in case of multi wan. Lets we have 2 wans of 100 Mbps each and we are load balancing the 2 wans.. What speed do we set on the LAN interface for SQM config ?

when i put this into dnsmasq.conf my internet stops working any help please

Sounds like you need to install dnsmasq-full

1 Like

Do you need to config SQM for upload only?
or it is better to config it for download too.

I see very little difference in ping when download speed is set to unlimited.

41 posts were split to a new topic: Qosify: new package for DSCP marking + cake

Tried to read maximum from old thread as well as from this active thread
I'm noob and just trying to learn

I've symmetrical 50/50 connection, all. Goes well with sqm cake, except latency is just uncontrollable in CODm, as I'm not expert, instead of going to veth, i opted hnyman DSA built and thanks to him for promising work on r7800

What steps should i do as I'm on DSA, assuming little work is left to be done? Any step by step guide is highly appreciable, I've read OP multiple times, which packages i should not install as I'm not going for veth, also seeing OP sqm.conf , it's for lan + wan , download & upload side treated separately, so in DSA case, as single exit point , should i set separately or a single internet facing interface (pppoe-wan) would do?
Any step by step guide for a newbie? THANK YOU IN ADVANCE

i use sqm on wan both up and down with ecn on ingress not on egress but im on dsa now before dsa would put sqm on wan up and eth0 up no ecn on anything with veth used too...

Bad ass Hisham2630!!!

root@OpenWrt:~# sh DSCP-ipv4.sh
12: veth0@veth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
13: veth1@veth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP mode DEFAULT group default qlen 1000
brctl: bridge br-lan: Resource busy
ipset v7.6: Set cannot be created: set with the same name already exists
ipset v7.6: Set cannot be created: set with the same name already exists
ipset v7.6: Set cannot be created: set with the same name already exists
ipset v7.6: Set cannot be created: set with the same name already exists
dscp_mark  all  --  0.0.0.0/0            0.0.0.0/0
iptables v1.8.7 (legacy): Couldn't load match `hashlimit':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

install "iptables-mod-hashlimit".

opkg update && opkg install iptables-mod-hashlimit