Skip to content
Cambridge AS & A Level9626

Network protocols

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Network protocols notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Network protocols notes as text: skim, search, and jump between subtopics.

~14 min read

1. What a protocol is

A network protocol is a set of rules that determine how data is transmitted on a network so that devices can communicate with each other. Protocols are necessary because every device on the network follows the same rules.

The rules cover how connections are set up between devices, how data is packaged for transmission and reception, how data is addressed or labelled, and how data finds its way across networks (is routed). Some protocols also specify how devices are identified.

Examiner insight

“Answers that stated that each protocol is ‘a network protocol’ were just restating the question and did not gain credit.” “The syllabus requires candidates to be able to describe network protocols and they are expected to be able to answer these types of question.”

Worked example 12 marks

The purpose of network protocols is to specify the rules for communication between devices in an Internet Protocol (IP) network. Network protocols can include rules that specify how networked devices are identified. Describe two other rules that are specified by network protocols for communication between devices.

  1. 1

    How connections are created or set up between devices. [1]

  2. 2

    How data is to be addressed or labelled for transmission and reception. [1]

2. Sending data: packets and connection modes

In packet switching, data is sent as packets. Each packet takes its own route, so packets can arrive at different times and in any order. Message switching uses store and forward: the whole message is sent to a node, stored, forwarded to the next node and then deleted.

A connection-oriented protocol such as TCP provides reliable, error-checked delivery and retransmits missing packets. A connectionless (datagram) protocol such as UDP or IP has no fixed route between sender and recipient. Each packet is sent independently and finds its own way.

UDP is used where error-checking of packets is not necessary, for example for streaming services. ICMP is used by routers to send information to other routers.

Examiner insight

“Candidates could describe packet switching but few could describe the benefits or drawbacks of packet switching for data transfer around networks.” “A common error was to omit the detail about the deletion of the message once it has been sent and to state that it was kept at each node as a ’backup’.”

Worked example 14 marks

An Internet Protocol (IP) network can be described in networking terms as unreliable and connectionless. State what is meant by unreliable in networking terms. Describe what is meant by connectionless in networking terms. State one reason why a connectionless method of communication is used.

  1. 1

    Unreliable: delivery of data packets is not guaranteed. [1]

  2. 2

    Connectionless: there is no fixed route between sender and recipient. [1]

  3. 3

    Packets are sent independently and each finds its own way to the recipient. [1]

  4. 4

    Reason: better use of the available bandwidth, because packets do not follow the same route. [1]

3. Application protocols: HTTP, FTP, email and Telnet

HTTP is used by a web browser to send a request to a web server, which sends a response back. HTTPS gives a secure, encrypted exchange. FTP transfers files between a client and a server: the client sends a request on port 21 and usually needs a username and password.

SMTP is used for receiving emails from clients and IMAP allows clients to access email messages, which stay in mailboxes on the server. Telnet creates a connection between a terminal and a remote host, and by default it does not encrypt login details.

Examiner insight

“Credit was not given for lists of protocols; as always, candidates were required to describe, rather than simply name, the protocols.” “Answers referring to what it is used for did not answer the question.”

Worked example 16 marks

The content of web pages is displayed in a web browser. The web browser obtains the content from a web server. Describe, in detail, how the request and response method of communication between a web browser and a web server functions.

  1. 1

    The web browser sends a request from the client device. [1]

  2. 2

    It uses HTTP. [1]

  3. 3

    The request goes to the web server, listening on port 80 or 8080. [1]

  4. 4

    The web server sends a response back to the client device. [1]

  5. 5

    HTTPS is used for a secure connection, so requests and responses are encrypted. [1]

  6. 6

    Requests and responses are exchanged for every element of the web page until the whole page is received by the browser. [1]

4. Secure protocols and tunnelling

SSH creates a secure link between applications using the client-server model, so intercepted data cannot be understood without the keys. IPsec secures data as it is transferred across a network. It sets up encryption keys at the start of a session and generates new keys for each session.

TLS/SSL provide network security for web browsing, email and online payments. Data is encrypted, certificates are sent and confirmed with a trusted authority, and a handshake is carried out. TLS/SSL work between the application layer and the transport layer.

