Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

Network simulator 2

537 vues

Publié le

Network simulator 2 :
Object-oriented, discrete event driven network simulator
It was normally used in wired & wireless protocol
Written in C++ and OTcl

Publié dans : Ingénierie
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

Network simulator 2

  1. 1. What is ns?  Object-oriented, discrete event driven network simulator  It was normally used in wired & wireless protocol  Written in C++ and OTcl
  2. 2. ADVANTAGES 1. Debugging of errors makes easy, 2. It is cheap doesnot not require any equipment, 3. Even an complex scenario can be tested effiently.
  3. 3. ns Architecture OTcl Tcl TclCL ns-2 Event Scheduler Network Components C/C++
  4. 4. Simulation Network  Wired Network ◦ Routing: Distance Vector, Link State ◦ Transportation: TCP and UDP ◦ Queuing disciplines: drop-tail  Wireless ◦ Ad-hoc routing and mobile IP: AODV ◦ Sensor-MAC, WiMAX (new) ◦ Power control in wireless networks
  5. 5. NS2 Functionalities  Traffic models and applications ◦ FTP, CBR  Transport protocols ◦ Unicast: TCP, UDP  Routing and queuing ◦ Wired and ad-hoc routing ◦ Queuing protocols: drop-tail, etc  Physical media ◦ Wired (point-to-point, LANs), wireless (multiple propagation models), satellite
  6. 6. Ns – structure Types 1. Event Schedular 2. Turn on Tracing 3. Network Topology 4.Transport Connection 5. Generate Traffic 6.Start Simulation
  7. 7. Attaching Transport Agents to Nodes-tcp/udp TCP : set src [new Agent/TCP/FullTcp] set sink [new Agent/TCP/FullTcp] $ns_ attach-agent $node_(s1) $src $ns_ attach-agent $node_(k1) $sink $ns_ connect $src $sink
  8. 8. Udp agent Set udp0 [new Agent/Null] ns attach-agent $n0 $udp0 set cbr0 [new Application/Traffic/CBR] $cbr0 attach-agent $udp0 $udp0 set packetSize_ 536 ; #(max=1000) set null0 [new Agent/Null] $ns attach-agent $n1 $null0 $ns connect $udp0 $null0
  9. 9. PACKETS It is the collection of data,whether header is called or not all header files where present in the stack registers. Cmn header Ip header Tcp header Rtp header Trace header Header data
  10. 10. Trace Analysis Trace packets on individual link Tracefile format:
  11. 11. NAM ns has a companion network animator called nam hence, has been called the nsnam project
  12. 12. Xgraph One part of the ns-allinone package is 'xgraph', a plotting program which can be used to create graphic representations of simulation results.

×