network simulator 2. introduction open source network simulator ns uses two languages: c++ and otcl ...
TRANSCRIPT
![Page 1: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/1.jpg)
Network Simulator 2
![Page 2: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/2.jpg)
Introduction
Open source network simulator NS uses two languages: C++ and OTcl
C++ is fast to run but slower to change Kernel
OTcl runs much slower but can be changed very quickly
Simulation Model
Support Linux and Windows
![Page 3: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/3.jpg)
OTcl
Tcl introductionCross-platform, extensible, scripting language Interpreter languageEasy to use
OTcl = Object Tcl
![Page 4: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/4.jpg)
Simulation Step
1. Creating network model Node, link, etc…
2. Creating traffic model Traffic generator agent TCP/UDP agent
3. Simulation starting
4. Packet trace and gather statistics
5. Result analysis
![Page 5: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/5.jpg)
Homework 1/4
Studying to use ns2 to simulate TCP Network Network model:
Generating network model according to following graphic:
0
2
1 5
6
7
8
3 4
![Page 6: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/6.jpg)
Homework 2/4
Network model : For all link:
Duplex Bandwidth set to 10Mbps
Traffic model: Setup a FTP over TCP connection from node 8 to
node 0 Setup a CBR over UDP connection from node 3 to
node 6 Set the starting time by yourself
![Page 7: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/7.jpg)
Homework 3/4
Simulation: Changing the CBR data rate to 1, 4, 8Mbps Packet size 500 Run simulation Simulation time 100s
Packet trace and gather statistics End to end delay Throughput Deliver rate Graphic
![Page 8: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/8.jpg)
Homework 4/4
Result analysis Explain the relationship between
Data rate Time End to end delay Throughput Deliver rate
Explain the reason why packet loss
Deadline : 11/25
![Page 9: Network Simulator 2. Introduction Open source network simulator NS uses two languages: C++ and OTcl C++ is fast to run but slower to change Kernel](https://reader036.vdocuments.mx/reader036/viewer/2022083010/5697bfa21a28abf838c9641e/html5/thumbnails/9.jpg)
Conference
http://www.isi.edu/nsnam/ns/ http://140.116.72.80/~smallko/ns2/ns2.htm http://nile.wpi.edu/NS/ http://www.isi.edu/nsnam/ns/tutorial/ http://www.isi.edu/nsnam/ns/ns-document
ation.html