Re: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)

Balázs Varga A <balazs.a.varga@ericsson.com> Wed, 12 May 2021 12:09 UTC

Return-Path: <balazs.a.varga@ericsson.com>
X-Original-To: detnet@ietfa.amsl.com
Delivered-To: detnet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 631A03A0C40 for <detnet@ietfa.amsl.com>; Wed, 12 May 2021 05:09:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.697
X-Spam-Level:
X-Spam-Status: No, score=-2.697 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.698, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_QUOTING=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 igibQNOGzXAz for <detnet@ietfa.amsl.com>; Wed, 12 May 2021 05:08:59 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20062.outbound.protection.outlook.com [40.107.2.62]) (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 1428A3A0C3D for <detnet@ietf.org>; Wed, 12 May 2021 05:08:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CPKv3E9cBuqcidnsEEsYMzZw+PlVvAe/nwkEqnE1iZ7tru3Gph1j4JU2ZHOTRsb8QcFWuCHwYT/1y0akW7tpU/334B9YdmmQbZECdTp3mCX33Lzw88PC3xgh222XR0RbP23Hc9sPYRrYdaGBXyf7ZqCCzLZrQnxc1oxezwxg/wPJtA6UT87jiNZOpmykxVUBWKWLXTjH6WEpPLR9T6t/zn3Yax0+DWMud6yoCgCSleVHbk79D9CghPv46CqzRzricgOXxbATHQHWWw7inM0wF8RwwHDf1GhYEcAEQy3QPWVsuHSkKdTY4w1wbIsqDp0XX+7JyksYfgQSc1pdqMhOGQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjrBlxRMwXgJ7lJQuDrTrYLlqOlANfvje1Jz8tZzZnY=; b=I+TCVnCgAQ7NxmaPA1BEvax0UL+bOINZAknT9/90ce4gPF/Ywb8NpBADtn6N1aIsaNxpHdfuXswWK7tza5i1Xvsqq347Ti8PZMuQzUG4gZ9tn9mh7FpbZRjhPx3jW8Ve7sk5nkCj/ARhRPqrf1XCUgBJTdytHt7HQ66VbC2VRau005A5RxW9Kb1/stZaN+waw9M1rNitAFiTfwYJ98IZ8W8R3Qgk9BW7w0l2bZHMQOMH+LR1776pNvIegP2uxfANcIVVgucGlXJsBFKPL+7tXQjd15zmdyTq/fWuLQv30CedZa6lEkt+GpXjFWDTceCOe7jF6nJ4j6pOmX18AyHQfg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjrBlxRMwXgJ7lJQuDrTrYLlqOlANfvje1Jz8tZzZnY=; b=alS5anParKTP6dJlR2+dOwLlYet+giGvwjuy40ylfCcSInwZGcJm2E/OjQLTHDylFMAUOiazYGPYfvRiDhfnAdlcWHJwksnMELyRPMqPuASZm21VqqRIjwvTQq+c/MY/j0CYf9CmBO5n1qlS5bZsDRcNtlbDMfq8IWUDq/QJ9sI=
Received: from AM0PR0702MB3603.eurprd07.prod.outlook.com (2603:10a6:208:22::25) by AM0PR07MB4770.eurprd07.prod.outlook.com (2603:10a6:208:78::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.23; Wed, 12 May 2021 12:08:56 +0000
Received: from AM0PR0702MB3603.eurprd07.prod.outlook.com ([fe80::6836:e537:5ac1:454e]) by AM0PR0702MB3603.eurprd07.prod.outlook.com ([fe80::6836:e537:5ac1:454e%3]) with mapi id 15.20.4129.024; Wed, 12 May 2021 12:08:55 +0000
From: Balázs Varga A <balazs.a.varga@ericsson.com>
To: "Yangfan (IP Standard)" <shirley.yangfan@huawei.com>, Ludovic Thomas <ludovic.thomas@woolab.fr>, "detnet@ietf.org" <detnet@ietf.org>
Thread-Topic: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)
Thread-Index: AQHXNou9ZP3S1c809kGRQIDb43RSOarAFC/wgB+o5ICAABrXoA==
Date: Wed, 12 May 2021 12:08:55 +0000
Message-ID: <AM0PR0702MB3603104B564460141B007216AC529@AM0PR0702MB3603.eurprd07.prod.outlook.com>
References: <2af69bf1-d5a1-c5c3-9a7c-9efd0bcecf2c@woolab.fr> <AM0PR0702MB36035772105916DF3C993792AC469@AM0PR0702MB3603.eurprd07.prod.outlook.com> <354948afbcc44cf3bd114342e887c381@huawei.com>
In-Reply-To: <354948afbcc44cf3bd114342e887c381@huawei.com>
Accept-Language: hu-HU, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [91.82.190.241]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 168a0cd9-6b7e-4702-6444-08d9153eb778
x-ms-traffictypediagnostic: AM0PR07MB4770:
x-microsoft-antispam-prvs: <AM0PR07MB4770258EDE7CFDE2ABAE4451AC529@AM0PR07MB4770.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: KQfhEgdVU5EOOaR5LliUzd9E3IirYVuBpleFjy/evLV+3uq3JaWqHe+zF+/JoUwEIIByxkl0c80aq8bTQwCKZVwulgdWuHrd+BQbgnEhZr6syXSgKNjgRi+oPK7cz6XkTYHZltAYVC9p3B0pakxLdO0QAFyBT6NxLuP8K7kC02NjI5ipn+ktvx/HV8XVbWHoSHAzoafu+vAn+iq+uNzHrW4YJqrvJbVyAe4SBLrKyqMQ6r9wVzk0ZYPGvupmU/Z65DDaSTkB8vdzQGCf/C77w6R8y4PKFf4tht9lOi8ec2ZPAqLGjCKFCXHJ/m8h2iMlr51Gj0rgsnt1R8ozzjkdRsNwEGUM6A+tBNtj7cbl3bUnyrg9dJd2TbrBUD15z6YNBH6vyEYWutpdnDvsvL1NsR59r37nXzsJiMIfLCl6CJ3cXOW4OTwDh1gi9WaQ+WwIYNrnxfj9vr5g/uu3pEIJATK+IeuIDXivbZnkdXAbzK2zDVt4BfUegaQEuhUeZdGJMyBRZw2Gt/4X/83aaOGBAM8Y1nkppcSNZdYAZv/VOVCSF1hBGYTGUYTUMQGx4VbAYYwR9OTMs9AIm1swXaUW8dm37b7lXJJweegxM336r42DaLZ7X9fLfcqRnLt1P5l9rUrDbyhH/dX3KMNgTeZB01LFNHIDr4hMFNXjX4/UVcoo5KInedlvvQdVHgT3u0f8
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0702MB3603.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(366004)(396003)(136003)(376002)(53546011)(5660300002)(66476007)(6506007)(33656002)(66556008)(66446008)(64756008)(9686003)(9326002)(55016002)(76116006)(478600001)(316002)(186003)(66574015)(85182001)(52536014)(71200400001)(122000001)(66946007)(26005)(966005)(8936002)(38100700002)(166002)(7696005)(8676002)(83380400001)(85202003)(110136005)(86362001)(2906002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: TV+s9UWtcb2N0voiwV81IaLHHF2OidZCxN1gSFNJTkOymu8sq4hwW9Ct9HCpxOvaAPJXTZGxftHdFQxVh3dmeuN9BChn40FfvR3RuKa5Hm48DojCw9bEVcQsZCMlLjLBgX7bbWbH1RXm8iwkIgAKjYlAu00Y5zkBxL9O697yy0zsu1tL3VNqSo7wKCvlH743/RsoRQt+rijFXLkHWn02D8VRzLnTcE3fmHwhxOmjT/OBm5Hz5atP9Ou8dMr6Tu16qUnNVyaFCys2MlNm5wSY2WeeyKh1skeBZxeDEv2uKeZt615Potg3D1T2gGB5H6TaeoK84hwaccjF+9PMeV62ChfMuJkTgHIQskpF+zu+jd6M5aOBCUIh2AT/oEYSYEBZhkyCu9WTEqhzrhkXA6aRmLuOnVPqZioRmBPn8ajrGe3OSPJmaCNnDe0hCBQK1t8MgR+NhZF9ap0bdvstM7cTXRVtFxKFlropkkbRYB4d+1MCgZx9UEnU73mEhqw6AbQmdHRitMisjVjP0XIpKNpR7Dam/4MoHJMgVbnbPdxLNdOsKK+ggA+WITAIT08GJl4bjaam1iQA1V8eo6nEllxW1lTtpn9kg0DbmFjRDUgTrPCWqh90jV8tdfqBWxJxSDJzhlQEIrLveotGbZVjxNEI7a9f07Dfs3a3RIAqPNwsRBkg4deD7S3y2NG/DLLiDmapzlKhzjQTuYwmUc2NJKTYak7W8n9idy/sUg83iy2vsW96xWsASDrBnwitoEkXHs8oGBN+20ivnRHrt+0rzRhVV78Nx7hXwuJzje7+PhnaH9hKy5m0z/v0FrLj+uNOrS/ApsOyqXwceo3BXVws+e89ZKbmU8/uSBZHKVOGXfBDXSthX/3FAEmci3kYQTiRMgAoAI80w0azBXwP5xO0Ldv57vbR5oEkyQXC4VSLFqTwhQC7ok06SzkD0bxUbVcm2dyfPmOndiot9AsSTxWbVEb3r96s9w30+kVcqcElZ5f2Ywxda1wxkmpiMCRdQY5wcAhaeOoWioRuK2ILqrObynvGZyw8ndUyPuQt95+iVNIQvSmkiA1HN3QiLAl3hln5YNlva7fZvZvW9yGruZC5gmz0z57fpGEcEfnzjgInxPpBzzAFMDlqlxXWyXSyLNxdg9jVDNsmiIV5Y+DnzLdg2a2DgpkFSOjbV+RBZiL22Xb59/P5UyTKOMXUybawt4euLe7S6P7QWbVmLtSb708Q2zeUtpsaRxs0UkZJSsAbQZG90f7srBmqHlOVK+7C+9Unj4A4XkRKrLyj0kxM6YZ/ZZjLZRE+Qu79ULC6jQNUlI6zhZRNxIIjus6zJdr+1tvXKNZo
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_AM0PR0702MB3603104B564460141B007216AC529AM0PR0702MB3603_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM0PR0702MB3603.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 168a0cd9-6b7e-4702-6444-08d9153eb778
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2021 12:08:55.8569 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: EIQvWTghmxmHO2XVufSv89sImDT6hE0RgJucfjmUT779jL8FdSqK51JOFkZh15C8I8q1ig+HldGNTDaV1QiaEFV5wT26tkL5Tpz+0aiKXtw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4770
Archived-At: <https://mailarchive.ietf.org/arch/msg/detnet/zDBweFj3g4L2KtukueMBD_tclpM>
Subject: Re: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)
X-BeenThere: detnet@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Discussions on Deterministic Networking BoF and Proposed WG <detnet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/detnet>, <mailto:detnet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/detnet/>
List-Post: <mailto:detnet@ietf.org>
List-Help: <mailto:detnet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/detnet>, <mailto:detnet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 May 2021 12:09:06 -0000

Hi Fan,

Thanks for the clarification questions. In my view the answers are implementation dependent.

In general all the PREOF functions (PRF, PEF, POF) have a “sequence number” related state and
they are running independently. There can be various triggers for resetting a PREOF function.

A reset can be triggered by management operation (reset of the PxF function, reset of the node
or some part of the node, etc.). Further, reset can be triggered to recover from a failure, for
example when a failure of the PxF detected and it triggers a reset.

Another group of triggers are related to events/states of other entities. Such triggers are used to
ensure faster recovery of a function (via resetting it) after network failures. For example, if a POF
do not receive packets for a while, because of network failure(s), then its state regarding the actual
sequence number of a DetNet flow is outdated and it may result in a wrong decision of the POF
function whether a packet should be delayed or not.

I will discuss with the co-authors to update the reset related part to clarify it better.

Thanks & Cheers
Bala’zs


From: Yangfan (IP Standard) <shirley.yangfan@huawei.com>
Sent: Wednesday, May 12, 2021 11:57 AM
To: Balázs Varga A <balazs.a.varga@ericsson.com>; Ludovic Thomas <ludovic.thomas@woolab.fr>; detnet@ietf.org
Subject: 答复: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)


