Computer Networks and Protocols, COP 3502 – Study Notes
offline

Source: Lecture Notes on Computer Networks and Protocols

Tags: computer networks, network topology, TCP/IP, HTTP, FTP, SMTP, LAN, WAN, client-server, peer-to-peer, network security, firewalls, encryption, network management

Difficulty: Introductory Prerequisites: None. This is foundational material for any networking or systems course.


Big Picture

Computer networking is the infrastructure that makes nearly everything in modern computing possible, from loading a webpage to sending a message to storing files in the cloud. This set of notes covers the building blocks: what a network is, how devices are arranged, the rules they follow to communicate, and how networks are kept secure and running smoothly. If you are taking a computer science programme and have not yet studied networking, this is where you start. Every topic here feeds into later coursework on operating systems, distributed systems, cybersecurity, and software engineering.


TL;DR

A computer network connects devices so they can share data. The way those devices are arranged is the topology; the rules they follow to talk to each other are protocols. Networks also need architecture (the overall design), security (protection from threats), services (the useful applications that run on top), and management (keeping everything running).


Key Terms

Computer network

A collection of interconnected devices, such as computers, printers, and servers, that can communicate with each other. Think of it as a system of roads connecting buildings; the roads let people (data) travel between locations (devices).

LAN (Local Area Network)

A network that covers a small geographic area, such as a single building or campus. In simple terms, this is the network in your house or your university lab.

WAN (Wide Area Network)

A network that spans a large geographic area, often connecting multiple LANs across cities or countries. The internet itself is the largest WAN.

Internet

The global system of interconnected networks that uses the TCP/IP protocol suite to link billions of devices worldwide. Think of it as the WAN that connects all other networks.

Network topology

The physical or logical layout of devices on a network, describing how nodes are arranged and connected. In simple terms, it is the shape or pattern of the network when you draw it on a whiteboard.

Bus topology

A network layout where all devices share a single communication line. Data sent by one device is visible to all others on the bus.

Star topology

A layout where every device connects to a central hub or switch. If the hub fails, the whole network goes down, but a single device failure does not affect the rest.

Mesh topology

A layout where devices are interconnected with many redundant links. Highly fault-tolerant because data can take multiple paths between any two devices.

Ring topology

A layout where each device connects to exactly two other devices, forming a circular data path. Data travels in one direction (or both, in a dual-ring setup) around the loop.

Network protocol

A set of rules and standards that govern how devices communicate on a network. Think of it as a shared language: if two devices do not speak the same protocol, they cannot exchange data.

TCP/IP (Transmission Control Protocol / Internet Protocol)

The foundational protocol suite of the internet. TCP handles reliable, ordered delivery of data; IP handles addressing and routing packets to the correct destination.

HTTP (Hypertext Transfer Protocol)

The protocol used by web browsers and servers to exchange web pages and other resources. Every time you load a website, your browser is speaking HTTP (or its encrypted variant, HTTPS).

FTP (File Transfer Protocol)

A protocol for transferring files between a client and a server over a network. Think of it as a dedicated file-moving service, older than the web itself.

SMTP (Simple Mail Transfer Protocol)

The standard protocol for sending email between servers. When you hit "send" on an email, SMTP carries it from your mail server to the recipient's.

Client-server architecture

A network design where one or more central servers provide resources or services, and clients request them. Most of the web works this way: your browser (client) requests pages from a web server.

Peer-to-peer (P2P) architecture

A network design where each device can act as both a client and a server. File-sharing applications like BitTorrent are the classic example.

Hybrid architecture

A network design combining elements of both client-server and peer-to-peer models.

Network security

The practice of protecting a network from unauthorised access, misuse, and attacks. This covers everything from password policies to advanced intrusion detection.

Firewall

A security device or software that monitors and filters incoming and outgoing network traffic based on predefined rules. Think of it as a bouncer deciding who gets in and who does not.

Intrusion detection system (IDS)

A system that monitors network traffic for suspicious activity and alerts administrators. It watches for patterns that look like attacks.

Encryption

The process of encoding data so that only authorised parties can read it. In simple terms, it scrambles information so that intercepting it is useless without the key to unscramble it.

