example network with inet3
TRANSCRIPT
1/1/2015
Example network with INET3.0 OMNET++ Workshop
Mohamed Elshaikh SCHOOL OF COMPUTER AND COMMUNICATION ENGINEERING,
UNIMAP
Objectives INET 3.0
INET examples
Experiment design
Results planning
INET3.0
In the following ex. We will import the inet3.0 to omnet++, and have an overview on the
examples and file structure of INET3.0. Later we collect results for a specific design aims
and goals.
Importing the INET3.0
Extract the inet3.0 file into your preferred directory.
In omnet++ from the file->import
5
6 Now build it (ctrl+b) it takes time be patient
Inet structure
Inet3.0 is organized into folders listing some:
Src: in this folder we can find all protocols implementation and source files (.cc), beside
the basic and abstract components
Examples: in this folder there are plenty of examples for the implemented protocols
(remember its an open source don’t expect perfection)
Tutorial: some tutorial newly added to inet frame work (expected to grow in the coming
versions of inet)
Example network with Inet
This example aims at bringing some light on the traffic generation modules in inet.
Inet3.0 comes with well-organized traffic application modules that implements standard
application protocols (UDP, TCP, Video and Audio streaming, ping application and
more).
Scenario: a network composed of number of hosts connected with bus, all hosts in the
network are to send a traffic (with random distribution behavior) to a server. The server
responds to all hosts request. Investigate the performance of this network in respect to
number of host and packet size.
Solution steps:
Step 1: create the network:
Under the example folder create a new folder (Ex1), and create a network description
file for the network and name it ex1_net.ned
1
7
Step 2: add network components
From the palette in the right side add the following components (see figure below):
2 etherhost modules (server , host[n_hosts])
1 etherbus module (link)
Connect both host and server modules to the link(bus module)
Step 3: add configurations to the network
Shift to source tab and change the code as following:
1. We add a parameters section to declare the number of host as a parameters
that could be changed from the ini file
2. In the EtherBus submodule we declare the propagation speed of the link
3. And we change the connection section to cop with variability in number of
hosts.
Step 4:
The ini file:
Planning the experiment:
To investigate the performances of this network we need to know what the
performances parameters are. In this example let’s go for throughput, end-to-end
delay and packet delivery ratio (PDR).
Throughput: successful amount of data received / time unit
End-to-end delay: the average delay on the application layer
PDR: number of packets received / number of packets sent
However we are investigating in respect to number of hosts and packet size (control
parameters)
network = inet.examples.Ex.Ex1_net **.n_hosts = 10 **.server.cli.destAddress = "" **.startTime= 1s **.host[*].cli.destAddress = "server" **.host[*].cli.sendInterval = 0.1s **.cli.reqLength= 100B