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

Md Ashiqur Rahman marahman at email.arizona.edu
Sun Mar 31 20:59:03 PDT 2019

Hi Junxiao,

Thanks for the reply. I may not have been able to clear my question
I have followed a similar wifi setup mentioned here:
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).
The problem I'm facing is that I can't obtain these collision lost packets
metric using ndnSIM.

When you said- "use WifiNetDevice instead", did you mean to change the
ndn-stack-helper directly?


On Sun, Mar 31, 2019 at 8:35 PM Junxiao Shi <shijunxiao at email.arizona.edu>

> 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
> attributes.
> 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> wrote:
>> 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

Md Ashiqur Rahman
Research Assistant, Network Research Lab
Dept. of Computer Science
The University of Arizona
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190331/c13dfa28/attachment.html>

More information about the ndnSIM mailing list