Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: HTB shaper


  • Subject: Re: lug-bg: HTB shaper
  • From: nikky@xxxxxxx (Nickola Kolev)
  • Date: Thu, 16 May 2002 14:45:34 +0300 (EEST)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 16 May 2002, Atanas Vlasakiev wrote:

> # 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

à òóê êúäå òè å parent 1:5? êúäå ñè ãî îïèñàë?

> 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..
>

Íàïðèìåð áè ìîãúë äà íàïðàâèø òàêà:

# Queue discipline
tc qdisc add dev eth0 root handle 1: htb default 12
# ROOT class - àêî íå îïèøåø ceil, òîé å ðàâåí íà rate
tc class add dev eth0 parent 1: classid 1:1 htb rate 256kbps

# classes
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 100kbps ceil 256kbps
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 140kbps ceil 256kbps
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 16kbps ceil 256kbps

# â ñëó÷àÿ ïîðò 80 òè ñå ÿâÿâà source
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
match ip src 195.24.57.23 match ip sport 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: sfq quantum 1514b perturb 10
tc qdisc add dev eth0 parent 1:12 handle 30: sfq quantum 1514b perturb 10
tc qdisc add dev eth0 parent 1:12 handle 40: sfq quantum 1514b perturb 10

Âñè÷êî íàé-õóáàâî,
Íèêîëà
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE845vjo397UfM+hv0RAhdIAJ0XqU6O6GP+8gtUsnN0bNN0TckeJgCfR6FK
Ch3mCLRlfRSy0lYY3JPIdmg=
=3Y5W
-----END PGP SIGNATURE-----

============================================================================
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
============================================================================


  • Относно:

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.