logo资料库

NS3.26模块库model library.pdf

第1页 / 共503页
第2页 / 共503页
第3页 / 共503页
第4页 / 共503页
第5页 / 共503页
第6页 / 共503页
第7页 / 共503页
第8页 / 共503页
资料共503页,剩余部分请下载后查看
Organization
Animation
NetAnim
Antenna Module
Design documentation
User Documentation
Testing Documentation
Ad Hoc On-Demand Distance Vector (AODV)
Model Description
Applications
Bridge NetDevice
BRITE Integration
Model Description
Usage
Buildings Module
Design documentation
User Documentation
Testing Documentation
References
Click Modular Router Integration
Model Description
Usage
Validation
CSMA NetDevice
Overview of the CSMA model
CSMA Channel Model
CSMA Net Device Model
Using the CsmaNetDevice
CSMA Tracing
Summary
Data Collection
Design
Data Collection Helpers
Probes
Collectors
Aggregators
Adaptors
Scope/Limitations
DSDV Routing
DSDV Routing Overview
References
DSR Routing
DSR Routing Overview
DSR Instructions
Helper
Examples
Validation
Limitations
References
Emulation Overview
Energy Framework
Model Description
Usage
File Descriptor NetDevice
Model Description
Usage
Flow Monitor
Model Description
Usage
Validation
Internet Models (IP, TCP, Routing, UDP, Internet Applications)
Internet Stack
IPv4
IPv6
Routing overview
TCP models in ns-3
Internet Applications Module Documentation
Low-Rate Wireless Personal Area Network (LR-WPAN)
Model Description
Usage
Validation
LTE Module
Design Documentation
User Documentation
Testing Documentation
Profiling Documentation
References
Wi-Fi Mesh Module Documentation
Design Documentation
User Documentation
Testing Documentation
References
MPI for Distributed Simulation
Current Implementation Details
Running Distributed Simulations
Tracing During Distributed Simulations
Mobility
Model Description
Usage
Validation
Network Module
Packets
Error Model
Node and NetDevices Overview
Sockets APIs
Simple NetDevice
Queues
Queue limits
Optimized Link State Routing (OLSR)
Model Description
Usage
Validation
OpenFlow switch support
Model Description
Usage
Validation
PointToPoint NetDevice
Overview of the PointToPoint model
Point-to-Point Channel Model
Using the PointToPointNetDevice
PointToPoint Tracing
Propagation
PropagationLossModel
PropagationDelayModel
References
Spectrum Module
Model Description
Usage
Testing
Additional Models
6LoWPAN: Transmission of IPv6 Packets over IEEE 802.15.4 Networks
Model Description
Usage
Validation
Tap NetDevice
TapBridge Model Overview
Tap Bridge Channel Model
Tap Bridge Tracing Model
Using the TapBridge
Topology Input Readers
Traffic Control Layer
Traffic Control Layer
Queue disciplines
pfifo_fast queue disc
RED queue disc
CoDel queue disc
FqCoDel queue disc
PIE queue disc
UAN Framework
Model Description
Usage
Validation
WAVE models
Model Description
Usage
Validation
Wi-Fi Module
Design Documentation
User Documentation
Testing Documentation
References
Wimax NetDevice
Scope of the model
Using the Wimax models
Wimax Attributes
Wimax Tracing
Wimax MAC model
WimaxChannel and WimaxPhy models
Channel model
Physical model
Bibliography
Index
ns-3 Model Library Release ns-3.26 ns-3 project October 04, 2016
CONTENTS 1 Organization 2 Animation 2.1 NetAnim . . . . . . . . 3 Antenna Module 3.1 Design documentation . 3.2 User Documentation . . Testing Documentation . 3.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Ad Hoc On-Demand Distance Vector (AODV) 4.1 Model Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Applications 6 Bridge NetDevice 7 BRITE Integration 7.1 Model Description . 7.2 Usage . . . . . . . . . . . . 8 Buildings Module 8.1 Design documentation . 8.2 User Documentation . . Testing Documentation . 8.3 8.4 References . . . . . . . . . . . . . . . . . . . . . . . . . 9 Click Modular Router Integration . . . . . . 9.1 Model Description . . 9.2 Usage . . 9.3 Validation . . . . . . . . . . . . . . . . . . . . 10 CSMA NetDevice . . . . . . . . . 10.1 Overview of the CSMA model . . 10.2 CSMA Channel Model . . . . 10.3 CSMA Net Device Model . . 10.4 Using the CsmaNetDevice . . . 10.5 CSMA Tracing . 10.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Data Collection 11.1 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 5 13 13 14 14 17 17 19 21 23 23 24 27 27 33 36 38 39 39 40 42 43 43 44 45 46 47 48 49 49 i
. 11.2 Data Collection Helpers . . . 11.3 Probes . . . 11.4 Collectors . . . 11.5 Aggregators . 11.6 Adaptors . . . 11.7 Scope/Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 DSDV Routing 12.1 DSDV Routing Overview . 12.2 References . . . . . . . . . 13 DSR Routing . 13.1 DSR Routing Overview . 13.2 DSR Instructions . . . . . 13.3 Helper . . . . 13.4 Examples . . . 13.5 Validation . . 13.6 Limitations . . . . . 13.7 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Emulation Overview 15 Energy Framework 15.1 Model Description . 15.2 Usage . . . . . . . . 16 File Descriptor NetDevice 16.1 Model Description . 16.2 Usage . . . . . . . . 17 Flow Monitor 17.1 Model Description . . 17.2 Usage . . 17.3 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 60 66 66 73 73 75 75 75 77 77 79 79 80 80 80 80 81 85 85 87 91 91 93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 . 99 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 18 Internet Models (IP, TCP, Routing, UDP, Internet Applications) . 18.1 Internet Stack . . . . 18.2 IPv4 . . 18.3 IPv6 . . . . 18.4 Routing overview . . 18.5 TCP models in ns-3 . 18.6 Internet Applications Module Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 . 146 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Low-Rate Wireless Personal Area Network (LR-WPAN) 147 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 155 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322 . 19.1 Model Description . . 19.2 Usage . . 19.3 Validation . . . . . . . . . . . . . . . . . . . . 20 LTE Module . 20.1 Design Documentation . . 20.2 User Documentation . . 20.3 Testing Documentation . . 20.4 Profiling Documentation . . 20.5 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii
21 Wi-Fi Mesh Module Documentation . . . . . . . . 21.1 Design Documentation . 21.2 User Documentation . . 21.3 Testing Documentation . 21.4 References . . . . . . . . . . . . . . . 325 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 22 MPI for Distributed Simulation 329 22.1 Current Implementation Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329 22.2 Running Distributed Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330 22.3 Tracing During Distributed Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333 23 Mobility 23.1 Model Description . . 23.2 Usage . . . 23.3 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341 . . . . . . . . . . . . . . 343 24 Network Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 . 24.1 Packets . 24.2 Error Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354 . 24.3 Node and NetDevices Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 24.4 Sockets APIs . . . . 24.5 Simple NetDevice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 24.6 Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364 . . 24.7 Queue limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Optimized Link State Routing (OLSR) 367 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368 25.1 Model Description . . 25.2 Usage . . 25.3 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 OpenFlow switch support 26.1 Model Description . . 26.2 Usage . . 26.3 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372 27 PointToPoint NetDevice 27.1 Overview of the PointToPoint model 27.2 Point-to-Point Channel Model . 27.3 Using the PointToPointNetDevice . 27.4 PointToPoint Tracing . . . . . . 373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374 28 Propagation 28.1 PropagationLossModel . 28.2 PropagationDelayModel . 28.3 References . . . . . . 29 Spectrum Module 29.1 Model Description . . 29.2 Usage . . 29.3 Testing . . 29.4 Additional Models . . . . . . . . . . . . . . . . . . . 377 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 . . . 387 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6LoWPAN: Transmission of IPv6 Packets over IEEE 802.15.4 Networks 30.1 Model Description . 30.2 Usage . . . . . . . . . . . . . . . . . . . . 397 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 iii
30.3 Validation . . . . . . . . . . . 31 Tap NetDevice 31.1 TapBridge Model Overview . . 31.2 Tap Bridge Channel Model . 31.3 Tap Bridge Tracing Model . . . . 31.4 Using the TapBridge . . . 32 Topology Input Readers 33 Traffic Control Layer . 33.1 Traffic Control Layer . 33.2 Queue disciplines . . 33.3 pfifo_fast queue disc . . 33.4 RED queue disc . 33.5 CoDel queue disc . . 33.6 FqCoDel queue disc . 33.7 PIE queue disc . . . . . . 34 UAN Framework 34.1 Model Description . . 34.2 Usage . . 34.3 Validation . . . . . . . . . . . 35 WAVE models 35.1 Model Description . . 35.2 Usage . . . 35.3 Validation . . . . . . . . . . 36 Wi-Fi Module . . . . . . . . . . . . . . . . . . . 36.1 Design Documentation . 36.2 User Documentation . . 36.3 Testing Documentation . 36.4 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 401 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406 407 409 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 427 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436 439 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 . 453 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479 37 Wimax NetDevice . . 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481 37.1 Scope of the model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482 37.2 Using the Wimax models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483 . . 37.3 Wimax Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484 37.4 Wimax Tracing . . . 37.5 Wimax MAC model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484 . . 37.6 WimaxChannel and WimaxPhy models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488 . 37.7 Channel model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488 37.8 Physical model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Bibliography Index iv 491 497
ns-3 Model Library, Release ns-3.26 This is the ns-3 Model Library documentation. Primary documentation for the ns-3 project is available in five forms: • ns-3 Doxygen: Documentation of the public APIs of the simulator • Tutorial, Manual, and Model Library (this document) for the latest release and development tree • ns-3 wiki This document is written in reStructuredText for Sphinx and is maintained in the doc/models directory of ns-3’s source code. CONTENTS 1
ns-3 Model Library, Release ns-3.26 2 CONTENTS
分享到:
收藏