What is the routing process?

author
  • Total 1 Answer
  • 183
Can You answer this question?
author

In the above diagram pc1 on subnet 10.0.0.0/24 wants to send some data to pc2 on subnet 20.0.0.0/8 .                                                     step1- now pc1 is having 10.0.0.1 as the default gateway so now pc1 want to send some data to some other network 20.0.0.0 so he will forward his data to the default gateway means to the router as both pcs are not on common subnet .                                                          step2- when pc1 will send data to pc2 source ip will be 10.0.0.1 and destination ip will be 20.0.0.2 and source mac address will be of pc1 ie OA and destination mac address will be O1 so that data can reach default gateway when that frame will arrive on router interface f0/0 router will recieve that frame as destination mac is of router.

step 3 - router will strip off the layer 2 header that contains the source and the destination mac and left with packet only now as the destination ip of the packet is 20.0.0.2 so he will perform the routing table lookup to exit that packet out. routing process simply means to find out an exit interface for the incoming packet on the basis of destination ip in the packet so from the routing table router find f0/1 as the exit interface of the packet.

step4 now when router will send that packet out of interface f0/1 ip packet will be encapsulated again in a layer 2 header with source mac of interface f0/1 mac add ie o1 and destination mac address will be of pc2 ie OB Aand then data will be delivered to the pc1 and for reply from pc2 same process will be repeated in other direction

note- here i did not include the arp process