Untitled
Course Overview and Assessment Structure
Module Details:
- Module Code: CPS4001
- Module Title: Computer Systems and Networks
- Institution: St Mary's University, Twickenham, London
- Duration: module structure
- Weekly Contact Hours: lecture coupled with a practical laboratory session each week
- Core Learning Outcomes:
- Identify all core components of a computer system and articulate the explicit function of each.
- Explain and evaluate how hardware and software interact across abstraction layers.
- Recognize the systemic impact of Artificial Intelligence (AI) on modern computer hardware and system architecture design.
Assessment Framework:
- Assessment 1 ( of overall grade): Computer-Based Test (CBT) administered in Week 6, testing cumulative knowledge covered in Weeks 1 through 5.
- Assessment 2 ( of overall grade): Network Design & Packet Tracer Project, with final submission due in Week 12.
Fundamental Concepts of a Computer System
Holistic Definition: A computer system is not solely the physical computing machine; it is an integrated combination of hardware, software, data, and human users working collaboratively to collect, process, store, and communicate information.
The Four Information Processing Stages:
- Input: Mechanism for bringing external raw data into the system (e.g., keyboard keystrokes, microphone audio signals, sensor measurements).
- Process: Computational manipulation where the Central Processing Unit (CPU) executes sequences of program instructions.
- Output: Presentation or transfer of processed results to users or other endpoints (e.g., monitors/screens, audio speakers, physical printers).
- Storage: Non-volatile retention of data and program files on long-term media (e.g., Solid-State Drives [SSD], Hard Disk Drives [HDD]).

Taxonomy of Modern Computer Systems
- Diversity of Computer Form Factors: Computing architecture extends beyond traditional desktop machines into diverse specialized form factors:
- Desktop Computers:
- Representative Example: Standard office personal computer (PC).
- Key Characteristics: High performance, stationary/fixed deployment, modular upgradability.
- Laptop Computers:
- Representative Examples: Apple MacBook, Lenovo ThinkPad.
- Key Characteristics: Portable physical form factor, balanced compromise between battery efficiency and compute performance.
- Servers:
- Representative Examples: Enterprise web servers, database infrastructure servers.
- Key Characteristics: Engineered for continuous, uninterrupted operation ("always on"), optimized for high-throughput multi-user concurrent access.
- Embedded Systems:
- Representative Examples: Smart thermostats, Automated Teller Machines (ATMs).
- Key Characteristics: Highly specialized single-purpose logic, constrained resources, low power consumption.
- Mobile Devices:
- Representative Examples: Modern smartphones, tablets.
- Key Characteristics: Aggressively optimized for battery conservation, direct multi-touch input/output (I/O) interfaces.
- Supercomputers:
- Representative Example: Specialized computational clusters utilized for global meteorological and weather forecasting.
- Key Characteristics: Massive parallel processing capability executing calculations across tens of thousands of interconnected processing cores simultaneously.
Core Hardware Building Blocks
- Hardware Classification: Physical hardware components fall into five distinct structural categories, all of which interface directly through the motherboard:
- Processing Units: Central Processing Units (CPUs) and Graphics Processing Units (GPUs).
- Primary Memory: Random-Access Memory (RAM) and on-die CPU cache stages.
- Secondary Storage: Persistent high-capacity media, including Solid-State Drives (SSDs) and Hard Disk Drives (HDDs).
- Input Devices: Peripheral devices designed to intake outside data (e.g., keyboard, mouse, digital camera, audio microphone).
- Output Devices: Peripheral units that translate computed state into perceptible output (e.g., visual display monitor, acoustic speakers, paper/3D printer).
Central Processing Unit (CPU) Architecture
Functional Definition: The Central Processing Unit (CPU) functions as the primary computational engine of the computer, systematically retrieving, decoding, and executing instruction sets.
Key Hardware Specifications:
- Clock Speed (): The frequency of execution cycles handled by the processor per second. A clock speed of represents an execution rate of .
- Processor Cores: Discrete, physically distinct processing cores co-located on a single silicon die; increasing core counts enhances hardware multitasking and multithreading efficiency.
- On-Die Cache: Ultra-fast, localized SRAM memory located directly within the CPU die to minimize access latency to critical instructions and datasets.
- Market Implementations: Leading desktop and workstation implementations include Intel Core i-series, AMD Ryzen, and Apple M-series silicon.
Cache Hierarchy and Multi-Core Die Architecture:
- Level 1 (L1) Cache: The fastest and smallest cache tier, dedicated individually to each processor core.
- Level 2 (L2) Cache: Dedicated per-core cache with slightly higher capacity and moderate latency compared to L1.
- Level 3 (L3) Cache: High-capacity shared cache tier accessible across all independent processor cores on the die.
- Hierarchy Rule: Speed decreases while capacity increases moving outward: .
The Fetch-Decode-Execute Cycle
- Cyclical Operation: Every machine-level instruction executed by a CPU traverses an invariant four-phase cycle repeating billions of times per second in lockstep with the system clock:
- Fetch: The CPU retrieves the scheduled instruction from volatile system memory (RAM) and places it into an internal register.
- Decode: The internal Control Unit (CU) decodes and interprets the instruction bit pattern to determine the necessary operations and data pathways.
- Execute: The Arithmetic Logic Unit (ALU) performs the dictated arithmetic, logical, or data-movement operation.
- Store: The resulting calculated value is written back to an internal CPU register or routed back to RAM.

Memory Hierarchy: Primary Memory vs. Secondary Storage
Comparative Properties of Storage Media:
- CPU Cache:
- Speed: Fastest
- Volatility: Volatile (data lost when system loses electrical power)
- Typical Capacity Range: Megabytes ()
- RAM (Random-Access Memory):
- Speed: Very fast
- Volatility: Volatile
- Typical Capacity Range:
- Functional Role: Holds operating system components, open applications, and active data currently in use.
- Solid-State Drive (SSD):
- Speed: Fast
- Volatility: Non-volatile (permanent data retention without power)
- Typical Capacity Range:
- Functional Role: Fast persistent storage constructed using solid-state NAND flash chips without mechanical moving parts.
- Hard Disk Drive (HDD):
- Speed: Slow
- Volatility: Non-volatile
- Typical Capacity Range:
- Functional Role: Traditional magnetic storage utilizing spinning platters and read/write heads; delivers low cost per gigabyte.
Data Progression Pipeline:
- Information travels sequentially inward along the storage hierarchy toward the execution unit: .
- Empirical Performance Metric: Migrating an