Re: [Taps] Drive-by comments on draft-fairhurst-taps-transports-usage-udp-01

worley@ariadne.com (Dale R. Worley) Thu, 07 April 2016 18:42 UTC

Return-Path: <worley@alum.mit.edu>
X-Original-To: taps@ietfa.amsl.com
Delivered-To: taps@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EED3512D564 for <taps@ietfa.amsl.com>; Thu, 7 Apr 2016 11:42:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.934
X-Spam-Level:
X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net
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 5sy95MEE0SP4 for <taps@ietfa.amsl.com>; Thu, 7 Apr 2016 11:42:10 -0700 (PDT)
Received: from resqmta-ch2-01v.sys.comcast.net (resqmta-ch2-01v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C27F12D195 for <taps@ietf.org>; Thu, 7 Apr 2016 11:42:09 -0700 (PDT)
Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by comcast with SMTP id oEsQae47hVEtuoEsbandOc; Thu, 07 Apr 2016 18:42:09 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1460054529; bh=z25WBoZs0aoRHDF5YWwbCSdeiDe0OCDGrys3Qbu5a2E=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=ovlrVNNOSg+qTn65ZZEqSmlS31Gj/km2zeRvYrmoyQF6MuDnXLwtgt32ry8Oc1AQg T/eH782EYdJioK4ekZ4XXIyPwfT0lXO44oK9hRVXgl0vYdCreEDtlEQyEXpZK8NlH0 rgo0u9NaGHpyQ6LxECNQYNVWhEk+/Jbg0YaA8E83mi7MP4FcoSkwyWKzr9IFHXjrTV RdCGFOzm4zn03sTGJVluhtornrTN7KkWhXY4TtsD7WlEXy4l1a698rUbZAHlJ9mvRa TbA+BJJWabGa9/D6+sozaph0iUMbUV4YgBU5wOL3eDpJOq6MkZUof6tzDTZpqJlZI7 SWM1KnYpI1vHw==
Received: from hobgoblin.ariadne.com ([73.143.237.82]) by resomta-ch2-18v.sys.comcast.net with comcast id fWi81s00C1nMCLR01Wi8Ut; Thu, 07 Apr 2016 18:42:09 +0000
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id u37Ig708022904; Thu, 7 Apr 2016 14:42:07 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id u37Ig6pI022900; Thu, 7 Apr 2016 14:42:06 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: gorry@erg.abdn.ac.uk
In-Reply-To: <1289953456f002c1c71e90d9998a67de.squirrel@erg.abdn.ac.uk> (gorry@erg.abdn.ac.uk)
Sender: worley@ariadne.com
Date: Thu, 07 Apr 2016 14:42:06 -0400
Message-ID: <87egahtg5d.fsf@hobgoblin.ariadne.com>
Archived-At: <http://mailarchive.ietf.org/arch/msg/taps/wojmgPQ2-pb8a2opHDPvv59pvTU>
Cc: taps@ietf.org
Subject: Re: [Taps] Drive-by comments on draft-fairhurst-taps-transports-usage-udp-01
X-BeenThere: taps@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Discussions on Transport Services <taps.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/taps>, <mailto:taps-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/taps/>
List-Post: <mailto:taps@ietf.org>
List-Help: <mailto:taps-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/taps>, <mailto:taps-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Apr 2016 18:42:12 -0000

gorry@erg.abdn.ac.uk writes:
> I agree - the current format from the text comes from the existing text 
> for TCP and SCTP in another draft. and I think we  may need to work out
> how to handle
> [...]
> I probably need help - I think there are different many ways in which UDP
> uses ports. Offers from anyone on how to get started would be great.

Even in TCP, the semantics of connection setup is more complicated that
you'd think at first.  If I have it correctly, it runs:

	Passive		Active
	Endpoint	Endpoint

	Create socket
	Bind socket to listening address
	Activate listening

			Create socket
			Connect

	Incoming connection event
	Accept connection

At least in the protocol, it's possible for both endpoints to be active,
but they have to have prior agreement regarding the addresses and ports
and send their initial packets within one RTT of each other, so I don't
know if that possibility is ever used in practice.  Or whether the
Berkeley sockets API supports it.

OTOH, the TAPS work might not be attempting to capture the semantics of
connection setup.

The process for UDP is not much simpler.  My memory is:

	Passive		Active
	Endpoint	Endpoint

	Create socket
	Bind socket to listening address

			Create socket
			Send-to -or- Connect, then Send

	Incoming connection event
	Connect (in the TAPS paradigm)
	Incoming packet event
	Receive packet

Dale