[ndnSIM] SINR packet tag in ndnSIM 2.5
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Mon Jul 23 18:42:32 PDT 2018
Hi Thiago,
I think we have converted our NS-3 tags to NDN Link Protocol (LP) tags. For more details, take a look at these commits (HopCount tag):
https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4 <https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4>
https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b <https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b>
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Jul 23, 2018, at 2:52 PM, Thiago Teixeira <tteixeira at umass.edu> wrote:
>
> Hi all,
>
> We added a SINR packet tag in the src/wifi/model/wifi-phy.cc <https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541> EndReceive() method using the following snippet:
> SnrTag tag;
> tag.Set(signalNoise.signal - signalNoise.noise);
> if (! packet->PeekPacketTag (tag)){
> packet->AddPacketTag (tag);
> }
>
> The implementation of the SINR packet tag is available at src/wifi/model/snr-tag.cc <https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc>.
>
> We would like to get the value of the tag in the forwarding strategy. Before ndnSIM 2.3, we could just use something like this:
> SnrTag tag;
> Ptr<Packet> payload = ConstCast<Packet>(interest->GetPayload());
> payload->PeekPacketTag (tag);
>
> but in ndnSIM 2.5 we could not find an equivalent method. I think we need to convert the SINR tag to type ns3::ndn::ns3PacketTag, is that correct?
>
> Can you assist please?
>
>
> Thanks,
> Thiago
>
>
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180723/3dbe3a1a/attachment.html>
More information about the ndnSIM
mailing list