[6lo] SCHC over 6lo: Pointer-based Route-Over (PRO)

Georgios PAPADOPOULOS <gpapadopoulos.ietf@gmail.com> Fri, 15 December 2023 13:04 UTC

Return-Path: <gpapadopoulos.ietf@gmail.com>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 039DAC14F5EE for <6lo@ietfa.amsl.com>; Fri, 15 Dec 2023 05:04:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.107
X-Spam-Level:
X-Spam-Status: No, score=-7.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bi94UHx1kzP1 for <6lo@ietfa.amsl.com>; Fri, 15 Dec 2023 05:04:49 -0800 (PST)
Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A7D5C14F5E3 for <6lo@ietf.org>; Fri, 15 Dec 2023 05:04:49 -0800 (PST)
Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-336353782efso404674f8f.0 for <6lo@ietf.org>; Fri, 15 Dec 2023 05:04:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702645487; x=1703250287; darn=ietf.org; h=to:cc:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=PQIpsbgIWbBdmc33DpzLA1InHMh2niJ6vo7Ko47tkD8=; b=cjtt2c4YV8meaArPagUxTXS5DXWIS5H3JN1575QnZVS7uoO1vVKC8Cd1y3vErEjCNU orR56K5gIOmPVVouvitY4b/IJOwj0QTk55jyVD2A/3OFaeoyqpJy/W/T9ecO+6mdhz1q gMofkydweGOfXtU7tZivaPXOfbWSqAx1VUxlnEuOW5yarrTTnxEF5lRmq2rEQEaKyQU5 pfIUA3V4wKa3QrJxd8uMAAlC5G2MSNUInpdraNIHuJGii5i/zCbSsoP8NcoIKTjtE87R 73iik3J+iZCC4SkuR5D7kpjVKtC7IaANJV3MKfqmWYbzD5rE95NgJJB8FZdnI7XhmD8+ Oa9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702645487; x=1703250287; h=to:cc:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PQIpsbgIWbBdmc33DpzLA1InHMh2niJ6vo7Ko47tkD8=; b=S/NgnK/DxmFJjVm+4N2htEMSJwlJJwTkvIc8En593GnH0qZM61xnEN/raTswo+1CAW jgNDesnmdE1iwCjfEZ44q/AI9LLnCEairRer2dYd+Galps0DKH0Bz/QFKJrSY+3Lkl/u 00s/3quH0alwbj3vq8sQpYeDffWo93m4mbckrwK5lOESHHRF0eqyawPAWRE0f4vAlNY9 TD/OYweIK5M/yiYSMLl41mPGA9Op+My5RIVY92M9gTT5sKJWaa7oJIrh2uymuVfv2ulg eAPRAXHn0a8vL95ktyRd3lJNJWl+05AEY/cbNElhb3KPl6LAa4xZqoPviSx3l0ywFWyk AxXQ==
X-Gm-Message-State: AOJu0YwZ2OWwdk5JWpTE8mA/NGxn2LG4MSTBAZV0VXb9bxiqsRy8TmiO yD2GjaEWO+x4q+Ij87N2Lp2pbj6wxxE=
X-Google-Smtp-Source: AGHT+IGr7d6xztU/reFE58TLQ707VDcDOuNVFel8Xyuwad99p/EIOkB2PMpVymnHNW6j3OK/96mz6w==
X-Received: by 2002:a05:6000:c85:b0:333:396d:5ff2 with SMTP id dp5-20020a0560000c8500b00333396d5ff2mr6001041wrb.62.1702645487164; Fri, 15 Dec 2023 05:04:47 -0800 (PST)
Received: from smtpclient.apple ([2001:660:7301:3728:6856:6055:b1f5:7c7]) by smtp.gmail.com with ESMTPSA id j4-20020adfea44000000b00336471bc7ffsm4458564wrn.109.2023.12.15.05.04.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2023 05:04:46 -0800 (PST)
From: Georgios PAPADOPOULOS <gpapadopoulos.ietf@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_5E358B3D-CA16-4908-9763-CF0EDEB99D3F"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\))
Message-Id: <E19C30F8-0731-426D-A065-9FAAB50C7C58@gmail.com>
Date: Fri, 15 Dec 2023 14:04:35 +0100
Cc: Carles Gomez Montenegro <carles.gomez@upc.edu>, anaminaburo@gmail.com
To: 6lo@ietf.org
X-Mailer: Apple Mail (2.3774.200.91.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/1i1DOehgut2JNcBDhUSZrydbNek>
Subject: [6lo] SCHC over 6lo: Pointer-based Route-Over (PRO)
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Dec 2023 13:04:50 -0000

Dear 6lo,

Below you will find some thoughts and propositions on the PRO approach in SCHC over 6lo draft, i.e., draft-ietf-6lo-schc-15dot4-04.

Many thanks in advance,
Georgios

— — 

1. PRO approach in a network beyond a single prefix:
If the nodes operate in a network beyond a single prefix and are based PRO approach, for the intermediate nodes (i.e., 6LR nodes) that store no Rules, based on the current state of the draft, PRO does not provide much of compression benefit, since in each packet both IPv6 Prefix and IID should be explicitly indicated. In other words, the whole 16 Bytes (128 bits) of the IPv6 destination address will have to be “residue" in the SCHC Header.

One might consider then TRO as an alternative approach, then what if we are in a typical Smart Metering application where there are more than a few hops, i.e., 10 or even 20 hops, from the source to the Root in a multi-hop mesh network?

Therefore, I was wondering why not to consider to employ the benefits of the RFC 6282 while the 6LRs will not store any Rule, and more specifically the notion of the Contexts.
RFC 6282 comes with CID flag, if this flag is active, then after the IPHC header (after the DAM field), an additional 8-bit CID field immediately follows, which allows up to 16 source and destination prefixes.
For the case of PRO, I was thinking to keep only the 4 bits, since PRO considers only the destination IPv6 address.

Therefore, adding contexts as in RFC 6282 would allow to deal with the problem of supporting multiple possible destination prefixes in PRO. As previously presented, the additional overhead would still appear to be low which will probably make it worth. Furthermore, CID could be equal to "0" by default in a scenario where there is one single prefix, for better compression performance, and thus, no need to carry the extra 4 bits of the CID field.

Now, the question is where to locate the CID flag and the CID field of 4 bits. Below, I have a naive approach, I am sure a better one may come up, i.e., extension of the SCHC Pointer size in order to have a second pointer to indicate the CID, see Figure 1.

  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| SCHC Ptr Dsptch | Extended SCHC Pointer | Cmprd Header: IID + Optional CID field | Payload | Padding |
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
Figure 1: Frame format for SCHC-compressed packets in PRO.


2. IPv6 Header
Next, in the current state of PRO, the 6LRs can read only the IPv6 destination address, and nothing else.
However, as it is stated in the draft “PRO is compatible with RPL storing mode, as well as with other routing protocols.”, if other fields from the IPv6 header field is required by a 6LR that runs on a XYZ routing protocol, then these devices are not capable to read these fields.

For example, Hop Limit field, it is an essential information for a packet to be dropped in case it ended up in a loop.
Therefore, as an option, we could consider for the Hop Limit field to be followed in the “residue” after the IPv6 destination address.


3. SCHC Pointer Format
Next, considering that in PRO approach the 6LR nodes do not store Rules, then, the Matching Operators of SCHC can not be applied. For instance, the Match-mapping can not be applied as the 6LR needs to have all the potential addresses in order to apply the C/D Action properly.

Therefore, based on the current state of the draft, do we agree that 6LR devices with PRO approach enabled, they do not proceed with any SCHC C/D and any Matching Operation, except reading the destination IPv6 address which is the “residue” in the SCHC Header?