12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

puts "i<strong>ns</strong>tall nets into taps..."$a0 network $bpf0$a1 network $bpf1$a2 network $ipnetset node0 [$<strong>ns</strong> node]set node1 [$<strong>ns</strong> node]set node2 [$<strong>ns</strong> node]$<strong>ns</strong> simplex-link $node0 $node2 10Mb 10ms DropTail$<strong>ns</strong> simplex-link $node1 $node2 10Mb 10ms DropTail$<strong>ns</strong> <strong>at</strong>tach-agent $node0 $a0$<strong>ns</strong> <strong>at</strong>tach-agent $node1 $a1$<strong>ns</strong> <strong>at</strong>tach-agent $node2 $a2$<strong>ns</strong> connect $a0 $a2$<strong>ns</strong> connect $a1 $a2puts "okey"$<strong>ns</strong> run44.6 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing is a list of emul<strong>at</strong>ion rel<strong>at</strong>ed comm<strong>and</strong>s:$<strong>ns</strong>_ use-scheduler RealTimeThis comm<strong>and</strong> sets up the real-time scheduler. Note th<strong>at</strong> a real-time scheduler should be used with any emul<strong>at</strong>ion facility.Otherwise it may result the simul<strong>at</strong>ed network running faster than real-time.set netob [new Network/]This comm<strong>and</strong> cre<strong>at</strong>es an i<strong>ns</strong>tance of a network object. Network objects are used to access a live network. Currently thetypes of network objects available are Network/Pcap/Live, Network/IP <strong>and</strong> Network/IP/UDP. See section 44.4 for details onnetwork objects.388

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!