L2TP is a tunnelling protocol. It wraps packets inside packets of an allowed protocol so they can cross another network without being examined or altered, and it supports VPNs.

Examiner insight

“Answers that repeated or rephrased the question, e.g. ‘Secure shell (SSH) is used for security’ did not gain credit.” “Fundamentally, the use of IPsec is to secure data as it is being transferred across a network.”

Worked example 15 marks

Describe the use of TLS/SSL.

  1. 1

    SSL stands for Secure Socket Layer and TLS stands for Transport Layer Security. [1]

  2. 2

    They provide network security. [1]

  3. 3

    They encrypt data sent from users to websites and from websites to users. [1]

  4. 4

    Certificates are sent. [1]

  5. 5

    The certificates are confirmed with a trusted authority. [1]

5. Network addressing: MAC, IP and DHCP

A MAC address is a unique 48 bit address that identifies the NIC. It is used in Ethernet frames and by switches. An IP address uniquely identifies a device on the network and has two parts, a network address and a device address. Routers use it to send packets between networks.

An IPv4 address uses 32 bits and an IPv6 address uses 128 bits. IPv4 addresses are nearly all allocated, so IPv6 provides many more. The header of an IP packet holds the source address, the destination address, the protocol used, the hop count and the total length.

DHCP is a management protocol that automatically assigns network parameters, such as an IP address and a gateway address, to a device. It uses UDP: the NIC sends a discover request, the server offers an address, the NIC requests it and the server acknowledges.

bytes = bits/8

Examiner insight

“Differences could have included the use of switches by MAC addresses whereas routers use IP addresses to direct data packets.” “This question required candidates to state that DHCP is a management protocol used to automatically assign network parameters, such as an IP address and a gateway address, to a device.”

Worked example 16 marks

Five laptops are physically connected to the same local area network (LAN). The network interface card (NIC) of each laptop has a media access control (MAC) address and an internet protocol (IP) address.

(a) Describe the purpose of the MAC address.

(b) The table shows the internet protocol (IP) address of each laptop. Explain why laptop C may be unable to communicate directly with the other four laptops.

LaptopInternet protocol (IP) address
A192.168.1.102
B192.168.1.124
C192.168.2.102
D192.168.1.133
E192.168.1.123
  1. 1

    (a)

  2. 2

    The MAC address uniquely identifies the NIC in a network. [1]

  3. 3

    It is used in Ethernet frames when sending packets. [1]

  4. 4

    It is used as the address when sending and receiving packets. [1]

  5. 5

    It is used by switches to direct packets around networks. [1]

  6. 6

    (b)

  7. 7

    There are two logical networks, 192.168.1.x and 192.168.2.x. [1]

  8. 8

    Laptop C is on a different logical network, so its packets cannot be received by the other four laptops. [1]

6. Static and dynamic routing

A router reads the header of each data packet, refers to its routing table and forwards the packet or drops it. In static routing the table is created by a network administrator and its entries are fixed, so the routes are fixed.

In dynamic routing the router creates the table and updates it automatically, using algorithms that take account of real-time network conditions. Routers share table data. Dynamic routing protocols build up a table of preferred routes between connected routers.

Examiner insight

“Some candidates gave answers about static Internet Protocol (IP) addresses. Static IP addressing is different from static routing.” “It was noted that a significant number of responses referred to dynamic IP assignment using DHCP.”

Worked example 14 marks

Compare static routing and dynamic routing of data packets through an IP network.

  1. 1

    Similarity: both are used by routers to determine the path across an IP network. [1]

  2. 2

    Static: the routing table is created by a network administrator. [1]

  3. 3

    Static: the entries are fixed and not changed. [1]

  4. 4

    Dynamic: the router creates the table and it changes automatically according to network conditions. [1]

7. Protocol layering: TCP/IP and OSI

Both the OSI model and the TCP/IP suite are conceptual models arranged in layers. They differ in the number, arrangement and function of their layers. The OSI model has seven layers.

In TCP/IP, the application layer adds a service type or port number and decides which application deals with incoming data. The transport layer adds headers with source and destination ports, sets the connection type (TCP or UDP) and passes packets on to the internet layer. The internet layer adds source and destination addresses; IP works here.

