Paper 3 · Unit 14. Protocols, the TCP/IP stack and circuit vs packet switching.

1. Why protocols are needed

A protocol is a set of rules for communication (format, timing, error handling) so devices from different manufacturers can communicate. Protocols are organised in a stack of layers; each layer has a specific job and passes data to the layer above or below.

2. The TCP/IP protocol suite

LayerRoleExamples
ApplicationProvides services to applications and usersHTTP, FTP, POP3, IMAP, SMTP, BitTorrent
TransportSplits data into segments, adds port numbers, ensures reliable delivery and reassemblyTCP, UDP
InternetAdds IP addresses and routes packets across networksIP
LinkTransmits frames over the physical network using MAC addressesEthernet, Wi-Fi
ProtocolPurpose
HTTP / HTTPSTransfers web pages between browser and web server (HTTPS is encrypted)
FTPTransfers files between computers
SMTPSends (pushes) email to and between mail servers
POP3Downloads email to one device and usually deletes it from the server
IMAPKeeps email on the server so it syncs across devices
BitTorrentPeer-to-peer file sharing: a tracker coordinates peers; files are split into pieces downloaded from many peers (seeds and leechers) at once

Try it: which TCP/IP layer?

3. Circuit and packet switching

Circuit switchingPacket switching
PathA dedicated path is set up for the whole communicationData is split into packets that may take different routes
OrderData arrives in orderPackets may arrive out of order and are reassembled
BandwidthReserved, even when idle; guaranteed qualityShared, efficient use of the network
FailureA broken link ends the callPackets can be rerouted around failures
UseTraditional phone callsThe internet, email, web

A router reads the destination IP address of each packet and uses its routing table to forward it to the next hop on the best route.

4. Examiner tips

  1. Name the layer and its job, not just the protocol.
  2. POP3 vs IMAP: POP3 downloads, IMAP syncs and keeps mail on the server.
  3. BitTorrent: mention tracker, peers, seeds and pieces.
  4. Packet switching: packets contain a header with destination, sequence number and checksum.

5. Practice questions

Practice: answer and check instantly

Type a short answer, then press Check or Enter.

Show answer

The Internet layer.

Show answer

SMTP.

Show answer

IMAP.

Show answer

FTP.

Show answer

BitTorrent.

Show answer

Circuit switching.

Show answer

TCP.

Show answer

The Link layer.

Exam-style questions

9. Explain why a protocol stack is used. [3]

Show mark guide

Each layer has a specific, separate job [1] · layers can be changed/updated without affecting others [1] · makes design and troubleshooting simpler and allows different hardware/software to interoperate [1].

10. Compare circuit switching and packet switching. [4]

Show mark guide

Circuit: dedicated path set up first [1], bandwidth reserved [1] · packet: data split into packets sent on different routes [1], reassembled in order at the destination / efficient use of bandwidth [1].

6. Topic test: predict your grade

Topic test: predict your grade

15 questions, about 10 minutes. Answer them all, then press Mark my test.

1. A protocol is…
2. How many layers in the TCP/IP model?
3. HTTP is in which layer?
4. TCP is in which layer?
5. Port numbers are added by…
6. POP3…
7. SMTP is used to…
8. In BitTorrent, a seed…
9. The tracker…
10. Packet switching sends packets…
11. Circuit switching reserves…
12. A packet header includes…
13. Routers forward packets using…
14. Packets are reassembled using…
15. Which suits phone calls traditionally?

Frequently asked questions

What are the layers of the TCP/IP model?

The four layers are application, transport, internet and link.

What is the difference between POP3 and IMAP?

POP3 downloads emails to one device and usually removes them from the server. IMAP keeps emails on the server so they stay in sync across devices.

What is the difference between circuit switching and packet switching?

Circuit switching sets up a dedicated path for the whole communication. Packet switching splits data into packets that can take different routes and are reassembled at the destination.

Was this page helpful?