netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: tc and making QoS
       [not found] <u2of1cc03e01004300304gcde0364cxbdf93e74f3fd2661@mail.gmail.com>
@ 2010-04-30 10:51 ` Marek Kierdelewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Kierdelewicz @ 2010-04-30 10:51 UTC (permalink / raw)
  To: Mamadou Touré; +Cc: netfilter

Hi Mamadou,

>Is never match for the http downstream. And that make a sense because
>the dport of the downstream is not 80.

Try changing "dport 80" into "sport 80" in following command:

>tc filter add dev  eth2  protocol ip parent 1:  prio 1 u32   match ip
>dst 192.168.2.88/32  match ip protocol  6  0xff match ip dport  80
>0xffff flowid  1:8170

That should do it.

Best regards,
Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* tc and making QoS
@ 2010-05-01 17:32 mamadou.toure
  0 siblings, 0 replies; 2+ messages in thread
From: mamadou.toure @ 2010-05-01 17:32 UTC (permalink / raw)
  To: netfilter


Hi list,

I've some problem with making Qos.

All my pass through a linux box which is in Bridge mode.

I'd to implement a Qos to allocate 25Kbit of bandwith to the http

communication. So I've made these commands:

--------------------------------------------------------------

tc qdisc add dev  eth1  root handle 1: htb default 1 tc  class add dev 

eth1  parent 1: classid  1:1  htb rate 50kbit ceil 50kbit tc qdisc add dev 

eth1  parent  1:1  handle 10:  sfq perturb 10 tc qdisc add dev  eth2  root

handle 1: htb default 1 tc  class add dev  eth2  parent 1: classid  1:1 

htb rate 50kbit ceil 50kbit tc qdisc add dev  eth2  parent  1:1  handle 10:

 sfq perturb 10



tc  class add dev  eth1  parent 1:0 classid  1:1007  htb rate 512kbit ceil

512kbit tc  class add dev  eth2  parent 1:0 classid  1:1007  htb rate

512kbit ceil 512kbit



tc  class add dev  eth1  parent 1:1007 classid  1:8170  htb rate 25kbit

ceil 25kbit tc qdisc add dev  eth1  parent  1:8170  handle 8170:  sfq

perturb 10 tc  class add dev  eth2  parent 1:1007 classid  1:8170  htb rate

25kbit ceil 25kbit tc qdisc add dev  eth2  parent  1:8170  handle 8170: 

sfq perturb 10



tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  src 

192.168.2.88/32  match ip protocol  6  0xff match ip dport  80  0xffff

flowid  1:8170

tc filter add dev  eth2  protocol ip parent 1:  prio 1 u32   match ip  dst 

192.168.2.88/32  match ip protocol  6  0xff match ip dport  80  0xffff

flowid  1:8170

--------------------------------------------------------------------

The filter tc filter add dev  eth1.....

Is allway match for all http upstream traffic But the filter tc filter add

dev  eth2...

Is never match for the http downstream. And that make a sense because the

dport of the downstream is not 80.

Can someone help me troubleshoot.

Regards.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-01 17:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <u2of1cc03e01004300304gcde0364cxbdf93e74f3fd2661@mail.gmail.com>
2010-04-30 10:51 ` tc and making QoS Marek Kierdelewicz
2010-05-01 17:32 mamadou.toure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).