Docsity

Exam Questions in Computer Science: Network Design and Queuing Systems, Exams of Networking

Toggle sidebar
bg1
Cork Institute of Technology
Bachelor of Science (Honours) in Software Development and Computer
Networking – Award
(NFQ Level 8)
Network Design
Autumn 2007
(Duration: 2 Hours)
Answer any four questions for full marks Examiners: Dr. A. Kinsella
Dr. J. Buckley
Dr Dirk Pesch
Dr Susan Rea
Q1.
(a) Consider a LAN with a large number of PCs each running a database client
application and a single database server. The server receives 24 database queries
per minute during normal operation according to a Poisson process. The database
requires 0.8 seconds on average to process a query. The processing time is
exponentially distributed. Assume that access and transmission delays on the LAN
are negligible.
(i) Calculate the total time each user has to wait until she receives a reply to her
query using a suitable queuing model.
(ii) By what percentage does the average query processing time need to be
decreased in order to maintain the delay calculated in part i) of the question
when queries are received at a rate of 44 per minute?
[10 marks]
(b) A transmission system, comprising of a single transmission line and a multiplexer,
is shared among 8 computer systems. Data packets of a fixed size of 256bytes are
generated by each computer systems according to a Poisson process with rate λ =
0.75/sec. The multiplexer aggregates the packet streams coming from the computer
systems and transmits data at 6 different data rates; rate R1 = 4.8kbit/s is available
10% of the time, rate R2 = 9.6kbit/s, 20% of the time, rate R3 = 19.2kbit/s, 25% of
the time, rate R4 = 28.8kbit/s, 25% of the time, rate R5 = 56kbit/s, 10% of the time,
and rate R6 = 64kbit/s is available 10% of the time.
(i) Calculate the throughput of the system.
(ii) Calculate the average delay data packets experience in the multiplexer before
transmission.
(iii) What single data rate would be required for the output line of the multiplexer if
the packet size was exponentially distributed with mean size of 256bytes and
the arrival rate/process was as before?
[15 marks]
[Total: 25 marks]
pf3
pf4
pf5

Partial preview of the text

Download Exam Questions in Computer Science: Network Design and Queuing Systems and more Exams Networking in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science (Honours) in Software Development and Computer

Networking – Award

(NFQ Level 8)

Network Design

Autumn 2007

(Duration: 2 Hours)

Answer any four questions for full marks Examiners: Dr. A. Kinsella Dr. J. Buckley Dr Dirk Pesch Dr Susan Rea Q1.

(a) Consider a LAN with a large number of PCs each running a database client application and a single database server. The server receives 24 database queries per minute during normal operation according to a Poisson process. The database requires 0.8 seconds on average to process a query. The processing time is exponentially distributed. Assume that access and transmission delays on the LAN are negligible. (i) Calculate the total time each user has to wait until she receives a reply to her query using a suitable queuing model. (ii) By what percentage does the average query processing time need to be decreased in order to maintain the delay calculated in part i) of the question when queries are received at a rate of 44 per minute? [10 marks]

(b) A transmission system, comprising of a single transmission line and a multiplexer, is shared among 8 computer systems. Data packets of a fixed size of 256bytes are generated by each computer systems according to a Poisson process with rate λ = 0.75/sec. The multiplexer aggregates the packet streams coming from the computer systems and transmits data at 6 different data rates; rate R 1 = 4.8kbit/s is available 10% of the time, rate R 2 = 9.6kbit/s, 20% of the time, rate R 3 = 19.2kbit/s, 25% of the time, rate R 4 = 28.8kbit/s, 25% of the time, rate R 5 = 56kbit/s, 10% of the time, and rate R 6 = 64kbit/s is available 10% of the time. (i) Calculate the throughput of the system. (ii) Calculate the average delay data packets experience in the multiplexer before transmission. (iii) What single data rate would be required for the output line of the multiplexer if the packet size was exponentially distributed with mean size of 256bytes and the arrival rate/process was as before? [15 marks]

Q2.

(a) A small Private Automatic Branch Exchange (PABX) telephone system provides 20 internal telephone connections and has 4 external lines. Call generation rate per internal telephone connection is 2 per hour with 25% of all telephone calls having outside destinations. The average call holding time is 150 seconds.

(i) Calculate the external call blocking probability for the PABX. (ii) How many external lines (rounded to the nearest integer) would be required to maintain an external call blocking probability of less than 2%. [15 marks]

(b) The input to a router is a data packet stream modelled by a Poisson process with arrival rate λ = 100 packets/sec. The length of the data packets is exponentially distributed with mean L = 512bytes. (i) Assume that the router has m = 5 output lines of data rate R = 96kbit/s, which transmit packets from the head of the queue. Calculate the probability that arriving packets have to queue before transmission. (ii) Assume that the 5 output lines are aggregated into a single output line of data rate R = 480kb/s. Calculate the probability that an arriving packet has to queue for this case. [10 marks] [Total: 25 marks] Q3.

(a) The queuing network shown in Figure 1 is given. Calculate the average queue length and average queuing delay for each of the four queues. The parameter values shown are as follows: r 1 = 2/sec, all other r (^) i = 0. μ 1 = 2.5/sec, μ 2 = 3.5/sec, μ 3 = 3/sec, μ 4 = 1.5/sec p 12 = 1.0, p 23 = 0.4, p 32 = 0.5, p 34 = 0.5, p 43 = 1.0, all other pij = 0.

μ 1 μ (^2)

μ 3 μ (^4)

r 1 p^12

p 34

p^32 p (^43)

p 23

Figure 1. Queuing Network

Q5.

(a) Briefly describe the steps required to build a credible computer simulation model.

[10 marks]

(b) Briefly describe the structure of a stochastic discrete-event computer simulation program for an M/M/1 queuing system. You may use the functionality of a particular simulation system or programming language to help you in your description. [15 marks]

You might find the following formulae useful in answering questions 1, 2, and 3.

Little’s theorem: A = λ T and AQ = λ W

M/M/1/∞ Queuing System: state probability of Markov chain pi = ( 1 −ρ) ρ i

A ,

M/M/m/∞ Queuing system:

Q Q 1

A P and

Q 1

A m P

Probability of queuing in M/M/m: (^ )

ρ −

(^0) m! 1 P p m m Q , where

−

1 (^0 0)!! 1

m i

i m m

m i

p m

ρ ρ and

m

Pollazcek-Khinchine formula for an M/G/1 queuing system:

( X )

W X

2 and (^) T = X + W , X is service time random variable

with ∑ ( )

∞

k 0 k^ k

X X PX and ( k)

k 0

X 2 ∑∞ X^2 kPX

=

= , for discrete probability distributions

∞

−∞

X = x⋅p(x)dx, ∫

∞

−∞

X 2 = x^2 p(x)dx; for continuous probability distributions

Engset blocking probability ( )

= (^) m

k

k

m

k

s

m

s Ems

0

ρ with

k s k

s k

s −

Jackson’s Theorem:

r p j K

K

i

j j i ij ;^1 ,^2 ,Κ

1

=

λ λ

j

j j μ

λ ρ =

P ( ) n P ( n ) P ( n ) Λ PK ( nK )

= 1122 with n ( n 1 , n 2 ,Λ, nK )

and Pj^ ( n^ j )^ =^ ρ njj (^1 −^ ρ j )^ ; nj ≥^0

The solutions to the quadratic equation ax^2 + bx + c = 0 are a

x b b ac 2

1 , 2

=− ±^ −