comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: UDP networking with Ada
Date: Fri, 8 Mar 2013 16:39:46 +0100
Date: 2013-03-08T16:39:46+01:00	[thread overview]
Message-ID: <16ylieomzpchm$.l6pk6na8yrwv.dlg@40tude.net> (raw)
In-Reply-To: 58CdnbOaDPJBS6TM4p2dnAA@giganews.com

On Fri, 08 Mar 2013 07:17:32 -0500, Peter C. Chapin wrote:

> On 03/08/2013 07:12 AM, Dmitry A. Kazakov wrote:
> 
>  > Yes. UDP is wrong choice, almost always. For multicast purposes there exist
>  > stream-oriented protocols which supersede UDP, e.g. PGM. So, except for
>  > communication to legacy devices and LAN broadcasts UDP should never be
>  > used.
> 
> UDP is a good choice for simple request/response protocols where both 
> the request and the response are small enough to fit into a single 
> datagram.

No, because of non-delivery and ordering issues.

> For example: DNS. Also in this situation the overhead of TCP 
> might be considered undesirable.

Which is largely an urban legend.

1. Once the non-delivery, acknowledge, ordering etc issues solved, UDP
would likely have bigger overhead than TCP. Remember that some parts of
those in the case TCP are implemented directly by the hardware. Whereas for
UDP it is the application = the CPU, which must do all the job.

2. There is no OS under which you could choke 1000 Base, even 100 Base
Ethernet on a P2P connection.

3. We did measurements actually. Latencies of TCP/IP (with NO_DELAY) and
UDP are basically same under VxWorks and Windows.

UDP could be used for connectionless (=> stateless) stuff which is
basically limited to network announcements.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2013-03-08 15:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08  0:50 UDP networking with Ada Peter C. Chapin
2013-03-08  3:46 ` Randy Brukardt
2013-03-08 18:28   ` Tero Koskinen
2013-03-08  6:47 ` anon
2013-03-08  7:50   ` Simon Wright
2013-03-08 12:14   ` Peter C. Chapin
2013-03-08  8:37 ` Dmitry A. Kazakov
2013-03-08 11:50   ` Simon Wright
2013-03-08 12:12     ` Dmitry A. Kazakov
2013-03-08 12:17       ` Peter C. Chapin
2013-03-08 15:39         ` Dmitry A. Kazakov [this message]
2013-03-08  8:58 ` Jacob Sparre Andersen
2013-03-08 11:58 ` Stephen Leake
2013-03-16 22:27 ` Kevin K
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox