Project

General

Profile

NLSR Statistics » History » Version 2

Damian Coomes, 08/18/2017 09:22 AM

1 2 Damian Coomes
Statistics Dataset
2
====================
3
NLSR's statistics collector maintains a count of incoming and outgoing interests and data packets.
4
These packets are collected from hello-protocol and LSDB and stored in a statistics enum class.
5
6
The Statistics Dataset is published on `/$RouterName/statistics/`
7
8
NLSR statistics are represented by a **Statistics** block:
9
10
    Statistics := STATISTICS-TYPE TLV-LENGTH
11
                    SENT_HELLO_INTEREST
12
                    RCV_HELLO_INTEREST
13
                    SENT_HELLO_DATA
14
                    RCV_HELLO_DATA
15
                    SENT_LSA_INTEREST
16
                    SENT_ADJ_LSA_INTEREST
17
                    SENT_COORD_LSA_INTEREST
18
                    SENT_NAME_LSA_INTEREST
19
                    RCV_LSA_INTEREST
20
                    RCV_ADJ_LSA_INTEREST
21
                    RCV_COORD_LSA_INTEREST
22
                    RCV_NAME_LSA_INTEREST
23
                    SENT_LSA_DATA
24
                    SENT_ADJ_LSA_DATA
25
                    SENT_COORD_LSA_DATA
26
                    SENT_NAME_LSA_DATA
27
                    RCV_LSA_DATA
28
                    RCV_ADJ_LSA_DATA
29
                    RCV_COORD_LSA_DATA
30
                    RCV_NAME_LSA_DATA
31
32
## Tlv-Type Assignments
33
34
Type                            | Assigned Value | Assigned Value (hex)
35
--------------------------------|----------------|---------------------
36
SENT_HELLO_INTEREST             | 142            | 0x8E
37
RCV_HELLO_INTEREST              | 143            | 0x8F
38
SENT_HELLO_DATA                 | 144            | 0x90
39
RCV_HELLO_DATA                  | 145            | 0x91
40
SENT_LSA_INTEREST               | 146            | 0x92
41
SENT_ADJ_LSA_INTEREST           | 147            | 0x93
42
SENT_COORD_LSA_INTEREST         | 148            | 0x94
43
SENT_NAME_LSA_INTEREST          | 149            | 0x95
44
RCV_LSA_INTEREST                | 150            | 0x96
45
RCV_ADJ_LSA_INTEREST            | 151            | 0x97
46
RCV_COORD_LSA_INTEREST          | 152            | 0x98
47
RCV_NAME_LSA_INTEREST           | 153            | 0x99
48
SENT_LSA_DATA                   | 154            | 0x9A
49
SENT_ADJ_LSA_DATA               | 155            | 0x9B
50
SENT_COORD_LSA_DATA             | 156            | 0x9C
51
SENT_NAME_LSA_DATA              | 157            | 0x9D
52
RCV_LSA_DATA                    | 158            | 0x9E
53
RCV_ADJ_LSA_DATA                | 159            | 0x9F
54
RCV_COORD_LSA_DATA              | 160            | 0xA0
55
RCV_NAME_LSA_DATA               | 161            | 0xA1