SlideShare a Scribd company logo
1 of 8
Download to read offline
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
DOI : 10.5121/ijit.2014.3305 47
Simulation :Analysis of Single Server Queuing
Model
Syed Shujauddin Sameer1
1
Department of Computer Science Engineering, King Khaled Univeristy,Abha,Saudi
Arabia
ABSTRACT
A queue is a line of people or things to be handled in a sequential order. It is a sequence of objects that
are waiting to be processed. Queuing theory is the study of queues for managing process and objects.
Simulation has been applied successfully for modeling small and large complex systems and
understanding queuing behavior. Analysis of the models helps to increases the performance of the system.
In this paper we analyze various models of the Single server queuing system with necessaryimplementation
using Matlab Software.
KEYWORDS
Entity, Queuing model, Service time, Arrival time.
1. INTRODUCTION
Simulation can be defined as a Process of designing a model of a real system and conducting
experiments with this model for the purpose of understanding the behaviour of the system.
Simulation can be applied for small and large systems. The cost of building the system is more
and simulation provides a replica of the exact model with the behaviour of the system. Direct
experimentation would cost more when compared with the simulated model of the system which
is the main motive behind simulation. Simulation helps in delivering some very important
decisions to be made by the system. It is a very efficient methodology to solve complicated
problems. Simulation provides good strategy to analyze the client-server systems and help in
better implementation of feasible solutions [1]. The Fig. 1 explains the classification of a system,
where simulation plays an important role. Simulation helps in understanding the behaviour of a
queuing system and also obtain certain very useful parameters.
Figure 1. Classification of System [2]
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
48
The queuing system is most important problem in discrete event simulation .Modeling the
process of events as a discrete sequence of events in time is Discrete event Simulation .Every
event occurs at a particular time and initiates the change of the system. No change in the system
is assumed to occur in between the occurrence of events .With the aid of simulation we would be
able to reduce the development cost of a system and analyze the faults before the actual system
can be implemented .Simulation methodology is the important basic theory of Simulation
Science and Technology [3]. We can also change the parameters and analyze the results based on
the measurement of the parameters .In the queuing model, data units are often considered as
processing elements or channels , terminals .A queuing model in which input, computation,
transmission, storage and output are discrete in time field, is called discrete queuing model. In
real life, a queue can be imagined as though to be of some people waiting in bank, usage of Atm
machines or cash counter phenomenon.
1.2. Queuing Conceptions.
A Queue has to be maintained well to synchronize between the average waiting time and the idle
time of server. The following are some of the methodology used for solving the queuing
problem.
1.2. Entity arrival model.
Every entity may obtain certain conditions or in some cases may be limitless .The arrival entity is
used to specify the arrival model .There are different probability distribution phenomenon
available in this scenario like Index distribution ,Poisson distribution ,Normal distribution etc.
We provide an overview of the Poison distribution for the arrival of entities. The Fig.2 describes
diagrammatically the process involved in the arrival of entities and their departure after service.
As per Poisson distribution in time interval t,s
In (t, t+s), the probability of entity number k is
P{N(t+s) – N(t) = k } = e – λs
(λs) k
k!
In the formula, N (t) is the number of entity arrival in (0,t). t>=0, s>=0, k=0, 1, 2, λ is the arrival
velocity. The term queuing system is used to indicate a collection of one or more waiting lines
along with a server or collection of servers that provide service to these waiting lines. Queues
may be single waiting lines, Multiple waiting lines ,Single waiting with single server, Single
waiting with multiple server, Multiple waiting with multiple servers .Some of the models are
likely to be observed in super markets. Simulation can be used for the analysis of queuing
models [4].
1.3. Basic Queuing Process
Customers requiring service are generated over time by an input source. The required service is
then performed for the customers by the service mechanism, after which the customer leaves
the queuing system. Here we analyze different scenarios of a single model server based on FIFO,
first in first out queing Process. Simulation can be done based on various tools which can be
either physical or conceptual [5]
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
49
Figure 2.Entity arrival and departure.
2.RELATED WORK
Matlab provides a simulink events library to model a system and also execute the various
parameters as required by the application .The Library has different blocks that we require to
model a discrete based system.
Figure.3 Modeling time generator.
We assume the customers as entities in of the system. Entities can be defined as discrete items to
be used to model the system. The entity generator library of sim events in Matlab provides
different blocks for the representation of entities. A Time based Generator is used as it provides
the time between the generation of Two entities .This generator is connected with the
Instantaneous Entity Scope .A signal scope provides the required result by connecting with the
necessary parameter .Here we find the average waiting time in the model as depicted in
Fig.3.The Simulation time is stated to 200 ms .The model on when simulated generates points
indicating the creation of entities as in Fig.4.We observe that the entities are generated randomly
based on the time events .Fig. 5 displays the average waiting time of the entities created. A
uniform rise in the generation of the entities as the simulation time increases.
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
50
Figure. 4 Generation of Entities.
Figure.5 Average waiting time
A FIFO queue is a first in first out queue we use this queue to be connected to the entity counting
scope. A single server block is connected from the out end of the FIFO queue block .The arrow
marks represents the flow of events in the model.Fig. 6 depicts the model of single server with a
FIFO queue Implementation. The number of entities is set to 5 in the FIFO queue. The service
time is set to 40 ms for he single server to service the entities .The parameter w indicating the
average waiting time is connected to the signal scope block. When the model is simulated we
observer that the entities arrive in a sequential order one after the other based on the FIFO queue
as shown in Fig.7.We observe a time gap of 40 ms sequentially for all the entities. A signal
scope block is connected the average waiting time parameter of the single server. The entity sink
block is connected with the out field of the single server.
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
51
Fig.6 Model of Single server.
Fig .7 Waiting time of FIFO Queue.
Fig. 8 Departure of entities after service.
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
52
We can change the parameter as per the requirement from the single server block and connect to
the signal scope block.Fig.8 displays the output when we analyze the entity departed parameter
of single server block. We observe that the entities exit after the service by the server with a time
interval of 40 ms sequentially. The average waiting time is same for all the entities during this
process as in Fig. 9.In some cases we may require a priority based queue to service special
entities priority queue assigns a number to an attribute set in the priority queue block.
Fig.9 Waiting time of single server.
Fig.10 Priority queue model
A start timer, read timer is required before and after the priority queue, to set the timings of the
queue, we set an attribute by name customers and initialize to priority of 1 i.e. high priority. We
observer the average waiting time is almost the same for all with random arrival of entities as
they are set for high priority as in Fig.11.A priority queue is modeled before the single server
,instead of signal scope to be connected to the output of single server we connect a read timer to
start the event. The signal scope and entity sink and connected to it to analyze the results.
Similarly when the priority is set to low we observe a large time gap between the service of each
entity as in Fig.12.
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
53
Fig.11 Average time High Priority Queue
Fig .12 Low Priority Queue.
Simulink allows setting various parameters on the basis of the model and as per the requirement
of the application.
International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014
54
3. CONCLUSIONS
Simulation has always been effective in study of behaviour patterns of different applications.
Simulation is the art to create a physical and conceptual model which can represent a system or
create the illusion of reality. Multiple servers are to be analyzed with different parameters,
Different applications can be modeled based on the criteria and efficient results are to be
computed. Simulation also needs to be performed on Distributed system environment.
REFERENCES
1. Y. L. Deshpande, “Roger Jenkins, & Simon Taylor,” Use of Simulation to Test Client-Server
Models, pp. 1210- 1217.
2. M. Güneş, “Figure 1 Basic Simulation Model—Modeling and Performance Analysis with
Discrete-Event Simula-tiongy,” Computer Science, Informatik 4 Communication and Distributed
Systems, Chapter 1.
3. Methodology of Simulation Science and Technology Ming Sun and Jingye Wang, 2008 Asia
Simulation Conference — 7 th Intl. Conf. on Sys. Simulation and Scientific Computing,pp:989 -
994
4. M. Güneş, “Modeling and Performance Analysis with Discrete-Event Simulationgy,” Computer
Science, Infor-matik 4 Communication and Distributed Systems, Chap-ter 1
5. S. Raczynski, “Modeling and Simulation: The Computer Science of Illusion,” 1st Edition, 2006.

