e-mail address: omnetmanual@gmail.com

Phone number: +91 9444856435

Tel 7639361621

DEFENDER
  • Phd Omnet++ Projects
    • RESEARCH PROJECTS IN OMNET++
  • Network Simulator Research Papers
    • Omnet++ Thesis
    • Phd Omnet++ Projects
    • MS Omnet++ Projects
    • M.Tech Omnet++ Projects
    • Latest Omnet++ Projects
    • 2016 Omnet++ Projects
    • 2015 Omnet++ Projects
  • OMNET INSTALLATION
    • 4G LTE INSTALLATION
    • CASTALIA INSTALLATION
    • INET FRAMEWORK INSTALLATION
    • INETMANET INSTALLATION
    • JDK INSTALLATION
    • LTE INSTALLATION
    • MIXIM INSTALLATION
    • Os3 INSTALLATION
    • SUMO INSTALLATION
    • VEINS INSTALLATION
  • Latest Omnet++ Projects
    • AODV OMNET++ SOURCE CODE
    • VEINS OMNETPP
    • Network Attacks in OMNeT++
    • NETWORK SECURITY OMNET++ PROJECTS
    • Omnet++ Framework Tutorial
      • Network Simulator Research Papers
      • OMNET++ AD-HOC SIMULATION
      • OmneT++ Bandwidth
      • OMNET++ BLUETOOTH PROJECTS
      • OMNET++ CODE WSN
      • OMNET++ LTE MODULE
      • OMNET++ MESH NETWORK PROJECTS
      • OMNET++ MIXIM MANUAL
  • OMNeT++ Projects
    • OMNeT++ OS3 Manual
    • OMNET++ NETWORK PROJECTS
    • OMNET++ ROUTING EXAMPLES
    • OMNeT++ Routing Protocol Projects
    • OMNET++ SAMPLE PROJECT
    • OMNeT++ SDN PROJECTS
    • OMNET++ SMART GRID
    • OMNeT++ SUMO Tutorial
  • OMNET++ SIMULATION THESIS
    • OMNET++ TUTORIAL FOR WIRELESS SENSOR NETWORK
    • OMNET++ VANET PROJECTS
    • OMNET++ WIRELESS BODY AREA NETWORK PROJECTS
    • OMNET++ WIRELESS NETWORK SIMULATION
      • OMNeT++ Zigbee Module
    • QOS OMNET++
    • OPENFLOW OMNETPP
  • Contact

How to Implement Industrial IoT in OMNeT++

To implement the Industrial Internet of Things (IIoT) in OMNeT++ has encompasses to generating a recreation situation that contains different industrial devices, sensors, controllers, and communication networks. To support II0T specific functionalities can custom the INET framework and potentially cover. Connect with us for top-notch simulation and implementation of Industrial IoT using OMNeT++.In this step-by-step guide to help to get ongoing among a basic IIoT simulation in OMNeT++ by using the INET framework.

Step-by-Step Implementation:

Step 1: Install OMNeT++ and INET Framework

  1. Download OMNeT++:
    • Move to  the OMNeT++ download the modern version.
  2. Install OMNeT++:
    • For the operating system to installation instruction is provided on the network.
  3. Download and Install INET Framework:
    • Often we use among the OMNeT++ and for the internet protocols provided by the framework.
    • From the INET website can download it.

Step 2: Set Up Your Project

  1. Create a New OMNeT++ Project:
    • Exposed the OMNeT++ IDE.
    • Move on File -> New -> OMNeT++ Project.
    • Choice the appropriate options to put a project name.
  2. Set Up Directory Structure:
    • To make sure the project have the Ensure your project has the needed folders, like   src for foundation files and imitations for NED files and formation.
  3. Add INET to Your Project:
    • Scheduled the project in the Project Explorer.
    • Select Properties -> Project References.
    • Form the box for INET.

Step 3: Define IIoT Network Models Using NED

  1. Create NED Files:
    • To create a new NED file like IIoTNetwork.ned in the src directory.
    • Describe the network topology in the NED file. The below example for the reference :

package iiot;

import inet.node.inet.StandardHost;

import inet.node.inet.Router;

import inet.node.wireless.AccessPoint;

import inet.node.wireless.SensorNode;

import inet.mobility.single.RandomWaypointMobility;

import inet.physicallayer.common.packetlevel.RadioMedium;

network IIoTNetwork

{

parameters:

int numSensors = default(10);

int numControllers = default(2);

submodules:

radioMedium: RadioMedium {

@display(“p=100,100”);

}

controller[numControllers]: StandardHost {

@display(“p=200,200+100*i”);

}

sensor[numSensors]: SensorNode {

@display(“p=400,100+50*i”);

mobility.typename = “RandomWaypointMobility”;

}

accessPoint: AccessPoint {

@display(“p=300,300”);

}

connections allowunconnected:

for i=0..numSensors-1 {

sensor[i].wlan[0] <–> radioMedium <–> accessPoint.wlan[0];

}

for i=0..numControllers-1 {

controller[i].ethg++ <–> accessPoint.ethg++;

}

}

Step 4: Implement IIoT Communication Logic

  1. Create C++ Modules for Sensor Nodes and Controllers:
    • To create a C++ classes like SensorNodeApp.cc and ControllerApp.cc in the src directory.
    • To describe the IIoT communication logic and involve the essentialOMNeT++ headers.
  2. Sensor Node Application Implementation:

#include <omnetpp.h>

#include “inet/applications/base/ApplicationBase.h”

#include “inet/common/packet/Packet.h”

using namespace omnetpp;

using namespace inet;

