CS FundamentalsHardGATE CS
Router X has neighbours A, B and C reached over links of cost 3, 5 and 2. They advertise their current distance vectors to destinations D1 to D5: A = (4, 9, 2, 8, 6), B = (7, 1, 3, 5, 9), C = (10, 6, 8, 2, 4). After X recomputes its table with the Bellman-Ford update, what is the sum of its five costs and the number of destinations reached through C?
- A. 33 and 2
- B. 28 and 2
- C. 13 and 2
- D. 28 and 3
Correct answer: B. 28 and 2
For each destination X takes min over neighbours of (link cost + advertised distance): the new costs are [7, 6, 5, 4, 6] (sum 28), reached through ['A', 'B', 'A', 'C', 'C'], so C serves 2 destinations. Ignoring the link costs would give a sum of only 13.
More Computer Networks questions
- A link-state network has these bidirectional link costs: A-B 7, A-C 9, A-F 14, B-C 10, B-D 15, C-D 11, C-F 2, D-E 6, E-F 9, E-G 3, D-G 14…
- A router has routes for the following prefixes, all pointing to the same next hop: 172.16.0.0/24, 172.16.1.0/24, 172.16.2.0/24…
- A 16-bit Internet checksum is computed over the five 16-bit words 4A3F, B7C1, 2E9D, F05A and 8C13 (hexadecimal): the words are added with…
- A 4-port learning switch has an empty MAC table. Hosts A, B, E, C and D are attached as follows: A and F on port 1 (through a hub), B and…
- A stop-and-wait link carries 1000-byte frames at 2 Mbps with a one-way propagation delay of 20 ms; ACK transmission time is negligible…
- A token bucket has capacity 3 MB, a token arrival rate of 6 MB/s, and starts full. The link allows a maximum output rate of 30 MB/s. For…