------------------------------------------------------------------ Mohamed G. Gouda CS 356 Spring 2017 Exercise 8 ------------------------------------------------------------------ Consider a router that has three interfaces 0, 1, and 2. Assume that this router has the following routing table: -------------------------------------------------- If dst of a pkt is in | Then this pkt is routed this block ... | to this interface ... -------------------------------------------------- (128.64.255.9/26) | 0 -------------------------------------------------- (128.64.255.60/30) | 1 -------------------------------------------------- Otherwise | 2 -------------------------------------------------- How a pkt, whose ultimate dst is IP address (128.64.255.63), is routed based on this routing table? Explain your answer. ------------------------------------------------------------------ Solution ------------------------------------------------------------------ A packet whose ultimate destination is (128.64.255.63) is in block (128.64.255.9/26) and is in block (128.64.255.60/30). Therefore, this packet is routed to interface 1 because the subnet mask (30) for interface 1 is longer than the subnetwork mask (26) for interface 0. --------------------------------------------------------------