










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Purpose A structured learning resource for students studying computer networking at undergraduate level. It explains core concepts, connects theory to practical network design, and provides original assessment practice.
Prepared as an original educational study resource. Check your institution's syllabus and prescribed texts for course-specific coverage.
CONTENTS
How to use this guide
Network architectures
Client-server: clients request services from dedicated servers. It supports centralised authentication, storage, backups and policy enforcement. A drawback is that server failure can interrupt a service unless redundancy is provided. Peer-to-peer (P2P): devices can share resources directly without a dedicated central server. It can be inexpensive for small groups but is harder to administer and secure at scale.
Network topologies
Physical topology describes how devices and cables are physically arranged. Logical topology describes how data flows. In a star , devices connect to a central switch; it is easy to manage, but the central device is a potential single point of failure. In a bus , devices share a backbone; it is simple but a backbone fault can disrupt the network. In a ring , devices form a loop; a break can interrupt communication unless a resilient design is used. In a mesh , devices have multiple interconnections; it offers redundancy but costs more. A hybrid combines topologies.
Switch
PC
Server PC
Printer Laptop
Figure 2. Star topology: each endpoint has a link to a central switch.
Choosing an architecture
Designers consider the number of users, application requirements, budget, geographic area, expected growth, security, fault tolerance and support skills. For a growing university, a hierarchical client-server design with managed switches, redundant uplinks and central identity services is often more manageable than an unmanaged peer-to-peer arrangement.
3. Network Models: OSI and TCP/IP
Why layered models are used
Layering divides complex communication into manageable functions. Each layer provides services to the layer above and uses services from the layer below. Standardised interfaces allow equipment and software from different vendors to interoperate. Encapsulation adds control information as data moves down the sending stack; decapsulation removes it at the receiver.
Application Presentation Session Transport Network Data Link Physical
Host A Host B
Data moves down the stack, across the medium, then up the receiving stack
Figure 3. The seven OSI layers. The model is a conceptual framework for describing network functions.
The seven OSI layers
7. Application: provides network services to user applications, such as web, email and name resolution. 6. Presentation: concerns data representation, character encoding, compression and encryption functions. 5. Session: establishes, manages and terminates communication sessions. 4. Transport: end-to-end process communication, segmentation, reliability and flow control. 3. Network: logical addressing and routing packets between networks. 2. Data Link: framing, local delivery, MAC addressing and error detection on a link. 1. Physical: transmission of raw bits as electrical, optical or radio signals.
TCP/IP model
The commonly taught four-layer TCP/IP model consists of Application (application protocols and data representation), Transport (TCP/UDP), Internet (IP addressing and routing), and Network Access/Link (local framing and physical transmission). Some textbooks use a five-layer teaching model by separating data-link and physical functions.
OSI compared with TCP/IP
OSI is a seven-layer reference model developed by ISO. TCP/IP is the protocol suite and architecture underlying the modern internet. The OSI model is useful for learning and troubleshooting; TCP/IP maps more directly to deployed internet protocols. The models are complementary rather than competing protocol implementations.
Encapsulation
Application data is passed to the transport layer, which adds a TCP or UDP header to create a segment or datagram. IP adds a network-layer header to create a packet. The link layer adds a frame header and trailer. The physical layer transmits bits. At the destination, each layer processes and removes its corresponding control information.
Application data
TCP/UDP header + data
IP header + segment
Frame header/trailer + packet
Bits on transmission medium
Figure 4. Simplified encapsulation sequence.
4. Transmission Media and Network Devices
Guided media
Twisted-pair copper: two insulated copper conductors twisted together to reduce interference. UTP is common in Ethernet LANs; STP includes shielding for electrically noisy environments. It is relatively affordable and easy to install, but distance and electromagnetic interference can limit performance. Coaxial cable: a central conductor surrounded by insulation and shielding; used in cable broadband and some specialised systems. Fibre-optic cable: carries light through glass or plastic fibre. It offers high capacity, long-distance transmission and immunity to electromagnetic interference, but termination and equipment can cost more.
Unguided media
Wireless communication uses electromagnetic waves through air or space. Wi-Fi uses radio frequencies; Bluetooth supports short-range personal connectivity; cellular systems provide wide-area mobile access; satellite links can cover remote locations but may have higher latency. Performance is affected by interference, obstacles, distance, spectrum use and antenna design.
6. Ethernet, Wi-Fi and LAN Technologies
Ethernet
Ethernet is a family of wired LAN technologies standardised by IEEE 802.3. Ethernet frames include destination and source MAC addresses, a type/length field, payload and frame check sequence. A MAC address is a link-layer identifier, commonly 48 bits for Ethernet. Ethernet switches learn source MAC addresses and use their forwarding tables to direct frames.
Ethernet frame fields
The preamble and start-frame delimiter support receiver synchronisation; the destination and source MAC fields identify link-layer endpoints; the type/length field identifies the payload protocol or length; the payload carries data; and the frame check sequence (FCS) supports error detection. Exact frame formats depend on the Ethernet variant.
Wi-Fi
Wi-Fi is based on the IEEE 802.11 family. Wireless stations communicate through an access point in infrastructure mode, or directly in certain peer/ad-hoc arrangements. A Service Set Identifier (SSID) is the network name presented to users. Authentication and encryption protect access and traffic. Signal strength, channel congestion, interference, walls and client capabilities affect performance.
LAN segmentation and VLANs
A Virtual LAN (VLAN) logically separates a switched network into distinct Layer 2 broadcast domains. VLANs can separate student, staff, guest and server traffic even when devices share physical switching infrastructure. Inter-VLAN communication requires Layer 3 routing. VLANs improve organisation and limit broadcast scope, but they are not a substitute for firewalls or access-control policies.
Practical campus example
A university might place student devices in VLAN 10, staff in VLAN 20, servers in VLAN 30 and guests in VLAN 40. The router or Layer 3 switch applies access rules so guest devices can reach the internet but cannot directly access internal administrative systems.
7. IPv4 Addressing and Subnetting
IPv4 address structure
IPv4 uses a 32-bit logical address, commonly written as four decimal octets separated by dots, for example 192.168.10.25. Each octet represents eight bits and ranges from 0 to 255. An address has a network portion and a host portion determined by its subnet mask or prefix length.
Subnet masks and CIDR notation
A subnet mask identifies the network bits. For example, 255.255.255.0 is /24: the first 24 bits identify the network and the remaining 8 bits identify host addresses. Classless Inter-Domain Routing (CIDR) expresses the prefix length after a slash. Modern networks use CIDR rather than relying on the old classful addressing system.
Private IPv4 address ranges
Three widely used private IPv4 blocks are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They are intended for private networks and are not globally routed on the public internet. Network Address Translation (NAT) is commonly used to allow private-addressed devices to share public IPv4 connectivity.
Subnetting procedure
To subnet a network: (1) identify the required number of subnets or hosts; (2) borrow host bits to create subnet bits; (3) calculate the new prefix and mask; (4) find the block size; (5) list each network address, usable host range and broadcast address for IPv4. For a conventional subnet, usable host count is 2^h − 2, where h is the number of host bits. This excludes the network and broadcast addresses; special-purpose cases such as /31 point-to-point links have different rules.
Useful formulas: Number of subnets created by borrowing s bits = 2^s. Conventional usable hosts per subnet = 2^h − 2. Block size in an octet = 256 − the mask value in that octet.
192.168.10.0/
.0/26 .64/26 .128/26 .192/
Figure 5. A /24 network divided into four equal /26 subnets.
Worked example: divide 192.168.10.0/24 into four subnets
Four subnets require borrowing 2 bits because 2² = 4. The new prefix is /26 and the mask is 255.255.255.192. The block size in the final octet is 256 − 192 = 64. The subnet network addresses therefore increase by 64.
Subnet Network address Usable host range Broadcast address
1 192.168.10.0/26 192.168.10.1 – 192.168.10.62 192.168.10.
2 192.168.10.64/26 192.168.10.65 – 192.168.10.126 192.168.10.
3 192.168.10.128/26 192.168.10.129 – 192.168.10.190 192.168.10.
4 192.168.10.192/26 192.168.10.193 – 192.168.10.254 192.168.10.
Each /26 subnet contains 64 addresses, of which 62 are conventionally assignable to hosts. The network address identifies the subnet and the broadcast address targets all IPv4 hosts on that subnet.
Default gateway, DHCP and DNS
The default gateway is the router address a host uses to reach destinations outside its local subnet. DHCP automatically leases configuration such as IP address, subnet mask, gateway and DNS server. DNS translates domain names such as example.com into IP addresses and may also provide other records.
Common IPv4 troubleshooting checks
Check that the address and mask are valid; confirm that the host is in the expected subnet; verify the default gateway; check for duplicate addresses; test local connectivity; test gateway reachability; resolve a domain name; and inspect routing, firewall and DHCP configuration. Tools include ipconfig/ifconfig, ping, tracert/traceroute, nslookup/dig and arp.
10. Application Layer Protocols
HTTP and HTTPS
HTTP is an application protocol used to transfer web resources. HTTPS is HTTP protected by TLS, providing confidentiality, integrity and server authentication when certificates are correctly validated. A browser resolves the website name, establishes a transport connection, negotiates TLS where applicable, sends an HTTP request and processes the response.
DNS
DNS is a distributed, hierarchical naming system. A resolver may query recursive and authoritative servers to obtain records. Common records include A (IPv4 address), AAAA (IPv6 address), MX (mail exchanger), CNAME (alias) and NS (name server). Caching reduces lookup time and query load.
Email protocols
SMTP is used to send and relay email. IMAP allows clients to access and synchronise messages stored on a mail server. POP3 is a simpler retrieval protocol that may download messages to a client. Secure configurations use TLS-protected variants or STARTTLS where supported.
File transfer and remote access
FTP transfers files but does not provide encryption by default. SFTP is a file-transfer protocol over SSH and is distinct from FTPS, which is FTP protected by TLS. SSH provides encrypted remote login and command execution. Telnet is insecure for administration because it does not encrypt session contents.
DHCP and NTP
DHCP leases network configuration dynamically, reducing manual errors. NTP synchronises clocks across networked systems, which is important for logs, authentication, incident investigation and distributed applications.
11. Routing, Switching and Network Services
Routing fundamentals
Routing is the process of selecting paths for IP packets between networks. A router examines the destination IP address and consults its routing table. The most specific matching route is selected using longest-prefix matching. A default route is used when no more specific route matches.
Static and dynamic routing
Static routing is manually configured and can be suitable for small or stable networks. It is predictable but does not automatically adapt to topology changes. Dynamic routing uses routing protocols to exchange reachability information and adapt to changes. Examples include OSPF, IS-IS, RIP and BGP, each designed for different contexts.
Switching and MAC learning
A Layer 2 switch learns source MAC addresses and associates them with incoming ports. If the destination MAC is known, the switch forwards the frame to the relevant port. If the destination is unknown, it may flood the frame within the VLAN, except the ingress port. Broadcast frames are also forwarded within the broadcast domain.
NAT and PAT
Network Address Translation modifies IP address information as traffic passes through a translating device. Port Address Translation (PAT), often called NAT overload, allows multiple private hosts to share a public IPv4 address by tracking transport ports. NAT conserves public IPv4 addresses but is not a replacement for a properly designed security policy.
Network services in an organisation
Typical services include DHCP, DNS, directory and identity services, file and print services, web applications, time synchronisation, monitoring, logging, backup and remote access. Services should be documented, monitored, secured and made resilient according to their importance.
12. Wireless and Mobile Networking
Wireless LAN operation
An access point advertises a wireless network and coordinates communication with associated stations. Wi-Fi performance depends on radio band, channel width, channel utilisation, signal-to-noise ratio, antenna placement, client density and access-point design. More access points do not automatically mean better service; poorly planned cells can create interference.
Wireless security
Use modern security configurations supported by clients and infrastructure, strong authentication, protected management interfaces, firmware updates and guest isolation. WPA2-AES and WPA3 are common security families; avoid obsolete WEP and weak legacy configurations. Enterprise deployments may use 802.1X authentication with a RADIUS server.
Cellular networks
Cellular networks divide coverage into cells served by base stations. Mobile devices connect through radio access networks to a core network that manages mobility, authentication, session connectivity and service delivery. Generations such as 4G LTE and 5G introduce different capabilities and architectures.
Bluetooth and short-range communication
Bluetooth supports short-range device connections such as headsets, keyboards and wearable devices. Near Field Communication (NFC) supports very short-range interactions, including contactless exchanges. These technologies have different range, data-rate, power and security characteristics.
Mobility considerations
Mobile users move between access points and cells. Networks must manage roaming, handover, authentication, changing signal conditions and intermittent connectivity. Applications should handle latency variation, temporary disconnection and changes between Wi-Fi and cellular access.
13. Network Security and Management
Security objectives
Confidentiality means information is accessible only to authorised parties. Integrity means information is protected against unauthorised alteration. Availability means systems and data remain accessible when required. Authentication verifies identity; authorisation determines permitted actions; accounting and auditing record activity.
Common threats
Threats include malware, phishing, credential theft, denial-of-service attacks, eavesdropping, spoofing, man-in-the-middle attacks, rogue access points, misconfiguration, insider misuse and unpatched vulnerabilities. A threat exploits a weakness and may cause operational, financial, legal or reputational harm.
Defence-in-depth controls
Use layered controls: firewalls and network segmentation; secure configuration; patch management; endpoint protection; strong authentication and multifactor authentication; encryption in transit and at rest; least-privilege access; backups; logging and monitoring; user awareness; incident response plans; and regular vulnerability assessment.
15. Worked Practical Examples
Example A: calculate transmission delay
A 1,500-byte frame is sent over a 10 Mbps link. Convert bytes to bits: 1,500 × 8 = 12,000 bits. Transmission delay = 12,000 ÷ 10,000,000 = 0.0012 seconds = 1.2 milliseconds. This is the time to place the bits onto the link; propagation and queuing delays are additional.
Example B: identify a host's subnet
Host address: 192.168.5.70/26. A /26 has a block size of 64 in the final octet. The ranges begin at 0, 64, 128 and 192. The address 70 belongs to the 64–127 block. Network address = 192.168.5.64; broadcast = 192.168.5.127; usable range = 192.168.5.65–192.168.5.126.
Example C: choose TCP or UDP
A document upload generally benefits from TCP's reliable ordered byte stream. A live voice application may use UDP-based transport because timely delivery can be more important than retransmitting late packets. The application may add its own loss recovery, congestion control or security.
Example D: diagnose a DNS problem
A user can ping 1.1.1.1 but cannot open a website by its domain name. This suggests basic IP connectivity exists, but does not prove all internet services work. Check the configured DNS server, query the name with nslookup or dig, inspect DNS reachability and policy, and compare results with an approved alternative resolver.
16. Examination Practice Questions
These original questions are designed for undergraduate revision. Attempt them under timed conditions before consulting the model answers. Marks are indicative and may be adapted to a lecturer's marking scheme.
Section A: Short-answer questions (2–4 marks each)
Section B: Structured questions (6–10 marks each)
Section C: Long-answer and scenario questions (10–15 marks each)
11. Seven OSI layers. (7 marks)
Application: services to applications. Presentation: data representation, encoding, compression and encryption functions. Session: manages communication sessions. Transport: process-to-process delivery, reliability and flow control. Network: logical addressing and routing. Data Link: frames, MAC addressing and link-level error detection. Physical: transmission of bits as signals. Award approximately one mark per correctly matched layer and function.
12. Client-server versus peer-to-peer. (8 marks)
Client-server uses dedicated servers to provide services to clients. Strengths: centralised authentication/data/backup and easier policy control. Limitation: server failure or cost can affect service. Peer-to-peer allows devices to share directly. Strengths: inexpensive and simple for small groups; no dedicated server is required. Limitations: weaker central control, backup and security management as it scales. Award marks for definition, comparison and relevant strengths/limitations.
13. Network topologies. (8 marks)
Star: endpoints connect to a central switch; easy to manage and isolate faults, but central-device failure affects the segment. Bus: devices share a backbone; low cabling requirement, but backbone failure can stop communication and performance degrades with contention. Ring: devices form a loop; orderly access may be possible in some designs, but a break can disrupt service without protection. Mesh: multiple paths between nodes; resilient, but expensive and complex. Award one description and one advantage/disadvantage per topology.
14. DHCP allocation. (6 marks)
A common DHCPv4 exchange is DORA: Discover (client broadcasts to locate a DHCP server); Offer (server proposes configuration); Request (client requests the offered lease); Acknowledgement (server confirms the lease). The lease includes an address and may include subnet mask, gateway, DNS and lease duration. Award marks for the four stages and configuration details.
15. Switch learning and forwarding. (6 marks)
A switch reads the source MAC address of an incoming frame and records the address with the ingress port and VLAN in its MAC table. It then checks the destination MAC. If known, it forwards the frame to the associated port; if unknown, it floods within the VLAN except the ingress port. It filters frames when source and destination are on the same port. Award marks for learning, table lookup and forwarding/flooding behaviour.
16. Four threats and controls. (8 marks)
Examples: phishing—user awareness and multifactor authentication; malware—endpoint protection and patching; denial of service—traffic filtering, rate limiting and upstream mitigation; eavesdropping—TLS/VPN encryption; credential attacks—MFA and strong password controls; rogue access point—wireless monitoring and authenticated access. Award one mark for each threat and one for a matched control, up to the maximum.
17. Firewall, IDS and IPS. (6 marks)
A firewall enforces permitted/blocked traffic rules between networks or hosts. An IDS monitors traffic or events and alerts on suspicious activity. An IPS monitors and can actively block or mitigate malicious traffic. Explain that they are complementary and require configuration and monitoring.
18. Compare transmission media. (9 marks)
Twisted pair is inexpensive, easy to install and common for LAN cabling, but has distance and interference limitations. Fibre carries light, supports high capacity and long distances, and resists electromagnetic interference, but may cost more to install and terminate. Wi-Fi avoids cabling and supports mobility, but performance varies with interference, obstacles, distance and shared airtime. Award marks for characteristics and balanced comparison.
19. University campus network design. (15 marks)
Use a hierarchical star design with core/distribution/access switching, or a suitable collapsed-core design for a smaller campus. Connect laboratories, library and offices through managed switches; use routers or Layer 3 switches for inter-VLAN routing; deploy centrally managed wireless access points. Create separate VLANs for administration, students, servers, laboratories and guests. Use a planned private IPv4 scheme with subnet sizes matched to host requirements, DHCP scopes and internal DNS. Apply firewall rules, least privilege, WPA2/WPA3 or enterprise authentication, secure management, patching and logging. Provide redundant uplinks, backup power and resilient core services. Document, test and monitor. Award marks for a coherent design and justified decisions, not merely a list of devices.
20. OSI, TCP/IP and encapsulation. (12 marks)
Explain that OSI has seven conceptual layers while the commonly taught TCP/IP model has four layers. Map application/presentation/session functions mainly to TCP/IP application; OSI transport to transport; OSI network to internet; and OSI data-link/physical to network access. At the sender, application data receives a TCP/UDP header, then an IP header, then link-layer framing; bits cross the medium. The receiver reverses the process through decapsulation. Explain that each layer provides services to the layer above and uses the layer below. Award marks for layer roles, mapping and encapsulation.
21. IPv4 subnetting and reasons. (12 marks)
Subnetting divides a larger IP network into smaller logical networks by extending the network prefix. Benefits include efficient address allocation, reduced broadcast scope, segmentation, easier administration and security policy boundaries. Example: divide 192.168.10.0/24 into four equal subnets. Borrow 2 bits, producing /26 (255.255.255.192). Block size is 64. Networks are .0, .64, .128 and .192; each has 62 conventional usable host addresses. State network, host range and broadcast addresses accurately. Award marks for method, calculations and benefits.
22. DNS troubleshooting scenario. (10 marks)
Confirm the symptom and whether it affects one device or many. Check interface configuration and DNS server settings. Test IP connectivity and query DNS using nslookup/dig. Inspect DHCP-provided DNS settings, resolver availability, firewall rules, DNS service health, incorrect records and local cache. Flush cache if appropriate, compare with an approved resolver, then verify name resolution and application access. Document the root cause. Do not assume that ping to an IP proves every service is functioning.
23. Wireless benefits and challenges. (12 marks)
Benefits include mobility, flexible deployment, reduced cabling, support for portable devices and easier expansion. Challenges include interference, variable coverage, shared airtime, congestion, eavesdropping, rogue access points and roaming complexity. Improvements include a site survey, planned channels and access-point placement, appropriate capacity, modern encryption, strong authentication, guest isolation, firmware updates, monitoring and user/device access controls.
24. Routing and route types. (10 marks)
Routing selects a path for IP packets between networks. A router examines the destination address and uses its routing table, normally selecting the longest matching prefix. Static routes are manually configured and predictable but need manual updates when paths change. Dynamic routing protocols exchange reachability information and can adapt to topology changes, but require more design, resources and expertise. Give examples such as OSPF or BGP where appropriate.
18. Glossary
Access point: A device that connects wireless stations to a network, commonly a wired LAN.
Bandwidth: A link's data-carrying capacity, usually expressed in bits per second.
Broadcast domain: A set of devices that receive a Layer 2 broadcast within a network segment or VLAN.
CIDR: Classless Inter-Domain Routing; notation and allocation approach using variable-length prefixes.
DHCP: Dynamic Host Configuration Protocol; automatically supplies IP configuration to clients.
DNS: Domain Name System; resolves names to resource records.