Skip to contentSkip to conversation

Network Statistics Collection

DISCUSSION TEJAS VORA 4 participants 4 messages Sep 20, 2004 – Sep 21, 2004

lore
Share & tools
lore

TEJAS VORA

author
#0 lore raw

Hi All,

I am working on a company project and as a part of it - I have to collect and show some network information on the Monitoring utility. Please help to find out that how can I collect these information from a Linux Machine.

1. Number of active TCP connection
2. Information of Active connections (Source and Dest IP, Source and Dest Port)
3. Retransmitted packets due to Duplicate ACK and SACK
4. Connection Duration and RTT
5. Transmission Troughput (in KB/Sec)
6. Number of Newly Created TCP Connections
7. Closed TCP Connections
8. Total Data transmitted (in byte)
9. Total Data Retransmitted (in byte)

Also, does anybody have any information on Watchdaog or how to use watchdog and SOCKS and SNOOP Daemon?
I am using RedHat 9.0 machine.

Any help is apreciated.

Looking for an answer.

Tejas Vora

#1 lore raw

You really should not cross post the same message to so many lists. If people reply without pruning, it will get messy, and it's just considered bad manners.

Now to your problem.

As a general matter, much of this information can be found in the /proc filesystem, a pseudo-filesystem that gives you read (sometimes write) access to kernel internals in ways that make the internals look like files. Common apps that provide interfaces to this information are netstat, ifconfig, and ip (also known as iproute). iptables rulesets (iptables is the interface to the kernel's firewalling and NATing code) for logging packets may be needed to get some of the more fine-grained things you want to know about (e.g., retransmits).

Consulting the man pages for these apps is a good way to start to gain an understanding of how to access this information.

The information is usually kept in static, not dynamic form (for example, cumulative bytes received and transmitted, but no measure of KB/sec transmitted or received), so you'd need to poll the static values periodically (via a cron script, say) and do the math yourself.

Quoted 21 lines · TEJAS VORA

Hi All,

I am working on a company project and as a part of it - I have to collect and show some network information on the Monitoring utility. Please help to find out that how can I collect these information from a Linux Machine.

1. Number of active TCP connection
2. Information of Active connections (Source and Dest IP, Source and Dest Port)
3. Retransmitted packets due to Duplicate ACK and SACK
4. Connection Duration and RTT
5. Transmission Troughput (in KB/Sec)
6. Number of Newly Created TCP Connections
7. Closed TCP Connections
8. Total Data transmitted (in byte)
9. Total Data Retransmitted (in byte)

Also, does anybody have any information on Watchdaog or how to use watchdog and SOCKS and SNOOP Daemon?
I am using RedHat 9.0 machine.

Quoted 5 lines

Any help is apreciated.

Looking for an answer.

Tejas Vora

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to TEJAS VORA

Have you tried looking through /proc ? A whole wealth of system information can be gathered from procfs.

I wouldn't know how to get the specifics you ask for, but it's a start.

/* Adam "Lance" Flanczewski */

Quoted 32 lines · TEJAS VORA

Hi All,

I am working on a company project and as a part of it - I have to collect and show some network information on the Monitoring utility. Please help to find out that how can I collect these information from a Linux Machine.

1. Number of active TCP connection
2. Information of Active connections (Source and Dest IP, Source and Dest Port)
3. Retransmitted packets due to Duplicate ACK and SACK
4. Connection Duration and RTT
5. Transmission Troughput (in KB/Sec)
6. Number of Newly Created TCP Connections
7. Closed TCP Connections
8. Total Data transmitted (in byte)
9. Total Data Retransmitted (in byte)

Also, does anybody have any information on Watchdaog or how to use watchdog and SOCKS and SNOOP Daemon?
I am using RedHat 9.0 machine.

Any help is apreciated.

Looking for an answer.

Tejas Vora
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to TEJAS VORA
Quoted 17 lines · On Tuesday 21 September 2004 01:31 TEJAS VORA's cat walking on the keyboard…

Hi All,

I am working on a company project and as a part of it - I have to collect and show some network information on the Monitoring utility. Please help to find out that how can I collect these information from a Linux Machine.

1. Number of active TCP connection
2. Information of Active connections (Source and Dest IP, Source and Dest Port) 3. Retransmitted packets due to Duplicate ACK and SACK
4. Connection Duration and RTT
5. Transmission Troughput (in KB/Sec)
6. Number of Newly Created TCP Connections
7. Closed TCP Connections
8. Total Data transmitted (in byte)
9. Total Data Retransmitted (in byte)

Quoted 6 lines

Also, does anybody have any information on Watchdaog or how to use watchdog and SOCKS and SNOOP Daemon?
I am using RedHat 9.0 machine.

Any help is apreciated.

Have you ever tried netstat?

Luca

Signature · 2 lines
Luca Ferrari,
[email protected]