* [LARTC] htb policy doesn't work help
@ 2002-10-14 5:34 박 정은
2002-10-14 7:14 ` 박 정은
0 siblings, 1 reply; 2+ messages in thread
From: 박 정은 @ 2002-10-14 5:34 UTC (permalink / raw)
To: lartc
Hi all~~
./tc qdisc del dev eth1 root
./tc qdisc add dev eth1 root handle 1: htb default 10
./tc class add dev eth1 parent 1: classid 1:1 htb rate 500kbps ceil 500kbps
./tc class add dev eth1 parent 1:1 classid 1:2 htb rate 180kbps ceil
500kbps
./tc class add dev eth1 parent 1:2 classid 1:10 htb rate 150kbps ceil
500kbps prio 2
./tc class add dev eth1 parent 1:2 classid 1:11 htb rate 30kbps ceil 80kbps
prio 2
./tc class add dev eth1 parent 1:1 classid 1:12 htb rate 200kbps ceil
300kbps prio 1
./tc qdisc add dev eth1 parent 1:10 handle 20: pfifo limit 5
./tc qdisc add dev eth1 parent 1:11 handle 30: pfifo limit 5
./tc qdisc add dev eth1 parent 1:12 handle 40: sfq perturb 10
./tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip sport
5000 0xffff flowid 1:12
i gave 5000port (it's 1:10) 200kbps and
21 port (it will be 1:10) 300kbps with traffic generator.
then, i gave 5000 port 300kpbs , and 21 port still 300kbps..
and I tried to checking the port's rate with iptraf..
Ofcourse port 5000 rate increased until 290kbps (10kbps less, but it's ok)
the problem is port 21's rate. It's rate should be 200kbps (because
another port was not using).
but the port 21 's rate decreased until 132kbps ..!!
( 290+ 132 B2 where is rest 78 kbps??? )
I changed
./tc class add dev eth1 parent 1:1 classid 1:2 htb rate 180kbps ceil
500kbps
./tc class add dev eth1 parent 1:2 class id 1:10 htb rate 150kbps ceil
500kbps prio 2
TO
./tc class add dev eth1 parent 1:1 classid 1:2 htb rate 230kbps ceil
500kbps
./tc class add dev eth1 parent 1:2 class id 1:10 htb rate 200kbps ceil
500kbps prio 2
it didn't work ..21 port's rate decrease below 140kbps..
what is the problem?? anybody knows???
Thanks in advance..
_________________________________________________________________
클릭하면 나만의 광고가 뜹니다. 검색 키워드 광고 문의
http://www.msn.co.kr/search/keywordshop
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] htb policy doesn't work help
2002-10-14 5:34 [LARTC] htb policy doesn't work help 박 정은
@ 2002-10-14 7:14 ` 박 정은
0 siblings, 0 replies; 2+ messages in thread
From: 박 정은 @ 2002-10-14 7:14 UTC (permalink / raw)
To: lartc
i found some problems...
the rest 70kbps are used in 1:11 ..
but i didn't filtered 1:11 ... why 70kbps are used in 1:11?
when i added
./tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 patch ip sport
20 0xffff flowid 1:11
the port 20 's rate became about 70kbps..
So.. disappered 70kbps has been founded..
but why???
--above question.. some sentence error...
5000 port was 1:12 not 1:10
Sorry
--
Thanks in advance
_________________________________________________________________
증권 정보 가장 빠르고 편하게 보실 수 있습니다. MSN 증권/투자
http://www.msn.co.kr/stock/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-14 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-14 5:34 [LARTC] htb policy doesn't work help 박 정은
2002-10-14 7:14 ` 박 정은
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.