[babel] Monitoring interface -- example output

Juliusz Chroboczek <jch@irif.fr> Thu, 11 April 2019 10:38 UTC

Return-Path: <jch@irif.fr>
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 CDCB012011D for <babel@ietfa.amsl.com>; Thu, 11 Apr 2019 03:38:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 j3brOR1U9YLi for <babel@ietfa.amsl.com>; Thu, 11 Apr 2019 03:38:23 -0700 (PDT)
Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) (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 D0FC0120044 for <babel@ietf.org>; Thu, 11 Apr 2019 03:38:22 -0700 (PDT)
Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/82085) with ESMTP id x3BAcG2K032274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 11 Apr 2019 12:38:16 +0200
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/82085) with ESMTP id x3BAcHFw029016; Thu, 11 Apr 2019 12:38:17 +0200
Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 41C987DDC0; Thu, 11 Apr 2019 12:38:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr
Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id rxx-Kq-nfB2G; Thu, 11 Apr 2019 12:38:18 +0200 (CEST)
Received: from lanthane.irif.fr (unknown [172.23.36.89]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id DE1CE7DDBE; Thu, 11 Apr 2019 12:38:18 +0200 (CEST)
Date: Thu, 11 Apr 2019 12:38:18 +0200
Message-ID: <87tvf4hlnp.wl-jch@irif.fr>
From: Juliusz Chroboczek <jch@irif.fr>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
CC: babel@ietf.org
User-Agent: Wanderlust/2.15.9
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="US-ASCII"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Thu, 11 Apr 2019 12:38:16 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Thu, 11 Apr 2019 12:38:17 +0200 (CEST)
X-Miltered: at korolev with ID 5CAF1918.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-Miltered: at potemkin with ID 5CAF1919.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 5CAF1918.002 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/<jch@irif.fr>
X-j-chkmail-Enveloppe: 5CAF1919.002 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<jch@irif.fr>
X-j-chkmail-Score: MSGID : 5CAF1918.002 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Score: MSGID : 5CAF1919.002 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
X-j-chkmail-Status: Ham
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/75cDaC4HbHTtqUyA9yUEOjzZMj4>
Subject: [babel] Monitoring interface -- example output
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: Thu, 11 Apr 2019 10:38:25 -0000

Dear Mahesh,

At the Prague meeting, you asked for sample output from babeld's
proprietary monitoring interface and example configuration files.
Here's an actual interaction, explanation below.

    BABEL 1.0
    version babeld-1.8.4-55-g39c5f0a
    host pi
    my-id e2:46:9a:ff:fe:4e:91:e3
    ok
    dump
    add interface eth0 up true ipv6 fe80::e046:9aff:fe4e:91e2 ipv4 192.168.4.40
    add interface wlan0 up true ipv6 fe80::e246:9aff:fe4e:91e2 ipv4 192.168.5.40
    add interface wlan1 up true ipv6 fe80::e246:9aff:fe4e:91e4 ipv4 192.168.6.40
    add neighbour 42bb90 address fe80::204:75ff:fe90:9ba9 if eth0 reach fc00 ureach 0000 rxcost 96 txcost 96 cost 96
    add xroute fd84:eeaf:8cec::/48-2000::/3 prefix fd84:eeaf:8cec::/48 from 2000::/3 metric 0
    add xroute fd84:eeaf:8cec::/64-2000::/3 prefix fd84:eeaf:8cec::/64 from 2000::/3 metric 0
    add xroute 0.0.0.0/0-::ffff:0.0.0.0/0 prefix 0.0.0.0/0 from ::ffff:0.0.0.0/0 metric 0
    add xroute 172.23.36.139/32-::/0 prefix 172.23.36.139/32 from ::/0 metric 0
    add xroute 192.168.2.40/32-::/0 prefix 192.168.2.40/32 from ::/0 metric 0
    add xroute 192.168.4.40/32-::/0 prefix 192.168.4.40/32 from ::/0 metric 0
    add xroute 192.168.5.40/32-::/0 prefix 192.168.5.40/32 from ::/0 metric 0
    add xroute 192.168.6.40/32-::/0 prefix 192.168.6.40/32 from ::/0 metric 0
    add xroute 2001:660:3301:9208::40/128-::/0 prefix 2001:660:3301:9208::40/128 from ::/0 metric 0
    add xroute 2001:660:3301:9208::40/128-2000::/3 prefix 2001:660:3301:9208::40/128 from 2000::/3 metric 0
    add xroute fd84:eeaf:8cec::1/128-::/0 prefix fd84:eeaf:8cec::1/128 from ::/0 metric 0
    add route 779cfeb0 prefix 172.23.36.89/32 from 0.0.0.0/0 installed yes id 02:04:75:ff:fe:90:9b:a9 metric 96 refmetric 0 via fe80::204:75ff:fe90:9ba9 if eth0
    add route 73f1f0 prefix 192.168.5.100/32 from 0.0.0.0/0 installed yes id 02:04:75:ff:fe:90:9b:a9 metric 96 refmetric 0 via fe80::204:75ff:fe90:9ba9 if eth0
    add route 73f070 prefix 2001:660:3301:9202::ac17:2459/128 from ::/0 installed yes id 02:04:75:ff:fe:90:9b:a9 metric 96 refmetric 0 via fe80::204:75ff:fe90:9ba9 if eth0
    add route 73eff0 prefix fd84:eeaf:8cec::204:75ff:fe90:9ba9/128 from ::/0 installed yes id 02:04:75:ff:fe:90:9b:a9 metric 96 refmetric 0 via fe80::204:75ff:fe90:9ba9 if eth0
    ok

"BABEL 1.0" is the version of the monitoring interface.

"version", "host" and "my-id" are the implementation version, the hostname
and the router-id.

I then request a dump of the data structures ("dump"), and babeld gives
me.  The general format is

  add *type* *identifier* *keyword* *value* *keyword* *value* ...

  - the set of active interfaces, with the parameters
      - interface name
      - up (boolean)
      - ipv6 (link-local address)
      - ipv4 (the IPv4 address used for advertising next hops, optional).

  - the set of neighbours, with parameters
      - a unique identifier for the neighbour;
      - the (remote) link-local address;
      - the interface over which we see the neighbour (if);
      - a 16-bit hello history;
      - a 16-bit unicast hello history;
      - the rxcost, txcost and computed cost.

  - the set of routes originated by this node (called xroutes in babeld):
      - a unique identifier for the xroute;
      - the prefix being advertised (IPv6 or IPv4);
      - the source prefix (draft-ietf-babel-source-specific);
      - the metric of the route (only one metric for xroutes).

  - the set of routes readvertised by this node (called routes):
      - a unique identifier for the route;
      - the prefix being advertised;
      - the source prefix;
      - whether the route is installed (boolean);
      - the router-id of the router originating the route (id);
      - the computed metric (metric) and the metric advertised by the
        neighbour (refmetric, for reference metric);
      - the next hop (via);
      - the interface (if).

-- Juliusz