Revision Notes
AQA A-Level Computer Science (7517): The Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol – Revision Notes
Condensed AQA 7517 section 4.9.4 recall: TCP/IP layers, ports and sockets, application protocols, subnet masks, IPv6, NAT, DHCP, REST, WebSocket and thin clients.
- Subject
- Computer Science
- Level
- A LEVELS
- Topic
- Fundamentals of communication and networking
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to AQA A Level Computer Science (7517), 2015-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): AQA A Level Computer Science.
Syllabus points this page covers
7517
- 4.9.4 The Transmission Control Protocol/Internet Protocol (TCP/IP) protocol
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (7517).
Condensed recall for 4.9.4 The Transmission Control Protocol/Internet Protocol (TCP/IP) protocol, AQA A-Level Computer Science (7517). The explanations and a worked subnet example are in the TCP/IP study guide; questions are in the TCP/IP practice questions.
The four layers
| Layer | Role | Identifier used |
|---|---|---|
| Application | Programs’ messages (HTTP, SMTP, FTP, …) | Port of the service |
| Transport | Segments, port numbers; TCP gives reliable, ordered delivery | Port number |
| Network | Routes packets between networks | IP address |
| Link | Delivers frames on the local network | MAC address |
- Sending: data passes down the stack, each layer adding a header. Receiving: it passes up, each layer removing its header.
- MAC address: unique hardware address of a network adapter; used on the local link only.
- Socket: an IP address plus a port number.
- Well-known ports (0 to 1023): fixed for standard services. Client ports: high-numbered, chosen temporarily by the client’s operating system.
| Service | Port |
|---|---|
| HTTP | 80 |
| HTTPS | 443 |
| FTP | 21 |
| SSH | 22 |
| SMTP | 25 |
| POP3 | 110 |
Application protocols
| Protocol | Use |
|---|---|
| HTTP | Request and deliver web pages |
| HTTPS | HTTP with encryption and server authentication |
| FTP | Transfer files; anonymous access (no account, limited rights) or non-anonymous (login required) |
| SMTP | Send email |
| POP3 | Retrieve email |
| SSH | Encrypted remote login and commands; a TCP connection to a remote port |
- Email server: sends (SMTP) and stores mail, delivers it to clients (POP3).
- Web server: serves pages in text form (HTML).
- Browser: requests pages and resources, then renders them.
IP addresses
- IPv4 address = network identifier + host identifier.
- Subnet mask: 1s for the network part. Network identifier = address AND mask.
- Hosts per subnet = 2ʰ − 2 for h host bits.
Check: 192.168.10.77 with mask 255.255.255.192: 77 AND 192 = 64, so network 192.168.10.64; 6 host bits give 62 hosts.
| IPv4 | IPv6 | |
|---|---|---|
| Size | 32 bits | 128 bits |
| Addresses | 2³² = 4,294,967,296 | 2¹²⁸ |
| Why introduced | IPv4 address space ran out as the number of devices grew |
- Public (routable): unique on the Internet. Private (non-routable): reserved for local networks (10.x.x.x, 172.16.x.x to 172.31.x.x, 192.168.x.x).
DHCP, NAT and port forwarding
| What it does | Why | |
|---|---|---|
| DHCP | Automatically leases an IP address and settings to a device | No manual set-up, no duplicate addresses, addresses reused |
| NAT | Router swaps private addresses and ports for its public address and port | Saves public addresses; hides internal devices |
| Port forwarding | Sends traffic for a given public port to a chosen internal address and port | Lets Internet users reach a server inside a private network |
Client-server model
- Client sends a request message; server sends a response message.
- WebSocket: full-duplex, persistent connection between browser and server over TCP; either side can send at any time. Used for chat, live feeds and games.
- REST: JavaScript in the browser calls a REST API on the server using HTTP methods.
| CRUD | HTTP | SQL |
|---|---|---|
| Create | POST | INSERT |
| Retrieve | GET | SELECT |
| Update | PUT | UPDATE |
| Delete | DELETE | DELETE |
- JSON compared with XML: easier to read, more compact, easier to create, quicker to parse.
Thin versus thick clients
| Thin | Thick | |
|---|---|---|
| Processing | On the server | On the client |
| Hardware cost | Low | Higher |
| Updates | Central | On every client |
| Offline use | No | Often yes |
| Server load | High | Lower |
Key terms
| Term | Definition |
|---|---|
| Protocol stack | Layers of protocols, each using the layer below |
| Socket | The combination of an IP address and a port number |
| Port | A number identifying the program that should receive data |
| Subnet | A smaller network formed by dividing a larger network |
| Subnet mask | A bit pattern used to find the network part of an address |
| Lease | The time for which a DHCP server gives out an address |
| Full-duplex | Data can be sent in both directions at the same time |
| API | Application programming interface: a defined way for programs to talk to each other |
| JSON | JavaScript Object Notation: a compact text format for data |
| Thin client | A client that relies on a server for most processing |
Exam traps
- Port = program; IP = device; MAC = local link.
- SMTP sends; POP3 retrieves.
- MAC addresses change at each hop; IP addresses do not.
- Subnet: AND the address with the mask, then subtract 2 from the host count.
- NAT is address translation, not encryption.
- WebSocket is persistent and two-way, unlike a single HTTP request.
- Do not mix up CRUD and HTTP methods. PUT is update; POST is create.
Self-test
- Name the four layers of the TCP/IP stack.
- What is a socket?
- What is the difference between a well-known port and a client port?
- Which protocol retrieves email?
- Give one use of SSH.
- What are the two parts of an IPv4 address?
- Find the network identifier of 172.16.5.200 with mask 255.255.255.224.
- Why was IPv6 introduced?
- Give one reason for using DHCP.
- What does port forwarding allow?
- Which HTTP method maps to SQL SELECT?
- Give one difference between a thin client and a thick client.
Answers
- Application, transport, network (Internet), link.
- An IP address combined with a port number.
- A well-known port is a fixed number for a standard service; a client port is chosen temporarily by the client.
- POP3.
- Secure remote login to run commands on another computer (or secure file transfer or tunnelling).
- A network identifier and a host identifier.
- 200 AND 224 = 192, so 172.16.5.192.
- IPv4 addresses were running out as more devices connected.
- Addresses are given out automatically, avoiding manual set-up and duplicates.
- Users on the Internet to reach a server on a private network.
- GET.
- A thin client relies on the server for most processing; a thick client does most of it locally.
More resources on this topic
Related resources
-
Study guides
AQA A-Level Computer Science (7517): The Internet
Deeper guide to AQA 7517 section 4.9.3 The Internet: packet switching, routers and gateways, URLs and DNS, Internet registries, firewalls, encryption, certificates, signatures and malware.
Computer Science · AQA · A Level
Read guide -
Practice questions
AQA A-Level Computer Science (7517): The Internet – Practice Questions
Original AQA 7517 section 4.9.3 questions with answers: packet switching, routing, DNS, firewalls, encryption, digital signatures and malware.
Computer Science · AQA · A Level
Try questions -
Revision notes
AQA A-Level Computer Science (7517): The Internet – Revision Notes
Condensed AQA 7517 section 4.9.3 recall: packet switching, routing, URLs, DNS, registries, firewalls, encryption, certificates, signatures and malware.
Computer Science · AQA · A Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.