Longest Prefix Matching
Consider a datagram network using 8-bit host addresses.
Suppose a router uses longest-prefix matching, and has the following forwarding table:
Question List
1. Suppose a datagram arrives at the router, with destination address 10011111. To which interface will this datagram be forwarded using longest-prefix matching?
2. Suppose a datagram arrives at the router, with destination address 10110011. To which interface will this datagram be forwarded using longest-prefix matching?
3. Suppose a datagram arrives at the router, with destination address 11111110. To which interface will this datagram be forwarded using longest-prefix matching?
Solution
1. Since the address is 10011111, it will go to interface 4.
2. Since the address is 10110011, it will go to interface 2.
3. Since the address is 11111110, it will go to interface 3.
That's incorrect
That's correct
The answer was: 4
The answer was: 2
The answer was: 3