detobel36 / ProjectMobileEmbeddedComputing

Project for the cours Mobile and Embedded Computing
0 stars 0 forks source link

Problem with reset and communication with children #30

Open detobel36 opened 4 years ago

detobel36 commented 4 years ago

Arrow = parent

image1 Start state


image2 Node 5 disconnect/disapear Node 6 could not send packet. Send a broadcast and receive a response of node 2. Node 6 have thus a new parent (2) and node 2 think that Node 5 is present. Node 6 send data (value 29) to Node 2. Node 2 know that 6 is a children.


image3 Node 2 try to send data. Detect that Node 5 is disconnect. Reset rank and inform children (6).


image4 Node 4 response to Node 6 but no data are send. Thus Node 4 doesn't know that Node 6 is a child. Node 2 have a response of the Node 3. Node 2 forward the data with value 29 (from Node 6). Node 3 think that Node 2 is connected to Node 6.


Packet arrived to server. Server response. Node 3 forward the packet to Node 2. :warning: Node 2 could not forward packet to 6.