Hello Ciprian, Ai smp pe mashina care nu merge? :)
Gushterul Sunday, May 19, 2002, 7:15:21 AM, you wrote: CN> ca statistica: ce kernel, ver htb, distributie linux, daca mai ai alte CN> patchuri CN> ca eu am doua masini si pe una merge si pe una nu, si nenea devik nici CN> el nu stie de ce CN> C CN> Iulian Mihaescu wrote: >> GATA! Am rezolvat! >> >> HTB-ul is the best! Asa este cum mi s-a spus. Mai usor decit CBQ-ul, >> mult mai simplu de configurat, mai clar si bine documentat. Cel putzin >> pentru un newbie ca mine a fost solutia miraculoasa care a rezolvat >> problema. >> >> Multumesc tuturor celor care mi-au scris pentru bunavointa de care au >> dat dovada, si nu in ultimul rind pentru "nervii tari" pe care iatzi >> avut suportind insistenta mea, care a reusit in final sa ma enerveze >> chiar si pe mine ........:-))))) >> >> Acum totul merge asa cum doream eu.... >> >> Traiasca HTB-ul si comunitatea Linux din Romania! >> >> Hi, hi, hi....:-), am rezolvat, am rezolvat, am rezolvat...... >> >> Iulian >> >> >> On V, 2002-05-17 at 15:59, Ciprian Niculescu wrote: >> Gushterul wrote: >> >> > Bounded si isolated pentru 1:16 nu pentru 1: ca asha ramai dreq pe afara >> > si putin probabil sa iti mearga internetul dupa aia:) >> >> 1:16 e bounded, si isolated de ce??? >> >> si oricum a pus 1:16 tbf, care e din principiu bounded >> >> ... >> >> C >> >> >> > >> > Gushterul >> > >> > On 17 May 2002, >> > Iulian Mihaescu wrote: >> > >> > >> >>Hello Gushterul, >> >> >> >>Am sa ma conformez. Se pare ca nu am nici o sansa sa-l vad mergind. >> >> >> >>Daca itzi spun ceva mesajele aceste da-mi un reply te rog. Oricum am >> >>inteles de pe lista ca pentru conexiuni pasive pe FTP, nu prea este de >> >>configurat cu CBQ. >> >> >> >>In primul caz, cel cu limitare pe TOT LANUL PE ORICE SERVICIU: >> >> >> >># tc -s class ls dev eth0 >> >>class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit >> >> Sent 76710 bytes 91 pkts (dropped 0, overlimits 0) >> >> borrowed 0 overactions 0 avgidle 624 undertime 0 >> >>class cbq 1:16 parent 1: leaf 16: rate 16Kbit (bounded) prio 5 >> >> Sent 76626 bytes 89 pkts (dropped 9, overlimits 0) >> >> backlog 1p >> >> borrowed 0 overactions 0 avgidle 796779 undertime 0 >> >> >> >># tc -s qdisc ls dev eth0 >> >> >> >>qdisc tbf 16: rate 16Kbit burst 2Kb lat 610.4ms >> >> Sent 114476 bytes 114 pkts (dropped 12, overlimits 156) >> >> backlog 1514b 1p >> >> >> >>qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit >> >> Sent 114560 bytes 116 pkts (dropped 12, overlimits 117) >> >> backlog 1p >> >> borrowed 0 overactions 0 avgidle 624 undertime 0 >> >> >> >>In Cazul al doilea, cu limitare pe FTP pentru LAN: >> >> >> >># tc -s class ls dev eth0 >> >>class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit >> >> Sent 171388 bytes 163 pkts (dropped 0, overlimits 0) >> >> borrowed 0 overactions 0 avgidle 624 undertime 0 >> >>class cbq 1:16 parent 1: leaf 16: rate 16Kbit (bounded) prio 5 >> >> Sent 3797 bytes 41 pkts (dropped 0, overlimits 0) >> >> borrowed 0 overactions 0 avgidle 6.01949e+06 undertime 0 >> >> >> >># tc -s qdisc ls dev eth0 >> >>qdisc tbf 16: rate 16Kbit burst 2Kb lat 610.4ms >> >> Sent 3797 bytes 41 pkts (dropped 0, overlimits 0) >> >> >> >> qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit >> >> Sent 151706 bytes 150 pkts (dropped 0, overlimits 0) >> >> borrowed 0 overactions 0 avgidle 624 undertime 0 >> >> >> >>Mersi oricum pentru sprijin, >> >>Iulian >> >> >> >>On V, 2002-05-17 at 22:54, Gushterul wrote: >> >> Hello Iulian, >> >> >> >> Mai bine dadeai raspunsul la tc -s qdisc ls dev eth0 shi la tc -s >> >> class dev eth0. >> >> Si mai rtfm pana le intelegi chiar daca e greu;) >> >> >> >> Gushterul >> >> >> >> Friday, May 17, 2002, 2:42:50 AM, you wrote: >> >> >> >> IM> Hello Gushterul, >> >> >> >> IM> Mersi pentru sugestii dar tot nu functioneaza. Iar acum ca sa >> >> IM> simplificam...Am facut un experiment de 2 bani si ce sa vezi: cind >> >> IM> lucreaza corect, cind NU: >> >> IM> Am eliminat restrictia pe FTP, si am aplicat restritie pentru tot >LAN-ul, indifernet de serviciu. >> >> >> >> IM> cat /etc/sysconfig/cbq/cbq-16.eth0-lan-out >> >> >> >> IM> DEVICE=eth0,10Mbit,1Mbit >> >> IM> RATE=16Kbit >> >> IM> WEIGHT=1Kbit >> >> IM> PRIO=5 >> >> IM> RULE=192.168.0.0/24 >> >> IM> ISLOLATED=yes >> >> IM> BUFFER=2Kb/8 >> >> IM> LIMIT=3Kb >> >> IM> MTU=0 >> >> >> >> >> >> IM> In aceste conditii, downloadul pe FTP se limiteaza frumusel la 2KB/s >> >> >> >> IM> Iata ce spune tc-ul in acest caz: >> >> >> >> IM> # tc qdisc ls dev eth0 >> >> IM> qdisc tbf 16: rate 16Kbit burst 2Kb lat 610.4ms >> >> IM> qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit >> >> >> >> IM> # tc filter ls dev eth0 >> >> IM> filter parent 1: protocol ip pref 100 u32 >> >> IM> filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 >> >> IM> filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key >ht 800 bkt 0 flowid 1:16 >> >> IM> match c0a80000/ffffff00 at 16 >> >> >> >> IM> # tc class ls dev eth0 >> >> IM> class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit >> >> IM> class cbq 1:16 parent 1: leaf 16: rate 16Kbit (bounded) prio 5 >> >> >> >> >> >> IM> Daca schimb RULE si vreu NUMAI pe FTP se duce in pusca mea... tot in >4KB/s >> >> >> >> IM> cat /etc/sysconfig/cbq/cbq-16.eth0-lan-out >> >> >> >> IM> DEVICE=eth0,10Mbit,1Mbit >> >> IM> RATE=16Kbit >> >> IM> WEIGHT=1Kbit >> >> IM> PRIO=5 >> >> IM> RULE=:21,192.168.0.0/24 >> >> IM> RULE=:20,192.168.0.0/24 >> >> IM> ISLOLATED=yes >> >> IM> BUFFER=2Kb/8 >> >> IM> LIMIT=3Kb >> >> IM> MTU=0 >> >> >> >> IM> Iata ce spune tc-ul din nou in acest caz: >> >> >> >> IM> # tc qdisc ls dev eth0 >> >> IM> qdisc tbf 16: rate 16Kbit burst 2Kb lat 610.4ms >> >> IM> qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit >> >> >> >> IM> # tc filter ls dev eth0 >> >> IM> filter parent 1: protocol ip pref 100 u32 >> >> IM> filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 >> >> IM> filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key >ht 800 bkt 0 flowid 1:16 >> >> IM> match 00150000/ffff0000 at 20 >> >> IM> match c0a80000/ffffff00 at 16 >> >> IM> filter parent 1: protocol ip pref 100 u32 fh 800::801 order 2049 key >ht 800 bkt 0 flowid 1:16 >> >> IM> match 00140000/ffff0000 at 20 >> >> IM> match c0a80000/ffffff00 at 16 >> >> >> >> IM> # tc class ls dev eth0 >> >> IM> class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit >> >> IM> class cbq 1:16 parent 1: leaf 16: rate 16Kbit (bounded) prio 5 >> >> IM> Cam asta se intimpla. DE CE NU MERGE NUMAI PE FTP NU MAI PRICEP! >> >> >> >> IM> Iulian >> >> >> >> >> >> IM> On V, 2002-05-17 at 10:27, Gushterul wrote: >> >> IM> Hello Victor, >> >> >> >> IM> Presupun ca a fost ce am zis si ati stiut sa dati un tc qdisc ls >dev >> >> IM> eth0, tc filter ls dev eth0 etc sa vedeti pe unde o iau >packetzii. sau >> >> IM> tc -s qdisc ls dev eth0, filter, class etc... >> >> >> >> IM> Gushterul >> >> >> >> IM> Thursday, May 16, 2002, 1:42:16 PM, you wrote: >> >> >> >> IM> VBC> Nice reply Mr. Green Crawler :-) >> >> >> >> IM> VBC> Acu lasand shtoul' la o parte... L-au cam lasat nervii pe >Iulian >> >> IM> VBC> (intzelege-l shi tu! Poate are omu un dead-line imputzit shi >trebe sa se >> >> IM> VBC> tzie de el!) Si eu mi-s cam newbie la CBQ iar documentatzia >e putzintica shi >> >> IM> VBC> cam imputzita! >> >> IM> VBC> Acum e vobra ca daca tot nu e sa ai rabdare pana unu ca tine >da reply la >> >> IM> VBC> 23:30 la probleme "arzatoare" de CBQ :-) >> >> >> >> IM> VBC> Oricum, >> >> IM> VBC> Merci de reply (pt amandoi!) >> >> >> >> IM> >> Hello Iulian, >> >> IM> >> >> >> IM> >> Chiar daca mi-ai sarit la gat in mailu' anterior... >> >> IM> >> Pune isolated la class, scoate mtu 1500 de pe peste tot, pune >buffer >> >> IM> >> 2Kb/8, limit 3000, SI MAI ALES vezi sa nu ai placa de retea in >full >> >> IM> >> duplex. Conteaza datele care i le dai despre eth0 pentru ca in >functie >> >> IM> >> de alea calculeaza restul. Ma rog astea scriau shi in manual:) >> >> IM> >> >> >> IM> >> Gushterul >> >> >> >> IM> -- >> >> IM> Best regards, >> >> IM> Gushterul >mailto:[EMAIL PROTECTED] >> >> >> >> IM> --- -- Best regards, Gushterul mailto:[EMAIL PROTECTED] --- Pentru dezabonare, trimiteti mail la [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'. REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
