Implementing WiFi Worm that propagates from APs to APs

50 views
Skip to first unread message

Kai Wang

unread,
Feb 14, 2017, 2:22:53 AM2/14/17
to ns-3-users
Dear all, 

I'm implementing a certain kind of WiFi worm for my script. These kind of worm is first installed on a moving node with hotspot open (an AP) and will then be searching for other WiFi routers (APs). Once it discover an AP (maybe other hotsopot of mobile nodes, or normal WiFi routers), it will infect the AP and the AP will start to search for other Aps and infect other Aps. 

I got problem of searching for other APs. I don't know how to can a node get the information of its nearby AP? Could anyone please give me some hints about that?

Thank you very much!

Best Wishes,
Kai

Tommaso Pecorella

unread,
Feb 14, 2017, 12:14:12 PM2/14/17
to ns-3-users
Hi,

I don't know what do you mean by "searching for other APs". A Wi-Fi node usually listen to beacons to know if there is an AP in range, and of course an AP will not listen to other Apps beacons.

T.

Rediet

unread,
Feb 15, 2017, 2:03:31 AM2/15/17
to ns-3-users
Hello Tommaso, Kai,

@Tommaso: The AP can retrieve this kind of neighborhood information from its associated stations through the use of special procedures, like the ones detailed in 802.11k.
@Kai: The problem is that 802.11k doesn't seem to be part of the ns-3 scope for the time being.

Cheers,

Rediet

Kai Wang

unread,
Feb 15, 2017, 3:05:45 AM2/15/17
to ns-3-users
Thank you for response!

I don't exactly know how the worm "searching for other APs". I got the description from news and I'm trying to simulate that behavior.
I have thought of listening to beacons. But I don't know how to do that either... Could you please tell me how can I listen to the beacons from APs?


在 2017年2月15日星期三 UTC+8上午1:14:12,Tommaso Pecorella写道:

Kai Wang

unread,
Feb 15, 2017, 3:09:17 AM2/15/17
to ns-3-users
Thank you very much!
But I have to simulate that behavior, could you please tell me some other methods?
I've thought of listening to beacons from APs. But I don't know how to do that either. Could you please give me some hints with that? Or could you give me some hints about some other feasible solutions...Thanks a lot!!


在 2017年2月15日星期三 UTC+8下午3:03:31,Rediet写道:

Rediet

unread,
Feb 15, 2017, 9:10:21 AM2/15/17
to ns-3-users
Sorry to say it but you'll have to dig into the code and modify ApWifiMac::Receive method, using the StaWifiMac::Receive method as a baseline for beacon handling. However, StaWifiMac doesn't do anything with neighboring beacons for the time being, so you'll have to go a step further and define a callback that will be plugged into your module.
Hope it helps.

Kai Wang

unread,
Feb 16, 2017, 1:09:26 AM2/16/17
to ns-3-users
Thank you very much!!

在 2017年2月15日星期三 UTC+8下午10:10:21,Rediet写道:
Reply all
Reply to author
Forward
0 new messages