SlideShare a Scribd company logo
Network Simulator
using inetmanet for OMNeT++ 4.2.2
AODV as an Ad-Hoc Routing Protocol
November 14, 2012

        Ahmed A. Nour, Ahmed ElSaher, Ehab ElShafei, Tarek Mohamed

        Nile University – CIT623 – Security in Wireless Ad-Hoc Networks
Introduction to OMNeT++ 4.2.2 (1/3)
› OMNeT++ is a discrete event simulation environment:
   – Extensible and Modular, Component-based C++ simulation library and
     framework, Primarily for building network simulators
   – Source code publicly available
   – Free for academic use




Based on documentation from www.omnetpp.org



                                                                          2/20
Introduction to OMNeT++ 4.2.2 (2/3)
› Components
   – Simulation kernel library
   – Compiler for the NED topology description language
   – OMNeT++ IDE based on the Eclipse platform
   – GUI for simulation execution, links into simulation executable (Tkenv)
   – Command-line user interface for simulation execution (Cmdenv)
   – Utilities (makefile creation tool, etc.)
   – Documentation, sample simulations, etc.


Based on documentation from www.omnetpp.org



                                                                              3/20
Introduction to OMNeT++ 4.2.2 (3/3)
› OMNeT++ does not provide any components specifically for
  network simulations
› various simulation models and frameworks such as
  INET/INETMANET, MiXiM, or Castalia - developed completely
  independent of OMNeT++ - provide support for:
  – computer network simulations
  – queuing network simulations
  – system architecture simulations




                                                              4/20
Using Omnet++ in Simulating Ad-Hoc Network
Using Omnet++ in Simulating Ad-Hoc Network
Build OMNeT++ Project (1/2)
› Download inetmanet https://github.com/aarizaq/inetmanet-2.0
  - needed for the Ad-Hoc networks
› Import projects to OmNetpp
  – Create "projects" folder under "c:omnetpp"
  – Extract the downloaded files to the created folder using winrar
  – Import the projects using [File -> Import -> General -> Exist projects into
    workspace]
  – Build the projects using [Project -> Build all]
  – try to run samples projects - under "examples" folder - to be sure that
    previous steps are done


                                                                             7/20
Build OMNeT++ Project (2/2)
› Create new Project
  – choose inetmanet as a reference in the new project properties
  – be sure that inetmanet project is opened
› Create new empty network description file (.ned)
  – in [Design] mode add [network]
  – if we're going to use regular device add it to the network
  – to create a new device based on existing - to add extra functions - one
    add another ned file, in design mode add compound module
› Create an initialization file (.ini)
  – use Wizard of Adhoc Mobility wireless network
  – edit the parameters
                                                                              8/20
AODV Network Simulator (1/4)

› We will generate an Ad-Hoc Network contains variable number
  of hosts (100,150,250,350,450,500) host .
› In all Scenarios, node number 0 will send packages to the fixed
  node
› We will measure the End-To-End Delay for first 700 packet
  arrives to the fixed host
› The source and destination at the same for all scenarios




                                                                9/20
AODV Network Simulator (2/4)
› Network Description file (ned)
  – Add reference to network components
    › import inet.nodes.inet.AdhocHost;
    › import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator;
    › import inet.world.radio.ChannelControl;
  – Network Parameters
    › int numHosts; // in our presentation will be (100,150,250,350,450,500)
    › int numFixHosts;//in our presenatation will be 1
    › connections allowunconnected:
  – components Parameters (submodules)
    ›   fixhost[numFixHosts]: AdhocHost
    ›   host[numHosts]: AdhocHost
    ›   channelControl: ChannelControl
    ›   configurator: IPv4NetworkConfigurator
        – interface hosts='*' address='145.236.x.x' netmask='255.255.0.0'

                                                                            10/20
AODV Network Simulator (3/4)
› Initialization file (ini)
› [General]
      › network = test3
      › description = "Aodv Simple test“
      › **.routingProtocol = "AODVUU“

     › *.numFixHosts = 1
     › *.numHosts = 3
     › **.arp.globalARP = true




                                           11/20