Hi Bala'zs,



Thank you for bring up this draft. As Greg said, the mechanism is well designed and clearly written. Thank you for the work!

I have a question about the reset of POF function mentioned in section 4.2. I am not sure the reset is likely to refer to a situation of a POF failure or a management operation. Is this POF state necessary and obligatory? I don’t  see any consequence if we remove the definition of state.

Since you mentioned the reset of sequence number on replication node, I wonder if the sequence number (SN) state of PEF is affected by SN reset of PRF, whether SN state of PEF will affect SN state of POF? Are they synchronized or running independently?



Regards,

Fan


发件人: detnet [mailto:detnet-bounces@ietf.org] 代表 Balázs Varga A
发送时间: 2021年4月22日 16:10
收件人: Ludovic Thomas <ludovic.thomas@woolab.fr<mailto:ludovic.thomas@woolab.fr>>; detnet@ietf.org<mailto:detnet@ietf.org>
主题: Re: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)

Hi Ludovic,

Many thanks for your comments, really appreciated.

Your comments pointed to some characteristics of POF, what may need to be better highlighted in the draft.
- DetNet uses PREOF for service protection and DetNet excludes usage of ECMP (RFC8964). So, any out-of-order
is caused by PREF (more exactly, out-of-order is caused by PEF).
- POF is never a standalone function in DetNet scenarios, there is always a PEF function before POF applied. The
impact of PEF function on the packet flow must be considered when POF is engineered or evaluated. We may
use for the analysis the rather detailed specification of IEEE 802.1CB on Replication and Elimination functions.
- DetNet uses a circular sequence number space, so comparing 2 sequence numbers is always relative.

