C-CAT Computer Networks Revision: Topic-wise Guide
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
| Topic | Be able to |
|---|---|
| Models | OSI and TCP/IP layers and the job of each |
| Devices | Hub, switch, router, bridge, gateway |
| Addressing | IPv4 classes, private ranges, subnet masks, CIDR |
| Transport | TCP vs UDP, handshake, ports |
| Application protocols | HTTP, HTTPS, FTP, SMTP, DNS, DHCP and their ports |
| Routing | Static vs dynamic, distance vector vs link state |
| Data link | MAC addresses, ARP, error detection |
| Security basics | Firewall, VPN, SSL/TLS |
OSI and TCP/IP layers
| OSI layer | Job | Example |
|---|---|---|
| 7 Application | Services to the user | HTTP, SMTP, DNS |
| 6 Presentation | Format, encryption, compression | SSL/TLS, JPEG |
| 5 Session | Start, manage and end sessions | RPC |
| 4 Transport | End-to-end delivery | TCP, UDP |
| 3 Network | Logical addressing and routing | IP, ICMP |
| 2 Data link | Framing and MAC addressing | Ethernet, switch |
| 1 Physical | Bits on the medium | Cables, 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.
| Class | First octet | Default mask |
|---|---|---|
| A | 1 to 126 | 255.0.0.0 |
| B | 128 to 191 | 255.255.0.0 |
| C | 192 to 223 | 255.255.255.0 |
| D | 224 to 239 | Multicast |
| E | 240 to 255 | Reserved |
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:
- Count the host bits:
32 - prefix length. - Hosts per subnet =
2^(host bits) - 2(the network and broadcast addresses are not usable). - Number of subnets =
2^(bits borrowed). - 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
| TCP | UDP | |
|---|---|---|
| Connection | Connection-oriented | Connectionless |
| Reliability | Reliable, ordered | No guarantee |
| Speed | Slower, with overhead | Faster |
| Control | Flow and congestion control | None |
| Uses | Web, email, file transfer | DNS, 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
| Protocol | Port | Transport |
|---|---|---|
| HTTP | 80 | TCP |
| HTTPS | 443 | TCP |
| FTP | 20 and 21 | TCP |
| SSH | 22 | TCP |
| Telnet | 23 | TCP |
| SMTP | 25 | TCP |
| DNS | 53 | UDP (and TCP) |
| DHCP | 67 and 68 | UDP |
| POP3 | 110 | TCP |
| IMAP | 143 | TCP |
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
- Computer Networks Cheat Sheet for one-page revision
- Computer Networks MCQs for practice
- Computer Networks Flashcards to test recall
- C-CAT Section B Preparation Guide for the overall checklist
- C-CAT syllabus for the full topic list
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.