Re: lug-bg: HTB configuration
- Subject: Re: lug-bg: HTB configuration
- From: mano@email.domain.hidden (Marian Popov)
- Date: Tue, 22 Jul 2003 00:44:42 +0200
<em class="quotelev1">> Bez da ima slozen priorited e taka.
<em class="quotelev1">> I izprati _FAILA_ sas tc comandite, koito izpalniavash, a ne nekvi
konfove.
<em class="quotelev1">> http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm - e tuka. opciata e
"prio"
<em class="quotelev1">> tc class add dev eth0 parent 1:2 classid 1:10 htb rate 50kbps ceil 100kbps
prio 1
<em class="quotelev1">>
!^!
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
<p>Eto go sluchaia.
Znachi problema sega e che se opitvam da zadam v edin kanal 128kbit da ima
dvama
potrebiteli na po 128kbit i dvamata. Kogato samo edinia polzva liniata toi
shte ia zaema
cialata a kogato i drugia se vkliuchi triabva da poluchat po 64kbit
estestveno ako i dvamata
tegliat fail. Tuka ne sym zadal ceil no probvah i s nego bez rezultat.
Rezultata ot taia konfiguracia e che i dvamata klienta imat po 128K
ednovremenno,
koeto ne me ustroiva. Mnogo se chudia zashto stava taka che paketite se
match-vat
samo na root klas-a :
### eth0: queueing disciplines
qdisc sfq 63: quantum 1514b perturb 10sec
Sent 963885 bytes 657 pkts (dropped 0, overlimits 0)
qdisc sfq 300: quantum 1514b perturb 10sec
Sent 18227 bytes 195 pkts (dropped 0, overlimits 0)
qdisc sfq 12: quantum 1514b perturb 10sec
Sent 2929244 bytes 2006 pkts (dropped 0, overlimits 0)
qdisc htb 1: r2q 1 default 300 direct_packets_stat 0
Sent 3911356 bytes 2858 pkts (dropped 0, overlimits 3906)
<p>### eth0: traffic classes
class htb 1:2 root rate 128Kbit ceil 128Kbit burst 15Kb cburst 1762b
Sent 3911356 bytes 2858 pkts (dropped 0, overlimits 0)
rate 43bps
lended: 0 borrowed: 0 giants: 0
tokens: 761201 ctokens: 81350
class htb 1:12 parent 1:2 leaf 12: prio 0 rate 128Kbit ceil 128Kbit burst
15Kb cburst 1762b
Sent 2929244 bytes 2006 pkts (dropped 0, overlimits 0)
lended: 2006 borrowed: 0 giants: 0
tokens: 765601 ctokens: 85750
class htb 1:300 parent 1:2 leaf 300: prio 0 rate 10Kbit ceil 10Kbit burst
12Kb cburst 1611b
Sent 18227 bytes 195 pkts (dropped 0, overlimits 0)
rate 63bps
lended: 195 borrowed: 0 giants: 0
tokens: 7696384 ctokens: 863744
class htb 1:63 parent 1:2 leaf 63: prio 0 rate 128Kbit ceil 128Kbit burst
15Kb cburst 1762b
Sent 963885 bytes 657 pkts (dropped 0, overlimits 0)
lended: 657 borrowed: 0 giants: 0
tokens: 529551 ctokens: -150300
<p>Kakto se vijda dvamata klienta niamat nito 1 dropped ili overlimit paket.
Kajete mi kak da gi napravia taka che da si share-vat obsht traffik.
Blagodaria.
--
Marian Popov
mano_at_pazardjik.com.NOSPAM
--
============================================================================
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
============================================================================
|