SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
1
INSTALLATION OF
NETWORK SIMULATOR 2
T S Pradeep Kumar
VIT Chennai
http://www.nsnam.com
http://www.pradeepkumar.org
Email: pradeepkumarts@gmail.com
2
Installation
• The version taken here is ns-allinone-2.35.
• There are two types
• Build all at once (ns-allinone-2.35.tar.gz)
• Good for beginners as well advanced users
• Build from pieces (download individually and
build it)
• For advanced users.
3
Requirements for NS2
• A Basic C compiler (GCC)
• This comes almost in all distros of Linux
• TCL/Tk
• This should be installed separately, default installation
does not carry these packages
• PERL Script
• This also comes default
• X11 Libraries
• This is helpful for running Network Animator (GUI)
• This also comes in the default installation
Step1:
Untar or unzip the contents
4
Step 2:Go to the folder and execute
./install
command
5
Step 3:
Once
installation
completed, set
the path…
6
Insight…
7
8
Step 1
• tar zxvf ns-allinone-2.35.tar.gz

or

gzip -d ns-allinone-2.35.tar.gz

tar xvf ns-allinone-2.35.tar
• z – to decompress from gz
• x – extract
• v – verbose mode
• f – force (don’t ask whether to extract a file)
9
Step 2
• Always use /home/<user>/ to install ns2
• Example I used /home/pradeep/
• Once untar is done, go to the concerned folder
using the command cd ns-allinone-2.35
• Execute the command ./install
• If the installation fails in the middle, then try to
install the Linux packages that are necessary to
run NS2.
10
Step 3
• If the installation is success,
• NS2 will give the path information for you
• These path details to be updated and then we can run ns, nam
and xgraph
• Path settings will be done in this file
• /home/user/.bash_profile (for Fedora)
• /home/user/.bashrc (for ubuntu)
• /home/user/.profile (for Linux Mint)
11
Step 3
• Path should be set for two variables
• PATH
• LD_LIBRARY_PATH
• Example
• PATH=$PATH:$HOME:/home/pradeep/ns-
allinone-2.35/bin:/home/pradeep/ns-allinone-2.35/
tcl8.4.14/unix:/home/pradeep/ns-allinone-2.35/
tk8.4.14/unix
• export LD_LIBRARY_PATH=/home/pradeep/ns-
allinone-2.35/otcl-1.13:/home/pradeep/ns-
allinone-2.31/lib

12
Step 4
• Logout and login
• Go to terminal and type the command
• ns (a % symbol indicates the successful installation of ns2)
• nam (a network animator window will be opened)
13
What if installation is
unsuccessful?
• Since there are different Linux distributions, not
all the Linux will do the same as above.
• Based on the
• GCC version incompatibility
• Unavailability of packages for a particular distribution
• Backward incompatibility
• Updation or major changes in the software packages
May lead to unsuccessful installation
14
What if installation is
unsuccessful?
• My website addresses for more than 25 distributions
like
• Ubuntu 8.04 to 16.04 (Latest)
• Fedora 9 to Fedora 23 (Latest)
• Linux Mint 13 to Linux Mint 18 (Latest)
• Redhat Linux Enterprise Linux or CentOS
So, Please refer http://www.nsnam.com for further information
15
Examples in NS2
• To see examples, please go to this folder
• /home/user/ns-allinone-2.35/ns-2.35/tcl/ex
• There are huge number of examples for NS2
• To run a tcl file, following is the command
	ns filename.tcl
• To run a nam file
	nam filename.nam
16
Tracing
• To see the tracing file
• Either xgraph can be used (which comes along with ns2)
• Third party software like “tracegraph” can be used (but
the support is stopped, still it is good to predict the results)
• For installing tracegraph, refer my website for a video
tutorial
• gnuplot can be used
• Questions???????

Contenu connexe

Tendances

Industrial protocols for pentesters
Industrial protocols for pentestersIndustrial protocols for pentesters
Industrial protocols for pentesters
Positive Hack Days
 

Tendances (20)

eBPF - Observability In Deep
eBPF - Observability In DeepeBPF - Observability In Deep
eBPF - Observability In Deep
 
Using eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in CiliumUsing eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in Cilium
 
Dataplane programming with eBPF: architecture and tools
Dataplane programming with eBPF: architecture and toolsDataplane programming with eBPF: architecture and tools
Dataplane programming with eBPF: architecture and tools
 
DPDK KNI interface
DPDK KNI interfaceDPDK KNI interface
DPDK KNI interface
 
eBPF - Rethinking the Linux Kernel
eBPF - Rethinking the Linux KerneleBPF - Rethinking the Linux Kernel
eBPF - Rethinking the Linux Kernel
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
 
Automated hardware testing using python
Automated hardware testing using pythonAutomated hardware testing using python
Automated hardware testing using python
 
Deep learning and neural networks (using simple mathematics)
Deep learning and neural networks (using simple mathematics)Deep learning and neural networks (using simple mathematics)
Deep learning and neural networks (using simple mathematics)
 
