Re: [6tisch] tagging join traffic wih DSCP: why inside IP header?

Thomas Watteyne <thomas.watteyne@inria.fr> Wed, 15 November 2017 08:55 UTC

Return-Path: <thomas.watteyne@inria.fr>
X-Original-To: 6tisch@ietfa.amsl.com
Delivered-To: 6tisch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4965612947E for <6tisch@ietfa.amsl.com>; Wed, 15 Nov 2017 00:55:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.888
X-Spam-Level:
X-Spam-Status: No, score=-6.888 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 T9B78_NXDLIr for <6tisch@ietfa.amsl.com>; Wed, 15 Nov 2017 00:55:54 -0800 (PST)
Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E53F129474 for <6tisch@ietf.org>; Wed, 15 Nov 2017 00:55:53 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.44,398,1505772000"; d="scan'208,217";a="300858449"
Received: from mail-ua0-f177.google.com ([209.85.217.177]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 15 Nov 2017 09:55:51 +0100
Received: by mail-ua0-f177.google.com with SMTP id v27so15817483uav.7 for <6tisch@ietf.org>; Wed, 15 Nov 2017 00:55:51 -0800 (PST)
X-Gm-Message-State: AJaThX5IzHRXXkxszziaLbU+uL5f016KKbbBE073fU65DiBQH2WYL6Ov +JC0HFBPh7ycaQXcGmq6102GNHmqi3CJVdWEEv0=
X-Google-Smtp-Source: AGs4zMbCC8+bvhX+n5QxNcSHQT3zmH3ELGHsPH7ebJXQSeKLxAUXvluP8uEfVYPOJKvWDf8x3naD0eLjP2vWbH2V1Ww=
X-Received: by 10.176.25.17 with SMTP id v17mr7863749uag.93.1510736150198; Wed, 15 Nov 2017 00:55:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.159.45.143 with HTTP; Wed, 15 Nov 2017 00:55:29 -0800 (PST)
In-Reply-To: <92bca0456cb746c995733131edad10a2@XCH-RCD-001.cisco.com>
References: <CADJ9OA_cKxWZLvfpNXhjNgL1HurfdK-Oqj1M-wU9pK5t+1kU4g@mail.gmail.com> <20396.1510678103@obiwan.sandelman.ca> <32033.1510687749@obiwan.sandelman.ca> <92bca0456cb746c995733131edad10a2@XCH-RCD-001.cisco.com>
From: Thomas Watteyne <thomas.watteyne@inria.fr>
Date: Wed, 15 Nov 2017 09:55:29 +0100
X-Gmail-Original-Message-ID: <CADJ9OA_b2fHUg=3utnCv8iTMZcwL-n3J_H2N6uU=v8SjenjmFA@mail.gmail.com>
Message-ID: <CADJ9OA_b2fHUg=3utnCv8iTMZcwL-n3J_H2N6uU=v8SjenjmFA@mail.gmail.com>
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "6tisch@ietf.org" <6tisch@ietf.org>
Content-Type: multipart/alternative; boundary="f4030437968895013c055e01ab90"
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/1VENxcLvq0NxJub0GEcJmB6Xbxk>
Subject: Re: [6tisch] tagging join traffic wih DSCP: why inside IP header?
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tisch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tisch>, <mailto:6tisch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6tisch/>
List-Post: <mailto:6tisch@ietf.org>
List-Help: <mailto:6tisch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tisch>, <mailto:6tisch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Nov 2017 08:55:57 -0000

Pascal, Michael,

If there is no IPIP, then everything is easy. But, AFAICT, we want the JRC
to be able to live on the Internet, i.e. not per se co-located with the
DAGroot. In that case, the Join Request looks like any data packet sent by
the JP to an IPv6 address outside the mesh, which triggers IPIP because the
outer IP header contains the RPI.

So AFAICT, IPIP is needed unless we mandate that JRC and DAGroot are
collocated.

So with IPIP, if we want to play by the rules, forwarding routers (nodes in
the mesh) only look at the outer IP header, and treat the inner IP header
as opaque. So if we use RFC6282 for that header with TF=b10 so ECN+DSCP are
carried inline, it doesn't matter. AFAICT, you recommend to "dig down to
IPHC". Looks more and more like my initial recommendation of using DPI
wasn't that far off :-)

Thomas

On Wed, Nov 15, 2017 at 2:37 AM, Pascal Thubert (pthubert) <
pthubert@cisco.com> wrote:

> Hello Michael:
>
>
>
> > I thought that in 8138, that if we didn't need an outer IPIP, that we
> just used 6loHC (rfc6282... https://tools.ietf.org/html/
> rfc6282#section-3.2.1)
>
>
>
> This is correct. The RPL artifact for the join request is only the RPI,
> and the packet (going up) looks as follows in both storing and non-storing,
> assuming the join is a UDP/CoAP packet.
>
>
>
>   The format in Figure 16 is logically equivalent to the uncompressed
>
>    format illustrated in Figure 17:
>
>
>
>    +-+-+-+- ... -+-+-+-+ ... -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+...
>
>    |  IPv6 Header  | Hop-by-Hop |  RPI in       |  ICMP message ...
>
>    |  NH = 58      | Header     |  RPL Option   |
>
>    +-+-+-+- ... -+-+-+-+ ... -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+...
>
>
>
>                Figure 17: Uncompressed ICMP Packet with RPI
>
>
>
>    For a UDP packet, the transport header can be compressed with 6LoWPAN
>
>    HC [RFC6282 <https://tools.ietf.org/html/rfc6282>] as illustrated in Figure 18:
>
>
>
>    +-+ ... -+-+-...-+-+- ... -+-+-+-+ ... -+-+-+ ... -+-+-+-+-+...
>
>    |11110001| RPI-  | NH=1        |11110CPP| Compressed | UDP
>
>    |Page 1  | 6LoRH | LOWPAN_IPHC | UDP    | UDP header | Payload
>
>    +-+ ... -+-+-...-+-+- ... -+-+-+-+ ... -+-+-+ ... -+-+-+-+-+...
>
>                      <-         RFC 6282 <https://tools.ietf.org/html/rfc6282>              ->
>
>                                 No RPL artifact
>
>
>
>                Figure 18: Uncompressed ICMP Packet with RPI
>
>
>
> RFC 8138 places the artifact in front so it is easy to manipulate. After
> that, you find the IPHC, which encodes the traffic class. Nothing really
> complex.
>
>
>
> A simpler side question is whether the rest of the join flow (response
> etc…) should trigger allocation of timeslots by the SF or not. If the
> response only comes for valid requests then I supposed it should.
>
>
>
> Take care,
>
>
>
> Pascal
>
>
>
>
>
> -----Original Message-----
> From: 6tisch [mailto:6tisch-bounces@ietf.org] On Behalf Of Michael
> Richardson
> Sent: mercredi 15 novembre 2017 03:29
> To: 6tisch@ietf.org
> Subject: Re: [6tisch] tagging join traffic wih DSCP: why inside IP header?
>
>
>
>
>
> Michael Richardson <mcr+ietf@sandelman.ca> wrote:
>
>     >> During the WG meeting yesterday, we discussed using DSCP bits as a
> way
>
>     >> to identify join request/reply messages. We talked about mapping, in
>
>     >> the minimal-security spec, the different DSCP values to scheduling
>
>     >> behavior.
>
>
>
>     >> But you indicated the DSCP bits would be in the inside IPv6 header.
>
>     >> That doesn't make sense to me, can you please provide more info? The
>
>     >> outside IPv6 header looks to me like the right place to put the
> bits.
>
>
>
>     > I thought it was a typo, and I passed it by.
>
>
>
>     > Why in this non-storing, RPL-aware situation is there even an IPIP
> outer
>
>     > header for traffic from the proxy to the DODAG root?
>
>
>
> Since I re-read Pascal's answer (in the light of my "day"), I now see why
> it can not go into to the outer IP header, because we didn't not plan for
> it.
>
> I thought that in 8138, that if we didn't need an outer IPIP, that we just
> used 6loHC (rfc6282... https://tools.ietf.org/html/rfc6282#section-3.2.1)
>
>
>
> If we can agree that this is the way, then I think we also need to agree
> that certain AFxx would be assigned to available bandwidth, and not cause
> 6top to allocate any additional bandwidth.  This does not really fit "AF"
> Diffserv in some ways (which in some ways to buffer/delay rather than
> drop...).
>
>
>
> --
>
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works  -=
> IPv6 IoT consulting =-
>
>
>
>
>
>
>
> _______________________________________________
> 6tisch mailing list
> 6tisch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tisch
>
>


-- 
_______________________________________

Thomas Watteyne, PhD
Research Scientist & Innovator, Inria
Sr Networking Design Eng, Linear Tech
Founder & co-lead, UC Berkeley OpenWSN
Co-chair, IETF 6TiSCH

www.thomaswatteyne.com
_______________________________________