More Related Content

What's hot

Multi fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageMulti fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageeSAT Publishing House
 
Multi fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageMulti fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageeSAT Journals
 
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKING
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKINGUSE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKING
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKINGcsandit
 
Summerization notes for descriptive statistics using r
Summerization notes for descriptive statistics using r Summerization notes for descriptive statistics using r
Summerization notes for descriptive statistics using r Ashwini Mathur
 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...ijcsit
 
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...IJECEIAES
 
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B cscpconf
 
Modeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event bModeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event bcsandit
 
Observations
ObservationsObservations
Observationsbutest
 
Pareto Type II Based Software Reliability Growth Model
Pareto Type II Based Software Reliability Growth ModelPareto Type II Based Software Reliability Growth Model
Pareto Type II Based Software Reliability Growth ModelWaqas Tariq
 
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...IAEME Publication
 
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...ijcsit
 
Parallel Computing - Lec 4
Parallel Computing - Lec 4Parallel Computing - Lec 4
Parallel Computing - Lec 4Shah Zaib
 
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Xin-She Yang
 

What's hot (17)

06 linked list
06 linked list06 linked list
06 linked list
 
Multi fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageMulti fractal analysis of human brain mr image
Multi fractal analysis of human brain mr image
 
Multi fractal analysis of human brain mr image
Multi fractal analysis of human brain mr imageMulti fractal analysis of human brain mr image
Multi fractal analysis of human brain mr image
 
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKING
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKINGUSE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKING
USE OF ADAPTIVE COLOURED PETRI NETWORK IN SUPPORT OF DECISIONMAKING
 
