CS FundamentalsHardProduct-company MCQ pattern
Under distance-vector routing, router A has direct links to B (cost 2) and C (cost 5). B advertises distances {D: 7, E: 1} and C advertises {D: 3, E: 4}. What does A's new table give for D and E?
- A. D = 9 via B, E = 3 via B
- B. D = 8 via C, E = 9 via C
- C. D = 3 via C, E = 1 via B
- D. D = 8 via C, E = 3 via B
Correct answer: D. D = 8 via C, E = 3 via B
Bellman–Ford: D = min(2 + 7, 5 + 3) = min(9, 8) = 8 via C; E = min(2 + 1, 5 + 4) = min(3, 9) = 3 via B. Copying the neighbour's advertised value without adding the link cost gives the third option.
More Computer Networks questions
- An undirected network has links A–B 4, A–C 1, B–C 2, B–D 5, C–D 8, C–E 10, D–E 2, D–F 6, E–F 3. What is the cost of the shortest path from…
- Match each protocol with its default port. P. SSH Q. SMTP R. SNMP S. DNS 1. 25 2. 22 3. 53 4. 161
- A hub with 3 PCs is plugged into one port of switch S1. S1 also connects 4 PCs directly and one port to router R. R's other interface goes…
- Assertion (A): An ARP request is sent as a layer-2 broadcast, but the ARP reply is normally unicast. Reason (R): The requester does not…
- Assertion (A): DNS uses only UDP, because each query and answer fits in a single datagram. Reason (R): UDP avoids the connection set-up…
- How many of the following statements about DHCP are correct? 1. The DHCPDISCOVER message is broadcast with source IP 0.0.0.0. 2. DHCP…