Binary-Trees
October 9, 2023Computer-Networks
October 9, 2023Computer-Networks
Question 36 |
The routing table of a router is shown below:
Destination Sub net mask Interface 128.75.43.0 255.255.255.0 Eth0 128.75.43.0 255.255.255.128 Eth1 192.12.17.5 255.255.255.255 Eth3 Default Eth2
On which interfaces will the router forward packets addressed to destinations 128.75.43.16 and 192.12.17.10 respectively?
Eth1 and Eth2 | |
Eth0 and Eth2 | |
Eth0 and Eth3 | |
Eth1 and Eth3 |
Question 36 Explanation:
Router decides route for packet by ANDing subnet mask and IP address.
If results of ANDing subnet masks and IP address are same then subnet mask with higher
number of 1s is preferred.
IP address 128.75.43.16 is AND with 255.255.255.0 results 128.75.43.0 Net ID which is similar to destination of this mask, but ANDing 128.75.43.16 with 255.255.255.128 also results same destination. So, here, mask with higher number of one is considered and router will forward packet to Eth1.
ANDing 192.12.17.10 with three subnet mask in table does not result in destination Net ID so
router will forward this packet to default network via Eth2.
If results of ANDing subnet masks and IP address are same then subnet mask with higher
number of 1s is preferred.
IP address 128.75.43.16 is AND with 255.255.255.0 results 128.75.43.0 Net ID which is similar to destination of this mask, but ANDing 128.75.43.16 with 255.255.255.128 also results same destination. So, here, mask with higher number of one is considered and router will forward packet to Eth1.
ANDing 192.12.17.10 with three subnet mask in table does not result in destination Net ID so
router will forward this packet to default network via Eth2.
Correct Answer: A
Question 36 Explanation:
Router decides route for packet by ANDing subnet mask and IP address.
If results of ANDing subnet masks and IP address are same then subnet mask with higher
number of 1s is preferred.
IP address 128.75.43.16 is AND with 255.255.255.0 results 128.75.43.0 Net ID which is similar to destination of this mask, but ANDing 128.75.43.16 with 255.255.255.128 also results same destination. So, here, mask with higher number of one is considered and router will forward packet to Eth1.
ANDing 192.12.17.10 with three subnet mask in table does not result in destination Net ID so
router will forward this packet to default network via Eth2.
If results of ANDing subnet masks and IP address are same then subnet mask with higher
number of 1s is preferred.
IP address 128.75.43.16 is AND with 255.255.255.0 results 128.75.43.0 Net ID which is similar to destination of this mask, but ANDing 128.75.43.16 with 255.255.255.128 also results same destination. So, here, mask with higher number of one is considered and router will forward packet to Eth1.
ANDing 192.12.17.10 with three subnet mask in table does not result in destination Net ID so
router will forward this packet to default network via Eth2.
Subscribe
Login
0 Comments