Routers forward packets by stripping incoming Layer 2 frames, consulting the routing table for the best next hop, decrementing the TTL, recalculating the IP header checksum, and building a new Layer 2 frame before transmitting the packet to the next hop.
IP Routing Process
So what that routing process looks like is that a frame will actually come into this router, and that router will process that frame just like any other machine would process that frame. That would be the layer 2 information that's in there, coming into that router.
And so then, once that router determines, well, this layer 2 is destined for me, the MAC address is destined for me, now what I need to do is figure out what network this is going to be sending to. So it takes a look at the layer 3 information, and it matches it up against its routing table to determine what is the next best hop.
Once it does that, it's going to take that time to live and it's going to decrement it by one. So that way, whatever that time to live is, it's going to subtract one from that. And that means that if there is a routing loop, at some point in time that packet would die and would not continue to live forever.
And because it decrements that time to live on there, it also has to adjust the checksum that was within the IP header. So it adjusts the checksum, and then once it's done that, then it can forward that information on to the next router, that next hop. But of course, to do that, to put it onto this physical line, it's going to need to reform a new layer 2 header and then use layer 1 to physically put it on the line to get it on its way.
So that is the routing process. That's what routers do to process the packets that are coming into it, so that way it can send on to the next hop to get it pushed along its way.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →