Subject: How do I get protocol statistics on a per-networking-interface level ?
To: None <smb@cs.columbia.edu>
From: None <davef1624@aol.com>
List: tech-net
Date: 04/11/2005 14:17:51
Can anyone tell me how to get per-protocol based statistics (e.g., for 
udp or ip protocols),
but on a per-network-interface level?

netstat has the -p <protocol> option, as well as the -I <interface> 
option,
but it seems that when I use the -p option, the -I option is ignored,
and I get stats for all interfaces for the specified protocol.

Am I not using netstat correctly, or are there other tools out there?

thanks,
Dave

-----Original Message-----
From: Steven M. Bellovin <smb@cs.columbia.edu>
To: davef1624@aol.com
Cc: tech-net@NetBSD.org
Sent: Sun, 10 Apr 2005 22:13:15 -0400
Subject: Re: tcp/udp/ip statistics monitoring/reporting tools for 
NetBSD?

   In message <8C70C51D997FEC2-2E0-14FCC@mblk-r42.sysops.aol.com>, 
davef1624@aol.c
om writes:
>Are there any networking tools available (even 3rd party) that will
>collect & display
>the tcp/udp/ip statistics (e.g., packets sent, packets received,
>errored packets, etc.)
>on a per-interface level?     I'm trying to analyze some USB 
networking
>problems from
>a host-to-host link (running UDP/IP over the USB), and need some way 
of
>monitoring
>for networking errors across this link.
>

Netstat(1) has counters; will these do the trick?  Beyond that, look at
pkgsrc/net/ntop.

        --Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb