📑 Contents

Chapter 2.1: Networking

AS Level Computer Science (9618)

📚 Learning Objectives

1. Introduction to Networks

📖 Definition

A network is a linked set of two or more computer systems capable of sharing resources such as printers, storage, and databases.

1.1 Network Categories

🌟 Did You Know?

1.2 Benefits of Networking

1.3 Drawbacks of Networking

2. Local Area Network (LAN)

📖 Definition

A LAN (Local Area Network) connects computers and devices within a limited area such as a building, office, or campus.

📌 Key Characteristics of LAN

3. Wide Area Network (WAN)

📖 Definition

A WAN (Wide Area Network) spans large geographical distances, connecting LANs across cities, countries, or continents.

💡 Exam Tip

4. LAN vs WAN Comparison

Characteristic LAN WAN
Geographic Scope Small area (building/campus) Large area (cities/countries)
Ownership Owned by organization Leased from telecom provider
Speed High (100 Mbps - 10 Gbps) Lower (varies by connection)
Cost Lower setup cost Higher (lease fees)
Error Rate Low Higher
Example School network, office network Internet, bank ATM network

4.1 Benefits of Connecting via WAN

4.2 Benefits of Connecting PCs in a LAN

5. Client-Server Model

📖 Definition

In a client-server model, a powerful central server provides resources and services to multiple client computers that request them.

Aspect Advantages Disadvantages
Security Centralized security control Single point of failure
Backup Centralized backup is easy Server failure affects all
Cost Economies of scale for software Expensive server hardware
Management Dedicated IT staff can manage Requires trained administrators

6. Peer-to-Peer (P2P) Model

📖 Definition

In a peer-to-peer model, all computers have equal status and can share resources directly with each other without a central server.

⚠️ Important

7. Client-Server vs P2P Comparison

Feature Client-Server Peer-to-Peer
Server Dedicated server required No dedicated server
Cost Higher (server hardware) Lower (use existing PCs)
Security Centralized, stronger Distributed, weaker
Scalability Highly scalable Limited (under 10 computers)
Best For Businesses, schools Home, small office
💡 Exam Tip: Choosing a Network Model

8. Thin-Client vs Thick-Client

8.1 Thick-Client

📖 Definition

A thick-client (fat client) is a computer that performs most processing locally, with its own storage, memory, and processing power.

8.2 Thin-Client

📖 Definition

A thin-client is a computer that relies on a server for most processing, having minimal local hardware and software.

9. Thin-Client vs Thick-Client Comparison

Aspect Thick-Client Thin-Client
Processing Local processing Server-based processing
Storage Large local storage Minimal or no local storage
Software Installed locally Runs from server
Cost Higher per unit Lower per unit
Offline Use Full functionality Limited or none
Maintenance Individual updates needed Centralized server updates
Network Dependency Low High
📌 Key Takeaways: Thin vs Thick Client

10. Network Topologies

📖 Definition

Network topology refers to the physical or logical arrangement of nodes and connections in a network.

10.1 Bus Topology

Terminator Terminator Bus (Backbone)

10.2 Star Topology

Hub

10. Network Topologies (continued)

10.3 Mesh Topology

A B C D

10.4 Hybrid Topology

Topology Reliability Cost Scalability Best For
Bus Low Low Poor Small, temporary networks
Star Medium Medium Good Offices, schools (most LANs)
Mesh High High Complex Critical systems, WANs
Hybrid Variable Variable Good Large organizations
❌ Common Mistake

11. Wired vs Wireless Networks

11.1 Wired Networks

Cable Type Speed Distance Characteristics
Copper (Twisted Pair) Up to 10 Gbps 100m max Cheap, common, susceptible to EMI
Coaxial Cable Up to 10 Gbps 500m Better shielding, used for cable TV
Fiber Optic 100+ Gbps Kilometers Fastest, immune to EMI, expensive
🧠 Memory Trick

Copper = Cheap + Close (affordable, short distance)
Fiber = Fast + Far (high speed, long distance)

11.2 Wireless Networks

