NHDPInfo Plugin

From OLSR.org Wiki

The NHDPInfo Plugin allows access to the content of the NHDP database through telnet.

Telnet commands

The plugin does implement seven main commands, each of them is handled by the Viewer plugin, you will find details about how to use the commands there.

interface

The interface command queries the NHDP database about your local interfaces.

Key Content
if name of local interface
if_bindto_v4 IP address NHDP uses for outgoing IPv4 traffic
if_bindto_v6 IP address NHDP uses for outgoing IPv6 traffic
if_mac MAC address of interface
if_flooding_v4 true if interface has a neighbor that needs to be contacted by IPv4
if_flooding_v6 true if interface has a neighbor that needs to be contacted by IPv6
if_dualstack_mode IP address family that should be used for dualstack traffic, "-" if dualstack optimization is not possible on this interface.

if_addr

The if_addr command queries the NHDP database about the IP addresses of the local interfaces.

Key Content
if name of local interface
if_address interface IP address
if_address_lost true if address is lost
if_address_lost_vtime time until lost address should be removed

link

The link command queries the NHDP database about the status of the links to your direct neighbors.

Key Content
if name of local interface
link_bindto IP address the neigbor is using as source of RFC5444 packets
link_vtime_value validity time of the linke
link_itime_value interval time of the link
link_symtime time until the link is not symmetric anymore
link_heardtime time until the link is not heard anymore
link_vtime time until the link has to be removed from the database
link_status pending/heard/symmetric/lost
link_dualstack IP address the neighbor is using as source of RFC5444 packets for other address type (IPv4/IPv6)
link_mac MAC address of neighbor
neighbor_originator neighbor Originator IP address
neighbor_dualstack neighbor Originator IP address for other address type (IPv4/IPv6)
domain number of domain
domain_metric name of domain link metric
domain_metric_in human readable incoming link metric
domain_metric_out human readable outgoing link metric
domain_metric_in_raw numeric incoming link metric
domain_metric_out_raw numeric outgoing link metric
domain_metric_internal internal state of link metric


link_addr

The link_addr command queries the NHDP database about the IP addresses of the remote end of a link.

Key Content
if name of local interface
link_bindto IP address the neigbor is using as source of RFC5444 packets
link_address IP address of the remote end of a link

link_twohop

The link_twohop command queries the NHDP database about the IP addresses of other routers on the same interface of a link.

Key Content
if name of local interface
link_bindto IP address the neigbor is using as source of RFC5444 packets
twohop_address IP address of the neighbor of a link
twohop_vtime validity time of the twohop IP address

neighbor

The neighbor command queries the NHDP database about the status of the connection to the direct neighbors. A neighbor is not interface-specific, which means it is (in a way) the aggregation of all links to the same router.

Key Content
neighbor_originator neighbor Originator IP address
neighbor_dualstack neighbor Originator IP address for other address type (IPv4/IPv6)
neighbor_flood_local true if the local node is considered as a flooding MPR by the neighbor
neighbor_flood_remote true if the neighbor has been selected as a flooding MPR by the local node
neighbor_symmetric true if the local node has at least one symmetric link to the neigbor
neighbor_linkcount number of symmetric links to the neighbor
domain number of domain
domain_metric name of domain link metric
domain_metric_in human readable incoming link metric
domain_metric_out human readable outgoing link metric
domain_metric_in_raw numeric incoming link metric
domain_metric_out_raw numeric outgoing link metric
domain_mpr name of MPR algorithm
domain_mpr_local true if local node is considered as a routing MPR by the neighbor
domain_mpr_remote true if the neighbor has been selected as a routing MPR by the local node

neighbor_addr

The neighbor_addr command queries the NHDP database about the IP address of a direct neighbors. A neighbor is not interface-specific, which means it is (in a way) the aggregation of all links to the same router.

Key Content
neighbor_originator neighbor Originator IP address
neighbor_address IP address of the neighbor
neighbor_address_lost true if the neighbor IP has been lost
neighbor_address_lost_vtime time until the lost address must be remove from the database