Regarding your comments:
1, “POFTakeAnyTime"
Yes, reboot of the source (or just a reset of the sequence generation function in PRF) results in a possible sequence
number order (inside the DetNet network) as described in your example. However, the packet flow hits first the PEF,
having a history window. The PEF will discard the packets with sequence number below 1000, so they will not be
processed by the POF.
Section 4.5 in the draft, refers to that impact of PEF with an example:
“   … For example, under normal circumstances the
   difference of sequence number in consecutive packets is bounded due
   to the history window of PEF.”

I think based on your comment, that impact of PEF would be worth to highlight more in the next version of the draft.
Dealing with reset/reboot scenarios is not a trivial task and may need further markers/flags traveling with the packet.
Reset related improvements were discussed in IEEE, you may check here:
https://www.ieee802.org/1/files/public/docs2020/new-varga-FRER-seamless-reset-0320-v02.pdf<https://protect2.fireeye.com/v1/url?k=6ac54b90-355e7292-6ac50b0b-869a14f4b08c-c0c40f341c519780&q=1&e=4748c352-f42d-4190-96f8-71b4da870f66&u=https%3A%2F%2Fwww.ieee802.org%2F1%2Ffiles%2Fpublic%2Fdocs2020%2Fnew-varga-FRER-seamless-reset-0320-v02.pdf>
https://www.ieee802.org/1/files/public/docs2019/new-varga-FRER-improvements-0719-v01.pdf<https://protect2.fireeye.com/v1/url?k=835d1e68-dcc6276a-835d5ef3-869a14f4b08c-dfe9cf40bb45eda7&q=1&e=4748c352-f42d-4190-96f8-71b4da870f66&u=https%3A%2F%2Fwww.ieee802.org%2F1%2Ffiles%2Fpublic%2Fdocs2019%2Fnew-varga-FRER-improvements-0719-v01.pdf>

