[Interop-dev] link-specifc / interface-specific / neighbour link data [was: RFC: add parameter link-type]

Henning Rogge (spam-protected)
Fri Sep 4 13:09:45 CEST 2015


Some example output of olsrd2... you can get more, but this should
give you a good idea.

Henning

On Fri, Sep 4, 2015 at 12:53 PM, Henning Rogge <(spam-protected)> wrote:
> On Fri, Sep 4, 2015 at 12:41 PM, Nemesis <(spam-protected)> wrote:
>> Is there an equivalent of this in olsrv1 jsoninfo plugin?
>
> txtinfo and jsoninfo should deliver the second and third one... (olsrd
> has no concept of linklayer data)
>
> Still, olsrv1 also lacks link-specific information about its two-hop neighbors.
>
>> Or anything else in one of the olsrv2 plugins?
> the first would be a combination of "layer2info" and "nhdpinfo", the
> second one would be "nhdpinfo" only and the third one is "olsrv2info".
>
>> If yes, could you please send some attachments to look at?
> I am already using the same data-sources as nhdpinfo/olsrv2info to
> build my current netjson output. I am not sure what you are looking
> for.
>
>> Also, the most important question IMHO is not what could we do with it?
>> But what do we want to do with it? What's the most pressing need?
>
> I think all of them ARE interesting, it depends what you want to do.
>
> If you want to visualize the local knowledge of a node, got for the
> node- but not link-specific topology data.
>
> If you combine information from all mesh nodes, go for the link-set of
> neighbors and build you own image.
>
> Henning
-------------- next part --------------
echo /layer2info json interface | nc 127.0.0.1 2009
{
        "interface": [
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_type" : "",
                        "if_ident" : "confine_c",
                        "if_ident_addr" : "f2:fb:c5:b2:bd:0a",
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "if_lastseen" : 1.753,
                        "if_frequency" : "5.18 GHz",
                        "if_max_bitrate" : "54 Mbit/s"
                }
        ]
}




