From: Rajesh Revuru <rajeshrevuru@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] bandwidth shaping problem...
Date: Mon, 04 Mar 2002 02:47:02 +0000 [thread overview]
Message-ID: <marc-lartc-101521012829472@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101535352231607@msgid-missing>
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/
next prev parent reply other threads:[~2002-03-04 2:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1980-01-03 23:20 [LARTC] bandwidth shaping problem Stef Coene
2002-03-04 2:47 ` Rajesh Revuru [this message]
2002-03-04 12:57 ` Stef Coene
2002-03-05 15:22 ` Vincent AE Scott
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-101521012829472@msgid-missing \
--to=rajeshrevuru@yahoo.com \
--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.