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 > tc htb + prio
Autor
Téma  < Předchozí Téma   Další Téma >
Lentil.CZ
Junior Member

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

tc htb + prio Příspěvek č. 1 

Cau, mam script

$TC qdisc del dev eth0 root
$TC qdisc add dev eth0 root handle 1:0 htb default 99 r2q 5

$TC class add dev eth0 parent 1:0 classid 1:1 htb rate 1Mbit prio 3

$TC class add dev eth0 parent 1:0 classid 1:2 htb rate 6Mbit prio 3
$TC class add dev eth0 parent 1:2 classid 1:21 htb rate 200kbit ceil 6Mbit prio 3
$TC class add dev eth0 parent 1:21 classid 1:211 htb rate 100kbit ceil 6Mbit prio 2
$TC class add dev eth0 parent 1:21 classid 1:212 htb rate 100kbit ceil 6Mbit prio 3
$TC class add dev eth0 parent 1:2 classid 1:22 htb rate 200kbit ceil 6Mbit prio 3

$TC class add dev eth0 parent 1:0 classid 1:99 htb rate 512kbit prio 3



$TC filter add dev eth0 parent 1:0 protocol ip handle 1 fw flowid 1:1

$TC filter add dev eth0 parent 1:0 protocol ip handle 2 fw flowid 1:2
$TC filter add dev eth0 parent 1:0 protocol ip handle 21 fw flowid 1:21
$TC filter add dev eth0 parent 1:0 protocol ip handle 211 fw flowid 1:211
$TC filter add dev eth0 parent 1:0 protocol ip handle 212 fw flowid 1:212

$TC filter add dev eth0 parent 1:0 protocol ip handle 22 fw flowid 1:22


a jak udelat, kdyz se stahuje v tridam 1:211 + 1:212, tak to to jelo cca 3Mbity(1:211 2.8 a 1:212 200k) a tride 1:22 taky 3? Ted se to chova tak, ze to tride 1:211 jede 5.8 a tride 1:22 200k? Kdyz dam rychlost tridy 1:211 na 100k, tak to pak jede 2x pomaleji nez trida 1:22. Proc se to mezi sebou ovlivnuje? Spatne vytvoreny filtery a nebo 1:22 musi mit qdisc na kterym je pak dalsi class?

Old Post 28.09.2009 v 18:18
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í  
hapi
Junior ISP

Registrován: 25.01.2004
Příspěvků: 498

Příspěvek č. 2 

viděl bych to tak, že bys měl dát na 1:21 a 1:22 rate na 3Mbit. Tim by jsi měl zaručenou tu polovinu.

Možná ti do toho zasahuje ta priorita.

__________________

ja to nebyl

Old Post 28.09.2009 v 19:41
hapi je offline   Click Here to See the Profile for hapi   Find more posts by hapi   Click here to Send hapi a Private Message   Click Here to Email hapi     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 č. 3 

Old Post 28.09.2009 v 20:09
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í  
hapi
Junior ISP

Registrován: 25.01.2004
Příspěvků: 498

Příspěvek č. 4 

to zůstane zachovaný, jenom HTBčku řekneš že prostě tady bude při zátěži minimálně polovina a tady taky ale pomocí ceil se to při nevyužití jedný třídy překlopí do druhý.

__________________

ja to nebyl

Old Post 28.09.2009 v 20:13
hapi je offline   Click Here to See the Profile for hapi   Find more posts by hapi   Click here to Send hapi a Private Message   Click Here to Email hapi     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 

Old Post 28.09.2009 v 20:16
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í  
pihhan
Member

Registrován: 12.02.2003
Příspěvků: 493

Příspěvek č. 6 

Viděl bych problém v tom, že používáš přímo 1:21 třídu. Pokud je mi známo, filtrovat by se mělo pouze na listy, to znamená ty třídy, ze kterých už další nevedou. 1:211 a 1:212 jsou v pořádku, 1:21 bys ve filtru vůbec neměl použít. Taky tam máš příliš mnoho větví přímo z 1:0, přitom z kořene optimálně vede jenom jedna třída, ze které se potom sdílí linka.

__________________

tisnov.czf

Old Post 29.09.2009 v 00:05
pihhan je offline   Click Here to See the Profile for pihhan   Find more posts by pihhan   Click here to Send pihhan a Private Message   Click Here to Email pihhan   Visit pihhan's homepage!   Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
hapi
Junior ISP

Registrován: 25.01.2004
Příspěvků: 498

Příspěvek č. 7 

pravda, toho jsem si nevšimnul.

__________________

ja to nebyl

Old Post 29.09.2009 v 06:49
hapi je offline   Click Here to See the Profile for hapi   Find more posts by hapi   Click here to Send hapi a Private Message   Click Here to Email hapi     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 č. 8 

Old Post 29.09.2009 v 17:29
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í  
hapi
Junior ISP

Registrován: 25.01.2004
Příspěvků: 498

Příspěvek č. 9 

aha, už mi to docvalko. Pokud se nemílim tak poměr pujčení je dělanej podle poměru rate a tedy jestli rate jedný třídy má 2x víc než druhý, tak to udělá přesně to co píšeš i když je každá v jiný urovni stromu.

__________________

ja to nebyl

Old Post 29.09.2009 v 18:21
hapi je offline   Click Here to See the Profile for hapi   Find more posts by hapi   Click here to Send hapi a Private Message   Click Here to Email hapi     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 č. 10 

Old Post 29.09.2009 v 19:42
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í  
hapi
Junior ISP

Registrován: 25.01.2004
Příspěvků: 498

Příspěvek č. 11 

__________________

ja to nebyl

Old Post 29.09.2009 v 19:58
hapi je offline   Click Here to See the Profile for hapi   Find more posts by hapi   Click here to Send hapi a Private Message   Click Here to Email hapi     Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
ludvik
Senior Member

Registrován: 04.12.2002
Příspěvků: 543

Re: tc htb + prio Příspěvek č. 12 

Old Post 29.09.2009 v 23:00
ludvik je offline   Click Here to See the Profile for ludvik   Find more posts by ludvik   Click here to Send ludvik a Private Message   Click Here to Email ludvik   Visit ludvik'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: tc htb + prio Příspěvek č. 13 

Old Post 30.09.2009 v 06:34
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í  
ludvik
Senior Member

Registrován: 04.12.2002
Příspěvků: 543

Re: Re: Re: tc htb + prio Příspěvek č. 14 

Old Post 30.09.2009 v 08:14
ludvik je offline   Click Here to See the Profile for ludvik   Find more posts by ludvik   Click here to Send ludvik a Private Message   Click Here to Email ludvik   Visit ludvik's homepage!   Reference obchodniku Upravit/Smazat Příspěvek   Odpovědět s Citací  
Veškerý čas je GMT. Aktuální čas: 13:32.  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