Re: [hybi] deflate-stream vs. frame-by-frame

"Arman Djusupov" <arman@noemax.com> Wed, 22 June 2011 14:50 UTC

Return-Path: <arman@noemax.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 76D9121F853B for <hybi@ietfa.amsl.com>; Wed, 22 Jun 2011 07:50:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599]
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 QHfLwbVcIpqW for <hybi@ietfa.amsl.com>; Wed, 22 Jun 2011 07:50:55 -0700 (PDT)
Received: from mail.noemax.com (mail.noemax.com [64.34.201.8]) by ietfa.amsl.com (Postfix) with ESMTP id AB22021F853A for <hybi@ietf.org>; Wed, 22 Jun 2011 07:50:55 -0700 (PDT)
Received: from ArmanLaptop by mail.noemax.com (IceWarp 9.4.1) with ASMTP (SSL) id FUU46953 for <hybi@ietf.org>; Wed, 22 Jun 2011 17:50:53 +0300
From: Arman Djusupov <arman@noemax.com>
To: hybi@ietf.org
References: <20110622060058.ef1fc80126c74c6c202a919c41c7bb0b.24a5465d55.wbe@email03.secureserver.net>
In-Reply-To: <20110622060058.ef1fc80126c74c6c202a919c41c7bb0b.24a5465d55.wbe@email03.secureserver.net>
Date: Wed, 22 Jun 2011 17:49:50 +0300
Message-ID: <006301cc30eb$a74beb00$f5e3c100$@noemax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQE7bOykHjR32LJwBM8bXshsQWSgq5Xq/EOg
Content-Language: en-us
Subject: Re: [hybi] deflate-stream vs. frame-by-frame
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, 22 Jun 2011 14:50:56 -0000

> First, there is the question of compression and masking. Compressing 
> masked text is of dubious utility, efficacy, and efficiency. Masking 
> tends to randomize text, random text is a poor candidate for 
> compression (in some cases, attempting to compress random text can 
> actually cause the "compressed" text to be larger than the original 
> text). Taken solely on this basis, ANY compression should precede masking.

Agree, compression should be applied before masking or not applied at all. 
 
> Lastly, compression on a sub-channel by sub-channel basis (generally 
> meaning per-frame basis) does not imply a need for 200KB of buffer 
> space per sub-channel. Rather, the amount of buffer space required per
> sub- channel depends upon the frame-size and the compression scheme used.
> Some compression schemes can function with minimal context, others may 
> need more. In any event, compression works best with a high degree of 
> correlation between successive data elements, thus there is a logical 
> division between the frames being transmitted within different 
> sub-channels to
> (presumably) different applications.

Yes, there are solutions on how to efficiently compress mux channels but these do not need to be defined in the current spec. IMO a mux extension should offer its own, independent compression extension which could be more efficient with mux frames.

The "deflate-stream" should either be removed or adapted to be applied prior to masking to be good for general purpose transport compression. But in any case, since "deflate-stream" is optional it is not required to be ideal for mux frames compression.

With best regards,
Arman