Presentation is loading. Please wait.

Presentation is loading. Please wait.

NS–2 (Network Simulator)

Similar presentations


Presentation on theme: "NS–2 (Network Simulator)"— Presentation transcript:

1 NS–2 (Network Simulator)
RTLab Woo Jung Kim

2 Contents 1. NS-2 History 2. NS-2 Install to PC 3. NS-2 Elements
4. NS-2 Basic concept 5. NS-2 Directories 6. Tcl example 7. Trace file example 8. C++, Otcl Linkage 9. NAM & Xgraph 10. Further work

3 1. NS-2 History Columbia University에서 NEST 개발
UC Berkeley에서 1988년 REAL 개발 1989년 LBNL(Lawrence Berkeley National Laboratory)에 서 NS-1(Network Simulator) 개발 MIT에서 Otcl을 개발 NS-1과 Otcl를 바탕으로 지금의 NS-2가 탄생 New Version NS-2.33

4 2. NS-2 install to PC http://www.isi.edu/nsnam/ns/ns-build.html 다운로드
다운로드 Windows, Unix, Linux, Mac OS 동작 가능 ns-allinone-2.XX.tar.gz 압축을 품(단, Windows기반에서는 Cygwin 디렉토리 내부에서 풀어야 됨) ns-allinone-2.XX 디렉토리에서 ./install 하여 설치

5 3. NS-2 elements Discrete Event Scheduler Event ns-2.XX Scheduler
GUI Discrete Event Scheduler NAM Event Scheduler ns-2.XX C++ and otcl linkage (Interpreter) tclcl awk Network Component Otcl1.XX tcl8.X Xgraph Object-Oriented support

6 4. NS-2 Basic Concept (1/2)

7 4. NS-2 Basic Concept (2/2) Scheduling Otcl (내부동작) Event Otcl (외부동작)

8 5. NS-2 Directories 1. 시뮬레이션 구성 2. C++ 여러 객체 구성 해서 새로운 객체를 생성(부록 1)

9 6. Tcl example

10 7. Trace file example event time from node to pkt type size flags fid
src Addr dsr seq num id r : receive [at to_node] +: enqueue -:dequeue d : drop

11 8. C++ Otcl Linkage Otcl code MyAgent code 수행 결과

12 9. NAM & Xgraph (1/2)

13 10. Further work 1. zigbee & 802.15.4 module Source code 분석
2. Application에 맞는 Protocol 정의 3. Simulator 구현


Download ppt "NS–2 (Network Simulator)"

Similar presentations


Ads by Google