Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard

Gabriel Montenegro <Gabriel.Montenegro@microsoft.com> Fri, 22 July 2011 00:14 UTC

Return-Path: <Gabriel.Montenegro@microsoft.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 51CCC21F8782; Thu, 21 Jul 2011 17:14:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lOM8gJiaAt7g; Thu, 21 Jul 2011 17:14:27 -0700 (PDT)
Received: from smtp.microsoft.com (mail3.microsoft.com [131.107.115.214]) by ietfa.amsl.com (Postfix) with ESMTP id 8B52921F877D; Thu, 21 Jul 2011 17:14:27 -0700 (PDT)
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (157.54.79.180) by TK5-EXGWY-E803.partners.extranet.microsoft.com (10.251.56.169) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 21 Jul 2011 17:14:26 -0700
Received: from TK5EX14MLTW651.wingroup.windeploy.ntdev.microsoft.com (157.54.71.39) by TK5EX14MLTC102.redmond.corp.microsoft.com (157.54.79.180) with Microsoft SMTP Server (TLS) id 14.1.323.2; Thu, 21 Jul 2011 17:14:26 -0700
Received: from TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com ([169.254.5.188]) by TK5EX14MLTW651.wingroup.windeploy.ntdev.microsoft.com ([157.54.71.39]) with mapi id 14.01.0289.008; Thu, 21 Jul 2011 17:14:26 -0700
From: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
To: Bruce Atherton <bruce@callenish.com>, Dave Cridland <dave@cridland.net>
Thread-Topic: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
Thread-Index: AQHMR8o7lHZOnlMp5E682blrKHSyH5T3gDEAgAADn4CAAAJFgIAARziAgAABb4CAABgwgP//kMyw
Date: Fri, 22 Jul 2011 00:14:25 +0000
Message-ID: <CA566BAEAD6B3F4E8B5C5C4F61710C11403914B3@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
References: <20110711140229.17432.23519.idtracker@ietfa.amsl.com> <CALiegfk0zVVRBbOP4ugsVXKmcLnryujP6DZqF6Bu_dC2C3PpeQ@mail.gmail.com> <9031.1311082001.631622@puncture> <CALiegfk_GLAhAf=yEe6hYw2bwtxEwg9aJN+f0Bm9he5QgsRavA@mail.gmail.com> <CAP992=Ft6NwG+rbcuWUP0npwVNHY_znHmXmznBQO_krMo3RT6g@mail.gmail.com> <CALiegfmTWMP3GhS1-k2aoHHXkUkB+eWqV=2+BufuWVR1s2Z-EA@mail.gmail.com> <20110721163910.GA16854@1wt.eu> <CAP992=FrX5VxP2o0JLNoJs8nXXba7wbZ6RN9wBUYC0ZSN_wbAg@mail.gmail.com> <9031.1311270000.588511@puncture> <CALiegf=pYzybvc7WB2QfPg6FKrhLxgzHuP-DpuuMfZYJV6Z7FQ@mail.gmail.com> <CAP992=FJymFPKcPVWrF-LkcEtNUz=Kt9L_ex+kLtjiGjL1T46w@mail.gmail.com> <4E28A51F.4020704@callenish.com> <9031.1311286867.939466@puncture> <4E28BA9D.6010501@callenish.com>
In-Reply-To: <4E28BA9D.6010501@callenish.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.90]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: Server-Initiated HTTP <hybi@ietf.org>, IETF-Discussion <ietf@ietf.org>
Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The WebSocket protocol) to Proposed Standard
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Jul 2011 00:14:28 -0000

[As an individual]

I think the lack of DNS SRV for HTTP could also be because of the guidance in http://wiki.tools.ietf.org/html/draft-iab-dns-applications-02#section-4 that argues that DNS might not be the best approach for *all* HTTP applications. Perhaps also for WS applications...

It could be a good alternative to have, so I agree with pursuing it as a separate option in a different document.
	
> -----Original Message-----
> From: hybi-bounces@ietf.org [mailto:hybi-bounces@ietf.org] On Behalf Of
> Bruce Atherton
> Sent: Thursday, July 21, 2011 16:48
> To: Dave Cridland
> Cc: Server-Initiated HTTP; IETF-Discussion
> Subject: Re: [hybi] Last Call: <draft-ietf-hybi-thewebsocketprotocol-10.txt> (The
> WebSocket protocol) to Proposed Standard
> 
> On 21/07/2011 3:21 PM, Dave Cridland wrote:
> >
> > SRV lookup is pretty commonplace now in libraries. XMPP and SIP
> > clients have no difficulty finding this functionality in a wide
> > variety of environments. For the web, where there are substantially
> > fewer web browsers than there are XMPP clients, I don't think this
> > would pose any kind of problem.
> 
> Oh, it isn't hard, but it violates the principle of least surprise. Most people think
> they know how to code name resolution by using
> gethostbyname() or equivalent. And to do it efficiently, especially when we are
> operating in a world that is predominantly driven by HTTP servers, requires
> complexities like dealing with asynchronous calls to fetch the A and SRV records
> at the same time under the assumption that the SRV record probably won't exist.
> 
> >
> >> It can be argued that not using a MUST may well open up
> >> interoperability problems because some Websockets clients contact the
> >> wrong host. However, keep in mind that in the older SIP RFC2543 it
> >> provided two resolution mechanisms. It specified that clients SHOULD
> >> look up address records, but MAY use the DNS SRV mechanism. SIP
> >> survived that without too much of a hassle. And specifying that
> >> Websockets clients SHOULD use DNS SRV, but MAY use address records
> >> alone looks like an improvement.
> >>
> >>
> > SIP survived because it was very small. I don't see WS making a
> > transition, in the same way that repeated attempts have failed to move
> > HTTP to SRV.
> >
> > Dave.
> 
> As I understand it, the issue that caused the various drafts for HTTP SRV to die
> without getting much traction is one of efficiency. It is inefficient to make all
> these extra DNS calls, especially when it is unlikely that many of the records you
> are blocking on will exist. Other than the inefficiency, HTTP SRV is just an
> incremental technology you add to your existing DNS without hurting what
> already exists. Since Websockets uses the same infrastructure the records are
> unlikely to exist for it either, so the inefficiency issues are still present.
> 
> Hmm, I seem to be arguing myself out of supporting DNS SRV as the preferred
> location mechanism. That is not the case. I just think that we face some of the
> same challenges migrating Websockets to SRV as are faced by HTTP because we
> share the same environment for the most part.
> Willy's example of a proxy that doesn't know how to resolve host names using
> the SRV method is a good example. But by advocating for the deployment of
> SRV records as a best practice for Websockets, we may improve things in the
> HTTP world as well. It is a shame there is no standard defined for HTTP SRV to
> point to.
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi