Thread (6 messages) flat view 6 messages, 2 authors, 2020-03-24

Re: Simulate Radio wave interference

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2020-03-23 09:11:21

On Sun, 2020-03-22 at 09:34 +0900, Masashi Honma wrote:
On 2020/03/17 0:42, Johannes Berg wrote:
 > I don't see this - the signal strength is just taken as is, and
 > overwritten, so there's no accumulation going on?

Right. The signal strength is not accumulated. The commit log is wrong.
OK.
The interference model is accumulating frame duration to calculate
probabilities.
But it's doing it on the *previous* interval, and then affects the
*next* interval, right? In terms of timing.

I don't really have any objection to this, just trying to understand it
- mostly because I'm trying to use wmediumd for simulation and want the
timing to be better at least in that case.
I think I should explain the concept of this interference model.
The interference model assumes signals which strength is under CCA
threshold are interference signal. The model accumulates the duration
of such signals. The model assumes (accumulated duration / time slot)
is probability of occurrence of interference. When interference occurs,
the model reduce the max signal strength of interfering STA from
transmitting STA's signal strength.
Right. What threw me off was the fact that it's accumulated over a
previous period, and then affects the current period, which seemed odd
because I was thinking about my simulation more than just an arbitrary
model. I guess it's fine for whatever you were trying to achieve, and
simply doesn't fit what I'm trying to do.

I'll need to figure out how to reconcile the different ways of thinking
here.
Though the implementation is not among the concept of the model. The
signal strength from node A to B was calculated and wrongly accumulated
to interference duration of "A to all".
Heh, ok.
I fixed it to "A to B" and sent a Pull Request to wmediumd.
https://github.com/bcopeland/wmediumd/pull/22
I _really_ didn't mean to coax you into fixing anything, just trying to
understand. That said, those changes look good to me.

To get closer to real world, it is necessary to consider the phase of
radio wave. A radio wave could be weakened by radio waves which has
opposite phase.
While that's true, is it really necessary? Even if the signals are in
phase, you're going to have a hard time differentiating between the two,
and the frame will be lost either way, no?

I think from a timing aspect, checking if two signals are in phase will
be practically impossible - we're talking about less than 1us timing
differences (0.2 at 5 GHz), if I'm doing the math correctly?
Calculation of radio wave phase of multi signals could be described by
electric field created by mesh node antenna. By using this electric
field model, we could accumulate some interference signals as vector.

I have an idea of implementation. Though I need some more time to
implement this.
Again, for the record, I really just wanted to clarify that I was
understanding things correctly! Not to coax you into implementing
anything.

Thanks for the help!

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help