Summerization notes for descriptive statistics using r
Summerization notes for descriptive statistics using r Summerization notes for descriptive statistics using r
Summerization notes for descriptive statistics using r
 
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
USING CUCKOO ALGORITHM FOR ESTIMATING TWO GLSD PARAMETERS AND COMPARING IT WI...
 
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...
Fuzzy clustering and fuzzy c-means partition cluster analysis and validation ...
 
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
 
Modeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event bModeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event b
 
Observations
ObservationsObservations
Observations
 
Data structures
Data structuresData structures
Data structures
 
Pareto Type II Based Software Reliability Growth Model
Pareto Type II Based Software Reliability Growth ModelPareto Type II Based Software Reliability Growth Model
Pareto Type II Based Software Reliability Growth Model
 
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...
MULTIPLE HUMAN TRACKING USING RETINANET FEATURES, SIAMESE NEURAL NETWORK, AND...
 
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
COMPARISON OF WAVELET NETWORK AND LOGISTIC REGRESSION IN PREDICTING ENTERPRIS...
 
Parallel Computing - Lec 4
Parallel Computing - Lec 4Parallel Computing - Lec 4
Parallel Computing - Lec 4
 
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
Accelerated Particle Swarm Optimization and Support Vector Machine for Busine...
 
H235055
H235055H235055
H235055
 

Viewers also liked

General purpose simulation_system
General purpose simulation_systemGeneral purpose simulation_system
General purpose simulation_systemGokulananda Sahoo
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)Tushar Aneyrao
 
Simulation, Modeling, it’s application, advantage & disadvantage
Simulation, Modeling, it’s application, advantage  &  disadvantageSimulation, Modeling, it’s application, advantage  &  disadvantage
Simulation, Modeling, it’s application, advantage & disadvantageKawsar Hamid Sumon
 
Traffic simulation
Traffic simulationTraffic simulation
Traffic simulationPraful -
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationraksharao
 
Simulation of traffic at T-Junction
Simulation of traffic at T-JunctionSimulation of traffic at T-Junction
Simulation of traffic at T-JunctionAbhishek Upperwal
 
QUEUING THEORY
QUEUING THEORYQUEUING THEORY
QUEUING THEORYavtarsingh
 
Simulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsSimulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsBernd-Peter Paris
 
System simulation & modeling notes[sjbit]
System simulation & modeling notes[sjbit]System simulation & modeling notes[sjbit]
System simulation & modeling notes[sjbit]qwerty626
 

Viewers also liked (14)

Gpss nov presentation
Gpss nov presentationGpss nov presentation
Gpss nov presentation
 
GPSS interactive learning environment
GPSS interactive learning environmentGPSS interactive learning environment
GPSS interactive learning environment
 
GPSS
GPSSGPSS
GPSS
 
General purpose simulation_system
General purpose simulation_systemGeneral purpose simulation_system
General purpose simulation_system
 
General purpose simulation System (GPSS)
General purpose simulation System (GPSS)General purpose simulation System (GPSS)
General purpose simulation System (GPSS)
 
