rfc5225 msn_lsb improvement

Klaus Warnke <[email protected]> Tue, 04 Sep 2012 12:56:03 +0200
Newsgroups gmane.ietf.rohc
Message-ID <[email protected]>
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		[email protected]
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