|
Re: lug-bg: HTB shaper
- Subject: Re: lug-bg: HTB shaper
- From: radoslav_kolev@xxxxxxxxxxx (Radoslav Kolev)
- Date: Thu, 16 May 2002 14:18:31 +0300
Atanas Vlasakiev wrote:
>Zdraveite grupa!
>Molq nqkoi koito se e zanimaval sas HTB shaper i e naqsno da helpne..
>Pravq neshto ot roda no imam greshki i ne sym mnogo naqsno..
>
># Queue discipline
>tc qdisc add dev eth0 root handle 1: htb default 12
># ROOT class
>tc class add dev eth0 parent 1: classid 1:1 htb rate 256kbps ceil 256kbps
># classes
>tc class add dev eth0 parent 1:5 classid 1:10 htb rate 100kbps ceil
>256kbps
>tc class add dev eth0 parent 1:5 classid 1:11 htb rate 140kbps ceil
>256kbps
>tc class add dev eth0 parent 1:5 classid 1:12 htb rate 16kbps ceil 256kbps
>tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \ match ip src
>195.24.5
>7.1 match ip dport 80 0xffff flowid 1:10
>tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \ match ip src
>193.110.
>223.3 flowid 1:11
>
>tc qdisc add dev eth0 parent 1:10 handle 20: pfifo limit 5
>tc qdisc add dev eth0 parent 1:11 handle 30: pfifo limit 5
>tc qdisc add dev eth0 parent 1:12 handle 40: sfq perturb 10
>
>Daite mi primer kak shte izglejda shapera za localno ip 192.168.1.5
>Vzimam ot 2 mesta internet i iskam kogato pochna da teglq ot free.mnet.bg
>da me puska s kolkoto moje ili primerno 20k nqma zna4enie
>syshto do cs.varna.net da e pak byrzo
>kato se browsa da e byrzo no ako se pochne da se tegli ot nqkade drygade
>t.e ako ne e ykazano vav shaper-a dokolkoto chetox tova e default
>praviloto skorosta da pada na 12kbps.
>Blagodarq vi predvaritelno..
>
>-=Atanas Vlasakiev=-
> ICQ # 25942226
> GSM 088 940233
>__________________________________
>12MB-POP3-WAP-SMS---TOBA-E-mail.bG
>----------------------------------
>
>" Ako uckame u Bue agpec B mail.bg
>ugeme myk: http://www.mail.bg/new/ "
>
>============================================================================
>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
>============================================================================
>
Zdrasti!
Znachi v po starite versii na htb ako paketite ne se klasificirat v
nikoj klas
to prosto gi dropvashe, v posledstvie minavaha no monooogo bavno. V
momenta ima
dobavena default keyword s koiato controlirash kade otivat neklasificiranite
paketi i edna fifo opashka kam koiato moje da se obrashtash s 0 kadeto
moje da
se nasochat za da minavat na full speed.
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps burst 2k
taka vsichki uncalssified otivat v 1:12
no ako promenish pravia red na
tc qdisc add dev eth0 root handle 1: htb default 0
vsichko paketite koito ne sa klasificirani v niakoi ot klasovete shte minavat bez zabaviane
Preporachvam ti da izpolzvash ipchains/tables za da markirash paketite i
da izpolzvash
fw_mark classifier. Shte markirash samo paketite koito iskash da
shapevash, a tesi
sas source ili dest free.mnet.bg i cs.mnet.bg kato ne gi markirash ili
gi markirash, no
niama filter za tozi mark shte popadnat v default klasa, i ako tozi
default clas ti e
fifo opashkata shte minat na full speed.
Rado
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|