NS2 Training 4152013 Introduction NS2 Network Simulator Generation
- Slides: 15
NS-2 Training 4/15/2013
Introduction NS-2: Network Simulator Generation 2 Latest Release: 2. 35 / Nov. 4, 2011 http: //sourceforge. net/projects/nsnam/files/allinone/ns-allinone 2. 35/ Other Simulators OPNET Qual. Net ns-3
Installation (1/2) Cygwin Linux-like environment for Windows Download http: //140. 116. 164. 80/~smallko/ns 2/cygwin. rar http: //www. cygwin. com/ NS-2 The latest version: ns-2. 35 ns-allinone-2. 28/2. 29 Download http: //sourceforge. net/projects/nsnam/files/ http: //140. 116. 164. 80/~smallko/ns 2/ns-allinone-2. 28. rar
Installation (2/2) Nam: Network Animator (nam-1. 15 released Nov 4 2011) animation tool for viewing network simulation traces and real world packet traces http: //sourceforge. net/projects/nsnam/files/nam-1/ http: //www. isi. edu/nsnam/index. html
TCL Codes TCL (Tool Command Language) • Initialize the packet format • Create a scheduler • Select the default address format • /ns-2. xx/tcl/lib/ns-lib. tcl pronounced as "tickle" Basic terms Create a new simulator Definitions for nam Open a trace file Network behaviors set ns [new Simulator] set nf [open out. nam w] $ns namtrace-all $nf set nd [open out. tr w] $ns trace-all $nd Nodes, links, queue size, node position, traffic types, simulation times, etc.
Output data NAM Trace • appeared as "------" since no flag is set • Explicit Congestion Notification
Analysis AWK Alfred Aho, Peter Weinberger, and Brian Kernighan programming language that is designed for processing text-based data pronounced as the same as the name of the bird, “auk”
Run AWK file Commands awk -f file 1. awk file 2. tr > out. txt file 1. awk file 2. tr a command file a primary input file out. txt an output file
AWK Form /pattern/ { action } Pattern is typically an expression Action is a series of commands In NS-2 Simulator BEGIN { action } END { action }
AWK You can measure Delay, Jitter, Packet loss, and Throughput Example
Rests of this project Wi. MAX module http: //140. 116. 164. 80/~smallko/ns 2/ns-allinone 2. 29_wimax. rar 長庚大學 Install cygwin first and then download this file. Decompress it. After that, run “. /configure; make clean; make depend; make” ns-allinone-2. 29_wimaxns-2. 29mac802_16traffic
Rests of this project MPEG modify the file packet. h in the common folder modify the file agent. cc in the common folder create a folder under ns-2. 27 and put added files in it modify the file tcl/lib/ns-default. tcl modify the Makefile recomplie NS 2 RTP add a folder into the ns directory modify ns-default. tcl modify the Makefile recomplie NS 2
Rests of this project Correctly Decodable Frames in a GOP A. Ziviani, B. E. Wolnger, J. F. Rezende, O. C. M. B. Duarte, and S. Fdida, “Joint Adoption of Qo. S Schemes for MPEG Streams, ” Multimedia Tools and Applications, vol. 26 no. 1, pp. 59 -80, May 2005. 計算機網路實驗—使用NS 2模擬多媒體通訊與無線網路, 柯志亨團隊
Resources Gunplot Plot the analyzed results of awk Web site NS 2 使用說明手冊 MPEG http: //hpds. ee. ncku. edu. tw/~smallko/ns 2. htm http: //hpds. ee. ncku. edu. tw/~smallko/ns 2/Evalvid_in_NS 2. htm RTP http: //140. 116. . 80/~yufrank/YCY/myevalvid_rtp. htm http: //hpds. ee. ncku. edu. tw/~smallko/ns 2/measure. htm http: //searun. iteye. com/blog/362415
- Ns2 simulator tutorial
- Network simulator 2 tutorial
- Ns2 simulator tutorial
- Setdest in ns2
- Awkweb
- Awk ns2
- Ns2 tutorial
- Second generation vs first generation antipsychotics
- You are good and your mercy endureth forever
- Quantum network simulator
- Network simulator 2
- Network slicing onap
- Network slicing simulator
- Ns3 network simulator
- Graphical network simulator-3
- Network simulator 2 download