Re: [rohc] Clarification regarding the ESP SN Encoding
Klaus Warnke <klaus.warnke@acticom.de> Fri, 18 June 2010 09:28 UTC
Return-Path: <klaus.warnke@acticom.de>
X-Original-To: rohc@core3.amsl.com
Delivered-To: rohc@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix)
with ESMTP id 75E0F3A69EE for <rohc@core3.amsl.com>;
Fri, 18 Jun 2010 02:28:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.276
X-Spam-Level:
X-Spam-Status: No, score=-0.276 tagged_above=-999 required=5 tests=[AWL=-0.092,
BAYES_40=-0.185, OBSCURED_EMAIL=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 79QT41kCPst8 for
<rohc@core3.amsl.com>; Fri, 18 Jun 2010 02:28:14 -0700 (PDT)
Received: from mail.acticom-networks.com (mail.acticom-networks.com
[87.106.254.214]) by core3.amsl.com (Postfix) with ESMTP id 0B3253A6A11 for
<rohc@ietf.org>; Fri, 18 Jun 2010 02:28:13 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by
mail.acticom-networks.com (Postfix) with ESMTP id 1A6521C00E08;
Fri, 18 Jun 2010 11:28:18 +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 vHY9wF584wNb; Fri, 18 Jun 2010 11:28:16 +0200 (CEST)
Received: from godfather.bln.acticom.de (mail.oosoft.net [212.99.204.33]) by
mail.acticom-networks.com (Postfix) with ESMTP id 96E431C00E06;
Fri, 18 Jun 2010 11:28:16 +0200 (CEST)
Received: from TORNADO.acticom.de (tornado.bln.acticom.de [192.168.33.27]) by
godfather.bln.acticom.de (Postfix) with ESMTP id EA326F3ABE;
Fri, 18 Jun 2010 11:28:15 +0200 (CEST)
Date: Fri, 18 Jun 2010 11:28:16 +0200
Message-ID: <uocf8advz.wl%klaus.warnke@acticom.de>
From: Klaus Warnke <klaus.warnke@acticom.de>
To: Anil Maguluri <Anil.Maguluri@lntinfotech.com>
In-Reply-To: <903D13EA90218E43BA0881BC8B569C7D23090746@BLRINMSMBX01.bglrodc.lntinfotech.com>
References: <903D13EA90218E43BA0881BC8B569C7D230903D6@BLRINMSMBX01.bglrodc.lntinfotech.com>
<usk4n9r3p.wl%klaus.warnke@acticom.de>
<903D13EA90218E43BA0881BC8B569C7D2309049B@BLRINMSMBX01.bglrodc.lntinfotech.com>
<upqzq9g5l.wl%klaus.warnke@acticom.de>
<903D13EA90218E43BA0881BC8B569C7D23090746@BLRINMSMBX01.bglrodc.lntinfotech.com>
User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6
(Marutamachi) APEL/10.7 Emacs/22.2 (i386-mingw-nt6.0.6002) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: text/plain; charset=US-ASCII
Cc: Klaus Warnke <klaus.warnke@acticom.de>, "rohc@ietf.org" <rohc@ietf.org>,
'Anil Kumar Maguluri' <anilmaguluri@gmail.com>
Subject: Re: [rohc] Clarification regarding the ESP SN Encoding
X-BeenThere: rohc@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Robust Header Compression <rohc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Fri, 18 Jun 2010 09:28:20 -0000
At Fri, 18 Jun 2010 09:40:37 +0530, Anil Maguluri wrote: > > Dear Klaus, > > Thanks for your response. > Comments/queries are inline. > > Regards, > Anil Kumar Maguluri > > -----Original Message----- > From: Klaus Warnke [mailto:klaus.warnke@acticom.de] > Sent: Thursday, June 17, 2010 2:42 PM > To: Anil Maguluri > Cc: Klaus Warnke; rohc@ietf.org; 'Anil Kumar Maguluri' > Subject: Re: [rohc] Clarification regarding the ESP SN Encoding > > At Wed, 16 Jun 2010 16:51:30 +0530, > Anil Maguluri wrote: > > > > Dear Klaus, > > > > Thanks for your response. > > Please clarify me whether my understanding is right or wrong. > > > > As per the RFC 3095, ROHCv1 won't support reordering between compressor > > and decompressor. Right? > Yes. See > > 4.1. Operating assumptions > > Reordering > > The channel between compressor and decompressor is required to > maintain packet ordering, i.e., the decompressor must receive > packets in the same order as the compressor sent them. > [ANIL] Ok. > > > But, the compressor can receive packets in out-of-order from the > > upper layers. Right? > Yes. If I remeber correct, the "-1" in the formular of p takes this > into account. Then the sliding window contains SN values that are > "-1" from v_ref. See 4.5.1. "v_ref - p". For UDP profile, where the SN > is generated by compressor, there is reorder possible, sure, the > interpretation interval contains no "-1" SN value. > > [ANIL] > As per RFC 3095, 4.5.1 > > The parameter p is introduced so that the interpretation interval > can be shifted with respect to v_ref. Choosing a good value for p > will yield a more efficient encoding for fields with certain > characteristics. Below are some examples: > > 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]. > > b) For field values that stay the same or increase, p can be set to > 0. The interpretation interval becomes [v_ref, v_ref + 2^k - 1]. > > c) For field values that are expected to deviate only slightly from > a constant value, p can be set to 2^(k-1) - 1. The interpretation > interval becomes [v_ref - 2^(k-1) + 1, v_ref + 2^(k-1)]. > > d) For field values that are expected to undergo small negative > changes and larger positive changes, such as the RTP TS for > video, or RTP SN when there is misordering, p can be set to > 2^(k-2) - 1. The interval becomes [v_ref - 2^(k-2) + 1, v_ref + > 3 * 2^(k-2)], i.e., 3/4 of the interval is used for positive > changes. > > As per my understanding, we have to use "a" in case if the > compressor received packets in-order [RTP SN/ESP SN] (sequential) > and "d" in case if the compressor received packets in > out-of-order. Is it right? No. There is no need to analyse the the RTP SN behavior. The RTP-SN always increases, never stay the same. If a reorder before compressor occurs, a small negative change takes place. The formular of "p" below takes this into account. In the udp profile the sn is generated by the compressor, so negativ changes could not occur. So the "p" is different from the "p" for the RTP "SN". It is important that the compressor and decompressor using the same v_ref and the same "p" to minimize the transmitted SN bits count and to avoid decompression errors. > Also RFC 3095, 5.7, > > "SN: The compressed RTP Sequence Number. > Compressed with W-LSB. The interpretation intervals, see section > 4.5.1, are defined as follows: > > p = 1 if bits(SN) <= 4 > p = 2^(bits(SN)-5) - 1 if bits(SN) > 4 " > > The above "p" values should use at the decompressor for RTP SN/ESP SN. > Is it right? Yes, and for compression too. The 4.5.1 tries to explain how the stuff works and which values for p are may usefull in which situations. And 5.7 says, which values you have to use to make sure that interoperability is ensured. br, Klaus > > As per the RFC 5225, ROHCv2 supports the reordering between the > > compressor and decompressor. This is one of the advantage for > > ROHCv2. > Yes. There is a "reorder_ratio_value" defined. > [ANIL] Ok. > > > > Regards, > > Anil Kumar Maguluri > br, Klaus > > > > > -----Original Message----- > > From: Klaus Warnke [mailto:klaus.warnke@acticom.de] > > Sent: Wednesday, June 16, 2010 4:34 PM > > To: Anil Maguluri > > Cc: rohc@ietf.org; 'Anil Kumar Maguluri' > > Subject: Re: [rohc] Clarification regarding the ESP SN Encoding > > > > Hello Anil, > > > > if I remember correct, RoHCv1 requires, that the link layer delivers > > all packets in order (RoHCv2 not). > > > > For p see 5.12.: > > > > The interpretation interval (value of p) for the ESP-based SN is as > > with ROHC RTP (profile 0x0001). > > > > Therefore p is as 5.7.: > > > > p = 1 if bits(SN) <= 4 > > p = 2^(bits(SN)-5) - 1 if bits(SN) > 4 > > > > Regards, Klaus > > > > At Wed, 16 Jun 2010 12:32:18 +0530, > > Anil Maguluri wrote: > > > Currently I am working on ROHCv1 Profile-3 (ESP/IP). > > > > > > Please let me know whether my understanding is right or not > > > regarding the ESP SN Encoding. > > > > > > As per RFC 3095, 4.5.1, " The parameter p is introduced so that the > > > interpretation interval can be shifted with respect to v_ref. > > > Choosing a good value for p will yield a more efficient encoding for > > > fields with certain characteristics. Below are some examples: > > > > > > - P = -1 if the field value is expected to increase always > > > > > > - p = 0 if the field value is constant or increase > > > > > > - p = 2^(k-1) - 1, if the field value is expected to deviate > > > slightly from a constant > > > > > > - p = 2^(k-2) - 1, if the field value is expected to undergo small > > > negative changes or larger positive changes " > > > > > > Also RFC 3095, 5.7, " SN: The compressed RTP Sequence Number. > > > Compressed with W-LSB. The interpretation intervals, see section > > > 4.5.1, are defined as follows: > > > > > > p = 1 if bits(SN) <= 4 > > > p = 2^(bits(SN)-5) - 1 if bits(SN) > 4 " > > > > > > As per my understanding, we should use the below 'p' values at > > > compressor [for SN Encoding] > > > > > > - p = -1, if packets are received in-order > > > > > > - p = 2^(k-2)-1, if packets are received out-of-order at > > > decompressor > > > > > > - p = 1 if bits(SN) <= 4 > > > > > > - p = 2^(bits(SN)-5) - 1 if bits(SN) > 4 > > > > > > > > > Queries > > > > > > 1. Is my understanding is right? > > > > > > 2. What is the value of 'p' for Profile-3 at compressor and > > > decompressor? Is it same as above? > > > > > > > > > Thanks for your support. > > > > > > Regards, > > > Anil Kumar Maguluri > > > > ______________________________________________________________________ > > > > This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. > > > > ______________________________________________________________________ > > ______________________________________________________________________ > > This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. > > ______________________________________________________________________
- [rohc] Clarification regarding the ESP SN Encoding Anil Maguluri
- Re: [rohc] Clarification regarding the ESP SN Enc… Klaus Warnke
- Re: [rohc] Clarification regarding the ESP SN Enc… Anil Maguluri
- Re: [rohc] Clarification regarding the ESP SN Enc… Klaus Warnke
- Re: [rohc] Clarification regarding the ESP SN Enc… Anil Maguluri
- Re: [rohc] Clarification regarding the ESP SN Enc… Klaus Warnke