All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Changing Linux traffic control parameters on the fly
@ 2003-03-28 15:12 Simone Leggio
  2003-03-29 15:28 ` Stef Coene
  2003-03-29 15:28 ` Stef Coene
  0 siblings, 2 replies; 3+ messages in thread
From: Simone Leggio @ 2003-03-28 15:12 UTC (permalink / raw)
  To: lartc

Hi all,

I'm executing some experiments in a test network and I have a doubt. It 
is possible to change linux traffic control parameters (say, for 
example, the bandwidth allocated to a flow, its ceiling rate in a HTB 
scheduler, its weight parameter in a CBQ scheduler and so on) while the 
flow is actually traversing a router?

An example: let's assume that a certain class has allocated a bandwidth 
of 500 kbit/sec. Can I change, say after 10 seconds, while the flow is 
still active, the bandwidth allocated to that class to 1 Mbit/sec?

I know there is the command tc qdisc change with which I can change the 
parameters for a qdisc, but how to use it? Launching after 10 seconds 
another tc script?
Any ideas?
Thank you,

	Simone.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Changing Linux traffic control parameters on the fly
  2003-03-28 15:12 [LARTC] Changing Linux traffic control parameters on the fly Simone Leggio
@ 2003-03-29 15:28 ` Stef Coene
  2003-03-29 15:28 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-03-29 15:28 UTC (permalink / raw)
  To: lartc

On Friday 28 March 2003 16:12, Simone Leggio wrote:
> Hi all,
>
> I'm executing some experiments in a test network and I have a doubt. It
> is possible to change linux traffic control parameters (say, for
> example, the bandwidth allocated to a flow, its ceiling rate in a HTB
> scheduler, its weight parameter in a CBQ scheduler and so on) while the
> flow is actually traversing a router?
>
> An example: let's assume that a certain class has allocated a bandwidth
> of 500 kbit/sec. Can I change, say after 10 seconds, while the flow is
> still active, the bandwidth allocated to that class to 1 Mbit/sec?
Yes.

> I know there is the command tc qdisc change with which I can change the
> parameters for a qdisc, but how to use it? Launching after 10 seconds
> another tc script?
I do that all the time.  I remove and add the cbq/htb qdisc again while I 
leave the traffic running.  
For allmost all results you can find on www.docum.org, I wrote some scripts.  
Most of the time, I have a script that creates the desired htb setup, an 
other script that monitors the bandwidth.  If the bandwidth is not changing 
in 10 seconds, I log the bandwidth to a file and reexecute the htb script 
with other parameters.  
For some test, it takes days before you have enough results.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Changing Linux traffic control parameters on the fly
  2003-03-28 15:12 [LARTC] Changing Linux traffic control parameters on the fly Simone Leggio
  2003-03-29 15:28 ` Stef Coene
@ 2003-03-29 15:28 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-03-29 15:28 UTC (permalink / raw)
  To: lartc

On Friday 28 March 2003 16:12, Simone Leggio wrote:
> Hi all,
>
> I'm executing some experiments in a test network and I have a doubt. It
> is possible to change linux traffic control parameters (say, for
> example, the bandwidth allocated to a flow, its ceiling rate in a HTB
> scheduler, its weight parameter in a CBQ scheduler and so on) while the
> flow is actually traversing a router?
>
> An example: let's assume that a certain class has allocated a bandwidth
> of 500 kbit/sec. Can I change, say after 10 seconds, while the flow is
> still active, the bandwidth allocated to that class to 1 Mbit/sec?
Yes.

> I know there is the command tc qdisc change with which I can change the
> parameters for a qdisc, but how to use it? Launching after 10 seconds
> another tc script?
I do that all the time.  I remove and add the cbq/htb qdisc again while I 
leave the traffic running.  
For allmost all results you can find on www.docum.org, I wrote some scripts.  
Most of the time, I have a script that creates the desired htb setup, an 
other script that monitors the bandwidth.  If the bandwidth is not changing 
in 10 seconds, I log the bandwidth to a file and reexecute the htb script 
with other parameters.  
For some test, it takes days before you have enough results.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-29 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28 15:12 [LARTC] Changing Linux traffic control parameters on the fly Simone Leggio
2003-03-29 15:28 ` Stef Coene
2003-03-29 15:28 ` Stef Coene

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.