EE 333, Communication Networks
Quiz-II (2013-14S)
Maximum Marks = 10 Time=45 minutes
1. For the network shown (with
costs of individual segments as
indicated), find the spanning tree
that will be obtained by applying
the standard spanning tree
algorithm. Clearly indicate the root
port of each bridge and the
designated port for each LAN
segment. [4]
Solution
P1
P3
Bridge B1
P2
P1
P3
Bridge B2
P2
P1
P3
Bridge B3
P2
P1
Bridge B4
P2
P1
Bridge B5
P2
P1
Bridge B6
P2
Cost=3 Cost=5
Cost=3
Cost=1
Cost=4
Cost=2
Cost=2
Root
Bridge
D
D D R
R
R
R
R
D
D
D
2.
(a) Apply Dijkstra’s Algorithm to the network
shown to find the least cost paths from Node 1 to
all the other nodes of the network. Show all the
steps of the procedure in detail (cost and path at
each step) and draw the corresponding tree from
Node 1 to the other nodes of the network. Give
the forwarding table that Node 1 will use to send
packets to the other nodes. [4]
(b) If Node 1 wants to multicast to all the other nodes, what would be the cost of doing this
using the router set up of (a)? [1]
(c) We would like to find the two best paths from a source S to a destination D (in any general
network) so that the two paths do not share any common link. Suggest a way to do this. [1]
Solution
(a)
{N} D2 D3 D4 D5 D6 D7
{1} 3
[1-2]
1
[1-3]
5
[1-4]
∞ 2
[1-6]
∞
{1,3} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
5
[1-3-5]
2
[1-6]
∞
{1,3,2} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
5
[1-3-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6,5} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
{1,3,2,4,6,5,7} 2
[1-3-2]
1
[1-3]
2
[1-3-4]
3
[1-3-4-5]
2
[1-6]
4
[1-3-2-7]
Forwarding Table in Node 1
Destination 2 3 4 5 6 7
Next Node 3 3 3 3 6 3
Routing Tree
(b) Multicasting Cost: Sum of the costs of all the links of the routing tree = 8
(c) First find the lowest cost path between S to D in the given graph. This will be one path.
Now remove all the links of this path from the network graph and find the lowest cost path
in the modified graph. This will be the link-disjoint second best path

Quiz 2-solution

  • 1.
    EE 333, CommunicationNetworks Quiz-II (2013-14S) Maximum Marks = 10 Time=45 minutes 1. For the network shown (with costs of individual segments as indicated), find the spanning tree that will be obtained by applying the standard spanning tree algorithm. Clearly indicate the root port of each bridge and the designated port for each LAN segment. [4] Solution P1 P3 Bridge B1 P2 P1 P3 Bridge B2 P2 P1 P3 Bridge B3 P2 P1 Bridge B4 P2 P1 Bridge B5 P2 P1 Bridge B6 P2 Cost=3 Cost=5 Cost=3 Cost=1 Cost=4 Cost=2 Cost=2 Root Bridge D D D R R R R R D D D
  • 2.
    2. (a) Apply Dijkstra’sAlgorithm to the network shown to find the least cost paths from Node 1 to all the other nodes of the network. Show all the steps of the procedure in detail (cost and path at each step) and draw the corresponding tree from Node 1 to the other nodes of the network. Give the forwarding table that Node 1 will use to send packets to the other nodes. [4] (b) If Node 1 wants to multicast to all the other nodes, what would be the cost of doing this using the router set up of (a)? [1] (c) We would like to find the two best paths from a source S to a destination D (in any general network) so that the two paths do not share any common link. Suggest a way to do this. [1] Solution (a) {N} D2 D3 D4 D5 D6 D7 {1} 3 [1-2] 1 [1-3] 5 [1-4] ∞ 2 [1-6] ∞ {1,3} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 5 [1-3-5] 2 [1-6] ∞ {1,3,2} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 5 [1-3-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6,5} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] {1,3,2,4,6,5,7} 2 [1-3-2] 1 [1-3] 2 [1-3-4] 3 [1-3-4-5] 2 [1-6] 4 [1-3-2-7] Forwarding Table in Node 1 Destination 2 3 4 5 6 7 Next Node 3 3 3 3 6 3
  • 3.
    Routing Tree (b) MulticastingCost: Sum of the costs of all the links of the routing tree = 8 (c) First find the lowest cost path between S to D in the given graph. This will be one path. Now remove all the links of this path from the network graph and find the lowest cost path in the modified graph. This will be the link-disjoint second best path