[LARTC] tc ingress + iptables mark problem

2007-02-04 Thread Salatiel Filho
Hi guys , i am starting to play with qos in linux. Well , i am trying to setup an ingress filter but i do not know why it is not working. tc add qdisc dev eth0 ingress tc filter add dev eth0 parent : protocol ip prio 1 handle 1 fw police rate 160kbit burst 256kbit drop flowid :1 After that

Re: [LARTC] tc ingress + iptables mark problem

2007-02-04 Thread Salatiel Filho
On 2/4/07, Alexandru Dragoi [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Hi guys , i am starting to play with qos in linux. Well , i am trying to setup an ingress filter but i do not know why it is not working. tc add qdisc dev eth0 ingress tc filter add dev eth0 parent : protocol

Re: [LARTC] tc ingress + iptables mark problem

2007-02-04 Thread Salatiel Filho
On 2/4/07, Georgy Zhukov [EMAIL PROTECTED] wrote: On 2/4/07, Salatiel Filho [EMAIL PROTECTED] wrote: On 2/4/07, Alexandru Dragoi [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Hi guys , i am starting to play with qos in linux. Well , i am trying to setup an ingress filter but i do

[LARTC] Shape own router

2007-03-22 Thread Salatiel Filho
On 2/19/07, Salatiel Filho [EMAIL PROTECTED] wrote: Well , thanks to imq all my client machines are now shaped and everything is great ... But now i have a doubt , is there a way to shape the traffic that goes to the route [doing a wget from the router for example ]? I have a PREROUTING IMQ0

[LARTC] Shape own router

2007-03-22 Thread Salatiel Filho
On 3/22/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: On 2/19/07, Salatiel Filho [EMAIL PROTECTED] wrote: Well , thanks to imq all my client machines are now shaped and everything is great ... But now i have a doubt , is there a way to shape the traffic that goes

Re: [LARTC] Shape own router

2007-03-23 Thread Salatiel Filho
On 3/22/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Where can i read about IFB ? I try to google but i can not find too much info. maybe i am looking for the wrong words. Maybe this is the solution, cause i would like to put both local traffic and forwarded traffic

Re: [LARTC] Shape own router

2007-04-23 Thread Salatiel Filho
On 3/24/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Hi Andy , thanks again , but i am not understanding very well how to do it [still newbie in this]. Let`s try to change to some real code here. This is part of my setup to shape download: eth0 = EXTIF eth1

[LARTC] tc u32 match !port

2007-05-02 Thread Salatiel Filho
How can i redirect all traffic that not come from port 80 to a flow ? i was thing about some like tc filter add dev imq1 parent 1: protocol ip prio 7 u32 match ip sport !80 .. But this not work. Another doubt, if i have two rules that intersects , for example , one filter with u32 match

Re: [LARTC] tc u32 match !port

2007-05-05 Thread Salatiel Filho
On 5/3/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: How can i redirect all traffic that not come from port 80 to a flow ? i was thing about some like tc filter add dev imq1 parent 1: protocol ip prio 7 u32 match ip sport !80 .. But this not work. Another doubt

Re: [LARTC] tc u32 match !port

2007-05-05 Thread Salatiel Filho
On 5/5/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Well , i am having a few troubles making this work. I have some like this in pseudo tc rulez :) Root class Class 1 parent ROOT prio 0 filter u32 match sport 80 dst 10.0.0.254 Class 2 paret ROOT prio 0

Re: [LARTC] tc u32 match !port

2007-05-05 Thread Salatiel Filho
On 5/5/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: On 5/5/07, Andy Furniss [EMAIL PROTECTED] wrote: Salatiel Filho wrote: Well , i am having a few troubles making this work. I have some like this in pseudo tc rulez :) Root class Class 1 parent ROOT prio 0

[LARTC] IMQ KERNEL PANIC 2.6.17.14 AND 2.6.21.1 No chain/target/match by that name

2007-05-07 Thread Salatiel Filho
After starting to shape local traffic now i am getting a lot of kernel panics in tcp_retransmit, so i decided to update my kernel from 2.6.17.14 to 2.6.21.1 , the problem is that after that i get: # iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 0 iptables: No chain/target/match by

[LARTC] Re: IMQ KERNEL PANIC 2.6.17.14 AND 2.6.21.1 No chain/target/match by that name

2007-05-08 Thread Salatiel Filho
On 5/7/07, Salatiel Filho [EMAIL PROTECTED] wrote: After starting to shape local traffic now i am getting a lot of kernel panics in tcp_retransmit, so i decided to update my kernel from 2.6.17.14 to 2.6.21.1 , the problem is that after that i get: # iptables -t mangle -A POSTROUTING -o eth0 -j

Re: [LARTC] statistics and calc bandwidth traffic using tc -s qdisc show

2007-05-17 Thread Salatiel Filho
I use tc-viewer . It does a great job. http://snaj.ath.cx/tc-viewer/tc-viewer.html On 5/16/07, Pablo Fernandes Yahoo [EMAIL PROTECTED] wrote: Hello, Is there someone here who knows what does it means? The Sent part. [EMAIL PROTECTED] ~]# tc -s qdisc show |grep -A 2 qdisc sfq 140:

Re: [LARTC] Re: LARTC Digest, Vol 27, Issue 26

2007-05-19 Thread Salatiel Filho
On 5/19/07, terraja-based [EMAIL PROTECTED] wrote: Hi folks...!!! I need to generate qdisc statistics to show my 4 class (10, 20, 30, 40), i`ve all working with HTB and so on, but i need to graph this results e.gwith RRDTOOL. I found a script made in perl, that can to graph my 4 class, but

Re: [LARTC] CBQ + Layer7 x Emule

2007-06-08 Thread Salatiel Filho
On 6/8/07, Saulo Silva [EMAIL PROTECTED] wrote: HI Marcos , I tried your rules, but without success . Thank for that help . And , how about ip2pp ? Is this application could do that ? Help me to shape edonkey traffic ??? Best Regards, Saulo Silva 2007/6/8, Marco Aurelio [EMAIL PROTECTED]:

[LARTC] doubt about bridge qdisc

2007-09-15 Thread Salatiel Filho
Hi guys, i have a little doubt ; I have eth0 ethernet and eth1 wireless , and they are bridged in br0 Is there any difference in the behavior between do tc qdisc add dev br0 root sfq OR tc qdisc add dev eth0 root sfq tc qdisc add dev eth1 root sfq -- []'s Salatiel O maior prazer do

Re: [LARTC] doubt about bridge qdisc

2007-09-18 Thread Salatiel Filho
On 9/18/07, Jens Thiele [EMAIL PROTECTED] wrote: On 18 Sep 2007, [EMAIL PROTECTED] wrote: Also since bridge is a pseudo device it has no transmit queue so there is no qdisc involved. Just out of curiosity (I did not look at bridging details at all yet): Is this 2.6.x specific? Because

Re: [LARTC] doubt about bridge qdisc

2007-09-18 Thread Salatiel Filho
On 9/18/07, Salatiel Filho [EMAIL PROTECTED] wrote: On 9/18/07, Jens Thiele [EMAIL PROTECTED] wrote: On 18 Sep 2007, [EMAIL PROTECTED] wrote: Also since bridge is a pseudo device it has no transmit queue so there is no qdisc involved. Just out of curiosity (I did not look

Re: [LARTC] Limit Rates in more scalable and efficient way

2007-10-05 Thread Salatiel Filho
Sometime ago i had written a bash script that read from a file containing the list of ips and built all the needed classes. unfortunately i do not have it anymore [hd crash and no backup :/] , but at least you know it can be relatively easy to automate this task. On 10/5/07, [EMAIL PROTECTED]

[LARTC] new doubts about bridge qdisc

2007-10-07 Thread Salatiel Filho
Ok , let`s go again with shaping a bridge interface. The environment is a dd-wrt firmware router. I have vlan1 interface connected to the DSL modem , and a br0 interface connecting wired and wireless machines. lets begin with the doubts , I have [example]: tc qdisc add dev br0 root handle 1:

[LARTC] how RED should work ?

2007-12-06 Thread Salatiel Filho
Hi , i am trying to understand how RED queue discipline works but i am having a few troubles. The parameters are MIN , MAX , LIMIT , BURST I put LIMIT = 64Kb, so if i am not wrong it should PDROP anything over this value , right ? i put MIN = 8Kb , so no drops at all below this value, right ? i

[LARTC] doubt about esfq

2007-12-18 Thread Salatiel Filho
In esfq README i have: Depth sets the number of slots. If the number of active flows is greater than the number of slots, flows will end up sharing slots and ESFQ will no longer be fair. If you anticipate more than 128 concurrently active flows, you should use a larger depth and probably

[LARTC] Help With WRR

2008-01-31 Thread Salatiel Filho
Could anyone explain what is WRR param2 [wmode2 , incr2 , decr2 , min2] for ? can i set just the param1 ? [wmode1 , incr1 , decr1,min1] -- []'s Salatiel O maior prazer do inteligente é bancar o idiota diante de um idiota que banca o inteligente.

[LARTC] why can`t i attach wrr to a htb or hfsc class ?

2008-08-05 Thread Salatiel Filho
Attaching WRR to a hfsc ot htb class after a while i will get all packets drop and syslog full of HFSC or HTB : Non-work-conserving qdisc any ideas ? -- []'s Salatiel O maior prazer do inteligente é bancar o idiota diante de um idiota que banca o inteligente.

[LARTC] PRIO qdisc + iptables TOS target

2011-05-03 Thread Salatiel Filho
i am trying to do some traffic classification using the PRIO qdisc and i am having a few problems. I have a root htb class: tc qdisc add dev imq0 root handle 1: htb default 255 r2q 1 tc class add dev imq0 parent 1: classid 1:1 htb rate 768kbit and a child PRIO tc class add dev imq0 parent 1:1