Re: [manet] SMF in Manet and MPR

Christopher Dearlove <christopher.dearlove@gmail.com> Thu, 24 March 2022 12:14 UTC

Return-Path: <christopher.dearlove@gmail.com>
X-Original-To: manet@ietfa.amsl.com
Delivered-To: manet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F3483A0D0E for <manet@ietfa.amsl.com>; Thu, 24 Mar 2022 05:14:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 NK1RYdOKlYNX for <manet@ietfa.amsl.com>; Thu, 24 Mar 2022 05:14:46 -0700 (PDT)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 65EB23A0CF0 for <manet@ietf.org>; Thu, 24 Mar 2022 05:14:46 -0700 (PDT)
Received: by mail-ej1-x62f.google.com with SMTP id o10so8782086ejd.1 for <manet@ietf.org>; Thu, 24 Mar 2022 05:14:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9aDXj+3ypWl+hMK0kEBzGRzsClAlA8EnKRpbx8NDJnU=; b=J2yhXyRQQJsLgEM0rjh0MJ5qtoqPHVA9bO1aSsVbcpWuv0Ph+fbZQpK9SA6SUE5i1M NnpxdPM8+Uh3GuE2TwjNuqyRv1uQ1NVOQDY+h+pyG2dSlgbE2O/+wYjGWzw25yE6uFKC YGqFfr2Cgeu+JL1+DUndowrYwqldIuqmuYQO6l/0sOfvzdvzmT3Gly/J4YFkcCuyu8U1 rMJ0FavVUrADXsYjWADGpGcPrDfBP3U5imjFF9TSKlC1aE8tcVm65DNaOdRrIo0B4SQU 1T6yvyBIi+8/5lfPfGs4j1guBr7LZUZh0BtvmiUQ7rrzd4XLD4Qnv3Cf0IckWvBOlBor AiLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=9aDXj+3ypWl+hMK0kEBzGRzsClAlA8EnKRpbx8NDJnU=; b=64Egoz2yMNqPgcakfc0MY2PkGtjMhw9HgMi1G2FWcb3cgWcfpLjwr0wSG67ZilKpeQ CYVJasxuEb0THNksJ+QAVksa2BpjBB720JqnGs1/4kTztHx54cGIr9tcZ9YOlFk6PnEf ptPX09sunRi47jRyCh3XRMzV766TKHqVh45/aM5W15LHfzo4ofwX+rtGX/Aqvxj4qhQk 0OKvcdlHOmtmrVt017ltvraO+HOdSm6e9jkda2KMtkT27X985w+rlEnLvlq2O+xOWRiG 6phSFAbnUIHbc0tvxAnfDl6s23ozt/k56mwsZ73qGGERc9c5Eoye77Tqc78XSkFzS0OO 0f1A==
X-Gm-Message-State: AOAM5321pU4hjKfwJsXZSMbK8+7IHfFLf4xGRFxarPUxaHUpiY/BdDIt VdSsJcBrczXc5j3r+XTsAe8=
X-Google-Smtp-Source: ABdhPJxy+6RPQXYPVjvCEvkxdF/d4/IuJFSQbfUo86e47Mxz8Yml7zv9umo2qXtIGFWA2H3P0jBiWw==
X-Received: by 2002:a17:906:2695:b0:6cf:e1b4:118b with SMTP id t21-20020a170906269500b006cfe1b4118bmr5319080ejc.348.1648124083805; Thu, 24 Mar 2022 05:14:43 -0700 (PDT)
Received: from smtpclient.apple (82-132-227-121.dab.02.net. [82.132.227.121]) by smtp.gmail.com with ESMTPSA id j22-20020a50ed16000000b00419366b2146sm1333904eds.43.2022.03.24.05.14.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2022 05:14:43 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\))
From: Christopher Dearlove <christopher.dearlove@gmail.com>
In-Reply-To: <879440367.8043668.1648123633824.JavaMail.zimbra@inria.fr>
Date: Thu, 24 Mar 2022 12:14:41 +0000
Cc: Henning Rogge <hrogge@gmail.com>, "manet@ietf.org IETF" <manet@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <BDDA3DD9-C0C4-4EE8-8F38-8179AFCC86CE@gmail.com>
References: <CAGnRvuo36vQ8=ij+T2u-uyVNOAWx7Bkdrd9gLon20+dq_0XDiA@mail.gmail.com> <4E684853-DD75-4E36-B738-F9533E59F59A@gmail.com> <CAGnRvurZAiO6zDVTajnD4Usgw4XnaCwFSwaUqzmRMR7GzR_QKA@mail.gmail.com> <1903367784.7556571.1648065868312.JavaMail.zimbra@inria.fr> <CAGnRvup94LZhrY0VYG8-SZf7=M0soS9OvF2+mxTA=6-4BysUjw@mail.gmail.com> <879440367.8043668.1648123633824.JavaMail.zimbra@inria.fr>
To: Philippe Jacquet <philippe.jacquet@inria.fr>
X-Mailer: Apple Mail (2.3696.80.82.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/manet/YxIqIw2yTzWsxNuB6CLA_ZhY7E0>
Subject: Re: [manet] SMF in Manet and MPR
X-BeenThere: manet@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Mobile Ad-hoc Networks <manet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/manet>, <mailto:manet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/manet/>
List-Post: <mailto:manet@ietf.org>
List-Help: <mailto:manet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/manet>, <mailto:manet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Mar 2022 12:14:51 -0000

Often it’s sufficient just to have a small number of metrics, with ratios between them > N, where N is the maximum number of hops you will ever see. If we have, for example, high, medium and low metrics, any path made up entirely of high metrics will beat any path with even one hop with any other metric. And so on.

But why limit yourself like that? Because if you want the efficiency gain from MPRs, because they guarantee shortest paths, if all metrics are random values then your MPR algorithm will end up selecting too many neighbours - even possibly all neighbours with a two hop neighbour - as MPRs.

This might mean a single metric value per interface type in some cases.

> On 24 Mar 2022, at 12:07, Philippe Jacquet <philippe.jacquet@inria.fr> wrote:
> 
> Maybe I was not clear. By shortest path, I meant the smallest number of hops for paths fitting a given metric. If your metric is "second per bit" (inverse of throughput), you will obtain the shortest path with a given throughput constraint. 
> 
> If VHF interface cannot fit the metric you will get a path made of UHF interfaces.
> 
> Philippe
> 
> ----- Mail original -----
> De: "Henning Rogge" <hrogge@gmail.com>
> À: "Philippe Jacquet" <philippe.jacquet@inria.fr>
> Cc: "Christopher Dearlove" <christopher.dearlove@gmail.com>, "manet@ietf.org IETF" <manet@ietf.org>
> Envoyé: Mercredi 23 Mars 2022 21:41:11
> Objet: Re: [manet] SMF in Manet and MPR
> 
> The problem is there might be a shorter 3-hop path to a single-hop
> neighbor than the direct path to it... which leads to a bad MPR
> choice.
> 
> So I think NHDP-based MPR selection is sub-optimal.
> 
> Henning Rogge
> 
> On Wed, Mar 23, 2022 at 9:04 PM Philippe Jacquet
> <philippe.jacquet@inria.fr> wrote:
>> 
>> If you choose the MPR with a given metric then the routing graph will automatically show the shortest path wrt the metric as the consequence of the 2 hop MPR coverage property. If such path does not exist then the flooding cannot be achieved wrt the metric.
>> 
>> Philippe
>> 
>> ----- Mail original -----
>> De: "Henning Rogge" <hrogge@gmail.com>
>> À: "Christopher Dearlove" <christopher.dearlove@gmail.com>
>> Cc: "manet@ietf.org IETF" <manet@ietf.org>
>> Envoyé: Mardi 22 Mars 2022 09:37:47
>> Objet: Re: [manet] SMF in Manet and MPR
>> 
>> My point about this issue is that as soon as the router knows that
>> there is a better way to a one-hop neighbor than the direct one, it
>> needs to stop using the link neighbor for flooding. But this is not
>> possible based on NHDP information, only with the help of the full
>> routing graph... which gives quite a few additional challenges because
>> of the cyclic dependencies.
>> 
>> It's the same both for TC flooding and Multicast forwarding. Using a
>> VHF connection to flood them is a waste of precious (VHF) airtime if
>> we have a multihop UHF connection. It's just getting worse when we add
>> userspace (multicast) traffic to the issue.
>> 
>> Henning Rogge
>> 
>> On Tue, Mar 22, 2022 at 9:23 AM Christopher Dearlove
>> <christopher.dearlove@gmail.com> wrote:
>>> 
>>> Flooding is done over the VHF interface because the whole point of flooding is to reach everyone. And there might be some routers you can only reach using the VHF interface. If you know that you can always reach someone using only UHF flooding, and you consider that flooding via VHF is a disaster, why is it one of your Manet interfaces? Or if you want one hop transmission but not MPR selection why not set willingness zero (never) on that interface?
>>> 
>>>> On 22 Mar 2022, at 06:31, Henning Rogge <hrogge@gmail.com> wrote:
>>>> 
>>>> On Mon, Mar 21, 2022 at 7:17 PM Christopher Dearlove
>>>> <christopher.dearlove@gmail.com> wrote:
>>>>> This depends on how you set up your link metrics. Flooding MPRs have
>>>>> the option to use or not use link metrics. But if your interfaces are different
>>>>> enough that you’d rather use multiple hops on a better interface rather
>>>>> than fewer hops on a poorer interface, then you should be using link metrics.
>>>>> If you aren’t, you will have problems. (They probably show up even faster
>>>>> with routing.)
>>>> 
>>>> I don't think metrics can resolve my problem. The problem arises from
>>>> calculating the MPRs just from the 2-hop neighborhood.
>>>> 
>>>> Let me sketch the problem.... imagine you have a Mesh with both VHF
>>>> (slow long range) and UHR (fast short range) radios.
>>>> 
>>>> Now imagine your router R has a neighbor A on VHF, which is two-hop
>>>> reachable on UHF... if A also has a neighbor even further away, A will
>>>> ALWAYS be a MPR, because the neighbor of A is at least three hops away
>>>> over UHV.
>>>> 
>>>> Unicast routes will still flow over the UHF network, but flooding will
>>>> be done over VHF, which is a problem.
>>>> 
>>>>> And so the problem here is with that SMF predates link metrics, and hasn’t
>>>>> been updated. It was even worse when I - and others - tried multicasting
>>>>> by intercepting packets in the stack, wrapping them up as a new OLSR (v1)
>>>>> message type and reinjecting into UDP (OLSR port), plus the reverse at
>>>>> reception. Fun days.
>>>> 
>>>> The OLSR implementation from olsr.org has something like this called
>>>> BMF... it was a disaster. ^^
>>>> 
>>>> Henning Rogge
>> 
>> _______________________________________________
>> manet mailing list
>> manet@ietf.org
>> https://www.ietf.org/mailman/listinfo/manet