The internet is a worldwide network of computer networks that pass data to one another by agreed rules. The web, email, video calls and streaming are services carried over it. An outline of how it works makes sense of the terms met when a website is set up: address, domain, server, host and browser.
A network of networks
Homes, offices, universities, mobile operators and data centres each run their own networks. Internet service providers connect these to one another, and the largest providers are linked by high-capacity fibre-optic cables, many of them laid on the seabed between continents. No single body owns or controls the whole. It works because every network uses the same technical standards.
Packets and routing
- Data is not sent as a continuous stream. A message, picture or page is divided into small pieces called packets, each labelled with the address of its sender and its destination.
- Devices called routers read the destination and pass each packet on towards it. Packets from one message may travel by different routes.
- At the destination the packets are checked, any that are missing are requested again, and the whole is reassembled.
- If a route fails, packets are sent another way, which makes the network resilient.
Addresses
- Every device connected to the internet has a numerical address, known as an IP address, by which packets find it.
- The older form of address, version 4, provides about four thousand million addresses, which is too few; version 6, with a vastly larger range, is in use alongside it.
- A home router usually has one public address from the provider and gives private addresses to the devices behind it.
- An address may be fixed, or allotted afresh each time a device connects.
Names
People use names, such as the address of a website, in place of numbers. The domain name system is the directory that converts one into the other. When a name is typed, the device asks a resolver, usually run by the internet provider, which consults the servers responsible for that part of the name and returns the numerical address. The answer is remembered for a time, so that the question need not be asked again. Names are registered through registrars; see domain names.
Clients and servers
- A server is a computer that holds information or provides a service and waits for requests.
- A client is the device or program that asks: a browser, an email program, an application on a telephone.
- Most websites are kept on servers in data centres run by hosting companies; see choosing web hosting.
What happens when a page is opened
- The browser looks up the numerical address for the name.
- It opens a connection to the server at that address.
- For a secure site, browser and server agree encryption keys, and the server proves its identity with a certificate.
- The browser requests the page.
- The server returns a file written in the markup language of the web, which names further files: style sheets, images and scripts.
- The browser requests those, assembles the page and displays it.
The whole exchange normally takes less than a second.
The internet and the web
The two words are often used as one, but the web is only one service on the internet. It consists of pages linked to one another and read in a browser, and was devised in 1989 by the British scientist Tim Berners-Lee at the European particle physics laboratory near Geneva. The internet itself grew from research networks built in the United States from the late 1960s. Email, file transfer, messaging and internet telephony are separate services that use the same network.
Protocols
A protocol is a set of rules for an exchange. A few are met by name:
- TCP/IP: the pair of protocols that address packets and ensure they arrive complete.
- HTTP and HTTPS: for requesting web pages; the second is the encrypted form.
- DNS: for looking up names.
- SMTP and IMAP: for sending and reading email.
- FTP and SFTP: for transferring files to a server; the second is the secure form.
Getting connected
- Fixed connections reach premises by fibre-optic cable, by copper telephone line or by cable television network. Fibre all the way to the building is the fastest.
- Mobile networks, satellite services and fixed wireless links serve places that cables do not.
- Inside a building, a router shares the connection by cable or by wireless signal.
- Speed is measured in megabits per second, separately for download and upload. Delay, the time taken for a packet to make a round trip, matters for calls and games.
Who looks after it
- Technical standards are agreed by international bodies of engineers, open to all, and published freely.
- A non-profit international body co-ordinates domain names and the allocation of addresses, through regional registries.
- National regulators oversee providers, competition and consumer protection; national law governs what is published and how personal data is used.
Security in outline
Data crossing the internet passes through many networks. Encryption, shown by a padlock in the browser, prevents it from being read or altered on the way, and certificates confirm that a site is the one it claims to be. Keeping devices updated and using strong, separate passwords are the user's part; see passwords and online security.