Interactive Mesh Network Simulation

Very nice! This is easier in use than my Python-based simulator.

I realize it’s only a simplified simulation, but I just want to give some comments:

  • The hop limit doesn’t seem to be correctly implemented; looks like the original transmitter already bumps it down. If set to 3, it means 4 nodes in a chain can receive it.
  • A node doesn’t rebroadcast a packet anymore if they already heard someone else doing that (except for ROUTER and REPEATER roles). The node that will transmit first is based on the received SNR.
  • I see you added a 5% chance that nodes will transmit at exactly the same time, which is nice, because that may indeed happen. However, you could calculate what the actual chance is, because it happens when they pick the same slot from the contention window.
  • Even if node 0 doesn’t hear node 2 good enough to receive their packets, when node 2 transmits at the same time as node 1, it might be that 2 adds enough interference that it cannot receive the packet from 1 anymore.
2 Likes