Technology Range Speed Use Case
WiFi (Radio Waves) ~100m indoor Up to 9.6 Gbps Home/office networks
Microwave Line of sight Variable Building-to-building links
Satellite Global Up to 500 Mbps Remote areas, global coverage

12. LAN Hardware Components

12.1 Network Interface Card (NIC)

📖 Definition

A Network Interface Card (NIC) is a hardware component that enables a computer to connect to a network.

12.2 Switch

📖 Definition

A switch is a device that connects multiple devices on a LAN and forwards data packets to the specific destination device only.

12.3 Hub

📖 Definition

A hub is a basic networking device that broadcasts incoming data to ALL connected devices, regardless of the destination.

⚠️ Important: Switch vs Hub

13. More LAN Hardware

13.1 Wireless Access Point (WAP)

13.2 Router

📖 Definition

A router is a device that connects different networks together and routes data packets between them based on IP addresses.

📝 How a Router Works
  1. Receives data packet from source network
  2. Examines destination IP address in packet header
  3. Consults routing table to find best path
  4. Forwards packet to next router or final destination
  5. Repeats until packet reaches destination network

13.3 Modem

📖 Definition

A modem (MOdulator-DEModulator) converts digital signals to analog for transmission over telephone lines, and vice versa.

14. Hardware Summary & IP Addressing

14.1 Bridge and Repeater

Device OSI Layer Key Function
Repeater Layer 1 (Physical) Amplifies signals
Hub Layer 1 (Physical) Broadcasts to all ports
Bridge Layer 2 (Data Link) Connects network segments
Switch Layer 2 (Data Link) Forwards to specific device
Router Layer 3 (Network) Routes between networks

15. IP Addressing

📖 Definition

An IP address (Internet Protocol address) is a unique numerical identifier assigned to each device on a network.

15.1 Public vs Private IP Addresses

Type Range Use Accessible From
Private 192.168.x.x, 10.x.x.x, 172.16-31.x.x Internal networks (LAN) Local network only
Public All others Internet communication Anywhere on Internet

16. Subnet Mask and NAT

16.1 Subnet Mask

📖 Definition

A subnet mask determines which portion of an IP address identifies the network and which identifies the host.

📝 Example: Identifying Network vs Host

16.2 Network Address Translation (NAT)

💡 Exam Tip

17. Ethernet and CSMA/CD

📖 Definition

Ethernet is the most widely used LAN technology, defining how data is formatted and transmitted over network cables.

18. CSMA/CD Protocol

📖 Definition

CSMA/CD (Carrier Sense Multiple Access/Collision Detection) is a protocol that manages how devices share a network channel and handle collisions.

📝 How CSMA/CD Works
  1. Carrier Sense: Device listens to check if channel is free
  2. Multiple Access: All devices share the same channel
  3. Transmit: If channel is free, device sends data
  4. Collision Detection: If two devices transmit simultaneously, collision occurs
  5. Jam Signal: Device sends jam signal to notify all devices
  6. Backoff: Each device waits random time before retrying
  7. Retry: Device attempts to transmit again
⚠️ Important

18.1 Bit Streaming

🌟 Did You Know?

19. Exam-Style Questions

1. Explain three benefits of using a network compared to stand-alone computers. [6 marks]

Answer:

  • Hardware resources can be shared, reducing costs (printers, scanners) ✓
  • Software licenses for networks are cheaper than individual licenses ✓
  • Users can share files and collaborate on projects ✓
  • Centralized backup ensures data protection ✓
  • Communication via email/messaging improves productivity ✓
  • Centralized security management controls access rights ✓
  • Max 6 marks: 2 marks per benefit with explanation
2. Describe three characteristics of a LAN. [3 marks]

Answer:

  • Covers a small geographical area (building or campus) ✓
  • Owned and managed by a single organization ✓
  • Uses private IP addressing (not routable on internet) ✓
  • High data transfer rates (100 Mbps - 10 Gbps) ✓
  • Low error rates due to controlled environment ✓
  • Any 3 characteristics = 3 marks
3. Compare client-server and peer-to-peer network models. Give two advantages of each. [4 marks]

