All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] How is the metric calculated and interpreted?
@ 2016-02-17  6:59 Sutter Nino
  2016-02-28 18:47 ` Sven Eckelmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sutter Nino @ 2016-02-17  6:59 UTC (permalink / raw)
  To: 'b.a.t.m.a.n@lists.open-mesh.org'

Hello there

I have some basic Issues which I was not able to solve with the Wiki.

How is the metric (?/255) calculated?

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)?
-Is that correct that the originator car 29 will send all packets to car20 directly without a node in-between (Line 2)?
-How can the potential nexthops be interpreted?

[B.A.T.M.A.N. adv 2015.1, MainIF/MAC: adhoc0/c4:93:00:02:d1:4f (bat0 BATMAN_IV)]
  Originator      last-seen (#/255)           Nexthop [outgoingIF]:   Potential nexthops ...
car23                     0.300s (255)                        car23 [ wlan0]: car35 ( 0) car24 ( 0) car31 (103) car21 (183) car36 ( 68) car20 (178) car23 (255) 
car29                     0.864s (175)                        car20 [ wlan0]: car23 ( 0) car36 ( 0) car31 ( 0) car35 ( 0) car21 ( 0) car24 ( 0) car20 (175) car29 ( 0)

Thank you for your answers

Regards 
Nino

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] How is the metric calculated and interpreted?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Eckelmann @ 2016-02-28 18:47 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Sutter Nino

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-28 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.