<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Junxiao,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for the reply. I may not have been able to clear my question completely. </div><div class="gmail_default" style="font-size:small">I have followed a similar wifi setup mentioned here: <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-simple-wifi.cpp" target="_blank">https://github.com/named-data-ndnSIM/ndnSIM/blob/master/examples/ndn-simple-wifi.cpp</a></div><div class="gmail_default" style="font-size:small">However, (with my own forwarding strategy) I have already tested and found that in a completely static environment with multi-hop ad-hoc network (with 25 nodes) and topology set-up in such a way that path between Consumer-Producer is guaranteed. Finally, with this setup, network does show packets lost due to collision (under certain conditions- high Interest sending rate).</div><div class="gmail_default" style="font-size:small">The problem I'm facing is that I can't obtain these collision lost packets metric using ndnSIM.<br><br>When you said- "use WifiNetDevice instead", did you mean to change the ndn-stack-helper directly?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best-</div><div class="gmail_default" style="font-size:small">Ashiq</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 31, 2019 at 8:35 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="auto">Hi Ashiq</div></div><div dir="auto"><br></div><div dir="auto">PointToPointNetDevice has no possibility of collisions, because there are only two net devices on a PointToPointChannel and the channel allows full-duplex communication.</div><div dir="auto">If you want WiFi related counters, use WifiNetDevice instead. It can’t model inter-channel interference, but otherwise is quite close to a real WiFi network.</div><div dir="auto"><br></div><div dir="auto">If the only issue is a “stack helper”: you don’t have to use any helper in a ns-3 script. Just manually create and aggregate the objects, and set the attributes.</div><div dir="auto">I believe ndnSIM 2.1 has some assertions about the type of NetDevice is PointToPointNetDevice in the routing implementation. If it’s still there in more recent version, you might have to setup routing manually.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 31, 2019 at 23:11 Md Ashiqur Rahman <<a href="mailto:marahman@email.arizona.edu" target="_blank">marahman@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All,<br><br>I was wondering how I can measure the packets lost due to collision in a wifi network. In NS3 for IP-based WiFi, I can do the following to obtain packets lost due to collision:<br><a href="https://gist.github.com/ashiqopu/0346359297143866f1748322a9e6f125" target="_blank">https://gist.github.com/ashiqopu/0346359297143866f1748322a9e6f125</a><br><br><div>However, in nsnSIM, this does not to work as the stack is different and always uses a PointToPointNetDevice in ndn-stack-helper.<span class="gmail_default" style="font-size:small"> </span>I<span class="gmail_default" style="font-size:small">t would be really helpful if someone can guide me how to obtain packets lost due to collision.</span><span class="gmail_default" style="font-size:small"></span><div><br></div><div><div class="gmail_default" style="font-size:small">Best-</div><div class="gmail_default" style="font-size:small">Ashiq</div></div></div></div><div dir="ltr"><div><br></div></div>
</blockquote></div></div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_1104263625057643392gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Md Ashiqur Rahman<div>Research Assistant, Network Research Lab<br><div>Dept. of Computer Science</div><div>The University of Arizona</div></div></div></div></div></div></div>