[ndnSIM] Location tag

Thiago Teixeira tteixeira at engin.umass.edu
Sat Mar 25 14:19:44 PDT 2017


Hi,

I am tweaking an older implementation of a Face and a Forwarding Strategy that uses ndnSIM 1.0. I want the sender to add its location in the Interest packet and the custodian to also add its location in the Data packet (see figure below). I borrowed the GeoTag class from the car-2-car implementation.
  __                             __                      __
| C |                         | R |                  | P |
    |_____________|   |__________|
Add InterestTag      Read Tag            Add DataTag

A segment of the forwarding strategy code is attached, where I'm adding the tags to Interest and Data packets. The Face code is also attached, where I want the intermediate nodes to read the tags and do some actions.

Position is being read correctly, but tag seems to be printed always 1.

In SEND() - Consumer sends INTEREST Position: 37.3333 , 426.895
...
In OnInterest()  Position is: 87.9029:346.258:0.964829 Tag is: 1
...
Tag not found
...
In OnData()  Position is: 87.9003:346.255:0.964829 Tag is: 1
...

Can you help please?
Is the OnData() and OnInterest() the right place to add the tags?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170325/221e10b0/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: forwardingStrategy.txt
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170325/221e10b0/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: face.txt
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170325/221e10b0/attachment-0003.txt>


More information about the ndnSIM mailing list