Not getting desired rate with ingress policer

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to configure a linux router with rate limiting.

For testing purpose, I am trying to limit upload traffic to specific
IP (i.e. igress to an interface), but I am unable to achieve it.

My script is

tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 1 \
   u32 match ip dst 192.168.192.168 police rate 1mbit \
   burst 10k drop flowid :1

There is no other TC rule.

I am doing FTP to 192.168.192.168 for testing.

I am unable to get any meaningful throughput even. I am getting some
throughput of the order of few kbps (kilo bits).

Any help????
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux