When you check an Irish Rail timetable, how does it get from a server to your laptop?
You open the Irish Rail website to check the next train from Cork. The timetable appears in seconds. Your laptop has no direct cable to the railway's server, so how does your request reach it, and how does the reply get back?
Start with the browser app on your laptop. When you open a website, the browser asks the operating system to send data. The operating system uses a network interface, such as the Wi-Fi adapter for a wireless connection or the Ethernet adapter for a wired one.
Your laptop can send a file through a wireless access point to another device on the same local network. On a wired network, an Ethernet switch forwards data towards the receiving device. Both paths show local forwarding: the data stays on the same network.
Two school computers are plugged into the same Ethernet switch and are on the same local network. One sends a file directly to the other. Which device forwards the data between them? Pick one.
Follow a packet, a unit of data sent across networks. Your laptop sends it over Wi-Fi to the access point, which forwards it locally to your router. The router sends it out of your local network to your Internet service provider. Routers then forward it across networks to the distant server.
Protocols are rules for communication. Internet Protocol, or IP, specifies how packets carry destination addresses. Transmission Control Protocol, or TCP, delivers data reliably and in order. Hypertext Transfer Protocol, or HTTP, defines web requests and responses. Voice over IP, or VoIP, uses several protocols to carry calls over IP networks.
Your browser is the client because it requests the timetable. Here, TCP carries the request data. The access point forwards the traffic locally to your router. Routers use the destination IP address to forward packets across networks. The web server then sends an HTTP response back to your browser.
You open Met Éireann's website on a school computer. The request goes from the computer to a switch, then to the school router and on to the Internet provider. At which step do the packets first leave the school's local network? Pick one.
The Internet is a network of networks. It carries packets for web traffic and other uses, such as voice calls. The World Wide Web is one service that gives you access to linked pages and other resources. So calling the Web another name for the Internet is a mistake.
If an exam question asks you to explain the role of a router, start with a packet arriving from the school network. The router uses the packet's destination IP address to decide where to forward it. Here it sends the packet on to the Internet service provider's network.