lec-13 - Ns2 Network Simulator An Introduction 28 Aug 2008...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
28 Aug 2008   1 Ns-2 Network Simulator  An Introduction
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
28 Aug 2008  BITS C481 (Computer Networks) 2 Introduction[1] Ns-2 is a discrete event simulator targeted at network research Focused on modeling network protocols wired, wireless, satellite TCP, UDP, multicast, unicast web, telnet, ftp ad hoc routing, sensor networks
Background image of page 2
28 Aug 2008  BITS C481 (Computer Networks) 3 Ns-2 is a discrete event driven simulation Physical activities are translated to events Events are queued and processed in the order of their scheduled occurrences Time progresses as the events are processed 1 2 Time: 1.5 sec Time: 1.7 sec Time: 1.8 sec Time: 2.0 sec Introduction[2]
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
28 Aug 2008  BITS C481 (Computer Networks) 4 Components of ns ns, the simulator itself nam, the Network AniMator visualize ns (or other) output GUI input simple ns scenarios pre-processing: traffic and topology generators post-processing: simple trace analysis, often in Awk, Perl, or Tcl
Background image of page 4
28 Aug 2008  BITS C481 (Computer Networks) 5 ns Software Structure:  C++ and Otcl Uses two languages C++ for packet-processing fast to run, detailed, complete control OTcl for control simulation setup, configuration fast to write and change Pros: trade-off running vs. writing speed, powerful/documented config language Cons: two languages to learn and debug in
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
28 Aug 2008  BITS C481 (Computer Networks) 6 Event Driven Simulation TX Pkt Event  @ 1.5sec Node 1  Module Node 2  Module TX Pkt Event  @ 1.5sec RX Pkt Event  @ 1.7sec RX Pkt Event  @ 1.7sec TX Ack Event  @ 1.8sec TX Ack Event  @ 1.8sec RX Ack Event  @ 2.0sec RX Ack Event  @ 2.0sec Event Queue Simulation Finished!
Background image of page 6
28 Aug 2008  BITS C481 (Computer Networks) 7 Simplified User’s View of NS-2 
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
28 Aug 2008  BITS C481 (Computer Networks) 8 NS-2 programming Create the event scheduler Turn on tracing Creating network Computing routes and Setup routing - rtproto Creating transport connections – Agents Creating traffic – Applications Transmit application-level data Monitoring
Background image of page 8
28 Aug 2008  BITS C481 (Computer Networks) 9 Creating Event Scheduler Create event scheduler set ns [new Simulator] Schedule events $ns at <time> “<event>” <event>: any legitimate ns/tcl commands Start scheduler $ns run
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '08
  • Prof.VirendraSinghShekhawat
  • International Space Station, NS, Network topology, Discrete event simulation, Network simulation

{[ snackBarMessage ]}

Page1 / 27

lec-13 - Ns2 Network Simulator An Introduction 28 Aug 2008...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online