Cambridge International AS and A Level Computer Science: Topic Support Guide
Cambridge International AS and A Level Computer Science: Topic Support Guide
9608
For examination from 2017
Introduction ..................................................................................................................................... 2
How to use this guide .................................................................................................................. 2
Learning objectives ..................................................................................................................... 2
Prior knowledge........................................................................................................................... 2
1. Key terms ................................................................................................................................ 3
2. Theory ..................................................................................................................................... 4
2.1 What is a protocol? ................................................................................................................ 4
2.2 Layering and the OSI model .................................................................................................. 5
2.3 TCP/IP................................................................................................................................... 6
2.4 The TCP/IP layer model ........................................................................................................ 7
2.5 A TCP/IP communication example ........................................................................................ 8
3. Online resources...................................................................................................................... 9
3.1 Websites ............................................................................................................................... 9
4. Class and homework activities ............................................................................................... 10
4.1 Quiz ..................................................................................................................................... 10
4.2 Homework questions ........................................................................................................... 11
Introduction
Section 1 lists some key terms used in this topic and their definitions. Section 2 introduces
protocols, the OSI model and the TCP/IP protocol suite. Section 3 lists some online resources that
you or your learners may find useful, Section 4 gives ideas for class and homework activities.
Learning objectives
Using this document should help you guide learners in the following syllabus learning objectives:
Prior knowledge
understand what protocols are and why they are needed for communication
be familiar with the OSI seven-layer model
be familiar with the TCP/IP protocol suite and how the functions of the layers
compare to those of the OSI model
understand how the TCP/IP protocol implements data communication between
host computers connected to the internet.
1. Key terms
Word/phrase Meaning
Internet A protocol that specifies the size of the packets that a message is broken down
Protocol (IP) into, and the address of the recipient device
IPv4 A method of addressing that uses 32-bit numbers to specify internet/network
addresses
IPv6 A method of addressing that uses 128-bit numbers to specify internet/network
addresses
layer A division of the OSI and TCP/IP models that contains a protocol that
implements a specific aspect of communication
OSI model A model that defines standards for communication between any two devices
and across any network
protocol A set of rules governing communication between computers
Transmission A protocol in the TCP/IP suite that handles the transfer of data from one
Control computer to another
Protocol (TCP)
TCP/IP Layer A model that defines standards for communication over the internet
Model
TCP/IP suite A collection of protocols including IP, TCP and UDP that handles
communication between two computers across the internet
User Datagram A protocol in the TCP/IP suite that broadcasts data across a network
Protocol (UDP)
2. Theory
Before one computer can communicate with another, there must be a set of agreed rules in place
that manage how the communication is to take place. These rules are known collectively as a
protocol.
To illustrate the need for rules when two or more objects communicate, we will look at some rules
used when humans talk to each other. For example, we:
Similarly to human communication, computers use rules, and these form the protocols that are
used for computer communication. Protocols need to specify several aspects of communication,
for example:
The protocols allow messages to be transmitted in a structured, specific manner, so that the
receiving device is able to process the data sent from the sending device. Protocols therefore
make sure that communication between any two devices is successful. Different communication
protocols exist to specify rules for different types of communication, for example:
Hyper Text Transfer Protocol (HTTP) – handles transmission of data to and from a website
Simple Mail Transfer Protocol (SMTP) – handles email transmission
File Transfer Protocol (FTP) – handles transmission of files across a network
TCP/IP – handles communication over the internet.
The Open Systems Interconnection model (OSI model) was introduced to form standards for
computer communication. The model takes the various elements of communication and
conceptually separates them into layers. Each layer can be treated individually, and is independent
from the others. Each layer contains different protocols and handles a different part of the
transmission.
Layer Description
The layers are numbered and sit one above each other, and can therefore be thought of as a
stack. The output from one layer provides the input for the next. Each layer interacts only with the
layer directly above it and/or below it, and at the bottom of the stack, the Physical Layer transmits
data between the source and destination devices:
7. Application Layer
6. Presentation Layer
5. Session Layer
4. Transport Layer
3. Network Layer
1. Physical Layer
Different media (e.g. wired and wireless) are able to use the same protocols in most layers
above the Physical Layer. This makes it easier for a manufacturer to introduce a new
transmission medium.
Similarly, when testing new equipment, developers only have to test the layers that contain
protocols specific to that equipment (e.g. for a new router, testing would be needed at the
Network Layer, but not the Transport Layer).
Protocols are sometimes updated, and as the layers are separate and independent, the rules
within them can be changed without affecting the rules contained in the other layers, as long as
the interface to the layers above and below is kept the same.
Transmission faults are more easily traced, as the type of error is often specific to a layer. A
tester only has to investigate that layer to find the cause of the problem.
2.3 TCP/IP
The development and growth of the internet required specific protocols for internet communication.
Two protocols – Internet Protocol (IP) and Transmission Control Protocol (TCP) – were developed
as a result. Known collectively as the TCP/IP suite, each protocol is responsible for different
aspects of communication:
Internet communication uses ‘packet switching’ to handle data transfers from the sending
device to the receiving device – that is, transferred data, such as a downloaded file, is not sent
across the network in a single message, but is broken down into ‘packets’ of smaller pieces of
data. IP specifies the size of the packets that the message is broken down into, and the
address of the receiving device.
TCP handles the transfer of data between the sending and receiving devices – the ‘end-to-end’
communication. It establishes a connection, then makes sure the packets are sent and
received correctly and in the right order. If a packet does not arrive, TCP re-sends the packet.
TCP differs from some other networking protocols in that it does not broadcast data across a
network – instead it is used for one-to-one communication between two devices. Another
protocol, the User Datagram Protocol (UDP) is used for broadcasting data. Unlike TCP, UDP
does not guarantee the packet will safely arrive.
2.3.1 IP addresses
The Internet Protocol version 4 (IPv4) uses 32-bit numbers to specify internet addresses. These
addresses are broken down into four numbers in the range 0 to 255, and they are separated by a
dot. For example:
192.168.0.1
192 . 168 . 0 . 1
11000000101010000000000000000001
However, using 32 bits limits the total possible number of internet addresses to 4,294,967,296 (232)
addresses (4.3 billion). Although this appears to be a very large number, the huge number of
computer devices currently running in the world means that the number of free addresses is
running out. As a result, a new version of the protocol, IPv6, using 128 bits, is now also in use. This
gives 2128 possible addresses!
Application Layer
Application Layer Presentation Layer
Session Layer
Transport Layer Transport Layer
Internet Layer Network Layer
Network Interface Layer Data Link Layer
Physical Layer
The TCP/IP layers handle similar communication rules compared to their OSI model equivalents:
Layer Description
1. Our browser uses the Hyper Text Transfer Protocol (HTTP) to send a request to the Application
Layer.
2. The Application Layer protocol (HTTP) sends the request to the Transmission Control Protocol
(TCP) in the Transport Layer. The TCP communicates with the Internet Layer to establish a
connection with the webserver across the network(s).
3. The Internet Protocol in the Internet Layer establishes the address of the webserver and
converts the request into packets. The packets are sent to the Network Layer.
4. The Network Layer uses its protocols to send the packets over the internet to the webserver.
5. At the webserver the process is reversed. The packets are sent up through the protocols in the
layers, and re-assembled into the request. The request is passed through the Application Layer
protocols for the webserver to service.
6. In the same manner the webserver uses the protocols in the layers to send the webpage data
back to our device.
3. Online resources
The content of websites is dynamic and constantly changing. Schools are strongly advised to check
each site for content and accessibility prior to using it with learners. Cambridge International
Examinations is not responsible for the accuracy or content of information contained in these sites.
The inclusion of a link to an external website should not be understood to be an endorsement of
that website or the site's owners (or their products/services).
3.1 Websites
Scottish Qualifications Authority Higher National Computing website – covers most areas of the
topic, including the OSI model, TCP/IP, IPv4 and IPv6, and includes some useful diagrams:
www.sqa.org.uk/e-learning/HardOSEss04CD/index.htm
An alternative explanation of the OSI model, including example technologies and protocols for
each layer:
http://compnetworking.about.com/od/osimodel/tp/The-Seven-Layers-of-the-OSI-Model-
Illustrated.htm
www.hardwaresecrets.com/how-tcp-ip-protocol-works-part-1/
4.1 Quiz
1. A protocol is: