To implement the Fully Connected Topology in OMNeT++ has includes a network where in the network each node is directly connected to every other node. It is called a complete mesh topology and is symbolized by its huge level of redundancy and fault tolerance as many path occur between any two nodes.
Send us a message if you need help with performance analysis and project ideas in this field. You can also get support for implementing and simulating Fully Connected Topology using the OMNeT++ tool from the developers at omnet-manual.com.
The following steps are how to implement a fully connected topology in OMNeT++ using the INET framework:
Step-by-Step Implementations:
Example:
package fullyConnectedTopologyExample;
import inet.node.inet.StandardHost;
import inet.linklayer.ppp.Ppp;
network FullyConnectedTopology
{
parameters:
int numNodes = default(4); // Number of nodes in the fully connected topology
submodules:
node[numNodes]: StandardHost {
parameters:
@display(“p=200+300*cos(pi/2+i*2*pi/numNodes),300+300*sin(pi/2+i*2*pi/numNodes)”);
}
connections allowunconnected:
for i=0..numNodes-2 {
for j=i+1..numNodes-1 {
node[i].pppg++ <–> Ppp <–> node[j].pppg++;
}
}
}
Example:
[General]
network = fullyConnectedTopologyExample.FullyConnectedTopology
# Configure IP addresses
*.node[*].ipv4.arp.typename = “GlobalArp”
*.node[*].ppp[0].ipv4.address = “10.0.0.x”
*.node[*].ppp[0].ipv4.netmask = “255.255.255.0”
# Example application setup: node 0 sends data to all other nodes
*.node[0].numApps = 3
*.node[0].app[0].typename = “UdpBasicApp”
*.node[0].app[0].destAddresses = “10.0.0.2”
*.node[0].app[0].destPort = 5000
*.node[0].app[0].messageLength = 1024B
*.node[0].app[0].sendInterval = 1s
*.node[0].app[1].typename = “UdpBasicApp”
*.node[0].app[1].destAddresses = “10.0.0.3”
*.node[0].app[1].destPort = 5000
*.node[0].app[1].messageLength = 1024B
*.node[0].app[1].sendInterval = 1s
*.node[0].app[2].typename = “UdpBasicApp”
*.node[0].app[2].destAddresses = “10.0.0.4”
*.node[0].app[2].destPort = 5000
*.node[0].app[2].messageLength = 1024B
*.node[0].app[2].sendInterval = 1s
*.node[1].numApps = 1
*.node[1].app[0].typename = “UdpSink”
*.node[1].app[0].localPort = 5000
*.node[2].numApps = 1
*.node[2].app[0].typename = “UdpSink”
*.node[2].app[0].localPort = 5000
*.node[3].numApps = 1
*.node[3].app[0].typename = “UdpSink”
*.node[3].app[0].localPort = 5000
Example Files
In this paper, we are discussed about how to execute Fully Connected Topology in OMNeT++ using INET framework. Further informations we will offer about this topic in other tools.