<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi Spyros,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your email. In summary, we added a SINR packet tag on the node’s WiFi interface, which we want to read the value in the strategy layer. The issue is that we could not find a method to read the SINR tag in the strategy. We are
 able to create and use other using the NDNLP (as your commits show). The problem is that the SINR tag is a NS-3 tag (not ndnlp).
<o:p></o:p></p>
<p class="MsoNormal">And yes, we are not using sockets whatsoever. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regarding your last sentence, do you have any documentation or examples on how to make sure the NS-3 tag is preserved in the NDN packet?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I tried this in the strategy,<o:p></o:p></p>
<p class="MsoNormal">    std::shared_ptr<ns3::SnrTag> tag;<o:p></o:p></p>
<p class="MsoNormal">    auto sinrTag = interest. template getTag <ns3::ndn::Ns3PacketTag> ();<o:p></o:p></p>
<p class="MsoNormal">    bool hasTag = sinrTag.getPacket().PeekPacketTag(tag);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">but I get,<o:p></o:p></p>
<p class="MsoNormal">    error: ‘class std::shared_ptr<ns3::ndn::Ns3PacketTag>’ has no member named ‘getPacket’<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your help,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thiago<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a name="_MailEndCompose"><o:p> </o:p></a></p>
<span style="mso-bookmark:_MailEndCompose"></span>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Spyridon (Spyros) Mastorakis [mailto:mastorakis@cs.ucla.edu]
<br>
<b>Sent:</b> Friday, July 27, 2018 2:20 PM<br>
<b>To:</b> Rajvardhan Deshmukh <rdeshmukh@umass.edu><br>
<b>Cc:</b> NdnSIM <ndnSIM@lists.cs.ucla.edu>; Thiago Teixeira <tteixeira@umass.edu><br>
<b>Subject:</b> Re: [ndnSIM] SINR packet tag in ndnSIM 2.5<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am not sure I understand what you are trying to do.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It seems to me that you are using sockets and some TCP application, but you are trying to use NDN?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">If you want to use an NS-3 tag, you will have to make sure that when you try to get the NDN packet out of the NS-3 packet, you have to preserve the tag. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
Computer Science Department<br>
UCLA<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Jul 24, 2018, at 11:32 AM, Rajvardhan Deshmukh <<a href="mailto:rdeshmukh@umass.edu">rdeshmukh@umass.edu</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Hi Spyros,<br>
<br>
We intend to access the SINR/SNR in the forwarding strategy.<br>
<br>
1) As i was going through the <a href="https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4#diff-bcc8f3e64bcd66371436f906a83e51b5">
links</a> Spyros sent, i noticed that they use an interest or data object with API setTag. But we don't have access to those objects in the PHY (wifi) layer. So i'm not sure as to which object i should use the SetTag API.
<strong><span style="font-family:"Courier New"">Should we pursue this line of thoughts?</span></strong><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Courier New"">We also looked at</span></strong><span style="font-size:10.0pt;font-family:"Courier New"">
<strong><span style="font-family:"Courier New"">ns3 related posts.</span></strong><br>
2) So, we looked at ns3 related posts, which suggest that we need to attach the SNR value to the Packet in the PHY layer.<br>
We added a SINR packet tag in the src/wifi/model/<a href="http://wifi-phy.cc">wifi-phy.cc</a> EndReceive() method using the following snippet:<br>
<br>
  SnrTag tag;<br>
<br>
  tag.Set(signalNoise.signal - signalNoise.noise);<br>
<br>
  if (! packet->PeekPacketTag (tag)){<br>
<br>
     packet->AddPacketTag (tag);<br>
<br>
  }<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
The implementation of the SINR packet tag is available at src/wifi/model/<a href="http://snr-tag.cc">snr-tag.cc</a>.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">But we get an error during reading this Tag in the forwarding strategy:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">ns3::Ptr<ns3::Socket>m_socket=node->GetObject<ns3::Socket>();
<strong><span style="font-family:"Courier New"">//(line of concern)</span></strong>                                    
<br>
ns3::Ptr<ns3::Packet>packet=m_socket->Recv();                                                                                                                    
<br>
ns3::SnrTag tag;                                                                                     
<br>
if(packet->PeekPacketTag(tag)){                                                                      <br>
        NS_LOG_DEBUG ("Received Packet with SRN = " << tag.Get());                                          <br>
       <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">std::cout<< "\nSNR:"<< tag.Get()<< std::endl;                                                       <br>
                                                                                                          
<br>
}<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Courier New"">Note: I think we get to get the right socket (check line of concern) using something similar to what they do in the application layer in ns3 (GetObject<OnOffApplication> ()->GetSocket
 ())</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Can you assist please? Let me know if you need more info.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Raj<o:p></o:p></span></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 5.0pt;margin-left:0in;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">-------------------------------------------------------------------<br>
