Re: [hybi] Ping/Pong body (was Re: TSV-Directorate review of draft-ietf-hybi-thewebsocketprotocol-07)

Takeshi Yoshino <tyoshino@google.com> Wed, 25 May 2011 03:08 UTC

Return-Path: <tyoshino@google.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 828DCE07B8 for <hybi@ietfa.amsl.com>; Tue, 24 May 2011 20:08:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.976
X-Spam-Level:
X-Spam-Status: No, score=-105.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 5MsH3BvdPVfO for <hybi@ietfa.amsl.com>; Tue, 24 May 2011 20:08:56 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id CB0ABE06E3 for <hybi@ietf.org>; Tue, 24 May 2011 20:08:56 -0700 (PDT)
Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id p4P38um8022197 for <hybi@ietf.org>; Tue, 24 May 2011 20:08:56 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1306292936; bh=2wXmBa+Y5b9XtO0r+Q9OxN2koGY=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ieIki+noc41bP4Uk4jsWDBzL5CBgA5UIxJ4tm6asf1NL59W30XQF4IR0YbJdvYBEc GbnZHjk6uiMYfYeBHP0cA==
Received: from yia27 (yia27.prod.google.com [10.243.65.27]) by wpaz13.hot.corp.google.com with ESMTP id p4P38ZEM012043 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Tue, 24 May 2011 20:08:55 -0700
Received: by yia27 with SMTP id 27so3846789yia.33 for <hybi@ietf.org>; Tue, 24 May 2011 20:08:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=vRfIByYWaN0DbZIi/OIrJy1HS4qt7S0Tl8uArMB43/g=; b=Kswx3DDIdrpHoUe9fA3b87wSlX3NryklPDsz86XDjOISO7Pnq986QtlpvJUZITjjkP 95uToKsZbwTGw6uGezvA==
DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=G6SsbUDf7kKU3bg7eB8LACMnA9/VNOLEzy8kpbqsnVwJFOKdC+Ep6zjcmhYYgcyVzX 9Pvy4BvDRRrPhclHCNew==
Received: by 10.150.69.27 with SMTP id r27mr4776109yba.114.1306292935108; Tue, 24 May 2011 20:08:55 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.50.13 with HTTP; Tue, 24 May 2011 20:08:35 -0700 (PDT)
In-Reply-To: <1306285493.1782.33.camel@ds9>
References: <ED13A76FCE9E96498B049688227AEA292C6A81E4@TK5EX14MBXC206.redmond.corp.microsoft.com> <4DD9686C.7020509@callenish.com> <BANLkTin2LcHgPH7s4-T_1LJa_UhkigJziw@mail.gmail.com> <1306285493.1782.33.camel@ds9>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 25 May 2011 12:08:35 +0900
Message-ID: <BANLkTino-_v8VKMXaUG0WH9HgsFedWgHtg@mail.gmail.com>
To: Patrick McManus <pmcmanus@mozilla.com>
Content-Type: multipart/alternative; boundary="000e0cd5905a5eaa0604a41106f2"
X-System-Of-Record: true
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Ping/Pong body (was Re: TSV-Directorate review of draft-ietf-hybi-thewebsocketprotocol-07)
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: Wed, 25 May 2011 03:08:57 -0000

Hi,

On Wed, May 25, 2011 at 10:04, Patrick McManus <pmcmanus@mozilla.com> wrote:

> I think that's looking at it backwards.
>
> If B cares about having the mandatory pong reply be matched to B's ping
> then B can simply create a non-predictable payload that -07 already
> requires to be echoed in the pong.
>

Hmm, I feel that having 1 byte pre-specified indicator rather simplifies
this and is cheap enough. Yes, preparing something unpredictable solves
this. I think it's fine when user-agents and servers for the service are
under one vendor/people's control. A and B can just negotiate and use
different body. But this is interoperability problem between user-agents and
servers provided by various vendors/people. To be sure that the possibility
of collision between body X which I use for my user-agent and any of server
A, server B, ..., etc. is low enough, maybe I would use random bytes of 3 or
more byte long. It costs than indicator.


> If the implementor cares about such things then those bodies are
> extremely poor implementation decisions. It makes sense to add some
>

Yes.


> guidance to the text to help them out, but there is no reason to add
>

Agreed. At least some advice should be given.


> constraints here or change the existing protocol imo. If the implementor
> changes their mind about being interested in such things they can change
> the implementation of their ping body at the same time.
>

Punting this and decide later is one option, but I'm not sure if it works
with small effort of code/spec change and coordination. Different from
extension etc. which will be defined in the future and then implemented,
Ping/Pong will be implemented by everyone based on the current text.

Thanks,
Takeshi