From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7e490a18b9688bd9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.20.225 with SMTP id q1mr224858pbe.22.1316247533598; Sat, 17 Sep 2011 01:18:53 -0700 (PDT) Path: m9ni8093pbd.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Stream_Element_Array Date: Sat, 17 Sep 2011 10:18:52 +0200 Organization: cbb software GmbH Message-ID: <1irfz74673rq2$.mw7uso2c4ivu$.dlg@40tude.net> References: <28u4e86fk8gn$.ialexttobgr0$.dlg@40tude.net> <276b8d0a-5b3c-4559-a275-98620657cc2f@s30g2000pri.googlegroups.com> <01c12338-e9f8-49ab-863d-c8282be3875e@g31g2000yqh.googlegroups.com> <1esmml9qftomp.vihelaijmcar$.dlg@40tude.net> <02671fc7-5c38-42dc-8017-529f6dead8fd@j19g2000yqc.googlegroups.com> <631f3859-8118-4f4c-a684-152ee5f589bf@o15g2000vbe.googlegroups.com> <1ha21cmm4ub0x.1x5tkefenjm53$.dlg@40tude.net> <1agiqouo0byd0$.12u30ddt25czu$.dlg@40tude.net> <1ag8afgfoatci$.213fr4mlgqhr$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: v1unXtVHH3OmHkxoJWmV2g.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:18002 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-09-17T10:18:52+02:00 List-Id: On Fri, 16 Sep 2011 23:18:21 +0100, Simon Wright wrote: > On the other hand, if you have a tracker radar reporting target > positions every 2 ms (I'm making that number up) it probably won't > matter if you miss one or two reports, so as long as you take care not > to use an out-of-order report UDP might not be inappropriate. Theoretically yes, if you measuring a physical contiguous value, you can live with losses. You cannot if you have discrete stuff: commands, impulses etc. But in reality even with physical values, if you have two, which are later used in some sort of control loop, you have to ensure them coherent. You could reconstruct missing points using time stamps, but then you would have to add stamps, synchronize clocks etc. In the end something always emerges on top of UDP. Even for broadcasting purposes there exist stream-oriented protocols, which are safe. We tested PGM, which showed quite decent latencies comparing to TCP/IP + NO_DELAY. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de