public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <cfriesen@nortelnetworks.com>
To: root@chaos.analogic.com
Cc: "Perches, Joe" <joe.perches@spirentcom.com>,
	"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
	"'Alan Cox'" <alan@lxorguk.ukuu.org.uk>
Subject: Re: want opinions on possible glitch in 2.4 network error reporti ng
Date: Thu, 07 Feb 2002 16:06:47 -0500	[thread overview]
Message-ID: <3C62EC67.FCB9958A@nortelnetworks.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1020207151325.10014A-100000@chaos.analogic.com>

"Richard B. Johnson" wrote:
> 
> On Thu, 7 Feb 2002, Chris Friesen wrote:

> > The possibility of random dropping of packets in the kernel means that an
> > infinite loop on sendto() will chew up the entire machine even if you've only
> > got a 10Mbit/s link.  This seems just wrong.
> >
> 
> This is the basic reason why the return-value of sento() should be
> ignored, even though Alan doesn't agree. Basically, if you give
> valid parameters to sendto() (correct socket, pointer to correct
> structure, etc), you can just ignore the return value. Its not useful
> in the overall scheme. If you must make sure that a UDP packet got
> to a receiver, then the receiver must (somehow) hand-shake with you.
> How you do the handshake is entirely up to you. UDP stands for
> User Datagram Protocol. It's a quick-fling out the spicket. How you
> handle lost messages is up to the user.

Okay, I buy the fact that sendto can't guarantee that the packet got anywhere. 
Fine.  Now what about sending packets out faster than the output device can
possibly handle them?  We know the device is busy, it's under our control.  It
seems to me to be logical to block the sender until the congestion goes away, or
return with an error code if the sender is non-blocking.  This may not play nice
with the current kernel networking code (qdisc and all that) but doesn't it seem
like a good idea in principle?

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

  reply	other threads:[~2002-02-07 20:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-07 17:37 want opinions on possible glitch in 2.4 network error reporti ng Perches, Joe
2002-02-07 18:08 ` Richard B. Johnson
2002-02-07 18:44   ` Chris Friesen
2002-02-07 19:51     ` Jan Harkes
2002-02-07 20:10       ` Chris Friesen
2002-02-07 20:33     ` Richard B. Johnson
2002-02-07 21:06       ` Chris Friesen [this message]
2002-02-07 21:29         ` Richard B. Johnson
2002-02-07 22:29         ` Mark Frazer
2002-02-08  8:35   ` Ian Molton
  -- strict thread matches above, loose matches on Subject: below --
2002-02-07 20:37 Perches, Joe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C62EC67.FCB9958A@nortelnetworks.com \
    --to=cfriesen@nortelnetworks.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=joe.perches@spirentcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox