Project

General

Profile

LocalControlHeader » History » Revision 3

Revision 1 (Junxiao Shi, 01/30/2014 02:10 PM) → Revision 3/26 (Alex Afanasyev, 01/31/2014 11:43 PM)

# NFD local control header 

 NFD local control header can be used between application and local forwarding daemon to exchange various NFD-specific local information that is not part of Interest and Data packet. 
 For example, the control header allows applications to request bypassing the Interest forwarding strategy by directly specify FaceId to which the Interest should be forwarded. 

 NFD local control header is not enabled by default and requires explicit request from the client to enable. 
 This request is in form of [[Signed_Interests|Signed Interest]] and have the following structure: 

     /localhost/nfd/control-header/<command-verb>/<timestamp>/<SignatureInfo>/<SignatureValue> 
    
     \                              / \             / \                                            / 
      ------------    ------------       ----    -----     --------------------    -------------------- 
                  \/                       \/                              \/ 
        NFD Control Command           "enable" or         Signed Interest related information 
                                     "disable" 


 ## LocalControlHeader 

 If command to enable LocalControlHeader is authorized by NFD, all subsequent communication from NFD will include LocalControlHeader as defined below. 
 The authorized application will also be able to include LocalControlHeader in communication to NFD---until specifically enabled, all specified LocalControlHeaders should be ignored by NFD. 

     LocalControlHeader ::= LOCAL-CONTROL-HEADER-TYPE TLV-LENGTH 
                              LocalControlInfo 
                              (Interest | Data) 

     LocalControlInfo     ::= LOCAL-CONTROL-INFO-TYPE TLV-LENGTH 
                              FaceId? 


 ## TLV-TYPE assignments 

 Type                                          | Assigned value      | Assigned value (hex) 
 ------------------------------------------- | ----------------- | -------------------- 
 LocalControlHeader                            | 109                 | 0x6d 
 LocalControlInfo                              | 110                 | 0x6e 
 FaceId                                        | 105                 | 0x69