echo /layer2info json neighbor | nc 127.0.0.1 2009
{
        "neighbor": [
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "00:15:6d:dc:eb:67",
                        "neigh_lastseen" : 2.148,
                        "neigh_signal" : "-36  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "24 Mbit/s",
                        "neigh_tx_bytes" : "96.45 Mbyte",
                        "neigh_rx_bytes" : "1.683 Gbyte",
                        "neigh_tx_frames" : "224.22 k",
                        "neigh_rx_frames" : "22.475 M",
                        "neigh_tx_retries" : "742",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "00:15:6d:dc:eb:8c",
                        "neigh_lastseen" : 1.878,
                        "neigh_signal" : "-51  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "813.789 Mbyte",
                        "neigh_rx_bytes" : "1.177 Gbyte",
                        "neigh_tx_frames" : "3.902 M",
                        "neigh_rx_frames" : "11.743 M",
                        "neigh_tx_retries" : "70.401 k",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:30:99:fd",
                        "neigh_lastseen" : 1.928,
                        "neigh_signal" : "-46  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "102.187 Mbyte",
                        "neigh_rx_bytes" : "807.353 Mbyte",
                        "neigh_tx_frames" : "234.029 k",
                        "neigh_rx_frames" : "4.681 M",
                        "neigh_tx_retries" : "781",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:3e:be:c9",
                        "neigh_lastseen" : 1.958,
                        "neigh_signal" : "-57  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "99.602 Mbyte",
                        "neigh_rx_bytes" : "1.232 Gbyte",
                        "neigh_tx_frames" : "230.133 k",
                        "neigh_rx_frames" : "5.28 M",
                        "neigh_tx_retries" : "4.143 k",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:3e:be:ce",
                        "neigh_lastseen" : 1.818,
                        "neigh_signal" : "-58  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "18 Mbit/s",
                        "neigh_tx_bytes" : "269.736 kbyte",
                        "neigh_rx_bytes" : "2.578 Mbyte",
                        "neigh_tx_frames" : "642",
                        "neigh_rx_frames" : "15.068 k",
                        "neigh_tx_retries" : "36",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:3e:bf:1c",
                        "neigh_lastseen" : 1.858,
                        "neigh_signal" : "-34  dBm",
                        "neigh_tx_bitrate" : "48 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "69.853 Mbyte",
                        "neigh_rx_bytes" : "738.399 Mbyte",
                        "neigh_tx_frames" : "165.276 k",
                        "neigh_rx_frames" : "3.869 M",
                        "neigh_tx_retries" : "709",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:3e:bf:d9",
                        "neigh_lastseen" : 2.028,
                        "neigh_signal" : "-46  dBm",
                        "neigh_tx_bitrate" : "54 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "94.511 Mbyte",
                        "neigh_rx_bytes" : "1.229 Gbyte",
                        "neigh_tx_frames" : "220.357 k",
                        "neigh_rx_frames" : "5.103 M",
                        "neigh_tx_retries" : "3.445 k",
                        "neigh_tx_failed" : "0"
                },
                {
                        "if" : "wlan0",
                        "if_index" : 6,
                        "if_local_addr" : "00:15:6d:e2:4a:b6",
                        "neigh_addr" : "dc:9f:db:5e:fc:53",
                        "neigh_lastseen" : 2.128,
                        "neigh_signal" : "-49  dBm",
                        "neigh_tx_bitrate" : "48 Mbit/s",
                        "neigh_rx_bitrate" : "54 Mbit/s",
                        "neigh_tx_bytes" : "97.435 Mbyte",
                        "neigh_rx_bytes" : "820.629 Mbyte",
                        "neigh_tx_frames" : "225.639 k",
                        "neigh_rx_frames" : "4.793 M",
                        "neigh_tx_retries" : "453",
                        "neigh_tx_failed" : "0"
                }
        ]
}
-------------- next part --------------
echo /nhdpinfo json link | nc 127.0.0.1 2009| jq .                                                                        
{
  "link": [
    {
      "if": "eth0",
      "link_bindto": "10.0.0.2",
      "link_vtime_value": 20,
      "link_itime_value": 2,
      "link_symtime": 19,
      "link_heardtime": 20,
      "link_vtime": 40,
      "link_status": "symmetric",
      "link_dualstack": "-",
      "link_mac": "00:00:00:aa:00:01",
      "neighbor_originator": "10.0.0.2",
      "neighbor_dualstack": "-",
      "domain": 0,
      "domain_metric": "ff_dat_metric",
      "domain_metric_in": "1020  bit/s",
      "domain_metric_in_raw": 2105088,
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088,
      "domain_metric_internal": "p_recv=45,p_total=45,speed=1024,success=8,missed_hello=0,lastseq=46636,lneigh=3"
    }
  ]
}



# echo /nhdpinfo json link_twohop | nc 127.0.0.1 2009| jq .
{
  "link_twohop": [
    {
      "if": "eth0",
      "link_bindto": "10.0.0.2",
      "neighbor_originator": "10.0.0.2",
      "twohop_address": "10.0.0.3",
      "twohop_same_interface": "true",
      "twohop_vtime": 18,
      "domain_metric": "ff_dat_metric",
      "domain_metric_in": "1020  bit/s",
      "domain_metric_in_raw": 2105088,
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    },
    {
      "if": "eth0",
      "link_bindto": "10.0.0.2",
      "neighbor_originator": "10.0.0.2",
      "twohop_address": "10.0.0.4",
      "twohop_same_interface": "true",
      "twohop_vtime": 18,
      "domain_metric": "ff_dat_metric",
      "domain_metric_in": "1020  bit/s",
      "domain_metric_in_raw": 2105088,
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    }
  ]
}