class SensorNodeApp : public ApplicationBase

{

protected:

virtual void initialize(int stage) override;

virtual void handleMessageWhenUp(cMessage *msg) override;

void sendSensorData();

void handleSensorData(cPacket *pkt);

cMessage *sendEvent = nullptr;

};

Define_Module(SensorNodeApp);

void SensorNodeApp::initialize(int stage)

{

ApplicationBase::initialize(stage);

if (stage == INITSTAGE_LOCAL) {

sendEvent = new cMessage(“sendSensorData”);

scheduleAt(simTime() + par(“startTime”), sendEvent);

}

}

void SensorNodeApp::handleMessageWhenUp(cMessage *msg)

{

if (msg == sendEvent) {

sendSensorData();

scheduleAt(simTime() + par(“sendInterval”), sendEvent);

} else {

cPacket *pkt = check_and_cast<cPacket *>(msg);

handleSensorData(pkt);

}

}

void SensorNodeApp::sendSensorData()

{

// Create and send a sensor data packet to the access point or controller

EV << “Sending sensor data” << endl;

Packet *pkt = new Packet(“SensorData”);

pkt->setByteLength(par(“dataSize”));

send(pkt, “lowerLayerOut”);

}

void SensorNodeApp::handleSensorData(cPacket *pkt)

{

// Handle received sensor data packet

EV << “Received sensor data: ” << pkt->getName() << endl;

delete pkt;

}

  1. Controller Application Implementation:

#include <omnetpp.h>

#include “inet/applications/base/ApplicationBase.h”

#include “inet/common/packet/Packet.h”

using namespace omnetpp;

using namespace inet;

class ControllerApp : public ApplicationBase

{

protected:

virtual void initialize(int stage) override;

virtual void handleMessageWhenUp(cMessage *msg) override;

void handleSensorData(cPacket *pkt);

 

};

Define_Module(ControllerApp);

void ControllerApp::initialize(int stage)

{

ApplicationBase::initialize(stage);

}

void ControllerApp::handleMessageWhenUp(cMessage *msg)

{

if (msg->isSelfMessage()) {

delete msg;

} else {

cPacket *pkt = check_and_cast<cPacket *>(msg);

handleSensorData(pkt);

}

}

void ControllerApp::handleSensorData(cPacket *pkt)

{

// Handle received sensor data packet

EV << “Received sensor data: ” << pkt->getName() << endl;

delete pkt;

}

Step 5: Integrate IIoT Modules into Network Model

  1. Modify NED File to Use IIoT Modules:
    • By using the custom sensor node and controller application modules to modify the NED file:

package iiot;

import inet.node.inet.StandardHost;

import inet.node.wireless.AccessPoint;

import inet.node.wireless.SensorNode;

import inet.physicallayer.contract.packetlevel.IRadioMedium;

import inet.physicallayer.common.packetlevel.RadioMedium;

import inet.mobility.single.RandomWaypointMobility;

network IIoTNetwork

{

parameters:

int numSensors = default(10);

int numControllers = default(2);

submodules:

radioMedium: RadioMedium {

@display(“p=100,100”);

}

controller[numControllers]: StandardHost {

@display(“p=200,200+100*i”);

@children:

wlan[0].radio.transmitter.typename = “ControllerApp”;

wlan[0].radio.receiver.typename = “ControllerApp”;

}

sensor[numSensors]: SensorNode {

@display(“p=400,100+50*i”);

mobility.typename = “RandomWaypointMobility”;

@children:

wlan[0].radio.transmitter.typename = “SensorNodeApp”;

wlan[0].radio.receiver.typename = “SensorNodeApp”;

}

accessPoint: AccessPoint {

@display(“p=300,300”);

}

connections allowunconnected:

for i=0..numSensors-1 {

sensor[i].wlan[0] <–> radioMedium <–> accessPoint.wlan[0];

}

for i=0..numControllers-1 {

controller[i].ethg++ <–> accessPoint.ethg++;

}

}

Step 6: Configure Simulation Parameters

  1. Create omnetpp.ini:
    • In the simulations directory, produce an omnetpp.ini file.
    • To express simulation parameters, like the duration and network parameters:

[General]

network = IIoTNetwork

sim-time-limit = 100s

# Mobility

**.sensor[*].mobility.bounds = “0,0,1000,1000”

# Sensor application parameters

**.sensor[*].udpApp.startTime = uniform(0s, 10s)

**.sensor[*].udpApp.sendInterval = exponential(1s)

**.sensor[*].udpApp.dataSize = 256B

**.sensor[*].udpApp.localPort = 1000

**.sensor[*].udpApp.destPort = 2000

# Controller application parameters

**.controller[*].udpApp.localPort = 2000

Step 7: Build and Run the Simulation

  1. Build the Project:
    • In the OMNeT++ IDE, right-click on the project and hand-picked Build Project.
  2. Run the Simulation:
    • Drive to Run -> Run Configurations.
    • Setting up a original run configuration for the project and to run the simulation.

Step 8: Analyze Results

  1. View Simulation Results:
    • By using OMNeT++’s implements to analyze the results after the recreation completes, Exposed the ANF (Analysis Framework) to envision and read the data.

In the above discussion, we are learn deeply about the Industrial IoT in IMNeT++ and then how we make enactment file which is implemented using OMNeT++ tool. We are willing to provide more information about the Industrial IoT in OMNeT++.

Related Topics

  • Network Intrusion Detection Projects
  • Computer Science Phd Topics
  • Iot Thesis Ideas
  • Cyber Security Thesis Topics
  • Network Security Research Topics

designed by OMNeT++ Projects .