Re: [Stox] core: connecting to remote domain

Salvatore Loreto <salvatore.loreto@ericsson.com> Thu, 20 June 2013 09:11 UTC

Return-Path: <salvatore.loreto@ericsson.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4D31621F9E58 for <stox@ietfa.amsl.com>; Thu, 20 Jun 2013 02:11:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.058
X-Spam-Level:
X-Spam-Status: No, score=-105.058 tagged_above=-999 required=5 tests=[AWL=0.321, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4, SARE_MLH_Stock1=0.87, 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 C-M9ghn6j0bh for <stox@ietfa.amsl.com>; Thu, 20 Jun 2013 02:11:13 -0700 (PDT)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id ECB2B21F9B3F for <stox@ietf.org>; Thu, 20 Jun 2013 02:11:11 -0700 (PDT)
X-AuditID: c1b4fb2d-b7f5d6d000003d54-ec-51c2c72a9731
Received: from esessmw0247.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id 68.8E.15700.A27C2C15; Thu, 20 Jun 2013 11:11:07 +0200 (CEST)
Received: from mail.lmf.ericsson.se (153.88.115.8) by esessmw0247.eemea.ericsson.se (153.88.115.94) with Microsoft SMTP Server id 8.3.279.1; Thu, 20 Jun 2013 11:11:06 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 70D5711041D for <stox@ietf.org>; Thu, 20 Jun 2013 12:11:06 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id E331F55398 for <stox@ietf.org>; Thu, 20 Jun 2013 12:11:03 +0300 (EEST)
Received: from Salvatore-Loretos-MacBook-Pro.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 745E455362 for <stox@ietf.org>; Thu, 20 Jun 2013 12:11:03 +0300 (EEST)
Message-ID: <51C2C729.3090204@ericsson.com>
Date: Thu, 20 Jun 2013 12:11:05 +0300
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: stox@ietf.org
References: <51C23237.30203@stpeter.im> <1050DBB5-7660-477A-BF07-F8BE853D0DFA@ag-projects.com>
In-Reply-To: <1050DBB5-7660-477A-BF07-F8BE853D0DFA@ag-projects.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPLMWRmVeSWpSXmKPExsUyM+Jvra728UOBBv8Ws1j839HE6sDosWTJ T6YAxigum5TUnMyy1CJ9uwSujGedn9gLFslVHF7zkLmBcZF4FyMnh4SAicSeS61sELaYxIV7 64FsLg4hgVOMEvMaF0I5Gxgljs6dyApSJSRwkVFi5VMzCPsQo8SeZY4QRacZJe427WQESfAK aEts+vcRqJuDg0VAVeJmTzFImE3ATOL5wy3MILaoQLLE5KkrWCDKBSVOznwCZosA2Tf+3WIH sYUFTCU+d/UzQeyKk+jYsx3sBk4BZ4kTk5rA6pkFbCUuzLkOZctLNG+dzQzxjZrE1XObmCF6 tSR6z3YyTWAUmYVk3Swk7bOQtC9gZF7FyJ6bmJmTXm64iREYyAe3/NbdwXjqnMghRmkOFiVx 3g+ndgUKCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRqYAy4oTzvVsq9XU2v86b9efXVqO92R8m7 uNWHXv0OV7xxpCdPw+ZYRkNbZIK098XtR599P82caqrtsW1/vNuRddOml346I/iWqzPmboDL Ju6tKnxKZ33lFWaEPHn7cedG9bb0pdNtQ1R877f9N/Q7ob5+1x2DxDzfv8abE9XPVOq777N7 3FKaMUeJpTgj0VCLuag4EQB6PpXKMgIAAA==
Subject: Re: [Stox] core: connecting to remote domain
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/stox>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jun 2013 09:11:21 -0000

Hi,

On 6/20/13 9:22 AM, Saúl Ibarra Corretgé wrote:
> Hi!
>
> On Jun 20, 2013, at 12:35 AM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> While working on the sip-xmpp-groupchat spec today, Saúl and I found
>> what I think is an open issue wiht the sip-xmpp-core spec: it doesn't
>> say how you determine whether a remote domain supports SIP or XMPP (or
>> both). This is needed for interdomain routing of messages. Thus I
>> think the sip-xmpp-core spec needs to contain something like the text
>> in Section 11.2 of RFC 3921:
>>
>> ###
>>
>> 11.2. Outbound Stanzas
>>
>>
>>    If the hostname of the domain identifier portion of the address
>>    contained in the 'to' attribute of an outbound stanza matches a
>>    hostname of the server itself, the server MUST deliver the stanza to
>>    a local entity according the rules for Inbound Stanzas (Section
>>    11.1).
>>
>>    If the hostname of the domain identifier portion of the address
>>    contained in the 'to' attribute of an outbound stanza does not match
>>    a hostname of the server itself, the server MUST attempt to route the
>>    stanza to the foreign domain.  The recommended order of actions is as
>>    follows:
>>
>>    1.  First attempt to resolve the foreign hostname using an [SRV]
>>        Service of "xmpp-server" and Proto of "tcp", resulting in
>>        resource records such as "_xmpp-server._tcp.example.com.", as
>>        specified in [XMPP-CORE].
>>
>>    2.  If the "xmpp-server" address record resolution fails, attempt to
>>        resolve the "_im" or "_pres" [SRV] Service as specified in
>>        [IMP-SRV], using the "_im" Service for <message/> stanzas and the
>>        "_pres" Service for <presence/> stanzas (it is up to the
>>        implementation how to handle <iq/> stanzas).  This will result in
>>        one or more resolutions of the form "_im.<proto>.example.com." or
>>        "_pres.<proto>.example.com.", where "<proto>" would be a label
>>        registered in the Instant Messaging SRV Protocol Label registry
>>        or the Presence SRV Protocol Label registry: either "_xmpp" for
>>        an XMPP-aware domain or some other IANA-registered label (e.g.,
>>        "_simple") for a non-XMPP-aware domain.
>>
>>    3.  If both SRV address record resolutions fail, attempt to perform a
>>        normal IPv4/IPv6 address record resolution to determine the IP
>>        address using the "xmpp-server" port of 5269 registered with the
>>        IANA, as specified in [XMPP-CORE].
>>
>>    Administrators of server deployments are strongly encouraged to keep
>>    the _im._xmpp, _pres._xmpp, and _xmpp._tcp SRV records properly
>>    synchronized, since different implementations might perform the "_im"
>>    and "_pres" lookups before the "xmpp-server" lookup.
>>
>> ###
>>
> Well, the problem is that in practice a given domain would have records for both SIP and XMPP, so which one would we check first? I'm not sure if we can define an unequivocal mechanism to choose the right target, so I'm tempted to suggest not to define it for the moment and leave it as a local policy item.

if a domain has a record for both SIP and XMMP
then if you are an XMPP client, it seems normal to me try first the XMPP one
(and the other way around if I am a SIP UA)

or I am missing something here?

>   If we come up with a way to do it later on, maybe we can create a new document updating sip-xmpp core?
>
>> However, we'd need text describing the discovery and decision process
>> in both directions (and IMHO we need to drop the _im and _pres SRV
>> stuff, as we did when working on RFC 6121).
>>
> I have never seen _im and _pres out in the wild, so I'm +1 on removing the mention to them.
+1 on removing them

/Salvatore