2.1: Internet 101
Last updated
Last updated
The internet is wires that connect computers
The internet uses protocols such as HTTP to transmit data reliably
DNS translates human-readable URLs to IP addresses that identify computers on the network
The internet consists of computers, wires and software that sends data between computers through wires.
Internet pioneers developed software protocols that allow us to transmit data across the internet reliably. Internet governing bodies are continuously upgrading these protocols.
As app developers we do not need to understand these protocols in depth. This page runs through the most important aspects of internet protocols we need to build apps effectively.
HTTP (Hypertext Transfer Protocol) is the most common internet data-transfer protocol. We will use it to send data between our app frontends and backends, as well as between our apps and any 3rd-party API (Application Programming Interface) services to store or retrieve data.
HTTP consists of "requests" and "responses". Frontends (e.g. browsers, mobile apps, aka "clients") typically send "requests" to backends (aka "servers") to create, retrieve, update or delete data from a database. Backends send back "responses" with confirmations and relevant data.
URLs (Uniform Resource Locators) are internet addresses. We will send HTTP requests with URLs to retrieve our frontends and communicate with our backends and 3rd-party APIs.
We use ports to identify requests and responses to different applications on the same computer. We can omit ports in URLs when our applications use default ports (e.g. 443 for HTTPS requests, 80 for HTTP).
URLs map to IP (Internet Protocol) addresses that identify individual or networks of computers on the internet. IP addresses are network-based, not computer-based, so if we connect our computer to a different network it will have a different IP address.
IP addresses typically consist of 4 numbers from 0-255 separated by .
, for example 192.158.1.38
. These are known as "IPv4" addresses and route most internet traffic today. The world is running out of IPv4 addresses and plans to transition to "IPv6" in the coming decades.
DNS (Domain Name System) translates domain names in URLs to IP addresses so our requests can reach the right servers. It's helpful to have domain names decoupled from IP addresses so we can change servers without changing domain names.
When we rent or buy a domain name and want to host our website or server there, we will need to add 1 or more "DNS records" to our domain to let DNS know where to find our server.