Re: [xmpp] Help on XMPP/Jabber Origin for STUN/TURN

Alan Johnston <alan.b.johnston@gmail.com> Fri, 01 August 2014 16:43 UTC

Return-Path: <alan.b.johnston@gmail.com>
X-Original-To: xmpp@ietfa.amsl.com
Delivered-To: xmpp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC3CF1A0169 for <xmpp@ietfa.amsl.com>; Fri, 1 Aug 2014 09:43:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 abeKBqlLp9NB for <xmpp@ietfa.amsl.com>; Fri, 1 Aug 2014 09:43:06 -0700 (PDT)
Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9BABC1A012D for <xmpp@ietf.org>; Fri, 1 Aug 2014 09:43:05 -0700 (PDT)
Received: by mail-wi0-f178.google.com with SMTP id hi2so1675263wib.5 for <xmpp@ietf.org>; Fri, 01 Aug 2014 09:43:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jAv/L7JbXtRmhUoMryMxaS8IrX1dWjNX1UdF0lOrVWs=; b=EreSf+3pFlEHuNe1VfFe9OqxJMmjOeX478rVYT2fwbnd3vVqZ7EKlagFllJEw2n5uy OqIoO37A3k6czFAXSslhNPRNRUYT1krRySSC+lBvz4sPKfe881vEVIWItqFR50Ul7ad+ ESsXIUFYhtebGZhqwdpTeoBUxqPNyqJNj3hV72yEnQXd8gnLkU7OsaCqPxE/atlmbPe9 tkak7PJ/wrR85zIBeMo5WpvfjbC/wjkTz59jtPn7/eFQck88AZGQS9zrL4n7t6Wm6e8v OKAOtIfmwg1aS6cQwOgJoAtyOm6J9SAZNRkdzM5LEEoeimQzhYeP2NRwenWm2pArRg7f p2uQ==
MIME-Version: 1.0
X-Received: by 10.180.73.6 with SMTP id h6mr8286511wiv.65.1406911384226; Fri, 01 Aug 2014 09:43:04 -0700 (PDT)
Received: by 10.216.108.135 with HTTP; Fri, 1 Aug 2014 09:43:04 -0700 (PDT)
In-Reply-To: <CAKHUCzzLvW_p8MFwc42oVVZaafMgYp2mVZNszXfhaSHx=i5VZg@mail.gmail.com>
References: <CAKhHsXEN2ZfSzbj3ZP3X=qA7UObOX1CYiuY+zM_xSWiqALSGQQ@mail.gmail.com> <CAKHUCzzLvW_p8MFwc42oVVZaafMgYp2mVZNszXfhaSHx=i5VZg@mail.gmail.com>
Date: Fri, 01 Aug 2014 11:43:04 -0500
Message-ID: <CAKhHsXFTEhcZuZMi6HgzLD7bjb6mCt_6GfRbBT9bGKYzW4ySUQ@mail.gmail.com>
From: Alan Johnston <alan.b.johnston@gmail.com>
To: Dave Cridland <dave@cridland.net>
Content-Type: multipart/alternative; boundary="f46d043c7f0449921604ff9415e9"
Archived-At: http://mailarchive.ietf.org/arch/msg/xmpp/UMxtsglee8HhpPwhIZfK5mCw8fU
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] Help on XMPP/Jabber Origin for STUN/TURN
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp/>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Aug 2014 16:43:09 -0000

Dave,

Thanks for the feedback.  There are two main use cases for the extension in
multi-domain STUN/TURN servers.  One is for logging, and the other is for
realm selection.  For the former, the server doesn't need to parse it, just
log in.  For the other case, the server just needs to extract a domain name
that can hopefully be mapped to a realm.

The goal here is to make things simple on the client and have the client
just include something that it already knows in a known format.  This why
an HTTP origin and SIP registrar URI have been chosen.  We just need an
equivalent in XMPP that a domain can be identified/extracted.  STUN already
has a USERNAME attribute that can be used for individual client
identification - the goal isn't to replicate that here.

- Alan -


On Fri, Aug 1, 2014 at 11:23 AM, Dave Cridland <dave@cridland.net> wrote:

> You might want to flag this with the standards@xmpp.org list, and/or the
> jingle@xmpp.org list.
>
> My main comment is that since SIP and HTTP both use URIs here, you don't
> want to use a jid, you want an XMPP URI. Whether this should be a URI to
> the server, the account, or the client, really depends on what a STUN
> server is meant to do with it.
>
> My gut feeling is that you want just the server for most use-cases, but a
> full jid might be more useful in others.
>
> Also, my gut - which my wife says is growing, hence its ability to have
> multiple opinions - says that you quite possibly want a bare domain in all
> cases rather than a URI, since the realm-like use-cases are otherwise going
> to imply that a STUN server know how to parse SIP, XMPP, and HTTP URIs, and
> anything else that comes along later.
>
> I've the vaguest notion that given the spread of use-cases, you possibly
> want two attributes - an origin domain and an initiator URI.
>
>
> On 1 August 2014 15:50, Alan Johnston <alan.b.johnston@gmail.com> wrote:
>
>> Hi,
>>
>> In the TRAM WG, we are working on an extension to STUN/TURN for a client
>> to convey origin information to a server.
>>
>>      http://tools.ietf.org/html/draft-ietf-tram-stun-origin
>>
>> The driver for this effort is WebRTC, where the origin is the HTTP origin
>> of the web site that is establishing the Peer Connection.  Other users of
>> STUN and TURN can also provide origin information.  The draft currently has
>> this text about SIP and XMPP:
>>
>>    For a SIP User Agent [RFC3261] using STUN and TURN, the ORIGIN
>>    attribute is set to be the URI of the registrar server used by the
>>    User Agent (i.e. the Request-URI of a REGISTER method).
>>
>>    For a Jabber client [RFC6120] using STUN and TURN, the ORIGIN
>>    attribute is the Jabber ID (JID) [RFC6122] of the Jabber Server that
>>    the client is using.
>>
>> We would greatly appreciate feedback from you on what this text should
>> say about XMPP/Jabber in terms of a useful origin.
>>
>> - Alan -
>>
>> _______________________________________________
>> xmpp mailing list
>> xmpp@ietf.org
>> https://www.ietf.org/mailman/listinfo/xmpp
>>
>>
>