A-level Computer Science revision · Exchanging data

TCP/IP, DNS and packet switching

The idea

The TCP/IP stack has four layers: application, transport (TCP splits data into numbered packets and checks delivery), internet (IP adds addresses and routes) and link (physical transmission). DNS translates domain names into IP addresses. Packet switching sends packets independently, possibly by different routes, and reassembles them; circuit switching reserves a dedicated path.

  1. Name the layer and its job.
  2. DNS: domain name → IP address via a hierarchy of servers.
  3. Packet vs circuit switching.

Watch out In packet switching, packets may arrive out of order; TCP reassembles them using sequence numbers.

See it worked

Worked example

What does a DNS server do?

  1. A user types a domain name.
  2. DNS looks up the matching IP address.
  3. The browser connects to that IP address.

Answer It resolves domain names to IP addresses

Your turn

Question 11 mark

Which TCP/IP layer adds source and destination IP addresses to packets?

Choose one
Question 21 mark

What is an advantage of packet switching?

Choose one
Question 32 marks

Explain the role of the transport layer when TCP is used.

Write your answer, then see a model answer
  1. Splitting and numbering.
  2. Reliability.

Answer TCP splits data into packets, numbers them, and ensures they all arrive, requesting resends of lost packets and reassembling them in order.

A-level Computer Science Pro, OCR H446

A-level Computer Science Pro

£119 once

Price rises to £199 on 1 January. Save £80 by joining before then.

At least 12 months of access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms