IP supplies the fundamental addressing and routing service. Two versions are in active use.
Version
Address Length
Address Space
Header Size
IPv4
32 bits
≈ 4.3 × 10⁹ addresses
20 bytes (minimum)
IPv6
128 bits
≈ 3.4 × 10³⁸ addresses
40 bytes (fixed)
Best‑effort delivery: IP does not guarantee delivery, ordering or integrity – those responsibilities belong to the transport layer.
Key addressing concepts (syllabus 14.1.2):
Binary‑decimal conversion – e.g. 192.168.1.10 = 11000000.10101000.00000001.00001010₂
Public vs. private address ranges – 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
Subnet mask and CIDR notation – 255.255.255.0 = /24
Network address, broadcast address and host range – e.g. for 192.168.1.0/24 the network address is 192.168.1.0, broadcast is 192.168.1.255, hosts are 192.168.1.1‑192.168.1.254
Network Address Translation (NAT) – maps many private addresses to a single public address for Internet access.
3.2 Transmission Control Protocol (TCP)
TCP adds reliability to the best‑effort IP service.
Real‑time services where speed outweighs occasional loss – VoIP, online gaming, video streaming, DNS queries.
3.4 Supporting Protocols
ICMP (Internet Control Message Protocol) – used for diagnostics and error reporting (e.g. ping echo request/reply, Destination Unreachable, Time Exceeded, Redirect).
ARP (Address Resolution Protocol) – resolves an IPv4 address to a MAC address on the local LAN.
Host A broadcasts “Who has 192.168.1.10?”
Host B replies with its MAC address.
DHCP (Dynamic Host Configuration Protocol) – automatically assigns IP address, subnet mask, default gateway and DNS server to a host.
DNS (Domain Name System) – translates human‑readable domain names (e.g. www.example.com) to IPv4/IPv6 addresses.
3.5 Secure Protocols (syllabus 17.1)
Security is increasingly part of the protocol stack.
SSL/TLS – provides encryption, authentication and integrity for transport‑layer connections (HTTPS, FTPS, SMTPS).
HTTPS – HTTP over TLS; default port 443.
Other secure variants:
SSH – secure remote login (port 22)
SFTP – file transfer over SSH (port 22)
IPsec – network‑layer encryption and authentication
4. Transport‑Layer Services – Ports and Sockets
Port numbers identify the application process on a host.
The TCP/IP suite consists of four layers – Application, Transport, Internet, Link – each mapping to one or more OSI layers.
IP (IPv4/IPv6) provides logical addressing (including subnetting, CIDR, NAT) and routing; it is a best‑effort service.
TCP offers reliable, ordered delivery with flow‑control and congestion‑control. UDP provides fast, connectionless delivery for latency‑sensitive applications.
Supporting protocols (ICMP, ARP, DHCP, DNS) enable error reporting, address resolution, dynamic configuration and name resolution.
Secure protocols (SSL/TLS, HTTPS, SSH, IPsec) extend the stack to provide confidentiality, integrity and authentication.
Understanding header fields (ports, sequence/ack numbers, flags) and the sequence of control messages (handshakes, acknowledgements, termination) is essential for troubleshooting and for exam questions.
Suggested diagram: Layered view of the TCP/IP model with example protocols in each layer, shown side‑by‑side with the OSI model.
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources,
past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.