tc bandwidth management doesn't work on one-armed router [scripts]

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello everyone,

as requested, i supply the script that is working two-armed and does not work
one-armed:


------------------------------------------------------------------------------


tc qdisc del dev eth0 root handle 10:

tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100mbit allot 1514 maxburst 20 avpkt 1000 prio 1

tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 100Mbit rate
128kbit allot 1514 maxburst 20 avpkt 1000 prio 1 bounded
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15

tc filter add dev eth0 protocol ip parent 10: prio 1 handle 2 fw classid 10:200

iptables -A OUTPUT -t mangle -p tcp --dport 22 -j TOS --set-tos Minimize-Delay
iptables -A OUTPUT -t mangle -p tcp --dport 80 -j TOS --set-tos Maximize-Throughput
iptables -A OUTPUT -t mangle -p tcp --dport 443 -j TOS --set-tos Maximize-Throughput

iptables -t mangle -A FORWARD -j MARK --set-mark 2


------------------------------------------------------------------------------


this may be also interesting:


# tc -d qdisc
qdisc sfq 8002: dev eth0 quantum 1514b limit 128p flows 128/1024 perturb 15sec 
qdisc cbq 10: dev eth0 rate 100Mbit cell 8b (bounded,isolated) prio
no-transmit/8 weight 100Mbit allot 1514b 
level 2 ewma 5 avpkt 1000b maxidle 1us 


# tc -s qdisc
qdisc sfq 8002: dev eth0 quantum 1514b perturb 15sec 
 Sent 723861 bytes 13389 pkts (dropped 0, overlimits 0) 

 qdisc cbq 10: dev eth0 rate 100Mbit (bounded,isolated) prio no-transmit
 Sent 724767 bytes 13402 pkts (dropped 0, overlimits 11767) 
  borrowed 0 overactions 0 avgidle 62 undertime 0


i hope anybody can help me,

greetings

ulric

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux