Computer Science, asked by smriti456, 10 months ago

An entry in the routing table has 135.46.56.0 as the destination and/22 as the subnet mask what will be the network address

Answers

Answered by Azinkiya
10

The router will check the routing entry starting with the longest prefix (/23), 192.53.40.0/23. /23 mean network address is 23 bit and the corresponding network mask is 255.255.255.0.  

135.45.63.10 & 255.255.254.0=135.45.62.0 != 192.53.40.0 therefore this entry does not match. Next longest prefix is /22. 135.45.63.10 & 255.255.252.0=135.45.60.0. It matches 135.45.60.0/22 routing entry, therefore the packet will be routed out over Interface 1. With quick observation, we can skip the routing entry with 192.53.40.0/23 but the router cannot.  

Answered by Anonymous
17

For each of the following IP addresses, what does the router do if a packet with that address arrives?1.135.46.63.10 – For this one, the router will check routing entries by starting with the longest prefix, which in this case is r/23, meaning 192.53.40.0/23 will be used. This routing entry however does not match, so the router will check the next prefix which is /22. The IP address matches the 135.46.60.0/22 router entry, so the packet will get routed over Interface 1. 2.135.46.57.14 – This IP address matches the 135.46.56.0/22. which means the packet will be routed over Interface 0.3.135.46.52.2 – This IP address happens to be lower than the entry 135.46.56.0/22. This means that the default route will be used, which means that the packet will be routed out over Router 2.4.192.53.40.7 - This IP address matches routing entry 192.53.40.0/23, so the packet will be routed out over Router 1.

Similar questions