[Olsr-dev] OSX version writes roundtrip routing tables

math (spam-protected)
Fri Mar 18 01:31:23 CET 2011


> hmm is this reproduceable?

Hi Markus

Yep! Unfortunately... I had a hard time before I even considered the  
bug to be in the routing table.
I flushed the routing table many times before running olsrd.
The routing table was fine and after running olsrd for about 10-30  
seconds the new routes are set.
I checked on several machines always running OSX 10.5.8, olsr 0.6.0 (I  
had the same result with 0.5.6-r8)


> can u post an complete txtinfo plugin output aswell.
> and also check the syslog for oslrd eror messages
>

found nothing of interest in syslog...
Interestingly the txtinfo plugin prints a different routing table from  
the one written to the system.
The txtinfo routing table makes complete sense... while the routing  
table does not.
Unfortunately the nonsense routes don't get deleted from the system. I  
had to flush them manually.

Hope this helps!
Best Math


--------------------------------------------------------------------------------------------------------
My Routing Table before running olsrd

Internet:
Destination        Gateway            Flags    Refs      Use  Netif  
Expire
10                 link#5             UCS         1        0    en1
10.91.101.9        127.0.0.1          UHS         0        0    lo0
10.255.255.255     link#5             UHLWb       2       31    en1
127                127.0.0.1          UCS         0        0    lo0
127.0.0.1          127.0.0.1          UH          1   181576    lo0


--------------------------------------------------------------------------------------------------------
My Routing Table during running olsrd

Internet:
Destination        Gateway            Flags    Refs      Use  Netif  
Expire
10                 link#5             UCS         1        0    en1
10.91.101.9        127.0.0.1          UHS         0        0    lo0
10.111.65.3        10.202.0.74        UGH         0        0    en1
10.111.65.3/32     link#5             UC          0        0    en1
10.202.0.74        10.111.65.3        UGH         1        0    en1
10.202.0.74/32     link#5             UC          0        0    en1
10.255.255.255     link#5             UHLWb       2       33    en1

--------------------------------------------------------------------------------------------------------
My Routing Table after running olsrd

Internet:
Destination        Gateway            Flags    Refs      Use  Netif  
Expire
10                 link#5             UCS         1        0    en1
10.91.101.9        127.0.0.1          UHS         0        0    lo0
10.111.65.3        10.202.0.74        UGH         1        0    en1
10.202.0.74        10.111.65.3        UGH         0        0    en1
10.255.255.255     link#5             UHLWb       2       34    en1


--------------------------------------------------------------------------------------------------------
txtinfo output:

Table: Links
Local IP	Remote IP	Hyst.	LQ	NLQ	Cost
10.91.101.9	10.202.0.74	0.00	0.313	0.940	3.387	
10.91.101.9	10.111.65.3	0.00	0.317	0.886	3.552	

Table: Neighbors
IP address	SYM	MPR	MPRS	Will.	2 Hop Neighbors
10.111.65.3	YES	NO	NO	3	1
10.202.0.74	YES	NO	NO	3	1

Table: Topology
Dest. IP	Last hop IP	LQ	NLQ	Cost
10.91.101.9	10.111.65.3	0.886	0.298	3.785
10.202.0.74	10.111.65.3	0.847	0.894	1.320
10.111.65.3	10.91.101.9	0.317	0.886	3.552
10.202.0.74	10.91.101.9	0.313	0.940	3.387
10.111.65.3	10.202.0.74	0.897	0.847	1.314
10.91.101.9	10.202.0.74	0.940	0.364	2.913

Table: HNA
Destination	Gateway

Table: MID
IP address	Aliases

Table: Routes
Destination	Gateway IP	Metric	ETX	Interface
10.111.65.3/32	10.111.65.3	1	3.552	en1	
10.202.0.74/32	10.202.0.74	1	3.387	en1	


--------------------------------------------------------------------------------------------------------
My console after shuting down olsrd (-d 1):

        *** olsr.org - 0.6.0 (2011-02-14 14:25:10 on foton.local) ***

--- 01:12:02.053026  
---------------------------------------------------- LINKS

IP address       hyst         LQ       ETX
10.202.0.74      0.000  0.466/0.894    2.396
10.111.65.3      0.000  0.435/0.886    2.592

--- 01:12:02.053075 ----------------------- TWO-HOP NEIGHBORS

IP addr (2-hop)  IP addr (1-hop)  Total cost
10.111.65.3      10.202.0.74      4.405
10.202.0.74      10.111.65.3      3.367

--- 01:12:02.053171 -------------------------------------------------  
TOPOLOGY

Source IP addr  Dest IP addr          LQ        ETX
10.111.65.3     10.91.101.9     0.944/0.529    1.998
10.111.65.3     10.202.0.74     0.831/0.894    1.345
10.91.101.9     10.111.65.3     0.435/0.886    2.592
10.91.101.9     10.202.0.74     0.466/0.894    2.396
10.202.0.74     10.111.65.3     0.897/0.831    1.339
10.202.0.74     10.91.101.9     0.894/0.388    2.880
^CReceived signal 2 - shutting down
Deleting all routes...
RIB: del prefix 10.111.65.3/32 from 10.111.65.3
TC: del edge entry 10.111.65.3 > 10.91.101.9, cost (0.944/0.529) 1.998
TC: del edge entry 10.111.65.3 > 10.202.0.74, cost (0.831/0.894) 1.345
RIB: del prefix 10.91.101.9/32 from 10.91.101.9
TC: del edge entry 10.91.101.9 > 10.111.65.3, cost (0.435/0.886) 2.592
TC: del edge entry 10.91.101.9 > 10.202.0.74, cost (0.466/0.894) 2.396
RIB: del prefix 10.202.0.74/32 from 10.202.0.74
TC: del edge entry 10.202.0.74 > 10.111.65.3, cost (0.897/0.831) 1.339
TC: del edge entry 10.202.0.74 > 10.91.101.9, cost (0.894/0.388) 2.880
Closing sockets...
Shutting down IPC...
Closing plugins...


> if its reproduceable
> please check before starting olsrd again on osx,, if there are old  
> (olsrd) routes in the kernel, cause i doubt that one olsrd instance  
> wrote this routes..
> and as bsd/osx variants of olsrd can/will not overwrite delete  
> existing routes
> so u should flush at least all routes (to olsrd neighbours) before  
> starting olsrd on osx
>
> Markus
>
> On Thu, Mar 17, 2011 at 8:58 AM, math <(spam-protected)> wrote:
> The OSX version of olsrd 0.6.x is writes routing tables that block
> traffic:
> Meshnet with 3 nodes (all nodes see each other): A, B, C
> A: osx
> Routingtable:
> B -> Gateway C
> C -> Gateway B
>
> see routing table:
> 10.111.65.3        10.202.0.74        UGH         0        0    en1
> 10.202.0.74        10.111.65.3        UGH         1        0    en1
>
> With this routing-table TCP connections to the nodes fail.
>
> Any hint, how to fix this?
>
> Kind regards
> Math
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20110318/8fb965c4/attachment.html>


More information about the Olsr-dev mailing list