[rohc] query: encoding of IP-ID for RND=0 in extn3

Alan Kennington <ak1.rohc@topology.org> Sat, 30 August 2003 15:37 UTC

Received: from optimus.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA18632 for <rohc-archive@odin.ietf.org>; Sat, 30 Aug 2003 11:37:09 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19t7O7-0001yZ-Lt for rohc-archive@odin.ietf.org; Sat, 30 Aug 2003 11:11:40 -0400
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id h7UFBdgn007589 for rohc-archive@odin.ietf.org; Sat, 30 Aug 2003 11:11:39 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19t6nJ-0007rA-0v for rohc-web-archive@optimus.ietf.org; Sat, 30 Aug 2003 10:33:37 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA15324 for <rohc-web-archive@ietf.org>; Sat, 30 Aug 2003 10:33:29 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19t6nG-00064i-00 for rohc-web-archive@ietf.org; Sat, 30 Aug 2003 10:33:34 -0400
Received: from ietf.org ([132.151.1.19] helo=optimus.ietf.org) by ietf-mx with esmtp (Exim 4.12) id 19t6nF-00064e-00 for rohc-web-archive@ietf.org; Sat, 30 Aug 2003 10:33:33 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19t63r-0006JL-Dr; Sat, 30 Aug 2003 09:46:39 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19t3Pm-0000Hu-Nn for rohc@optimus.ietf.org; Sat, 30 Aug 2003 06:57:06 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA06494 for <rohc@ietf.org>; Sat, 30 Aug 2003 06:56:58 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19t3Pi-0000zK-00 for rohc@ietf.org; Sat, 30 Aug 2003 06:57:02 -0400
Received: from alanke.lnk.telstra.net ([139.130.140.14] helo=dog.topology.org) by ietf-mx with esmtp (Exim 4.12) id 19t3Pg-0000sP-00 for rohc@ietf.org; Sat, 30 Aug 2003 06:57:01 -0400
Received: by dog.topology.org (Postfix, from userid 1321) id D5D0D51799; Sat, 30 Aug 2003 20:26:26 +0930 (CST)
Date: Sat, 30 Aug 2003 20:26:26 +0930
From: Alan Kennington <ak1.rohc@topology.org>
To: ROHC mailing list <rohc@ietf.org>
Message-ID: <20030830202626.A7779@dog.topology.org>
Reply-To: Alan Kennington <ak1.rohc@topology.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
X-PGP-Key: http://www.topology.org/ak/key_ak2.asc
X-PGP-Key-Fingerprint: 8A7B 7A8E 1C02 8298 579F 1860 7D56 121B D363 329E
Subject: [rohc] query: encoding of IP-ID for RND=0 in extn3
Sender: rohc-admin@ietf.org
Errors-To: rohc-admin@ietf.org
X-BeenThere: rohc@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/rohc>, <mailto:rohc-request@ietf.org?subject=unsubscribe>
List-Id: Robust Header Compression <rohc.ietf.org>
List-Post: <mailto:rohc@ietf.org>
List-Help: <mailto:rohc-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/rohc>, <mailto:rohc-request@ietf.org?subject=subscribe>

I am having some difficulty in interpreting RFC 3095, 5.7, page 75.

============================================================
   IP-ID: A compressed IP-ID field.

      IP-ID fields in compressed base headers carry the compressed IP-ID
      of the innermost IPv4 header whose corresponding RND flag is not
      1.  The rules below assume that the IP-ID is for the innermost IP
      header.  If it is for an outer IP header, the RND2 and NBO2 flags
      are used instead of RND and NBO.

      If value(RND) = 0, hdr(IP-ID) is compressed using Offset IP-ID
      encoding (see section 4.5.5) using p = 0 and default-slope(IP-ID
      offset) = 0.

      If value(RND) = 1, IP-ID is the uncompressed hdr(IP-ID).  IP-ID is
      then passed as additional octets at the end of the compressed
      header, after any extensions.

      If value(NBO) = 0, the octets of hdr(IP-ID) are swapped before
      compression and after decompression.  The value of NBO is ignored
      when value(RND) = 1.
=============================================================

Suppose I have RND=0 and I send a UO-1-ID packet with extension 3.
Suppose also that I include the 16-bit IP Identification field in
the extension 3. This is in 5.7.5, p.85.

Then the IP-ID field is clearly not compressed. But RND = 0.
But sometimes the IP-ID field in the IP packets does not follow the
established pattern. Therefore I may have to send all 16 bits even
when RND = 0.

The above rules tell me what happens when RND = 0 and the IP-ID is
compressed. But here the IP-ID is _not_ compressed.

Question:
Now should I swap the bytes of IP-ID according to NBO?
Should I subtract SN from the IP Identification field before I write
it into the type 3 extension?

I think that it is equally credible that the IP-ID is encoded
(1) without SN offset and bytes swap (i.e. verbatim) or
(2) with SN offset and bytes swap.

Can anyone tell me what the majority view on this is?

Cheers,
Alan Kennington.

PS. The ROHC implementer's guide, version 3, 4.8, page 7, says that
the 16-bit IP Identification field in an IR/IR-DYN packet must be
sent verbatim because it is called "Identification", not IP-ID.
This tends to make me think that the extn 3 IP-ID _may_ be the
swapped/offset version of IP-ID. But it is still unclear to me.

_______________________________________________
Rohc mailing list
Rohc@ietf.org
https://www1.ietf.org/mailman/listinfo/rohc