public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] TTL yes, TTL no
Date: Sat, 26 Mar 2011 18:45:48 +0100	[thread overview]
Message-ID: <20110326174547.GL17979@lunn.ch> (raw)
In-Reply-To: <20110326172155.GA11235@ritirata.org>

> I think it is wrong: TQ is not decremented by hop_penalty each time, but it is
> multiplied by (TQ_MAX-hop_penalty/TQ_MAX), then the number of hops is
> bigger than what you said. With hop_penalty = 10 we can probably reach
> ~135 hops (raw calculus 255*(TQ_MAX-hop_penalty/TQ_MAX)^135) =~ 0)

I agree with the principle. However, you need to take rounding into
effect. The kernel does integer arithmetic and TQ is always an integer
value. I also got it wrong in my last post. I used the wrong round
function when calculating the values. Using rounddown() i get:

255
245
235
225
216
207
198
190
182
174
167
160
153
147
141
135
129
123
118
113
108
103
98
94
90
86
82
78
74
71
68
65
62
59
56
53
50
48
46
44
42
40
38
36
34
32
30
28
26
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

After 73 hops, TQ will be zero.

> Looking at the calculus above, I'm proposing to use TTL = ~135

TTL of 73 would be more accurate i think.

Which leads me to a new question. At WBM we talked about moving the
HNAs out of the OGMs. If we had a really big mesh, with more than 73
hops from side to side, do we get into a situation where we have HNAs
from more than 73 hops away, but no idea how to route to them since
OGMs got dropped when TQ reached 0?

     Andrew

  reply	other threads:[~2011-03-26 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 17:21 [B.A.T.M.A.N.] TTL yes, TTL no Antonio Quartulli
2011-03-26 17:45 ` Andrew Lunn [this message]
2011-03-26 18:15   ` Antonio Quartulli
  -- strict thread matches above, loose matches on Subject: below --
2011-03-26 18:17 Antonio Quartulli
2011-03-26 18:01 Antonio Quartulli
2011-03-26 13:04 Antonio Quartulli
2011-03-26 15:31 ` Marek Lindner
2011-03-26 16:14   ` Andrew Lunn

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=20110326174547.GL17979@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /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