|
lug-bg: WRR i polzwaneto mu ?
- Subject: lug-bg: WRR i polzwaneto mu ?
- From: Ivan Filipov <vanka12@xxxxxxxxx>
- Date: Mon, 10 May 2004 05:12:53 -0700 (PDT)
Zdrawejte,
interesuwa me kak po princip se puska WRR. Ima malko
dokumentaciq i tam e mnogo oskydna informaciqta. W
primera kojto e daden e slojen dopylnitelen softuer za
izmerwane na parametrite na WRR kojto ne mi trqbwa.
Wyprosyt mi e : Moga li da izpolzwam WRR za da mi
namalqwa skorosta na hora koito teglqt golemi fajlowe
za dylgo wreme kato oswen towa da moga da gi ogranicha
do nqkakwa skorost ot celiqt kanal. Znam che WRR sam
si prawi prawilata i sam si zakacha IP ili MAC
adresite tam. No kak moga i moga li da gi ogranicwam
negowite prawila ili da sloja nqkakwi drugi prawila
koito da go prawqt towa. Probwah slednoto :
tc qdisc add dev eth1 root handle 1: htb default 0 r2q
120
tc class add dev eth1 parent 1: classid 1:0 htb rate
92Kbit ceil 500Kbit
tc class add dev eth1 parent 1:0 classid 1:2 htb rate
92Kbit ceil 500Kbit prio 1 - tuka e za drugi
tc class add dev eth1 parent 1:0 classid 1:5 htb rate
77Kbit ceil 500Kbit prio 5 - tuka e glawniqt za wrr-to
tc qdisc add dev eth1 parent 1:5 handle 8001: wrr dest
ip 4 0 - tuka se syzdawa samoto wrr za 4 pc-ta
tc qdisc change handle 8001 dev eth1 wrr qdisc
wmode1=3 wmode2=0 - tuka e widyt wrr
tc qdisc change handle 8001 dev eth1 wrr class
192.168.0.16 min1=0.1 max1=1.0 decr1=0.00000239857
incr1=0.005 weight1=1.0 min2=0.1 max2=1.0 decr2=0.1
incr2=0.1 weight2=0 - nastrojki na wrr-to koeto trqbwa
da e na opredeleno ip
tc qdisc add dev eth1 parent 8001:1 handle 12: htb -
tuka e wyrzano za wrr-to htb koeto inache si raboti po
tozi nachin
tc class add dev eth1 parent 12: classid 12:1 htb rate
8Kbit ceil 128Kbit prio 4 - tuka mu e celiqt kanal
tc class add dev eth1 classid 12:2 parent 12:1 htb
rate 8Kbit ceil 32Kbit prio 4 - tuka mu e int kanal
tc filter add dev eth1 protocol ip parent 1:0 prio 4
u32 match ip dst 192.168.0.
16/32 match ip tos 0x08 0xff classid 12:2
tc class add dev eth1 classid 12:102 parent 12:1 htb
rate 18Kbit ceil 128Kbit prio 7 - tuka mu e bg kanal
tc filter add dev eth1 protocol ip parent 1:0 prio 4
u32 match ip dst 192.168.0.
16/32 match ip tos 0x08 0xff classid 12:102
No prez towa ne minawa nikakyw trafik, nqkyde byrkam
ili ne se prawi taka ... no tc ne dawa nikakwa
greshka.
Ako nqkoj moje da pomogne shte mu byda mnogo
blagodaren.
S uwajenie, Ivan Filipov.
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
============================================================================
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
============================================================================
|
|
|