Networks, LANs and Switches

The Internet

The Internet is many computers. Some are small, like your cell phone. Some are even smaller, like a router, a robot floor vacuum or a smart speaker.
All of these computers work together to form the Internet. The Internet is a computer network consisting of interconnected networks, and those networks use standardized, open (nonproprietary) communication protocols. Protocols are the agreed rules every device follows; the lesson on MAC addresses, IP addresses and routers explains what open means.
The Internet is many computers communicating with one another. They might communicate over radio waves, like WiFi or Bluetooth, or over physical cables, like Ethernet or cable TV.
One of the remarkable features of the Internet is that the computers connected are not aware how they are connected. They are able to communicate over many different kinds of connections.
Access to the Internet depends on the ability to connect a computing device to an Internet-connected device. A phone gets online by joining a WiFi router that is itself connected. A laptop with no such connection cannot reach anything, however fast it is.
Cut samples of undersea communication cable on four blue bases with name plates, from double armor to lightweight, with red labels naming the layers: steel armor wires and tar-soaked jute outside, a white insulating core, a copper power conductor, and at the center the thin optical fibers.
A large red and white ship, the cable-laying vessel Cable Innovator, at sea near a hilly shore.

Much of the data that crosses oceans travels through cables on the sea floor. Left: samples of undersea cable. Right: a ship that lays it. Photos: Lonnie Hagadorn, CC BY-SA 4.0; Gordon Leggett, CC BY 4.0; via Wikimedia Commons.

Devices, networks and hosts

A computing device is a physical artifact that can run a program. Some examples include computers, tablets and phones.
A computer network is a group of interconnected computing devices capable of sending or receiving data.
A host is a computer on a network.
Notice how little the second definition asks for. It says nothing about size, nothing about wires, and nothing about the Internet. A group of devices that can send data to each other is a network already.

LAN and WAN

A local area network (LAN) is a group of interconnected computers that share resources in a small geographic area. The smallest example of a LAN is two computers connected by a CAT6 cable, which is an ethernet cable.
A wide area network (WAN) is a network of connected local area networks. By this definition, a university campus network that joins the local area networks of many buildings is a WAN. The name is used most often for networks that stretch across cities or countries, such as a company's network joining offices on different continents.
LANWAN
What it joins togetherComputing devicesLocal area networks
How far it reachesA small geographic areaAs far as the networks it joins
Smallest version of itTwo computers and one cableTwo local area networks, joined
A typical exampleComputers sharing resources in one placeA campus joining many buildings' networks

Computing systems, clients and servers

A computing system is a group of computing devices and programs working together for a common purpose. A computer network is a type of computing system.
A path between two computing devices on a computer network, a sender and a receiver, is a sequence of directly connected computing devices that begins at the sender and ends at the receiver.
A client is a computer that is requesting a resource or service.
A server is a computer that provides a resource or service. Print servers provide printing service, web servers serve webpages, and there are also email servers and file servers.
Clients request, a server provides. Three clients, a phone, a laptop and a desktop, connect through the Internet to a web server that serves webpages. An arrow from the clients to the server: request, a client asks for a page. An arrow back: response, the server sends the page.

Switches

Switches allow computers on a LAN to communicate with one another.
A switch is a networking device that can forward data directly to computers connected to its ports using the destination physical address, also called the hardware address. Data sent by a switch is called a frame.
A port is a physical input and output interface to a networking device. Every device on the LAN is plugged into one of them.
For example, a computer sends a request to a printer through a switch. Only the printer sees the request.
A network cabinet holding rack-mounted Ethernet switches and patch panels, with dozens of grey cables plugged into rows of ports.
Ethernet switches in a network cabinet. Each cable plugs into one physical port. Photo: Dsimic, CC BY-SA 4.0, via Wikimedia Commons.
One LAN: the switch sends the frame out of one port. A switch with eight physical ports numbered 1 to 8. A laptop is plugged into port 1, a tablet into port 2, a desktop into port 4, a printer into port 6 and a second desktop into port 7. The printer's hardware address is 3C-52-82-1A-07-F4. The tablet sends a frame to 3C-52-82-1A-07-F4. Green: the path, tablet, switch, printer. The laptop and desktops are never sent the frame. Ports 1 to 8 are physical sockets; 3, 5 and 8 are empty.