Simulation, Modeling, it’s application, advantage & disadvantage
Simulation, Modeling, it’s application, advantage  &  disadvantageSimulation, Modeling, it’s application, advantage  &  disadvantage
Simulation, Modeling, it’s application, advantage & disadvantage
 
Traffic simulation
Traffic simulationTraffic simulation
Traffic simulation
 
Major ppt
Major pptMajor ppt
Major ppt
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generation
 
Simulation of traffic at T-Junction
Simulation of traffic at T-JunctionSimulation of traffic at T-Junction
Simulation of traffic at T-Junction
 
SIMULATION
SIMULATIONSIMULATION
SIMULATION
 
QUEUING THEORY
QUEUING THEORYQUEUING THEORY
QUEUING THEORY
 
Simulation of Wireless Communication Systems
Simulation of Wireless Communication SystemsSimulation of Wireless Communication Systems
Simulation of Wireless Communication Systems
 
System simulation & modeling notes[sjbit]
System simulation & modeling notes[sjbit]System simulation & modeling notes[sjbit]
System simulation & modeling notes[sjbit]
 

Similar to Simulation analysis of single server queuing model

Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applicationsDebasisMohanty37
 
IRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET Journal
 
Towards a good abs design for more Reliable vehicles on the roads
Towards a good abs design for more Reliable vehicles on the roadsTowards a good abs design for more Reliable vehicles on the roads
Towards a good abs design for more Reliable vehicles on the roadsijcsit
 
A Survey on Wireless Network Simulators
A Survey on Wireless Network SimulatorsA Survey on Wireless Network Simulators
A Survey on Wireless Network SimulatorsjournalBEEI
 
Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra
 
Techniques to Apply Artificial Intelligence in Power Plants
Techniques to Apply Artificial Intelligence in Power PlantsTechniques to Apply Artificial Intelligence in Power Plants
Techniques to Apply Artificial Intelligence in Power Plantsijtsrd
 
A Deterministic Model Of Time For Distributed Systems
A Deterministic Model Of Time For Distributed SystemsA Deterministic Model Of Time For Distributed Systems
A Deterministic Model Of Time For Distributed SystemsJim Webb
 
Achievement for wireless
Achievement for wirelessAchievement for wireless
Achievement for wirelessijwmn
 
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...iosrjce
 
A boolean modeling for improving
A boolean modeling for improvingA boolean modeling for improving
A boolean modeling for improvingcsandit
 
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...ijcsit
 

Similar to Simulation analysis of single server queuing model (20)

Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applications
 
Ijetcas14 467
Ijetcas14 467Ijetcas14 467
Ijetcas14 467
 
IRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of Simulation
 
Simulation.ppt
Simulation.pptSimulation.ppt
Simulation.ppt
 
Towards a good abs design for more Reliable vehicles on the roads
Towards a good abs design for more Reliable vehicles on the roadsTowards a good abs design for more Reliable vehicles on the roads
Towards a good abs design for more Reliable vehicles on the roads
 
A Survey on Wireless Network Simulators
A Survey on Wireless Network SimulatorsA Survey on Wireless Network Simulators
A Survey on Wireless Network Simulators
 
Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_report
 
Techniques to Apply Artificial Intelligence in Power Plants
Techniques to Apply Artificial Intelligence in Power PlantsTechniques to Apply Artificial Intelligence in Power Plants
Techniques to Apply Artificial Intelligence in Power Plants
 
Final
FinalFinal
Final
 
Pdp12
Pdp12Pdp12
Pdp12
 
Minimize Staleness and Stretch in Streaming Data Warehouses
Minimize Staleness and Stretch in Streaming Data WarehousesMinimize Staleness and Stretch in Streaming Data Warehouses
Minimize Staleness and Stretch in Streaming Data Warehouses
 
A Deterministic Model Of Time For Distributed Systems
A Deterministic Model Of Time For Distributed SystemsA Deterministic Model Of Time For Distributed Systems
A Deterministic Model Of Time For Distributed Systems
 
Unit i
Unit iUnit i
Unit i
 
MODELING & SIMULATION.docx
MODELING & SIMULATION.docxMODELING & SIMULATION.docx
MODELING & SIMULATION.docx
 
Achievement for wireless
Achievement for wirelessAchievement for wireless
Achievement for wireless
 
