Project

General

Profile

Routing Table Dataset » History » Version 25

Ashlesh Gawande, 06/24/2020 05:34 PM

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 19 Laqin Fan
                       DryHRoutingTableEntry*
13 1 Laqin Fan
14 8 Laqin Fan
## RouteTable
15 1 Laqin Fan
16 19 Laqin Fan
All routing table information in LS or HR mode is organized and represented as an **RoutingTableEntry** block.
17 1 Laqin Fan
18
    RoutingTableEntry := ROUTINGTABLEENTRY-TYPE TLV-LENGTH
19 25 Ashlesh Gawande
                            Name
20 19 Laqin Fan
                            NextHop+
21
22
    NextHop := NEXTHOP-TYPE TLV-LENGTH
23
                      Uri
24 22 Laqin Fan
                      Cost(Double)
25 19 Laqin Fan
26 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).
27
Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation.
28
29 1 Laqin Fan
## TLV-TYPE assignments
30
31 14 Ashlesh Gawande
Type                                        | Assigned value    | Assigned value (hex)
32
------------------------------------------- | ----------------- | --------------------
33 21 Laqin Fan
Double                                      | 134               | 0x86
34 1 Laqin Fan
Uri                                         | 141               | 0x8D
35 15 Laqin Fan
NextHop                                     | 143               | 0x8F
36
RoutingTable                                | 144               | 0x90
37
RouteTableEntry                             | 145               | 0x91