echo /nhdpinfo json neighbor | nc 127.0.0.1 2009| jq .   
{
  "neighbor": [
    {
      "neighbor_originator": "10.0.0.2",
      "neighbor_dualstack": "-",
      "neighbor_flood_local": "true",
      "neighbor_flood_remote": "true",
      "neighbor_flood_willingness": 7,
      "neighbor_symmetric": "true",
      "neighbor_linkcount": 1,
      "domain": 0,
      "domain_metric": "ff_dat_metric",
      "domain_metric_in": "1020  bit/s",
      "domain_metric_in_raw": 2105088,
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088,
      "domain_mpr": "Everyone MPR",
      "domain_mpr_local": "true",
      "domain_mpr_remote": "true",
      "domain_mpr_willingness": 7
    }
  ]
}




echo /nhdpinfo json neighbor_addr | nc 127.0.0.1 2009| jq .
{
  "neighbor_addr": [
    {
      "neighbor_originator": "10.0.0.2",
      "neighbor_address": "10.0.0.2",
      "neighbor_address_lost": "false",
      "neighbor_address_lost_vtime": -541
    }
  ]
}
-------------- next part --------------
echo /olsrv2info json node | nc 127.0.0.1 2009| jq .
{
  "node": [
    {
      "node": "10.0.0.2",
      "node_ansn": 34867,
      "node_vtime": 317
    },
    {
      "node": "10.0.0.3",
      "node_ansn": 14911,
      "node_vtime": 318
    },
    {
      "node": "10.0.0.4",
      "node_ansn": 59447,
      "node_vtime": 318
    },
    {
      "node": "10.0.0.5",
      "node_ansn": 31438,
      "node_vtime": 314
    },
    {
      "node": "10.0.0.6",
      "node_ansn": 24468,
      "node_vtime": 316
    },
    {
      "node": "fe80::200:ff:feaa:1",
      "node_ansn": 34867,
      "node_vtime": 317
    }
  ]
}



echo /olsrv2info json edge | nc 127.0.0.1 2009| jq .
{
  "edge": [                                                                                                                                                   
    {                                                                                                                                                         
      "node": "10.0.0.2",                                                                                                                                     
      "edge": "10.0.0.1",                                                                                                                                     
      "edge_ansn": 34867,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.2",                                                                                                                                     
      "edge": "10.0.0.3",                                                                                                                                     
      "edge_ansn": 34867,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.2",                                                                                                                                     
      "edge": "10.0.0.4",                                                                                                                                     
      "edge_ansn": 34867,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.3",                                                                                                                                     
      "edge": "10.0.0.2",                                                                                                                                     
      "edge_ansn": 14911,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.3",                                                                                                                                     
      "edge": "10.0.0.4",                                                                                                                                     
      "edge_ansn": 14911,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.3",                                                                                                                                     
      "edge": "10.0.0.5",                                                                                                                                     
      "edge_ansn": 14911,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.4",                                                                                                                                     
      "edge": "10.0.0.2",                                                                                                                                     
      "edge_ansn": 59447,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.4",                                                                                                                                     
      "edge": "10.0.0.3",                                                                                                                                     
      "edge_ansn": 59447,                                                                                                                                     
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s",                                                                                                                     
      "domain_metric_out_raw": 2105088
    },                                                                                                                                                        
    {                                                                                                                                                         
      "node": "10.0.0.4",                                                                                                                                     
      "edge": "10.0.0.5",                                                                                                                                     
      "edge_ansn": 59447,                                                                                                                                     
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    },
    {
      "node": "10.0.0.5",
      "edge": "10.0.0.3",
      "edge_ansn": 31438,
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    },
    {
      "node": "10.0.0.5",
      "edge": "10.0.0.4",
      "edge_ansn": 31438,
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    },
    {
      "node": "10.0.0.5",
      "edge": "10.0.0.6",
      "edge_ansn": 31438,
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    },
    {
      "node": "10.0.0.6",
      "edge": "10.0.0.5",
      "edge_ansn": 24468,
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s",
      "domain_metric_out_raw": 2105088
    }
  ]
}