250 Node
                                                           350 Node
                                                                                 500 Node




                                  100 Node
                                                                      450 Node
        704
        691
        678
        665
        652
        639
        626
        613
        600
        587
        574
        561
        548
        535
        522
        509
        496
        483
        470
        457
        444
        431
        418
                                                                                                                                                Test & Conclusion (1/3)




        405
        392
        379
        366
        353
        340
        327
        314
        301
        288
        275
        262
                                                                                                                   Total Delay for 700 packet




        249
        236
        223
        210
        197
        184
        171
        158
        145
        132
        119
        106
         93
         80
         67
         54
         41
         28
         15
          2
              0
                                                                                            0.01




                  0.002
                          0.004
                                             0.006
                                                                      0.008
                                                                                                   0.012
                                                                                                           0.014




12/20
Average Delay per Packet
        691
        676
        661
        646
        631
        616
        601
        586
        571
        556
        541
        526
        511
        496
        481
                                                                                                                           Test & Conclusion (2/3)




        466
        451
        436
        421
        406
        391
        376
        361
        346
        331
        316
        301
        286
                                                                                                Average Delay per Packet




        271
        256
        241
        226
        211
        196
        181
        166
        151
        136
        121
        106
         91
         76
         61
         46
         31
         16
          1
              0
                           0.001
                                                                       0.002
                                                                                        0.003




                  0.0005
                                                              0.0015
                                                                               0.0025




13/20
Test & Conclusion (3/3)
                       Average Delay Per Senario
                                                               0.0018


                                                               0.0016


                                                               0.0014


                                                               0.0012


                                                               0.001

 Average Delay
                                                               0.0008


                                                               0.0006


                                                               0.0004


                                                               0.0002


                                                               0
                 500    450          350           250   100



                                                               14/20

More Related Content

PPTX
Unified MPLS
Cisco Service Provider
 
PPTX
Enkripsi
ahyarsigit
 
PDF
Scalable Service-Oriented Middleware over IP
Dai Yang
 
PPTX
Igmp presentation
SamreenAkhtar8
 
PPTX
Advance Signalling System-Rajbansh
Rom!el Rajbansh
 
PPTX
Summer training from Indian Railway ppt (2)
Kumud Khandelwal
 
PDF
ADVA ALM: Advanced Link Monitoring Technology for Ultimate Fiber Assurance
ADVA
 
Enkripsi
ahyarsigit
 
Scalable Service-Oriented Middleware over IP
Dai Yang
 
Igmp presentation
SamreenAkhtar8
 
Advance Signalling System-Rajbansh
Rom!el Rajbansh
 
Summer training from Indian Railway ppt (2)
Kumud Khandelwal
 
ADVA ALM: Advanced Link Monitoring Technology for Ultimate Fiber Assurance
ADVA
 

What's hot (20)

PDF
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
Ameen Wayok
 
PPT
CCNA SUMMER TRAINNING PPT
Nishant Goel
 
PPT
Chap 10 igmp
Noctorous Jamal
 
PPTX
BGP (Border Gateway Protocol)
NetProtocol Xpert
 
PPTX
Layer 2 switching
NetProtocol Xpert
 
PDF
LPWAN technology overview
Jisc
 
PDF
Design and Implementation of Boolean Functions using Multiplexer and also usi...
IRJET Journal
 
PPTX
DWDM & Packet Optical Fundamentals by Dion Leung [APRICOT 2015]
APNIC
 
PDF
Digital ethiopia iad 2018 addis ababa ethiopia
Myles Freedman
 
PDF
E-commerce unit 1.pdf
RohitKumar136973
 
PPTX
Information Systems 371 -The Internet of Things Overview
Nicholas Davis
 
PPTX
traffic light control using 4017 ic counter & timer 555
Naveen Rao
 
PDF
MPLS-based Metro Ethernet Networks
APNIC
 
PPTX
Fiber optic used in modern trains
Mohammad Zakriya
 
PPTX
Ethernet technology
Josekutty James
 
PPTX
EMEA Airheads- Aruba Central with Instant AP
Aruba, a Hewlett Packard Enterprise company
 
PPT
CAN- controlled area network
Pantech ProLabs India Pvt Ltd
 
PPTX
Komdat jarkom tkj
muzafir
 
PDF
CCNA Lab 1-Configuring a Switch Part I
Amir Jafari
 
CISCO Virtual Private LAN Service (VPLS) Technical Deployment Overview
Ameen Wayok
 
CCNA SUMMER TRAINNING PPT
Nishant Goel
 
Chap 10 igmp
Noctorous Jamal
 
BGP (Border Gateway Protocol)
NetProtocol Xpert
 
Layer 2 switching
NetProtocol Xpert
 
LPWAN technology overview
Jisc
 
Design and Implementation of Boolean Functions using Multiplexer and also usi...
IRJET Journal
 
