btcven / radio-firmware

The firmware for the radio module
https://locha.io
Apache License 2.0
7 stars 10 forks source link

Open discussion: Reliability of RREP in some scenarios. #82

Closed gustavosinbandera1 closed 4 years ago

gustavosinbandera1 commented 4 years ago
        A                         B                      C        
-----------------         -----------------      -----------------
        |                         |                      |
    +-------+                 +-------+              +-------+    
    |       |                 |       |              |       |    
    +-------+                 +-------+              +-------+    
        |      newpkt[B][A]       |                      |        
        <-------------------------|                      |        
        |                         |                      |        
    +-------+                 +-------+              +-------+    
    |       |                 |       |              |       |    
    +-------+                 +-------+              +-------+    
        |                         |     newpkt[C][A]     |        
        <------------------------------------------------|        
        |                         |                      |        
    +-------+                 +-------+              +-------+    
    |       |                 |       |              |       |    
    +-------+                 +-------+              +-------+    
        |                         |                      |        
-----------------         -----------------      -----------------

In the first scenario a packet from B to A is followed by a packet from C to A. when packet from C to A, the new RREQ cannot go more than one hope, because node B now know the route to node A and it would need to send RREP in both directions to origin address and to target address, for actual the code is sending RREQ until to reach destination address, this approach overloads the network

jeandudey commented 4 years ago

Please reword title to Intermediate RREP implementation or some variant of it to represent the intention.

jeandudey commented 4 years ago

This can be closed, Intermediate RREPs pose a security risk.