Re: HTB performance, and debbuging

Linux Advanced Routing and Traffic Control

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

 



Hi,

On 2013.03.05 08:27:41 +0200, Žilvinas Vaičkus wrote:
> Hi list,
> 
> I have two traffic shaping servers, on Linux Centos 5.5
> (2.6.18-194.32.1.el5) with HTB. In these servers are 2 gigabit NIC's and
> running script which generates two HTB class'es per ip, one for http and
> icmp, and another class for other ports. These class'es have different
> bandwidth rate. Each server serves about 5000 IP's, so each server have
> about 10000 class'es and about 40000 filters (4 filters per class), and all
> IP's are hashed with hashing tables.I am not sure that all my ip's are
> shaped. When i look to default class with "tc -s class show dev" sometimes
> default class traffic goes up, so there is asumtion that some of ip's are
> not shaped.
> 
> 1. First question ist there any way to check which ip's go trough default
> HTB class ?

It would be possible to mirror traffic reaching the default class to an
ifb like this: 

tc filter add dev eth0 parent 1:defaultclass protocol ip priority 10 u32 \
match u32 0 0 flowid 1: action mirred egress mirror dev ifb0

Then just run a tcpdump on ifb0.

Regards,
Ben

Attachment: pgpA6c2hupH0Y.pgp
Description: PGP signature


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