Computer Science (9618)
Topic 5 of 17Cambridge A Levels

Computer Networks and Communication

How devices connect, share data, and access resources across local and global networks.

A computer network is a collection of interconnected computing devices that can exchange data and share resources. Networks are classified by their geographical scope, such as a Local Area Network (LAN) within a single building, or a Wide Area Network (WAN) that spans cities or countries, like the Internet.


### Data Transmission Methods

Data is transmitted between devices as a sequence of bits. The two fundamental methods are:

* Serial Data Transmission: Bits are sent one after another over a single wire or channel. While slower than parallel, it is reliable over long distances and less prone to interference. Examples include USB and Ethernet.

* Parallel Data Transmission: Multiple bits are sent simultaneously over several parallel wires or channels. This is much faster for short distances but is susceptible to data skew (bits arriving out of sync) over longer distances. It was historically used for printers and is used internally within computer components like the system bus.


### Network Architecture

This defines how devices, known as nodes, are organized and how tasks are allocated.

* Client-Server Model: This is a centralized model where a powerful computer, the server, provides services and resources (e.g., files, web pages, database access) to other computers, known as clients. Clients request services, and the server responds. This model allows for centralized management, security, and backup, but the server can become a bottleneck or a single point of failure.

* Peer-to-Peer (P2P) Model: In this decentralized model, every node is an equal, or a peer. Each peer can act as both a client and a server, sharing its resources directly with other peers without a central server. This model is resilient and scalable but can be difficult to manage and secure. BitTorrent is a common example.


### Network Topologies

Topology refers to the physical or logical arrangement of devices in a network.

* Bus Topology: All devices are connected to a single central cable, called the backbone. Data sent by one device is broadcast to all others. It is inexpensive to set up but a break in the backbone cable disables the entire network, and data collisions can occur if multiple devices transmit simultaneously.

* Star Topology: All devices are connected to a central device, such as a hub or a switch. This is the most common topology in modern LANs. It is easy to add/remove devices and a single cable failure only affects one device. However, if the central device fails, the entire network goes down.

* Mesh Topology: Every device is connected to every other device (full mesh) or to several other devices (partial mesh). This provides high redundancy and reliability, as data can be rerouted if a path fails. However, it is expensive and complex to implement due to the extensive cabling required.


### Communication Protocols and the TCP/IP Suite

