IPv4

What

A way to address devices across networks (L3)

Why

L2 Mac addresses do not contain topological information, making them harder to route with
If we would route based on MAC instead of IP, route tables would be huge, since every host is 1 entry

Concepts

How

Routing algorithms are used to determine where to find IP ranges
Inside a domain: RIP, OSPF, IS-IS, ...
Between domains: BGP
Usually hosts within a network have a default gateway configured, to which they will send traffic to which they do not know the destination
Autonomous Systems cannot have default gateways, since that would leave packets floating around uselessly. They either have a prefix match, or they drop/deny