viveks wrote:
> How do i check the no of bytes passed through an interface and the no of 
> currently active connections going through an interface?

Number of bytes is relatively easy -- see the obytes64 and rbytes64 kstats.

Number of connections is not well defined.  TCP/IP doesn't quite work
that way.  Connections are transport-layer entities (e.g., TCP), while
interfaces are network-layer entities (IP).  Conceptually, a given TCP
segment for a given connection will be converted into a datagram by IP,
and then IP will determine, on a packet-by-packet basis, where to send
that individual datagram.

Although in a given environment, it may be the case that some (or even
"many") connections appear to send and receive packets over only a
single interface, there really isn't any sort of useful or stable
mapping of connection to interface.

-- 
James Carlson         42.703N 71.076W         <[email protected]>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to