Re: [Anima-signaling] GRASP and unicast UDP

Toerless Eckert <eckert@cisco.com> Wed, 17 August 2016 20:15 UTC

Return-Path: <eckert@cisco.com>
X-Original-To: anima-signaling@ietfa.amsl.com
Delivered-To: anima-signaling@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6FEE812D190 for <anima-signaling@ietfa.amsl.com>; Wed, 17 Aug 2016 13:15:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.768
X-Spam-Level:
X-Spam-Status: No, score=-15.768 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uMc3-F_yhMK5 for <anima-signaling@ietfa.amsl.com>; Wed, 17 Aug 2016 13:15:33 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE10A12D0FF for <anima-signaling@ietf.org>; Wed, 17 Aug 2016 13:15:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3060; q=dns/txt; s=iport; t=1471464933; x=1472674533; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kS57jLca03PQWA4CHHXePXwaCzTzjOU4KQXt2fzKUpk=; b=lZXFyX968U17qgbYljA4g5dQEpurRXGmghrlNnWWHuqBCwF8gYotOD4c QxRRhbKX1vBskotEN/nquIB4YcUHBBsVSQqB10SuovBGe4KiTMV4SOeH/ RQcrOJO1+jH+NW/dTceAMsIF50aZtFWS9Sz0sTBP0LuKqkHkQqQWKBcSS E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0B+AgChxLRX/5FdJa1eg0NWfLdSgX0kh?= =?us-ascii?q?XkCgWw4FAIBAQEBAQEBXieEXwEFAQE4NAsQCxgJJQ8FEzYTG4gWDr1JAQEBAQE?= =?us-ascii?q?BAQEBAQEBAQEBAQEBAQEBFwWKd4QqhXEFjxKKMo8UCo9JjDuDeB42hBocMocuA?= =?us-ascii?q?QEB?=
X-IronPort-AV: E=Sophos;i="5.28,535,1464652800"; d="scan'208";a="136982648"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Aug 2016 20:15:32 +0000
Received: from mcast-linux1.cisco.com (mcast-linux1.cisco.com [172.27.244.121]) by rcdn-core-9.cisco.com (8.14.5/8.14.5) with ESMTP id u7HKFWoC003207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Aug 2016 20:15:32 GMT
Received: from mcast-linux1.cisco.com (localhost.cisco.com [127.0.0.1]) by mcast-linux1.cisco.com (8.13.8/8.13.8) with ESMTP id u7HKFVhs028834; Wed, 17 Aug 2016 13:15:32 -0700
Received: (from eckert@localhost) by mcast-linux1.cisco.com (8.13.8/8.13.8/Submit) id u7HKFVMV028833; Wed, 17 Aug 2016 13:15:31 -0700
Date: Wed, 17 Aug 2016 13:15:31 -0700
From: Toerless Eckert <eckert@cisco.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <20160817201531.GG21039@cisco.com>
References: <c4d6fc66-a95f-83e3-1f65-1e7aec1c2696@gmail.com> <20160817062314.GA21039@cisco.com> <3b8b143c-fae8-9e77-f32b-0ba2b6f72654@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3b8b143c-fae8-9e77-f32b-0ba2b6f72654@gmail.com>
User-Agent: Mutt/1.4.2.2i
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima-signaling/6p-mAeEOw_9_cUzhD3Sfjf-XkWA>
Cc: Carsten Bormann <cabo@tzi.org>, Anima signaling DT <anima-signaling@ietf.org>
Subject: Re: [Anima-signaling] GRASP and unicast UDP
X-BeenThere: anima-signaling@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Mailing list for the signaling design team of the ANIMA WG <anima-signaling.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima-signaling>, <mailto:anima-signaling-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima-signaling/>
List-Post: <mailto:anima-signaling@ietf.org>
List-Help: <mailto:anima-signaling-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima-signaling>, <mailto:anima-signaling-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 20:15:44 -0000

Thanks, Brian

I think your self-experience with UDP should help to rule that out.
Not sure how much of that experience summary could go for example
into explanatory draft text. I am always a fan of that, but most people
on the IETF seemingly not.

Wrt to CoAP: I would hope that similar to bootstrap, we could define
CoAP as an extension, so that we can continue to keep the main GRASP
draft on a fast track to WGLC.

Cheers
    Toerless

On Thu, Aug 18, 2016 at 08:10:23AM +1200, Brian E Carpenter wrote:
> On 17/08/2016 18:23, Toerless Eckert wrote:
> > Thanks a lot for the insight. How about trying CoAP ?
> 
> Two comments on that.
> 
> 1) I woke up before the alarm went off this morning, and had exactly that
> thought. But I'd have to study CoAP in detail to understand whether it
> helps. Maybe Carsten can advise on this.
> 
> (In GRASP, you may get multiple simultaneous requests or multiple simultaneous
> discovery responses. The problem in a nutshell is that with TCP you have
> accept(), which fires up a new socket for each incoming transaction, but with
> UDP you have to manage sharing the socket yourself.)
> 
> 2) I also realised that we can't leave it open in GRASP whether discovery
> uses TCP or UDP for the discovery response. Otherwise discovery might not work
> between two random implementations.
> 
>    Brian
> 
> > 
> > On Wed, Aug 17, 2016 at 04:42:40PM +1200, Brian E Carpenter wrote:
> >> To entertain myself while waiting for comments on other matters, I spent
> >> quite some time (and swear words) on hacking the prototype GRASP to use
> >> UDP instead of TCP for unicast operations (i.e. discovery responses,
> >> synchronization responses, and negotiation).
> >>
> >> My conclusion is that it's a fairly silly thing to do, except possibly
> >> for discovery, which only involved a normal amount of debugging. I'm sure
> >> this is something that DNS server developers are very familiar with:
> >> writing a robust server handling things over UDP is a great deal harder
> >> than doing it with TCP. In fact I gave up when I realised that for
> >> the negotiation case (where there are an unpredictable number of messages
> >> in both directions) I was basically going to have to rewrite half of TCP,
> >> and still not have a robust solution. Without a lot more work, the UDP
> >> solution is riddled with timing-dependent issues. (At one point, adding
> >> a print statement for debugging fixed the bug, so that I simply couldn't
> >> debug it...)
> >>
> >> Of course, all this could be solved with more work, but I'm really not
> >> sure we should recommend UDP at all, except for discovery responses.
> >> I can't really imagine a real autonomic node that doesn't have TCP code.
> >>
> >> Comments?
> >>
> >>     Brian
> >>
> >> _______________________________________________
> >> Anima-signaling mailing list
> >> Anima-signaling@ietf.org
> >> https://www.ietf.org/mailman/listinfo/anima-signaling
> > 

-- 
---
Toerless Eckert, eckert@cisco.com