[ndnSIM] Adding new field in Interest Packet.
a_djemaa at esi.dz
Tue May 4 02:48:17 PDT 2021
If the packet length doesn't matter in your configuration, I advise you to
add a Tag instead of a new Field to your packet, since according to ndnSIM
design, the tag resides only in the memory.
Also, a Tag can be easily managed directly in the NFD machinery (forwarder
class), contrary to a new field in either Interest or Data packets which
are generally static objects.
Below references showing how to add a new Tag in the packet (HopCountTag
which is already implemented in ndnSIM), and it works 100%:
Hope this helps.
Le mar. 4 mai 2021 à 05:44, Prajjwal Singh <csb17053 at tezu.ac.in> a écrit :
> Hello everybody,
> I am trying to add a new field in interest packet and I want this field to
> persist throughout the network for each interest, (i.e. if a consumer sets
> this custom field to X in the interest packet, then it should be forwarded
> by all the routers to the producer with the custom field as X)
> Previously I had used this tutorial to add the field in interest packet:
> Please point out what is lacking in this solution.
> The main problem is that if i have the following topology
> (Where A is the Consumer and D is the Producer, and B and C are routers)
> Then by the solution given in the above link the custom field set in A's
> generated Interest packet is reset to default value by B when it forwards
> the interest to C.
> How can I make it carry the value intended by A?
> Thanking you in advance
> Prajjwal Singh
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
Mr DJAMA Adel
Ecole Militaire Polytechnique
Algiers 16046, ALGERIA
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM