![]() |
Java Discrete Event Driven Simulation |
Recently in my Networks course at Guelph they had us create an event-driven discrete simulation to model both a wireless network and a switch. For the project I got a hexagonal geometry for the wireless network which was to be arranged similar to a Manhattan Street Network with each node having at most six neighbours. Other groups got triangular and square geometries for this portion. For the switch I got an 8×8 Banyan switch. Other groups got the crossbar switch or backplane switches.

The first run of the simulation was terrible. There were problems with the timing in the simulation and nodes which were supposed to be holding packets in them towards the end of the simulation were actually blocking traffic right at the start causing an extremely high proportion of packets to be dropped. In revision two the problems were fixed and the results were so well done that the prof accused us of doctoring them.
So basically, I thought I would post the code online in case anyone would like to make use of it. Right now the simulation does not take into account such factors as interference and is fairly simplistic however it is good for testing different network geometries and routing algorithms within them. It could easily be extended to include more complicated factors such as interference however it was not necessary at the time of the project. If you are making use of the code please leave a reference to my name in it. If you have any questions or would like some help getting it to work feel free to contact me.
For those who are interested here are some of the results from the simulations:
And for those who would like the code here are the links:
Previous: « Computer Science: A Science?
Next: Weasel Words in Computer Science »
Recent Articles
OpenGL Console Library for Blackberry Native SDK (Playbook)
January 24, 2012
Over the break, I decided to try my hand at some Blackberry native SDK...
Creating a Bluetooth Access point (NAP) in Ubuntu 11.10
November 29, 2011
A Bluetooth NAP is similar to a Wi-Fi access point. In this case, we will...
Burg / Grub 2 Icons for Meego
November 29, 2011
Only recently I noticed that Moblin (which I sometimes use) has changed...
Aircrack suite + Ubuntu 11.10 problems with monitor mode...
November 4, 2011
Recently I have been playing around with the aircrack suite and in...
Upcoming PhD QE Progress
July 27, 2011
So I've been doing my PhD for over two years now, and I haven't posted a...
Why Blanket Wireless Coverage in Waterloo Failed, and...
July 22, 2011
Today the KW Record ran an article entitled "Blanket Wi-Fi plans unplugged...








April 14, 2008

Categories:
Tags: 











Sitemap
Valid XHTML
Valid CSS
Login
Good
- spam
- offensive
- disagree
- off topic
Like