Project

General

Profile

Actions

Routing Table Dataset

The routing table can be published as a Status Dataset at /$ROUTER_NAME/routing-table:

Routing Table Status

The routing table is organized and represented as a RoutingTable block:

RoutingTable := ROUTING-TABLE-TYPE TLV-LENGTH
                  RoutingTableEntry*

Dry HR RoutingTableEntries will be present after LS RoutinTableEntries when NLSR is run in dry run mode.
In dry run mode, clients can check if a router name is repeated and assume the beginning of HR routing table entries.

RouteTable

All routing table information in LS or HR mode is organized and represented as a RoutingTableEntry block.

RoutingTableEntry := ROUTING-TABLE-ENTRY-TYPE TLV-LENGTH
                       Name
                       NextHop+

NextHop := NEXT-HOP-TYPE TLV-LENGTH
             Uri
             Cost ; (double)

Note that Double is used here as HR routing costs do have floating points (However they are installed in NFD's FIB as adjusted integers).
Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation.

TLV-TYPE assignments

Type Assigned value Assigned value (hex)
Double 134 0x86
Uri 141 0x8D
NextHop 143 0x8F
RoutingTable 144 0x90
RouteTableEntry 145 0x91

Updated by Davide Pesavento 20 days ago · 27 revisions