Project

General

Profile

ForwarderStatus » History » Revision 5

Revision 4 (Junxiao Shi, 09/22/2014 04:23 PM) → Revision 5/20 (Junxiao Shi, 08/06/2015 02:56 PM)

# Forwarder Status 

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

 * a dataset of forwarder publishes version information and global counters of the forwarder. 

 Forwarder Status datasets are available is published as a single Data packet under namespace `ndn:/localhost/nfd/status`.   
 Consumer should send Interest `ndn:/localhost/nfd/status`, MustBeFresh=yes. 

 ## General Status Dataset 

 General Status The Content of the response Data packet is published as a [[StatusDataset|Status Dataset]] at `ndn:/localhost/nfd/status/general`. 

     GeneralStatus ::= NfdVersion 
                       RouterName 
                       StartTimestamp 
                       CurrentTimestamp 
                       NNameTreeEntries 
                       NFibEntries 
                       NPitEntries 
                       NMeasurementsEntries 
                       NCsEntries 
                       NInInterests 
                       NInDatas 
                       NInNacks 
                       NOutInterests 
                       NOutDatas 
                       NOutNacks 

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

     RouterName ::= ROUTER-NAME-TYPE TLV-LENGTH 
                      Name 
                      Name 
                      Name 

     (other TLVs have nonNegativeInteger as value) sequence of these blocks: 

 * **NfdVersion**: **NfdVersion** UTF-8 string: NFD version; this is usually same as `nfd --version` output, but the daemon MAY hide its version and return an empty string 
 * **RouterName**: network name, site name, and router name from configuration 
 * **StartTimestamp**: **StartTimestamp** nonNegativeInteger: UNIX timestamp (milliseconds since UNIX epoch) (in milliseconds) when forwarder NFD starts 
 * **CurrentTimestamp**: **CurrentTimestamp** nonNegativeInteger: UNIX timestamp (milliseconds since UNIX epoch) (in milliseconds) of current time 
 * **NNameTreeEntries**: **NNameTreeEntries** nonNegativeInteger: number of NameTree entries 
 * **NFibEntries**: **NFibEntries** nonNegativeInteger: number of FIB entries 
 * **NPitEntries**: **NPitEntries** nonNegativeInteger: number of PIT entries 
 * **NMeasurementsEntries**: **NMeasurementsEntries** nonNegativeInteger: number of Measurements entries 
 * **NCsEntries**: **NCsEntries** nonNegativeInteger: number of CS entries 
 * **NInInterests**: **NInInterests** nonNegativeInteger: number of incoming Interest packets Interests processed since forwarder starts 
 * **NInDatas**: **NInDatas** nonNegativeInteger: number of incoming Data packets Datas processed since forwarder starts 
 * **NInNacks**: **NOutInterests** nonNegativeInteger: number of incoming Nack packets processed since forwarder starts 
 * **NOutInterests**: number of outgoing Interest packets Interests processed since forwarder starts 
 * **NOutDatas**: **NOutDatas** nonNegativeInteger: number of outgoing Data packets Datas 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 
 RouterName                                    | 136                 | 0x88 
 StartTimestamp                                | 129                 | 0x81 
 CurrentTimestamp                              | 130                 | 0x82 
 NNameTreeEntries                              | 131                 | 0x83 
 NFibEntries                                   | 132                 | 0x84 
 NPitEntries                                   | 133                 | 0x85 
 NMeasurementsEntries                          | 134                 | 0x86 
 NCsEntries                                    | 135                 | 0x87 
 NInInterests                                  | 144                 | 0x90 
 NInDatas                                      | 145                 | 0x91 
 NInNacks                                      | 148                 | 0x94 
 NOutInterests                                 | 146                 | 0x92 
 NOutDatas                                     | 147                 | 0x93 
 NOutNacks                                     | 149                 | 0x95