[Olsr-dev] Smartgateway
Teco Boot
(spam-protected)
Fri Dec 9 11:39:12 CET 2011
I tested a bit more.
I took GW function on 173 down.
Then, 173 started use tunnel to 179, which is no GW anymore (wrong).
179 lost tunnel to 173 and default routes, because 173 stopped announcing
as SGW. 179 sends ICMP net unreachable to 173, as reply on packets to
Internet.
An olsrd restart on 179 did remove the SGW tunnel on 173 (because no link to
179: cleanup HNA & SGW).
During a reproduction, I had some trouble when verifying self advertised HNA.
Same for self advertised SGW info. It would be nice to include this in the
txtinfo output.
With tcpdump, the SGW is shown as 0.0.0.0/4294967295 (0/32), HNA info in packet
was 0000 0000 0007 5903. I think /32 is shown if first mask bit(s) is(are) 0.
Could be improved.
More debugging:
When default route on 179 goes down, it takes some seconds before a HNA without
the SGW info is advertised. But then, the HNA & SGW entries on the 173 must be
cleaned up. Or after time-out. It didn't. Maybe it is caused by lack of info
similar to txtinfo not showing HNA's that overlap an own HNA with same info?
Teco
Op 8 dec. 2011, om 20:33 heeft Teco Boot het volgende geschreven:
> Another problem.
>
> I have a 3 node network:
> 173 (is gw)
> 179
> 166
>
> 179 was GW before (days ago).
>
> 179 and 166 have a tunnel to 173 (OK).
>
> 173 has still selected 179 as GW. It should deselect and
> delete the tunnel, because 179 withdrawn the HNA.
>
> Cleanup should be performed in olsr_delete_gateway_entry in hna_set.c
> No idea why is is still there.
> Maybe move the cleanup in the regular GW selection routine?
> Condition: current GW must have valid path and must have the SGW HNA entry.
>
>
> 173:
> ====
> (spam-protected):~# olsr -g
> Table: Gateways
> Status Gateway IP ETX Hopcnt Uplink Downlnk IPv4 IPv6 Prefix
> s- 172.31.175.179 1.000 1 120 1000 ipv4(n) - -
>
> (spam-protected):~# olsr -h
> Table: HNA
> Destination Gateway
> 192.0.0.0/2 172.31.175.173
> 128.0.0.0/2 172.31.175.173
> 64.0.0.0/2 172.31.175.173
> 0.0.0.0/2 172.31.175.173
> 0.0.0.0/0 172.31.175.173
> 10.175.173.0/24 172.31.175.173
> 10.175.166.0/24 172.31.175.166
> 10.175.179.0/24 172.31.175.179
>
> SmartGateway client tunnel:
> tnl_b3af1fac Link encap:IPIP Tunnel HWaddr
> inet addr:172.31.175.173 P-t-P:172.31.175.173 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
>
> 179:
> ====
> (spam-protected):~# olsr -g
> Table: Gateways
> Status Gateway IP ETX Hopcnt Uplink Downlnk IPv4 IPv6 Prefix
> s- 172.31.175.173 1.000 1 120 1000 ipv4(n) - -
>
> (spam-protected):~# olsr -h
> Table: HNA
> Destination Gateway
> 10.175.179.0/24 172.31.175.179
> 10.175.166.0/24 172.31.175.166
> 0.0.0.0/0 172.31.175.173
> 10.175.173.0/24 172.31.175.173
> 0.0.0.0/2 172.31.175.173
> 64.0.0.0/2 172.31.175.173
> 128.0.0.0/2 172.31.175.173
> 192.0.0.0/2 172.31.175.173
>
> SmartGateway client tunnel:
> tnl_adaf1fac Link encap:IPIP Tunnel HWaddr
> inet addr:172.31.175.179 P-t-P:172.31.175.179 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
>
> 166:
> ====
> (spam-protected):~# olsr -g
> Table: Gateways
> Status Gateway IP ETX Hopcnt Uplink Downlnk IPv4 IPv6 Prefix
> s- 172.31.175.173 1.000 1 120 1000 ipv4(n) - -
>
> (spam-protected):~# olsr -h
> Table: HNA
> Destination Gateway
> 10.175.166.0/24 172.31.175.166
> 10.175.173.0/24 172.31.175.173
> 0.0.0.0/0 172.31.175.173
> 0.0.0.0/2 172.31.175.173
> 64.0.0.0/2 172.31.175.173
> 128.0.0.0/2 172.31.175.173
> 192.0.0.0/2 172.31.175.173
> 10.175.179.0/24 172.31.175.179
>
> SmartGateway client tunnel:
> tnl_adaf1fac Link encap:IPIP Tunnel HWaddr
> inet addr:172.31.175.166 P-t-P:172.31.175.166 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>
>
> Teco
>
More information about the Olsr-dev
mailing list