Re: [hybi] Framing take IV

"Thomson, Martin" <Martin.Thomson@andrew.com> Wed, 04 August 2010 05:00 UTC

Return-Path: <Martin.Thomson@andrew.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 02B083A6BCF for <hybi@core3.amsl.com>; Tue, 3 Aug 2010 22:00:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.987
X-Spam-Level:
X-Spam-Status: No, score=-2.987 tagged_above=-999 required=5 tests=[AWL=-0.389, BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 7Vd-qN3WBnzk for <hybi@core3.amsl.com>; Tue, 3 Aug 2010 22:00:42 -0700 (PDT)
Received: from csmailgw2.commscope.com (csmailgw2.commscope.com [198.135.207.242]) by core3.amsl.com (Postfix) with ESMTP id 724953A6BD6 for <hybi@ietf.org>; Tue, 3 Aug 2010 22:00:42 -0700 (PDT)
Received: from [10.86.20.103] ([10.86.20.103]:3685 "EHLO ACDCE7HC2.commscope.com") by csmailgw2.commscope.com with ESMTP id S324304Ab0HDFBL (ORCPT <rfc822; hybi@ietf.org>); Wed, 4 Aug 2010 00:01:11 -0500
Received: from SISPE7HC2.commscope.com (10.97.4.13) by ACDCE7HC2.commscope.com (10.86.20.103) with Microsoft SMTP Server (TLS) id 8.1.436.0; Wed, 4 Aug 2010 00:01:10 -0500
Received: from SISPE7MB1.commscope.com ([fe80::9d82:a492:85e3:a293]) by SISPE7HC2.commscope.com ([fe80::58c3:2447:f977:57c3%10]) with mapi; Wed, 4 Aug 2010 13:01:06 +0800
From: "Thomson, Martin" <Martin.Thomson@andrew.com>
To: "ifette@google.com" <ifette@google.com>
Date: Wed, 04 Aug 2010 13:03:23 +0800
Thread-Topic: [hybi] Framing take IV
Thread-Index: AcszjuvukywOydLORyKeNYsw1Hy9+wAAornQ
Message-ID: <8B0A9FCBB9832F43971E38010638454F03EB8B01E0@SISPE7MB1.commscope.com>
References: <AANLkTinyrDoG5d_Ur6HVRy=SgMPjLzJtpJ++Ye=1DQdj@mail.gmail.com> <20100804022719.GT27827@shareable.org> <AANLkTi=MENta8H4A_ota=R==EJ3j0zAkPc7ai2qmsZiT@mail.gmail.com> <AANLkTinZE8-HSi-BJD8Oq3z3+9BXY8eMnZ4DAnOaiuT=@mail.gmail.com> <8B0A9FCBB9832F43971E38010638454F03EB8B01CD@SISPE7MB1.commscope.com> <AANLkTin-8zBw0m=Ac2uzbW4zZQ_cV5DyKrEuJV6+pMOe@mail.gmail.com>
In-Reply-To: <AANLkTin-8zBw0m=Ac2uzbW4zZQ_cV5DyKrEuJV6+pMOe@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: multipart/alternative; boundary="_000_8B0A9FCBB9832F43971E38010638454F03EB8B01E0SISPE7MB1comm_"
MIME-Version: 1.0
X-BCN: Meridius 1000 Version 3.4 on csmailgw2.commscope.com
X-BCN-Sender: Martin.Thomson@andrew.com
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Framing take IV
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, 04 Aug 2010 05:00:44 -0000

Unfortunately, that’s only true if a channel switch were prevented if a fragmented message was being transmitted.

Imagine that an intermediary wants to de-fragment fragmented messages and it sees the interleaved messages from channels A and B:

  Message (fragment), Channel A: Hello
  Message (end), Channel B: Bonjour tout le monde
  Message (end), Channel A: World

The intermediary just stomped on your messages:

  Message (end), Channel A: Hello {Channel B} Bonjour tout le monde
  Message (end), Channel A: World

Now, we could prevent this sort of thing by saying that if you don’t understand all the extensions, don’t touch, but that’s a little antisocial.

--Martin

From: Ian Fette (イアンフェッティ) [mailto:ifette@google.com]
Sent: Wednesday, 4 August 2010 2:39 PM
To: Thomson, Martin
Cc: Greg Wilkins; hybi@ietf.org
Subject: Re: [hybi] Framing take IV

On Tue, Aug 3, 2010 at 9:20 PM, Thomson, Martin <Martin.Thomson@andrew.com<mailto:Martin.Thomson@andrew.com>> wrote:
ifette@google.com<mailto:ifette@google.com> writes:
> As far as I can tell, what Jamie proposed is basically equivalent to what I proposed
> in http://www.ietf.org/mail-archive/web/hybi/current/msg02726.html -
I like this proposal.  It got lost in the email noise the first time around.  It's not exactly what Jamie proposes, but it could be made compatible with it.

+-----------------------------------------------+
|frag(1)| ???(1)|opcode(6)| Length(24)          |
+-----------------------------------------------+
|      Extensions (prearranged length)          |
+-----------------------------------------------+
|                     Data                      |
+-----------------------------------------------+

It makes new protocol features transparent to the framing layer.  All you need to do is define a negotiation for the features.

It's a shame that it doesn't work for multiplexing.

Assuming multiplexing is an extension, we could make it work fine. E.g. the multiplexing extension will reserve 8 bits in the extension section, and we're set.

--Martin