Getting traffic rate traces bound to each active tcp link

Getting traffic rate traces bound to each active tcp link

Post by Riccardo Manfri » Wed, 23 Dec 2009 19:24:53



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

 
 
 

1. VCS active-active failover question (socket bounds to IP when service starts)

Hi,
I am to build a VCS failover cluster (backend). I came accross with
the following general question. I have a network service (S) which
binds socket to primary IP when service starts. Will active-active
scenario work in this case? The only way I see to make it work, is to
change DNS mapping upon failover.

For example:

Before failover:

DNS host.name->IP1
NODE1.IP1 (S) <--- crashes
NODE2.IP2 (S)

After failover NODE1->NODE2:

DNS host.name->IP2
NODE1.IP1 (X)
NODE2.IP2 (S)

Can in be done in VCS?  Does VCS support this failover feature? Are
there other ways (than altering DNS) to implement this in
active-active? Many services cache DNS records, thus I don't see my
solution will work well. I know about load-balancing alternative but
can not use it because of different reasons.

Thanks!
Andrei

2. Change mgetty modem init strings, HOW?

3. Tracing TCP/IP packets from NIC to TCP

4. CMD keys for AS/400, ANyone?

5. Trace signal dispositions for an active process?

6. HELP!!! GNOMELIBS 1.0.3

7. tcpdump to trace dialup ppp traffic

8. Linux and an 'intelligent' hub

9. network traffic tracing

10. Traffic Generator (varied rate)

11. Traffic rate difference

12. PSE HELP -> HOWTO configure BIND for Active Directory

13. Any help on IP Traffic / data rate control in Linux