2, “POFLastSent update”
Here I do not agree with your conclusion. The POF algorithm never “stucks”. POF maximum impact on a
packet is to delay it for “POFMaxDelay” time. “POFMaxDelay” is engineered to ensure that the packet
is still within its latency budget.
So as in your example: yes, packet103 will be delayed for POFMaxDelay time. Packet104, packet105
etc. (when received in-order) will be delayed less (if at all). All packets remains within the latency budget.
Average latency is somewhat increased but in case of DetNet we do not care about average, the target is
to be within the bounded latency, what is achieved for all packets.

Thanks & Cheers
Bala’zs

From: detnet <detnet-bounces@ietf.org<mailto:detnet-bounces@ietf.org>> On Behalf Of Ludovic Thomas
Sent: Wednesday, April 21, 2021 10:53 AM
To: detnet@ietf.org<mailto:detnet@ietf.org>
Subject: Re: [Detnet] Packet Ordering Function (draft-varga-detnet-pof-00.txt)


Hi all, I have two thoughts on it:

=======

1/ what are you thoughts in changing:

"""" [Current version]

The next received packet must be forwarded and the POFLastSent

      updated wheno the POF function was reset OR no packet was received

      for a predefined time ("POFTakeAnyTime").

""""



for



""" [Proposed version]

The next received packet must be forwarded and the POFLastSent

      updated wheno the POF function was reset OR no packet with a seq_num strictly higher (>) than POFLastSent was received

      for a predefined time ("POFTakeAnyTime").

"""

