[no subject]

Linux Advanced Routing and Traffic Control

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

 



Hi,

I am facing a simple task - I want network traffic from application A to be prioritized over all traffic from my machine, and network traffic from application B to be the least important traffic that goes out from my machine. The default pfifo_fast discipline queue seems to be perfect for this task. I found several ways to make it work - either specify TOS of ip packages inside the apps, or use iptables to mask traffic. The question that I have, though, is this -

How can I check that my setup is working as expected? I at least would like to check that packages go to each of the 3 bands in discipline queue.

I tried 'tc -s -d qdisc show', but there is no statistics for each bucket. Also 'man tc-pfifo_fast' says that there is a bug: 'Does not maintain statistics and does not show up in tc qdisc ls. This is because it is the automatic default in the absence of a configured qdisc.'

Can somebody suggest how to look into pfifo_fast stats?

I'm thinking about

- writing stap script to try to look into functions that manipulate pfifo_fast bands
- looking at ftrace or bpf, maybe they can help me somehow
- adding a patch to pfifo_fast that shows statistics by each band

But maybe I'm missing something and this can be done easier?





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