FROM: Spyridon (Spyros) Mastorakis [mailto:<a href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>]
<br>
SENT: Monday, July 23, 2018 9:43 PM<br>
TO: Thiago Teixeira <<a href="mailto:tteixeira@umass.edu">tteixeira@umass.edu</a>><br>
CC: ndnsim <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>><br>
SUBJECT: Re: [ndnSIM] SINR packet tag in ndnSIM 2.5 <br>
<br>
Hi Thiago,<br>
<br>
I think we have converted our NS-3 tags to NDN Link Protocol (LP) tags.<br>
For more details, take a look at these commits (HopCount tag): <br>
<br>
<a href="https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4" target="_blank">https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4</a><br>
<br>
<br>
<a href="https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b" target="_blank">https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b</a><br>
<br>
<br>
Thanks, <br>
<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
Computer Science Department<br>
UCLA <br>
<br>
<br>
<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 5.0pt;margin-left:0in;margin-right:0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">On Jul 23, 2018, at 2:52 PM, Thiago Teixeira <<a href="mailto:tteixeira@umass.edu">tteixeira@umass.edu</a>><br>
wrote: <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Hi Spyros,<br>
<br>
We intend to access the SINR/SNR in the forwarding strategy.<br>
<br>
1) As i was going through the <a href="https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4#diff-bcc8f3e64bcd66371436f906a83e51b5">
links</a> Spyros sent, i noticed that they use an interest or data object with API setTag. But we don't have access to those objects in the PHY (wifi) layer. So i'm not sure as to which object i should use the SetTag API.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
2) So, we looked at ns3 related posts, which suggest that we need to attach the SNR value to the Packet in the PHY layer.<br>
We added a SINR packet tag in the src/wifi/model/<a href="http://wifi-phy.cc">wifi-phy.cc</a> EndReceive() method using the following snippet:<br>
<br>
  SnrTag tag;<br>
<br>
  tag.Set(signalNoise.signal - signalNoise.noise);<br>
<br>
  if (! packet->PeekPacketTag (tag)){<br>
<br>
     packet->AddPacketTag (tag);<br>
<br>
  }<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
