I am collecting routing tables for every nodes, but found out two routes for the same destination, i am wondering why there are two routes for the same destination?(may be there are two paths to the destination in my topology?) How would I know which one was used, Hence there is no entry for metric
===========Setup===============
I am calling the following functions to print out the routing tables,
===========Code===============
Ptr<OutputStreamWrapper> routingStream = Create<OutputStreamWrapper>("tmp.routes", std::ios::out);
Ipv4RoutingHelper::PrintRoutingTableAllAt(Seconds(21), routingStream);
===========Partial Output===============Priority: -10 Protocol: ns3::Ipv4GlobalRouting
Node: 8, Time: +21s, Local time: +21s, Ipv4GlobalRouting table
Destination Gateway Genmask Flags Metric Ref Use Iface
...........
10.1.9.1 10.1.2.2 255.255.255.255 UH - - - r0-r1
10.1.9.1 10.1.7.2 255.255.255.255 UH - - - r0-r2
.......
Thanks for all