This router forwards packets each to hosts. The addresses of the hosts are and . The number of packets forwarded via the next hop router is __________.
View worked solution
Answer: 40
To find the number of packets forwarded via the next hop router R2, we determine the routing path for each host using the Longest Prefix Match (LPM) rule.
Let's analyze the IP ranges for each prefix:
- 10.1.1.0 / 24: Range
10.1.1.0to10.1.1.255(Next hop: R1) - 10.1.1.128 / 25: Range
10.1.1.128to10.1.1.255(Next hop: R2) - 10.1.1.64 / 26: Range
10.1.1.64to10.1.1.127(Next hop: R3) - 10.1.1.192 / 26: Range
10.1.1.192to10.1.1.255(Next hop: R4)
Now, we match each host IP address to its longest matching prefix:
- 10.1.1.16: Matches only
10.1.1.0 / 24. Next hop is R1. - 10.1.1.72: Matches
10.1.1.0 / 24and10.1.1.64 / 26. Best match is/26. Next hop is R3. - 10.1.1.132: Matches
10.1.1.0 / 24and10.1.1.128 / 25. Best match is/25. Next hop is R2. - 10.1.1.191: Matches
10.1.1.0 / 24and10.1.1.128 / 25. Best match is/25. Next hop is R2. - 10.1.1.205: Matches
10.1.1.0 / 24,10.1.1.128 / 25, and10.1.1.192 / 26. Best match is/26. Next hop is R4.
The packets destined for hosts 10.1.1.132 and 10.1.1.191 are forwarded via R2. Since packets are sent to each host, the total number of packets forwarded via R2 is:
Free practice · Your answers on this page are not saved.