D017311724
D017311724D017311724
D017311724
 
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
Model Based Software Timing Analysis Using Sequence Diagram for Commercial Ap...
 
A boolean modeling for improving
A boolean modeling for improvingA boolean modeling for improving
A boolean modeling for improving
 
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
STATISTICAL APPROACH TO DETERMINE MOST EFFICIENT VALUE FOR TIME QUANTUM IN RO...
 
Tutorial marzo2011 villen
Tutorial marzo2011 villenTutorial marzo2011 villen
Tutorial marzo2011 villen
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

Simulation analysis of single server queuing model

  • 1. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 DOI : 10.5121/ijit.2014.3305 47 Simulation :Analysis of Single Server Queuing Model Syed Shujauddin Sameer1 1 Department of Computer Science Engineering, King Khaled Univeristy,Abha,Saudi Arabia ABSTRACT A queue is a line of people or things to be handled in a sequential order. It is a sequence of objects that are waiting to be processed. Queuing theory is the study of queues for managing process and objects. Simulation has been applied successfully for modeling small and large complex systems and understanding queuing behavior. Analysis of the models helps to increases the performance of the system. In this paper we analyze various models of the Single server queuing system with necessaryimplementation using Matlab Software. KEYWORDS Entity, Queuing model, Service time, Arrival time. 1. INTRODUCTION Simulation can be defined as a Process of designing a model of a real system and conducting experiments with this model for the purpose of understanding the behaviour of the system. Simulation can be applied for small and large systems. The cost of building the system is more and simulation provides a replica of the exact model with the behaviour of the system. Direct experimentation would cost more when compared with the simulated model of the system which is the main motive behind simulation. Simulation helps in delivering some very important decisions to be made by the system. It is a very efficient methodology to solve complicated problems. Simulation provides good strategy to analyze the client-server systems and help in better implementation of feasible solutions [1]. The Fig. 1 explains the classification of a system, where simulation plays an important role. Simulation helps in understanding the behaviour of a queuing system and also obtain certain very useful parameters. Figure 1. Classification of System [2]
  • 2. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 48 The queuing system is most important problem in discrete event simulation .Modeling the process of events as a discrete sequence of events in time is Discrete event Simulation .Every event occurs at a particular time and initiates the change of the system. No change in the system is assumed to occur in between the occurrence of events .With the aid of simulation we would be able to reduce the development cost of a system and analyze the faults before the actual system can be implemented .Simulation methodology is the important basic theory of Simulation Science and Technology [3]. We can also change the parameters and analyze the results based on the measurement of the parameters .In the queuing model, data units are often considered as processing elements or channels , terminals .A queuing model in which input, computation, transmission, storage and output are discrete in time field, is called discrete queuing model. In real life, a queue can be imagined as though to be of some people waiting in bank, usage of Atm machines or cash counter phenomenon. 1.2. Queuing Conceptions. A Queue has to be maintained well to synchronize between the average waiting time and the idle time of server. The following are some of the methodology used for solving the queuing problem. 1.2. Entity arrival model. Every entity may obtain certain conditions or in some cases may be limitless .The arrival entity is used to specify the arrival model .There are different probability distribution phenomenon available in this scenario like Index distribution ,Poisson distribution ,Normal distribution etc. We provide an overview of the Poison distribution for the arrival of entities. The Fig.2 describes diagrammatically the process involved in the arrival of entities and their departure after service. As per Poisson distribution in time interval t,s In (t, t+s), the probability of entity number k is P{N(t+s) – N(t) = k } = e – λs (λs) k k! In the formula, N (t) is the number of entity arrival in (0,t). t>=0, s>=0, k=0, 1, 2, λ is the arrival velocity. The term queuing system is used to indicate a collection of one or more waiting lines along with a server or collection of servers that provide service to these waiting lines. Queues may be single waiting lines, Multiple waiting lines ,Single waiting with single server, Single waiting with multiple server, Multiple waiting with multiple servers .Some of the models are likely to be observed in super markets. Simulation can be used for the analysis of queuing models [4]. 1.3. Basic Queuing Process Customers requiring service are generated over time by an input source. The required service is then performed for the customers by the service mechanism, after which the customer leaves the queuing system. Here we analyze different scenarios of a single model server based on FIFO, first in first out queing Process. Simulation can be done based on various tools which can be either physical or conceptual [5]
  • 3. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 49 Figure 2.Entity arrival and departure. 2.RELATED WORK Matlab provides a simulink events library to model a system and also execute the various parameters as required by the application .The Library has different blocks that we require to model a discrete based system. Figure.3 Modeling time generator. We assume the customers as entities in of the system. Entities can be defined as discrete items to be used to model the system. The entity generator library of sim events in Matlab provides different blocks for the representation of entities. A Time based Generator is used as it provides the time between the generation of Two entities .This generator is connected with the Instantaneous Entity Scope .A signal scope provides the required result by connecting with the necessary parameter .Here we find the average waiting time in the model as depicted in Fig.3.The Simulation time is stated to 200 ms .The model on when simulated generates points indicating the creation of entities as in Fig.4.We observe that the entities are generated randomly based on the time events .Fig. 5 displays the average waiting time of the entities created. A uniform rise in the generation of the entities as the simulation time increases.
  • 4. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 50 Figure. 4 Generation of Entities. Figure.5 Average waiting time A FIFO queue is a first in first out queue we use this queue to be connected to the entity counting scope. A single server block is connected from the out end of the FIFO queue block .The arrow marks represents the flow of events in the model.Fig. 6 depicts the model of single server with a FIFO queue Implementation. The number of entities is set to 5 in the FIFO queue. The service time is set to 40 ms for he single server to service the entities .The parameter w indicating the average waiting time is connected to the signal scope block. When the model is simulated we observer that the entities arrive in a sequential order one after the other based on the FIFO queue as shown in Fig.7.We observe a time gap of 40 ms sequentially for all the entities. A signal scope block is connected the average waiting time parameter of the single server. The entity sink block is connected with the out field of the single server.
  • 5. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 51 Fig.6 Model of Single server. Fig .7 Waiting time of FIFO Queue. Fig. 8 Departure of entities after service.
  • 6. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 52 We can change the parameter as per the requirement from the single server block and connect to the signal scope block.Fig.8 displays the output when we analyze the entity departed parameter of single server block. We observe that the entities exit after the service by the server with a time interval of 40 ms sequentially. The average waiting time is same for all the entities during this process as in Fig. 9.In some cases we may require a priority based queue to service special entities priority queue assigns a number to an attribute set in the priority queue block. Fig.9 Waiting time of single server. Fig.10 Priority queue model A start timer, read timer is required before and after the priority queue, to set the timings of the queue, we set an attribute by name customers and initialize to priority of 1 i.e. high priority. We observer the average waiting time is almost the same for all with random arrival of entities as they are set for high priority as in Fig.11.A priority queue is modeled before the single server ,instead of signal scope to be connected to the output of single server we connect a read timer to start the event. The signal scope and entity sink and connected to it to analyze the results. Similarly when the priority is set to low we observe a large time gap between the service of each entity as in Fig.12.
  • 7. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 53 Fig.11 Average time High Priority Queue Fig .12 Low Priority Queue. Simulink allows setting various parameters on the basis of the model and as per the requirement of the application.
  • 8. International Journal on Information Theory (IJIT), Vol.3, No.3, July 2014 54 3. CONCLUSIONS Simulation has always been effective in study of behaviour patterns of different applications. Simulation is the art to create a physical and conceptual model which can represent a system or create the illusion of reality. Multiple servers are to be analyzed with different parameters, Different applications can be modeled based on the criteria and efficient results are to be computed. Simulation also needs to be performed on Distributed system environment. REFERENCES 1. Y. L. Deshpande, “Roger Jenkins, & Simon Taylor,” Use of Simulation to Test Client-Server Models, pp. 1210- 1217. 2. M. Güneş, “Figure 1 Basic Simulation Model—Modeling and Performance Analysis with Discrete-Event Simula-tiongy,” Computer Science, Informatik 4 Communication and Distributed Systems, Chapter 1. 3. Methodology of Simulation Science and Technology Ming Sun and Jingye Wang, 2008 Asia Simulation Conference — 7 th Intl. Conf. on Sys. Simulation and Scientific Computing,pp:989 - 994 4. M. Güneş, “Modeling and Performance Analysis with Discrete-Event Simulationgy,” Computer Science, Infor-matik 4 Communication and Distributed Systems, Chap-ter 1 5. S. Raczynski, “Modeling and Simulation: The Computer Science of Illusion,” 1st Edition, 2006.