------------------------------------------------------------------------------- Mohamed G. Gouda CS 356 Summer 2008 quiz 1 ------------------------------------------------------------------------------ The diagram below shows a host that has two IP addresses (n0,s,c) and (n1,s,c), since it is connected to two subnetworks: one subnetwork is in network n0 and the other is in network n1. This host also has two subnetwork masks: M0 for network n0, and M1 for network M1. The default router R for this host is attached to the subnetwork in network n1. Assume that IP in this host has a packet that needs to be sent to an ultimate destination (n',s',c'). Which of the two subnetworks does IP forward the packet to, and what should the hop destination for this packet be. ------------------------------------------------------------------------------ Student name: Student EID: ------------------------------------------------------------------------------ Solution: If M0 AND (n',s',c') = M0 AND (n0,s,c) send to sub0 else if M1 AND (n',s',c') = M1 AND (n1,s,c) send to sub1 else send to R endif