Project

General

Profile

Routing Table Dataset » History » Version 8

Laqin Fan, 06/21/2017 03:53 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
The routing table is organized and represented as an **RtStatus** block:
9
10
    RtStatus := RT-STATUS-TYPE TLV-LENGTH
11 8 Laqin Fan
                 RouteTableInfo*
12 1 Laqin Fan
13 8 Laqin Fan
## RouteTable
14 1 Laqin Fan
15 8 Laqin Fan
All routing table information in the routing table is organized and represented as an **RouteTableInfo** block.
16 1 Laqin Fan
17 8 Laqin Fan
    RouteTableInfo := ROUTINGTABLE-TYPE TLV-LENGTH
18
                         Destination
19
                         NexthopList*
20
21 5 Laqin Fan
    Destination := DESTINATION-TYPE TLV-LENGTH
22 8 Laqin Fan
                        Name                
23 5 Laqin Fan
24
    NexthopList := NEXTHOPLIST-TYPE TLV-LENGTH
25
                      NextHop*
26
27 3 Laqin Fan
    NextHop := NEXTHOP-TYPE TLV-LENGTH
28 6 Laqin Fan
                      Uri
29
                      Cost
30 1 Laqin Fan
31
32
## TLV-TYPE assignments
33
34
Type                                        | Assigned value    | Assigned value (hex)
35
------------------------------------------- | ----------------- | --------------------
36
LsaInfo                                     | 128               | 0x80
37
OriginRouter                                | 129               | 0x81
38
SequenceNumber                              | 130               | 0x82
39
AdjacencyLsa                                | 131               | 0x83
40
Adjacency                                   | 132               | 0x84
41
CoordinateLsa                               | 133               | 0x85
42
Double                                      | 134               | 0x86
43
HyperbolicRadius                            | 135               | 0x87
44
HyperbolicAngle                             | 136               | 0x88
45
NameLsa                                     | 137               | 0x89
46
LsdbStatus                                  | 138               | 0x8A
47
ExpirationPeriod                            | 139               | 0x8B
48
Cost                                        | 140               | 0x8C
49
Uri                                         | 141               | 0x8D
50
Destination                                 | 142               | 0x8E
51
NexthopList                                 | 143               | 0x8F
52 5 Laqin Fan
NextHop                                     | 144               | 0x90
53
RTStatus                                    | 145               | 0x91
54 8 Laqin Fan
RouteTableInfo                              | 146               | 0x92