Open benpicco opened 5 years ago
I also tried with sudo ./start_network.sh /dev/ttyACM0 tap0 fd00:1:2:3::/64
to see if the other BR takes over if they are in the same prefix.
Iface 6 HWaddr: 06:5A Channel: 26 Page: 0 NID: 0x23
Long HWaddr: 79:7D:36:2C:C9:59:06:5A
TX-Power: 0dBm State: IDLE max. Retrans.: 3 CSMA Retries: 4
AUTOACK ACK_REQ CSMA L2-PDU:102 MTU:1280 HL:64 RTR
RTR_ADV 6LO IPHC
Source address length: 8
Link type: wireless
inet6 addr: fe80::7b7d:362c:c959:65a scope: local VAL
inet6 addr: fd00:1:2:3:7b7d:362c:c959:65a scope: global VAL
inet6 group: ff02::2
inet6 group: ff02::1
inet6 group: ff02::1:ff59:65a
But no:
> 2019-09-13 19:37:16,791 - INFO # nib abr
2019-09-13 19:37:16,794 - INFO # fd00:1:2:3:a:b:c:d v0 expires 10000min
FYI everyone, I know about this issue, I talked with @benpicco offline about it, but I have to do some research myself before I can give a qualified answer :sweat_smile:
Description
When playing around with border routers I noticed some strange behavior: An offline border router is retained for an unknown time. Even resetting a node does not get it to use the new border router as the old border router information is still being advertised by neighboring nodes.
I am not sure if this is to spec as the border router live time is indeed exceptionally high. But this seems more like a bug as it makes roaming nodes impossible. Even worse, a roaming node could 'pollute' other nodes with an unreachable border router, making them ignore a border router that is reachable.
I think the solution could be to check if a border router is reachable before considering border router information valid or to drop existing border router information if a 'fresh' border router becomes available.
This makes me wonder, is is possible to protect against rogue border routers?
Steps to reproduce the issue
gnrc_networking
example and observe that the border router is being usedgnrc_border_router
example and runThe RIOT border Router should now announce it's prefix.
Expected results
After some time, the new border router should be used as the old border router is not reachable anymore.
Actual results
The old border router will be used for the next ~45 days
some more information:
Versions
RIOT master