this concept , usaully a field on a routing table, is used to help make decision on where to send packets code example
Example: how router makes descisopn
Destitnaion in routing table(Is the destintion there or not.)
Longest match.
AD Lowest wins.
Depends on the rotingprotocol metric(RIP - hops & OSTF - cost)