11-Network Simulator
11-Network Simulator
11-Network Simulator
Dr. W Yao, Brunel University EE5302 Network Design and Management 5 Dr. W Yao, Brunel University EE5302 Network Design and Management 6
Dr. W Yao, Brunel University EE5302 Network Design and Management 7 Dr. W Yao, Brunel University EE5302 Network Design and Management 8
History ns Components
Began as REAL in 1989 ns: the simulator itself
ns by Floyd and McCanne at LBL nam: the Network Animator
ns-2 by McCanne and the VINT project (LBL, PARC, UCB, visualize ns (or other) output
USC/ISI) GUI input simple ns scenarios
Currently maintained at USC/ISI, with input from Floyd et pre-processing:
al. traffic and topology generators
post-processing:
simple trace analysis, often in Awk, Perl, or Tcl
Dr. W Yao, Brunel University EE5302 Network Design and Management 9 Dr. W Yao, Brunel University EE5302 Network Design and Management 10
Dr. W Yao, Brunel University EE5302 Network Design and Management 11 Dr. W Yao, Brunel University EE5302 Network Design and Management 12
Discrete Event Examples Installation and Documentation
http://www.isi.edu/nsnam/ns/
download ns-allinone
includes Tcl, OTcl, TclCL, ns, nam, etc.
mailing list: ns-users@isi.edu
documentation (see url above)
Marc Gries tutorial
ns manual
Dr. W Yao, Brunel University EE5302 Network Design and Management 13 Dr. W Yao, Brunel University EE5302 Network Design and Management 14
Dr. W Yao, Brunel University EE5302 Network Design and Management 15 Dr. W Yao, Brunel University EE5302 Network Design and Management 16
Computing Routes Traffic
Unicast simple two layers: transport and application
$ns rtproto <type> transports:
<type>: Static, Session, DV, cost, multi-path TCP, UDP, etc.
Multicast applications: (agents)
$ns multicast ftp, telnet, etc.
right after [new Simulator]
Dr. W Yao, Brunel University EE5302 Network Design and Management 17 Dr. W Yao, Brunel University EE5302 Network Design and Management 18
Dr. W Yao, Brunel University EE5302 Network Design and Management 19 Dr. W Yao, Brunel University EE5302 Network Design and Management 20
Creating Traffic: On Top of TCP Creating Traffic: On Top of UDP
FTP CBR
set ftp [new Application/FTP] set src [new Application/Traffic/CBR]
$ftp attach-agent $tsrc Exponential or Pareto on-off
$ns at <time> "$ftp start" set src [new Application/Traffic/Exponential]
Telnet set set src [new Application/Traffic/Pareto]
telnet [new Application/Telnet]
$telnet attach-agent $tsrc
Dr. W Yao, Brunel University EE5302 Network Design and Management 21 Dr. W Yao, Brunel University EE5302 Network Design and Management 22
Dr. W Yao, Brunel University EE5302 Network Design and Management 23 Dr. W Yao, Brunel University EE5302 Network Design and Management 24