Tictoc Project
Ministry of Higher Education and Scientific
Research
University of Information Technology and
Communications
College of Engineering
Communications and Mobile Computing
Engineering Department
Third Grade
WCN II
LAB -1- Tictoc Project
Student names:
Salsabeel Firas Abdul Razzaq
Shahad Muhsin Halleem
Tictoc Project
1. Design Mode:
1.1 The model
For a start, we were begin with a "network" that consists of
(two nodes). The nodes will do something simple: one of
the nodes will create a packet, and the two nodes will keep
passing the same packet back and forth.
1.2
Setting up the Project
1. We run the OMNET++IDE program by double-clicking on the file
(E:/omnetpp-6.0.2/mingwenv)
2. We started by opening the program by typing (omnetpp) in mingwenv
3. Then we followed this path
New => OMNeT++project =>write (tictocproj) as project name =>
next =>empty project =>finish
Tictoc Project
1.3 Adding the NED File
Tictoc Project
To add this file, we followed the following steps
1. We went to the file located at the top left of the screen,
then to New, then to the Network Description file(NED),
and in the File Name field we wrote (tictoc) and then we
clicked Next and several options will appear for us. We
chose (Empty NED file) and finally we clicked Finish.
2. NED File consists of two parts:
- Source
- Design
Programing NED File
We wrote the following code in Source Mode:
Tictoc Project
1.4 Adding the C++ Files
To add this file, we followed the following steps
1. We clicked on the icon at the top left of the screen and
chose
c /c++ and then choose Source File
2. After we entered the Source File, a page opened for
us, in the first field of which there was the Source
Folder, and we placed the browse.. in it, which is
(tictocproj). As for the Source File, we wrote in it,
and then we clicked on Finish.
Tictoc Project
3. Then we wrote the following code:
Tictoc Project
1.5 Adding omnetpp.ini
To add this file, we followed the following steps
1. We went to File located at the top left of the screen,
then New, then (initialization file (ini)), and then a
page appeared to us from which we chose our file
(tictocproj), and we wrote in File Name (omnetpp.ini),
then we pressed Next, then (Empty Ini File), and
finally we clicked Finish.
Tictoc Project
2. omnetpp.ini consists of two parts:
- Form
- Source
3. We wrote the code in the source part
4. As for the form part, in the (Network to simulate) field
we wrote (Tictoc11) and in the (simulation time
resolution) field we wrote ps
Tictoc Project
2. Running the Simulation
2.1 Launching the simulation program
after we completed the above steps, we were launch the
simulation by pressing the Run button. The IDE will
build our project automatically
2.2 Running the simulation
After successfully building and launching our simulation,
we saw the new GUI window for Simulation Mode. We
pressed the Run button on the toolbar to start the
simulation. (tic and toc are exchanging messages with
each other)