All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] tc
@ 1980-01-05 16:14 Stef Coene
  2001-12-04 17:21 ` Sebastian Taralunga
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Stef Coene @ 1980-01-05 16:14 UTC (permalink / raw)
  To: lartc

On Monday 01 April 2002 02:03, Srikanth Goteti wrote:
> Hi,
>  I am using the followings commands to execute to control bandwidth between
>
> 192.168.1.5 - 192.168.1.4 to 50Mbps
>
> but when I run these series of commands and check the bandwidth between
> these I get only 19Mbps.
How do you measure the bandwidth ?

> /sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt
> 1000
>
> /sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit
> rate 100Mbit weight 10Mbit maxburst 20 avpkt 1000 allot 1514 prio 3
And what if you bound this class as well ?


Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* [LARTC] tc
  1980-01-05 16:14 [LARTC] tc Stef Coene
@ 2001-12-04 17:21 ` Sebastian Taralunga
  2001-12-06 12:28 ` bert hubert
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Sebastian Taralunga @ 2001-12-04 17:21 UTC (permalink / raw)
  To: lartc


Hi!

I am trying to use tc to provide a certain bandwidth. From the
experiments that I have made so far it seems to me that the
bandwidth limitation is working, but is not extremely precise. I
just wonder whether this is something that can be corrected, and, if
yes, how. Or is it just me not knowing very precise how to use the
tc parameters?

Regards,

Sebastian



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

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

* Re: [LARTC] tc
  1980-01-05 16:14 [LARTC] tc Stef Coene
  2001-12-04 17:21 ` Sebastian Taralunga
@ 2001-12-06 12:28 ` bert hubert
  2002-04-01  0:03 ` Srikanth Goteti
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bert hubert @ 2001-12-06 12:28 UTC (permalink / raw)
  To: lartc

On Tue, Dec 04, 2001 at 06:21:34PM +0100, Sebastian Taralunga wrote:
> 
> Hi!
> 
> I am trying to use tc to provide a certain bandwidth. From the
> experiments that I have made so far it seems to me that the
> bandwidth limitation is working, but is not extremely precise. I
> just wonder whether this is something that can be corrected, and, if
> yes, how. Or is it just me not knowing very precise how to use the
> tc parameters?

TBF is very precise, as is HTB. CBQ can guess wrong at times. TBF can also
be misconfigured.

CBQ can also be helped to be more precise - if you see CBQ not achieving the
rates you configured, consider raising the 'minburst or mtu' parameter a
bit. See the HOWTO for exact details what these do.

For more exact help, please post your CBQ configuration.

Regards,

bert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
Trilab                                 The Technology People
Netherlabs BV / Rent-a-Nerd.nl           - Nerd Available -
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet

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

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

* [LARTC] tc
  1980-01-05 16:14 [LARTC] tc Stef Coene
  2001-12-04 17:21 ` Sebastian Taralunga
  2001-12-06 12:28 ` bert hubert
@ 2002-04-01  0:03 ` Srikanth Goteti
  2002-04-30 20:20 ` Waters
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Srikanth Goteti @ 2002-04-01  0:03 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]

Hi,
 I am using the followings commands to execute to control bandwidth between

192.168.1.5 - 192.168.1.4 to 50Mbps

but when I run these series of commands and check the bandwidth between these I get only 19Mbps. 

/sbin/tc qdisc del dev eth0 root

/sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

/sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate 100Mbit weight 10Mbit maxburst 20 avpkt 1000 allot 1514 prio 3

/sbin/tc class add dev eth0 parent 10:1 classid 10:10 cbq bandwidth 100Mbit rate 50Mbit weight 5Mbit maxburst 20 avpkt 1000 allot 1514 prio 3 bounded

/sbin/tc filter add dev eth0 parent 10:0 protocol ip prio 3 u32 match ip dst 192.168.1.4 flowid 10:10

I am also displaying the output of qdisc and class of tc

---------------------------------------------------------------
# /sbin/tc -s qdisc show dev eth0

qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit
 Sent 26177842 bytes 18063 pkts (dropped 0, overlimits 5406)
  borrowed 0 overactions 0 avgidle 62 undertime 0
-----------------------------------------------------------------
# /sbin/tc -s class show dev eth0

class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit
 Sent 26792774 bytes 19823 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 62 undertime 0
class cbq 10:10 parent 10:1 rate 50Mbit (bounded) prio 3
 Sent 24900652 bytes 16554 pkts (dropped 0, overlimits 7194)
  borrowed 0 overactions 1314 avgidle 1657 undertime 0
class cbq 10:1 parent 10: rate 100Mbit prio 3
 Sent 24900652 bytes 16554 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 60 undertime 0

Thanks in advance,

regards,
Srikanth Goteti
Research Assitant,
Dept. of Computer Science,
University of Houston


[-- Attachment #2: Type: text/html, Size: 3517 bytes --]

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

* [LARTC] tc
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (2 preceding siblings ...)
  2002-04-01  0:03 ` Srikanth Goteti
@ 2002-04-30 20:20 ` Waters
  2005-04-25  8:08 ` [LARTC] TC Grace Baldonasa
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Waters @ 2002-04-30 20:20 UTC (permalink / raw)
  To: lartc

Hello lartc,

Well, I have some trouble with iproute. I wrote a letter some days
ago that tc is not filtering my traffic (I included script), so could somebody send to me
real example? By the way, I have ADSL 384Kbit/s downstream and
128Kbit/s upstream. I need to divide my incoming speed into 3 parts:
1) about 10Kb/s
2) about 10Kb/s
3) about 30Kb/s
How this could be done?

-- 
Best regards,
 Waters                          mailto:waters@inbox.lv

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

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

* [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (3 preceding siblings ...)
  2002-04-30 20:20 ` Waters
@ 2005-04-25  8:08 ` Grace Baldonasa
  2005-04-25  8:48 ` Daniel Harold L.
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Grace Baldonasa @ 2005-04-25  8:08 UTC (permalink / raw)
  To: lartc

Thanks for the very prompt reply.

I've been googling already for a few days now trying to understand how
bandwidth management works. I came to understand that TC is a utility
that I can use to shape up my local network bandwidth consumption.
Im hoping I will be guided here through.
Here are my questions:
1. Is TC works on an interface of a physical device only?
2. My objective is to limit the upload/download rate of each computer
in our local network attached to CPE. In this case, all PC's are
attached to common interface (let's sat eth0), will I be able to
filter or limit  individiual PC on their UL/DL rate?
Seeing those examples  in the net, tc works on device interface only.
Hope my understanding is not correct.

Thanks.
More question to come......
grace
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (4 preceding siblings ...)
  2005-04-25  8:08 ` [LARTC] TC Grace Baldonasa
@ 2005-04-25  8:48 ` Daniel Harold L.
  2005-04-25  9:00 ` Grace Baldonasa
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Daniel Harold L. @ 2005-04-25  8:48 UTC (permalink / raw)
  To: lartc

On Monday April 25 2005 00:08, Grace Baldonasa wrote:

> 1. Is TC works on an interface of a physical device only?

No. There is an virtual device called imq (http://linuximq.net)

> 2. My objective is to limit the upload/download rate of each computer
> in our local network attached to CPE. In this case, all PC's are
> attached to common interface (let's sat eth0), will I be able to
> filter or limit  individiual PC on their UL/DL rate?

Yes. You can do it with imq+u32 filter ..

Regards,

Daniel

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (5 preceding siblings ...)
  2005-04-25  8:48 ` Daniel Harold L.
@ 2005-04-25  9:00 ` Grace Baldonasa
  2005-04-25  9:29 ` Grace Baldonasa
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Grace Baldonasa @ 2005-04-25  9:00 UTC (permalink / raw)
  To: lartc

Hi,

Thanks.
I tried the site you gave me below. Looks like it's a restricted site. 
Any chance I can get access to it?
Thanks.

regards,

Grace


On 4/26/05, Daniel Harold L. <daniel@internux.co.id> wrote:
> On Monday April 25 2005 00:08, Grace Baldonasa wrote:
> 
> > 1. Is TC works on an interface of a physical device only?
> 
> No. There is an virtual device called imq (http://linuximq.net)
> 
> > 2. My objective is to limit the upload/download rate of each computer
> > in our local network attached to CPE. In this case, all PC's are
> > attached to common interface (let's sat eth0), will I be able to
> > filter or limit  individiual PC on their UL/DL rate?
> 
> Yes. You can do it with imq+u32 filter ..
> 
> Regards,
> 
> Daniel
> 
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (6 preceding siblings ...)
  2005-04-25  9:00 ` Grace Baldonasa
@ 2005-04-25  9:29 ` Grace Baldonasa
  2005-04-25 10:19 ` Daniel Harold L.
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Grace Baldonasa @ 2005-04-25  9:29 UTC (permalink / raw)
  To: lartc

Thanks.
Got it correct now.


grace
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (7 preceding siblings ...)
  2005-04-25  9:29 ` Grace Baldonasa
@ 2005-04-25 10:19 ` Daniel Harold L.
  2005-04-25 10:45 ` Grace Baldonasa
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Daniel Harold L. @ 2005-04-25 10:19 UTC (permalink / raw)
  To: lartc

On Monday April 25 2005 01:00, you wrote:
> Hi,
>
> Thanks.
> I tried the site you gave me below. Looks like it's a restricted site.
> Any chance I can get access to it?

Sorry .. I'm wrong give you the url :) You can try http://www.linuximq.net

Regards,

Daniel

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (8 preceding siblings ...)
  2005-04-25 10:19 ` Daniel Harold L.
@ 2005-04-25 10:45 ` Grace Baldonasa
  2005-04-25 10:55 ` Jesper Lund
  2005-04-25 11:21 ` Andy Furniss
  11 siblings, 0 replies; 13+ messages in thread
From: Grace Baldonasa @ 2005-04-25 10:45 UTC (permalink / raw)
  To: lartc

Hi,

I need the source code of the TC utility, can someone direct me to the
site to which I can download it.
Thanks.

grace
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (9 preceding siblings ...)
  2005-04-25 10:45 ` Grace Baldonasa
@ 2005-04-25 10:55 ` Jesper Lund
  2005-04-25 11:21 ` Andy Furniss
  11 siblings, 0 replies; 13+ messages in thread
From: Jesper Lund @ 2005-04-25 10:55 UTC (permalink / raw)
  To: lartc

hi

> I need the source code of the TC utility, can someone direct me to
> the site to which I can download it.

Search for iproute at freshmeat.net

//Jesper
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] TC
  1980-01-05 16:14 [LARTC] tc Stef Coene
                   ` (10 preceding siblings ...)
  2005-04-25 10:55 ` Jesper Lund
@ 2005-04-25 11:21 ` Andy Furniss
  11 siblings, 0 replies; 13+ messages in thread
From: Andy Furniss @ 2005-04-25 11:21 UTC (permalink / raw)
  To: lartc

Grace Baldonasa wrote:
> Hi,
> 
> I need the source code of the TC utility, can someone direct me to the
> site to which I can download it.
> Thanks.

http://developer.osdl.org/dev/iproute2/

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-04-25 11:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1980-01-05 16:14 [LARTC] tc Stef Coene
2001-12-04 17:21 ` Sebastian Taralunga
2001-12-06 12:28 ` bert hubert
2002-04-01  0:03 ` Srikanth Goteti
2002-04-30 20:20 ` Waters
2005-04-25  8:08 ` [LARTC] TC Grace Baldonasa
2005-04-25  8:48 ` Daniel Harold L.
2005-04-25  9:00 ` Grace Baldonasa
2005-04-25  9:29 ` Grace Baldonasa
2005-04-25 10:19 ` Daniel Harold L.
2005-04-25 10:45 ` Grace Baldonasa
2005-04-25 10:55 ` Jesper Lund
2005-04-25 11:21 ` Andy Furniss

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.