Project

General

Profile

Routing Table Dataset » History » Version 23

Ashlesh Gawande, 02/15/2019 10:47 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 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 19 Laqin Fan
                            Destination
20
                            NextHop+
21
22
    Destination := DESTINATION-TYPE TLV-LENGTH
23
                        Name                
24
25
26
    NextHop := NEXTHOP-TYPE TLV-LENGTH
27
                      Uri
28 22 Laqin Fan
                      Cost(Double)
29 19 Laqin Fan
30 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).
31
Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation.
32
33 1 Laqin Fan
## TLV-TYPE assignments
34
35 14 Ashlesh Gawande
Type                                        | Assigned value    | Assigned value (hex)
36
------------------------------------------- | ----------------- | --------------------
37 21 Laqin Fan
Double                                      | 134               | 0x86
38 1 Laqin Fan
Uri                                         | 141               | 0x8D
39
Destination                                 | 142               | 0x8E
40 15 Laqin Fan
NextHop                                     | 143               | 0x8F
41
RoutingTable                                | 144               | 0x90
42
RouteTableEntry                             | 145               | 0x91
43
DryRouteTableEntry                          | 146               | 0x92