Professional Documents
Culture Documents
Dr. Saad A. Ayoob: University of Mosul College of Engineering Electrical Engineering Department
Dr. Saad A. Ayoob: University of Mosul College of Engineering Electrical Engineering Department
Dr. Saad A. Ayoob: University of Mosul College of Engineering Electrical Engineering Department
College of Engineering
Electrical Engineering Department
Email: sa_ah_ay@yahoo.com
❖ Types of Simulation Models
❖ Modeling Concepts
➢ Examples:
• Inter-arrival time or service time of customers at a bank or store
• Amount of time required to service a customer
➢ Output is a random quantity (multiple runs required analyze output)
➢ Examples
• Simulation of a digital circuit
• Simulation of a chemical reaction based on differential equations
➢ Output is deterministic for a given set of inputs
Types of Simulation Models
❑Static models:
➢ Examples:
▪ Determine the probability of a winning solitaire hand
❑Dynamic models:
Model focusing on the evolution of the system under investigation over time
Types of Simulation Models
❑ Discrete:
❑ Continuous:
❖ General Terminology:
• Activity:
Transmit IF1 -> IF2, 20μs
Transmit IF2 -> IF2, 15μs
Drop on IF1, 10μs
Drop on IF2, 10μs
• System state: S = {R1, T1, D1, Q1, R2, T2, D2, Q2}
Ri = Received packets on interface i
Ti = Transmitted packets on interface i
Di = Dropped packets at interface i
Qi = Queue length of interface I
❖ researchers and practitioners should be familiarized with at least one mathematical software (e.g.: Wiris, Maple,
Mathcad, Mathematica, Matlab, GNU Octave, etc.) and one statistical software (e.g.: Minitab, Excel, SPSS, R, S-Plus,
etc.).
System and System Environment
❑ System is a group of objects that are joined together in some regular interaction or interdependence
toward the accomplishment of some purpose.
❑ Example:
➢ Automobile factory
• Machines, parts, and workers operate jointly to produce a vehicle
➢ Computer network
• User, hosts, routers, lines establish a network
❑ System environment
➢ Everything outside the system, but affects the system.
❑ Attention
• It is important to decide on the boundary between the system and the system environment.
• This decision depends on the purpose of the study.
DES Model Development
❑ How to develop a model:
❑Specification
o On paper
o May involve equations, pseudocode, etc.
o How will the model receive input?
❑Computational
▪ A computer program
▪ General-purpose or simulation language?
Round Robin Scheduling Algorithm (RRSA)
❑Round Robin Scheduling (RRS) is one of the simplest scheduling algorithms;
it assigns time slot to each process in equal portions and in a circular order,
and treats all processes without priority. It is successfully applied to data
packet scheduling in computer networks.
❑It can easily be proved that RRS results in max-min fairness if the data
packets are equally sized. This is related to the fact that the data flow which
has waited the longest time is given scheduling priority;
❑The next Figure shows an example of how to apply RRS by a Switch to select
in sequence four types (sets) of entities stored in First In First Out (FIFO)
buffers.
Example of Round Robin Scheduling (RRS) process
Results of Round Robin Scheduling (RRS) process
❑ When the switch selects an entity, it makes other entities unavailable, regardless of how
long it takes for an entity to arrive at the selected port. Figure (a) and Figure (b) show the
output of attribute scope for the cases of equal and unequal data rate of all entities.
Figure (a): The output of switch for equal data rate using (RRS).
Results of Round Robin Scheduling (RRS) process
Figure (b): The output of switch for unequal data rate using (RRS).