Docsity

Probability of Communication Failure in IEEE 802.5 Token-Ring Networks, Assignments of Computer Science

Toggle sidebar
bg1
Solution to Exercises From 25 Feb 2004
1An IEEE 802.5 token-ring system consists of 120 stations, one per repeater.Let Plrepresent
probability of link failure, Prrepresent probability of repeater failure. Derive an expression for
the probability that two nodes selected at random will not be able to communicate.
Astation is unable to communicate on a token-ring network if (i) the node’s ring interface has failed, or,
(ii) there is a break anywhere in the ring. The probability of (i) is Pr,of(ii) is Pl
This is a single ring connecting 120 nodes. A failure in this network will prevent (at least) any two nodes
chosen at random from communicating. What, then, is the probability of failure of the network? Consider
P(network does not fail) =P(no link failure) ×P(no repeater failure).
P(network does fail) =1−(1 −Pl)n×(1 −Pr)n
where nis the number of nodes, here 120.
Twonodes on this network will be unable to communicate if there has been a network failure. The final
version of that probability is, then, 1 −(1 −Pl)120 ×(1 −Pr)120
2Another IEEE 802.5 token-ring system consists of three 40-repeater rings, interconnected by a
transparent bridge that has an interface to each ring. Use Pland Pras before and let Pbrepresent
probability of bridge failure. Derive an expression for the probability that any two stations select-
ed at random will be unable to communicate.
Fortwo nodes on the same ring we know the answer; see above. Here, we must additionally account for
the fact that the two nodes chosen at random may be on different rings. Label the individual rings r1,r2,
and r3.Westart by determining the probability that the two nodes we choose are on the same ring:
Psame =P(xon r1,yon r1)+P(xon r2,yon r2)+P(xon r3,yon r3)
=P(xon r1)×P(yon r1)+P(xon r2)×P(yon r2)+P(xon r3)×P(yon r3)
=1/3 ×1/3 +1/3 ×1/3 +1/3 ×1/3
=1/3
Hence the probability that the two nodes we choose are on different rings is Pdifferent =2/3.
The probability that two nodes on the same ring cannot communicate is as determined in question 1,
above:
Pfailsame =1−P(1 −Pl)40 ×P(1 −Pr)40
In the case where the nodes are on different rings, ask what could cause failure: failure of either ring or
the bridge. The probability of the former we know,sowecan say:
P(successful communication | nodes on different rings) =P(no failure in rx)×P(no failure in ry)×P(no failure in bridge)
=[(1−Pl)j×(1 −Pr)j]×[(1−Pl)k×(1 −Pr)k]×(1 −Pb)
where rxdenotes the ring on which node xappears, rythe node on whic node yappears, jis the size (num-
ber of nodes) of the ring node xis on, and kis the size of the ring node yis on; here, j=k=40. The proba-
bility of failure will simply be Pfaildifferent =1−P(success).
CS455 1 Exercises from 25 Feb 2004
pf2

Partial preview of the text

Download Probability of Communication Failure in IEEE 802.5 Token-Ring Networks and more Assignments Computer Science in PDF only on Docsity!

Solution to Exercises From 25 Feb 2004

An IEEE 802.5 token-ring system consists of 120 stations, one per repeater. Let Pl represent probability of link failure, Pr represent probability of repeater failure. Derive an expression for the probability that two nodes selected at random will not be able to communicate.

A station is unable to communicate on a token-ring network if (i) the node’s ring interface has failed, or, (ii) there is a break anywhere in the ring. The probability of (i) is Pr , of (ii) is Pl

This is a single ring connecting 120 nodes. A failure in this network will prevent (at least) any two nodes chosen at random from communicating. What, then, is the probability of failure of the network? Consider

P (network does not fail) = P (no link failure) × P (no repeater failure).

P (network does fail) = 1 − (1 − Pl ) n^ × (1 − Pr ) n

where n is the number of nodes, here 120.

Two nodes on this network will be unable to communicate if there has been a network failure. The final version of that probability is, then, 1 − (1 − Pl )^120 × (1 − Pr )^120

Another IEEE 802.5 token-ring system consists of three 40-repeater rings, interconnected by a transparent bridge that has an interface to each ring. Use Pl and Pr as before and let Pb represent probability of bridge failure. Derive an expression for the probability that any two stations select- ed at random will be unable to communicate.

For two nodes on the same ring we know the answer; see above. Here, we must additionally account for the fact that the two nodes chosen at random may be on different rings. Label the individual rings r 1 , r 2 , and r 3. We start by determining the probability that the two nodes we choose are on the same ring:

Psame = P ( x on r 1 , y on r 1 ) + P ( x on r 2 , y on r 2 ) + P ( x on r 3 , y on r 3 )

= P ( x on r 1 ) × P ( y on r 1 ) + P ( x on r 2 ) × P ( y on r 2 ) + P ( x on r 3 ) × P ( y on r 3 )

= 1/3 × 1/3 + 1/3 × 1/3 + 1/3 × 1/

= 1/

Hence the probability that the two nodes we choose are on different rings is Pdifferent = 2/3.

The probability that two nodes on the same ring cannot communicate is as determined in question 1, above:

Pfailsame = 1 − P (1 − Pl )^40 × P (1 − Pr )^40

In the case where the nodes are on different rings, ask what could cause failure: failure of either ring or the bridge. The probability of the former we know, so we can say:

P (successful communication | nodes on different rings) = P (no failure in rx ) × P (no failure in ry ) × P (no failure in bridge)

= [ (1 − Pl ) j^ × (1 − Pr ) j^ ] × [ (1 − Pl ) k^ × (1 − Pr ) k^ ] × (1 − Pb )

where rx denotes the ring on which node x appears, ry the node on whic node y appears, j is the size (num- ber of nodes) of the ring node x is on, and k is the size of the ring node y is on; here, j = k = 40. The proba- bility of failure will simply be Pfaildifferent = 1 − P (success).

CS455 1 Exercises from 25 Feb 2004

We can combine all these now to produce the complete expression of the probability of failure:

P (two nodes cannot communicate) = Psame × Pfailsame + Pdifferent × Pfaildifferent

Evaluate 1 and 2 for Pl = 0. 002, Pr = 0. 005, Pb = 0. 005.

For (1),

P (failure) = 1 − (1 − Pl )^120 × (1 − Pr )^120

= 1 − (1 − 0. 002)^120 × (1 − 0. 005)^120

= 1 − (0. 786 × 0. 548) = 0. 569

For (2),

P (failure) = Psame × Pfailsame + Pdifferent × Pfaildifferent

= [1/3 × (1 − (1 − 0. 002)^40 × (1 − 0. 005)^40 )] + [2/3 × ( 1 − (1 − 0. 002)^40 × (1 − 0. 005)^40 × (1 − 0. 005))]

= [1/3 × (1 − (0. 923 × 0. 818)] + [2/3 × (1 − (0. 923 × 0. 818 × 0. 005))]

= (1/3 × 0. 245) + (2/3 × 0. 996)

= 0. 082 + 0. 664 = 0. 746

Describe in words the advantages and disadvantages of each system.

The single ring model has the advantage that it does not involve a bridge, but it does mean that any failure in the ring results in all 120 nodes being unable to communicate. Breaking the 120 nodes into three bridge-connected rings at least means that a failure in any one of the three rings need not impact commu- nication among nodes in the other two, hence only 40 of the 120 nodes is impacted. What would the impact of a bridge failure be?

CS455 2 Exercises from 25 Feb 2004