Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DI 2.1: Protocols and ports in use

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

55 minutes

One address, many doors

A building has one street address. But it has many doors: a front door, a loading door and a fire door. Each door is for a different job.

A server is the same. It has one address, but many numbered doors. Web visitors use one door. Email uses another.

Key words

WordWhat it means
Networkcomputers and devices joined together so they can share data
Packeta small piece of data sent over a network
Protocola set of rules that devices follow to talk to each other
Porta numbered door on a device that one service listens at
Port numbera number from 0 to 65535 that names the door
IP addressthe number that names a device on a network
Servicea program that gives a job to other devices, such as a web server
Listeninga service waiting at its port for a request
TCPa protocol that checks that every packet arrives
UDPa faster protocol that does not check that packets arrive
Well-known porta port number agreed for one service, from 0 to 1023
Encryptionscrambling data so only the right person can read it
DNSthe service that turns a name into an IP address

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say what a protocol and a port are, name the common ones with their numbers, and pick a safe one.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

IP address plus port

The IP address finds the device. The port number finds the service on it. Together they are written like this: 203.0.113.10:443.

A protocol is the set of rules the two sides follow at that port. A web server listens on port 443 and speaks HTTPS.

Most protocols use TCP, which checks that every packet arrives. Some use UDP, which is quicker but does not check.

Common protocols and their ports

ProtocolPortWhat it does
HTTP80Web pages, not encrypted
HTTPS443Web pages, encrypted
FTP21Moves files, not encrypted
SSH and SFTP22Remote login and file moves, encrypted
SMTP25Sends email between servers
POP3110Downloads email to one device
IMAP143Reads email kept on the server
DNS53Turns names into IP addresses
DHCP67 and 68 (UDP)Hands out IP addresses
NTP123 (UDP)Keeps clocks correct
LDAP389Looks up users in a directory
RDP3389Remote desktop on a Windows machine

The cells students fill in are left blank in this preview.

Look the ports up on a real machine

A Linux machine keeps a list of well-known ports in a file. The command getent services reads it. Open the lab terminal and press Run.

Which port does HTTPS use?

Command
getent services https

A command for the lesson’s lab terminal. It is shown here and not run.

Which port does DNS use?

Command
getent services domain

A command for the lesson’s lab terminal. It is shown here and not run.

The lesson goes on

9 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.