Consider the following routing table at an IP router:
For each IP address in Group I Identify the correct choice of the next hop from Group II using the entries from the routing table above.
View worked solution
Answer: A
To determine the next hop for each IP address, we perform a bitwise AND operation between the destination IP address and the subnet masks in the routing table, looking for a match. If multiple matches occur, the longest prefix match is selected. If no match occurs, the default route is used.
- i) 128.96.171.92:
- Applying mask
255.255.254.0: (in binary: ). - This matches the network
128.96.170.0. - Next Hop: Interface 0 (a).
- Applying mask
- ii) 128.96.167.151:
- Applying mask
255.255.254.0: (in binary: ). - This matches the network
128.96.166.0. - Next Hop: R2 (c).
- Applying mask
- iii) 128.96.163.151:
- Applying mask
255.255.254.0: (No match). - Applying mask
255.255.252.0: (No match). - Since there is no match, it falls back to the default route.
- Next Hop: R4 (e).
- Applying mask
- iv) 128.96.164.121:
- Applying mask
255.255.252.0: (in binary: ). - This matches the network
128.96.164.0. - Next Hop: R3 (d).
- Applying mask
Thus, the correct mapping is i-a, ii-c, iii-e, iv-d.
Free practice · Your answers on this page are not saved.
