Starting from:

$25

ELEC3500-Lab 1 Simulation Experiment 1 Solved

This laboratory session will introduce the basic use of the OMNeT++ simulation package by going through the basic tutorial document. Also, you will need to make minor modification to the code to obtain several results and different model outcomes. 

Procedure: This laboratory work will go through the sixteen steps described in the Tic-Toc tutorial document. You will learn basic steps of developing a network model and statistics collection techniques by going through 16 steps of the tic-toc tutorial. Follow the codes and instructions provided in the tutorial documents. Note that the Tic-Toc code is NOT located in the ELEC3500 projects directory, it is located up one level in the folder hierarchy, in the OMNeT++ samples folder. The main outcome of each step is listed below. 

               Step 1:     Understand how the modules are defined and connected. 

               Step 2:     Enhancing node2, refining graphics and debugging output. 

               Step 3:     Adding state variables, adding a packet counter. 

               Step 4:     Addition control parameters to control message transfer. 

               Step 5:     Inheriting parameters from different modules. 

               Step 6:     Modelling processing delay, adding time parameters. 

Step 7: Use of random numbers to vary the delay. Check the statistics collection section below and collect those results before proceeding to the next step. 

               Step 8:     Introduce use of timers and timeout procedures. 

               Step 9:     Packet retransmission techniques. 

Step 10: Adding additional nodes to increase the network size. In this step modify the model so that tic[0] sends data to tic[1] and tic[2]. List the changed code in the common section of the report. 

Step 11: Introducing new channels with specific parameters. 

Step 12: Introduce two way connections (bidirectional communications). 

Step 13: Defining message class, converting into a real network model. 

Step 14: Adding statistics collection features 

Step 15: Further statistics collection features 

Step 16: Statistics collection without modifying models 

End to End Delay Calculation: 

Message creation time and arrival time can be respectively obtained by using the getCreationTime() and getArrivalTime() functions of the message object (e.g. msg-getCreationTime(), msggetArrivalTime()). The difference is the end-to-end delay.  

Model modifications and result collections for the report: 

 

1. Go back to step 7 of the tic-toc tutorial, gather following statistics from simulation log of th window using the default distributions. 

a.      Maximum, minimum and average message wait time. 

b.     Modify the distribution values, use a different value of your own choice and obtain a results. 

c.      Modify the model to use a single distribution, use exponential only distribution usin default vale. Compare results with the scenario a. 

Collect the following statistics for your common section report

More products