Presentation is loading. Please wait.

Presentation is loading. Please wait.

Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB (http://csn.skku.ac.kr) 안혜환

Similar presentations


Presentation on theme: "Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB (http://csn.skku.ac.kr) 안혜환"— Presentation transcript:

1 Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB (http://csn.skku.ac.kr) 안혜환 hyehwan@ece.skku.ac.kr

2 Network Simulator 2 Contents  User’s view of NS-2  What are Tcl, Otcl, Tclcl, NS ?  Tcl Function Implementation  Otcl Function Implementation  Very Important Tcl “ns-lib.tcl” Otcl Library  Add New Uniform Distribution Agent  Add New Uniform Distribution Agent (WinCam)  Binding Variable  Add New Application  Implementation :33% Packets are not sent  Drop and Not Drop Packet (WinCam)  Sensor Network Simulation  Topology Generator “setdest” (WinCam)  Experiment (WinCam)  Performance Evaluation  Sink and Source Node Transmission Frequency  Agent Level and Entire Network Transmission Frequency  Reference

3 Network Simulator 2 User’s view of NS-2 Network Topology Event It can be available by using script such as “awk” OTcl C++

4 Network Simulator 2 What are Tcl, Otcl, Tclcl, NS ? Linkage Like “C++” Like “C” Ns is Not Simulator but Object set ns [new Simulator] common/simulator.cc C++ Object

5 Network Simulator 2 Tcl Function Implementation

6 Network Simulator 2 Otcl Function Implementation

7 Network Simulator 2 Very Important Tcl “ns-lib.tcl” Otcl Library set ns [ new Simulator] ns-allinone-xxx/ ns-2xx/ Makefile TCL_LIB source ns-autoconf.tcl source ns-address.tcl source ns-node.tcl source ns-rtmodule.tcl source ns-hiernode.tcl source ns-mobilenode.tcl source ns-bsnode.tcl source ns-link.tcl …….....

8 Network Simulator 2 Add New Uniform Distribution Agent 1/2

9 Network Simulator 2 Add New Uniform Distribution Agent 2/2  Modify : “ns-allinone2.xx/ns-2.xx/Makefile  OBJ_CC= common/ex-uniform.o  Re Compile : make clean, make depend, make

10 Network Simulator 2 Add New Uniform Distribution Agent (WinCam)  Result

11 Network Simulator 2 Variable Binding

12 Network Simulator 2 Add New Application  New Data Structure  New Application C++  New Application Header  New Agent C++  New Agent Header  Modify packet.h  Modify ns-packet.tcl  Modify agent.h  Modify app.h  Modify /ns-allinone-2.xx/ns-2.xx/Makefile  Set Default Values in ns-default.tcl  NS-2 Recompile  Implementation : 33% Uniform Distribution Send Loss Drop Modeling

13 Network Simulator 2 Implementation :33% Packets are not sent

14 Network Simulator 2 Drop and Not Drop Packet (WinCam) Drop PacketNot Drop Packet

15 Network Simulator 2 Sensor Network Simulator  Topology Generator  Simulation - Directed Diffusion - Flood  Experiment  Performance Evaluation

16 Network Simulator 2 Topology Generator “setdest” (WinCam)

17 Network Simulator 2 Experiment (WinCam)  Sensor network 1000 nodes with Flooding  Sensor network 1000 nodes with Directed Diffusion

18 Network Simulator 2 Performance Evaluation  Sink and Source Node Transmission Frequency  Agent Level and Entire Network Transmission Frequency

19 Network Simulator 2 Sink and Source Node Transmission Frequency

20 Network Simulator 2 Agent Level and Entire Network Transmission Frequency

21 Network Simulator 2 Reference  Ns manual  NS by example

22 Network Simulator 2 Thank You Q & A


Download ppt "Network Simulator 2 Network Simulator 2 Practice SungKyunKwan-Univ Mobile Computing LAB (http://csn.skku.ac.kr) 안혜환"

Similar presentations


Ads by Google