MobileMESH / ProjectM

MIT License
0 stars 0 forks source link

MESH network connection #31

Open VeriHeppi opened 1 year ago

VeriHeppi commented 1 year ago

Let's say we have four devices - A, B, C, and D - and they all want to join a network. Initially, A and B are already in the network and can communicate with each other.

When B wants to join the network, it sends a request to A to join the network. A accepts the request, and B becomes a part of the network. At this point, A can communicate with B and vice versa.

However, A is not able to see C and D, which means they cannot join the network yet. To enable them to join, B can share a list of the devices that want to join the network, which A cannot see.

B can do this by broadcasting a message to all devices in the network, including A. The message contains the list of devices that want to join, which includes C and D. A can then use this information to invite C and D to join the network.

Once C and D are added to the network, they can communicate with A and B as well. This way, the network grows as more devices join, and they are able to communicate with each other even if they are not directly connected.

After C and D join the network, they can also share a list of devices that want to join the network, just like B did earlier.

For example, if E wants to join the network, but it cannot be seen by A, B, C, or D, E can send a join request to C or D. C or D can then share the list of devices that want to join the network with E, and E can use this information to request to join the network.

This way, the network can continue to grow as more devices join and share information about other devices that want to join but are not visible to all members of the network.

vnuotio commented 1 year ago

Research paper: https://www.proquest.com/docview/1650979873

vnuotio commented 1 year ago
DiyazY commented 1 year ago

Check this: