Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:ANN': 0.07; 'high- level': 0.09; 'other,': 0.09; 'retry': 0.09; 'timestamp': 0.09; 'cases': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'handshake': 0.16; 'nodes': 0.16; 'not;': 0.16; 'tcp': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'jan': 0.18; 'header :In-Reply-To:1': 0.25; 'am,': 0.27; 'handling': 0.27; 'message- id:@mail.gmail.com': 0.27; 'node': 0.29; '"the': 0.29; 'related': 0.30; 'connection': 0.30; 'could': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'protocol': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'uses': 0.37; 'why': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'high': 0.61; 'relatively': 0.62; 'different': 0.63; 'our': 0.65; 'counts': 0.81; '2013': 0.84; 'overhead,': 0.84; 'silence.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZLtXhiIME8FDyzHeZgzDAmom5sRLBqPjDl6NOgylw+E=; b=PqNrDsH+FUVtA8ba9YgENqAcU+xmzqB9F+wvhlP3jvFSAkRY6A9LpJDfgCxBhzuwfF PFBUw7YGKToh/KVOuBpDumswxURW6kZBGDlUXay5ys9HmV/XlsY6z/Mol3IL+E37Z9zu dFjGZt7pzDpHLFyficxlYp15Njj+EwizA+2o9Cx5548qf3k+IPmrLnXo/MDNyCA/6XDD pXykbdO9yVZKTWBXn51njPQXEdyrBzonl9m63+qqWK1zH+adBzKwirhbziZPpwfxJ7Zs kNAK1ljLnz6FIzEpWb5T+aXAJ9pNakvclYLPFxUSya3Cr9YQXxXYzFkQdO6YjN/I7LYW BaaA== MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 10 Jan 2013 08:45:01 +1100 Subject: Re: ANN: PyDTLS From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357767910 news.xs4all.nl 6861 [2001:888:2000:d::a6]:49417 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36521 On Thu, Jan 10, 2013 at 7:04 AM, rbit wrote: > The following are some of the main use cases that force applications into > datagram protocols: > > * Minimizing protocol overhead. TCP has relatively high overhead, > for example, its 3-way handshake for connection establishment. > One can see why DNS uses UDP. Yep. Related to that: One of our systems at work uses UDP rather than TCP in order to simplify the detection of node loss. Rather than working with TCP retry etc and handling the variety of different ways in which "the other node is down" could be reported, the nodes simply send UDP packets to each other, and keep track of the timestamp when one was last received. There's only one failure state: silence. Not sure if high-level protocol simplicity counts as the same thing or not; it's a different form of overhead. ChrisA