Communication Protocols - NS2 Implementation



Overview


What is NS2?

  • a Discreet event simulator
  • Goals
       - Support networking research and education
       - Freely distributed, open source
       - Share code, protocols, model, etc
  • Link Layer and Up
  • Wired and Wireless

Linux Package:
sudo apt-get install ns

Tool Command Language - TCL scripting
  • Developed by John Ousterhout at UC Berkeley. 

  • Tcl stands for “tool command language”

  • Interpreted scripting language; 

  • Most commonly used to build graphical interfaces like NAM

Sample Script

#! /bin/env tclsh

puts {hello, world}



Network AniMator - NAM


  • Nam is a Tcl/TK based animation tool for viewing network simulation traces and real world packet traces. 

  • It supports topology layout, packet  level animation, and various data inspection tools.

Linux Package:
sudo apt-get install nam

Title

Network Simulator NS2

By Manjunath B

Network Simulator NS2

  • 378