<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:0 0 0 .8ex;border-left:1px #ccc solid;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>