[rohc] rfc5225 msn_lsb improvement

Klaus Warnke <klaus.warnke@acticom.de> Tue, 04 September 2012 10:56 UTC

Return-Path: <klaus.warnke@acticom.de>
X-Original-To: rohc@ietfa.amsl.com
Delivered-To: rohc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C602021F862A for <rohc@ietfa.amsl.com>; Tue, 4 Sep 2012 03:56:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level:
X-Spam-Status: No, score=-0.999 tagged_above=-999 required=5 tests=[AWL=1.000, BAYES_00=-2.599, J_CHICKENPOX_31=0.6]
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 IwRgqpwq+7xy for <rohc@ietfa.amsl.com>; Tue, 4 Sep 2012 03:56:06 -0700 (PDT)
Received: from mail.acticom-networks.com (mail.acticom-networks.com [87.106.254.214]) by ietfa.amsl.com (Postfix) with ESMTP id 352E521F8554 for <rohc@ietf.org>; Tue, 4 Sep 2012 03:56:06 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.acticom-networks.com (Postfix) with ESMTP id 5C7C91C00F54 for <rohc@ietf.org>; Tue, 4 Sep 2012 12:56:05 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at acticom-networks.com
Received: from mail.acticom-networks.com ([127.0.0.1]) by localhost (mail.acticom-networks.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yZTVokguCpAq for <rohc@ietf.org>; Tue, 4 Sep 2012 12:56:04 +0200 (CEST)
Received: from godfather.bln.acticom.de (backupsrv [87.139.237.181]) by mail.acticom-networks.com (Postfix) with ESMTP id 45CFE1C00F4B for <rohc@ietf.org>; Tue, 4 Sep 2012 12:56:04 +0200 (CEST)
Received: from [192.168.33.27] (tornado.bln.acticom.de [192.168.33.27]) by godfather.bln.acticom.de (Postfix) with ESMTP id 93E87F3AD0 for <rohc@ietf.org>; Tue, 4 Sep 2012 12:56:03 +0200 (CEST)
Message-ID: <5045DE43.70705@acticom.de>
Date: Tue, 04 Sep 2012 12:56:03 +0200
From: Klaus Warnke <klaus.warnke@acticom.de>
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: "rohc@ietf.org" <rohc@ietf.org>
Content-Type: text/plain; charset="ISO-8859-15"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: [rohc] rfc5225 msn_lsb improvement
X-BeenThere: rohc@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Robust Header Compression <rohc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rohc>, <mailto:rohc-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rohc>
List-Post: <mailto:rohc@ietf.org>
List-Help: <mailto:rohc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rohc>, <mailto:rohc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Sep 2012 10:56:06 -0000

Hello everybody,

I think, the msn_lsb() encoding method could be improved:

msn_lsb(k)
{
...
   COMPRESSED none {
     ENFORCE(reorder_ratio.UVALUE == REORDERING_NONE);
     master =:= lsb(k, 1);
   }
...
}

For reorder ratio REORDERING_NONE the
     master =:= lsb(k, -1);

is sufficient. That is, offset_param = -1,
If there is no reordering, there is no need to have a lower bound -1 
before the ref_value.
If the msn increase by +1, the lower bound could be ref_value +1.

See also rfc3095:

    a) For field values that are expected always to increase, p can be
       set to -1.  The interpretation interval becomes
       [v_ref + 1, v_ref + 2^k].


Any comments?

Regards,
Klaus

-- 
Klaus Warnke		klaus.warnke@acticom.de
http://www.acticom.de
Tel +49-30-4849.6891

acticom GmbH
Schwedter Str. 9b, 10119 Berlin, Germany
Managing Directors:  Olaf Kehrer, Gerrit Schulte
Commercial Register: Berlin-Charlottenburg HRB 73245
VAT-ID DE205131766