DWDM & Packet Optical Fundamentals by Dion Leung [APRICOT 2015]
APNIC
 
Digital ethiopia iad 2018 addis ababa ethiopia
Myles Freedman
 
E-commerce unit 1.pdf
RohitKumar136973
 
Information Systems 371 -The Internet of Things Overview
Nicholas Davis
 
traffic light control using 4017 ic counter & timer 555
Naveen Rao
 
MPLS-based Metro Ethernet Networks
APNIC
 
Fiber optic used in modern trains
Mohammad Zakriya
 
Ethernet technology
Josekutty James
 
EMEA Airheads- Aruba Central with Instant AP
Aruba, a Hewlett Packard Enterprise company
 
CAN- controlled area network
Pantech ProLabs India Pvt Ltd
 
Komdat jarkom tkj
muzafir
 
CCNA Lab 1-Configuring a Switch Part I
Amir Jafari
 
Ad

Similar to Using Omnet++ in Simulating Ad-Hoc Network (20)

PDF
journal publishing, how to publish research paper, Call For research paper, i...
IJERD Editor
 
PDF
dokumen (2).pdf..............................
mammadovilkin261
 
PDF
Ip Networking Over Satelite Course Sampler
Jim Jenkins
 
PDF
Green Telecom & IT Workshop: Ee routing and networking thierry klein
BellLabs
 
PDF
QCON London 2013
darach
 
PDF
CCNxCon2012: Session 5: CCNx in Every Sensor
PARC, a Xerox company
 
PPT
Future of mobile communications
mabuga_a
 
PDF
EFL Munich - February 2013 - "Conversational Big Data with Erlang"
darach
 
PDF
Ipaddressingandsubnettingworkbookv1 2
isc2008
 
PDF
Managing the Mobile Device Wave
Cisco Canada
 
PPT
Chapter03
Somrak Rungwanlapa
 
PDF
Tech mesh london 2012
darach
 
PDF
Student subnetworkbook
Jorge Arroyo
 
PDF
Student sub network book
Jonathan
 
PDF
La Sperimentazione White Spaces in Piemonte Applicazioni per Reti Veicolari
CSP Scarl
 
PDF
Understanding CleanAir Technology to improve enterprise WLAN spectrum management
Cisco Mobility
 
PDF
Comparison between pico and wifi ap
Yuvi Syamsiana
 
PPT
A Sample Of My Work
geoffpond
 
PPT
Tcp ip
Akshay Nagpurkar
 
PDF
OpenThink Labs Workshop : CCNA BootCamp
Wildan Maulana
 
journal publishing, how to publish research paper, Call For research paper, i...
IJERD Editor
 
dokumen (2).pdf..............................
mammadovilkin261
 
Ip Networking Over Satelite Course Sampler
Jim Jenkins
 
Green Telecom & IT Workshop: Ee routing and networking thierry klein
BellLabs
 
QCON London 2013
darach
 
CCNxCon2012: Session 5: CCNx in Every Sensor
PARC, a Xerox company
 
Future of mobile communications
mabuga_a
 
EFL Munich - February 2013 - "Conversational Big Data with Erlang"
darach
 
Ipaddressingandsubnettingworkbookv1 2
isc2008
 
Managing the Mobile Device Wave
Cisco Canada
 
Tech mesh london 2012
darach
 
Student subnetworkbook
Jorge Arroyo
 
Student sub network book
Jonathan
 
La Sperimentazione White Spaces in Piemonte Applicazioni per Reti Veicolari
CSP Scarl
 
Understanding CleanAir Technology to improve enterprise WLAN spectrum management
Cisco Mobility
 
Comparison between pico and wifi ap
Yuvi Syamsiana
 
A Sample Of My Work
geoffpond
 
OpenThink Labs Workshop : CCNA BootCamp
Wildan Maulana
 
Ad

Recently uploaded (20)

PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
 
CDH. pptx
AneetaSharma15
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
HEALTH CARE DELIVERY SYSTEM - UNIT 2 - GNM 3RD YEAR.pptx
Priyanshu Anand
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 

