Re: RFC: per-socket statistics on received/dropped packets

2 messages, 2 authors, 2002-06-08 · open the first message on its own page

Re: RFC: per-socket statistics on received/dropped packets

From: Mark Mielke <hidden>
Date: 2002-06-08 21:11:16

On Fri, Jun 07, 2002 at 03:15:24PM -0700, Ben Greear wrote:
David S. Miller wrote:
quoted
Your idea is totally useless for non-datagram sockets.
Only datagram sockets use the interfaces where you bump
the counters.
I don't like the patch, nor the idea behind it, at all.
Datagram sockets are the ones that drop data though (tcp will
deal with it via re-transmits).
Outside of the specific changes suggested by Chris, I can see a
requirement to be able to detect poor connections. While TCP/IP may
not drop packets from the perspective of user space applications,
TCP/IP packets do get lost. For certain applications that require high
bandwidth, or low latency, applications may be able to optimize code
paths by analyzing statistics related to the socket.

Datagram sockets are more straight forward to implement this for, but
that does not mean that TCP/IP does not have similar potential.

I am not certain what the exact requirement is for in Chris' cases,
but I do know that in his field, he is writing something far more
complicated and resource intensive than a telnet server.

mark

-- 
mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/

Re: RFC: per-socket statistics on received/dropped packets

From: David S. Miller <hidden>
Date: 2002-06-08 23:04:07

You guys we have SNMP statistics for these events, there
is no reason to have them per-socket.  You cannot convince
me that when you are diagnosing a problem the SNMP stats
are not enough to show you if the packets are being dropped.

If not, this means we need to add more SNMP events, that is
all it means.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help