Hello Ciprian,
Pai este evident ca ceva nu e bine in ce am facut, dar ce anume nu
stiu...
Iulian
On V, 2002-05-17 at 14:26, Ciprian Niculescu wrote:
mie imi spun, dar ce vrei sa stii, daca e bine ce ai
facut, sau ce????
C
--- Iulian Mihaescu <[EMAIL PROTECTED]> wrote:
> 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> ---
> IM> Pentru dezabonare, trimiteti mail la
> IM> [EMAIL PROTECTED] cu subiectul 'unsubscribe
> rlug'.
> IM> REGULI, arhive si alte informatii:
> http://www.lug.ro/mlist/
>
>
>
>
>
>
>
> IM> ---
> IM> Pentru dezabonare, trimiteti mail la
> IM> [EMAIL PROTECTED] cu subiectul 'unsubscribe
> rlug'.
> IM> REGULI, arhive si alte informatii:
> http://www.lug.ro/mlist/
>
>
>
> --
> 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/
>
>
>
>
>
>
>
> ---
> Pentru dezabonare, trimiteti mail la
> [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
> REGULI, arhive si alte informatii:
> http://www.lug.ro/mlist/
>
>
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/