Wifi Ad hoc network, cant send packet

85 views
Skip to first unread message

Mr. T

unread,
Mar 3, 2016, 7:06:45 AM3/3/16
to ns-3-users
Hello, bodies.
    I build an wifi adhoc network with an OnoffApplication sned Udp unicast packet. I set 50 nodes in my network, every two nodes send data to each other. so there are 25 pairs in my network and the Onoffapplication create and send pakets all the time with 512kbps speed.  I run it for 20s or more, when the simulation is over I found that some of the nodes can not send any packet, even in MAC layer. According to my understanding, no matter how collision is worse, the application is always working and sending packets, so the MAC layer should send some packet, but the result show that the mac layer speed of some nodes is nearly to zero. so I don't know why this happen, can some help me? thanks a lot.

Tommaso Pecorella

unread,
Mar 3, 2016, 8:52:31 AM3/3/16
to ns-3-users
Hi,

this problem has been discussed countless times, really.
You must add a random jitter between the various application starting events. If they start at the same time, some of them can have their ARP packets lost and the connection doesn't even starts.

T.

Mr. T

unread,
Mar 3, 2016, 9:03:38 AM3/3/16
to ns-3-users
Thanks Sir. I haven't notice it ever. I'll have a try.

在 2016年3月3日星期四 UTC+8下午9:52:31,Tommaso Pecorella写道:
Reply all
Reply to author
Forward
0 new messages