The identifier of the output interface on which this packet will be forwarded is ______.
View worked solution
Answer: 1
To find the correct output interface, we convert the destination IP address and the routing table prefixes into binary to find the matching entries, and then apply the Longest Prefix Match (LPM) rule.
The destination IP address is 131.23.151.76. Let's convert the first two octets to binary:
Now, we check the prefixes in the routing table:
- 131.16.0.0/12:
- Prefix first 12 bits:
- Destination IP first 12 bits: (Matches)
- 131.28.0.0/14:
- Prefix first 14 bits:
- Destination IP first 14 bits: (Does not match)
- 131.19.0.0/16:
- Prefix first 16 bits:
- Destination IP first 16 bits: (Does not match)
- 131.22.0.0/15:
- Prefix first 15 bits: (since )
- Destination IP first 15 bits: (Matches)
Both 131.16.0.0/12 and 131.22.0.0/15 match the destination IP. By the Longest Prefix Match rule, the router selects the prefix with the longest mask ().
Thus, the packet is forwarded to interface 1.
Free practice · Your answers on this page are not saved.
