* htb traffic control misfunction,help
@ 2005-08-25 11:30 Samer Talat
0 siblings, 0 replies; only message in thread
From: Samer Talat @ 2005-08-25 11:30 UTC (permalink / raw)
To: netfilter-devel
i am using linux 2.4.25 and the lastest version of iproute2, but i face the problem that the flow goes all to the default class, if you could help me, this will be great, if i use the command ping for the dst ip address, it will show a flow for 1:10, if you have any clue i am waiting for your help.
Thanks in advance
My code
------------------------------------------------------------------------------------------------
TC=tc
Dev=eth0
$TC qdisc del dev $Dev root
$TC qdisc add dev $Dev root handle 1: htb default 20
$TC class add dev $Dev parent 1: classid 1:1 htb rate 10mbit ceil 10mbit
$TC class add dev $Dev parent 1:1 classid 1:10 htb rate 2mbit ceil 2mbit
$TC class add dev $Dev parent 1:1 classid 1:20 htb rate 2mbit ceil 2mbit
$TC class add dev $Dev parent 1:1 classid 1:30 htb rate 1mbit ceil 2mbit
$TC qdisc add dev $Dev parent 1:10 handle 10: pfifo limit 5
$TC qdisc add dev $Dev parent 1:20 handle 20: pfifo limit 5
$TC qdisc add dev $Dev parent 1:30 handle 30: sfq pfifo limit 5
$TC filter add dev $Dev protocol ip parent 1: prio 1 u32 match ip dst 140.3.1.4 flowid 1:10
$TC filter add dev $Dev protocol ip parent 1: prio 1 u32 match ip dst 140.3.1.3 flowid 1:20
$TC -s -d class show dev $Dev
Result
------------------------------------------------------------------------------------------------------------------------------
class htb 1:1 root rate 10000Kbit ceil 10000Kbit burst 14098b/8 mpu 0b overhead
0b cburst 14098b/8 mpu 0b overhead 0b level 7
Sent 7553889 bytes 5020 pkts (dropped 0, overlimits 0)
rate 1020Kbit 84pps
lended: 0 borrowed: 0 giants: 0
tokens: 3300 ctokens: 3300
class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 25000 rate 2000Kbit ceil 2000K
bit burst 4Kb/8 mpu 0b overhead 0b cburst 4Kb/8 mpu 0b overhead 0b level 0
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 13434 ctokens: 13434
class htb 1:20 parent 1:1 leaf 20: prio 0 quantum 25000 rate 2000Kbit ceil 2000K
bit burst 4Kb/8 mpu 0b overhead 0b cburst 4Kb/8 mpu 0b overhead 0b level 0
Sent 7700597 bytes 5120 pkts (dropped 344, overlimits 0)
rate 1051Kbit 87pps backlog 3p
lended: 5020 borrowed: 0 giants: 0
tokens: -18006 ctokens: -18006
class htb 1:30 parent 1:1 prio 0 quantum 12500 rate 1000Kbit ceil 2000Kbit burst
2849b/8 mpu 0b overhead 0b cburst 4Kb/8 mpu 0b overhead 0b level 0
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 18677 ctokens: 13434
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-25 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 11:30 htb traffic control misfunction,help Samer Talat
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.