[ SlackList ] [ WkikiSlack ]



Re: HTB i gwarantowana szybkosc

From: Przemyslaw Smialy <xtc@lancaster.one.pl>
Date: Thu Oct 02 2003 - 20:53:44 CEST
[slacklist] Re: HTB i gwarantowana szybkosc

>
> Witam.
> Problem jest nastepujacy:
> Slackware 8.0 + kernel 2.4.21 + HTB = skonfigurowany nastepujaco:
> tc qdisc del root dev eth0
> tc qdisc add dev eth0 root handle 1:0 htb
> tc class add dev eth0 parent 1:0 classid 1:1 htb = rate 10mbit ceil 10mbit
> tc class add dev eth0 parent 1:1 classid 1:2 htb = rate 512kbit ceil 512kbit
> tc class add dev eth0 parent 1:1 classid 1:3 htb = rate 44800kbit ceil
44800kbit
> tc class add dev eth0 parent 1:2 classid 1:4 htb = rate 250kbit ceil 512kbit
> tc class add dev eth0 parent 1:2 classid 1:5 htb = rate 150kbit ceil 512kbit
> tc class add dev eth0 parent 1:2 classid 1:6 htb = rate 112kbit ceil 512kbit
> tc class add dev eth0 parent 1:4 classid 1:7 htb = rate 125kbit ceil 512kbit
> tc class add dev eth0 parent 1:4 classid 1:8 htb = rate 125kbit ceil 512kbit
> tc filter add dev eth0 protocol ip preference 1 = parent 1:0 u32 match ip
src 192.168.0.1 flowid 1:3
> tc filter add dev eth0 protocol ip preference 2 = parent 1:0 u32 match ip
dst 192.168.0.2 flowid 1:7
> tc filter add dev eth0 protocol ip preference 2 = parent 1:0 u32 match ip
dst 192.168.0.3 flowid 1:8
> tc filter add dev eth0 protocol ip preference 2 = parent 1:0 u32 match ip
dst 192.168.0.4 flowid 1:5
> tc filter add dev eth0 protocol ip preference 2 = parent 1:0 u32 match ip
dst 192.168.0.6 flowid 1:6
> tc qdisc add dev eth0 parent 1:3 handle 2:0 sfq = perturb 10
> tc qdisc add dev eth0 parent 1:5 handle 3:0 sfq = perturb 10
> tc qdisc add dev eth0 parent 1:6 handle 4:0 sfq = perturb 10
> tc qdisc add dev eth0 parent 1:7 handle 5:0 sfq = perturb 10
> tc qdisc add dev eth0 parent 1:8 handle 6:0 sfq = perturb 10
>
> Np. Koles zapuszcza DC i siorbie z max = predkoscia 512kbit w momencie gdy
drugi wchodzi np na ONET'a transfer dla kolesia (DC) = powinien spasc i
zagwarantowany transfer dla drugiego (ONET) powinien = zostac przydzielony.
Niby tak sie dzieje ale nie do konca poniewaz ONET = laduje sie dluugo napewno
nie tak jak powinien przy gwarantowanej predkosci = lecz tak jakby otwieral
ktos przez modem 56kbit. Ja sie pytam czy wszystko =
protokolu IP czy tez powinienem wstawic jakies =
> To tylko jeden przyklad. Nastepny:
> sciagam przez DownloadAccelerator plik z max = predkoscia, w czasie gdy
drugi koles proboje wejsc na strone lecz zanim serwer = np. ONET'u zareaguje
minie ladne pare-parenascie sekund tak jakby druki = koles prawie nic nie
dostawal
>
> Czy mozna cos na to poradzic?
>
>
> Pozdrawiam,
> RyEk
>
 Coś tu chyba przekombinowałes. To ma =
łącza?
tyle było o tym artykułów ze już nie będę = pisał tylko podam link do fajnego
pdfa http://linio.terramail.pl/htb.= pdf zaopatrz się w tego pdfa i zrób
wszystko tak jak tam jest napisane.
Jeśli masz DSLa to zadbaj żeby łącze = wyjściowe nie było całkowicie zapchane
bo z autopsji wiem ze wtedy transfer wejściowy = spada do zera. DC nadaje na
portach 411 i 412 można zamarkować i oraniczyć = transfer.
Zupełnie nie kumam co chciałeś zrobić przy = pomocy tych regułek dla mnie są
niejasne.
Pozdrawiam.

Received on Sat Feb 21 03:43:58 2004
This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014