AQA A-Level Computer Science 7517
Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation
Fundamentals of Data Representation
Fundamentals of Computer Systems
Fundamentals of Computer Organisation and Architecture
Fundamentals of Communication and Networking
Consequences of Uses of Computing
Systematic Approach to Problem Solving
Fundamentals of Databases
Big Data
Fundamentals of Communication and Networking
TCP/IP
- 2 things to know
- Paper 2
Overview
Recall questions on the four layers and what each does, which addresses change at each hop, sockets and port numbers, and why both MAC and IP addresses are needed.
What you need to know
Answer each one before you reveal it.
Why does a device need a MAC address as well as an IP address?
Questions from this subtopic
Each one with the model answer underneath.
- 1
Name the four layers of the TCP/IP stack in order from the top down.
Model answer
Application, transport, network, link.
- 2
Describe the role of the application layer.
Model answer
The application layer is the top layer, closest to the user. It provides the protocols that applications use to communicate in a way both ends understand — for example the protocols for fetching web pages, sending and retrieving email, transferring files and logging in remotely. It specifies the format and structure of the messages the application sends, and passes that data down to the transport layer. It has no interest in how the data actually gets there.
- 3
Describe the role of the transport layer.
Model answer
The transport layer establishes an end-to-end connection between the two hosts and makes the transfer reliable. It splits the data from the application layer into numbered packets, adds the source and destination port numbers so the data reaches the right application at each end, and keeps track of which packets have been acknowledged. If a packet is not acknowledged it is resent. At the receiving end this layer uses the sequence numbers to reassemble the packets into the right order and passes the complete data up to the application layer.
- 4
Describe the role of the network layer.
Model answer
The network layer, also called the Internet layer, is responsible for getting packets across the interconnected networks to the correct host. It adds the source and destination IP addresses to each packet, and it routes packets: routers operate at this layer, reading the destination IP address and forwarding the packet towards it. The IP addresses stay the same from one end of the journey to the other.
- 5
Describe the role of the link layer.
Model answer
The link layer is the bottom layer and handles the actual transmission of data over the physical connection between one device and the next. It adds the MAC address of the sending network interface and the MAC address of the device the packet is being handed to on this hop, and it deals with the hardware and the transmission medium itself — cable, radio or fibre.
- 6
As a packet travels across the Internet, which addresses change at each hop and which stay the same? Why?
Model answer
The IP addresses in the network layer stay the same for the entire journey, because they identify the two hosts the conversation is actually between. The MAC addresses in the link layer are replaced at every hop, because they identify only the two pieces of hardware at either end of the single physical link currently being crossed. Each router strips off the incoming link-layer addressing, decides the next hop from the unchanged destination IP address, and writes new MAC addresses for that next step.
Other ways to work this
The same content, four other ways.
What is inside Levo
Six ways to work the same material.
Every question in Fundamentals of Communication and Networking, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.