Project

General

Profile

Routing Table Dataset » History » Version 22

Laqin Fan, 07/17/2018 01:03 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 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 20 Laqin Fan
All routing table information in dry-run mode is organized and represented as an **DryHRoutingTableEntry** block.
31 19 Laqin Fan
32
    DryHRoutingTableEntry := DRYHROUTINGTABLEENTRY-TYPE TLV-LENGTH
33 12 Laqin Fan
                            Destination
34
                            NextHop+
35 8 Laqin Fan
36 5 Laqin Fan
    Destination := DESTINATION-TYPE TLV-LENGTH
37 8 Laqin Fan
                        Name                
38 5 Laqin Fan
39
40 3 Laqin Fan
    NextHop := NEXTHOP-TYPE TLV-LENGTH
41 6 Laqin Fan
                      Uri
42 22 Laqin Fan
                      Cost(Double)
43 1 Laqin Fan
44 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).
45
Also note that currently in dry run mode, HR and LS routing table are printed consecutively with no separation.
46
47 1 Laqin Fan
## TLV-TYPE assignments
48
49 14 Ashlesh Gawande
Type                                        | Assigned value    | Assigned value (hex)
50
------------------------------------------- | ----------------- | --------------------
51 21 Laqin Fan
Double                                      | 134               | 0x86
52 1 Laqin Fan
Uri                                         | 141               | 0x8D
53
Destination                                 | 142               | 0x8E
54 15 Laqin Fan
NextHop                                     | 143               | 0x8F
55
RoutingTable                                | 144               | 0x90
56
RouteTableEntry                             | 145               | 0x91
57
DryRouteTableEntry                          | 146               | 0x92