public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Network Statistics Collection
@ 2004-09-20 23:31 TEJAS VORA
  2004-09-21  0:32 ` Ray Olszewski
  0 siblings, 1 reply; 3+ messages in thread
From: TEJAS VORA @ 2004-09-20 23:31 UTC (permalink / raw)
  To: linux-kernel, linux-net, linux-c-programming, linux-admin,
	linux-newbie

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Network Statistics Collection
  2004-09-20 23:31 Network Statistics Collection TEJAS VORA
@ 2004-09-21  0:32 ` Ray Olszewski
  0 siblings, 0 replies; 3+ messages in thread
From: Ray Olszewski @ 2004-09-21  0:32 UTC (permalink / raw)
  To: linux-newbie

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.

At 04:31 PM 9/20/2004 -0700, TEJAS VORA wrote:
>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-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Network Statistics Collection
@ 2004-09-21 13:54 Huber, George K RDECOM CERDEC STCD SRI
  0 siblings, 0 replies; 3+ messages in thread
From: Huber, George K RDECOM CERDEC STCD SRI @ 2004-09-21 13:54 UTC (permalink / raw)
  To: linux-kernel, linux-net, linux-c-programming, linux-admin,
	linux-newbie

Tejas wondered:

>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)

Take a look at iptraf - it does most (if not all of what you want).  Through
a
study of its source code you should be able to figure out how to do what you
want.

George

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-21 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 23:31 Network Statistics Collection TEJAS VORA
2004-09-21  0:32 ` Ray Olszewski
  -- strict thread matches above, loose matches on Subject: below --
2004-09-21 13:54 Huber, George K RDECOM CERDEC STCD SRI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox