Computer Science Fundamentals from Scratch

Computer Networks and the Internet: The Big Picture

Lesson 5 of 5 2 min read Updated 28 September 2026

What is the internet?

The internet is a global network of networks connected by cables, routers and satellites. It carries data using agreed rules called protocols.

Packets

Data is split into small packets that travel independently and are reassembled at the destination. This lets many people share the same connections and lets data find alternate routes.

The TCP/IP model

LayerJobExamples
ApplicationWhat apps useHTTP, HTTPS, DNS, SMTP
TransportReliable delivery between appsTCP, UDP
InternetAddressing and routingIP
LinkSending over the physical mediumEthernet, Wi-Fi

The OSI model is a more detailed seven-layer version often used in teaching.

TCP vs UDP

  • TCP checks that all data arrives in order. It is used for web pages and email.
  • UDP is faster with no guarantee. It is used for live video and games.

What happens when you open a website

  1. Your browser asks a DNS server to convert the name to an IP address.
  2. It opens a TCP connection to that address.
  3. For HTTPS, it sets up TLS encryption.
  4. It sends an HTTP request.
  5. The server replies with the page and other files.
  6. The browser renders them.

HTTP basics

GET /index.html HTTP/1.1
Host: example.com

HTTP/1.1 200 OK
Content-Type: text/html

Common status codes: 200 OK, 301 redirect, 404 not found, 500 server error.

Security basics

  • HTTPS encrypts traffic between the browser and the server.
  • Firewalls filter traffic.
  • Use strong passwords, updates and two-factor authentication.

Client and server

A client (browser or app) asks for something. A server provides it. Most of the internet works this way.

Next steps

Continue with the Technical Support and Full Stack Development courses to apply these ideas.

Practice

Use the ping and traceroute (or tracert) commands on a website and note how many hops your data takes.