SlideShare a Scribd company logo
1 of 7
A project on Client/server System
This project is about a client/server architecture where clients’
sends request to the server to access the resources on it based
on the rules set. A client always initiates a request and a server
always guarantees to eventually accept a request. Subsequently,
spontaneous communication that can lead to deadlock is not
allowed. A server may not be able to provide all of the service
required of its client locally, In which case, the server may
make a client request of another server on behalf of the original
client. The clients are not meant to do any serious work in
between. Client uses one different reply channel. This ensures
that it receives the reply from a server (Server).
Project Basic-model
Our project sample model involves many client requests to a
server and an example of it is shown in the figure 1 below.
Figure 1. Project basic model
Client definition
A net is a client if it includes transitions which are associated to
services supplied by other nets (in our case a server), and the
occurrence of such a transition causes a call to the service it is
associated to.
A client request is controlled by a queue place (waiting place)
before it is send to the server. Figure 2 shows the connections
of the client request and the transitions to get access to the
server with a queuing place (waiting place) in first in first out
(FIFO) policy.
Figure 2. Client request with queuing place
A simple Client Request and Reply for transmission
A client generates a request at time λi (lambda) which and then
controlled by a queue play which then transmits a request at
time µi (mu) to the server and it also takes the server time β
(beta) to reply to transmission as it is shown in the figure 3
below.
Figure 3. Simple client request and reply for transmission
Our Overall Project Model using Generalized Stochastic Petri
Nets
The overall model of our project on a client/server (two clients
and one server) system where a server processing a client
request in First In First Out policy, with an idle period,
processing time and with the server being able to process three
requests at most is shown in figure 4 below.
The following below are the descriptions/definitions of the most
important places and transitions of our project.
· Client1 – place for clients generating request at time λ1
· Client2 – place for clients generating request at time λ2
· Server – place for a sever with a rate of three (3) buffers of
request at most
· ProcessedClient1Request – place to store processed Client1
request before reply of transmission
· ProcessedClient2Request – place to store processed Client2
request before reply of transmission
· Queue(FIFO)– place in a server for queuing requests with
FIFO policy
· Server_Idle – place to indicating the idle period of a server
which between the two transmission rates (µ1, µ2) and
processing rate (η1, η2)
· λ1 – Timed transition for sending (firing tokens) requests
generated by client1
· λ2 – Timed transition for sending (firing tokens) requests
generated by client2
· µ1- Timed transition for transmitting client1 requests to the
server
· µ2- Timed transition for transmitting client2 requests to the
server
· ηi – Timed transition for processing client requests by a server
according to FIFO policy and at most three requests
· β_Client1_reply_transmission – Timed transition for replying
(reply channel) to client1 after the requests are being processed
by server or transmitted to server (βi)
· β_Client2_reply_transmission – Timed transition for replying
(reply channel) to a client2 after the requests are being
processed by server or transmitted to server (βi)
· t0 – immediate transition to return server resources after
processing client1 request
· t1 – immediate transition to return server resources after
processing client2 request
Parameters:
λ1 = 4.2ms
λ2 = 3.3ms
µ1 = 0.1ms
µ2 = 0.15ms
η1 = 2.0ms
η1 = 3.0ms
βi = 3.2ms
Figure 4. Overall project model
Project Description of Token movement with Markings
At the initial state of the model only three places have tokens
that’s Client1, Client2 and Server with the consideration that a
server with three processors to buffer three requests at most at a
processing time of ηi has marking as follows:
M={Client1(1),Client2(1),Queue(FIFO)(0),Server(1),Processed
Client1Request(0), ProcessedClient2Request(0),Server_Idle(0)}
or in short M = {1,1,0,1,0,0, 0}.
When the Clients station generates requests and transition λ1,
λ2 fires, the tokens moved to theQueue(FIFO)and the marking
becomes M = {0,0,1,1,0,0,0}.
When the tokens arrived at the placeQueue(FIFO) and the
transition µ1, µ2 fires, the tokens get to the Sever for
processing and also within this period another clients can also
generate a request and the marking becomes M =
{1,1,0,1,0,0,0}.
When the server finishes processing, transition η1, η2 fires and
the tokens moved to the place ProcessedClient1Request and
ProcessedClient2Request, server becomes idle, another token
may also arrived in the Queue(FIFO) and also a new request
generated by the Clients and the marking becomes M =
{1,1,1,0,1,1,1}.
NB: The markings can change depending on the number of
clients request which we call N (maximum number of tokens)
and the tokens continue to move from one place to the other
through the transitions based on the FIFO policy and also only
three requests can be buffered by the Server at most at a time ηi
(of transitions).
The Idle time is the time between the two transmission rates
(µ1, µ2) and processing rate (η1, η2)
Also the waiting time can be computed from Little’s law which
is
N = λ ・ R and also R = waiting time + service time.
Model Name : fahadNav
Owner : SHARPE Project Group
Date Created : Sat Feb 22 12:19:41 GMT 2020
Comment :
Client/server with FIFO policy
CommentEnd
SubModel : fahadNavet
Type : GSPN Model
Distributed system analysis
Client/server system
Let us consider a client/server system where a server station
receives
requests from client stations, processes the request and replies
to the client
station. The i-th client-station generates requests following an
exponential
distribution with rate λi and the transmission time of the request
to the
server is also exponentially distributed with parameter µi. Other
times, all
assumed exponentially distributed, are: the time to process a
request from
the i-th client (rate ηi), and the reply transmission time (rate β
for all the
clients). Assuming that the requests to the server are managed
according to
a First In First Out policy, and the server is able to buffer three
requests at
most, evaluate:
1. The transient probability the server is idle till time t = 500
ms;
2. The transient throughput of the server;
3. The steady state utilization of the server;
4. The lost probability at steady state for both the clients;
assuming the parameters as in Table 1.
parameter
λ−11 4.2 ms
λ−12 3.3 ms
µ−11 0.1 ms
µ−12 0.15 ms
η−11 2.0 ms
η−12 3.0 ms
β−1 3.2 ms
Table 1: System parameter values
1
A project on Clientserver SystemThis project is about a client

