public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sutter Nino <nino.sutter@bfh.ch>
Subject: Re: [B.A.T.M.A.N.] How is the metric calculated and interpreted?
Date: Sun, 28 Feb 2016 19:47:23 +0100	[thread overview]
Message-ID: <2782217.C3IPJnY5Ul@sven-edge> (raw)
In-Reply-To: <370FBFE49C48C642A1C49A056DBFC0702B70DECEB9@BFHMAIL04.bfh.ch>

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

> How is the metric (?/255) calculated?

Puh, please read the section 3.1 of "Inter-Flow Network Coding for
Wireless Mesh Networks" to get the basic concept. Details about the
TQ calculations can be found in the source code [2].

> Concerning the output of  "batctl o" below, how can I interpret the following? 
> -What is the meaning when the originator is the same as the next hop (Line 1)?

The best next hop to the originator was detected to be the originator itself.
So this noed doesn't have to transmit packets to this originator via a
different direct neighbor.

> -Is that correct that the originator car 29 will send all packets to car20 directly without a node in-between (Line 2)?
[...]
> car29                     0.864s (175)                        car20 [ wlan0]: car23 ( 0) car36 ( 0) car31 ( 0) car35 ( 0) car21 ( 0) car24 ( 0) car20 (175) car29 ( 0)

No, this node only knows its own view of the network (next hop to
destinations). It knows nearly nothing about what car29 learned about
the network.

But this node knows that the "best way" to reach car29 from his position is to
send packets via its neighbor car20.

> -How can the potential nexthops be interpreted?

These are just ways to reach this originator + the calculated TQ when sending
over this originator/neighbor.


This was a little bit simplified but should give you a starting point.

Kind regarding,
	Sven


[1] https://downloads.open-mesh.org/batman/papers/batman-adv_network_coding.pdf
[2] https://git.open-mesh.org/batman-adv.git/blob/789b846af6a9471982b181687a1cba8dc996b269:/net/batman-adv/bat_iv_ogm.c#l1119

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-02-28 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17  6:59 [B.A.T.M.A.N.] How is the metric calculated and interpreted? Sutter Nino
2016-02-28 18:47 ` Sven Eckelmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2782217.C3IPJnY5Ul@sven-edge \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=nino.sutter@bfh.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox