Hey guys,
i got a wireless internet connection witha variable bandwith so I got the problem that qos or sqm not working fine to me.
the connection was variable from 50 to 20 mbit. So if i put the sqm to 20000 kbs there was no bufferbloat and downloads and voip working fine.
But if i want more speed and set it to 50000 kbs the values are wrong and i get high bufferbloat ...
This time i use cake with layer.qos and 20000 kbs and it worked fine ... but is lost a much off download speed.
Is there a possibility to get sqm working fine with variable bandwidth ? Anyone here got knowledge about it ?
Here the specs:
Router: WR1043n V1
LEDE: 17.01.0
Connection to internet: Ubiquiti Radio over wan port 1000 MBit
Donwloadspeed between 20 and 50 MBit
Uploadspeed between 10 and 20 MBit
Wan Interface is eth0.2
SQM activated on eth0.2 swith cake and layer.qos
No link layer activated because i got a routed network behind ubiquiti device.
Here the debug output:
/usr/sbin/tc qdisc del dev eth0.2 ingress
/usr/sbin/tc qdisc del dev eth0.2 root
/usr/sbin/tc qdisc del dev ifb4eth0.2 root
iptables -t mangle -D POSTROUTING -o ifb4eth0.2 -m mark --mark 0x00 -g QOS_MARK_eth0.2
iptables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `iptables -h' or 'iptables --help' for more information.
ip6tables -t mangle -D POSTROUTING -o ifb4eth0.2 -m mark --mark 0x00 -g QOS_MARK_eth0.2
ip6tables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `ip6tables -h' or 'ip6tables --help' for more information.
iptables -t mangle -D POSTROUTING -o eth0.2 -m mark --mark 0x00/0xff -g QOS_MARK_eth0.2
iptables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `iptables -h' or 'iptables --help' for more information.
ip6tables -t mangle -D POSTROUTING -o eth0.2 -m mark --mark 0x00/0xff -g QOS_MARK_eth0.2
ip6tables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `ip6tables -h' or 'ip6tables --help' for more information.
iptables -t mangle -D PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
iptables: No chain/target/match by that name.
ip6tables -t mangle -D PREROUTING -i vtun+ -p tcp -j MARK --set-mark 0x2/0xff
ip6tables: No chain/target/match by that name.
iptables -t mangle -D PREROUTING -i eth0.2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
iptables: No chain/target/match by that name.
ip6tables -t mangle -D PREROUTING -i eth0.2 -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
ip6tables: No chain/target/match by that name.
iptables -t mangle -D PREROUTING -i eth0.2 -m mark --mark 0x00/0xff -g QOS_MARK_eth0.2
iptables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `iptables -h' or 'iptables --help' for more information.
ip6tables -t mangle -D PREROUTING -i eth0.2 -m mark --mark 0x00/0xff -g QOS_MARK_eth0.2
ip6tables v1.4.21: goto 'QOS_MARK_eth0.2' is not a chain
Try `ip6tables -h' or 'ip6tables --help' for more information.
iptables -t mangle -D OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
iptables: No chain/target/match by that name.
ip6tables -t mangle -D OUTPUT -p udp -m multiport --ports 123,53 -j DSCP --set-dscp-class AF42
ip6tables: No chain/target/match by that name.
iptables -t mangle -F QOS_MARK_eth0.2
iptables: No chain/target/match by that name.
ip6tables -t mangle -F QOS_MARK_eth0.2
ip6tables: No chain/target/match by that name.
iptables -t mangle -X QOS_MARK_eth0.2
iptables: No chain/target/match by that name.
ip6tables -t mangle -X QOS_MARK_eth0.2
ip6tables: No chain/target/match by that name.
/sbin/ip link set dev ifb4eth0.2 down
/sbin/ip link delete ifb4eth0.2 type ifb
Mon Feb 27 14:58:41 CET 2017: Starting.
Starting SQM script: layer_cake.qos on eth0.2, in: 20000 Kbps, out: 10000 Kbps
Failed to find act_ipt. Maybe it is a built in module ?
/sbin/ip link add name TMP_IFB_4_SQM type ifb
/usr/sbin/tc qdisc replace dev TMP_IFB_4_SQM root cake
/sbin/ip link set dev TMP_IFB_4_SQM down
/sbin/ip link delete TMP_IFB_4_SQM type ifb
/usr/sbin/tc -p filter show parent ffff: dev eth0.2
/usr/sbin/tc -p filter show parent ffff: dev eth0.2
/sbin/ip link add name ifb4eth0.2 type ifb
/usr/sbin/tc qdisc del dev eth0.2 root
RTNETLINK answers: No such file or directory
/usr/sbin/tc qdisc add dev eth0.2 root cake bandwidth 10000kbit diffserv3
/sbin/ip link add name TMP_IFB_4_SQM type ifb
/usr/sbin/tc qdisc replace dev TMP_IFB_4_SQM ingress
/sbin/ip link set dev TMP_IFB_4_SQM down
/sbin/ip link delete TMP_IFB_4_SQM type ifb
/usr/sbin/tc qdisc del dev eth0.2 handle ffff: ingress
RTNETLINK answers: Invalid argument
/usr/sbin/tc qdisc add dev eth0.2 handle ffff: ingress
/usr/sbin/tc qdisc del dev ifb4eth0.2 root
RTNETLINK answers: No such file or directory
/usr/sbin/tc qdisc add dev ifb4eth0.2 root cake bandwidth 20000kbit diffserv3
/sbin/ip link set dev ifb4eth0.2 up
/usr/sbin/tc filter add dev eth0.2 parent ffff: protocol all prio 10 u32 match u32 0 0 flowid 1:1 action mirred egress redirect dev ifb4eth0.2
layer_cake.qos was started on eth0.2 successfully
Seems that the QoS marking in iptables not work because the rule is not there ?!
Regards,
Snot
BTW: LEDE is the best firmware for my old 1043n V1 if ever seen ... !!!