The implementation of the SINR packet tag is available at src/wifi/model/<a href="http://snr-tag.cc">snr-tag.cc</a>.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">But we get an error during reading this Tag in the forwarding strategy:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">ns3::Ptr<ns3::Socket>m_socket=node->GetObject<ns3::Socket>();                                     <br>
ns3::Ptr<ns3::Packet>packet=m_socket->Recv();                                                                                                                    
<br>
ns3::SnrTag tag;                                                                                     
<br>
if(packet->PeekPacketTag(tag)){                                                                      <br>
        NS_LOG_DEBUG ("Received Packet with SRN = " << tag.Get());                                          <br>
       <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">std::cout<< "\nSNR:"<< tag.Get()<< std::endl;                                                       <br>
                                                                                                          
<br>
}<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Courier New"">Note: I think we get to get the right socket using something similar to what they do in the application layer in ns3 (GetObject<OnOffApplication> ()->GetSocket ())</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Can you assist please?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Raj<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">-------------------------------------------------------------------<br>
FROM: Spyridon (Spyros) Mastorakis [mailto:<a href="mailto:mastorakis@cs.ucla.edu">mastorakis@cs.ucla.edu</a>]
<br>
SENT: Monday, July 23, 2018 9:43 PM<br>
TO: Thiago Teixeira <<a href="mailto:tteixeira@umass.edu">tteixeira@umass.edu</a>><br>
CC: ndnsim <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>><br>
SUBJECT: Re: [ndnSIM] SINR packet tag in ndnSIM 2.5 <br>
<br>
Hi Thiago,<br>
<br>
I think we have converted our NS-3 tags to NDN Link Protocol (LP) tags.<br>
For more details, take a look at these commits (HopCount tag): <br>
<br>
<a href="https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4" target="_blank">https://github.com/named-data-ndnSIM/NFD/commit/3bebd1190b1c45f8acaa0fe1d3a3100651a062e4</a><br>
<br>
<br>
<a href="https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b" target="_blank">https://github.com/named-data-ndnSIM/ndn-cxx/commit/e1ae096efd8ad503ce7dbd616ee174afaed6c66b</a><br>
<br>
<br>
Thanks, <br>
<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
Computer Science Department<br>
UCLA <br>
<br>
<br>
<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 5.0pt;margin-left:0in;margin-right:0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">On Jul 23, 2018, at 2:52 PM, Thiago Teixeira <<a href="mailto:tteixeira@umass.edu">tteixeira@umass.edu</a>><br>
wrote: <br>
<br>
Hi all, <br>
<br>
We added a SINR packet tag in the src/wifi/model/<a href="http://wifi-phy.cc">wifi-phy.cc</a> [<a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541" target="_blank">1</a>]<br>
EndReceive() method using the following snippet: <br>
<br>
SnrTag tag; <br>
<br>
tag.Set(signalNoise.signal - signalNoise.noise); <br>
<br>
if (! packet->PeekPacketTag (tag)){ <br>
<br>
packet->AddPacketTag (tag); <br>
<br>
} <br>
<br>
The implementation of the SINR packet tag is available at<br>
src/wifi/model/<a href="http://snr-tag.cc">snr-tag.cc</a> [<a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc" target="_blank">2</a>].
<br>
<br>
We would like to get the value of the tag in the forwarding strategy.<br>
Before ndnSIM 2.3, we could just use something like this: <br>
<br>
SnrTag tag; <br>
<br>
Ptr<Packet> payload = ConstCast<Packet>(interest->GetPayload()); <br>
<br>
payload->PeekPacketTag (tag); <br>
<br>
but in ndnSIM 2.5 we could not find an equivalent method. I think we<br>
need to convert the SINR tag to type ns3::ndn::ns3PacketTag, is that<br>
correct? <br>
<br>
Can you assist please? <br>
<br>
Thanks, <br>
<br>
Thiago <br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a> [<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">3</a>]<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
  <br>
<br>
Links:<br>
------<br>
[1] <a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541" target="_blank">
https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541</a><br>
[2] <a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc" target="_blank">
https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc</a><br>
[3] <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
Hi all, <br>
<br>
We added a SINR packet tag in the src/wifi/model/<a href="http://wifi-phy.cc">wifi-phy.cc</a> [<a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541" target="_blank">1</a>]<br>
EndReceive() method using the following snippet: <br>
<br>
SnrTag tag; <br>
<br>
tag.Set(signalNoise.signal - signalNoise.noise); <br>
<br>
if (! packet->PeekPacketTag (tag)){ <br>
<br>
packet->AddPacketTag (tag); <br>
<br>
} <br>
<br>
The implementation of the SINR packet tag is available at<br>
src/wifi/model/<a href="http://snr-tag.cc">snr-tag.cc</a> [<a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc" target="_blank">2</a>].
<br>
<br>
We would like to get the value of the tag in the forwarding strategy.<br>
Before ndnSIM 2.3, we could just use something like this: <br>
<br>
SnrTag tag; <br>
<br>
Ptr<Packet> payload = ConstCast<Packet>(interest->GetPayload()); <br>
<br>
payload->PeekPacketTag (tag); <br>
<br>
but in ndnSIM 2.5 we could not find an equivalent method. I think we<br>
need to convert the SINR tag to type ns3::ndn::ns3PacketTag, is that<br>
correct? <br>
<br>
Can you assist please? <br>
<br>
Thanks, <br>
<br>
Thiago <br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a> [<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">3</a>]<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><br>
  <br>
<br>
Links:<br>
------<br>
[1] <a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541" target="_blank">
https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/wifi-phy.cc#L2541</a><br>
[2] <a href="https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc" target="_blank">
https://github.com/named-data-ndnSIM/ns-3-dev/blob/ndnSIM-v2.5/src/wifi/model/snr-tag.cc</a><br>
[3] <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>