Re: [port-srv-reg] "xmp" service type and the unified IANA Service Name and Port Number Registry

Stuart Cheshire <cheshire@apple.com> Fri, 26 August 2011 05:58 UTC

Return-Path: <cheshire@apple.com>
X-Original-To: port-srv-reg@ietfa.amsl.com
Delivered-To: port-srv-reg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB2F721F8A7B for <port-srv-reg@ietfa.amsl.com>; Thu, 25 Aug 2011 22:58:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level:
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EoAv4jZPb6we for <port-srv-reg@ietfa.amsl.com>; Thu, 25 Aug 2011 22:58:12 -0700 (PDT)
Received: from mail-out.apple.com (mail-out.apple.com [17.151.62.49]) by ietfa.amsl.com (Postfix) with ESMTP id 2FA6121F8A57 for <port-srv-reg@ietf.org>; Thu, 25 Aug 2011 22:58:12 -0700 (PDT)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from relay11.apple.com ([17.128.113.48]) by mail-out.apple.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPS id <0LQI00C1GTXXJ072@mail-out.apple.com> for port-srv-reg@ietf.org; Thu, 25 Aug 2011 22:59:26 -0700 (PDT)
X-AuditID: 11807130-b7c45ae000001381-35-4e5735bd667e
Received: from jimbu (jimbu.apple.com [17.151.62.37]) (using TLS with cipher RC4-MD5 (RC4-MD5/128 bits)) (Client did not present a certificate) by relay11.apple.com (Apple SCV relay) with SMTP id C5.AD.04993.DB5375E4; Thu, 25 Aug 2011 22:57:17 -0700 (PDT)
Received: from [10.0.1.15] (173-164-252-149-SFBA.hfc.comcastbusiness.net [173.164.252.149]) by cardamom.apple.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LQI005R3TZ11110@cardamom.apple.com> for port-srv-reg@ietf.org; Thu, 25 Aug 2011 22:59:26 -0700 (PDT)
From: Stuart Cheshire <cheshire@apple.com>
In-reply-to: <CA7C879E.F7AE%joe.hildebrand@webex.com>
Date: Thu, 25 Aug 2011 22:59:25 -0700
Message-id: <21610AF4-C1D5-4DA0-BBF4-33A8463B2B73@apple.com>
References: <CA7C879E.F7AE%joe.hildebrand@webex.com>
To: Joe Hildebrand <joe.hildebrand@webex.com>
X-Mailer: Apple Mail (2.1084)
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsUiON1OVXevabifwfb5WhZd34QcGD2WLPnJ FMAYxWWTkpqTWZZapG+XwJVx9/MUtoJ13BUb9/9ma2BcwdnFyMkhIWAicbX/HhuELSZx4d56 IJuLQ0iglUli26avjCAJXgFBiR+T77F0MXJwMAvISxw8LwsSZhbQkvj+qJUFxBYSOMEk8eYf P4gtLJAtMffmFrBWNqCaF5+vgM3nFDCV+Nj1HsxmEVCV2LzuFRvESBOJP19sIDbZSDy/d5YZ YqSJxO3ne9lBbBEBXYknP/6AlUsIyEo0LcuYwCgwC8ltsxBum4XktgWMzKsYBYtScxIrDQ31 EgsKclL1kvNzNzGCAq6h0GAH49qf/IcYBTgYlXh4L+aE+QmxJpYVV+YeYpTgYFYS4a3XC/cT 4k1JrKxKLcqPLyrNSS0+xCjNwaIkzit7PchPSCA9sSQ1OzW1ILUIJsvEwSnVwGjrtXnHe4Y6 l7z17Reibm49Z14R4/9DVDeh7Pqa7Pv/WS9NfLRVVuf40+9PJjrXmEx/e6Z3xmu2jfd/xU26 /fK/U+nNhmTx2MRLwU5GPk85vzuUa5ikpi7f93lB9rHz5Te41zKcdq3yYHnZFGlbtnvOLIVj Lq1rZnP3vz+q8GbZOqbG79nvVxorsRRnJBpqMRcVJwIAQDgMDzQCAAA=
Cc: port-srv-reg@ietf.org
Subject: Re: [port-srv-reg] "xmp" service type and the unified IANA Service Name and Port Number Registry
X-BeenThere: port-srv-reg@ietf.org
X-Mailman-Version: 2.1.12
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/options/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: Fri, 26 Aug 2011 05:58:12 -0000

On 25 Aug 2011, at 22:13, Joe Hildebrand wrote:

> In case that wasn't just a rhetorical flourish, look up the XMPP federation
> information for GoogleTalk:
> 
> $ dig +short -t SRV _xmpp-server._tcp.gmail.com.
> 5 0 5269 xmpp-server.l.google.com.
> 20 0 5269 alt3.xmpp-server.l.google.com.
> 20 0 5269 alt4.xmpp-server.l.google.com.
> 20 0 5269 alt1.xmpp-server.l.google.com.
> 20 0 5269 alt2.xmpp-server.l.google.com.

We're delving into software deployment philosophy a bit here, but this is a good example.

A sensible strategy to ship (client or server) software is:

  If an SRV record exists, then use it,
  else, if a local /etc/services entry exists, then use it,
  else use the port IANA assigned to you.

This lets you write software and ship it right away, without waiting for some future OS update.

Since the software writer already knows what port IANA assigned, the /etc/services entry is only relevant when it's *different* to the port IANA assigned. The logical conclusion of this line of thought is that it's only necessary to record *exceptions* in your local /etc/services file, since all the apps already know their IANA-assigned default (and if every OS update were to overwrite your /etc/services file with the latest IANA version, overwriting your local changes, you'd get pretty annoyed by that).

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