Installing the ns Network Simulator - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Installing the ns Network Simulator

Description:

To run use script - run-ns.sh. Typical shell script. Simplified example #!/bin/sh ... Use wish to run tcl win shell. To run ns enter. ns ns-simple.tcl ... – PowerPoint PPT presentation

Number of Views:52
Avg rating:3.0/5.0
Slides: 11
Provided by: Jo66
Category:

less

Transcript and Presenter's Notes

Title: Installing the ns Network Simulator


1
Installing the ns Network Simulator
  • How to get and install ns2

2
Installing ns
  • Operating systems
  • Developed in Linux/Unix
  • Source code 49 Meg
  • 1. Mandrake 9.1 - compiles ok
  • 2. Cygwin runs Linux code in Win
  • 3. Windows

3
Mandrake 9.1 and ns
  • Download 3 ISO files 650Meg
  • Make 3 bootable disks
  • Network setup - DHCP server
  • Homepage ns
  • http//www.isi.edu/nsnam/ns/
  • Build separate components or
  • Use allinone package

4
Mandrake 9.1 - 2
  • Unpack and compile
  • Directory usr/src
  • Time 0.75 hours
  • Linux Journal article

5
Full Linux install
  • Mandrake or Redhat
  • Logon as root
  • cd /usr/src
  • tar xzvf ns-allinone-2.1b8.tar.gz
  • cd ns-allinone-2.26
  • ./install
  • To run use script - run-ns.sh

6
Typical shell script
  • Simplified example
  • !/bin/sh
  • p1/usr/src/ns-allinone-2.1b9a/bin
  • PATHPATHp1
  • export PATH
  • ns 1
  • File all-path-run-ns.sh.txt

7
Cygwin and ns
  • Online installation
  • Loads 50 Meg use broadband
  • Provides X terminal
  • Run Linux code directly
  • Operation depends upon hardware
  • Uses Win partitions - FAT32

8
Cygwin 2
  • Run native Linux code
  • Translate Linux API to
  • Win API
  • Advantage
  • Linux and Windows
  • Reside in same partition

9
Windows and ns
  • Pre-compiled versions available
  • Microsoft or ns site (mirrors)
  • Require 3 files - ns, nam, tcl
  • ns 2.26, tcl 8.3 (not 8.4)
  • Apache data archive - 120M

10
Windows - ns - 2
  • Directory Network-Simulation
  • Linux iso files
  • Use wish to run tcl win shell
  • To run ns enter
  • ns ns-simple.tcl
  • Recommended to get started
Write a Comment
User Comments (0)
About PowerShow.com