close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Changes between Version 3 and Version 4 of Proto/cModules/b0GNRS/a0NetworkProtocol2


Ignore:
Timestamp:
Sep 25, 2015, 3:49:12 PM (9 years ago)
Author:
sujasrinivasan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proto/cModules/b0GNRS/a0NetworkProtocol2

    v3 v4  
    7979* '''Requestor Address''' - Network Address of the original sender (originator) of the request message.
    8080* '''Requestor Payload''' - Message-specific request payload, including options. See message types below.
    81 * '''Global Options''' - A set of global options for the query, currently limited to the ones listed below.
     81* '''Global Options''' - A set of global options for the query.
    8282
    8383=== Options ===
    8484
    85 There are two types of options. Global options which are appended to the message as whole (e.g. Recursive Option). Local options are associated with each bindings that is stored in the GNRS (e.g. Expiration Option). Both types are encoded in the same format.
     85There are two types of options - Global and Local. Global options which are appended to the message as whole (e.g. Recursive Option). Local options are associated with each binding that is stored in the GNRS (e.g. Expiration Option). Both types are encoded in the same format.
    8686
    8787Options are encoded as a (Type, Length, Value) 3-tuple. Unsupported options can be ignored by the receiving host, but should be preserved when stored or forwarded so that other hosts have the opportunity to interpret them. The block of options are located either before or after the "payload" of the message.
     
    112112=== Lookup Request ===
    113113
    114 The lookup request is used to retrieve the binding(s) for a GUID. It includes the query GUID and optional parameter 'type'. If a type is specified, only that particular binding is fetched. Multiple types can me included in a sinlge lookup request. If no type is specified, all the bindings for that GUID are returned.
     114The lookup request is used to retrieve the binding(s) for a GUID. It includes the query GUID and optional parameter 'type'. If a type is specified, only that particular binding is fetched. Multiple types can be included in a single lookup request. If no type is specified, all the bindings for that GUID are returned.
    115115Its' format is as follows:
    116116
     
    182182* '''Number of Bindings''' - Number of bindings being inserted/updated.
    183183* '''Entry''' - Binding of a type
    184 * '''Type''' - Type of the binding
    185 * '''Number of values''' - Number of values of the type
     184* '''Type''' - Type of the binding being inserted/updated
     185* '''Number of values''' - Number of values of the type.
    186186* '''Length of values''' - Length of values.
    187187* '''Length of options''' - Length of local options.