A protocol is a set of rules that governs data communication. The TCP/IP protocol suite is the foundational set of protocols for the Internet, structured in four layers:

  • Application Layer: Where network applications operate. Protocols include HTTP (Hypertext Transfer Protocol) for web browsing, SMTP (Simple Mail Transfer Protocol) for email, and FTP (File Transfer Protocol).
  • Transport Layer: Manages communication between hosts. The key protocols are:
  • * TCP (Transmission Control Protocol): A connection-oriented protocol that ensures reliable, ordered delivery of data. It breaks data into segments, numbers them, and reassembles them at the destination, re-transmitting any lost segments.

    * UDP (User Datagram Protocol): A connectionless protocol that offers fast, low-overhead data delivery but does not guarantee it. It is used for time-sensitive applications like video streaming or online gaming where speed is more critical than perfect accuracy.

  • Internet Layer: Responsible for logical addressing and routing. The IP (Internet Protocol) operates here, assigning a unique IP address to each packet and routing it across the network to its destination.
  • Link Layer: Handles the physical transmission of data bits over the network medium (e.g., Ethernet, Wi-Fi).

  • ### IP Addressing and DNS

    An IP address is a unique numerical label assigned to each device on a network. IPv4 uses a 32-bit address (e.g., `172.16.254.1`), while IPv6 uses a 128-bit address to accommodate the growing number of internet-connected devices. A subnet mask (e.g., `255.255.255.0`) is used to divide the IP address into a network portion and a host portion. Since remembering IP addresses is difficult, the Domain Name System (DNS) acts as the internet's phonebook, translating human-friendly domain names (e.g., `www.cambridgeinternational.org`) into machine-readable IP addresses.


    ### Web Technologies

    Web technologies operate within the client-server model over the internet:

    * HTML (Hypertext Markup Language): The standard language for creating web pages. It defines the structure and content, using tags to create elements like headings, paragraphs, and images.

    * CSS (Cascading Style Sheets): A language used to describe the presentation and styling of a document written in HTML. It controls layout, colours, fonts, and an overall visual appearance.

    * JavaScript (JS): A scripting language that enables interactivity and dynamic behaviour on web pages, such as validating forms, creating animations, and fetching data without reloading the page. It runs on the client's browser.

    Key Points to Remember

    • 1Networks enable resource sharing using architectures like the centralized client-server model or the decentralized peer-to-peer (P2P) model.
    • 2Data is transmitted via serial (one bit at a time, long-distance) or parallel (multiple bits simultaneously, short-distance) methods.
    • 3Network topologies, such as Bus, Star, and Mesh, define the physical or logical layout of devices, each with unique trade-offs in cost, scalability, and redundancy.
    • 4The TCP/IP protocol suite is a four-layer model (Application, Transport, Internet, Link) that standardizes internet communication.
    • 5TCP provides reliable, connection-oriented data delivery, whereas UDP offers faster, connectionless communication suitable for streaming and gaming.
    • 6Unique IP addresses (IPv4/IPv6) identify devices on a network, while the Domain Name System (DNS) translates domain names into these IP addresses.
    • 7Modern websites are built using a combination of HTML for structure, CSS for presentation and styling, and JavaScript for client-side interactivity.

    Pakistan Example

    NADRA's Nationwide Network Infrastructure

    The National Database and Registration Authority (NADRA) operates one of Pakistan's largest Wide Area Networks (WANs). It connects hundreds of registration centres to a central database in Islamabad using a highly secure client-server architecture. Terminals in local offices act as clients, capturing and sending citizen data over the network. The central servers process these requests, using the TCP/IP protocol suite for reliable and secure transmission over dedicated fiber optic lines. This infrastructure is a prime example of applying robust network design, protocols, and a centralized model to manage critical national identity data for millions of citizens.

    Quick Revision Infographic

    Computer Science — Quick Revision

    Computer Networks and Communication

    Key Concepts

    1Networks enable resource sharing using architectures like the centralized client-server model or the decentralized peer-to-peer (P2P) model.
    2Data is transmitted via serial (one bit at a time, long-distance) or parallel (multiple bits simultaneously, short-distance) methods.
    3Network topologies, such as Bus, Star, and Mesh, define the physical or logical layout of devices, each with unique trade-offs in cost, scalability, and redundancy.
    4The TCP/IP protocol suite is a four-layer model (Application, Transport, Internet, Link) that standardizes internet communication.
    5TCP provides reliable, connection-oriented data delivery, whereas UDP offers faster, connectionless communication suitable for streaming and gaming.
    6Unique IP addresses (IPv4/IPv6) identify devices on a network, while the Domain Name System (DNS) translates domain names into these IP addresses.
    Pakistan Example

    NADRA's Nationwide Network Infrastructure

    The National Database and Registration Authority (NADRA) operates one of Pakistan's largest Wide Area Networks (WANs). It connects hundreds of registration centres to a central database in Islamabad using a highly secure client-server architecture. Terminals in local offices act as clients, capturing and sending citizen data over the network. The central servers process these requests, using the TCP/IP protocol suite for reliable and secure transmission over dedicated fiber optic lines. This infrastructure is a prime example of applying robust network design, protocols, and a centralized model to manage critical national identity data for millions of citizens.

    SeekhoAsaan.com — Free RevisionComputer Networks and Communication Infographic

    Test Your Knowledge!

    5 questions to test your understanding.

    Start Quiz