If my source is 192.168.0.128 & destination is 192.168.1.128. How will the packet travel? Given paths…
The following solution is suggested to handle the subject “If my source is 192.168.0.128 & destination is 192.168.1.128. How will the packet travel? Given paths…“. Let’s keep an eye on the content below!
Question “If my source is 192.168.0.128 & destination is 192.168.1.128. How will the packet travel? Given paths…”
If my source is 192.168.0.128 & destination is
192.168.1.128. How will the packet travel? Given paths are:
192.168.0
0/24, 192.168.1.64/26, 10.2.1.0/16, 10.1.0.0/16, 192.168.1.0/26
and 172.16.100.0/24.
Answer
Answer 1
This is how packet forwarding at router works
–> Enter destination address and perform ‘logical AND’ to obtain subnet masks for each outgoing network entry in the routing table
–> Verify all networks included in the routing table.
–> Choose the route with which destination address you are matched
–> Match multiple network ids, then it will take the longest prefix match to destination ip
Example: — here destination at 192.168.1.128
Router has 6 entries Router has 6 entries.
Subnet mask is 11111111.1111 11111.1111 111.0000 0000
We can use the logical and ing subnet masks with destination to give us:
192 . 168 . 1 . 128
1111 1111.1111 11111.1111 1111.0000 0000
—————————————————————————————————–
192 . 168 . 1 . 1.
This routing table must be clearly mentioned. However, the default entry is always there at the end. So output must be 172.16.100.0/24.
Answer 2
All of this would depend on the route. It’s not enough to just provide the destination and source.
Conclusion
Above is the solution for “If my source is 192.168.0.128 & destination is 192.168.1.128. How will the packet travel? Given paths…“. We hope that you find a good answer and gain the knowledge about this topic of engineering.