OMNET++ TUTORIAL FOR BEGINEERS is a very well designed, modular, widely-used system; source code is available and free for teaching and research purposes.
- OMNeT++ is basically a collection of software tools and libraries which you can use to build your own simulation models.
Modeling and simulation with OMNET++:
- Creating modules from components. In OMNET++ modules can be nested, which means several modules can be grouped together to form a component module
- Define model structure in NED language
- Active components of the model have to be programmed in C++, using the simulation kernel and class hierarchy
- Provide suitable omnetpp.ini to hold omnet++ configuration and parameters to designed model. A config file can describe several simulation runs with different parameters
- Build simulation program and run it.
- Simulation results are written into output vector and output scalar files.
Sample code for OMNET++:
This is the sample code of compound module,
module WirelessHostBase { gates; input radioIn; submodules: tcp: TCP; ip: IP; wlan: Ieee80211; Connections: tcp.ipOut ip.tcpIn; tcp.ipInip.tcpOut; ip.nicOut++wlan.ipln; ip.nicIn++wlan.ipOut; wlan.radioInradioIn; } module WirelessUser extends WirelessHostBase { submodules: webAgent: WebAgent; Connections: webAgent.tcpOut tcp.appIn++; webAgent.tcpIntcp.appOut++; }