Code: Select all
+ tc qdisc show
+ grep hfsc
+ awk {print $5}
+ tc qdisc del dev eth0.2 root
+ tc qdisc del dev imq0 root
+ delete_chain_from_table mangle qos_egress
+ delete_chain_from_table mangle qos_ingress
+ set +x
+ tc qdisc add dev eth0.2 root handle 1:0 hfsc default 10
+ tc class add dev eth0.2 parent 1:0 classid 1:1 hfsc ls rate 1000Mbit ul rate 4 78kbit
+ set +x
+ tc class add dev eth0.2 parent 1:1 classid 1:2 hfsc ls m2 680Mbit
+ tc qdisc add dev eth0.2 parent 1:2 esfq limit 17 depth 128 divisor 8 hash ctna tchg
+ tc filter add dev eth0.2 parent 1:0 prio 2 protocol ip handle 0x2 fw flowid 1: 2
+ set +x
+ tc class add dev eth0.2 parent 1:1 classid 1:3 hfsc ls m2 10Mbit
+ tc qdisc add dev eth0.2 parent 1:3 esfq limit 17 depth 128 divisor 8 hash ctna tchg
+ tc filter add dev eth0.2 parent 1:0 prio 3 protocol ip handle 0x3 fw flowid 1: 3
+ set +x
+ tc class add dev eth0.2 parent 1:1 classid 1:4 hfsc ls m2 200Mbit
+ tc qdisc add dev eth0.2 parent 1:4 esfq limit 17 depth 128 divisor 8 hash ctna tchg
+ tc filter add dev eth0.2 parent 1:0 prio 4 protocol ip handle 0x4 fw flowid 1: 4
+ set +x
+ tc class add dev eth0.2 parent 1:1 classid 1:5 hfsc ls m2 100Mbit rt m1 400kbi t d 20ms m2 200kbit
+ tc qdisc add dev eth0.2 parent 1:5 esfq limit 17 depth 128 divisor 8 hash ctna tchg
+ tc filter add dev eth0.2 parent 1:0 prio 5 protocol ip handle 0x5 fw flowid 1: 5
+ set +x
+ tc class add dev eth0.2 parent 1:1 classid 1:6 hfsc ls m2 10Mbit
+ tc qdisc add dev eth0.2 parent 1:6 esfq limit 17 depth 128 divisor 8 hash ctna tchg
+ tc filter add dev eth0.2 parent 1:0 prio 6 protocol ip handle 0x6 fw flowid 1: 6
+ set +x
+ tc qdisc change dev eth0.2 root handle 1:0 hfsc default 4
+ iptables -t mangle -N qos_egress
+ iptables -t mangle -A POSTROUTING -o eth0.2 -j qos_egress
+ set +x
+ iptables -t mangle -I qos_egress -j MARK --set-mark 0x4
+ iptables -t mangle -I qos_egress -m mark ! --mark 0x0 -j RETURN
+ iptables -t mangle -I qos_egress -m mark ! --mark 0x0 -j CONNMARK --save-mark --mask 0x007F
+ iptables -t mangle -A qos_egress -j CONNMARK --save-mark --mask 0x007F
+ set +x
+ tc class add dev imq0 parent 1:1 classid 1:2 hfsc ls m1 330Mbit d 20ms m2 330M bit
+ tc qdisc add dev imq0 parent 1:2 esfq limit 57 depth 128 divisor 8 hash ctnatc hg
+ tc filter add dev imq0 parent 1:0 prio 2 protocol ip handle 0x200 fw flowid 1: 2
+ set +x
+ tc class add dev imq0 parent 1:1 classid 1:3 hfsc ls m2 10Mbit
+ tc qdisc add dev imq0 parent 1:3 esfq limit 57 depth 128 divisor 8 hash ctnatc hg
+ tc filter add dev imq0 parent 1:0 prio 3 protocol ip handle 0x300 fw flowid 1: 3
+ set +x
+ tc class add dev imq0 parent 1:1 classid 1:4 hfsc ls m1 540Mbit d 20ms m2 540M bit
+ tc qdisc add dev imq0 parent 1:4 esfq limit 57 depth 128 divisor 8 hash ctnatc hg
+ tc filter add dev imq0 parent 1:0 prio 4 protocol ip handle 0x400 fw flowid 1: 4
+ set +x
+ tc class add dev imq0 parent 1:1 classid 1:5 hfsc rt m1 400kbit d 20ms m2 200k bit ls m1 110Mbit d 20ms m2 110Mbit
+ tc qdisc add dev imq0 parent 1:5 esfq limit 57 depth 128 divisor 8 hash ctnatc hg
+ tc filter add dev imq0 parent 1:0 prio 5 protocol ip handle 0x500 fw flowid 1: 5
+ set +x
+ tc class add dev imq0 parent 1:1 classid 1:6 hfsc ls m2 10Mbit
+ tc qdisc add dev imq0 parent 1:6 esfq limit 57 depth 128 divisor 8 hash ctnatc hg
+ tc filter add dev imq0 parent 1:0 prio 6 protocol ip handle 0x600 fw flowid 1: 6
+ set +x
+ tc qdisc change dev imq0 root handle 1:0 hfsc default 4
+ iptables -t mangle -N qos_ingress
+ iptables -t mangle -A FORWARD -i eth0.2 -j qos_ingress
+ iptables -t mangle -A INPUT -i eth0.2 -j qos_ingress
+ set +x
+ iptables -t mangle -I qos_ingress -j MARK --set-mark 0x400
+ iptables -t mangle -I qos_ingress -m mark ! --mark 0x0 -j RETURN
+ iptables -t mangle -I qos_ingress -m mark ! --mark 0x0 -j CONNMARK --save-mark --mask 0x7F00
+ iptables -t mangle -I qos_ingress -j IMQ --todev 0
+ iptables -t mangle -A qos_ingress -j CONNMARK --save-mark --mask 0x7F00
+ set +x
+ [ -z ]
+ gargoyle_header_footer -i gargoyle
+ sed -n s/.*currentWanGateway.*"\(.*\)".*/\1/p
+ ptarget_ip=94.54.144.1
+ iptables -t mangle -I qos_ingress -p icmp --icmp-type 0 -d 94.54.154.146 -s 94 .54.144.1 -j RETURN
+ tc class add dev eth0.2 parent 1:1 classid 1:127 hfsc rt umax 106 dmax 10ms ra te 4kbit
+ tc qdisc add dev eth0.2 parent 1:127 pfifo
+ tc filter add dev eth0.2 parent 1:0 prio 1 protocol ip handle 127 fw flowid 1: 127
+ iptables -t mangle -I qos_egress -p icmp --icmp-type 8 -s 94.54.154.146 -d 94. 54.144.1 -j MARK --set-mark 127
+ [ -n ]
+ pinglimit=36
+ qosmon -a -b 800 94.54.144.1 3078 36
+ set +x
Code: Select all
PING 94.54.144.1 (94.54.144.1): 56 data bytes
64 bytes from 94.54.144.1: seq=0 ttl=255 time=8.462 ms
64 bytes from 94.54.144.1: seq=1 ttl=255 time=8.204 ms
64 bytes from 94.54.144.1: seq=2 ttl=255 time=7.000 ms
64 bytes from 94.54.144.1: seq=3 ttl=255 time=7.098 ms
64 bytes from 94.54.144.1: seq=4 ttl=255 time=8.486 ms
64 bytes from 94.54.144.1: seq=5 ttl=255 time=8.195 ms
64 bytes from 94.54.144.1: seq=6 ttl=255 time=9.607 ms
64 bytes from 94.54.144.1: seq=7 ttl=255 time=7.803 ms
64 bytes from 94.54.144.1: seq=8 ttl=255 time=9.649 ms
64 bytes from 94.54.144.1: seq=9 ttl=255 time=7.474 ms
64 bytes from 94.54.144.1: seq=10 ttl=255 time=7.570 ms
64 bytes from 94.54.144.1: seq=11 ttl=255 time=7.301 ms
64 bytes from 94.54.144.1: seq=12 ttl=255 time=7.299 ms
64 bytes from 94.54.144.1: seq=13 ttl=255 time=6.875 ms
64 bytes from 94.54.144.1: seq=14 ttl=255 time=6.784 ms
64 bytes from 94.54.144.1: seq=15 ttl=255 time=6.758 ms