Re: [hybi] Masking only Payload/Extension Data
Yutaka_Takeda@PlayStation.Sony.Com Wed, 09 March 2011 20:39 UTC
Return-Path: <Yutaka_Takeda@PlayStation.Sony.Com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 14C523A6AB8 for <hybi@core3.amsl.com>; Wed, 9 Mar 2011 12:39:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.053
X-Spam-Level:
X-Spam-Status: No, score=-6.053 tagged_above=-999 required=5 tests=[AWL=0.211, BAYES_00=-2.599, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OWbHiz1WgUqZ for <hybi@core3.amsl.com>; Wed, 9 Mar 2011 12:39:26 -0800 (PST)
Received: from paris.playstation.sony.com (nat.playstation.sony.com [69.36.131.254]) by core3.amsl.com (Postfix) with ESMTP id 1D8233A6989 for <hybi@ietf.org>; Wed, 9 Mar 2011 12:39:24 -0800 (PST)
Received: from constantine.playstation.sony.com ([162.49.67.15]) by paris.playstation.sony.com (Lotus Domino Release 8.5.1FP5) with ESMTP id 2011030912404119-249467 ; Wed, 9 Mar 2011 12:40:41 -0800
In-Reply-To: <AANLkTinau4g1pB_ccJ31u7WRi5npYtHvXE5YRn5uTbeV@mail.gmail.com>
To: John Tamplin <jat@google.com>
MIME-Version: 1.0
X-KeepSent: 71614916:EEE8DF65-8825784E:006CA753; type=4; flags=0; name=$KeepSent
X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006
Message-ID: <OF71614916.EEE8DF65-ON8825784E.006CA753-8825784E.0071A6F6@playstation.sony.com>
From: Yutaka_Takeda@PlayStation.Sony.Com
Date: Wed, 09 Mar 2011 12:41:21 -0800
X-MIMETrack: Serialize by Router on SCEA919ML04/SCEA(Release 8.5.1FP3|May 23, 2010) at 03/09/2011 12:40:40 PM, Serialize complete at 03/09/2011 12:40:40 PM, Itemize by SMTP Server on SCEA919ML02/SCEA(Release 8.5.1FP5|September 29, 2010) at 03/09/2011 12:40:41 PM, Serialize by Router on SCEA919ML02/SCEA(Release 8.5.1FP5|September 29, 2010) at 03/09/2011 12:40:43 PM, Serialize complete at 03/09/2011 12:40:43 PM
Content-Type: multipart/alternative; boundary="=_alternative 0071A6F48825784E_="
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] Masking only Payload/Extension Data
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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, 09 Mar 2011 20:39:28 -0000
hybi-bounces@ietf.org wrote on 03/09/2011 11:04:41 AM: > On Wed, Mar 9, 2011 at 1:41 PM, <Yutaka_Takeda@playstation.sony.com> wrote: > Let me join in the voices for +1 on the use of reserved bit. > > I agree with your points of debate in the following messages: > - http://www.ietf.org/mail-archive/web/hybi/current/msg06631.html > - http://www.ietf.org/mail-archive/web/hybi/current/msg06633.html > > Reasons: > > o Sniffers can choose whether to go ahead and parse masked payload > based on the bit without having to capture from the start. > (It greatly helps us in debugging or trouble shooting) > > I agree this is useful, but I disagree that this is sufficient to > warrant the cost. > > o Ability to turn off masking for debugging/trouble shooting. > (this should not be manipulable by user code, of course, just to be clear) > > This is orthogonal to whether to use a bit in the frame, and from > previous discussions there is little support for being able to disable it. Right, I meant, to sniffers, the bit will tell whether the payload is masked in the midst of trasferring data while turning on/off on the fly for debugging purpose. > > o It is worthier allocating a bit for this than reserving it > for something we don't even know especially when we still have > at least a few bits left. > > The problem is there are only a few reserved bits, and we don't know > how many it would be useful to have. One thing that was discussed > earlier that would require allocation of a reserved bit would be > per-frame compression, so you can avoid compressing non-compressible > data. Another possibility is that we generally allocate more > opcodes for extensions, in which case we would like to be able to > allocate some of the reserved bits to the opcode field. We won't > know we used too many until we need more than we have, at which > point it becomes expensive (50% additional overhead for small > frames) to get more. When we came up with this framing, this was > the compromise between cost and leaving options open for the future > that everybody could live with. Obviously you have much clearer picture of possible usage of the reserved bits than I. I should respect your view/concern on this. > > Think about it from an efficiency point of view -- you are > suggesting allocating a bit in every frame that is going to be the > same for every frame in the same direction. How can that possibly > be good stewardship of limited resources, rather than specifying it > once in the header (or not at all if it is known to be set or clear > based on which side is initiating the connection)? We are already sending these reserved bits on the wire for nothing as of today, which is where I am coming from. (I understand, when we need to extend reserved bits field in the future, that's when the use of bit may be perceived as 'extra-bandwidth'.) > > o Lacking the bit seems to be the source of sense of asymmetry - > as in the frame not being self-descriptive for what's in the > payload (not to be confused by 'understanding' the payload), > seems to be a bad protocol design choice. > > The frame is already not self-descriptive -- if compression is > negotiated, you have to know that (plus the current compression > state) in order to interpret the frames. Likewise, other extensions > will likely modify interpretation of the payload. The compression is an extension and is optional, where making is a MUST in normal operations. We can always turn off compression, if needed during trouble shooting, then I am hoping to be able to dissect packets on the wire with unmasked data on the screen. Since WebSocket is long lived, it could be difficult to capture entire data with sniffer with finite amount of memory/disk space, and I am aware Wireshark really slows down when it captures large files for a long time. If we could selectively capture/dissect data, that would be very very helpful. > I still think it is not worth allocating a reserved bit to indicate > masking is present, but if most people want it I won't object too strenuously. I have been spending large portion of my time for debugging/trouble shooting, I may be too concerned about debuggability. I understand your points of arguments, though let me keep my +1 on the use of reserved bit for now. Thanks a lot for your comments. - Yutaka
- [hybi] Masking only Payload/Extension Data Brian
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Yutaka_Takeda
- Re: [hybi] Masking only Payload/Extension Data Ian Fette (イアンフェッティ)
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data Ian Fette (イアンフェッティ)
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data Bruce Atherton
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Yutaka_Takeda
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Yutaka_Takeda
- Re: [hybi] Masking only Payload/Extension Data Pat McManus @Mozilla
- Re: [hybi] Masking only Payload/Extension Data Willy Tarreau
- Re: [hybi] Masking only Payload/Extension Data Joel Martin
- Re: [hybi] Masking only Payload/Extension Data Adam Barth
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Adam Barth
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Brian
- Re: [hybi] Masking only Payload/Extension Data Willy Tarreau
- Re: [hybi] Masking only Payload/Extension Data Joel Martin
- Re: [hybi] Masking only Payload/Extension Data Adam Barth
- Re: [hybi] Masking only Payload/Extension Data Ian Fette (イアンフェッティ)
- Re: [hybi] Masking only Payload/Extension Data Ian Fette (イアンフェッティ)
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data Pat McManus @Mozilla
- Re: [hybi] Masking only Payload/Extension Data Andy Green
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Patrick McManus
- Re: [hybi] Masking only Payload/Extension Data Bruce Atherton
- Re: [hybi] Masking only Payload/Extension Data Julian Reschke
- Re: [hybi] Masking only Payload/Extension Data David Endicott
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Bruce Atherton
- Re: [hybi] Masking only Payload/Extension Data David Endicott
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data David Endicott
- Re: [hybi] Masking only Payload/Extension Data David Endicott
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data David Endicott
- Re: [hybi] Masking only Payload/Extension Data Brian
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Greg Wilkins
- Re: [hybi] Masking only Payload/Extension Data John Tamplin
- Re: [hybi] Masking only Payload/Extension Data Salvatore Loreto