Re: lug-bg: HTB configuration
- Subject: Re: lug-bg: HTB configuration
- From: mano@email.domain.hidden (Marian Popov)
- Date: Wed, 23 Jul 2003 10:03:11 +0300 (EEST)
<em class="quotelev1">> Çäðàñòè,
<em class="quotelev1">>
<em class="quotelev1">> ñàìî äâà âúïðîñà:
<em class="quotelev1">>
<em class="quotelev1">> 1. Ñúçäàë ëè ñè óïîìåíàòèÿ default êëàñ 300?
<em class="quotelev1">> 2. Êîãàòî ñòàðòèðàø ñêðèïòà ñè, íå òè ëè äàâà íÿêàêâè ãðåøêè?
Da syzdal sym go eto:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 300 r2q 1
tc class add dev eth0 parent 1: classid 1:2 htb rate 128Kbit ceil 128Kbit
burst 2k
tc class add dev eth0 parent 1:2 classid 1:12 htb rate 128Kbit burst 2k
prio 1tc qdisc add dev eth0 parent 1:12 handle 12 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
213.145.125.12 classid 1:12
tc class add dev eth0 parent 1:2 classid 1:300 htb rate 10Kbit burst 2k
tc qdisc add dev eth0 parent 1:300 handle 300 sfq perturb 10
tc class add dev eth0 parent 1:2 classid 1:6 htb rate 64Kbit ceil 128Kbit
burst 2k prio 1tc qdisc add dev eth0 parent 1:6 handle 6 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
213.145.125.6 classid 1:6
tc class add dev eth0 parent 1:2 classid 1:63 htb rate 128Kbit burst 2k
prio 1tc qdisc add dev eth0 parent 1:63 handle 63 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
213.145.125.63 classid 1:63
<em class="quotelev1">>
<em class="quotelev1">> Ïîíå ïî äóìèòå íà Ìàðòèí Äåâåðà îòíîñíî åäíà îò ïîñëåäíèòå âåðñèè íà
<em class="quotelev1">> htb â ÿäðîòî,
prio (ïðèîðèòåò) ìîæå äà çàåìà ñòîéíîñòè îò 1 äî 32 (èëè
<em class="quotelev1">> íåéäå òàì). Öåëòà íà òîçè
ïðèîðèòåò å äà îïðåäåëè êàêâî ïîëó÷àâàò äâà
<em class="quotelev1">> sibling êëàñà, ò.å. òàêèâà, êîèòî ñà
ïîä÷èíåíè íà åäèí è ñúù ïî-ãîðåí
<em class="quotelev1">> êëàñ è ñå áîðÿò çà íåãîâèÿ bandwidth.
<em class="quotelev1">> Hint: "set -x" ìíîãî ïîìàãà. Îñâåí òîâà òîçè burst 15ê, äåòî ñè ãî
<em class="quotelev1">> ñëîæèë, îçíà÷àâà,
÷å ïðè íàëè÷èå íà ñâîáîäåí bandwidth çà êðàòêî âðåìå
<em class="quotelev1">> äàäåíèÿò êëàñ ìîæå äà èçïîëçâà
ÎÙÅ ïðèáëèçèòåëíî 120 êèëîáèòà íà
<em class="quotelev1">> ìîìåíòè.
<em class="quotelev1">>
<em class="quotelev1">> À, è íàé-íàêðàÿ, òúé êàòî èìåííî òàì òè å ïðîáëåìà: çàùî, ïî äÿâîëèòå,
<em class="quotelev1">> ñè ñëîæèë
rate íà âñåêè îò leaf êëàñîâåòå ðàâåí íà òîçè íà ãîðíèÿ
<em class="quotelev1">> êëàñ? Ñëîæè íà âñåêè ïî 64Êáèòà,
êàòî èì îñòàâèø òàâàí 128Êáèòà.
Ne e tam rabotata.
Vyprosa e che ako imam 128k v root klas-a kak da moga
vytre da nablyskam 5 klienta na po 64k i vsichkite obshto
da ne nadhvyrliat 128k. Tova s RATE=64Kbit i CEIL=128Kbit
znam che shte raboti no samo v konkretnia sluchai, kogato
klientite sa 2. No kogato sa 5 ? Narochno sym im zadal
skorost po 128K za da vidia dal ishte se smestiat niakak si
v obsht kanal 128K no ne stava.
<p><p><em class="quotelev1">>
<em class="quotelev1">> Òúé äå, äàíî ñúì ïîìîãíàë.
<p><p><p>============================================================================
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
============================================================================
|