Re: [Spud] SPUD's open/close are unconvincing

Toerless Eckert <eckert@cisco.com> Thu, 09 April 2015 16:21 UTC

Return-Path: <eckert@cisco.com>
X-Original-To: spud@ietfa.amsl.com
Delivered-To: spud@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 57AD01A1B46 for <spud@ietfa.amsl.com>; Thu, 9 Apr 2015 09:21:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.911
X-Spam-Level:
X-Spam-Status: No, score=-13.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_62=0.6, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 5cz-3zipJ9sk for <spud@ietfa.amsl.com>; Thu, 9 Apr 2015 09:21:36 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A34A51A8895 for <spud@ietf.org>; Thu, 9 Apr 2015 09:21:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1807; q=dns/txt; s=iport; t=1428596494; x=1429806094; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=a2ueIFuzRkLYuvX0siKstsUDQUIlFWMdoQq7sTiZ5Fg=; b=Mxk8w8B6jKJ7u5t1lXtIam0iOhoxX+k7fLZ9RYVMipWaLx0Z+lYqRj4L 59pNYm8g1EHy/CwnP9CRpvbKJVliqYpyYRM5w1JC0UnboWWfqUStuvczq rArgBU0tYMvb8QPAexAqVLGRh0OMUatqeNu7hu/8Vb6msEaLxIH4vivV9 M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BMBABEpiZV/5tdJa1cgwiBLsRCCYdQAoFBOBQBAQEBAQEBfYQgAQEEOj8QCxgJJQ8FSROIKs42AQEBAQEBAQEBAQEBAQEBAQEBAQEBF4srhHwHhC0FiyePXQGBHY99g0sihA8eMYJDAQEB
X-IronPort-AV: E=Sophos;i="5.11,550,1422921600"; d="scan'208";a="139762513"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-5.cisco.com with ESMTP; 09 Apr 2015 16:21:34 +0000
Received: from mcast-linux1.cisco.com (mcast-linux1.cisco.com [172.27.244.121]) by rcdn-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id t39GLXJ3013391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Apr 2015 16:21:33 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 t39GLWeL019594; Thu, 9 Apr 2015 09:21:32 -0700
Received: (from eckert@localhost) by mcast-linux1.cisco.com (8.13.8/8.13.8/Submit) id t39GLWqH019592; Thu, 9 Apr 2015 09:21:32 -0700
Date: Thu, 9 Apr 2015 09:21:32 -0700
From: Toerless Eckert <eckert@cisco.com>
To: Tom Herbert <tom@herbertland.com>
Message-ID: <20150409162132.GT24286@cisco.com>
References: <87iod631nv.fsf@alice.fifthhorseman.net> <DM2PR0301MB06555C7D7F32A69214405D44A8FC0@DM2PR0301MB0655.namprd03.prod.outlook.com> <20150408193920.GD24286@cisco.com> <871tju2rdq.fsf@alice.fifthhorseman.net> <20150409012229.GG24286@cisco.com> <CALx6S35NH9yPZxeARTic10b0jFEi8aC4Gmt79cxuzF_VpYYqLA@mail.gmail.com> <20150409041507.GJ24286@cisco.com> <CAMm+LwgD8Foe=JdJvZ4oeuhGkJJvUaNOsCJATGDsRmBwN4en_w@mail.gmail.com> <20150409135509.GK24286@cisco.com> <CALx6S35a2uGgRXBZSouLfEE-1CU8khSuz66=P_xg7c28FBAbSw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CALx6S35a2uGgRXBZSouLfEE-1CU8khSuz66=P_xg7c28FBAbSw@mail.gmail.com>
User-Agent: Mutt/1.4.2.2i
Archived-At: <http://mailarchive.ietf.org/arch/msg/spud/de93NVDhw7eS-cOvs6aVF6or0C8>
Cc: Phillip Hallam-Baker <phill@hallambaker.com>, Daniel Kahn Gillmor <dkg@fifthhorseman.net>, "spud@ietf.org" <spud@ietf.org>
Subject: Re: [Spud] SPUD's open/close are unconvincing
X-BeenThere: spud@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Session Protocol Underneath Datagrams <spud.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spud>, <mailto:spud-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/spud/>
List-Post: <mailto:spud@ietf.org>
List-Help: <mailto:spud-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spud>, <mailto:spud-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Apr 2015 16:21:37 -0000

On Thu, Apr 09, 2015 at 08:42:07AM -0700, Tom Herbert wrote:
> On Thu, Apr 9, 2015 at 6:55 AM, Toerless Eckert <eckert@cisco.com> wrote:
> > On Thu, Apr 09, 2015 at 09:09:17AM -0400, Phillip Hallam-Baker wrote:
> >> TCP should probably not happen in the kernel either. Nor should
> >> printer drivers be in the kernel or anything that does not require the
> >> intermediation of the security monitor.
> >
> > Right. As an OS person i would love for someone to implement a
> > "raw transport socket" option for unprivileged processes. Implement
> > in linux, go to POSIX, spend a decade trying to get it proliferated across
> > OSs.
> >
> Good luck on finding an OS vendor willing to give random applications
> unfettered access to the network. Anyway, you can already do this by
> just wrapping whatever you want in UDP-- TCP, SCTP, RDMA, whatever.

I didn't say "raw ip socket", "pcap socket" or the like. "raw transport
socket"to me means something that behaves pretty much like a UDP
socket only that you can select the IP layer protocol from a list
of eg: OS level configured options. That list could include all the
transport protocols that share the common method of 4-byte demultiplexing
header with Sport/Dport. Eg: TCP, SCTP, and a few others. So the kernel
would still do the demultiplexing bas on either (*,Dport) for sockets
in listening state and (Sport,Dport) for sockets in connected state.

But fully agree with your conclusion. This would be design wise nice and
clean, but has no business opportunity to it to make it worth our while.
Just use UDP and declare it to be the mandatory future OS-level demultiplexer
layer for any future transport (+ the discussion that we likely want to
have that SPUD like layer for common flow-setup).

Cheers
    Toerless