All of lore.kernel.org
 help / color / mirror / Atom feed
* A top 10 statistics module?
@ 2005-04-20 12:40 Wang Jian
  2005-04-20 14:52 ` Bill Rugolsky Jr.
  0 siblings, 1 reply; 5+ messages in thread
From: Wang Jian @ 2005-04-20 12:40 UTC (permalink / raw)
  To: netfilter-devel

Hi,

I have a customer who needs functionality that list top 10 hosts 
(listener or talker). It normally done in userspace, but in this case,
the 10 hosts is for a tc class. Moreover, it is expected that 2 or more
tc classes' top 10 are collected at the same time.

So I think this is better handled in kernel space, because the classid
and/or nfmark is only seen in kernel space.

The idea is that a rule like

 -m mark --mark 0x1 -j TOPHOST --count 10 --name FILENAME

will collect top10 IPs (using conntrack flow account) and export the
information under /proc/net/stat/top10/FILENAME based on the source
address. (You may need add -i to indicate the direction)

Of course, the top10 can be used to match any other criteria beside the
nfmark. It can even collect top10 of all traffic.

Top10 is used to monitor a while and then disabled. It could be expensive,
but is useful to investigate.

I will implement it anyway to complete the task, but before I code, I am
willing to listen to any one who has comment and suggestion.


-- 
  lark

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <200504201804.j3KI4WJ19340@isis.cs3-inc.com>]

end of thread, other threads:[~2005-04-21  7:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-20 12:40 A top 10 statistics module? Wang Jian
2005-04-20 14:52 ` Bill Rugolsky Jr.
2005-04-20 16:14   ` Wang Jian
     [not found] <200504201804.j3KI4WJ19340@isis.cs3-inc.com>
2005-04-21  5:25 ` Wang Jian
     [not found]   ` <16999.19485.501493.784034@isis.cs3-inc.com>
2005-04-21  7:12     ` Wang Jian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.