Using OPNET To Teach Students Computer Networking Subject: Mayyada Hammoshi, Razan Al-Ani
Using OPNET To Teach Students Computer Networking Subject: Mayyada Hammoshi, Razan Al-Ani
Using OPNET To Teach Students Computer Networking Subject: Mayyada Hammoshi, Razan Al-Ani
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
OPNET can be used to model the entire modeling and performance evaluation of communication
network, including its routers, switches, networks and distributed systems [1].
protocols, servers, and the individual 6. Modeling Methodology
applications they support. A large range of OPNET Modeler is based on a series of hierarchically
communication systems from a single LAN to related editors that directly parallel the structure of actual
global inter-networks can be supported [1]. networks. The modeling structure is consist of group of
OPNET software (with model source code) is editors as following [7]
available for FREE to the academic research 6.1 Network Editor (project editor)
and teaching community. Students can The first editor is Network Editor (Project editor), which
download and install OPNET IT Guru graphically represents the topology of a communication
Academic Edition at home [1]. network. Networks consist of node (switch/router, server
The OPNET's discrete event engine for network etc.) and links model (Ethernet, ATM, FDDI etc.). It is
simulations is the fastest and most scalable possible manage complex network with unlimited sub
commercially available solution. It usually takes network nesting such as country, city, building, floor
just a few minutes to complete simulations of etc... Network editor provides geographical context, with
most lab experiments [1]. physical characteristic of the networks [7]. From this
OPNET has a large user community. OPNET editor, user can create a network model using models
software is used by major fortune-500[9] from the standard library, collect statistics about the
Companies, service providers, and government network, run the simulation, and view the results see
organizations worldwide. Students who Have experiences figure (1) [8] .
with OPNET simulator will have much better future 6.2 Node Editor
employment opportunities in industry [1]. In addition to The Node Editor is used to define the behavior of each
previous reason OPNET uses models that are specified in network object. Behavior is defined using different
terms of objects, each with configurable sets of attributes. modules, each of which models some internal aspect of
This allows for flexible definition of new objects with node behavior such as data creation, data storage, etc.
programmable characteristics and behavior in order to Modules are connected via packet streams or statistic
address the wide scope of systems that are presented in wires see figure(2). A single network object is typically
the course. Models are hierarchical to naturally parallel made up of multiple modules defining its behavior [8].
the structure of actual communication networks. The 6.3 Process Model Editor
hierarchical approach allows for deep nesting of sub The Process Editor is used to create process models,
networks and nodes and large networks can be efficiently which control the underlying functionality of the node
modeled. Stochastic and/or deterministic models can be models created in the Node Editor. Process models are
used to generate network traffic. Performance evaluation represented by finite state machines (FSMs), and are
and trade-off analysis require large volumes of created with icons that represent states and lines that
simulation results to be interpreted and OPNET includes represent transitions between states see figure (3).
a tool for graphical representation and processing of Operations performed in each state or for a transition are
simulation output. Simulation runs can be configured to described in C or C++ code blocks [8].
automatically generate animations of the modeled system 6.4 Link Model Editor
at various levels. These are used to help the student The Link Model Editor is used to create new types of
visualize how the network operates while working. link objects. Each new type of link can have different
Simulation results can be plotted as time series graphics, attribute interfaces and representation see figure (4).
scatter plots, histograms, and probability functions [5]. Comments and keywords can also be specified for easy
4. Knowledge needed from student to be able to recognition [8].
design and simulate a communication network 6.5 The Path Editor
There are some basic communication building blocks The Path Editor is used to create new path objects that
that the students must understand before they are able to define a traffic route. Any protocol model that uses
design and simulate a communication network. A basic logical connections or virtual circuits such as MPLS,
understanding of queuing theory is required of students ATM, Frame Relay, etc can use paths to route traffic see
because it plays an important role in the design of figure (5) [9].
computer communication networks and systems [5]. 6.6 Packet Format Editor
The Packet Format Editor is used to define the internal
5. OPNET overview
structure of a packet as a set of fields. A packet format
OPNET’s IT Guru provides a Virtual Network
contains one or more field each, represented in the editor
Environment that models the behavior of an entire
as a colored rectangular box see figure (6). The size of
network, including its routers, switches, protocols,
the box is proportional to the number of bits specified as
servers, and individual applications. By working in the
the field’s size [9].
Virtual Network Environment, IT managers, network and
system planners, and operations staffs are empowered to 6.7 Probe Editor
The Probe Editor is used to specify the statistics to be
diagnose difficult problems more effectively, validate
collected during simulation. While this can be done in the
changes before they are implemented, and plan for future
Project Editor, the Probe editor can be used to set
scenarios including growth and failure [6].
additional characteristics of each probe. There are several
OPNET is a discrete network simulator which contains a
different types of statistics that can be collected using
comprehensive development environment supporting the
181
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
different probes, including global statistics, link statistics, finite state machine. Each circle represents a state; the
node statistics, arrows between states represent transitions. The student
Attributes statistics, and several types of animation can manipulate the system and show different case of
statistics see figure (7) [8]. result for example traffic received as seen in figure (12).
6.8 The Simulation Sequence Editor Table (1) shows the results of M_M_Q (Queuing
In the Simulation Sequence Editor an additional Disciplines) for multiple executions [10].
simulation constrains can be specified. Simulation 7.2 ETHERNET laboratory Exercise
sequences are represented by simulation icons, which Through this Exercise the students introduced to
contain a set of attributes that control the simulation’s demonstrate the implementation of ETHERNET network
run-time characteristics see figure (8) [9]. . The simulation in the lab will help students examine the
6.9 Analysis Tool performance of the ETHERNET network under different
Although simulation results can be viewed in the Project scenarios. In this lab, students will set up an ETHERNET
Editor, the Analysis Tool has several useful additional network with 18 nodes connected in a Bus topology.
features. You can, for example, create scalar graphs and Students will learn that the throughput of Ethernet drops
parametric studies, define templates to which you apply when the load is very high due to the increasingly
statistical data, create analysis configurations for frequent collisions that are occurring as the network
application of statistical data, and create analysis reaches saturation as seen Figure (13). Table (2) shows
configurations that can be saved and viewed later see the results for multiple executions for transmit and
figure (9)[8]. receive packets [5].
7. OPNET Labs 7.3 Token Ring Laboratory Exercise
In this paper a set of labs is shown with appropriate Through this Exercise the students introduced to
screen captures from OPNET IT Guru Version 9.1 demonstrate the implementation of a token ring network.
(OPNET IT Guru 9.1 is downloadable free for In the lab students will set up two token ring networks
educational use). They are appropriate for someone who with 14[1] and 20 nodes both connected in a star
is at the introductory to intermediate level with topology, as seen in Figure (14 a) and (14b).The Students
networking technology [13]. They provide a way of will study how the utilization and delay of the network
learning features of OPNET in addition to being hands are affected by the network load as well as the THT as
on review of some aspects of standard networking theory seen in figure (15) and number of connected nodes.
[13]
. They are written in a generic way they are intended 7.4 Routing Information Protocol Laboratory Exercise
to be worthwhile anywhere from advanced curriculum to Through this Exercise the students introduced to explores
fundamentals. the Routing Information Protocol (RIP), as seen in Figure
7.1 M/M/1 Laboratory Exercise (16). Students configure and analyze the performance of
Through this Exercise the students introduced to the the RIP under different scenarios. Experiments illustrate
M/M/1 queuing model to gain a basic understanding of the count-to-infinity problem in the distance vector
how queuing models play an important role in routing protocol. The student can compare the number of
communication networks. An M/M/1 queue consists of a Updates between any Routers in scenarios Lab as seen in
first-in-first-out (FIFO) buffer with packets arriving figure (17).Also they could obtain the IP Addresses of
randomly in accordance with a Poisson process, and a the interface [1].
processor, called a server, which retrieves packets from 7.5 TCP simulation Laboratory Exercise
the buffer at a specified service rate see figure (10)[5]. The Through this Exercise the students introduced to
three parameters that are examined are: packet arrival demonstrate the functioning of TCP, and particularly the
rate, packet sizes, and service capacity. The task of the four algorithms used for congestion control: slow start,
students is to construct an M/M/1 queue model to allow congestion avoidance, fast retransmit and fast recovery.
an analyst to observe the performance of the queuing The lab provides a number of scenarios to simulate and
system with varying packet arrival rates, packet sizes, compare these algorithms [9].The student can show
and service capacities. The students run simulations that different results from this Lab for example sent segment
will measure average delay (waiting time) experienced sequence number as seen in figure (18).
by packets in the queue, number of packets in the queue 7.6 Hubs versus Switches in Small Business LAN
at any one time and average number of packets in the Laboratory Exercise
queue over time, and then analyze the results. This is Through this Exercise the students introduced to
done through design a process model that will count and demonstrate a compare performance of pure hub LAN
present the number of packets received over time from with switched LAN in a tiny network. The students will
any number of packet sources [1]. create two scenarios. In one scenario there are five
workstations that connect to a web server via a hub.
The components of a process model include a finite state Relevant performance statistics will be collected at both
machine diagram with embedded C statements, and the workstations and the server. The same will be done in
various blocks containing code for variable declarations, a second scenario except that instead of a hub it will be a
macros, constant, and function definitions. The finite switch facilitating the connection between server and
state machine diagram represents the functional flow of workstations [13]. The student can show different results
the process with an easily interpreted diagram of states from this Lab for example Collision Count for the
and transitions. Events and conditions determine the different scenario uses as seen in figure (19). Table (4)
migration from state to state through transitions [10]. shows the results of various executions.
Figure (11) shows a generic representation of a simple 7.8 Wireless Network Laboratory Exercise
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
Through this Exercise the students introduced to design a also because simulations can be completely repeatable, it
simple radio network with a mobile jammer node and is possible to address the same concepts more quickly
two stationary communications nodes, and then than is possible with actual networks. An important
demonstrate the differences in the SNR of the network complement to classroom lectures is laboratory
when the stationary nodes use an isotropic or directional experiments. In networking, this often implies
antenna. This is done through a set of tasks the students programming, protocol design, experiments and
must perform it : Use the radio link, mobile node , and measurement. Simulation has an important role here
antenna Pattern Editor to create a directional antenna since it allows students to examine problems with much
pattern , define the trajectory of a mobile node ,execute less work and of much larger scope than are possible
parametric simulations ,and use the time controller to with experiments on real hardware. Therefore students
step through time values and relate node positions and will come to understand networking theory much better
results[3]. The student can show the result of bit rate and than if they learn only from reading and lectures. This
throughput for both isotropic and directional antenna as paper shows that OPNET™ IT GURU Academic
seen in figure (21). Modeler simulation environment is the most cost
7.9 Extra Laboratory Exercise effective solution for colleges and universities to
Through OPNET™ IT GURU Academic Modeler demonstrate the performance of different networks and
simulation environment the students can introduced to protocols. Also this paper shows that the students will
huge exercise , we cannot mention all these exercise benefit from the OPENT simulation laboratory in many
through this paper ,so we mention some of these such ways. The OPNET simulation labs reinforce the
as , ATM ,FDDI ,Token Bus , and Frame Relay Etc. networking theory taught by regular lectures. The open
8 Conclusions design of the labs encourages active learning. In addition,
Simulation offers significant advantages as a basis for students gain the knowledge of modeling and simulation
academic projects in computer networking. Because technique for performance evaluation of networking
many unimportant details can be abstracted away, and systems.
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
185
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
Figure (15) Result for Token ring node =14 LAB “Utilization
188
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
182
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
122
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
Table (4) Results of Hubs versus Switches in Small business LAN Laboratory Exercise LAB
Time Only Hub: Hub & Hub2.Collisi
(sec) Collision Switch. on Count
Count. Collision
Count
0 0 0 0
1.2 0 0 0
2.4 0 0 0
3.6 0 0 0
4.8 1065.5 503.5 443.5
6 1554.667 611.3333333 662.6666667
7.2 1746 814.5 763
8.4 1891.6 824.4 794.4
6 1554.667 611.3333333 662.6666667
7.2 1746 814.5 763
8.4 1891.6 824.4 794.4
9.6 1976 894.6666667 847
10.8 2021.714 888 837.8571429
12 2062.5 928.25 863.25
References
1.
Jinhua Guo, 3. The World’s Leading Network Modeling and
Weidong Xiang, and Simulation Environment. OPNET Technologies,
Shengquan Wang, 2004.
Reinforce 4. Mohammed O., Huda M., Ahmed A., Razan
Networking Theory alani. ,Design of a computer network for
with OPNET technical college using OPNET , graduated
Simulation,Journal of project
Information 5. Michael W Dixon ,Terry W Koziniec Using
Technology OPNET to Enhance Student Learning in a Data
Education, Volume Communications Course , Informing Science ,
6, 2007 June 2002
2. IT Guru Academic Edition. OPNET 6. Basics of OPNET IT Guru Academic Edition,
Technologies, 2005. OPNET Technologies, 2008
122
Tikrit Journal of Pure Science Vol. 15 No.(1) 2010 ISSN: 1813 - 1662
7. Dolejš Ondrej ,OPNET modeler - networks 10. Tanenbaum, A.S Computer Networks,.,
simulation ,,Department of Control Engineering Prentice-Hall International Inc., Englewood
,Czech Technical college. Cliffs, NJ, 1999.
8. Mohammad Muslim ,Gigabit Ethernet Network 11. William Stallings., Data and Computer
Design Using Opnet ,M.Sc Thesis ,Department Communications, 7th Edition. Pearson Education,
of Computer Science, Lamar University, ,2001 2005.
9. Tommy Svensson ,Development of laboratory 12. Larry L. Peterson and Bruce S. Davie Computer
exercises based on OPNET Modeler , M.Sc Networks: A System Approach, 3rd Edition.
Thesis, Dept. of Telecommunications and Morgan Kaufmann, 2005.
Signal Processing , Blekinge Institute of 13. Ranjan Kaparti ,OPNET IT GURU: A tool for
Technology, , June 2003 networking education ,MSCIT practicum paper,
REGIS UNIVERSITY
121