Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting traffic rate traces bound to each active tcp link

0 views
Skip to first unread message

Riccardo Manfrin

unread,
Dec 22, 2009, 5:24:37 AM12/22/09
to
Hi NG,
I need to track each TCP link traffic load (rate). I already have the
information regarding all opened TCP links, but I don't know what the
best way could be to retrieve traffic information to associate to those.

To do the job what I need is basically
a) to bind a packet to the correct flow, hence knowing the tuple:
[src_ip, src_port, dst_ip, dst_port, transport]
b) to know the packet size (optionally the timestamp would help too,
but I can generate that independently).

This having been said, what the best way to accomplish the task could
be? I was planning on using a tcpdump based sniffer but it looks pretty
much inefficient to export all packets to userspace, while data is
probably there to be grasped in some /proc subfolders or kernel structures.
I just need you to address me with the problem towards a
non-100%-load-CPU solution.

Thanks in advance and Merry Xmas,
R

tchernobog

unread,
Dec 22, 2009, 6:22:37 PM12/22/09
to
On Dec 22, 11:24 am, Riccardo Manfrin
<namesurn...@guesswhat.guesswhat> wrote:
> Hi NG,

>
> This having been said, what the best way to accomplish the task could
> be? I was planning on using a tcpdump based sniffer but it looks pretty
> much inefficient to export all packets to userspace, while data is
> probably there to be grasped in some /proc subfolders or kernel structures.
> I just need you to address me with the problem towards a
> non-100%-load-CPU solution.

libpcap + http://www.ntop.org/PF_RING.html
Come fa ntop. Non credo si possa fare molto meglio senza scrivere un
modulo per il kernel.

Ciao,
m.

0 new messages