From: Peter Rabbitson <rabbit+list@rabbit.us>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] TC (HTB) doesn't work well when network is congested?
Date: Thu, 25 Oct 2007 17:22:09 +0000 [thread overview]
Message-ID: <4720D0C1.3040309@rabbit.us> (raw)
In-Reply-To: <4720C673.7040900@max-t.com>
William Xu wrote:
> Hi,
>
> I have a server and ten clients in a Gigabit network. The server has
> 125mbps network bandwidth.
> I want that the server has 40Mbps bandwidth reserved for client 1 (IP
> 192.168.5.141), and the
> rest bandwidth is for all other clients.
>
> <snip>
>
> I ran a test in which all 10 clients send/receive packets to/from the
> server simultaneously. But
> Client 1 only got 20mbps bandwidth for sending, and 38mpbs for
> receiving. If I limit the rate of
> both classes 1:1 to 60mbps instead of 125mbps, Client 1 got 39mbps for
> sending, and 40mbps for
> receiving.
>
> I am not sure what might cause this. Is it because TC doesn't work well
> when network is congested?
> Or my script is not right?
>
No network will be able to operate at its theoretical maximum. In the
case of a gigabit network you will be lucky to get consistent 120mbps,
and it heavily depends on the hardware quality, and the number of
switches in between. So what you are doing is oversaturating the link,
the ACK packets can not get through, your speed drops due to
delays/retransmissions. Perform a test with only two systems sending
stuff to each other to see what is the actual bandwidth you can hope
for, and use that number instead of 125mbps.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2007-10-25 17:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 16:38 [LARTC] TC (HTB) doesn't work well when network is congested? William Xu
2007-10-25 17:22 ` Peter Rabbitson [this message]
2007-10-25 18:20 ` William Xu
2007-10-25 21:13 ` Peter Rabbitson
2007-10-26 13:44 ` William Xu
2007-10-26 22:39 ` Peter Rabbitson
2007-10-31 19:39 ` William Xu
2007-11-01 12:08 ` Georgi Alexandrov
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=4720D0C1.3040309@rabbit.us \
--to=rabbit+list@rabbit.us \
--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 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.