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-16 15:42:32

Hi,

It's a bit over three years ago you wrote this, so perhaps you won't
really remember, but I'm not sure I can make sense of the code and
wanted to ask if you can help out.

In particular, I'm wondering about the timing aspects of this
interference simulation.

The commit message says:
In real space, there could be interference of radio waves. This commit
considers a radio wave which has signal strength under
CCA_THRESHOLD(-90) causes interference. This commit accumulates such
radio wave signal strength and decreases it from tx power.
I don't see this - the signal strength is just taken as is, and
overwritten, so there's no accumulation going on?

And the timing is just odd - the duration of the interference is added
to at the *end* of each transmission, and every 10 ms the duration of
the interference is calculated into a probability?


I'd have expected this to be something like have a list of signals, with

 * transmitter (location)
 * signal strength

added to the list at the beginning and removed at the end. Or
alternatively, perhaps easier to use, for each destination station the
cumulative noise received at there from far away transmissions, already
weighed by distance (though that's tricky since stations can move).

Then, when actually "transmitting" the frame, check that value, or sum
up all the lists by location/fading by distance.


I guess my question really is how what's actually implemented is meant
to map to the physical world?


Thanks,
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