DPDK In Depth
DPDK In DepthDPDK In Depth
DPDK In Depth
 
Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
Contemporary Linux Networking
Contemporary Linux NetworkingContemporary Linux Networking
Contemporary Linux Networking
 
OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)OpenStack Quantum Intro (OS Meetup 3-26-12)
OpenStack Quantum Intro (OS Meetup 3-26-12)
 
eBPF Workshop
eBPF WorkshopeBPF Workshop
eBPF Workshop
 
Xdp and ebpf_maps
Xdp and ebpf_mapsXdp and ebpf_maps
Xdp and ebpf_maps
 
Industrial protocols for pentesters
Industrial protocols for pentestersIndustrial protocols for pentesters
Industrial protocols for pentesters
 
eBPF Basics
eBPF BasicseBPF Basics
eBPF Basics
 
Kismet
KismetKismet
Kismet
 
Testing Persistent Storage Performance in Kubernetes with Sherlock
Testing Persistent Storage Performance in Kubernetes with SherlockTesting Persistent Storage Performance in Kubernetes with Sherlock
Testing Persistent Storage Performance in Kubernetes with Sherlock
 
Security Monitoring with eBPF
Security Monitoring with eBPFSecurity Monitoring with eBPF
Security Monitoring with eBPF
 
One Shellcode to Rule Them All: Cross-Platform Exploitation
One Shellcode to Rule Them All: Cross-Platform ExploitationOne Shellcode to Rule Them All: Cross-Platform Exploitation
One Shellcode to Rule Them All: Cross-Platform Exploitation
 

Similaire à Installation of ns2

Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Docker, Inc.
 

Similaire à Installation of ns2 (20)

Trojan linux
Trojan linuxTrojan linux
Trojan linux
 
Trojan linux
Trojan linuxTrojan linux
Trojan linux
 
Gentoo Linux, or Why in the World You Should Compile Everything
Gentoo Linux, or Why in the World You Should Compile EverythingGentoo Linux, or Why in the World You Should Compile Everything
Gentoo Linux, or Why in the World You Should Compile Everything
 
Systemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to loveSystemd: the modern Linux init system you will learn to love
Systemd: the modern Linux init system you will learn to love
 
Docker 原理與實作
Docker 原理與實作Docker 原理與實作
Docker 原理與實作
 
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Lightweight Virtualization with Linux Containers and Docker | YaC 2013Lightweight Virtualization with Linux Containers and Docker | YaC 2013
Lightweight Virtualization with Linux Containers and Docker | YaC 2013
 
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013Lightweight Virtualization with Linux Containers and Docker I YaC 2013
Lightweight Virtualization with Linux Containers and Docker I YaC 2013
 
Unikernel User Summit 2015: Getting started in unikernels using the rump kernel
Unikernel User Summit 2015: Getting started in unikernels using the rump kernelUnikernel User Summit 2015: Getting started in unikernels using the rump kernel
Unikernel User Summit 2015: Getting started in unikernels using the rump kernel
 
1 session installation
1 session installation1 session installation
1 session installation
 
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo..."Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
"Lightweight Virtualization with Linux Containers and Docker". Jerome Petazzo...
 
Android for Embedded Linux Developers
Android for Embedded Linux DevelopersAndroid for Embedded Linux Developers
Android for Embedded Linux Developers
 
One Year of Porting - Post-mortem of two Linux/SteamOS launches
One Year of Porting - Post-mortem of two Linux/SteamOS launchesOne Year of Porting - Post-mortem of two Linux/SteamOS launches
One Year of Porting - Post-mortem of two Linux/SteamOS launches
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptx
 
Lec 10-linux-review
Lec 10-linux-reviewLec 10-linux-review
Lec 10-linux-review
 
embedded-linux-120203.pdf
embedded-linux-120203.pdfembedded-linux-120203.pdf
embedded-linux-120203.pdf
 
Docker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker for Mac and Windows: The Insider's Guide by Justin CormackDocker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker for Mac and Windows: The Insider's Guide by Justin Cormack
 
From printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debuggingFrom printk to QEMU: Xen/Linux Kernel debugging
From printk to QEMU: Xen/Linux Kernel debugging
 
A Reimplementation of NetBSD Based on a Microkernel by Andrew S. Tanenbaum
A Reimplementation of NetBSD Based on a Microkernel by Andrew S. TanenbaumA Reimplementation of NetBSD Based on a Microkernel by Andrew S. Tanenbaum
A Reimplementation of NetBSD Based on a Microkernel by Andrew S. Tanenbaum
 
Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!Intro to Kernel Debugging - Just make the crashing stop!
Intro to Kernel Debugging - Just make the crashing stop!
 
Package management and creation in Gentoo Linux
Package management and creation in Gentoo LinuxPackage management and creation in Gentoo Linux
Package management and creation in Gentoo Linux
 

Plus de Pradeep Kumar TS

Plus de Pradeep Kumar TS (20)

Digital Portfolio and Footprint
Digital Portfolio and FootprintDigital Portfolio and Footprint
Digital Portfolio and Footprint
 
