Re: [6tisch] MSF traffic adaptation under stress

Tengfei Chang <tengfei.chang@gmail.com> Fri, 10 April 2020 09:17 UTC

Return-Path: <tengfei.chang@gmail.com>
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 C7D2A3A1A92 for <6tisch@ietfa.amsl.com>; Fri, 10 Apr 2020 02:17:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DCcrQaXacMEo for <6tisch@ietfa.amsl.com>; Fri, 10 Apr 2020 02:17:10 -0700 (PDT)
Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) (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 E0A473A1A8B for <6tisch@ietf.org>; Fri, 10 Apr 2020 02:17:09 -0700 (PDT)
Received: by mail-vs1-xe2f.google.com with SMTP id j65so926927vsd.12 for <6tisch@ietf.org>; Fri, 10 Apr 2020 02:17:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S/VnzCNP9WDPKRlVMoNC1bl5Edole0by+qRn533Ytoc=; b=cBFuTTB8iNgxA5MBhF6YK3YCCkONGZcVeKI+ubM7taz2e6AZ2YbfDRdVv8oRx9sY4l FDFljFyLuRidmU75f4yCDl7T1npCn/sUoFLM76Wn5utWBK6kBMZKas/CHPvGm5o9xg9K znC8TgxctZWi8l+8z/B3Ofe8nLVQEuepiMNhcNSWJ3o+KQenZylFJlniTs5FbXkjxCtb QCNRDrlKZhmRihA6bndT2QRCP23l73L6HkNxlpkaJn2hqXPagbVt1t2CDY6DJ7vkRSxv jyyxmQranASPDcq3UqPkeSm628ibpm8c1t8PfgjaC3Tfa/MmWITiEn2Jbaogazf5PF2m BUTA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S/VnzCNP9WDPKRlVMoNC1bl5Edole0by+qRn533Ytoc=; b=gY7mlMh+xVZk5OnCg6GIgT+IjPis7cPtyyQWO7fdZ7vntEyYXOOqLvEasyG7lm1o3r DLvC9WfVsyCsSgFii1NEzbdFH0BeyoiajttLUS2qGPT5DhKYts1DFH+Rss5gvM9oSN2X 4Ojhj9DWf6aK7+NilJwOF3mofooy8dePP+0PWVGK9H9KjcW91WR8BJC3vsSb0LDV+Fj5 Tz48I0JSxweJoNlBe6o0epwHa4oAgy3BkxEw06juJNIu/JQIZNQ3zCHTbI61nrlpWGqf Os+R3EAwh8TNn0aBqoDbmmdnHwlSMea+M4fvollzUx7eKsuR1980OtFFCd5rx8su+bER QEhQ==
X-Gm-Message-State: AGi0PuZDSi8XFo0DuScPxhccQyEYjCfJ4Ddwx9GboI0CZaYsBV++kRlo LrrmL0vPV+plO2JBEPuWHfrSmwxdiGlUcoV4G34=
X-Google-Smtp-Source: APiQypLGV9qdxzuVoTPOFzJZfSNGz+5tcc1IS0yKsKngBJniye75pCOeXUBMVO9mfStBPfEPLCI9nrEhbwsFDreBoFo=
X-Received: by 2002:a67:945:: with SMTP id 66mr3021036vsj.72.1586510228663; Fri, 10 Apr 2020 02:17:08 -0700 (PDT)
MIME-Version: 1.0
References: <20200410002120.076c63f4@gawen.umons.ac.be>
In-Reply-To: <20200410002120.076c63f4@gawen.umons.ac.be>
From: Tengfei Chang <tengfei.chang@gmail.com>
Date: Fri, 10 Apr 2020 11:16:57 +0200
Message-ID: <CAAdgstQFidyM7ChZZWRX6NMXc_qVK62t-SRem1oSj3kcNTP+dg@mail.gmail.com>
To: David Hauweele <david.hauweele@umons.ac.be>
Cc: 6tisch <6tisch@ietf.org>, "Georgios Z. Papadopoulos" <georgios.papadopoulos@imt-atlantique.fr>, Remous Aris KOUTSIAMANIS <remous-aris.koutsiamanis@imt-atlantique.fr>, Bruno Quoitin <bruno.quoitin@umons.ac.be>
Content-Type: multipart/alternative; boundary="0000000000009cb01905a2ec3279"
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/0TmT-mgiAw2fPfrC4AwR0nXQH7w>
Subject: Re: [6tisch] MSF traffic adaptation under stress
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 10 Apr 2020 09:17:12 -0000

Hi David,

I replied inline:

On Fri, Apr 10, 2020 at 12:27 AM David Hauweele <david.hauweele@umons.ac.be>
wrote:

> Dear 6TiSCH,
>
> In the last few months, we performed a small scale study of the
> behavior of 6TiSCH's minimal scheduling function (MSF) under stress. We
> were especially interested in the dynamics of MSF's automated
> adaptation to traffic load. Some of our conclusions have been
> summarized in a paper that we submitted to IEEE ISCC 2020. A copy of
> the evaluation section of our submission is attached to this mail.
>

Congrats on the published paper!

>
> Among our surprising findings, we observed that
>
> 1) The time required for MSF to adapt to a traffic change depends on
> the current number of cells allocated. To give an example, it takes
> much longer to go from 0 to 10 cells than from 10 to 20 cells. We
> attribute this behavior to the way MSF measures cell occupancy by
> counting the number of used and passed cells. Adaptation only occurs
> when the number of passed cells reaches a maximum. However, with light
> cell allocation, it takes longer to reach that maximum than with higher
> cell allocation.
>

Cool! I have the similar results when evaluate the MSF performance.
There are two things influencing the response time to the traffic changes
1. The value of MAX_NUM_CELLS, which you mentioned. It is configurable. By
setting it to a small value, the  response time can be reduced in case the
traffic load changes frequently.
2.  The number of cells to be added/deleted each time.  In MSF, for the
simplicity, we only add/delete 1 cell every time. An advanced version of
MSF could add/delete cells according the percentage of cell usage.

>
> 2) MSF can lead to severe over-provisioning, which can be harmful in an
> environment where the resources are scarce. We noticed that releasing
> cells was especially hard for MSF due to the fixed hysteresis
> thresholds. Indeed, the estimated cell occupancy must drop below 25%
> for cells to be released.
>

The over-provisioning is designed intentionally to avoid the fluctuation of
6P transactions.
It costs additional 50% cells in average, as a trade-off, it could reduce
the cost of sending 6P frames, and the latency caused by 6P transaction.
No sure if there is a perfect way to cover every aspects?

>
> We already have ideas to improve MSF's traffic adaptation mechanism,
> that we plan to put under test in the coming weeks. We can also provide
> you with more details if you wish. If you see interest in our evaluation
> and proposals, we are eager to discuss this further with the WG.
>

Very interesting to see your approach to improve MSF !
Referring to the MSF standardization process , as said by Pascal, we won't
be able to made big changes.
We can adapt some minor changes.
Unless there is a flaw in the draft, I would prefer to keep the draft as it.

Tengfei


>
> Best regards,
> David, Bruno, Aris and Georgios
> _______________________________________________
> 6tisch mailing list
> 6tisch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tisch
>


-- 
——————————————————————————————————————
Stay healthy, stay optimistic!

Dr. Tengfei, Chang
Postdoctoral Research Engineer, Inria

www.tchang.org/
——————————————————————————————————————