More Related Content

Similar to A project on Clientserver SystemThis project is about a client

queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in bankingMani Deep
 
In C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdfIn C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdfankitsrivastava681882
 
COMMUNICATION IN DISTRIBUTED SYSTEMS
COMMUNICATION IN DISTRIBUTED SYSTEMSCOMMUNICATION IN DISTRIBUTED SYSTEMS
COMMUNICATION IN DISTRIBUTED SYSTEMSSaji banu
 
Transport layer
Transport layerTransport layer
Transport layersteffy1996
 
Flow control
Flow controlFlow control
Flow controlsteffy D
 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed ComputingAbhishek Jaisingh
 
Flow control
Flow controlFlow control
Flow controlSTEFFY D
 
Clock Synchronization in Distributed Systems
Clock Synchronization in Distributed SystemsClock Synchronization in Distributed Systems
Clock Synchronization in Distributed SystemsIRJET Journal
 
iiwas 2010
iiwas 2010iiwas 2010
iiwas 2010steccami
 
Decision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdfDecision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdfKhushbooJoshiSBS
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middlewaresanjoysanyal
 

Similar to A project on Clientserver SystemThis project is about a client (20)

Rate limiting
Rate limitingRate limiting
Rate limiting
 
queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in banking
 
In C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdfIn C programming please CSCI 4534 Operating Systems Program.pdf
In C programming please CSCI 4534 Operating Systems Program.pdf
 
COMMUNICATION IN DISTRIBUTED SYSTEMS
COMMUNICATION IN DISTRIBUTED SYSTEMSCOMMUNICATION IN DISTRIBUTED SYSTEMS
COMMUNICATION IN DISTRIBUTED SYSTEMS
 
J41035862
J41035862J41035862
J41035862
 
Remote Procedure Call
Remote Procedure CallRemote Procedure Call
Remote Procedure Call
 
Transport layer
Transport layerTransport layer
Transport layer
 