Open book Examination
Open book ExaminationOpen book Examination
Open book Examination
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)
 
What next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesWhat next - Career Enhancement of Graduates
What next - Career Enhancement of Graduates
 
Protothreads
ProtothreadsProtothreads
Protothreads
 
6LoWPAN
6LoWPAN 6LoWPAN
6LoWPAN
 
Software Defined Networks
Software Defined NetworksSoftware Defined Networks
Software Defined Networks
 
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingHigher Order Thinking - Question paper setting
Higher Order Thinking - Question paper setting
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication Protocols
 
IoT Applications
IoT ApplicationsIoT Applications
IoT Applications
 
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksRPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy Networks
 
Mannasim for NS2
Mannasim for NS2Mannasim for NS2
Mannasim for NS2
 
Recompiling network simulator 2
Recompiling network simulator 2Recompiling network simulator 2
Recompiling network simulator 2
 
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2
 
Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1
 
Software Defined Networking - 2
Software Defined Networking - 2Software Defined Networking - 2
Software Defined Networking - 2
 
Software Defined Networking - 3
Software Defined Networking - 3Software Defined Networking - 3
Software Defined Networking - 3
 
Tracing and awk in ns2
Tracing and awk in ns2Tracing and awk in ns2
Tracing and awk in ns2
 

Dernier

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
anilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
 

Dernier (20)

A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 

Installation of ns2

  • 1. 1 INSTALLATION OF NETWORK SIMULATOR 2 T S Pradeep Kumar VIT Chennai http://www.nsnam.com http://www.pradeepkumar.org Email: pradeepkumarts@gmail.com
  • 2. 2 Installation • The version taken here is ns-allinone-2.35. • There are two types • Build all at once (ns-allinone-2.35.tar.gz) • Good for beginners as well advanced users • Build from pieces (download individually and build it) • For advanced users.
  • 3. 3 Requirements for NS2 • A Basic C compiler (GCC) • This comes almost in all distros of Linux • TCL/Tk • This should be installed separately, default installation does not carry these packages • PERL Script • This also comes default • X11 Libraries • This is helpful for running Network Animator (GUI) • This also comes in the default installation
  • 4. Step1: Untar or unzip the contents 4
  • 5. Step 2:Go to the folder and execute ./install command 5
  • 8. 8 Step 1 • tar zxvf ns-allinone-2.35.tar.gz
 or
 gzip -d ns-allinone-2.35.tar.gz
 tar xvf ns-allinone-2.35.tar • z – to decompress from gz • x – extract • v – verbose mode • f – force (don’t ask whether to extract a file)
  • 9. 9 Step 2 • Always use /home/<user>/ to install ns2 • Example I used /home/pradeep/ • Once untar is done, go to the concerned folder using the command cd ns-allinone-2.35 • Execute the command ./install • If the installation fails in the middle, then try to install the Linux packages that are necessary to run NS2.
  • 10. 10 Step 3 • If the installation is success, • NS2 will give the path information for you • These path details to be updated and then we can run ns, nam and xgraph • Path settings will be done in this file • /home/user/.bash_profile (for Fedora) • /home/user/.bashrc (for ubuntu) • /home/user/.profile (for Linux Mint)
  • 11. 11 Step 3 • Path should be set for two variables • PATH • LD_LIBRARY_PATH • Example • PATH=$PATH:$HOME:/home/pradeep/ns- allinone-2.35/bin:/home/pradeep/ns-allinone-2.35/ tcl8.4.14/unix:/home/pradeep/ns-allinone-2.35/ tk8.4.14/unix • export LD_LIBRARY_PATH=/home/pradeep/ns- allinone-2.35/otcl-1.13:/home/pradeep/ns- allinone-2.31/lib

  • 12. 12 Step 4 • Logout and login • Go to terminal and type the command • ns (a % symbol indicates the successful installation of ns2) • nam (a network animator window will be opened)
  • 13. 13 What if installation is unsuccessful? • Since there are different Linux distributions, not all the Linux will do the same as above. • Based on the • GCC version incompatibility • Unavailability of packages for a particular distribution • Backward incompatibility • Updation or major changes in the software packages May lead to unsuccessful installation
  • 14. 14 What if installation is unsuccessful? • My website addresses for more than 25 distributions like • Ubuntu 8.04 to 16.04 (Latest) • Fedora 9 to Fedora 23 (Latest) • Linux Mint 13 to Linux Mint 18 (Latest) • Redhat Linux Enterprise Linux or CentOS So, Please refer http://www.nsnam.com for further information
  • 15. 15 Examples in NS2 • To see examples, please go to this folder • /home/user/ns-allinone-2.35/ns-2.35/tcl/ex • There are huge number of examples for NS2 • To run a tcl file, following is the command ns filename.tcl • To run a nam file nam filename.nam
  • 16. 16 Tracing • To see the tracing file • Either xgraph can be used (which comes along with ns2) • Third party software like “tracegraph” can be used (but the support is stopped, still it is good to predict the results) • For installing tracegraph, refer my website for a video tutorial • gnuplot can be used