All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] bandwidth shaping problem...
@ 1980-01-03 23:20 Stef Coene
  2002-03-04  2:47 ` Rajesh Revuru
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stef Coene @ 1980-01-03 23:20 UTC (permalink / raw)
  To: lartc

On Tuesday 05 March 2002 16:22, you wrote:
> Stef Coene(stef.coene@docum.org)@Mon, Mar 04, 2002 at 01:57:50PM +0100:
> > On Monday 04 March 2002 03:47, Rajesh Revuru wrote:
> > > ipchains -N acc_0
> > > ipchains -N acc_1
> > > ipchains -A output -j acc_0 -p tcp -m 1
> > > ipchains -A output -j acc_1 -p tcp -m 1
> >
> > Mhh,  I think I know where these commands are from :)
>
> shouldnt that last ipchains command be:
>  ipchains -A output -j acc_1 -p udp -m 2
Yep :)  At least if you want to match udp.

Stef

-- 

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* [LARTC] bandwidth shaping problem...
  1980-01-03 23:20 [LARTC] bandwidth shaping problem Stef Coene
@ 2002-03-04  2:47 ` Rajesh Revuru
  2002-03-04 12:57 ` Stef Coene
  2002-03-05 15:22 ` Vincent AE Scott
  2 siblings, 0 replies; 4+ messages in thread
From: Rajesh Revuru @ 2002-03-04  2:47 UTC (permalink / raw)
  To: lartc


Hi,
This is a simple and straight configuration,
but iam not able to acheive what i wanted to test.

Please help with the script.



|--------|     |---------|    |--------|     |-------|
| src    |-----| router1 |----|router2 |-----|dest   |
|--------|     |---------|    |--------|     |-------|

Test i wanted to do:

Send(using traffic generator) 
TCP traffic 5mb
UDP traffic 3mb.

At the destination
To get
TCP traffic 3mb.
UDP traffic 1mb.



Iam trying to apply the traffic shaping at the eth1 of
the router 2.

I wanted to create two classes and of rate=3mb for tcp
1mb for udp.I am trying to use the filter with fw
options.

**************** script start*****************

tc qdisc add dev eth1 root 10: cbq bandwidth 100mb 
avpkt 1000
tc class add parent 10: classid 10:1 cbq bandwidth
100mb rate 8mb bounded.
tc qdisc add dev eth1 parent 10:1 handle 20: cbq
bandwidth 8mb avpkt 1000

tc class add dev eth1 parent20: classid 20:1 cbq
bandwidth 8mb rate 5mb prio 3
tc class add dev eth1 parent20: classid 20:2 cbq
bandwidth 8mb rate 3mb prio 5


tc filter add parent 20:protocol ip prio 3 handle 1 fw
classid 20:1
tc filter add parent 20:protocol ip prio 3 handle 2 fw
classid 20:2


ipchains -N acc_0
ipchains -N acc_1
ipchains -A output -j acc_0 -p tcp -m 1
ipchains -A output -j acc_1 -p tcp -m 1

********************end script **************




I guess there something wrong with the filtering and
ipchains section...

Can anyone please suggest me to fix the problem

Thanks
RR


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] bandwidth shaping problem...
  1980-01-03 23:20 [LARTC] bandwidth shaping problem Stef Coene
  2002-03-04  2:47 ` Rajesh Revuru
@ 2002-03-04 12:57 ` Stef Coene
  2002-03-05 15:22 ` Vincent AE Scott
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-03-04 12:57 UTC (permalink / raw)
  To: lartc

On Monday 04 March 2002 03:47, Rajesh Revuru wrote:
> Hi,
> This is a simple and straight configuration,
> but iam not able to acheive what i wanted to test.
>
> Please help with the script.
>
> |--------|     |---------|    |--------|     |-------|
> | src    |-----| router1 |----|router2 |-----|dest   |
> |--------|     |---------|    |--------|     |-------|
>
> Test i wanted to do:
>
> Send(using traffic generator)
> TCP traffic 5mb
> UDP traffic 3mb.
>
> At the destination
> To get
> TCP traffic 3mb.
> UDP traffic 1mb.
>
>
>
> Iam trying to apply the traffic shaping at the eth1 of
> the router 2.
>
> I wanted to create two classes and of rate=3mb for tcp
> 1mb for udp.I am trying to use the filter with fw
> options.
You attached a cbq qdisc to class, bad idea :)

I hope this script does what you want to do (it gives 3 mb to tcp and 1 mb to 
udp.  Both udp and tcp can get 4 mb if there is no other traffic) :

tc qdisc add dev eth1 root 10: cbq bandwidth 100mb
avpkt 1000
tc class add parent 10: classid 10:1 cbq bandwidth
100mb rate 4mb bounded.
tc class add dev eth1 parent 10:1 classid 10:10 cbq
bandwidth 100mb rate 3mb prio 3
tc class add dev eth1 parent 10:1 classid 10:20 cbq
bandwidth 100mb rate 1mb prio 5

tc filter add parent 10: protocol ip prio 3 handle 1 fw
classid 10:10
tc filter add parent 10: protocol ip prio 3 handle 2 fw
classid 10:20

> ipchains -N acc_0
> ipchains -N acc_1
> ipchains -A output -j acc_0 -p tcp -m 1
> ipchains -A output -j acc_1 -p tcp -m 1
Mhh,  I think I know where these commands are from :)

Stef

--

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"

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

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

* Re: [LARTC] bandwidth shaping problem...
  1980-01-03 23:20 [LARTC] bandwidth shaping problem Stef Coene
  2002-03-04  2:47 ` Rajesh Revuru
  2002-03-04 12:57 ` Stef Coene
@ 2002-03-05 15:22 ` Vincent AE Scott
  2 siblings, 0 replies; 4+ messages in thread
From: Vincent AE Scott @ 2002-03-05 15:22 UTC (permalink / raw)
  To: lartc

Stef Coene(stef.coene@docum.org)@Mon, Mar 04, 2002 at 01:57:50PM +0100:
> On Monday 04 March 2002 03:47, Rajesh Revuru wrote:
> 
> > ipchains -N acc_0
> > ipchains -N acc_1
> > ipchains -A output -j acc_0 -p tcp -m 1
> > ipchains -A output -j acc_1 -p tcp -m 1
> Mhh,  I think I know where these commands are from :)


shouldnt that last ipchains command be:
 ipchains -A output -j acc_1 -p udp -m 2


-- 
PGP key:  http://codex.net/pgp/pgp.asc

 Physics is not a religion. 
 If it were, we'd have a much easier time raising money
 -- Leon Lederman

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

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

end of thread, other threads:[~2002-03-05 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1980-01-03 23:20 [LARTC] bandwidth shaping problem Stef Coene
2002-03-04  2:47 ` Rajesh Revuru
2002-03-04 12:57 ` Stef Coene
2002-03-05 15:22 ` Vincent AE Scott

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.