INET Framework Manual –
Total Page:16
File Type:pdf, Size:1020Kb
INET Framework for OMNeT++ Manual Generated on January 22, 2016 INET Framework Manual – Contents 1 Introduction 1 1.1 What is INET Framework . .1 1.2 About the documentation . .1 2 Using the INET Framework 3 2.1 Installation . .3 2.2 INET as an OMNeT++-based simulation framework . .3 2.3 Creating and Running Simulations . .4 2.4 Setting up wired network simulations . .5 2.5 Setting up wireless network simulations . .5 2.6 Specifying network addresses in module parameters . .5 3 Node Architecture 7 3.1 Overview . .7 3.2 Addresses . .9 3.3 The Interface Table . .9 3.3.1 Interface Entries . .9 3.3.2 Interface Registration . 10 3.4 Communication between protocol layers . 11 3.5 NED Conventions . 12 3.5.1 The @node Property . 12 3.5.2 The @labels Module Property . 12 3.5.3 The @labels Gate Property . 12 4 Point-to-Point Links 15 4.1 Overview . 15 4.2 PPP frames . 15 4.3 PPP module . 16 4.4 PPPInterface module . 17 5 The Ethernet Model 19 iii 5.1 Overview . 19 5.1.1 Implemented Standards . 19 5.2 Physical layer . 20 5.2.1 EtherBus . 20 5.2.2 EtherHub . 20 5.3 MAC layer . 21 5.3.1 EtherMACFullDuplex . 23 5.3.2 EtherMAC . 24 5.4 Switches . 25 5.4.1 MAC relay units . 26 5.4.2 EtherSwitch . 27 5.5 Link Layer Control . 27 5.5.1 Frame types . 27 5.5.2 EtherEncap . 28 5.5.3 EtherLLC . 28 5.5.4 EthernetInterface module . 29 5.6 Ethernet applications . 30 5.7 Ethernet networks . 30 5.7.1 LargeNet model . 30 6 The Physical Environment 33 6.1 Overview . 33 6.2 The Physical Environment Model . 33 6.3 Global Physical Properties . 33 6.4 Physical Objects . 34 6.5 Visualization . 34 6.6 Specifying Physical Objects . 35 6.7 Data Structure . 35 7 The Power Model 37 7.1 Overview . 37 7.2 Energy Consumer Models . 37 7.3 Energy Generator Models . 38 7.4 Energy Storage Models . 38 8 The Physical Layer 39 8.1 Overview . 39 8.1.1 Customizability . 39 8.1.2 Extensibility . 40 8.1.3 Scalable Level of Detail . 40 8.1.4 Exploiting Parallel Hardware . 41 8.2 The Radio Model . 41 8.2.1 Antenna Models . 42 8.2.2 Transmitter Models . 43 8.2.3 Receiver Models . 43 8.2.4 Error Models . 44 8.2.5 Energy Consumer Models . 44 8.3 The Medium Model . 44 8.3.1 Propagation Models . 45 8.3.2 Path Loss Models . 45 8.3.3 Obstacle Loss Models . 46 8.3.4 Background Noise Models . 46 8.3.5 Neighbor Cache Models . 47 8.4 Signal Representation . 47 8.5 Signal Processing . 49 8.6 Visualization . 51 9 The 802.11 Model 53 9.1 Overview . 53 9.1.1 Limitations . 54 10 Node Mobility 55 10.1 Overview . 55 10.2 Mobility in INET . 56 10.2.1 MobilityBase class . 56 10.2.2 MovingMobilityBase . 57 10.2.3 LineSegmentsMobilityBase . 57 10.3 Implemented models . 57 10.3.1 Deterministic movements . 57 10.3.2 Random movements . 58 10.3.3 Replaying trace files . 60 10.4 Mobility scripts . 61 11 IPv4 65 11.1 Overview . 65 11.1.1 INET modules . 65 11.2 The IPv4 Module . 66 11.2.1 IP packets . 66 11.2.2 Interface with higher layer . 68 11.2.3 Routing, and interfacing with lower layers . 70 11.2.4 Parameters . 72 11.2.5 Statistics . 72 11.3 The IPv4RoutingTable module . 72 11.4 The ICMP module . 74 11.5 The ARP module . 75 11.6 The IGMP module . ..