In OSI, the presentation layer converts data into the format needed for the next layer and applies encryption. On receiving, it decrypts the data and converts it into a format the application can use.

Examiner insight

“The question was about the functions of one specific layer: the presentation layer. Details of other layers did not gain credit.” “Candidates described the Transmission Control Protocol/Internet Protocol (TCP/IP) suite in general terms rather than the specific functions of its application layer.”

Worked example 16 marks

The TCP/IP suite of network protocols is made up of layers that control the transmission of data packets. The layers include the application layer and the transport layer.(a) Describe functions of the application layer.(b) Describe functions of the transport layer.

  1. 1

    (a)

  2. 2

    It is used by software to prepare its data into packets. [1]

  3. 3

    It adds a service type or port number to identify the type of application sending the data. [1]

  4. 4

    It determines which application should receive an incoming packet, by reference to the port number. [1]

  5. 5

    (b)

  6. 6

    It adds headers containing source and destination ports. [1]

  7. 7

    It sets the type of connection to be used: connection-oriented (TCP) or connectionless (UDP). [1]

  8. 8

    It passes packets to the internet layer for addressing. [1]

8. Firewalls

A firewall monitors the traffic coming in to and going out of a network. It controls inward and outward data flow by filtering data packets, and it reports or blocks suspicious traffic. One firewall protects multiple networked computers at once.

A firewall can block legitimate processes or applications, so its settings may need manual adjustment. It is also a central point of attack: once it is breached there are no further defences.

A firewall is not anti-virus software and it is not a proxy server. Keep the answer on unauthorised access to the network.

Examiner insight

“Candidates described anti-virus software rather than firewalls.” “Weaker answers confused proxy servers with firewalls.”

Worked example 14 marks

A company uses a firewall on its network. Describe how the firewall helps to protect the network.

  1. 1

    It monitors the traffic coming in to and going out of the network. [1]

  2. 2

    It filters data packets. [1]

  3. 3

    It blocks suspicious traffic, or reports it. [1]

  4. 4

    It prevents unauthorised access, and protects all the networked computers at the same time. [1]

