CZFree.Net Home Page Diskuzní Fóra CZFree.Net Archív Často Kladených Otázek Registrace Nových Členů Archív Odkazů Seznam Členů Fóra CZFree.Net Czech Node Map hosted @CZFree.net CZFree.Net WIKI
CZFree Network Portal vzkazy | ovládání | pokročilé hledání   
 

Odpovědět k Tématu 
CZFree.Net forum: Wireless community network CZFree.Net > Fórum > Unixové Systémy > traffic shaping :-(
Autor
Téma  < Předchozí Téma   Další Téma >
jendrys
Newbie

Registrován: 29.05.2006
Příspěvků: 22

traffic shaping :-( Příspěvek č. 1 

zdravim vsechny

chtel bych se zeptat co doporucujete na shapovani rychlosti popr co mam bych mel vylepsit.

jedna se mi shapovani rychlosti vyhrazenych kanalu (nesdileni).

$TC qdisc add dev eth0 root handle 1: htb default 0 > /dev/null 2>&1
$TC qdisc add dev eth1 root handle 1: htb default 0 > /dev/null 2>&1
$TC qdisc add dev eth2 root handle 1: htb default 0 > /dev/null 2>&1

$TC class add dev eth1 parent 1: classid 1:1001 htb rate 2048kbit
$TC class add dev eth0 parent 1: classid 1:1001 htb rate 512kbit
$TC qdisc add dev eth1 parent 1:1001 handle 1001: sfq
$TC qdisc add dev eth0 parent 1:1001 handle 1001: sfq
$TC filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.20.15/32 flowid 1:1001
$TC filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.20.15/32 flowid 1:1001

vytvarim samozrejme dalsi tridy jen ruznymi rychlostmi

Old Post 04.01.2008 v 19:23
jendrys je offline   Click Here to See the Profile for jendrys   Find more posts by jendrys   Click here to Send jendrys a Private Message       Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: traffic shaping :-( Příspěvek č. 2 

Pokud vytvaris dalsi tridy, tak byt tebou si udelam na qdisc tridu, ktere dam maximalni propustnost linky a na ni vesim ostatni tridy, kterym dam jejich rychlosti. Kdyz mas vyhrazenou linku, tak u tech povesenych trid nedas ceil (a nebo napsies stejnenj jak rate). Na koncovy tridy poves qdiscy jak to mas.

Old Post 04.01.2008 v 19:53
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
jendrys
Newbie

Registrován: 29.05.2006
Příspěvků: 22

Re: Re: traffic shaping :-( Příspěvek č. 3 

Old Post 04.01.2008 v 19:58
jendrys je offline   Click Here to See the Profile for jendrys   Find more posts by jendrys   Click here to Send jendrys a Private Message       Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: Re: Re: traffic shaping :-( Příspěvek č. 4 

tc qdisc add dev eth1 root handle 1:0 htb default 99

tc class add dev eth1 parent 1:0 classid 1:1 htb rate 5500kbit

tc class add dev eth1 parent 1:1 classid 1:11 htb rate 1794kbit
tc class add dev eth1 parent 1:1 classid 1:12 htb rate 1360kbit
tc class add dev eth1 parent 1:1 classid 1:13 htb rate 803kbit
tc class add dev eth1 parent 1:1 classid 1:14 htb rate 1306kbit
tc class add dev eth1 parent 1:1 classid 1:99 htb rate 32kbit

tc qdisc add dev eth1 parent 1:11 handle 11:0 sfq perturb 5
tc qdisc add dev eth1 parent 1:12 handle 12:0 sfq perturb 5
tc qdisc add dev eth1 parent 1:13 handle 13:0 sfq perturb 5
tc qdisc add dev eth1 parent 1:14 handle 14:0 sfq perturb 5
tc qdisc add dev eth1 parent 1:99 handle 99:0 sfq perturb 5

tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dst 192.168.20.15 flowid 1:11
tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dst 192.168.20.6 flowid 1:12
tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dst 192.168.20.5 flowid 1:13
tc filter add dev eth1 parent 1:0 protocol ip u32 match ip dst 192.168.20.3 flowid 1:14



tc qdisc add dev eth0 root handle 1:0 htb default 99

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 5500kbit

tc class add dev eth0 parent 1:1 classid 1:11 htb rate 578kbit
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 272kbit
tc class add dev eth0 parent 1:1 classid 1:13 htb rate 204kbit
tc class add dev eth0 parent 1:1 classid 1:14 htb rate 272kbit
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 32kbit

tc qdisc add dev eth0 parent 1:11 handle 11:0 sfq perturb 5
tc qdisc add dev eth0 parent 1:12 handle 12:0 sfq perturb 5
tc qdisc add dev eth0 parent 1:13 handle 13:0 sfq perturb 5
tc qdisc add dev eth0 parent 1:14 handle 14:0 sfq perturb 5
tc qdisc add dev eth0 parent 1:99 handle 99:0 sfq perturb 5

tc filter add dev eth0 parent 1:0 protocol ip u32 match ip dst 192.168.20.15 flowid 1:11
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip dst 192.168.20.6 flowid 1:12
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip dst 192.168.20.5 flowid 1:13
tc filter add dev eth0 parent 1:0 protocol ip u32 match ip dst 192.168.20.3 flowid 1:14

Thole by melo byt i s tvyma hodnotama, akorat nevim rpoc mas takovy zajimavy zrovna cisla. Za 5500kbit si dej realnou propusntost linky(pro net treba 5500, pro eth treba 100Mbit). Snad sem nekde neudelal chybu.

Old Post 04.01.2008 v 20:12
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Příspěvek č. 5 

A jeste doporucuji na zacatek scriptu dat vzdy

tc qdisc del dev eth0 root
tc qdisc del dev eth1 root

abys smazal vsechno co tam je vytvoreny a zacalo se vsechno nastavovat od zacatku

Old Post 04.01.2008 v 20:14
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
jendrys
Newbie

Registrován: 29.05.2006
Příspěvků: 22

Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 6 

Old Post 04.01.2008 v 20:26
jendrys je offline   Click Here to See the Profile for jendrys   Find more posts by jendrys   Click here to Send jendrys a Private Message       Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 7 

Old Post 04.01.2008 v 20:31
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
jendrys
Newbie

Registrován: 29.05.2006
Příspěvků: 22

Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 8 

Old Post 04.01.2008 v 20:53
jendrys je offline   Click Here to See the Profile for jendrys   Find more posts by jendrys   Click here to Send jendrys a Private Message       Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 9 

Old Post 04.01.2008 v 20:57
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
xchaos
Samozvany gubernator

Registrován: 13.05.2002
Příspěvků: 3362

Team Member: MOD

Re: Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 10 

__________________

Old Post 04.01.2008 v 21:39
xchaos je offline   Click Here to See the Profile for xchaos   Find more posts by xchaos   Click here to Send xchaos a Private Message   Click Here to Email xchaos   Visit xchaos's homepage!   Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: Re: Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 11 

Old Post 04.01.2008 v 21:43
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
xchaos
Samozvany gubernator

Registrován: 13.05.2002
Příspěvků: 3362

Team Member: MOD

Re: Re: Re: Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 12 

__________________

Old Post 04.01.2008 v 21:50
xchaos je offline   Click Here to See the Profile for xchaos   Find more posts by xchaos   Click here to Send xchaos a Private Message   Click Here to Email xchaos   Visit xchaos's homepage!   Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Lentil.CZ
Junior Member

Registrován: 18.03.2006
Příspěvků: 208

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: traffic shaping :-( Příspěvek č. 13 

Old Post 04.01.2008 v 21:56
Lentil.CZ je offline   Click Here to See the Profile for Lentil.CZ   Find more posts by Lentil.CZ   Click here to Send Lentil.CZ a Private Message   Click Here to Email Lentil.CZ     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Veškerý čas je GMT. Aktuální čas: 02:23.  Předcházející Téma   Další Téma
Odpovědět k Tématu
 
Zformátovat pro Tisk | Stáhnout Téma do Palma | Poslat Téma E-mailem | Odebírat tuto Diskuzi

Search this Thread:

 

CZFree.NET | Copyright ©MMII - MMXIV CZFree.NET | Kontaktujte Nás
Powered by: vBulletin - Copyright ©MM - MMII Jelsoft Enterprises Limited.
Founder: Deu / original scripting by: carlos (All High Seeds) / Node Monitor by: 8an
Additional Portal & Node Monitor Development by: oto, Zajsoft, Danny, Netdave
Hosted by: NFX.cz / FreeTel.cz