Routing Table Dataset » History » Version 27
Davide Pesavento, 05/09/2025 04:50 PM
Formatting fixes
| 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 | 27 | Davide Pesavento | The routing table is organized and represented as a **RoutingTable** block: |
| 8 | 1 | Laqin Fan | |
| 9 | 27 | Davide Pesavento | RoutingTable := ROUTING-TABLE-TYPE TLV-LENGTH |
| 10 | RoutingTableEntry* |
||
| 11 | 26 | Ashlesh Gawande | |
| 12 | Dry HR RoutingTableEntries will be present after LS RoutinTableEntries when NLSR is run in dry run mode. |
||
| 13 | 1 | Laqin Fan | In dry run mode, clients can check if a router name is repeated and assume the beginning of HR routing table entries. |
| 14 | |||
| 15 | ## RouteTable |
||
| 16 | |||
| 17 | 27 | Davide Pesavento | All routing table information in LS or HR mode is organized and represented as a **RoutingTableEntry** block. |
| 18 | 1 | Laqin Fan | |
| 19 | 27 | Davide Pesavento | RoutingTableEntry := ROUTING-TABLE-ENTRY-TYPE TLV-LENGTH |
| 20 | Name |
||
| 21 | NextHop+ |
||
| 22 | 19 | Laqin Fan | |
| 23 | 27 | Davide Pesavento | NextHop := NEXT-HOP-TYPE TLV-LENGTH |
| 24 | Uri |
||
| 25 | Cost ; (double) |
||
| 26 | 19 | Laqin Fan | |
| 27 | 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). |
| 28 | Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation. |
||
| 29 | |||
| 30 | 1 | Laqin Fan | ## TLV-TYPE assignments |
| 31 | |||
| 32 | 14 | Ashlesh Gawande | Type | Assigned value | Assigned value (hex) |
| 33 | ------------------------------------------- | ----------------- | -------------------- |
||
| 34 | 21 | Laqin Fan | Double | 134 | 0x86 |
| 35 | 1 | Laqin Fan | Uri | 141 | 0x8D |
| 36 | 15 | Laqin Fan | NextHop | 143 | 0x8F |
| 37 | RoutingTable | 144 | 0x90 |
||
| 38 | RouteTableEntry | 145 | 0x91 |