* Problem using HTB
@ 2005-04-01 9:40 Abhishek Gupta
2005-04-02 21:36 ` Thomas Graf
0 siblings, 1 reply; 5+ messages in thread
From: Abhishek Gupta @ 2005-04-01 9:40 UTC (permalink / raw)
To: netdev
hello everybody
I am working on a project related to QoS. I am using Linux's tc to
configure my PC based router.
My setup is as follows:-
eth0 eth1 eth0 eth0
PC-based server|----------|PC-based Router|---------|PC-Based Client
(using tc)
* All my ethernet cards are on 100Mbps lan
* Traffic generators being used:
> UDP: gen_send @ about 1Mbps
(http://www.citi.umich.edu/projects/qbone/generator.html)
* Kernel versions being used:-
> At Router: linux-2.4.20
> At Client and Server: Linux-2.4.7-10
* iproute2 versions:-
> At Router: iproute2-ss020116
> At Client and Server: iproute2-ss010824
* Packets before leaving sever and client are being marked with DSCP bits
using Linux's tc option; Marking is done based on two-tuples:
destination ip address and port number
* At the Router, I have the following configuration(only related to HTB)
for eth0 and similar configuration exits for eth1 too:
---Router Configuration Starts Here-----
DEV0='eth0'
tc qdisc add dev $DEV0 parent 1: handle 2: htb default 30
tc class add dev $DEV0 parent 2: classid 2:1 htb rate 100kbit burst 100 \
ceil 100kbit
tc class add dev $DEV0 parent 2:1 classid 2:10 htb rate 60kbit burst 100 \
ceil 100kbit
tc class add dev $DEV0 parent 2:1 classid 2:20 htb rate 30kbit burst 60 \
ceil 100kbit
tc class add dev $DEV0 parent 2:1 classid 2:30 htb rate 10kbit burst 80 \
ceil 100kbit
tc qdisc add dev $DEV0 parent 2:10 gred setup DPs 3 default 3 grio
tc qdisc change dev $DEV0 parent 2:10 gred limit 185000 min 11394 \
max 11395 burst 100 avpkt 128 bandwidth 100kbit DP 1 probability 1 \
prio 1
tc qdisc change dev $DEV0 parent 2:10 gred limit 17972 min 4748 max 9493 \
burst 50 avpkt 1000 bandwidth 100kbit DP 2 probability 0.01 prio 2
tc qdisc change dev $DEV0 parent 2:10 gred limit 4368 min 1796 max 3582 \
burst 25 avpkt 1000 bandwidth 100kbit DP 3 probability 0.01 prio 2
tc qdisc add dev $DEV0 parent 2:20 gred setup DPs 2 default 2 grio
tc qdisc change dev $DEV0 parent 2:20 gred limit 52480 min 11311 \
max 11312 burst 60 avpkt 256 bandwidth 100kbit DP 1 probability 1 \
prio 1
tc qdisc change dev $DEV0 parent 2:20 gred limit 47184 min 5898 \
max 11796 burst 60 avpkt 1000 bandwidth 100kbit DP 2 probability 0.01 \
prio 2
tc qdisc add dev $DEV0 parent 2:30 gred setup DPs 1 default 1 grio
tc qdisc change dev $DEV0 parent 2:30 gred limit 15728 min 1966 \
max 3932 burst 80 avpkt 200 bandwidth 100kbit DP 1 probability 0.04 \
prio 1
-----Router Configuration Ends Here------
Now, the problem is that when I am sending packets from just one UDP
source(at server), I am getting outbound bit rate at eth0(of Router) as 12kbps
even though I have ceiled the corresponding HTB class to 100kbps; similar thing
happens when I have two UDP sources(both at server). So, even though
I have configured for 100kbps, I am getting only 12kbps as the link speed.
Please help me out.
Abhishek
=========================================================================
ABHISHEK GUPTA
E-mail:abhishek_it_bhu@yahoo.co.in
=========================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem using HTB
2005-04-01 9:40 Problem using HTB Abhishek Gupta
@ 2005-04-02 21:36 ` Thomas Graf
2005-04-03 15:00 ` Abhishek Gupta
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Graf @ 2005-04-02 21:36 UTC (permalink / raw)
To: Abhishek Gupta; +Cc: netdev
* Abhishek Gupta <Pine.BSO.4.58.0504011240500.6284@pal.ece.iisc.ernet.in> 2005-04-01 15:10
> tc class add dev $DEV0 parent 2: classid 2:1 htb rate 100kbit burst 100 \
> ceil 100kbit
> [...]
> I have configured for 100kbps, I am getting only 12kbps as the link speed.
Before I look into this, are you aware of 1kbps=8kbit?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem using HTB
2005-04-02 21:36 ` Thomas Graf
@ 2005-04-03 15:00 ` Abhishek Gupta
2005-04-03 19:47 ` Thomas Graf
0 siblings, 1 reply; 5+ messages in thread
From: Abhishek Gupta @ 2005-04-03 15:00 UTC (permalink / raw)
To: Thomas Graf; +Cc: netdev
hello
Thanks Mr. Graf for replying. Ya, I do was making mistake by assuming KBps
as Kbit per second. Actually, I got confused with notations used in the
Linux's RH monitor which I used for the speed measurements. But the problem is still
not yet solved as I tried with 1Mbit speed as the setting for link speed
in the htb configuration and got about 30KBps which amounts to about
240Kbitps even though my UDP source is sending at speed of about
1MBps(8Mbps), according to RH monitor readings.
Is it possible that the problem is due to the source that I am using for
UDP packets?
abhishek
=========================================================================
ABHISHEK GUPTA
E-mail:abhishek_it_bhu@yahoo.co.in
=========================================================================
On Sat, 2 Apr 2005, Thomas Graf wrote:
> * Abhishek Gupta <Pine.BSO.4.58.0504011240500.6284@pal.ece.iisc.ernet.in> 2005-04-01 15:10
> > tc class add dev $DEV0 parent 2: classid 2:1 htb rate 100kbit burst 100 \
> > ceil 100kbit
> > [...]
> > I have configured for 100kbps, I am getting only 12kbps as the link speed.
>
> Before I look into this, are you aware of 1kbps=8kbit?
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem using HTB
2005-04-03 15:00 ` Abhishek Gupta
@ 2005-04-03 19:47 ` Thomas Graf
2005-04-04 4:26 ` Multiple REDs per Queue Abhishek Gupta
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Graf @ 2005-04-03 19:47 UTC (permalink / raw)
To: Abhishek Gupta; +Cc: netdev
* Abhishek Gupta <Pine.BSO.4.58.0504032018040.30630@pal.ece.iisc.ernet.in> 2005-04-03 20:30
> But the problem is still
> not yet solved as I tried with 1Mbit speed as the setting for link speed
> in the htb configuration and got about 30KBps which amounts to about
> 240Kbitps even though my UDP source is sending at speed of about
> 1MBps(8Mbps), according to RH monitor readings.
I do not know about that "RH monitor" you are referring to, maybe it
does not display rates correctly. (I found 3 out of 5 rate estimators
outputing with a variance of over 10%) I can recommend you bmon [0]
which states the variance and can be used to a resolution up to
1/100s given the input source provides an equal or better resolution.
> Is it possible that the problem is due to the source that I am using for
> UDP packets?
Very likely, especially due to the huge difference in requested and
achieved rate you have mentioned above. I hardly think this is a
problem related to HTB but rather some misconfiguration in your testing
process.
[0] http://people.suug.ch/~tgr/bmon/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Multiple REDs per Queue
2005-04-03 19:47 ` Thomas Graf
@ 2005-04-04 4:26 ` Abhishek Gupta
0 siblings, 0 replies; 5+ messages in thread
From: Abhishek Gupta @ 2005-04-04 4:26 UTC (permalink / raw)
To: Thomas Graf; +Cc: netdev
Hello
Once again thanks Mr. Graf. I have changed my UDP packet generator to
Linux's pktgen which generates UDP packets at very high speed and also at
constant rate. Things are now working quite well. Thanks for letting me
know about the bmon software. Its a great software and is helping me a
lot in my work. I have something more to ask. The problem goes as follows:
In my project I want to use multiple REDs per queue i.e, in a queue,
various tcps(persistent, non-persistent etc) will be operated
with different RED parameters(min and max threshold, beta, pmax etc)
but operate on same queue length and not on individual queue
lengths(including average queue length). Is it possible with linux's tc
option to have multiple REDs per queue. As far as I could able to
understand, linux tc option provides only one RED per queue.
If it is not possible with tc option, then where I need to make changes in
source code to achieve the forementioned set-up.
Thanks.
abhishek
=========================================================================
ABHISHEK GUPTA
E-mail:abhishek_it_bhu@yahoo.co.in
=========================================================================
On Sun, 3 Apr 2005, Thomas Graf wrote:
> * Abhishek Gupta <Pine.BSO.4.58.0504032018040.30630@pal.ece.iisc.ernet.in> 2005-04-03 20:30
> > But the problem is still
> > not yet solved as I tried with 1Mbit speed as the setting for link speed
> > in the htb configuration and got about 30KBps which amounts to about
> > 240Kbitps even though my UDP source is sending at speed of about
> > 1MBps(8Mbps), according to RH monitor readings.
>
> I do not know about that "RH monitor" you are referring to, maybe it
> does not display rates correctly. (I found 3 out of 5 rate estimators
> outputing with a variance of over 10%) I can recommend you bmon [0]
> which states the variance and can be used to a resolution up to
> 1/100s given the input source provides an equal or better resolution.
>
> > Is it possible that the problem is due to the source that I am using for
> > UDP packets?
>
> Very likely, especially due to the huge difference in requested and
> achieved rate you have mentioned above. I hardly think this is a
> problem related to HTB but rather some misconfiguration in your testing
> process.
>
> [0] http://people.suug.ch/~tgr/bmon/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-04 4:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01 9:40 Problem using HTB Abhishek Gupta
2005-04-02 21:36 ` Thomas Graf
2005-04-03 15:00 ` Abhishek Gupta
2005-04-03 19:47 ` Thomas Graf
2005-04-04 4:26 ` Multiple REDs per Queue Abhishek Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).