From: ajay@movingdelhi.org
To: lartc@vger.kernel.org
Subject: [LARTC] (no subject)
Date: Thu, 21 Nov 2002 12:41:36 +0000 [thread overview]
Message-ID: <marc-lartc-103788215914840@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216902@msgid-missing>
I m setting a linux gateway cum router for bandwith management of my internal
network to share a link of 128kbps. I use CBQ and SFQ for this perpose. I
want 2 control bandwidth peruser basis (IP basis). According 2 my script i m
able 2 control the bandwidth. But i whenever i open a new window for surfing
or downloading it comes up with a burst. which is equal 2 allocated
bandwidth. and when ever i close the download then second window will not
aquire total bandwidth allocated immediatily.. It takes time. what is the
wrong thing in my script. Some one guide me.
the script is as under.....
################My Configuratin Script ######################
##BandCont.sh
#!/bin/sh
#############Path of Tc Command###########
tc=/sbin/tc
##########Setting few Arguments#########
t1\x100Mbit # Link BandWidth & Land Bandwidth
w\x10Mbit # weighting of your Link & Lan (Adjustment)
NIC_EXT=eth0 # interface (External)
NIC_INT=eth1 # interface (Internal)
############Creating Pool Bandwidth##########
p1\x128Kbit #Pool Size
###########User Bandwidth Under Pool########
t2\x128Kbit # 32Kbps Pool
w2\x12.8Kbit # weighting of 32Kbps Pool
######Creating Main Disc for Bandwidth Management##########
### first things first. delete the old rules if any.##############
$tc qdisc del root dev $NIC_EXT
$tc qdisc del root dev $NIC_INT
#######Creating New Rule & Main Bandwidth Disc########
$tc qdisc add dev $NIC_EXT root handle 1:0 cbq bandwidth 100Mbit avpkt 1000
cell 8
$tc qdisc add dev $NIC_INT root handle 2:0 cbq bandwidth 100Mbit avpkt 1000
cell 8
############Creating Main Disc Base################
$tc class add dev $NIC_EXT parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate
$t1 weight $w prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
$tc class add dev $NIC_INT parent 2:0 classid 2:1 cbq bandwidth 100Mbit rate
$t1 weight $w prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
####################Creating Sub Classes For BandWidth
Restrictions##############
$tc class add dev $NIC_EXT parent 1:1 classid 1:2 cbq bandwidth $p1 rate $t2
weight $w2 prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
$tc qdisc add dev $NIC_EXT parent 1:2 handle 20: sfq
$tc class add dev $NIC_INT parent 2:1 classid 2:2 cbq bandwidth $p1 rate $t2
weight $w2 prio 8 allot 1514 cell 8 maxburst 200 avpkt 100000 bounded
$tc qdisc add dev $NIC_INT parent 2:2 handle 20: sfq
####################Creating Sub Sub Classes For BandWidth
Restrictions##############
$tc filter add dev $NIC_INT protocol ip parent 2:0 prio 8 u32 match ip src
192.168.0.4 flowid 2:2
$tc filter add dev $NIC_INT protocol ip parent 2:0 prio 8 u32 match ip dst
192.168.0.4 flowid 2:2
$tc filter add dev $NIC_EXT protocol ip parent 2:0 prio 8 u32 match ip src
192.168.0.4 flowid 1:2
$tc filter add dev $NIC_EXT protocol ip parent 2:0 prio 8 u32 match ip dst
192.168.0.4 flowid 1:2
I m thankful for the hints .....
Thanx in Advance
--------------------------------------------------------------------------------
/\ _ _ | Proud to be an Indian
/__\ | | India Is Great
/ \ [ __| |
--------------------------------------------------------------------------------
_______________________________________________
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-11-21 12:41 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <marc-lartc-98373938216902@msgid-missing>
2000-12-06 0:19 ` [LARTC] (no subject) sun
2001-04-06 19:37 ` siddhardha garige
2001-04-06 19:46 ` linux
2001-07-03 17:22 ` Jose Miguel Varet
2002-03-13 14:16 ` Rajesh Revuru
2002-03-29 8:19 ` Vahan Grigoryan
2002-03-29 11:03 ` Vahan Grigoryan
2002-03-29 11:15 ` martin f krafft
2002-04-19 12:42 ` Emil Terziev
2002-04-19 12:56 ` Alex Bennee
2002-04-20 9:18 ` Waters
2002-04-20 13:10 ` Mihai RUSU
2002-04-20 19:56 ` Stef Coene
2002-04-20 22:07 ` Re[2]: " Waters
2002-04-20 22:44 ` pof
2002-05-03 9:09 ` Nandan Kaushik
2002-05-03 10:21 ` Stef Coene
2002-05-03 14:52 ` Adrian Chung
2002-05-03 16:38 ` Lei Bao
2002-05-18 15:21 ` William L. Thomson Jr.
2002-05-19 18:05 ` Martin Devera
2002-05-23 9:38 ` Karasik, Vitaly
2002-05-23 9:43 ` Alexey Talikov
2002-06-06 11:58 ` alouini khalif
2002-07-25 2:31 ` Alfred Quah
2002-07-25 5:52 ` Stef Coene
2002-08-18 11:28 ` noroozi
2002-08-18 13:40 ` Eric Leblond
2002-09-30 8:31 ` Fred Thep
2002-10-11 18:40 ` Albuquerque, Marcelo M
2002-10-11 19:36 ` Stef Coene
2002-10-11 21:17 ` Albuquerque, Marcelo M
2002-10-15 18:40 ` Stef Coene
2002-10-25 9:46 ` Andreani Luca
2002-10-25 11:15 ` raptor
2002-10-26 23:20 ` zoop
2002-11-16 21:54 ` Waters
2002-11-16 22:18 ` Stef Coene
2002-11-17 6:11 ` Ashok N N
2002-11-21 12:41 ` ajay [this message]
2003-02-26 8:02 ` Kjell Chris Flor
2003-03-02 0:54 ` Martin A. Brown
2003-03-02 10:51 ` Kjell Chris Flor
2003-03-08 20:16 ` Stef Coene
2003-03-21 22:38 ` Kjell Chris. Flor
2003-03-21 22:54 ` Nickola Kolev
2003-03-22 3:03 ` Kjell Chris. Flor
2003-03-22 10:22 ` Nickola Kolev
2003-04-06 18:19 ` GoMi .
2003-04-18 17:21 ` rio
2003-04-18 19:19 ` Stef Coene
2003-04-21 19:30 ` larry lefthook
2003-04-21 20:24 ` Martin A. Brown
2003-06-05 10:33 ` Alejandro Sager
2003-07-30 17:04 ` Daniel Ardelian
2003-07-30 19:02 ` Stef Coene
2003-09-01 18:05 ` Gabriel Corcodel
2003-09-01 19:10 ` Stef Coene
2003-09-04 2:20 ` Randolph Carter
2003-09-25 6:37 ` Senthil Nathan V
2003-10-23 10:47 ` Edmund Turner
2003-10-27 8:08 ` Edmund Turner
2003-10-30 5:51 ` Edmund Turner
2003-10-30 10:12 ` Stef Coene
2003-10-31 5:10 ` Edmund Turner
2003-11-27 17:08 ` Emmanuel
2004-01-12 18:14 ` james jones
2004-02-26 22:53 ` Georgi Moskov
2004-03-06 18:44 ` Sam
2004-04-07 14:12 ` Ibrahim Cherri
2004-04-07 23:02 ` Roy
2004-05-26 13:21 ` Amita Maheshwari
2004-07-19 9:19 ` Anton Glinkov
2004-07-19 12:04 ` Ed Wildgoose
2004-08-16 8:29 ` Alin Nonosel
2004-09-07 14:22 ` james jones
2004-11-15 11:41 ` tepesu
2005-01-03 3:03 ` Oswin Budiman
2005-02-12 18:57 ` naveen andrew
2005-04-26 15:46 ` Stanislav Nedelchev
2005-07-12 9:34 ` Supratim Mitra
2005-10-10 3:13 ` KOMUNIKA SYSTEM
2005-10-15 16:59 ` KOMUNIKA SYSTEM
2005-10-15 20:31 ` Marek Kierdelewicz
2005-10-20 22:21 ` comp.techs
2006-02-20 13:11 ` Greg Scott
2007-03-28 6:27 ` Leigh Sharpe
2007-09-29 8:59 ` Anirudh Gottumukkala)me in Google Accounts (Anirudh Gottumukkala
2002-10-12 16:28 [LARTC] <no subject> Samuel Kerschbaumer
2002-10-12 16:55 ` 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-103788215914840@msgid-missing \
--to=ajay@movingdelhi.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