[ndnSIM] FW: SINR packet tag in ndnSIM 2.5

Thiago Teixeira tteixeira at umass.edu
Tue Aug 7 04:24:29 PDT 2018

Just including the mailing list

From: Rajvardhan Deshmukh <rdeshmukh at umass.edu>
Sent: Monday, August 6, 2018 4:14 PM
To: Junxiao Shi <shijunxiao at email.arizona.edu>
Cc: Thiago Teixeira <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/20180807/5c21b49d/attachment.html>

More information about the ndnSIM mailing list