[ndnSIM] How to obtain packets lost due to collision in WiFi

Junxiao Shi shijunxiao at email.arizona.edu
Sun Mar 31 20:35:43 PDT 2019

Hi Ashiq

PointToPointNetDevice has no possibility of collisions, because there are
only two net devices on a PointToPointChannel and the channel allows
full-duplex communication.
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.

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
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.

Yours, Junxiao

On Sun, Mar 31, 2019 at 23:11 Md Ashiqur Rahman <marahman at email.arizona.edu>

> Hello All,
> 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:
> https://gist.github.com/ashiqopu/0346359297143866f1748322a9e6f125
> However, in nsnSIM, this does not to work as the stack is different and
> always uses a PointToPointNetDevice in ndn-stack-helper. It would be
> really helpful if someone can guide me how to obtain packets lost due to
> collision.
> Best-
> Ashiq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190331/c848a4bd/attachment-0001.html>

More information about the ndnSIM mailing list