Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Changing Linux traffic control parameters on the fly
Date: Sat, 29 Mar 2003 15:28:58 +0000	[thread overview]
Message-ID: <marc-lartc-104895185927622@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104886443613956@msgid-missing>

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/

  reply	other threads:[~2003-03-29 15:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 15:12 [LARTC] Changing Linux traffic control parameters on the fly Simone Leggio
2003-03-29 15:28 ` Stef Coene [this message]
2003-03-29 15:28 ` Stef Coene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104895185927622@msgid-missing \
    --to=stef.coene@docum.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox