Home » Uncategorized

Category Archives: Uncategorized

GWT/Javascript Cisco simulator for CCNA prep.

A while ago I experimented with writing a program to simulate the behaviour of Cisco switches and Routers, with the idea of embedding it in a webpage so that it could be accessed for free using any web browser.  This application would need to be rather complex, and could have been quite processor intensive, so I chose to write the application using java as this could also be easily embedded in a webpage.  Nowadays java is very unpopular for such purposes, and most web browsers impose restrictions on java applications which simply make it too hard for end users.  I decided that for this program to be of any use I would need to find another method to allow this to run inside a web browser.

Net-Refresh

It seemed that the most compatible method would be to rewrite the program in javascript, but this was simply not an option due to the huge effort involved, and that I could not bear to even think about writing a large OO program in javascript.  I soon stumbled across a development toolkit made by Google, called GWT (Google Web Toolkit).  This was exactly what I needed!  GWT allows code to be written in Java, and then compiled into javascript which can be used in a webpage.

In order to use GWT I did need to make some changes to the original program, mostly user interface related.  One great thing with GWT is that it allowed me to use Eclipse for development, and also allows debugging which could be difficult if writing entirely in javascript.

You can check out this simulator at http://www.net-refresh.com.

Free Cisco CCNA Simulator

I have been working on this Cisco simulator for a good while now, aimed at helping people to familiarize themselves with the configuration of Cisco switches and Routers via the command line.  This simulator is aimed primarily towards students who are preparing to sit their CCNA and ICND exams.

The motivation behind creating this simulator was due to my struggles with remembering all the different requirements in the CCNA syllabus.  There is so much material to learn that I could study a topic and believe I had a good understanding, but after moving to another topic found I would quickly forget much of what I had learnt!  I would also regularly use GNS3, an excellent free emulator for Cisco devices, but without a proper study plan I would inevitably miss certain essential topics.

This simulator has been programmed in java, so that it can be imbedded in a webpage with no need to download or install any software on your PC.  I’m sure there will be no shortage of criticism for my choice of java, I feel it is very fit for the purpose.  I am unable to imbed java on this site, but if you head across to www.net-refresh.com you will find a number of scenarios available for you to practice.

The CCNA simulator's applet interface

The CCNA simulator’s applet interface

If you choose from one of the practice scenarios here, you will be presented with an interface like the one above.  Depending on your version of java and your security settings, the applet may not display.  If this is the case, please follow the instructions here to enable java on this site.

On the left hand side is a diagram of the network topology, and the right is the console area.  You can select a device to configure by clicking it’s image on the left, and this is the equivalent of connecting a pc to the Router/Switches console port and opening a console connection.  Commands can now be typed in the right to configure the device.

Each scenario has a set of instructions, which can be seen by clicking the ‘Toggle Command Prompt/Instructions’ button.  As certain objectives are completed they be listed as such.

The ‘Detach Frame’ button allows the simulator to be separated from he browser window, although if the page is closed the applet will close also.  In some browsers the simulator will not display correctly, in which case detaching the frame will be the best option.

This simulator is undergoing constant development, so more functionality is being added regularly.  I hope you will check it out and find it useful!

 

 

Can cellphone towers affect Wifi Performance?

gridcoin728x90_40b-99980e

I have read quite a few posts in forums around the web, in which people are suspecting that a new cellular tower nearby may be the cause of their slow Wi-Fi performance.  I could not however find any case where a solution had been found, so I will share an experience I have had with this.

Recently I was involved with trying to determine the cause of very low throughput on a number of Wi-Fi access points, providing coverage over a large outdoor area.

We were equipped with an Anritsu S332D Sitemaster, with spectrum analyzer, and after testing the antennas we had a look at the 2.4-2.5GHz spectrum in search of any sources of interference.  The location was surrounded by 3 cellular towers, with the nearest being less than 100m away,  so we suspected that there may be some interference in the 2.4GHz band due to intermodulation.  Surprisingly the band was very quiet, and there were no signals that did not belong there.

Next we looked more closely at the cellular frequencies, the nearest of which was centered on 2.115GHz.  To our surprise the level was much higher than expected, with our low gain, wideband antenna, the received power was -20dBm!  This made us think that the high level cellular signal was swamping the access point’s front end receiver leading to receiver desensitization, but surely access points would have a pre filter before their sensitive receiver circuitry wouldn’t they?  Well I can’t answer this for certain, but I have seen some application notes showing the first stage after the antenna being a Low Noise Amplifier.  If this is the case I am not surprised that high power transmitters, even if they are out of band, will impact on the performance of Wi-Fi.  I should say, the cell site does appear to be operating within their license.

In order to test this theory two band pass filters (which allow only the frequencies from 2.4GHz to 2.5GHz to pass and severely attenuate all others) were ordered and installed on the two antennas of one access point on site.  These filters were able to attenuate the offending signal by 60dB.  Throughput tests were carried out before and after the addition of the filters, and the improvement was clear.  Before installation of the filters, performance at about 20m was down to about 1Mbps.  After installation this jumped to above 30Mbps, and the engineer was able to get around 30Mbps to a distance of almost 100m.

We also visited some other locations near cell sites, and measured the levels there also.  At most sites we received levels between -45dBm and -60dBm, and there were no reports of poor Wi-Fi performance (although no thorough throughput tests were carried out).

So if you have ruled out all other possible causes of your poor Wi-Fi performance, it is possible that a nearby cell site could be the cause of your problems (or lack of decent receive path pre-filtering depending on your angle).  You will however need to get your hands on spectrum analyzer in order to determine this conclusively.