* [LARTC] tc bandwidth management doesn't work on one-armed router [scripts]
@ 2002-10-31 13:08 ulrich.schwarz
0 siblings, 0 replies; only message in thread
From: ulrich.schwarz @ 2002-10-31 13:08 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-31 13:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31 13:08 [LARTC] tc bandwidth management doesn't work on one-armed router [scripts] ulrich.schwarz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.