[lp-wan] Example of rule with field of variable length

Felipe Canales <felipe.canales.213@gmail.com> Wed, 20 January 2021 03:09 UTC

Return-Path: <felipe.canales.213@gmail.com>
X-Original-To: lp-wan@ietfa.amsl.com
Delivered-To: lp-wan@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D93A3A0C82 for <lp-wan@ietfa.amsl.com>; Tue, 19 Jan 2021 19:09:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.748
X-Spam-Level:
X-Spam-Status: No, score=-1.748 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1oY23xGx5Df0 for <lp-wan@ietfa.amsl.com>; Tue, 19 Jan 2021 19:09:24 -0800 (PST)
Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 031953A0C81 for <lp-wan@ietf.org>; Tue, 19 Jan 2021 19:09:23 -0800 (PST)
Received: by mail-qt1-x834.google.com with SMTP id j26so15372920qtq.8 for <lp-wan@ietf.org>; Tue, 19 Jan 2021 19:09:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:date:from:subject:thread-topic:message-id:to:cc :content-transfer-encoding; bh=6y+LMiXsF3iaMPYwk065jZldgyPFa1P9p4yD3dMhkIU=; b=D/8Ff+YXBz5jgJOc6oEE9j75NZOEbbpO9gS0TZYmn8gdjQ8Ok5+aP9OUtNEVjIhDxy 0Iqo337Af7LlAtwA1CXw4Qgf/56NsAu7AkHUx6CT2QLRtALIZtxFHAD0beeF+LJ3Udiw Gz1CQd7LqEpgA8Boumj/diMFPGuhDVw7tTu2/9OP6lEQCD+WLcMtQTdodXKi6T0bWngr aDyZetBsoT87EW6BvxSof0TWG+kTNCUVWIot4zp3WD9//h78cxsdKDJIQ3nwAxsC5ZbU T/W8dOmMXs4Atie+4t3SbfNj1nQv/1dFVX8R7LcgX9wr1SN6REAUvlwtoNi8663Lj7Pj h6lg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:from:subject:thread-topic :message-id:to:cc:content-transfer-encoding; bh=6y+LMiXsF3iaMPYwk065jZldgyPFa1P9p4yD3dMhkIU=; b=T+YlNtO6O2bJGrk2fTS8kbmg2nbGu9ftFLxObpVrweOSII0h51qUY+bs1x0nT7i/yp TGd+uV4/PpR9SJk30JIH0nwC4KdjSn2KDMglF32/zL0p7a8cBtD8GyueS+OjMHT0zeCA pDOPdd+1x+PqOHXO9TvG0VtyNzo9gytcUMPrYQPuLavU6lmrz+2inFCQHbPSn3093mQ8 0xEUeVoLbzkujRHx836HTnaYy6aqJjUY12gxvWrfl/SAGlNdE1RW24A7kOvxTa+VSygb 2WM8M1hLUUvLts4yAZblS8+GxkHOayBVkyK/KAsLxspYh7yE5ZlpctgQZ56xF4vUzhgk 90oQ==
X-Gm-Message-State: AOAM531abHhKC5YeE51PW8T1O1lPJ2bflg94dNPXU5mJPz19O4tuj/Ob SDu674fUa0EV8vXwb0Os+RWO7W1KpA08sw==
X-Google-Smtp-Source: ABdhPJzfY+6b7XTRKzS2WXrG778qe1Hk0TXCWZSqXbsMUEN/YajZybI16vN1pCMVI6QgTqPcHFxaYw==
X-Received: by 2002:ac8:4e51:: with SMTP id e17mr7296710qtw.121.1611112162849; Tue, 19 Jan 2021 19:09:22 -0800 (PST)
Received: from DESKTOP-1VQC2SK ([186.106.223.48]) by smtp.gmail.com with ESMTPSA id 198sm539878qkk.4.2021.01.19.19.09.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2021 19:09:22 -0800 (PST)
MIME-Version: 1.0
Date: Wed, 20 Jan 2021 00:09:19 -0300
From: Felipe Canales <felipe.canales.213@gmail.com>
Thread-Topic: [lp-wan] Example of rule with field of variable length
Message-ID: <3E620F6E-2457-4460-9FD2-AFE008842527@hxcore.ol>
To: "lp-wan@ietf.org" <lp-wan@ietf.org>
Cc: Sandra Céspedes <scespedes@niclabs.cl>, "rodrigo.munoz.lara@gmail.com" <rodrigo.munoz.lara@gmail.com>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/Mp6KSHKfLN6XstDegW2O3SN8VCo>
X-Mailman-Approved-At: Mon, 25 Jan 2021 01:27:15 -0800
Subject: [lp-wan] Example of rule with field of variable length
X-BeenThere: lp-wan@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Low-Power Wide Area Networking \(LP-WAN\), also known as LPWA or Low-Rate WAN \(LR-WAN\)" <lp-wan.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lp-wan>, <mailto:lp-wan-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lp-wan/>
List-Post: <mailto:lp-wan@ietf.org>
List-Help: <mailto:lp-wan-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lp-wan>, <mailto:lp-wan-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jan 2021 22:01:44 -0000

Dear Author,

 

I’m working on the compression of IPv6 and UDP headers on an implementation of SCHC over LoRaWAN. Currently, I can compress fields of fixed length as specified by RFC 8724, but I am unsure about how to implement variable length fields.

 

Section 7.1 states that the field length (FL) of a variable length header is its type and that length calculation is defined by the type. I understand this to mean that the length is the number of FL units used instead of the number of bits. Together with the definition of the MSB matching operator in section 7.3, leads me to believe that when a residue length is sent, it also indicates FL units. Is this right?

 

Additionally, there is no example of a rule with a variable length header in RFC 8724. Could I be provided one? Even if it does not apply to IPv6 + UDP (which I believe it doesn’t), it would serve as a reference for compressing other protocols.

 

Regards.

 

Felipe Canales