Re: [port-srv-reg] we need to make progress

Stuart Cheshire <cheshire@apple.com> Sat, 04 September 2010 07:32 UTC

Return-Path: <cheshire@apple.com>
X-Original-To: port-srv-reg@core3.amsl.com
Delivered-To: port-srv-reg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id EC5AD3A67C2 for <port-srv-reg@core3.amsl.com>; Sat, 4 Sep 2010 00:32:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.413
X-Spam-Level:
X-Spam-Status: No, score=-106.413 tagged_above=-999 required=5 tests=[AWL=0.186, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xOyLRcG5l1fh for <port-srv-reg@core3.amsl.com>; Sat, 4 Sep 2010 00:32:36 -0700 (PDT)
Received: from mail-out3.apple.com (mail-out.apple.com [17.254.13.22]) by core3.amsl.com (Postfix) with ESMTP id DE6953A6403 for <port-srv-reg@ietf.org>; Sat, 4 Sep 2010 00:32:35 -0700 (PDT)
Received: from relay11.apple.com (relay11.apple.com [17.128.113.48]) by mail-out3.apple.com (Postfix) with ESMTP id A9F12A632C25 for <port-srv-reg@ietf.org>; Sat, 4 Sep 2010 00:33:05 -0700 (PDT)
X-AuditID: 11807130-b7cf8ae0000058d2-1b-4c81f631c783
Received: from et.apple.com (et.apple.com [17.151.62.12]) by relay11.apple.com (Apple SCV relay) with SMTP id 2F.6B.22738.136F18C4; Sat, 4 Sep 2010 00:33:05 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Content-type: text/plain; charset=us-ascii
Received: from [10.0.1.43] (c-24-6-164-127.hsd1.ca.comcast.net [24.6.164.127]) by et.apple.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPSA id <0L87003IGOZ49190@et.apple.com> for port-srv-reg@ietf.org; Sat, 04 Sep 2010 00:33:05 -0700 (PDT)
From: Stuart Cheshire <cheshire@apple.com>
In-reply-to: <4C812B37.1030504@isi.edu>
Date: Sat, 04 Sep 2010 00:33:04 -0700
Message-id: <675AFB53-CFEC-4BC1-9C9E-EF6D12529E37@apple.com>
References: <6EC7B8A7-C3B3-4E63-85A9-0DC31F4D45B4@nokia.com> <58FA4E25-57CE-4D07-BFBA-A708F3616128@apple.com> <4C812B37.1030504@isi.edu>
To: Joe Touch <touch@ISI.EDU>
X-Mailer: Apple Mail (2.1081)
X-Brightmail-Tracker: AAAAAA==
Cc: port-srv-reg@ietf.org
Subject: Re: [port-srv-reg] we need to make progress
X-BeenThere: port-srv-reg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discussion of updates to service name and transport protocol port registry <port-srv-reg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/port-srv-reg>, <mailto:port-srv-reg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/port-srv-reg>
List-Post: <mailto:port-srv-reg@ietf.org>
List-Help: <mailto:port-srv-reg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/port-srv-reg>, <mailto:port-srv-reg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Sep 2010 07:32:39 -0000

On 3 Sep 2010, at 10:07, Joe Touch wrote:

>> This implies that a given service name can have *different* port
>> numbers assigned for different transport protocols.
> 
> That is correct, and always has been.

Can you give an example?

In reality, almost no application protocol actually runs over multiple transport protocols.

The only example I know that people tend to cite is DNS, and even that is not strictly the same application protocol over different transport protocols -- over TCP DNS has a two-byte length; over UDP it does not.

> I don't like the idea of a primary alias either; there's no notion of it
> in the way users interact with port indices (/etc/ports or SRVs).

Yes, there is. Safari browses for _http._tcp. Nothing browses for _www._tcp. If your web server advertises _www._tcp then nothing will find it. There's no reason to ever advertise or browse for _www._tcp.

> Agreed. However, note that the document itself creates a number of
> aliases for names that don't follow the new syntax.

And the new names are all the "primary" name to be used in SRV records and similar.

>> Why do we have BNF in this document? 
> 
> Because we are declaring a syntax, and BNF is the only unabiguous way to
> do so.

Not true. There are many ways to explain things unambiguously.

BNF is good for describing languages with recursive structure. For example, in C, an "if" statement contains an expression, and a statement. That statement can itself be another "if" statement, and so on, without limit. BNF is good at expressing this. Our service name syntax has no such recursive structure, which makes BNF a poor way of describing it.

Stuart Cheshire <cheshire@apple.com>
* Wizard Without Portfolio, Apple Inc.
* www.stuartcheshire.org