Routing Table Dataset » History » Version 18
Ashlesh Gawande, 01/11/2018 09:06 AM
| 1 | 1 | Laqin Fan | # Routing Table Dataset |
|---|---|---|---|
| 2 | 2 | Laqin Fan | |
| 3 | 17 | Laqin Fan | The routing table can be published as a [[NFD:StatusDataset|Status Dataset]] at `/$ROUTER_NAME/routing-table`: |
| 4 | 2 | Laqin Fan | |
| 5 | 4 | Laqin Fan | ## Routing Table Status |
| 6 | |||
| 7 | |||
| 8 | 12 | Laqin Fan | The routing table is organized and represented as an **RoutingTable** block: |
| 9 | 4 | Laqin Fan | |
| 10 | 12 | Laqin Fan | RoutingTable := ROUTINGTABLE-TYPE TLV-LENGTH |
| 11 | RoutingTableEntry* |
||
| 12 | 1 | Laqin Fan | |
| 13 | 8 | Laqin Fan | ## RouteTable |
| 14 | 1 | Laqin Fan | |
| 15 | 12 | Laqin Fan | All routing table information in the routing table is organized and represented as an **RoutingTableEntry** block. |
| 16 | 1 | Laqin Fan | |
| 17 | 12 | Laqin Fan | RoutingTableEntry := ROUTINGTABLEENTRY-TYPE TLV-LENGTH |
| 18 | Destination |
||
| 19 | NextHop+ |
||
| 20 | 8 | Laqin Fan | |
| 21 | 5 | Laqin Fan | Destination := DESTINATION-TYPE TLV-LENGTH |
| 22 | 8 | Laqin Fan | Name |
| 23 | 5 | Laqin Fan | |
| 24 | |||
| 25 | 3 | Laqin Fan | NextHop := NEXTHOP-TYPE TLV-LENGTH |
| 26 | 6 | Laqin Fan | Uri |
| 27 | 16 | Laqin Fan | Double |
| 28 | 1 | Laqin Fan | |
| 29 | 18 | Ashlesh Gawande | 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). |
| 30 | Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation. |
||
| 31 | |||
| 32 | 1 | Laqin Fan | ## TLV-TYPE assignments |
| 33 | |||
| 34 | 14 | Ashlesh Gawande | Type | Assigned value | Assigned value (hex) |
| 35 | ------------------------------------------- | ----------------- | -------------------- |
||
| 36 | 1 | Laqin Fan | Uri | 141 | 0x8D |
| 37 | Destination | 142 | 0x8E |
||
| 38 | 15 | Laqin Fan | NextHop | 143 | 0x8F |
| 39 | RoutingTable | 144 | 0x90 |
||
| 40 | RouteTableEntry | 145 | 0x91 |
||
| 41 | DryRouteTableEntry | 146 | 0x92 |