Network services

Applications that run on a network and provide functionality to users, such as email, file sharing, and remote access.

Network management

The process of monitoring and controlling a network to ensure it runs efficiently. Tasks include performance monitoring, fault detection, and configuration management.


Core Content

Network Fundamentals – What a Network Is and Why It Exists

  • A computer network exists so that devices can share resources and communicate.

  • The smallest useful network is two devices connected by a cable or wireless link.

  • Networks scale from a single room (LAN) to the entire planet (the internet, a network of networks).

  • The value of a network grows with the number of connected devices (Metcalfe's Law, informally), which is why networking underpins almost all modern computing.

Network Topologies – How Devices Are Arranged

  • Bus: all devices on a single cable. Simple and cheap, but a break in the cable brings down the whole network. Rarely used in modern setups.

  • Star: every device connects to a central hub or switch. Easy to add or remove devices. The hub is a single point of failure.

  • Mesh: devices interconnect with many links. Full mesh means every device connects to every other device; partial mesh means some redundancy but not total. Expensive but very reliable.

  • Ring: devices form a loop. Data passes from one device to the next. A single break can disable the network unless a dual-ring design is used.

Choosing a topology is a trade-off between cost, reliability, and ease of management. Star is the most common in modern LANs because switches are cheap and the layout is simple to troubleshoot.

Network Protocols – The Rules of Communication

  • Protocols define the format, timing, sequencing, and error-checking of messages.

  • TCP/IP is the protocol suite that runs the internet. IP handles addressing (where to send data), and TCP handles reliability (making sure it arrives intact and in order).

  • HTTP is layered on top of TCP/IP and is how your browser fetches web content.

  • FTP is a file-transfer protocol, common in server administration.

  • SMTP is the protocol for sending email between mail servers.

These protocols are layered, each one building on the services of the one below it. This layered approach (often described using the OSI model or the TCP/IP model) is central to how networking is taught and how real systems are built.

Network Architecture – The Overall Design

  • Client-server: centralised control, easier to manage and secure, but the server is a bottleneck and single point of failure. Used by most websites, email systems, and enterprise applications.

  • Peer-to-peer: decentralised, each node is equal. Scales well for certain tasks (file sharing), but harder to secure and manage.

  • Hybrid: combines both. Many real-world systems blend the two, for example a chat application where a server manages authentication but file transfers happen peer-to-peer.

Network Security – Protecting the Network

  • Security is not a single product; it is a set of practices, tools, and policies.

  • Firewalls filter traffic at the network boundary. They can be hardware devices or software running on a server.

  • Intrusion detection systems (IDS) passively monitor traffic and raise alerts. An intrusion prevention system (IPS) goes further and actively blocks suspicious traffic.

  • Encryption protects data in transit (e.g. HTTPS, VPNs) and at rest (e.g. disk encryption). Without encryption, anyone who intercepts network traffic can read it in plain text.

Network Services – What Runs on Top

  • Email, file sharing, and remote access are the canonical examples.

  • Services are the reason networks exist from a user's perspective. Nobody cares about TCP/IP for its own sake; they care that they can send an email or access a shared drive.

  • Modern network services also include DNS (translating domain names to IP addresses), DHCP (assigning IP addresses automatically), and web hosting.

Network Management – Keeping It Running

  • Performance monitoring: measuring bandwidth usage, latency, and throughput to ensure the network meets its requirements.

  • Fault detection: identifying and diagnosing hardware or software failures before they cascade.

  • Configuration management: tracking and controlling changes to network device settings (routers, switches, firewalls) so that the network behaves predictably.


Real-World Applications

Every time you stream a video, that data travels across a network using TCP/IP, is routed through star-topology switches, and is protected by encryption (HTTPS). Network management tools at your ISP monitor the performance of the links carrying your traffic. This material is the foundation for understanding how any internet-connected system works, from a smart thermostat to a data centre.


Common Misconceptions

  • Students often think "the internet" and "the web" are the same thing. They are not. The internet is the global network infrastructure; the web (HTTP/HTTPS) is one of many services that runs on it. Email (SMTP), file transfer (FTP), and DNS are other services running on the same infrastructure.

  • Students sometimes assume a star topology means one device controls all communication. The central device is typically a switch, which simply forwards data; it does not make decisions about content.

  • Students frequently conflate encryption with a firewall. A firewall controls which traffic is allowed through; encryption ensures that the traffic itself is unreadable to eavesdroppers. They solve different problems and are used together.

  • Students often believe peer-to-peer networks are inherently insecure. They are harder to secure, but not insecure by definition. The challenge is that there is no central authority to enforce policies.


Why It Matters / Exam Flags

⚠️ Be able to name and describe the four main topologies (bus, star, mesh, ring) and their trade-offs. This is a staple exam question.

⚠️ Know the difference between TCP and IP: TCP provides reliable delivery; IP provides addressing and routing. They are separate layers, not one thing.

⚠️ Understand the distinction between client-server and peer-to-peer architecture, and be able to give an example of each.

⚠️ Expect a question on security measures: firewalls filter traffic, IDS detects threats, encryption protects data. Know which does what.

⚠️ Know what each protocol is used for: HTTP for web, FTP for files, SMTP for email, TCP/IP as the foundation.


Quick Self-Test

True or false: The internet and the World Wide Web are the same thing. False. The internet is the global network; the web is a service that runs on it.

Fill in the blank: In a _______ topology, every device connects to a central hub or switch. Star.

True or false: A firewall encrypts data to protect it from eavesdroppers. False. A firewall filters traffic. Encryption is a separate mechanism.

Fill in the blank: _______ is the protocol used to send email between servers. SMTP.

True or false: In a peer-to-peer network, there is a central server that all devices must connect to. False. Each device can act as both client and server.


Practice Q&A

Q: What is the difference between a LAN and a WAN?

A: A LAN covers a small geographic area such as a building or campus. A WAN spans a large area, often connecting multiple LANs across cities or countries. The internet is the largest WAN.

Q: Name four common network topologies and give one advantage of each.

A: Bus (simple and inexpensive), star (easy to add/remove devices and troubleshoot), mesh (highly fault-tolerant due to redundant links), ring (orderly data flow with predictable performance).

Q: What role does TCP play in the TCP/IP suite, and how does it differ from IP?

A: TCP ensures reliable, ordered delivery of data between applications. IP handles addressing and routing, getting packets to the correct destination. TCP operates at the transport layer; IP operates at the network layer.

Q: Explain the difference between client-server and peer-to-peer architecture.

A: In client-server, a central server provides resources and clients request them (e.g. a web server and browsers). In peer-to-peer, every device can both provide and consume resources (e.g. BitTorrent file sharing). Client-server is easier to manage and secure; P2P scales differently and has no single point of failure.

Q: A network administrator wants to protect the network from unauthorised access and also ensure that any data intercepted in transit is unreadable. Which two security measures should they implement?

A: A firewall (to filter and block unauthorised traffic) and encryption (to make intercepted data unreadable without the correct decryption key).

Q: What are the three main tasks of network management?

A: Performance monitoring (measuring bandwidth, latency, throughput), fault detection (identifying and diagnosing failures), and configuration management (tracking and controlling changes to device settings).


Connections to Other Topics

This material connects directly to operating systems, which manage the software side of network communication through sockets and network drivers. It also feeds into cybersecurity coursework, where the security concepts here (firewalls, IDS, encryption) are expanded into full threat-modelling and defence-in-depth frameworks. If you go on to study distributed systems, the protocols and architectures covered here are the foundation for understanding how services like databases, message queues, and cloud platforms communicate across nodes.


Related Terms / Search Tags

computer network, networking basics, LAN, WAN, internet, network topology, bus topology, star topology, mesh topology, ring topology, network protocol, TCP/IP, TCP, IP, HTTP, HTTPS, FTP, SMTP, client-server, peer-to-peer, P2P, hybrid architecture, network security, firewall, intrusion detection system, IDS, intrusion prevention system, IPS, encryption, network services, DNS, DHCP, network management, performance monitoring, fault detection, configuration management, OSI model, TCP/IP model, computer science networking notes, intro to networks