Re: [babel] Example configuration

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 06 August 2019 20:12 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AB29A1200D8 for <babel@ietfa.amsl.com>; Tue, 6 Aug 2019 13:12:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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 lxbytMiK3Chz for <babel@ietfa.amsl.com>; Tue, 6 Aug 2019 13:12:32 -0700 (PDT)
Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 B0D8912013C for <babel@ietf.org>; Tue, 6 Aug 2019 13:12:31 -0700 (PDT)
Received: by mail-pf1-x42f.google.com with SMTP id i189so42105862pfg.10 for <babel@ietf.org>; Tue, 06 Aug 2019 13:12:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=3ejT12++IpMoML0bkXG89QkZPDDt0ankcMlbTdZxeVM=; b=nRTwV7elAg14iu7KPPzK1ezkjIdGP/vr1yD+GSTzKStDrAKotxQNKoUU1E8c8EUeFg EdDg9FmkxM8I3sycJbk6zD+F0OUcfvAVjN9vGvJ05LFaX3gKg1NMngSKxj50nb23fqFa 9XKaq3gjMbwCt+HIEjBbYKPAz6L7Mdf6oFGVGPPaAJel+4s0vFml/AQYaGFR8H0OVlar j6MYydjtX+H42Qy9gioN4UDsVLHJspEQQJuB2uCz0nE6AKGJeJrncgCBdLwZyEtugKmU Xnf9rqWmQgl0YM0Xv9GUW+yAY/6kA08cE8n5DgU3ze5gLfdlT4vK039HcQm8ErYOA9cF dF3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=3ejT12++IpMoML0bkXG89QkZPDDt0ankcMlbTdZxeVM=; b=WXNz0FCEH5a7vn/Z2S2CZe3aVMrA/bM0PhLD3v7UCCBwQE5fZFNvnr2QPHT7SJSDM5 TJmH5/lYm6ySEAA1cl0IplRV00edzVD2sTFKMpPzI4uFiEjTNj4XO7bNjOHopEFN3zNf qU8f4ui1d9P4HE7ebrO+2ntFoZWAjVvaZAgLhUpCe4Aqo1ubjMsUrHnWvD1Fya56fVSJ hH6N0oGX8cNFN+y2/8y8xgpnVPLxgDmwrzuH2481abblOteGVAkNF5rqJEV/8SUCmSyJ R3XvPVYqTQRZCL0Rv0vP/2qcqxWd8mIm0J2+k0Lnxy4rMeqfieXskT1k7lRlNRl0CH8q UOYQ==
X-Gm-Message-State: APjAAAXc2EDayXiGL+4/b0h8PfW2utYQyt76H0J+XrE9TaGA8zYRHQno rJIC7pCjEJGJkpIVO+XIg04=
X-Google-Smtp-Source: APXvYqxMyHCbnMSPqhbI9x/2FpN629M/tXoo8Nfowt9nEV0ev4MBokczNoyOw4gd2LX+OCMj9vDg8Q==
X-Received: by 2002:a65:53cb:: with SMTP id z11mr4182907pgr.200.1565122351114; Tue, 06 Aug 2019 13:12:31 -0700 (PDT)
Received: from [10.33.122.240] ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id p65sm87858498pfp.58.2019.08.06.13.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 13:12:29 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <1C6F628C-7A3C-4D66-9930-9F0244A20722@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_3872FF85-787C-4BF5-A48B-92BBFC43D21F"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Tue, 06 Aug 2019 13:12:29 -0700
In-Reply-To: <877e7qaxte.wl-jch@irif.fr>
Cc: Babel at IETF <babel@ietf.org>
To: Juliusz Chroboczek <jch@irif.fr>
References: <E726ED50-6D90-4537-B237-6E52D375F50B@gmail.com> <8736itu6j8.wl-jch@irif.fr> <0E0A89B7-3D7A-4605-8776-2CF685B268B0@gmail.com> <877e7qaxte.wl-jch@irif.fr>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/CN23SGGwXiR14Ydw2LwWeE0geDQ>
Subject: Re: [babel] Example configuration
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Aug 2019 20:12:35 -0000


> On Aug 6, 2019, at 12:38 PM, Juliusz Chroboczek <jch@irif.fr> wrote:
> 
>>> Here's a slightly less minimal configuration:
>>> 
>>> interface eth0
>>> interface eth1 type wireless
>>> interface tun0 type tunnel
> 
> [...]
> 
>>> This is equivalent to the following:
>>> 
>>> interface eth0
>>> interface eth1 link-quality true split-horizon false
>>> interface tun0 enable-timestamps true max-rtt-penalty 96
> 
>> The XML encoding of the above example can be found in
>> example-babel-configuration-2.5.xml. You will notice that eth1 type is
>> set to ‘wireless’ using ‘link-properties’. Same for tun0 and ‘tunnel’.
> 
> Hmm.  Draft-ietf-babel-information-model-08 removes the interface type,
> and uses the underlying properties instead.  Shouldn't the YANG model do
> the same, or is there some reason why the YANG model should be using
> interface types instead?

I am still playing catchup with -08 changes in the information model.

I am also not clear on the underlying properties. If the interface is eth1, its underlying property will be of a wired 802.3 like interface. I thought the whole idea of specifying the type was an indication that eth1 is an Ethernet bridged to a wireless radio. How would you derive a ‘wireless’ like information from the underlying property?

> 
>>> interface eth0
>>> interface ppp0 hello-interval 30 update-interval 120
>>> in if ppp0 metric 1024
>>> out if ppp0 metric 1024
> 
>> Here is where I am stuck. Currently, there is
>> a babel-mcast-hello-interval parameter defined in the information model
>> under the interface. But this a read-only attribute, meaning it is
>> a operational value, not a configuration value.
> 
> It should be configurable.

Just to confirm. Both babel-mcast-hello-interval and babel-update-interval need to be read-write (configurable) properties.

> 
>> There is no unicast hello interval, which is what I am assuming you mean
>> above.
> 
> No, I mean the multicast interval.
> 
>> Also, there is no metric configuration on an interface today. Certainly
>> not based on in and out traffic.
> 
> The metric configuration is not attached to the interface, it's a filter.
> Filters are a separate kind of entity, and need not contain an interface
> entry.  For example, one may say
> 
>  in ip 10.0.0.0/8 metric 128
> 
> in which case the filter applies to all routes with a destination in 10/8.

In other words, a global configuration that applies across all routes with that destination. I am not aware of any way to do this with our current information model. We are looking at an addition to the information model.

In summary, we are looking at the following changes to the information model that will then be followed by updates in the YANG model.

Change babel-mcast-hello-interval and babel-update-interval to rw property.
Add global level filter capability
Add a way to mark an interface for unicast-preferred (please feel free to suggest a better name), and unicast-only as boolean configurable properties.
Add a capability to specify a link-local address for a neighbor.
And whatever comes out of the discussion around underlying property of an interface.

Thanks

> 
> -- Juliusz

Mahesh Jethanandani
mjethanandani@gmail.com