Project

General

Profile

Routing Table Dataset » History » Version 15

Laqin Fan, 09/07/2017 06:58 PM

1 1 Laqin Fan
# Routing Table Dataset
2 2 Laqin Fan
3
The routing table can be published as a [[NFD:StatusDataset|Status Dataset]] at `/$ROUTER_NAME/routing-table/list`:
4
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 1 Laqin Fan
13 8 Laqin Fan
## RouteTable
14 1 Laqin Fan
15 12 Laqin Fan
All routing table information in the routing table is organized and represented as an **RoutingTableEntry** block.
16 1 Laqin Fan
17 12 Laqin Fan
    RoutingTableEntry := ROUTINGTABLEENTRY-TYPE TLV-LENGTH
18
                            Destination
19
                            NextHop+
20 8 Laqin Fan
21 5 Laqin Fan
    Destination := DESTINATION-TYPE TLV-LENGTH
22 8 Laqin Fan
                        Name                
23 5 Laqin Fan
24
25 3 Laqin Fan
    NextHop := NEXTHOP-TYPE TLV-LENGTH
26 6 Laqin Fan
                      Uri
27
                      Cost
28 1 Laqin Fan
29
## TLV-TYPE assignments
30
31 14 Ashlesh Gawande
Type                                        | Assigned value    | Assigned value (hex)
32
------------------------------------------- | ----------------- | --------------------
33 1 Laqin Fan
Uri                                         | 141               | 0x8D
34
Destination                                 | 142               | 0x8E
35 15 Laqin Fan
NextHop                                     | 143               | 0x8F
36
RoutingTable                                | 144               | 0x90
37
RouteTableEntry                             | 145               | 0x91
38
DryRouteTableEntry                          | 146               | 0x92