Re: [Stox] core: connecting to remote domain

Salvatore Loreto <salvatore.loreto@ericsson.com> Thu, 20 June 2013 09:17 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 59F3D21E80FD for <stox@ietfa.amsl.com>; Thu, 20 Jun 2013 02:17:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.122
X-Spam-Level:
X-Spam-Status: No, score=-105.122 tagged_above=-999 required=5 tests=[AWL=0.257, 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 UEp2lUlvLHal for <stox@ietfa.amsl.com>; Thu, 20 Jun 2013 02:16:54 -0700 (PDT)
Received: from mailgw1.ericsson.se (mailgw1.ericsson.se [193.180.251.45]) by ietfa.amsl.com (Postfix) with ESMTP id B356F21F9F45 for <stox@ietf.org>; Thu, 20 Jun 2013 02:16:53 -0700 (PDT)
X-AuditID: c1b4fb2d-b7f5d6d000003d54-a5-51c2c8845c3f
Received: from esessmw0184.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw1.ericsson.se (Symantec Mail Security) with SMTP id 2F.4F.15700.488C2C15; Thu, 20 Jun 2013 11:16:52 +0200 (CEST)
Received: from mail.lmf.ericsson.se (153.88.115.8) by esessmw0184.eemea.ericsson.se (153.88.115.82) with Microsoft SMTP Server id 8.3.279.1; Thu, 20 Jun 2013 11:16:52 +0200
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id EA62711041D for <stox@ietf.org>; Thu, 20 Jun 2013 12:16:51 +0300 (EEST)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 74CEA553A5 for <stox@ietf.org>; Thu, 20 Jun 2013 12:16:49 +0300 (EEST)
Received: from Salvatore-Loretos-MacBook-Pro.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id D825A55347 for <stox@ietf.org>; Thu, 20 Jun 2013 12:16:48 +0300 (EEST)
Message-ID: <51C2C882.5050107@ericsson.com>
Date: Thu, 20 Jun 2013 12:16:50 +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> <B66E77A7-ADB3-48F4-B359-8839D6EAAD64@ag-projects.com>
In-Reply-To: <B66E77A7-ADB3-48F4-B359-8839D6EAAD64@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+NgFlrILMWRmVeSWpSXmKPExsUyM+JvrW7LiUOBBlufi1n839HE6sDosWTJ T6YAxigum5TUnMyy1CJ9uwSujPuLtrAWbFCr6NyxjqWBcbVcFyMHh4SAicTWfZldjJxAppjE hXvr2boYuTiEBE4xSrTsvM0I4WxglNh8cT4LhHMRyPn7Fco5xChxvf8wK4RzmlHi8+W1zCBz eQW0JV6ftwSZyyKgKjFnzgdWEJtNwEzi+cMtzCC2qECyxOSpK1hAbF4BQYmTM5+A2SJA9o1/ t9hBbGEBU4nPXf1MEPOnMko8+TQbrJlTwFni4fftYEXMArYSF+ZcZ4Gw5SWat0LUSAioSVw9 twnMFhLQkug928k0gVFkFpJ9s5C0z0LSvoCReRUje25iZk56ueEmRmAwH9zyW3cH46lzIocY pTlYlMR5P5zaFSgkkJ5YkpqdmlqQWhRfVJqTWnyIkYmDU6qBMS34dlCZcdf1W4YxNva3z7Ix K1hciJo9d8WCFbXcnke/tWY5lDa2MIa2abEwrU65t0vM8fvJ/REXr881tnkRxrJydu05q2+n lW7Zz1Y45SqcnJNzYbJLgjULn8yT142hK30sJASSBW0nqshe3nRuzl7vQ2ZGN6578TLEffC9 +1mp6ufzU1IKSizFGYmGWsxFxYkARn+zZjQCAAA=
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:17:03 -0000

On 6/20/13 9:28 AM, Adrian Georgescu wrote:
> XMPP has defined DNS records for both C2S and S2S connections. One domain may have a server to server XMPP capability but would not accept client connections (missing correspondent  DNS record), this would give me a clue that that foreign domain has such XMPP 2 SIP gateway in place and if I am a client of that domain I know I cannot use an XMPP client for it.
sorry but what would be the reason to have (and expose thru DNS) an 
XMPP2SIP gateway and then not let it to be accessible from a client?
are you assuming that a XMPP2SIP gateway is always only an outbound one?

/Salvatore

> For SIP however, is not clear as the same DNS records are used both by clients and servers to locate the Proxy/Registrar for a given domain. This is the missing piece that makes a heuristic approach not 100% accurate.
>
> Adrian
>
>
> On Jun 20, 2013, at 8:22 AM, Saúl Ibarra Corretgé <saul@ag-projects.com> 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 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.
>>
>> --
>> Saúl Ibarra Corretgé
>> AG Projects
>>
>>
>>
>> _______________________________________________
>> stox mailing list
>> stox@ietf.org
>> https://www.ietf.org/mailman/listinfo/stox
>>
> _______________________________________________
> stox mailing list
> stox@ietf.org
> https://www.ietf.org/mailman/listinfo/stox