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 Edge Computing in OMNeT++

To implement Edge Computing in OMNeT++ contains setting up a imitation where edge devices, edge servers, and cloud servers work collected to development data and offer services. The INET Framework in OMNeT++ affords the needed tools to model and simulate such a network. The following is a step-by-step guide:

Step-by-Step Guide

  1. Install OMNeT++ and INET Framework

To make a certain OMNeT++ and the INET Framework installed. To download it from the particular websites and track the installation instructions.

  1. Create a New OMNeT++ Project
  1. Open OMNeT++ IDE: Start the OMNeT++ IDE.
  2. Create a New Project: Go to File -> New -> OMNeT++ Project. Name the project like   EdgeComputingSimulation.
  1. Import INET into Your Project
  1. Import INET: Right-click on the project in the Project Explorer, handpicked Properties. Make sure the INET project to go to Project References.
  2. Copy INET Examples: From the INET framework to the project for reference the Copy case conformations.
  1. Define the Network Topology

To form a new NED file to express the network topology, counting edge devices, edge servers, and cloud servers.

Example: Edge Computing Network Topology (EdgeNetwork.ned)

package edge;

import inet.node.inet.StandardHost;

import inet.node.inet.Router;

network EdgeNetwork

{

parameters:

@display(“bgb=800,400”);

submodules:

edgeDevice1: StandardHost {

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

}

edgeDevice2: StandardHost {

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

}

edgeServer: StandardHost {

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

}

cloudServer: StandardHost {

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

}

router1: Router {

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

}

router2: Router {

@display(“p=400,200”);

}

router3: Router {

@display(“p=600,200”);

}

connections:

edgeDevice1.ethg++ <–> Eth10M <–> router1.ethg++;

edgeDevice2.ethg++ <–> Eth10M <–> router1.ethg++;

router1.ethg++ <–> Eth10M <–> router2.ethg++;

router2.ethg++ <–> Eth10M <–> edgeServer.ethg++;

router2.ethg++ <–> Eth10M <–> router3.ethg++;

router3.ethg++ <–> Eth10M <–> cloudServer.ethg++;

}

In this example:

  • Standard hosts expressive the edge devices are edgeDevice1 and edgeDevice2.
  • edgeServer is a standard host on behalf of the edge server.
  • cloudServer is a standard host in place of the cloud server.
  • router1, router2, and router3 are routers enabling communication among the devices.
  • The Eth10M channel copies a 10 Mbps Ethernet link.
  1. Configure the Simulation

To make an OMNeT++ initialization file to configure the parameters of the simulation.

Example: Configuration File (omnetpp.ini)

[General]

network = edge.EdgeNetwork

sim-time-limit = 100s

# Visualization

*.visualizer.canvasVisualizer.displayBackground = true

*.visualizer.canvasVisualizer.displayGrid = true

# Host Configuration

*.edgeDevice*.numApps = 1

*.edgeDevice*.app[0].typename = “TcpBasicClientApp”

*.edgeDevice*.app[0].localPort = -1

*.edgeDevice*.app[0].connectAddress = “edgeServer”

*.edgeDevice*.app[0].connectPort = 80

*.edgeDevice*.app[0].sendBytes = 1000

*.edgeDevice*.app[0].tOpen = 1s

*.edgeDevice*.app[0].tSend = 2s

*.edgeDevice*.app[0].tClose = 10s

*.edgeServer.numApps = 1

*.edgeServer.app[0].typename = “TcpBasicServerApp”

*.edgeServer.app[0].localPort = 80

*.cloudServer.numApps = 1

*.cloudServer.app[0].typename = “TcpBasicServerApp”

*.cloudServer.app[0].localPort = 80

# TCP Configuration

*.edgeDevice*.hasTcp = true

*.edgeServer.hasTcp = true

*.cloudServer.hasTcp = true

# IP Address Configuration

*.edgeDevice1.ipv4.config = xmldoc(“edgeDevice1.xml”)

*.edgeDevice2.ipv4.config = xmldoc(“edgeDevice2.xml”)

*.edgeServer.ipv4.config = xmldoc(“edgeServer.xml”)

*.cloudServer.ipv4.config = xmldoc(“cloudServer.xml”)

*.router1.ipv4.config = xmldoc(“router1.xml”)

*.router2.ipv4.config = xmldoc(“router2.xml”)

*.router3.ipv4.config = xmldoc(“router3.xml”)

  1. Create IP Address Configuration Files

To generate XML files to express the IP address configuration for separately host and the routers.

Example: IP Configuration File for edgeDevice1 (edgeDevice1.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.1.1</address>

<netmask>255.255.255.0</netmask>

</interface>

<routing>

<route>

<destination>0.0.0.0</destination>

<netmask>0.0.0.0</netmask>

<gateway>192.168.1.254</gateway>

</route>

</routing>

</config>

Example: IP Configuration File for edgeDevice2 (edgeDevice2.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.1.2</address>

<netmask>255.255.255.0</netmask>

</interface>

<routing>

<route>

<destination>0.0.0.0</destination>

<netmask>0.0.0.0</netmask>

<gateway>192.168.1.254</gateway>

</route>

</routing>

</config>

Example: IP Configuration File for edgeServer (edgeServer.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.2.1</address>

<netmask>255.255.255.0</netmask>

</interface>

</config>

Example: IP Configuration File for cloudServer (cloudServer.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.3.1</address>

<netmask>255.255.255.0</netmask>

</interface>

</config>

Example: IP Configuration File for router1 (router1.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.1.254</address>

<netmask>255.255.255.0</netmask>

</interface>

</config>

Example: IP Configuration File for router2 (router2.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.2.254</address>

<netmask>255.255.255.0</netmask>

</interface>

</config>

Example: IP Configuration File for router3 (router3.xml)

<config>

<interface>

<name>eth0</name>

<address>192.168.3.254</address>

<netmask>255.255.255.0</netmask>

</interface>

</config>

  1. Implement Edge Computing Logic

To put on edge computing, basic to implement reason for data processing and task discharging among edge devices, edge servers, and the cloud server.

Example: Simple Edge Computing Logic (Pseudo-Code)

class EdgeComputingApp : public cSimpleModule

{

protected:

virtual void initialize() override;

virtual void handleMessage(cMessage *msg) override;

private:

void processLocally(cMessage *msg);

void offloadToEdgeServer(cMessage *msg);

void offloadToCloudServer(cMessage *msg);

};

void EdgeComputingApp::initialize() {

// Initialization code

}

void EdgeComputingApp::handleMessage(cMessage *msg) {

// Decide where to process the message

if (canProcessLocally(msg)) {

processLocally(msg);

} else if (canOffloadToEdgeServer(msg)) {

offloadToEdgeServer(msg);

} else {

offloadToCloudServer(msg);

}

}

void EdgeComputingApp::processLocally(cMessage *msg) {

// Logic to process data locally on the edge device

}

void EdgeComputingApp::offloadToEdgeServer(cMessage *msg) {

// Logic to offload data to the edge server

}

void EdgeComputingApp::offloadToCloudServer(cMessage *msg) {

// Logic to offload data to the cloud server

}

  1. Run the Simulation
  1. Build the Project: Right-click on the project and choose Build Project.
  2. Run the Simulation: Connect on the green play button in the OMNeT++ IDE to start the simulation.

In this script, we discussed about the procedure to implementation of edge computing in OMNeT++ and create new OMNeT++ projects, to create IP address conformation files, and more samples. We pleasure to offer more information about to implement the Edge Computing in OMNeT++.

We provide simulation results and comparative analysis for your projects, ensuring you achieve the best outcomes with our support. Additionally, we offer guidance on implementing Edge Computing in OMNeT++ programming.

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 .