C-CAT Computer Networks Revision: Topic-wise Guide

revision Published 9 min read

Computer networks for C-CAT

Networking questions are mostly factual: which layer does what, which protocol uses which port, and how to work out a subnet. That makes this one of the fastest subjects to score in if you memorise the right tables.


Topic checklist

TopicBe able to
ModelsOSI and TCP/IP layers and the job of each
DevicesHub, switch, router, bridge, gateway
AddressingIPv4 classes, private ranges, subnet masks, CIDR
TransportTCP vs UDP, handshake, ports
Application protocolsHTTP, HTTPS, FTP, SMTP, DNS, DHCP and their ports
RoutingStatic vs dynamic, distance vector vs link state
Data linkMAC addresses, ARP, error detection
Security basicsFirewall, VPN, SSL/TLS

OSI and TCP/IP layers

OSI layerJobExample
7 ApplicationServices to the userHTTP, SMTP, DNS
6 PresentationFormat, encryption, compressionSSL/TLS, JPEG
5 SessionStart, manage and end sessionsRPC
4 TransportEnd-to-end deliveryTCP, UDP
3 NetworkLogical addressing and routingIP, ICMP
2 Data linkFraming and MAC addressingEthernet, switch
1 PhysicalBits on the mediumCables, hub

The TCP/IP model has four layers: application, transport, internet and network access. A memory aid for the OSI order from the top is “All People Seem To Need Data Processing”.


Network devices

  • A hub repeats a signal to every port (physical layer).
  • A switch forwards frames using MAC addresses (data link layer).
  • A router forwards packets between networks using IP addresses (network layer).
  • A gateway connects networks that use different protocols.

IP addressing and subnetting

IPv4 addresses are 32 bits, written as four decimal numbers.

ClassFirst octetDefault mask
A1 to 126255.0.0.0
B128 to 191255.255.0.0
C192 to 223255.255.255.0
D224 to 239Multicast
E240 to 255Reserved

The range 127.x.x.x is loopback. Private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.

Subnetting method:

  1. Count the host bits: 32 - prefix length.
  2. Hosts per subnet = 2^(host bits) - 2 (the network and broadcast addresses are not usable).
  3. Number of subnets = 2^(bits borrowed).
  4. The block size is 256 - the interesting octet of the mask, and network addresses step by that value.

Example: a /26 has 6 host bits, so 62 usable hosts per subnet and a block size of 64 in the last octet.


TCP and UDP

TCPUDP
ConnectionConnection-orientedConnectionless
ReliabilityReliable, orderedNo guarantee
SpeedSlower, with overheadFaster
ControlFlow and congestion controlNone
UsesWeb, email, file transferDNS, streaming, voice

TCP sets up a connection with a three-way handshake: SYN, SYN-ACK, ACK. Connection teardown uses FIN and ACK exchanges.


Protocols and ports

ProtocolPortTransport
HTTP80TCP
HTTPS443TCP
FTP20 and 21TCP
SSH22TCP
Telnet23TCP
SMTP25TCP
DNS53UDP (and TCP)
DHCP67 and 68UDP
POP3110TCP
IMAP143TCP

ARP maps an IP address to a MAC address. ICMP carries error and diagnostic messages, such as those used by ping. DNS maps names to IP addresses. DHCP assigns IP addresses automatically.


Routing and switching

  • Distance vector protocols (such as RIP) share their routing table with neighbours and use hop count.
  • Link state protocols (such as OSPF) flood link information so each router builds the full map and runs Dijkstra’s algorithm.
  • A switch learns MAC addresses and builds a forwarding table; unknown destinations are flooded.
  • Error detection methods include parity, checksum and CRC.

Revise and practise


Key takeaways

  • Memorise the OSI layers and what each one does.
  • Learn the port table; it is easy marks.
  • Practise subnetting until the method is automatic.
  • Know TCP versus UDP and the three-way handshake.

Frequently Asked Questions

1 Which computer networks topics matter most for C-CAT?

The OSI and TCP/IP layers, IP addressing and subnetting, TCP versus UDP, common protocols and their port numbers, and the basics of routing and switching.

2 Do I need to calculate subnets for C-CAT?

Yes, short subnetting questions are common: number of hosts per subnet, number of subnets, and the network address. The method is quick once you practise it.

3 What is the difference between TCP and UDP?

TCP is connection-oriented, reliable and ordered, with flow and congestion control. UDP is connectionless and faster, with no delivery guarantee. TCP suits web and email; UDP suits streaming, DNS lookups and voice.

4 How many layers are in the OSI model?

Seven: physical, data link, network, transport, session, presentation and application. The TCP/IP model groups these into four or five layers.

5 How long does it take to revise networks?

About 3 to 4 days of focused revision is usually enough, with most of the time on addressing and subnetting practice.