echo /olsrv2info json attached_network | nc 127.0.0.1 2009| jq .
{
  "attached_network": [
    {
      "node": "10.0.0.3",
      "attached_net": "0.0.0.0/0",
      "attached_net_src": "0.0.0.0/0",
      "attached_net_ansn": 21040,
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "2 Gbit/s",
      "domain_metric_out_raw": 1,
      "domain_distance": 2
    }
  ]
}




echo /olsrv2info json route | nc 127.0.0.1 2009| jq .
{
  "route": [                                                                                                                                                  
    {                                                                                                                                                         
      "route_dst": "10.0.0.2",                                                                                                                                
      "route_gw": "-",                                                                                                                                        
      "route_src_ip": "10.0.0.1",                                                                                                                             
      "route_src_prefix": "0.0.0.0/0",                                                                                                                        
      "route_metric": 2,                                                                                                                                      
      "route_table": 254,                                                                                                                                     
      "route_proto": 100,                                                                                                                                     
      "route_if": "eth0",                                                                                                                                     
      "route_ifindex": 80,                                                                                                                                    
      "route_lasthop": "10.0.0.1",                                                                                                                            
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s (1 hops)",                                                                                                            
      "domain_metric_out_raw": 2105088,                                                                                                                       
      "domain_path_hops": 1
    },                                                                                                                                                        
    {                                                                                                                                                         
      "route_dst": "10.0.0.3",                                                                                                                                
      "route_gw": "10.0.0.2",                                                                                                                                 
      "route_src_ip": "10.0.0.1",                                                                                                                             
      "route_src_prefix": "0.0.0.0/0",                                                                                                                        
      "route_metric": 2,                                                                                                                                      
      "route_table": 254,                                                                                                                                     
      "route_proto": 100,                                                                                                                                     
      "route_if": "eth0",                                                                                                                                     
      "route_ifindex": 80,                                                                                                                                    
      "route_lasthop": "10.0.0.2",                                                                                                                            
      "domain": "0",                                                                                                                                          
      "domain_metric": "ff_dat_metric",                                                                                                                       
      "domain_metric_out": "1020  bit/s (2 hops)",                                                                                                            
      "domain_metric_out_raw": 4210176,                                                                                                                       
      "domain_path_hops": 2
    },                                                                                                                                                        
    {                                                                                                                                                         
      "route_dst": "10.0.0.4",                                                                                                                                
      "route_gw": "10.0.0.2",                                                                                                                                 
      "route_src_ip": "10.0.0.1",                                                                                                                             
      "route_src_prefix": "0.0.0.0/0",                                                                                                                        
      "route_metric": 2,                                                                                                                                      
      "route_table": 254,                                                                                                                                     
      "route_proto": 100,                                                                                                                                     
      "route_if": "eth0",                                                                                                                                     
      "route_ifindex": 80,                                                                                                                                    
      "route_lasthop": "10.0.0.2",
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s (2 hops)",
      "domain_metric_out_raw": 4210176,
      "domain_path_hops": 2
    },
    {
      "route_dst": "10.0.0.5",
      "route_gw": "10.0.0.2",
      "route_src_ip": "10.0.0.1",
      "route_src_prefix": "0.0.0.0/0",
      "route_metric": 2,
      "route_table": 254,
      "route_proto": 100,
      "route_if": "eth0",
      "route_ifindex": 80,
      "route_lasthop": "10.0.0.3",
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s (3 hops)",
      "domain_metric_out_raw": 6315264,
      "domain_path_hops": 3
    },
    {
      "route_dst": "10.0.0.6",
      "route_gw": "10.0.0.2",
      "route_src_ip": "10.0.0.1",
      "route_src_prefix": "0.0.0.0/0",
      "route_metric": 2,
      "route_table": 254,
      "route_proto": 100,
      "route_if": "eth0",
      "route_ifindex": 80,
      "route_lasthop": "10.0.0.5",
      "domain": "0",
      "domain_metric": "ff_dat_metric",
      "domain_metric_out": "1020  bit/s (4 hops)",
      "domain_metric_out_raw": 8420352,
      "domain_path_hops": 4
    }
  ]
}


More information about the Interop-dev mailing list