Recap

  • A protocol is a set of rules that determine how data is transmitted so that devices can communicate.
  • Packet switching: each packet finds its own way. Store and forward: store, forward, then delete.
  • TCP is connection-oriented and error-checked. UDP and IP are connectionless.
  • HTTP, FTP, SMTP, IMAP and Telnet: describe how each works, not only what it is for.
  • SSH, IPsec, TLS/SSL and L2TP: encryption, keys, certificates, tunnelling.
  • MAC address identifies the NIC; IP address identifies the device and its network; DHCP assigns addresses automatically.
  • Static routing tables are fixed; dynamic routing tables update automatically.
  • Name the layer asked about and describe only its functions.
  • A firewall monitors and filters traffic to prevent unauthorised access.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State what is meant by a network protocol.2 marks
    Answer
    1. It is a set of rules that determine how data is transmitted on a network.
    2. This is so that devices can communicate with each other.

    Trap: Restating the question: 'a protocol used on a network'.

  2. A streaming service sends video using UDP. Describe one reason UDP is used for this.2 marks
    Answer
    1. UDP is connectionless.
    2. It is used where error-checking of packets is not necessary, such as streaming.

    Trap: Calling UDP reliable because it is fast.

  3. Do not use a calculator. An IPv4 address uses 32 bits and an IPv6 address uses 128 bits. Calculate how many more bytes an IPv6 address needs.2 marks
    Answer
    1. IPv6: 128 ÷ 8 = 16 bytes.
    2. IPv4: 32 ÷ 8 = 4 bytes.
    3. Difference = 16 - 4 = 12 bytes.

    Trap: Leaving the answer in bits (128 - 32 = 96) when bytes are asked.

  4. Four computers have these IP addresses: P 10.0.4.12, Q 10.0.4.57, R 10.0.5.12, S 10.0.4.90. State which computer may be unable to communicate directly with the others and explain why.3 marks
    Answer
    1. R.
    2. It is on a different logical network, 10.0.5.x.
    3. The others are on 10.0.4.x, so R's packets cannot be received by them.

    Trap: Comparing only the last number: P and R both end in 12.

  5. A user downloads a file using FTP. State the port on which the client sends its request, and give one reason the user might choose HTTP instead.2 marks
    Answer
    1. Port 21.
    2. HTTP is built into the web browser, so no FTP client software needs to be installed.

    Trap: Giving port 20, which the server uses for the data connection in active mode.

  6. A technician logs in to a remote server using Telnet. Explain why this is a security risk and name a protocol that creates a secure link instead.3 marks
    Answer
    1. Telnet does not encrypt login details by default.
    2. The details are sent in plain text, so they can be intercepted and used to access stored data.
    3. SSH creates a secure link.

    Trap: Saying only 'Telnet is not secure', which repeats the risk without explaining it.

  7. A message travels from node P to node Q to node R using store and forward. Describe what node Q does with the message.3 marks
    Answer
    1. Q receives the whole message and stores it.
    2. Q forwards it to R.
    3. Q then deletes it.

    Trap: Saying Q keeps a copy as a backup.

  8. A manager says: 'Dynamic routing means every device gets its IP address from a DHCP server.' Explain what is wrong, and describe dynamic routing.3 marks
    Answer
    1. Dynamic IP assignment by DHCP is different from dynamic routing.
    2. In dynamic routing the router updates its routing table automatically.
    3. It uses algorithms that take account of real-time network conditions.

    Trap: Confusing dynamic routing with dynamic IP assignment using DHCP.

  9. A packet is being sent. The transport layer has added its header. State the next layer of the TCP/IP suite that handles the packet and what it adds.2 marks
    Answer
    1. The internet layer.
    2. It adds the source and destination addresses.

    Trap: Giving the layers in the receiving order, or describing layers other than the one asked.

  10. A clinic's firewall has stopped a new appointment app from working. Explain why this may happen. State what the network manager should do, and one weakness of relying on a firewall.4 marks
    Answer
    1. A firewall filters data packets and monitors traffic coming in and going out.
    2. It can block legitimate processes or applications.
    3. The manager adjusts the firewall settings manually.
    4. Weakness: it is a central point of attack, and once it is breached there are no further defences.

    Trap: Describing anti-virus software: 'it removes the virus that stopped the app'.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
‘Secure shell (SSH) is used for security.’SSH creates a secure link between applications using the client-server model, so intercepted data cannot be understood without the keys.
‘Static routing means a router keeps the same IP address.’In static routing the table is created by a network administrator and its entries are fixed.
‘DHCP is a network protocol.’DHCP is a management protocol that automatically assigns network parameters, such as an IP address and a gateway address.
‘A firewall scans for viruses.’A firewall monitors traffic coming in and going out and filters data packets; it controls access to the network.

Frequently asked questions

What is a network protocol?
A network protocol is a set of rules that determine how data is transmitted on a network, so that devices can communicate with each other. The rules cover how connections are set up, how data is packaged and addressed, and how it is routed. Restating the term as 'a network protocol' earns no credit.
What is the difference between TCP and UDP?
TCP is connection-oriented and gives reliable, error-checked delivery, retransmitting missing packets. UDP is connectionless and is used where error-checking of packets is not necessary, for example for streaming services. Calling UDP reliable because it is fast is a mistake.
How is packet switching different from store and forward?
In packet switching each packet takes its own route, so packets can arrive at different times and in any order. In store and forward the whole message is sent to a node, stored, forwarded to the next node and then deleted. The deletion must be stated.
How do static routing and dynamic routing differ?
In static routing a network administrator creates the routing table and its entries are fixed. In dynamic routing the router creates the table and updates it automatically, using algorithms that take account of real-time network conditions. Dynamic IP assignment by DHCP is a different thing.
What does a firewall do to protect a network?
A firewall monitors the traffic coming in to and going out of a network. It filters data packets and blocks or reports suspicious traffic, which prevents unauthorised access. It is not anti-virus software and it is not a proxy server.
Why do answers that only list protocols lose marks?
Credit was not given for lists of protocols. Candidates were required to describe the protocols, not simply name them. For example, say how FTP transfers files: the client sends a request on port 21 and usually needs a username and password.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters