CIE AS & A Level Computer Science, section 14.1 (Protocols)
Common application-layer protocols
| Protocol | Purpose |
|---|---|
| HTTP | requests and delivers web pages between a browser and a web server |
| HTTPS | HTTP with encryption (using TLS), so data cannot be read if intercepted |
| FTP | transferring files between computers, such as uploading a website |
| SMTP | sending email, and passing it between mail servers |
| IMAP | reading email held on the server, which stays there and can be seen from many devices |
| POP3 | downloading email to a device, usually removing it from the server |
| BitTorrent | peer-to-peer sharing of large files |
Choosing
- To send a message, use SMTP.
- To read mail on a phone and a laptop with the same view, use IMAP.
- To download mail to one device and read it offline, use POP3.
BitTorrent
BitTorrent shares a file between many users, rather than from one server.
- The file is split into pieces.
- A tracker keeps a list of the peers that have the file.
- A user's client downloads pieces from many peers at once, and uploads pieces it already has to others.
- A group of peers sharing a file is a swarm. A seed is a peer that has the complete file.
Benefits: the load is spread across peers, so downloads are fast and no single server is overloaded.
HTTP and HTTPS
HTTP data is sent as plain text. HTTPS encrypts it, so use it for logins and payments.
Common mistake: mixing up IMAP and POP3. IMAP keeps mail on the server (synchronised across devices); POP3 downloads it to the device. Also, SMTP is used to send mail, not to read it.
Exam tip: name the protocol and state its specific purpose. Match each protocol to a scenario, such as "SMTP to send an email".
Check yourself
Which protocol would be used to upload files to a web server?
FTP.
What is the difference between HTTP and HTTPS?
HTTPS encrypts the data being sent, whereas HTTP sends it as plain text.
What is a seed in BitTorrent?
A peer that has the complete file and shares it with others.