Using Omnet++ in Simulating Ad-Hoc Network

  • 1. Network Simulator using inetmanet for OMNeT++ 4.2.2 AODV as an Ad-Hoc Routing Protocol November 14, 2012 Ahmed A. Nour, Ahmed ElSaher, Ehab ElShafei, Tarek Mohamed Nile University – CIT623 – Security in Wireless Ad-Hoc Networks
  • 2. Introduction to OMNeT++ 4.2.2 (1/3) › OMNeT++ is a discrete event simulation environment: – Extensible and Modular, Component-based C++ simulation library and framework, Primarily for building network simulators – Source code publicly available – Free for academic use Based on documentation from www.omnetpp.org 2/20
  • 3. Introduction to OMNeT++ 4.2.2 (2/3) › Components – Simulation kernel library – Compiler for the NED topology description language – OMNeT++ IDE based on the Eclipse platform – GUI for simulation execution, links into simulation executable (Tkenv) – Command-line user interface for simulation execution (Cmdenv) – Utilities (makefile creation tool, etc.) – Documentation, sample simulations, etc. Based on documentation from www.omnetpp.org 3/20
  • 4. Introduction to OMNeT++ 4.2.2 (3/3) › OMNeT++ does not provide any components specifically for network simulations › various simulation models and frameworks such as INET/INETMANET, MiXiM, or Castalia - developed completely independent of OMNeT++ - provide support for: – computer network simulations – queuing network simulations – system architecture simulations 4/20
  • 7. Build OMNeT++ Project (1/2) › Download inetmanet https://github.com/aarizaq/inetmanet-2.0 - needed for the Ad-Hoc networks › Import projects to OmNetpp – Create "projects" folder under "c:omnetpp" – Extract the downloaded files to the created folder using winrar – Import the projects using [File -> Import -> General -> Exist projects into workspace] – Build the projects using [Project -> Build all] – try to run samples projects - under "examples" folder - to be sure that previous steps are done 7/20
  • 8. Build OMNeT++ Project (2/2) › Create new Project – choose inetmanet as a reference in the new project properties – be sure that inetmanet project is opened › Create new empty network description file (.ned) – in [Design] mode add [network] – if we're going to use regular device add it to the network – to create a new device based on existing - to add extra functions - one add another ned file, in design mode add compound module › Create an initialization file (.ini) – use Wizard of Adhoc Mobility wireless network – edit the parameters 8/20
  • 9. AODV Network Simulator (1/4) › We will generate an Ad-Hoc Network contains variable number of hosts (100,150,250,350,450,500) host . › In all Scenarios, node number 0 will send packages to the fixed node › We will measure the End-To-End Delay for first 700 packet arrives to the fixed host › The source and destination at the same for all scenarios 9/20
  • 10. AODV Network Simulator (2/4) › Network Description file (ned) – Add reference to network components › import inet.nodes.inet.AdhocHost; › import inet.networklayer.autorouting.ipv4.IPv4NetworkConfigurator; › import inet.world.radio.ChannelControl; – Network Parameters › int numHosts; // in our presentation will be (100,150,250,350,450,500) › int numFixHosts;//in our presenatation will be 1 › connections allowunconnected: – components Parameters (submodules) › fixhost[numFixHosts]: AdhocHost › host[numHosts]: AdhocHost › channelControl: ChannelControl › configurator: IPv4NetworkConfigurator – interface hosts='*' address='145.236.x.x' netmask='255.255.0.0' 10/20
  • 11. AODV Network Simulator (3/4) › Initialization file (ini) › [General] › network = test3 › description = "Aodv Simple test“ › **.routingProtocol = "AODVUU“ › *.numFixHosts = 1 › *.numHosts = 3 › **.arp.globalARP = true 11/20
  • 12. 250 Node 350 Node 500 Node 100 Node 450 Node 704 691 678 665 652 639 626 613 600 587 574 561 548 535 522 509 496 483 470 457 444 431 418 Test & Conclusion (1/3) 405 392 379 366 353 340 327 314 301 288 275 262 Total Delay for 700 packet 249 236 223 210 197 184 171 158 145 132 119 106 93 80 67 54 41 28 15 2 0 0.01 0.002 0.004 0.006 0.008 0.012 0.014 12/20
  • 13. Average Delay per Packet 691 676 661 646 631 616 601 586 571 556 541 526 511 496 481 Test & Conclusion (2/3) 466 451 436 421 406 391 376 361 346 331 316 301 286 Average Delay per Packet 271 256 241 226 211 196 181 166 151 136 121 106 91 76 61 46 31 16 1 0 0.001 0.002 0.003 0.0005 0.0015 0.0025 13/20
  • 14. Test & Conclusion (3/3) Average Delay Per Senario 0.0018 0.0016 0.0014 0.0012 0.001 Average Delay 0.0008 0.0006 0.0004 0.0002 0 500 450 350 250 100 14/20