Project

General

Profile

Routing Table Dataset » History » Version 26

Ashlesh Gawande, 06/24/2020 07:18 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 26 Ashlesh Gawande
13
Dry HR RoutingTableEntries will be present after LS RoutinTableEntries when NLSR is run in dry run mode.
14
In dry run mode, clients can check if a router name is repeated and assume the beginning of HR routing table entries.
15 1 Laqin Fan
16 8 Laqin Fan
## RouteTable
17 1 Laqin Fan
18 19 Laqin Fan
All routing table information in LS or HR mode is organized and represented as an **RoutingTableEntry** block.
19 1 Laqin Fan
20
    RoutingTableEntry := ROUTINGTABLEENTRY-TYPE TLV-LENGTH
21 25 Ashlesh Gawande
                            Name
22 19 Laqin Fan
                            NextHop+
23
24
    NextHop := NEXTHOP-TYPE TLV-LENGTH
25
                      Uri
26 22 Laqin Fan
                      Cost(Double)
27 19 Laqin Fan
28 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).
29
Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation.
30
31 1 Laqin Fan
## TLV-TYPE assignments
32
33 14 Ashlesh Gawande
Type                                        | Assigned value    | Assigned value (hex)
34
------------------------------------------- | ----------------- | --------------------
35 21 Laqin Fan
Double                                      | 134               | 0x86
36 1 Laqin Fan
Uri                                         | 141               | 0x8D
37 15 Laqin Fan
NextHop                                     | 143               | 0x8F
38
RoutingTable                                | 144               | 0x90
39
RouteTableEntry                             | 145               | 0x91