When a packet arrives, the router checks which forwarding table entry best, the most specific, matches the packet and forwards the packet along the link associated with that forwarding table entry.
<aside> 📖 Longest Prefix Match
Algorithm IP routers use to chose matching entry from forwarding table
Forwarding table is a set of CIDR entries
Algorithm: use forwarding entry with the longest matching prefix
</aside>