0% found this document useful (0 votes)
26 views17 pages

Lecture 5

Uploaded by

muteekhan20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views17 pages

Lecture 5

Uploaded by

muteekhan20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Introduction to OMNET++

We Shall Cover
 What is OMNET++?
 How to get a free copy?
 How to compile and install on windows?
 Running for the time
What is OMNET++

• Objective Modular Network testbed in C++


- Simulation Kernel
- Component-based simulation library
 Designed to create & simulate any network
Simulation Kernel

2. Processing
related to event
• Simulation Kernel terminates when:
_ No more events in event queue
1.Event at head
_ Termination condition reached popped
_ User terminates

3. New events
added to queue
Getting a free copy

• www.omnetpp.org
• Download the latest release (4.6in our case)
omnetpp-4.6-scr-window.zip
• Complete folder
-C++ compiler
-CMD Line build environment
 Download source code
Compile & Install

• Compiling and installing on window self-contained


• Enter OMNET++ folder that you unzipped
• Run the file called Mingwenv.cmd
• When terminal appears, enter the commands
./configure
make Build process produces
debug and release
omnetpp binaries

Debug is elaborate
But slow
bin
Release is optimized
Debug
And fast
Release
1. Debug Mode
• Debug mode does not optimize the binary it produces
• Relation between source code and generated instruction is more complex
• Allows breakpoints to be set accurately
• Allows programmer to step through code one line at a time
• Compiled with full symbolic debug information
2. Release mode
• Release mode enables optimizations
• Generate without any debug data
• Lots of code could be completely removed or written code
• Resulting executable may not match with written code
Select the default workplace

• A workspace is a logical collection of projects


• A workspace called p2p may contain only peer to peer applications
Overview of OMNET++

We Shall Cover
 Design to OMNET++
 Model structure
Design of OMNET++

Requirement Design features


s
Hierarchical Simulation
Large Scale Simulations
Models

Reusable components

Reduce debugging time Provide visualization

Generate input and output


Open data interface
using common s w tools

Model development and Provide IDE


Analysis to be unified
Model Structure

• Model consist of modules


• Modules communicate with message passing
• Modules are C++ files
_ Implement simulation class library
_ Run in simulation kernel
 Module types
_ Simple (active modules )
_ Compound
 Simple modules can be grouped into compound modules and so forth
 Modules communicate through gates (connections)
_ Directly between modules or through intermediaries
Network Simple
modules

Compound
modules

• No. of hierarchy levels not limited

No of components

Types of components
• Gates
_ Input output interfaces of modules
_ Allow message passing
_ Linked via connection (T prop , R data , BER)

Simple modules
Network
1. Define
Compound modules module
types

2. Instantiate
3. Network implements system model them
• Channels
_ Connection types with specific properties
_ Reusable at several places
_ Standard host talking to another standard host via an Ethernet cable
 Message
Tuple space (time stamp, arbitrary data,…..)
 Network
A compound module with no external gates

Network Simple modules


1. Define
module
Compound modules
types

2. Instantiate
3. Network implements system model them
Module Parameters
• Pass configuration data to simple modules
• Define model topology
• String, numeric, Boolean
• Constants, random numbers
• Expressions as references
Overview of OMNET++

We Shall Cover
 Introduction to NED Language
 Graphical Editor
What is NED Language?
• A Network description language
• Creates network topologies in OMNET ++
• You can create topology alternately graphically as well
• Correspondingly NED source code is automatically generated

Typical Ingredients of NED description


• Network definitions
• Compound module definitions
• Simple module declarations

Network Definition
• Network definitions are compound modules
_ Self-contained simulation models
Simple Module Declaration
• Describes the interface of modules
_ Gates
_ Parameters

Compound module definitions


• Declaration of external interface
_ Gates
_ Parameters
 Definition of
_ Submodules
_ Their interconnections

You might also like