Salta al contenuto
Note per Studenti Reliability of Networks Report

Reliability of Networks

In questa pagina 4

An application of independence.

Setting

The figure shows the topology of a simple computer network.

            l4 (p4)     l5 (p5)
        B ----------- C ---------- F
       /|                          /|
 l1 (p1)|  l6 (p6)      l7 (p7)   / |
     /  +--------- D -------------+  |
    A                                | l3 (p3)
     \                               |
      +----------- E ----------------+
         l2 (p2)

(Sketch: links l1l_1: A-B, l2l_2: A-E, l3l_3: E-F, l4l_4: B-C, l5l_5: C-F, l6l_6: B-D, l7l_7: D-F. B is joined to F by two routes, through C and through D.)

Each node represents a computer, and each edge (link) represents a direct connection (cable or wireless) between two computers. Nodes have names A,B,…A, B, \dots; links have names l1,l2,…l_1, l_2, \dots and probabilities p1,p2,…p_1, p_2, \dots, where pip_i represents the empirical probability that at any given time the link lil_i is up and running. You can think of pip_i as the uptime (percentage of time) during which link lil_i is working.

Referring to this graph one might define the event E="it is possible to establish a connection between A and F".E = \text{"it is possible to establish a connection between } A \text{ and } F\text{"}. Clearly EE occurs iff there is a physical path A→FA \to F, i.e. (l2∩l3)∪(l1∩((l4∩l5)∪(l6∩l7))),(l_2 \cap l_3) \cup \Big(l_1 \cap \big((l_4 \cap l_5) \cup (l_6 \cap l_7)\big)\Big), to be read: lil_i = "link lil_i works", lx∩lyl_x \cap l_y = "links lxl_x and lyl_y work", lx∪lyl_x \cup l_y = "link lxl_x or link lyl_y works".

One might even ask what the probability that EE occurs is (the uptime of the connection A↔FA \leftrightarrow F). This probability is relatively easy to compute if all the probabilities pip_i of the links are known and, moreover, if the events [li works]i=17[l_i \text{ works}]_{i=1}^7 form an independent family. To compute P(E)P(E) one starts with the elementary connections.

Series connection

A—l1, p1B—l2, p2CA \overset{l_1,\ p_1}{\text{---}} B \overset{l_2,\ p_2}{\text{---}} C EE = "A↔CA \leftrightarrow C works" =l1∩l2= l_1 \cap l_2, hence by independence P(l1∩l2)=P(l1)P(l2)=p1p2.P(l_1 \cap l_2) = P(l_1)P(l_2) = p_1 p_2. Clearly p1p2≤min⁡{p1,p2}p_1p_2 \le \min\{p_1, p_2\}: the reliability of a series connection is worse than the worst of the two links.

Parallel connection

Two links l1l_1 (p1p_1) and l2l_2 (p2p_2) both joining AA and BB. Now EE = "A↔BA\leftrightarrow B works" =l1∪l2= l_1 \cup l_2 and P(E)=P(l1∪l2)=p1+p2−p1p2=1−P((l1∪l2)c)=1−(1−p1)(1−p2).P(E) = P(l_1\cup l_2) = p_1 + p_2 - p_1p_2 = 1 - P\big((l_1 \cup l_2)^c\big) = 1 - (1-p_1)(1-p_2). Note that P(E)=p1+p2−p1p2=p1+p2(1−p1)≥p1,P(E)=p2+p1(1−p2)≥p2,P(E) = p_1 + p_2 - p_1p_2 = p_1 + p_2(1-p_1) \ge p_1, \qquad P(E) = p_2 + p_1(1-p_2) \ge p_2, therefore P(E)≥max⁡{p1,p2}P(E) \ge \max\{p_1, p_2\}: the reliability of a parallel connection is better than the best of the two links.

In particular, if there are nn identical links in parallel with uptime pp, then P(E)=1−P(l1c∩l2c∩⋯∩lnc)=1−(1−p)n,P(E) = 1 - P(l_1^c \cap l_2^c \cap \dots \cap l_n^c) = 1 - (1-p)^n, and clearly any p>0p > 0 gives lim⁡n→∞1−(1−p)n=1\lim_{n\to\infty} 1 - (1-p)^n = 1: the reliability can be made close to 1 by connecting in parallel many poor links.

Numerical example

Find P(A↔B)P(A \leftrightarrow B) for the network with these links: on the upper route, AA is joined by a link of probability 0.50.5 to a node, that node to a second node by two parallel links with probabilities 0.80.8 and 0.50.5, and the second node to BB by a link of probability 0.80.8; on the lower route, AA is joined by a link 0.80.8 to a node, which is joined to BB by a link 0.50.5.

Reduce step by step with the two rules.

  1. Lower route, series of 0.80.8 and 0.50.5: 0.8×0.5=0.40.8 \times 0.5 = 0.4.
  2. Upper route, parallel pair 0.80.8, 0.50.5: 1−(1−0.8)(1−0.5)=0.91 - (1-0.8)(1-0.5) = 0.9.
  3. Upper route, series of 0.50.5, 0.90.9, 0.80.8: 0.5×0.9×0.8=0.360.5 \times 0.9 \times 0.8 = 0.36.
  4. The two routes are in parallel, with probabilities 0.360.36 and 0.40.4: P(A↔B)=1−(1−0.36)(1−0.4)=0.616.P(A\leftrightarrow B) = 1 - (1-0.36)(1-0.4) = 0.616.

Applying the same rules to the seven-link network (not written out on the page): with q=1−(1−p4p5)(1−p6p7)q = 1-(1-p_4p_5)(1-p_6p_7) for the block between BB and FF, P(E)=1−(1−p2p3)(1−p1q)P(E) = 1 - (1-p_2p_3)(1-p_1 q).

Versione ripasso

Nodes = computers, links lil_i with uptime pi=P(li works)p_i = P(l_i\text{ works}); assume the events [li works][l_i \text{ works}] are an independent family. Connection event = union over paths of intersections of the links on the path, e.g. (l2∩l3)∪(l1∩((l4∩l5)∪(l6∩l7)))(l_2\cap l_3)\cup\big(l_1\cap((l_4\cap l_5)\cup(l_6\cap l_7))\big).

  • Series: P(l1∩l2)=p1p2≤min⁡{p1,p2}P(l_1\cap l_2)=p_1p_2\le\min\{p_1,p_2\} (worse than the worst link).
  • Parallel: P(l1∪l2)=p1+p2−p1p2=1−(1−p1)(1−p2)≥max⁡{p1,p2}P(l_1\cup l_2)=p_1+p_2-p_1p_2=1-(1-p_1)(1-p_2)\ge\max\{p_1,p_2\} (better than the best link).
  • nn identical parallel links with uptime pp: 1−(1−p)n→11-(1-p)^n\to1 as n→∞n\to\infty for any p>0p>0.
  • Method: replace series/parallel blocks by one equivalent link, repeat. Example: 0.8⋅0.5=0.40.8\cdot0.5=0.4; 1−(0.2)(0.5)=0.91-(0.2)(0.5)=0.9; 0.5⋅0.9⋅0.8=0.360.5\cdot0.9\cdot0.8=0.36; total 1−(0.64)(0.6)=0.6161-(0.64)(0.6)=0.616.
  • Typical mistake: multiplying probabilities of links in parallel, or using the rules when the link failures are not independent.