Free lesson preview · 8 min
The Point of Networking
A laptop can print a document without knowing how to put ink on paper. It sends the job to a printer. A network lets devices exchange data so that one can use a service provided by another.
Now picture the same laptop opening a website. The printer might be across the room. The web server could be on another continent. How does the laptop decide where to send each request?
Two destinations, two routes
Suppose the laptop and printer share a home network. The laptop has the address 192.168.1.24, the printer has 192.168.1.60, and both use the prefix 192.168.1.0/24. That prefix identifies their local IPv4 network.
- Print a page. The laptop has a route to the printer on its local network. A Wi-Fi access point or switch can carry the data between them.
- Open a website. In this example, the web server is outside the home network. The laptop has no more specific route to it, so it sends the packet to its default gateway, the home router at
192.168.1.1.
One box often acts as both your wireless access point and your router. When it passes traffic between two devices on the same local network, it is doing a different job from forwarding a packet to another network.
Follow the website request
Once the browser knows the server’s IP address, it can send data towards that destination. At home, the next hop is the router. The destination is the web server. Receiving the packet at the router completes only the first part of the journey.
The router consults its routing table to choose the next hop. Other routers repeat that decision until the packet reaches the destination network. The server can send a response using a route of its own. On a busy network, the return route can differ from the outward route.
Sketch the path
Draw a laptop, a printer, a home router and a distant web server. Draw one arrow for a print request and another for a web request. On each path, label the destination and the first device that forwards traffic between networks, if there is one.
Now imagine the internet connection goes down while the local Wi-Fi keeps working. The laptop may still print. That observation tells you the local path to the printer works. You would need more evidence to locate the fault on the path to the website.
An early connection
On 29 October 1969, researchers at UCLA tried to log in to a computer at the Stanford Research Institute over the ARPANET. The receiving host crashed after the first two letters of “LOGIN.” The UCLA team’s record of “LO” documents the first host-to-host message on that network. UCLA’s original account
The distinction between local delivery and sending a packet to a gateway became part of the rules for internet hosts. IETF host requirements, section 3.3.1