This action might not be possible to undo. Are you sure you want to continue?
Over Microsoft Widows...Using Cygwin
Prof. Dr. Mahamod Ismail PhD Candidate Ghassan A. Abed
FACULTY OF ENGINEERING AND BUILT ENVIRONMENT UNIVERSITI KEBANGSAAN MALAYSIA Course Code: KKKT6274 Course Name: Modeling and Simulation of Communication and Computer Network 2012
1.Preface This paper, illustrates the experimental procedures to installing NS-2 network simulator over MS-Windows operating system. This installation has the same steps and same procedures for the following Microsoft Windows generations:
• • • • • • Windows 2000, Windows XP Windows Server 2003 Windows Vista Windows Server 2008 Windows 7
All steps and procedures applied for all windows generations and the differences will explain in each step later.
• • • • Free disk space of 5GB required. Minimum 512MB RAM suggested. Windows installed in Drive partition “C”. The name of computer and username should not have space or other abnormal symbols.
tar is about 51 MB.4shared. released in March 2009).rar in the link: http://www.com/file/3rbCd862/ns-allinone-234tar.4shared. • If you interested to installing NS-188.8.131.52.3. you can download it from this link: http://www. • Go to this link to download Cygwin: http://www. • Lastly.com/file/3rbCd862/ns-allinonehttp://www.4shared.html This folder contain tcl script as an example to test the full NS-2 ability after installing.34 (it’s the last Version of Ns-2.4shared. open the download page and click “Download Now” then download link will appear after 90 sec.com/file/UI7ztz6k/ns-allinone-232tar. • If you interested to installing NS-2.html The size of ns-allinone-2.html The size of Cygwin program about 83 MB. 2 .com/file/r_dQEzUn/cygwin.Downloading For each download. then you can use the script in Example.html http://www. you need to test your installation.com/file/UI7ztz6k/ns-allinone- The size of ns-allinone-2.4shared.tar is about 56 MB. you can download it from this link: http://www.com/file/KmAk8wfL/Example.4shared.
and later when you need to add other patches you can develop your version and install NS-2.34.32. it’s enough to start by installing NS-2.Note: For beginners.2.ta • Extract Cygwin inside the folder NS-2.32.Installation • Open new folder on your computer Desktop (with any name . 3 . like NS-2) and add the downloaded software’s: 1. ns-allinone-2. 4.34.tar or ns-allinone. 2. Cygwin.
4 .• Click on Cygwin icon and start installation. • Choose “Install from Local Directory” and Next.
• Click on View to get “Not Installed” then change each “Skip” to get number. 5 .• Choose as shown in picture below and Next.
• Next to continue 6 .• You must be sure to change each “Skip” to number. and then press Next.
keep it signed and press Finish. you will see two choices.• Wait to complete Cygwin setup. • After Cygwin installation finished. 7 .
• Go to Drive C: 8 .• Click OK to finish Cygwin setup.
• Enter to Drive “C” and open Cygwin folder. • Click on Cygwin icon to run Cygwin for first time 9 .
34.• You will see Cygwin panel screen with extension of username and computer name.32.tar). 10 .tar (or ns-allinone-2. • Go to Ns-2 folder and Copy ns-allinone-2.
tar. write the command: tar –xvf ns-allinone-2.32.34.gz (for NS-2. In this case the username is “ghassan”.34) and then Enter 11 . • After “$” sign. inside “Cygwin” folder.gz or tar –xvf ns-allinone-2.• Paste the copied file into your “username” folder inside “home” folder.tar.
• Wait for extraction.34 12 . • Write the command: cd ns-allinone-2.32 Or: cd ns-allinone-2.
/install Then press Enter • Now you need to wait for 30-40 min to complete NS2 installation. 13 .Write the command: .
write the command: .32 • After you see the root changed./validate-full (if use NS-2.32) Or ./validate (if use NS-2.34) 14 .• Change the directory by writing: cd ns-2.
Ns-2 validation. This step need for 30-40 min to finish. • Go to your computer Desktop and click on Cygwin icon.• Now. 15 .
16 .bat” to start NS-2 platform. you will see NS-2 panel for first time. • In this step.• Write the command: “startxwin.
• Change the root by write: • cd ns-allinone-2.32/ns-2.32/ and then press Enter • Now. you are in the main folder ns-2.32 17 .
exe • Then.exe and xgraph. you must have 3 main files as shown below: Extract “Example” file which downloaded and copy the 3 files: out.• Search using Windows search in Cygwin folder to find: nam.tcl .nam .32 folder.tr 18 . and trace. • Lastly. test. Copy these two files and Paste it in ns-2.
• Paste the copied 3 files in ns-2.tcl then press Enter 19 . you must try to run simple test script and see how NS-2 draw traces and networks animation.32 folder. • To test if the installation performed successfully. • Write the command: ns test.
users. If you can see these two panels. This is the first step for the students. • You can Run the animator to see how NS-2 represents the packets transferring between nodes and so you can see some drop packets. and developers to start with NS-2 network simulator and I hope it will be useful for them.org 20 .• If your installation success. please contact me within my Email: ghass@ieee. you must see these two panels. that mean you have fully successful copy of NS-2 on your computer. one for sample trace plot and the second represents network animation of simple topology with 8 nodes. • For questions and suggestions.