[ndnSIM] SINR packet tag in ndnSIM 2.5

Thiago Teixeira tteixeira at umass.edu
Mon Aug 13 09:31:58 PDT 2018

Hi all,

I wonder if you had a chance to look into this issue.
Recapping, we

  *   created a SINR tag (NS-3) in the wifi-phy.cc
  *   created a new TLV and tag (NDNLP) to carry that value
  *   modified the encoding according to the post<https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/> Junxiao shared
  *   read the SINR value in the NDN net-device (thus, the NS-3 tag works) and attach the NDNLP tag to the newly created NFD packet
  *   read the SINR tag (NDNLP) that is attached to the NFD packet in the forwarding strategy, but the value is zero

I was looking at the geo-tag<https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/commit/c59de9d958ad0aed7bcb37bdc57a46ebe1752b6f> from the 4th Hackathon, and that tag survives this encoding/decoding process. Is this a way worth pursuing?


From: Thiago Teixeira
Sent: Tuesday, August 7, 2018 7:24 AM
To: NdnSIM <ndnSIM at lists.cs.ucla.edu>
Cc: 'Spyridon (Spyros) Mastorakis' <mastorakis at cs.ucla.edu>; Junxiao Shi <shijunxiao at email.arizona.edu>
Subject: FW: [ndnSIM] SINR packet tag in ndnSIM 2.5

Just including the mailing list

From: Rajvardhan Deshmukh <rdeshmukh at umass.edu<mailto:rdeshmukh at umass.edu>>
Sent: Monday, August 6, 2018 4:14 PM
To: Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>>
Cc: Thiago Teixeira <tteixeira at umass.edu<mailto:tteixeira at umass.edu>>
Subject: Re: [ndnSIM] SINR packet tag in ndnSIM 2.5

Hi Junxiao,

The error was solved using your suggestion (using the set method).
But when we try to access this tag in the forwarding strategy, we still get null value:

Code Snippet #1: (to access tag in forwarding strategy)

 double sinr = 0.0;
 auto sinrTag = interest.getTag<lp::SinrTag>();
 if (sinrTag != nullptr) {
   sinr =*sinrTag;

Output for Snippet #1:

 sinrTag is nullptr
Code Snippet #2: (to set tag in ndn-net-device-transport.cpp<https://github.com/named-data-ndnSIM/ndnSIM/blob/65c490630e1a2e9cdebaf505de8729838c000821/model/ndn-net-device-transport.cpp#L119>)

 BlockHeader header;
 auto nfdPacket = Packet(std::move(header.getBlock()));

 ::ndn::lp::Packet lpPacket = ::ndn::lp::Packet(nfdPacket.packet);
 if (sinrValue) {


Can you help us set the value for SinrTagField in the ndn-net-device-transport.cpp?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180813/c7ac25db/attachment.html>

More information about the ndnSIM mailing list