netdev
[Top] [All Lists]

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

To: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Subject: Re: RFC: per-socket statistics on received/dropped packets
From: Mark Mielke <mark@xxxxxxxxxxxxxx>
Date: Sat, 8 Jun 2002 17:05:11 -0400
Cc: "David S. Miller" <davem@xxxxxxxxxx>, cfriesen@xxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <3D01307C.4090503@xxxxxxxxxxxxxxx>; from greearb@xxxxxxxxxxxxxxx on Fri, Jun 07, 2002 at 03:15:24PM -0700
References: <3CFFB9F8.54455B6E@xxxxxxxxxxxxxxxxxx> <20020606.202108.52904668.davem@xxxxxxxxxx> <3D01307C.4090503@xxxxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Fri, Jun 07, 2002 at 03:15:24PM -0700, Ben Greear wrote:
> David S. Miller wrote:
> > 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@xxxxxxxxx/markm@xxxxxx/markm@xxxxxxxxxxxxxxxxxx __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | 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/


<Prev in Thread] Current Thread [Next in Thread>