Skip to content
Home » Chapter 2: Communications

Chapter 2: Communications

  • by

1. Network Types & Topologies

Key Concepts:

  • LAN (Local Area Network):
    • Small geographic area (e.g., school, home).
    • High-speed connections (Ethernet/Wi-Fi).
    • Example: Star topology in a classroom (all devices connect to a central switch).
  • WAN (Wide Area Network):
    • Large geographic area (e.g., internet, multi-site businesses).
    • Uses leased lines/satellites.
    • Example: University campuses linked across cities.

Topologies:

TopologyDescriptionAdvantagesDisadvantages
StarAll devices connect to a central switch/router.Easy to add devices; fault isolation.Single point of failure (central device).
BusSingle backbone cable connects all devices.Cheap to set up.Collisions (CSMA/CD needed); hard to troubleshoot.
MeshEach device connects to every other device.Redundant paths; high reliability.Expensive; complex cabling.

Past Paper Example (2023 Q8a):
Question: Is a school network a LAN or WAN? Justify.
Marking Scheme Answer:

  • LAN – confined to one building; uses Ethernet/Wi-Fi.

2. Hardware Components

Key Devices:

  1. Switch: Connects devices in a LAN; forwards packets to correct MAC address.
  2. Router: Connects LANs/WANs; routes packets using IP addresses.
  3. Wireless Access Point (WAP): Allows Wi-Fi connections.
  4. Network Interface Card (NIC): Enables wired/wireless connectivity.

Past Paper Example (2024 Q2d):
Question: Identify 3 LAN hardware components.
Marking Scheme Answer:

  1. Switch
  2. Router
  3. Ethernet cables

3. Transmission Media

Cable TypeDescriptionAdvantagesDisadvantages
Copper (Twisted Pair)Cheap; flexible.Easy to install.Low bandwidth; EMI interference.
Fibre-OpticGlass strands; light signals.High bandwidth; no EMI.Expensive; fragile.
Wireless (Wi-Fi)Radio waves.Mobility; no cables.Signal interference; slower than wired.

Past Paper Example (2023 Q9b):
Question: Compare fibre-optic and copper cables.
Marking Scheme Answer:

  1. Fibre-optic has higher bandwidth.
  2. Fibre-optic is immune to EMI.
  3. Copper is cheaper but shorter range.

4. Protocols & Collision Management

CSMA/CD (Carrier Sense Multiple Access/Collision Detection)

1. Definition (1 mark):
CSMA/CD is a protocol used in Ethernet networks (typically bus topology) to manage data transmission and resolve collisions when multiple devices attempt to transmit simultaneously.

2. Step 1: Carrier Sense (1 mark):
Before transmitting, a device checks the network cable to determine if it is free (no ongoing transmissions).

3. Step 2: Transmission/Collision Detection (1 mark):

  • If the cable is free, the device begins transmitting.
  • If two devices transmit simultaneously, a collision occurs, and the data packets are corrupted.

4. Step 3: Collision Response (1 mark):

  • Devices detect the collision via voltage spikes.
  • Both devices stop transmitting and send a jamming signal to alert other devices.

5. Step 4: Random Backoff (1 mark):

  • Each device waits a random time interval (backoff algorithm) before retrying transmission to avoid repeated collisions.

Example (2023 Q12):
Question: Describe how CSMA/CD works.
Answer:

  1. Devices check if the cable is free before transmitting.
  2. If two devices transmit at once, a collision occurs.
  3. Collisions are detected via voltage spikes.
  4. Devices send a jamming signal and stop transmitting.
  5. Each device waits a random time before retrying.

5. IP Addressing & Subnetting

  • Private IP: Used within LAN (e.g., 192.168.x.x).
  • Public IP: Assigned by ISP; visible on internet.
  • Subnetting: Divides network to reduce traffic.
    • Subnet Mask: Identifies network/host parts (e.g., 255.255.255.0).
Finding the Network ID
  1. Write the IP and subnet mask in binary.
    • Example:
      • IP: 192.168.1.10 → 11000000.10101000.00000001.00001010
      • Subnet: 255.255.255.0 → 11111111.11111111.11111111.00000000
  2. Perform a bitwise AND operation:
    • Compare each bit (1 AND 1 = 1; all others = 0).
  3. Result = Network ID:
    • 11000000.10101000.00000001.00000000 → 192.168.1.0

Shortcut:

  • For /24 subnet (mask 255.255.255.0), the first 3 octets are the Network ID.

Example:

  • IP: 10.50.20.30 with mask 255.0.0.0 → Network ID = 10.0.0.0.

Key Points
  • Subnet mask 1s = Network portion.
  • AND operation isolates the Network ID.
  • Host ID = Remaining bits after Network ID.

This method works for IPv4 addresses with any subnet mask.

Past Paper Example (2023 Q15c):
Question: Find network ID for 10.10.12.1 with mask 255.0.0.0.
Marking Scheme Answer:

  • Network ID = 10.0.0.0 (first octet).

6. Cloud Computing

Types:

  • Public Cloud: Shared resources (e.g., AWS, Google Cloud).
  • Private Cloud: Dedicated to one organization.

Advantages:

  1. Scalability.
  2. Remote access.

Disadvantages:

  1. Dependency on internet.
  2. Security risks.

Past Paper Example (2024 Q11c):
Question: Give 2 benefits of cloud computing.
Marking Scheme Answer:

  1. Cost-effective (no hardware maintenance).
  2. Access files anywhere.

7. Client-Server vs. Peer-to-Peer (P2P)

FeatureClient-Server ModelPeer-to-Peer (P2P) Model
CentralizationCentralized (dedicated server).Decentralized (all devices are equal).
Scalability✅ High (server handles load).❌ Limited (depends on peers’ resources).
Security✅ High (centralized control, backups).❌ Low (no central authority, vulnerable).
Cost❌ Expensive (server hardware/maintenance).✅ Cheap (no dedicated server needed).
Performance✅ Stable (server manages resources).❌ Unpredictable (depends on peers).
Reliability✅ High (single point of failure is server).❌ Low (peers may disconnect).
Setup Complexity❌ Complex (requires server setup).✅ Simple (no central setup needed).
Use CasesWebsites, databases, enterprise systems.File sharing (Torrent), blockchain.
Key Takeaways
  • Choose Client-Server for reliability, security, and scalability (e.g., banking systems).
  • Choose P2P for cost savings and decentralization (e.g., BitTorrent, Bitcoin).

Past Paper Example (2023 Q4a):
Question: Describe P2P drawbacks.
Marking Scheme Answer:

  1. No centralized security.
  2. Slower if peers disconnect.

Exam Tips

  1. Topologies: Always link to context (e.g., “Star is best for schools due to fault isolation”).
  2. CSMA/CD: Mention “random wait time” for full marks.
  3. Subnetting: Use binary AND operation to find network ID.

Worked Example (2024 Q13b)

Question: Why use wired over wireless for gaming?
Marking Scheme Answer:

  • Lower latency (no interference).
  • Higher bandwidth (stable connection).

Leave a Reply

Your email address will not be published. Required fields are marked *