?



Consider the following use-case:



Source has been up for a while, at POF point we received and sent thousand packets such that POFLastSent = 1000

Suddenly the source reboots and the reboot is so fast that the time elapsed between:

               - when packet noted 1000 was sent prior to reboot

               - when packet noted 0 is sent after reboot

is less or equal to the inter-packet spacing. (meaning the time elapsed between 1000 and 0 is about the same or even less than between 999 and 1000).

As such, in any coherent design the time elapsed between 1000 and 0 is less than POFTakeAnyTime.



Now assume POF function receives 1000, 0, 3, 1, [a sequence of out-of order packets], 100, 102, 101, 104, 103 ... again with a spacing between 1000 and 0 that is less than POFTakeAnyTime.



* With the current version, after reception of 1000, timer is started, but reset as soon as 0 is received.

At the end of the day each receiving packet resets the timer before it fires, so POFLastSent stays at 1000 and all packets are forwarded without being reordered until the sequence number reaches 1000 again.



* With the proposed version, neither 0 nor 3, 1, etc resets the timer because their sequence number is <= POFLastSent.

After some time (say just BEFORE packet 100) the timer is fired, POFLastSent is set to 100 and starting from there is the output of POF is back in order.



======



2/ also, the draft states



o  If (seq_num <= POFLastSent + 1)



      *  Then the packet is forwarded and "POFLastSent" is updated

         (POFLastSent = seq_num).



I believe we shouldn't update POFLastSent if the seq_num is <= POFLastSent. In the above example, assume the POFTakeAnyTime is fired just AFTER packet 100. Packet 102 is received, is sent and sets POFLastSent=102.

With the current version, 101 is received, is sent (because seq_num <= POFLastSent + 1) and sets POFLastSent=101, from there the system is stuck because 102 will never be received again, and the following packets will be released after the POFMaxDelay expires.

With the proposed version (no update of POFLastSent if the seq_num is <= POFLastSent), then 101 does not set POFLastSent=101 and the system continues normal operation.



======



My two cents,

Ludovic