NS2 Chih-Heng Ke (柯志亨) firstname.lastname@example.org MSN: email@example.com
Outline1 • NS2 Installation • cygwin installation • ns2.26, ns2.27, ns2.28, ns2.29 • ns-2 802.11 support (ET/SNR/BER-based PHY models, 802.11a multirate, 802.11e HCCA and EDCA) • myNS2 • How to apply the patch • New module insertion • Recompilation • Tools • nsbench • NS2 Scenarios Generator
Outline2 • Examples • diffserv network • ad hoc network • wired-cmu-wireless • Mobile IP • How to measure the loss rate, delay, jitter, throughput? • Parse the trace file • modify the C++ code • How to present the simulation result? • gnuplot (xgraph, or Excel) • confidence interval • How to run the simulation in a batch mode?
Outline3 • How CBR works? • How TrafficTrace works? • How UDP works? • How DCF works ? • Trace the C++ code in NS2 • Multicast • Unicast • Propagation Model • Transmission range • Hidden Terminal Problem
Outline4 • How to dynamically set the link bandwidth during simulation? • How to set the different operation modes (DCF or EDCF) for different mobile nodes? • How to set the different transmission speeds to different mobile nodes? • How to get the information in different layers? • How to measure the queue length in the base station or mobile node? • How to set the communication radius in wireless nodes? • Making NS2 simulate an 802.11b link
Outline5 • wireless error model • random uniform model • GE model (burst pattern) • Others • DCF vs. EDCF • Multimedia simulation • myEvalvid (encoding from raw YUV video) • myEvalvid-NT (for publicly available video traffic traces) • Multiple Description Coding (MDC)