Answer:

  • Client-Server Advantages:
  • Centralized security and backup management ✓
  • Better performance with dedicated server ✓
  • Peer-to-Peer Advantages:
  • Lower cost (no dedicated server needed) ✓
  • Easier to set up for small networks ✓
  • 2 marks for client-server advantages, 2 marks for P2P advantages
4. Explain the difference between a thin-client and a thick-client. [4 marks]

Answer:

  • Thick-client: Performs most processing locally with own processor, RAM, and storage ✓
  • Can work offline with full functionality ✓
  • Thin-client: Relies on server for most processing with minimal local hardware ✓
  • Requires network connection to function ✓
  • 4 marks for complete comparison

19. Exam-Style Questions (continued)

5. A school is setting up a new computer network. Justify which network topology they should use. [5 marks]

Answer:

  • Recommendation: Star topology
  • Easy to add new devices without disrupting network ✓
  • If one cable fails, only that device is affected ✓
  • Central switch allows easy management and monitoring ✓
  • Good performance for typical school usage ✓
  • 5 marks for justified recommendation with reasons
6. Describe the function of a switch and explain how it differs from a hub. [4 marks]

Answer:

  • Switch function: Connects devices and forwards data to specific destination only ✓
  • Uses MAC addresses to identify devices ✓
  • Difference from hub: Hub broadcasts to ALL devices ✓
  • Switch is more efficient and reduces network congestion ✓
  • 4 marks for complete explanation
7. Compare fiber optic cable and copper cable for network transmission. [4 marks]

Answer:

  • Fiber Optic: Faster speeds (100+ Gbps), longer distance (kilometers) ✓
  • Immune to electromagnetic interference, more secure ✓
  • Copper: Cheaper, easier to install ✓
  • Limited distance (100m), susceptible to interference ✓
  • 4 marks for complete comparison
8. Explain the role of a router in a network. [4 marks]

Answer:

  • Connects different networks together (LAN to WAN/Internet) ✓
  • Uses IP addresses to determine best path for data packets ✓
  • Performs Network Address Translation (NAT) ✓
  • Can provide security features like firewall ✓
  • 4 marks for complete explanation

19. Exam-Style Questions (continued)

9. What is NAT and why is it important? [3 marks]

Answer:

  • NAT (Network Address Translation) translates private IPs to public IP ✓
  • Allows multiple devices to share one public IP address ✓
  • Provides security by hiding internal network structure ✓
  • Conserves limited IPv4 addresses ✓
  • Any 3 points = 3 marks
10. Explain how CSMA/CD works in an Ethernet network. [5 marks]

Answer:

  • Carrier Sense: Device listens to check if channel is free ✓
  • Transmit: If free, device sends data ✓
  • Collision Detection: If collision occurs, device detects it ✓
  • Jam Signal: Device sends jam signal to notify all devices ✓
  • Backoff: Each device waits random time before retrying ✓
  • 5 marks for complete explanation
11. A company needs to connect offices in London and New York. What type of network should they use and why? [4 marks]

Answer:

  • WAN (Wide Area Network)
  • Spans large geographical distance between cities/countries ✓
  • Uses leased telecommunication lines ✓
  • Would connect the LANs at each office via routers ✓
  • 4 marks for correct type with justification
12. Describe the purpose of a subnet mask. [3 marks]

Answer:

  • Identifies which part of IP address is network vs host ✓
  • Network portion: where mask bits are 255 (all 1s) ✓
  • Helps routers determine if destination is local or remote ✓
  • Enables network segmentation for efficiency ✓
  • Any 3 points = 3 marks

20. Key Terms Glossary

Term Definition
LAN Local Area Network — network within a limited area
WAN Wide Area Network — network spanning large distances
NIC Network Interface Card — hardware for network connection
MAC Address Unique hardware identifier assigned to NIC
IP Address Numerical identifier for device on network
Switch Device that forwards data to specific destination
Router Device that connects different networks
Topology Physical/logical arrangement of network
CSMA/CD Collision detection protocol for Ethernet
NAT Network Address Translation — sharing public IPs
Subnet Mask Defines network and host portions of IP address
WAP Wireless Access Point — connects wireless devices
📌 Chapter Summary