Project

General

Profile

ForwarderStatus » History » Revision 12

Revision 11 (Davide Pesavento, 02/09/2018 02:30 PM) → Revision 12/20 (Davide Pesavento, 02/09/2018 03:35 PM)

# Forwarder Status 

 {{>toc}} 

 **Forwarder Status** is a module of [[Management|NFD Management protocol]]. 
 It provides: 

 * a dataset of forwarder version information and global counters 

 Forwarder Status datasets are available under namespace `ndn:/localhost/nfd/status`. 

 ## General Status Dataset 

 General Status is published as a [[StatusDataset|Status Dataset]] at `ndn:/localhost/nfd/status/general`. 

     GeneralStatus ::= NfdVersion 
                       StartTimestamp 
                       CurrentTimestamp 
                       NNameTreeEntries 
                       NFibEntries 
                       NPitEntries 
                       NMeasurementsEntries 
                       NCsEntries 
                       NInInterests 
                       NInData 
                       NInNacks 
                       NOutInterests 
                       NOutData 
                       NOutNacks 

     NfdVersion ::= NFD-VERSION-TYPE TLV-LENGTH 
                      UTF-8 string 

     (other TLVs have nonNegativeInteger as value) 

 * **NfdVersion**: NFD version; this is usually same as `nfd --version` output, but the forwarder daemon MAY hide its version and return an empty string 
 * **StartTimestamp**: timestamp (milliseconds since UNIX epoch) when forwarder starts 
 * **CurrentTimestamp**: timestamp (milliseconds since UNIX epoch) of current time 
 * **NNameTreeEntries**: number of NameTree entries 
 * **NFibEntries**: number of FIB entries 
 * **NPitEntries**: number of PIT entries 
 * **NMeasurementsEntries**: number of Measurements entries 
 * **NCsEntries**: number of CS entries 
 * **NInInterests**: number of incoming Interest packets processed since forwarder starts 
 * **NInData**: number of incoming Data packets processed since forwarder starts 
 * **NInNacks**: number of incoming Nack packets processed since forwarder starts 
 * **NOutInterests**: number of outgoing Interest packets processed since forwarder starts 
 * **NOutData**: number of outgoing Data packets processed since forwarder starts 
 * **NOutNacks**: number of outgoing Nack packets processed since forwarder starts 


 ## TLV-TYPE assignments 

 Type                                          | Assigned value      | Assigned value (hex) 
 ------------------------------------------- | ----------------- | -------------------- 
 NfdVersion                                    | 128                 | 0x80 
 StartTimestamp                                | 129                 | 0x81 
 CurrentTimestamp                              | 130                 | 0x82 
 NNameTreeEntries                              | 131                 | 0x83 
 NFibEntries                                   | 132                 | 0x84 
 NPitEntries                                   | 133                 | 0x85 
 NMeasurementsEntries                          | 134                 | 0x86 
 NCsEntries                                    | 135                 | 0x87 
 NInInterests                                  | 144                 | 0x90 
 NInData                                       | 145                 | 0x91 
 NInNacks                                      | 151                 | 0x97 
 NOutInterests                                 | 146                 | 0x92 
 NOutData                                      | 147                 | 0x93 
 NOutNacks                                     | 152                 | 0x98