Strategy:
- Every IP datagram contains destination’s address
- If directly connected to destination network, then forward to host
- If not directly connected to destination network, then forward to some router
- Forwarding table maps network number into next hop
- Each host has a default router
- Each router maintains a forwarding table
Example (router R2 wants to send a datagram):

R2’s forwarding table:

Algorithm:
- First find
NetworkNumof destination - If
NetworkNumof destination equalsNetworkNumof one of my interfaces, then deliver packet to destination over that interface - Else, if
NetworkNumof destination is in my forwarding table, then deliver packet toNextHoprouter - Else deliver packet to default router