Hello Jonathan,
I am testing the external ping operations further and I see some behaviour that I had not expected.
- The leader of the network Node1 is an OTBR having connection to the internet via wifi.
- Node2 is also an OTBR and the role of the node in the network is a router.
- Internet to the Node2 is disconnected (WiFi turned off/Ethernet is disconnected)
- ip route has been updated to go though wpan0 in Node2
After following the above steps, the ping to the external network is not successful. If the Node2 is holding a role of end-device, the external ping via wpan0 is OK.
I have put the diagnostics below.
State: Internet connectivity via ethernet is available, node is part of an OT network as a router. Output of the ip route:
root@ea28f467f9c8:/app/borderrouter# ip -6 route show
64:ff9b::/96 dev nat64 metric 1024 pref medium
fd11:22::/64 dev wpan0 proto kernel metric 256 pref medium
fd11:1111:1122::/64 dev wpan0 proto kernel metric 256 pref medium
fdaa:bb:1::2 dev nat64 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev nat64 proto kernel metric 256 pref medium
fe80::/64 dev wpan0 proto kernel metric 256 pref medium
State of the node
root@ea28f467f9c8:/app/borderrouter# wpanctl status
wpan0 => [
"NCP:State" => "associated"
"Daemon:Enabled" => true
"NCP:Version" => "OPENTHREAD/20170716-00867-g4081d794-dirty; WPANDEV; Nov 15 2018 04:41:59"
"Daemon:Version" => "0.08.00d (/47f3212; Oct 24 2018 08:11:10)"
"Config:NCP:DriverName" => "spinel"
"NCP:HardwareAddress" => [18B4300000000001]
"NCP:Channel" => 15
"Network:NodeType" => "router"
"Network:Name" => "2018Nov21-OT"
"Network:XPANID" => 0x1111111122222222
"Network:PANID" => 0x1234
"IPv6:LinkLocalAddress" => "fe80::a88d:4e0c:27eb:2d09"
"IPv6:MeshLocalAddress" => "fd11:1111:1122:0:fc9e:4d36:e873:28aa"
"IPv6:MeshLocalPrefix" => "fd11:1111:1122::/64"
"com.nestlabs.internal:Network:AllowingJoin" => false
]
Ping to external network is OK
root@ea28f467f9c8:/app/borderrouter# ping6 64:ff9b::acd9:a46e
PING 64:ff9b::acd9:a46e (64:ff9b::acd9:a46e): 56 data bytes
^C--- 64:ff9b::acd9:a46e ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 240.813/254.664/262.728/9.838 ms
Internet connectivity via ethernet is disconnected, ip route command to use wpan is executed.
root@ea28f467f9c8:/app/borderrouter# sudo ip -6 route del 64:ff9b::/96
root@ea28f467f9c8:/app/borderrouter# sudo ip -6 route add 64:ff9b::/96 dev wpan0
root@ea28f467f9c8:/app/borderrouter#
root@ea28f467f9c8:/app/borderrouter# ip -6 route show
64:ff9b::/96 dev wpan0 metric 1024 pref medium
fd11:22::/64 dev wpan0 proto kernel metric 256 pref medium
fd11:1111:1122::/64 dev wpan0 proto kernel metric 256 pref medium
fdaa:bb:1::2 dev nat64 proto kernel metric 256 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev nat64 proto kernel metric 256 pref medium
fe80::/64 dev wpan0 proto kernel metric 256 pref medium
State of the node
root@ea28f467f9c8:/app/borderrouter# wpanctl status
wpan0 => [
"NCP:State" => "associated"
"Daemon:Enabled" => true
"NCP:Version" => "OPENTHREAD/20170716-00867-g4081d794-dirty; WPANDEV; Nov 15 2018 04:41:59"
"Daemon:Version" => "0.08.00d (/47f3212; Oct 24 2018 08:11:10)"
"Config:NCP:DriverName" => "spinel"
"NCP:HardwareAddress" => [18B4300000000001]
"NCP:Channel" => 15
"Network:NodeType" => "router"
"Network:Name" => "2018Nov21-OT"
"Network:XPANID" => 0x1111111122222222
"Network:PANID" => 0x1234
"IPv6:LinkLocalAddress" => "fe80::a88d:4e0c:27eb:2d09"
"IPv6:MeshLocalAddress" => "fd11:1111:1122:0:fc9e:4d36:e873:28aa"
"IPv6:MeshLocalPrefix" => "fd11:1111:1122::/64"
"com.nestlabs.internal:Network:AllowingJoin" => false
]
Ping to external is unsuccessful
root@ea28f467f9c8:/app/borderrouter#
root@ea28f467f9c8:/app/borderrouter# ping6 64:ff9b::acd9:a46e
PING 64:ff9b::acd9:a46e (64:ff9b::acd9:a46e): 56 data bytes
^C--- 64:ff9b::acd9:a46e ping statistics ---
56 packets transmitted, 0 packets received, 100% packet loss
From the web gui, Join operation is selected again. The node state changes to end-device
root@ea28f467f9c8:/app/borderrouter# wpanctl status
wpan0 => [
"NCP:State" => "associated"
"Daemon:Enabled" => true
"NCP:Version" => "OPENTHREAD/20170716-00867-g4081d794-dirty; WPANDEV; Nov 15 2018 04:41:59"
"Daemon:Version" => "0.08.00d (/47f3212; Oct 24 2018 08:11:10)"
"Config:NCP:DriverName" => "spinel"
"NCP:HardwareAddress" => [18B4300000000001]
"NCP:Channel" => 15
"Network:NodeType" => "end-device"
"Network:Name" => "2018Nov21-OT"
"Network:XPANID" => 0x1111111122222222
"Network:PANID" => 0x1234
"IPv6:MeshLocalAddress" => "fd11:1111:1122:0:bc0c:637a:9e1a:b292"
"IPv6:MeshLocalPrefix" => "fd11:1111:1122::/64"
"com.nestlabs.internal:Network:AllowingJoin" => false
]
Ping to external network is OK. But when the node is upgraded to router (after 30sec - 2 min), the ping again stops working
root@ea28f467f9c8:/app/borderrouter# ping6 64:ff9b::acd9:a46e
PING 64:ff9b::acd9:a46e (64:ff9b::acd9:a46e): 56 data bytes
Is there any gap in my understanding. Can you please clarify?
Many thanks,
JNayak