110 likes | 123 Views
This lab aims to understand Mobile Ad Hoc Networks (MANETs) by designing a network with over 20 Ad Hoc nodes running a UDP application. The simulation will explore routing protocols and mobility options using OMNeT++.
E N D
Objectives “MANET“ with more than 20 Ad Hoc nodes running UDP application.
Introduction “MANET” - Mobile Ad Hoc Network is a continuously self-configuring, infrastructure-less network of mobile devices connected without wires. Each device is free to move independently in any direction, and will therefore change its links to other devices frequently. Each device must forward traffic unrelated to its own use, and therefore be a router.
Introduction “UDP” - User Datagram Protocol is one of the core members of the Internet protocol suite. Uses a simple connectionless transmission model with a minimum of protocol mechanism. No handshaking dialogues
Getting Started Open OMNeT++ IDE File -> New -> OMNeT++ Project Project name : YOUR_NAME -> Click Finish Note: Make sure “Use default location” and “Support C++ Development” are Checked
Project Reference to INET Right Click on YOUR_NAME Project Folder -> Build Configurations -> Click on Project Features.. Click on Project Reference Check inet and click ok Go to YOUR_NAME Folder -> double click on “package.ned” file
Network Design - Code • Click on the Source tab and type the below shown configuration • Save Package.ned and build the project
Initialization / Configuration File • Click on YOUR_NAME folder • File -> New -> Initialization File (ini) • File name: omnetpp.ini -> Next -> Choose “Empty Ini File” -> Finish • In omnetpp.ini file write
Running the Simulation • Save the omnetpp.ini file • Right click on omnet.ini file -> Run as -> Omnet++ Simulation • Click the Run icon to start the simulation • Check the results
TASK (Write a Detailed Report) • Design an AdHoc Network with Five AdHoc hosts with different person names (ronaldo, messi, beckham, maradona, rooney) • Hosts much run TCP Session App • Use Stationary Mobility for maradona • Use Random WP Mobility other hosts • Speed = 5mps to 10mps • Use “DYMO” or “Batman” routing protocol