linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Network Statistics Collection
@ 2004-09-20 23:31 TEJAS VORA
  2004-09-21  3:32 ` Adam Andrew Flanczewski
  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  3:32 ` Adam Andrew Flanczewski
  0 siblings, 0 replies; 3+ messages in thread
From: Adam Andrew Flanczewski @ 2004-09-21  3:32 UTC (permalink / raw)
  To: linux-c-programming

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 */


On Mon, Sep 20, 2004 at 04:31:32PM -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-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

^ 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  3:32 ` Adam Andrew Flanczewski
  -- 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;
as well as URLs for NNTP newsgroup(s).