Hosts and addresses
What must be true for two computers to exchange data?
A network joins hosts. Each has an address; a client asks, a server answers, and a protocol is the rules they share.
Start with the smallest possible picture. Two computers. One wants something, and is called the client. The other has it, and is called the server. Each has an address, a number that identifies it. Between them is the network: cables, radio and devices that pass data along. The client sends a request, marked with the address of the server and its own. The server sends the reply back to the address the request came from. That is all a network does. Everything else is how.
Network devices
What are the boxes between you and a website?
A switch connects devices in one network, a router connects networks, an access point adds Wi-Fi and a firewall filters traffic.
Between your device and any website sit a few boxes, and they come in only four kinds. An access point is a radio. It joins wireless devices to the wired network. A switch connects the devices of one network to each other. A router connects one network to another, which makes it the way out of yours. A firewall looks at traffic and allows or blocks it by rules. Your home router is all four in one case.
Network devices · Going deeper · 1 of 2
Which device works at which layer
A hub works at layer 1, a switch at layer 2, a router at layer 3, a stateful firewall at layer 4 and a proxy at layer 7.
Network devices · Going deeper · 2 of 2
Switch ports split collisions; router ports split broadcasts
Each switch port is a separate collision domain. Each router interface bounds a separate broadcast domain.
Two kinds of domain decide how far traffic spreads. A hub repeats every bit to every port. Four PCs share one wire, so they share one collision domain, and one broadcast domain. A switch gives each port its own link. Four ports, four collision domains, but a broadcast still reaches everyone: one broadcast domain. Put a router between two switches and broadcasts stop at it. Six links make six collision domains. The router makes two broadcast domains.
Traffic types
One sender, and four ways to choose who receives
Unicast reaches one host, broadcast every host on the link, multicast a group, and anycast the nearest of many.
A sender can address its traffic in four ways. Unicast goes to exactly one host. Almost everything you do is unicast. Broadcast goes to every host on the local link. It is how a new device asks for an address before it has one. Routers never pass broadcasts on. Multicast goes only to the hosts that have joined a group, such as routers running OSPF, or viewers of one video stream. Anycast gives one address to many servers in different places, and the network delivers each packet to the nearest one.
Lesson complete
You finished “What a network is”
Nicely done.