Re: lug-bg: HTB configuration
- Subject: Re: lug-bg: HTB configuration
- From: nikky@email.domain.hidden (Nickola Kolev)
- Date: Wed, 23 Jul 2003 01:29:43 +0300
Çäðàñòè,
ñàìî äâà âúïðîñà:
1. Ñúçäàë ëè ñè óïîìåíàòèÿ default êëàñ 300?
2. Êîãàòî ñòàðòèðàø ñêðèïòà ñè, íå òè ëè äàâà íÿêàêâè ãðåøêè?
Ïîíå ïî äóìèòå íà Ìàðòèí Äåâåðà îòíîñíî åäíà îò ïîñëåäíèòå âåðñèè íà htb â ÿäðîòî,
prio (ïðèîðèòåò) ìîæå äà çàåìà ñòîéíîñòè îò 1 äî 32 (èëè íåéäå òàì). Öåëòà íà òîçè
ïðèîðèòåò å äà îïðåäåëè êàêâî ïîëó÷àâàò äâà sibling êëàñà, ò.å. òàêèâà, êîèòî ñà
ïîä÷èíåíè íà åäèí è ñúù ïî-ãîðåí êëàñ è ñå áîðÿò çà íåãîâèÿ bandwidth.
Hint: "set -x" ìíîãî ïîìàãà. Îñâåí òîâà òîçè burst 15ê, äåòî ñè ãî ñëîæèë, îçíà÷àâà,
÷å ïðè íàëè÷èå íà ñâîáîäåí bandwidth çà êðàòêî âðåìå äàäåíèÿò êëàñ ìîæå äà èçïîëçâà
ÎÙÅ ïðèáëèçèòåëíî 120 êèëîáèòà íà ìîìåíòè.
À, è íàé-íàêðàÿ, òúé êàòî èìåííî òàì òè å ïðîáëåìà: çàùî, ïî äÿâîëèòå, ñè ñëîæèë
rate íà âñåêè îò leaf êëàñîâåòå ðàâåí íà òîçè íà ãîðíèÿ êëàñ? Ñëîæè íà âñåêè ïî 64Êáèòà,
êàòî èì îñòàâèø òàâàí 128Êáèòà.
Òúé äå, äàíî ñúì ïîìîãíàë.
[ êðúö ]
: 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 15k
:
: tc class add dev eth0 parent 1:2 classid 1:12 htb rate 128Kbit burst 15k
: tc 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:63 htb rate 128Kbit burst 15k
: tc 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
[ îùå ïîâå÷å êðúö ]
--
_____________________________________________________________
"Engineering does not require science. Science helps a lot but
people built perfectly good brick walls long before they knew
why cement works." -Alan Cox
============================================================================
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
============================================================================
<hr> Attachment:
part
Description: PGP signature
|