Flow control
Flow controlFlow control
Flow control
 
Lecture9
Lecture9Lecture9
Lecture9
 
DES
DES DES
DES
 
Client server model
Client server modelClient server model
Client server model
 
Intake 37 12
Intake 37 12Intake 37 12
Intake 37 12
 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed Computing
 
Flow control
Flow controlFlow control
Flow control
 
Virtual migration cloud
Virtual migration cloudVirtual migration cloud
Virtual migration cloud
 
Clock Synchronization in Distributed Systems
Clock Synchronization in Distributed SystemsClock Synchronization in Distributed Systems
Clock Synchronization in Distributed Systems
 
iiwas 2010
iiwas 2010iiwas 2010
iiwas 2010
 
Unit 3 des
Unit 3 desUnit 3 des
Unit 3 des
 
Decision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdfDecision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdf
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middleware
 

More from latashiadegale

Adolescent pregnancy is viewed as a high-risk situation due to t
Adolescent pregnancy is viewed as a high-risk situation due to tAdolescent pregnancy is viewed as a high-risk situation due to t
Adolescent pregnancy is viewed as a high-risk situation due to tlatashiadegale
 
Advanced Filtering Please respond to the followingDescrib
Advanced Filtering Please respond to the followingDescribAdvanced Filtering Please respond to the followingDescrib
Advanced Filtering Please respond to the followingDescriblatashiadegale
 
Aegean  1. Describe the human figurines found in and around Cycladic
Aegean  1. Describe the human figurines found in and around CycladicAegean  1. Describe the human figurines found in and around Cycladic
Aegean  1. Describe the human figurines found in and around Cycladiclatashiadegale
 
Aegean1. Describe the human figurines found in and around Cyclad
Aegean1. Describe the human figurines found in and around CycladAegean1. Describe the human figurines found in and around Cyclad
Aegean1. Describe the human figurines found in and around Cycladlatashiadegale
 
Advocating Through PolicyAs noted by Dr. Stanley and Dr. W
Advocating Through PolicyAs noted by Dr. Stanley and Dr. WAdvocating Through PolicyAs noted by Dr. Stanley and Dr. W
Advocating Through PolicyAs noted by Dr. Stanley and Dr. Wlatashiadegale
 
After careful review of your Phase 4 report addressing complianc
After careful review of your Phase 4 report addressing compliancAfter careful review of your Phase 4 report addressing complianc
After careful review of your Phase 4 report addressing complianclatashiadegale
 
Affirmative Action is college admissions is one of the most controve
Affirmative Action is college admissions is one of the most controveAffirmative Action is college admissions is one of the most controve
Affirmative Action is college admissions is one of the most controvelatashiadegale
 
Adequate Standard of Living The argument that an adequa
Adequate Standard of Living The argument that an adequaAdequate Standard of Living The argument that an adequa
Adequate Standard of Living The argument that an adequalatashiadegale
 
Affirmative Action and Harassment  Please respond to the following
Affirmative Action and Harassment  Please respond to the followingAffirmative Action and Harassment  Please respond to the following
Affirmative Action and Harassment  Please respond to the followinglatashiadegale
 
Advances over the last few decades have brought innovative and creat
Advances over the last few decades have brought innovative and creatAdvances over the last few decades have brought innovative and creat
Advances over the last few decades have brought innovative and creatlatashiadegale
 
Advertising and Media Techniques Assignment   Select an adver
Advertising and Media Techniques Assignment   Select an adverAdvertising and Media Techniques Assignment   Select an adver
Advertising and Media Techniques Assignment   Select an adverlatashiadegale
 
Advanced Layout Notebook We will explore the following InDesign ski
Advanced Layout Notebook We will explore the following InDesign skiAdvanced Layout Notebook We will explore the following InDesign ski
Advanced Layout Notebook We will explore the following InDesign skilatashiadegale
 
Advanced Filtering Please respond to the followingDescr
Advanced Filtering Please respond to the followingDescrAdvanced Filtering Please respond to the followingDescr
Advanced Filtering Please respond to the followingDescrlatashiadegale
 
address the following questions in a 1250 word research paperHo
address the following questions in a 1250 word research paperHoaddress the following questions in a 1250 word research paperHo
address the following questions in a 1250 word research paperHolatashiadegale
 
Address the following in 3–4 pages  •How do theory, ideology, and e
Address the following in 3–4 pages  •How do theory, ideology, and eAddress the following in 3–4 pages  •How do theory, ideology, and e
Address the following in 3–4 pages  •How do theory, ideology, and elatashiadegale
 
Address the following in 1–2 pages  Explain the followin
Address the following in 1–2 pages     Explain the followinAddress the following in 1–2 pages     Explain the followin
Address the following in 1–2 pages  Explain the followinlatashiadegale
 
Address both the historical event (or topic within its time-fram
Address both the historical event (or topic within its time-framAddress both the historical event (or topic within its time-fram
Address both the historical event (or topic within its time-framlatashiadegale
 
Add the following sections to the outline. A sample is attached. The
Add the following sections to the outline. A sample is attached. TheAdd the following sections to the outline. A sample is attached. The
Add the following sections to the outline. A sample is attached. Thelatashiadegale
 
Add a 1- to 2-page section to your PlaybookRunbook that inclu
Add a 1- to 2-page section to your PlaybookRunbook that incluAdd a 1- to 2-page section to your PlaybookRunbook that inclu
Add a 1- to 2-page section to your PlaybookRunbook that inclulatashiadegale
 
Acute and long-term care are two significantly different health  ser
Acute and long-term care are two significantly different health  serAcute and long-term care are two significantly different health  ser
Acute and long-term care are two significantly different health  serlatashiadegale
 

More from latashiadegale (20)

Adolescent pregnancy is viewed as a high-risk situation due to t
Adolescent pregnancy is viewed as a high-risk situation due to tAdolescent pregnancy is viewed as a high-risk situation due to t
Adolescent pregnancy is viewed as a high-risk situation due to t
 
Advanced Filtering Please respond to the followingDescrib
Advanced Filtering Please respond to the followingDescribAdvanced Filtering Please respond to the followingDescrib
Advanced Filtering Please respond to the followingDescrib
 
Aegean  1. Describe the human figurines found in and around Cycladic
Aegean  1. Describe the human figurines found in and around CycladicAegean  1. Describe the human figurines found in and around Cycladic
Aegean  1. Describe the human figurines found in and around Cycladic
 
Aegean1. Describe the human figurines found in and around Cyclad
Aegean1. Describe the human figurines found in and around CycladAegean1. Describe the human figurines found in and around Cyclad
Aegean1. Describe the human figurines found in and around Cyclad
 
Advocating Through PolicyAs noted by Dr. Stanley and Dr. W
Advocating Through PolicyAs noted by Dr. Stanley and Dr. WAdvocating Through PolicyAs noted by Dr. Stanley and Dr. W
Advocating Through PolicyAs noted by Dr. Stanley and Dr. W
 
After careful review of your Phase 4 report addressing complianc
After careful review of your Phase 4 report addressing compliancAfter careful review of your Phase 4 report addressing complianc
After careful review of your Phase 4 report addressing complianc
 
Affirmative Action is college admissions is one of the most controve
Affirmative Action is college admissions is one of the most controveAffirmative Action is college admissions is one of the most controve
Affirmative Action is college admissions is one of the most controve
 
Adequate Standard of Living The argument that an adequa
Adequate Standard of Living The argument that an adequaAdequate Standard of Living The argument that an adequa
Adequate Standard of Living The argument that an adequa
 
Affirmative Action and Harassment  Please respond to the following
Affirmative Action and Harassment  Please respond to the followingAffirmative Action and Harassment  Please respond to the following
Affirmative Action and Harassment  Please respond to the following
 
Advances over the last few decades have brought innovative and creat
Advances over the last few decades have brought innovative and creatAdvances over the last few decades have brought innovative and creat
Advances over the last few decades have brought innovative and creat
 
Advertising and Media Techniques Assignment   Select an adver
Advertising and Media Techniques Assignment   Select an adverAdvertising and Media Techniques Assignment   Select an adver
Advertising and Media Techniques Assignment   Select an adver
 
Advanced Layout Notebook We will explore the following InDesign ski
Advanced Layout Notebook We will explore the following InDesign skiAdvanced Layout Notebook We will explore the following InDesign ski
Advanced Layout Notebook We will explore the following InDesign ski
 
Advanced Filtering Please respond to the followingDescr
Advanced Filtering Please respond to the followingDescrAdvanced Filtering Please respond to the followingDescr
Advanced Filtering Please respond to the followingDescr
 
address the following questions in a 1250 word research paperHo
address the following questions in a 1250 word research paperHoaddress the following questions in a 1250 word research paperHo
address the following questions in a 1250 word research paperHo
 
Address the following in 3–4 pages  •How do theory, ideology, and e
Address the following in 3–4 pages  •How do theory, ideology, and eAddress the following in 3–4 pages  •How do theory, ideology, and e
Address the following in 3–4 pages  •How do theory, ideology, and e
 
Address the following in 1–2 pages  Explain the followin
Address the following in 1–2 pages     Explain the followinAddress the following in 1–2 pages     Explain the followin
Address the following in 1–2 pages  Explain the followin
 
Address both the historical event (or topic within its time-fram
Address both the historical event (or topic within its time-framAddress both the historical event (or topic within its time-fram
Address both the historical event (or topic within its time-fram
 
Add the following sections to the outline. A sample is attached. The
Add the following sections to the outline. A sample is attached. TheAdd the following sections to the outline. A sample is attached. The
Add the following sections to the outline. A sample is attached. The
 
Add a 1- to 2-page section to your PlaybookRunbook that inclu
Add a 1- to 2-page section to your PlaybookRunbook that incluAdd a 1- to 2-page section to your PlaybookRunbook that inclu
Add a 1- to 2-page section to your PlaybookRunbook that inclu
 
Acute and long-term care are two significantly different health  ser
Acute and long-term care are two significantly different health  serAcute and long-term care are two significantly different health  ser
Acute and long-term care are two significantly different health  ser
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

A project on Clientserver SystemThis project is about a client

  • 1. A project on Client/server System This project is about a client/server architecture where clients’ sends request to the server to access the resources on it based on the rules set. A client always initiates a request and a server always guarantees to eventually accept a request. Subsequently, spontaneous communication that can lead to deadlock is not allowed. A server may not be able to provide all of the service required of its client locally, In which case, the server may make a client request of another server on behalf of the original client. The clients are not meant to do any serious work in between. Client uses one different reply channel. This ensures that it receives the reply from a server (Server). Project Basic-model Our project sample model involves many client requests to a server and an example of it is shown in the figure 1 below. Figure 1. Project basic model Client definition A net is a client if it includes transitions which are associated to services supplied by other nets (in our case a server), and the occurrence of such a transition causes a call to the service it is associated to. A client request is controlled by a queue place (waiting place) before it is send to the server. Figure 2 shows the connections of the client request and the transitions to get access to the server with a queuing place (waiting place) in first in first out (FIFO) policy. Figure 2. Client request with queuing place A simple Client Request and Reply for transmission A client generates a request at time λi (lambda) which and then controlled by a queue play which then transmits a request at time µi (mu) to the server and it also takes the server time β
  • 2. (beta) to reply to transmission as it is shown in the figure 3 below. Figure 3. Simple client request and reply for transmission Our Overall Project Model using Generalized Stochastic Petri Nets The overall model of our project on a client/server (two clients and one server) system where a server processing a client request in First In First Out policy, with an idle period, processing time and with the server being able to process three requests at most is shown in figure 4 below. The following below are the descriptions/definitions of the most important places and transitions of our project. · Client1 – place for clients generating request at time λ1 · Client2 – place for clients generating request at time λ2 · Server – place for a sever with a rate of three (3) buffers of request at most · ProcessedClient1Request – place to store processed Client1 request before reply of transmission · ProcessedClient2Request – place to store processed Client2 request before reply of transmission · Queue(FIFO)– place in a server for queuing requests with FIFO policy · Server_Idle – place to indicating the idle period of a server which between the two transmission rates (µ1, µ2) and processing rate (η1, η2) · λ1 – Timed transition for sending (firing tokens) requests generated by client1 · λ2 – Timed transition for sending (firing tokens) requests generated by client2 · µ1- Timed transition for transmitting client1 requests to the server · µ2- Timed transition for transmitting client2 requests to the server
  • 3. · ηi – Timed transition for processing client requests by a server according to FIFO policy and at most three requests · β_Client1_reply_transmission – Timed transition for replying (reply channel) to client1 after the requests are being processed by server or transmitted to server (βi) · β_Client2_reply_transmission – Timed transition for replying (reply channel) to a client2 after the requests are being processed by server or transmitted to server (βi) · t0 – immediate transition to return server resources after processing client1 request · t1 – immediate transition to return server resources after processing client2 request Parameters: λ1 = 4.2ms λ2 = 3.3ms µ1 = 0.1ms µ2 = 0.15ms η1 = 2.0ms η1 = 3.0ms βi = 3.2ms Figure 4. Overall project model Project Description of Token movement with Markings At the initial state of the model only three places have tokens that’s Client1, Client2 and Server with the consideration that a server with three processors to buffer three requests at most at a processing time of ηi has marking as follows: M={Client1(1),Client2(1),Queue(FIFO)(0),Server(1),Processed Client1Request(0), ProcessedClient2Request(0),Server_Idle(0)} or in short M = {1,1,0,1,0,0, 0}.
  • 4. When the Clients station generates requests and transition λ1, λ2 fires, the tokens moved to theQueue(FIFO)and the marking becomes M = {0,0,1,1,0,0,0}. When the tokens arrived at the placeQueue(FIFO) and the transition µ1, µ2 fires, the tokens get to the Sever for processing and also within this period another clients can also generate a request and the marking becomes M = {1,1,0,1,0,0,0}. When the server finishes processing, transition η1, η2 fires and the tokens moved to the place ProcessedClient1Request and ProcessedClient2Request, server becomes idle, another token may also arrived in the Queue(FIFO) and also a new request generated by the Clients and the marking becomes M = {1,1,1,0,1,1,1}. NB: The markings can change depending on the number of clients request which we call N (maximum number of tokens) and the tokens continue to move from one place to the other through the transitions based on the FIFO policy and also only three requests can be buffered by the Server at most at a time ηi (of transitions). The Idle time is the time between the two transmission rates (µ1, µ2) and processing rate (η1, η2) Also the waiting time can be computed from Little’s law which is N = λ ・ R and also R = waiting time + service time. Model Name : fahadNav Owner : SHARPE Project Group
  • 5. Date Created : Sat Feb 22 12:19:41 GMT 2020 Comment : Client/server with FIFO policy CommentEnd SubModel : fahadNavet Type : GSPN Model Distributed system analysis Client/server system Let us consider a client/server system where a server station receives requests from client stations, processes the request and replies to the client station. The i-th client-station generates requests following an exponential distribution with rate λi and the transmission time of the request to the server is also exponentially distributed with parameter µi. Other
  • 6. times, all assumed exponentially distributed, are: the time to process a request from the i-th client (rate ηi), and the reply transmission time (rate β for all the clients). Assuming that the requests to the server are managed according to a First In First Out policy, and the server is able to buffer three requests at most, evaluate: 1. The transient probability the server is idle till time t = 500 ms; 2. The transient throughput of the server; 3. The steady state utilization of the server; 4. The lost probability at steady state for both the clients; assuming the parameters as in Table 1. parameter λ−11 4.2 ms λ−12 3.3 ms µ−11 0.1 ms µ−12 0.15 ms η−11 2.0 ms η−12 3.0 ms β−1 3.2 ms Table 1: System parameter values 1