Unit 6 Session 2: Network Types and Topologies | IT 231 Slides

--:-- --
↓ Scroll for more

Unit 6 · Session 2

Network Types and Topologies

IT 231: IT and Application (BBM)

Learning Objectives

By the end of this chapter, you will be able to:

  • ✅ Define what a computer network is.
  • ✅ Differentiate between a Local Area Network (LAN) and a Wide Area Network (WAN).
  • ✅ Describe the common network topologies: Bus, Star, and Ring.
  • ✅ Define a network protocol and describe the roles of TCP/IP and Ethernet.
  • ✅ Identify the key hardware components of a network: switch, router, and modem.

What is a Computer Network?

A computer network is a collection of two or more computers and other hardware devices connected together to share resources and exchange data.

Think of it as a digital team, where each member can communicate and share tools.

  • Components: Computers, printers, routers, switches.
  • Purpose: Share files, printers, internet access, and more.

Network Types 📊

Networks are most often classified by their geographical scope.

Local Area Network (LAN)

Covers a small, limited area like a single building or campus.

Wide Area Network (WAN)

Covers a broad geographical area, like a city, country, or the entire globe.

Deep Dive: Local Area Network (LAN)

A network that connects computers within a limited geographical area, such as a single building or a school campus.

  • Scope: Small (office, home, lab)
  • Purpose: Share resources like printers and files.
  • Speed: Typically very fast.

Example: The computer network in your university library, connecting all the PCs, printers, and servers together.

Deep Dive: Wide Area Network (WAN)

A network that covers a broad geographical area, often by connecting multiple LANs together.

  • Scope: Large (city, country, global)
  • Structure: A network of networks.
  • Speed: Slower than a LAN due to distance.

The most famous example of a WAN is the Internet itself!

📏 Beyond LAN and WAN: PAN and MAN

Networks come in four common sizes, from your body to the whole planet:

TypeCoversExample
PAN (Personal Area Network)A few metres around one personYour phone linked to a smartwatch and wireless earbuds by Bluetooth
LAN (Local Area Network)A room, building or campusA college computer lab
MAN (Metropolitan Area Network)A whole cityA city's traffic-camera network, or a university with campuses across one city
WAN (Wide Area Network)A country or the worldA bank's national branch network, or the internet

Bigger networks are usually built by joining smaller ones together.

A city-sized network: Kathmandu at night

A busy street in Thamel, Kathmandu at night, lit by shop signs

🎯 Quick-Fire: PAN, LAN, MAN or WAN?

Call out your answer before each one is revealed.

1. Your smartwatch sending step counts to your phonePAN
2. A hospital's network across three buildings on one siteLAN
3. CCTV cameras at junctions across Kathmandu, linked to one control roomMAN
4. A company linking its offices in Kathmandu, Dubai and LondonWAN
5. Wireless earbuds playing music from your laptopPAN
6. Ten PCs and a printer in a small travel agencyLAN

🖥️ Who's in Charge? Client–Server vs Peer-to-Peer

Client–Server

  • Powerful central computers (servers) store data and provide services.
  • Users' devices (clients) ask the servers for what they need.
  • Examples: mobile banking, email, Netflix, your college's student portal
  • ✅ Easy to secure, back up and control
  • ⚠️ If the server fails, everyone is affected

Peer-to-Peer (P2P)

  • Every device is equal and shares directly with the others.
  • There's no central server.
  • Examples: AirDrop or Nearby Share between phones, BitTorrent, two PCs sharing a folder at home
  • ✅ Cheap and simple for small groups
  • ⚠️ Hard to secure and manage as it grows

Think: Why does every bank use client–server, not peer-to-peer?

🎬 Client–Server vs Peer-to-Peer

What is Network Topology? 🔍

Network Topology refers to the physical layout or arrangement of the devices on a network. It's the network's blueprint.

We'll explore the three most common historical and modern topologies:

Bus
Ring
Star

🔍 The Main Topology Shapes

Diagram of seven network topologies: ring, mesh, star, fully connected, line, tree and bus, with green dots as devices

Bus Topology

All devices are connected to a single central cable, called the bus or backbone.

How it works:

  • Data is sent down the entire cable.
  • All devices see the data, but only the intended recipient accepts it.
  • Simple and inexpensive to set up.

Major Disadvantage ⚡
If the main cable fails, the entire network goes down.

The T-connector that made a bus

A metal BNC T-connector joining two coaxial cables, as used in old bus networks

Ring Topology

All devices are connected in a closed loop or ring. Data travels around the ring, typically in one direction.

How it works:

  • Each device receives data and passes it along to the next one.
  • Prevents data collisions since data flows in one direction.

Major Disadvantage ⚡
A failure in one device or cable can break the loop and take down the entire network.

Star Topology ⭐

All devices are connected to a central device, like a hub or a switch. This is the most common topology in modern LANs.

How it works:

  • All data passes through the central hub/switch.
  • Easy to add or remove devices.
  • Easy to troubleshoot.

Key Advantage ✅
If one cable fails, only that single device is affected. The rest of the network remains functional.

🕸️ Mesh Topology

Each device connects to several others, so data has more than one path. In a full mesh, every device connects to every other device.

How many cables for a full mesh?

Links = n × (n − 1) ÷ 2, where n is the number of devices

  • 5 devices: 5 × 4 ÷ 2 = 10 links
  • 10 devices: 10 × 9 ÷ 2 = 45 links
  • 50 devices: 50 × 49 ÷ 2 = 1,225 links

Key Advantage ✅
If one link fails, data simply takes another path.

Major Disadvantage ⚡
Lots of cables and ports make it expensive.

Where it's used: the internet's backbone between cities, and home "mesh Wi-Fi" systems with several units that pass the signal between them.

🌳 How Real Networks Look: Tree and Hybrid

Real networks rarely use just one shape.

Tree topology

Stars connected in layers, like branches on a tree. For example, on a college campus:

  • A main switch in the server room connects to
  • a switch in each building, which connects to
  • a switch on each floor, which connects to the PCs.

Hybrid topology

Two or more topologies combined. The internet is the biggest example:

  • a mesh of fibre links between cities and countries
  • stars at the edge, in every home and office

Designers mix shapes to balance cost against reliability.

🔧 Activity: What Breaks?

For each failure, who loses their connection: one device, or the whole network?

1. Bus: the main backbone cable is cutThe whole network
2. Star: one PC's cable is unpluggedOnly that PC
3. Star: the central switch loses powerEveryone. The switch is a single point of failure
4. Ring: one computer in a simple ring breaks downThe whole ring
5. Full mesh: one cable between two devices is cutNobody. Data takes another path

Follow-up: How could an office protect itself from failure 3?

Keep a spare switch, put the switch on a UPS (backup battery), or use two linked switches.

📊 Topology Comparison

BusRingStarMesh
Cabling costLowestLowMediumHighest
One cable failsAll downAll downOne device downNo one affected
Adding a deviceDisrupts the networkBreaks the loopEasy: plug into the switchNeeds many new links
TroubleshootingHardHardEasyComplex
Used todayRarelyRarely in LANsAlmost every LANBackbones, mesh Wi-Fi

Star wins for offices because it balances cost, reliability and ease of management.

🎬 Why the Internet Survives Failures

Networking in Nepal: Real-World Examples

LAN Example

A branch of a commercial bank like NIC Asia in Pokhara. All the teller computers, manager's PC, and printers are connected in a LAN, likely using a Star topology with a central switch.

WAN Example

The network of an Internet Service Provider like WorldLink. They connect their LANs in various cities (Kathmandu, Biratnagar, Nepalgunj) across the country using a wide-area fiber optic network. This forms a national WAN.

🎯 Activity: Design the Network

An accounting firm has 12 PCs, 2 printers and a file server on one floor in Kathmandu, and a new 4-person branch in Butwal. Staff also use their phones in the office. In groups:

  1. Which network type does each office need, and what links the two offices?
  2. Which topology would you use inside the Kathmandu office?
  3. What is your single point of failure, and how would you protect it?
  4. Client–server or peer-to-peer for the firm's files? Why?

Model answer: Each office has a LAN, and the offices are linked over a WAN (the internet). Inside, use a star with a central switch, plus a Wi-Fi access point for phones. The switch is the single point of failure, so keep a spare and put it on a UPS. Use client–server, because client files must be secured and backed up centrally.

Key Takeaways 🎯

  • A network is a group of connected computers that share resources.
  • Networks are classified by size: LANs are local (office), and WANs are wide-area (the Internet).
  • Topology is the physical layout of a network (its "map").
  • While Bus and Ring were used historically, the Star topology is the reliable, modern standard for LANs.
  • Protocols like TCP/IP and Ethernet are the essential rules that govern all network communication.
  • A Switch connects devices together on a single LAN, while a Router connects different networks.
  • A Modem is the bridge between your local network and your Internet Service Provider.

Exam Practice: Short Answer

  1. What is a computer network? List three benefits.
  2. Differentiate between LAN and WAN.
  3. What is mesh topology? Where is it used?
  4. What is a protocol? Give two examples.
  5. Differentiate between a hub and a switch.
  6. Differentiate between TCP and UDP.

Exam Practice: Long Answer

  1. Explain different network topologies with their advantages and disadvantages.
  2. A company has offices on three floors of a building. Suggest a suitable network type and topology, and justify your answer.
  3. Explain the TCP/IP model and the roles of TCP and IP.
  4. Describe the networking hardware needed to set up a small office network, with a diagram.

Revise the Network Types and Topologies and Protocols and Networking Hardware notes before writing these answers.

What is a Network Protocol?

Protocol: A set of rules that governs how data is formatted, transmitted, and received in a network.

🗣️ Human Analogy

If I speak Nepali and you only speak English, we can't communicate. We need a shared language (a protocol).

💻 Computer Analogy

For two computers to share data, they must "speak" the same digital language, like TCP/IP.

The Core Protocol: TCP/IP

TCP/IP is the foundational protocol suite of the internet—the "language" every connected device speaks.

IP: The Postal Service 📮

The Internet Protocol is responsible for addressing and routing packets of data to the correct destination, like putting an address on an envelope.

TCP: The Registered Post 📦

The Transmission Control Protocol ensures data is delivered reliably and in the correct order, like a tracking number that confirms delivery.

🧱 The TCP/IP Model: Four Layers

Sending data is split into four jobs. Each layer does one job and passes the data on:

LayerIts jobExamples
4. ApplicationThe program the user works withHTTP (web), SMTP (email), DNS
3. TransportSplits data into segments and checks deliveryTCP, UDP
2. InternetAddresses and routes packets across networksIP
1. Network accessMoves bits over the actual cable or radio linkEthernet, Wi-Fi

Sending goes down the layers (4 → 1); receiving goes back up (1 → 4).

🚚 TCP vs UDP: Careful or Quick?

TCPUDP
ConnectionSets up a connection first (a "handshake")Just sends, with no setup
ReliabilityChecks every packet arrived; resends lost onesNo checking; lost packets stay lost
OrderPuts packets back in the right orderPackets may arrive out of order
SpeedSlower, because of the checksFaster, with less delay
Used forWeb pages, email, file downloads, online bankingLive video calls, online games, live streaming

A missing piece of a bank statement is a disaster; a missing frame of a video call is barely noticed.

📦 Activity: Be the Packets

Your phone sends the message "SEE YOU AT 5 IN THE LIBRARY". TCP/IP splits it into small packets. Each one carries:

  • the destination IP address (where it's going)
  • a sequence number (its place in the message)

Four volunteers each hold one packet card and walk to the "receiver" at the front, each by a different route around the room:

[1] SEE YOU   [2] AT 5   [3] IN THE   [4] LIBRARY

  1. The packets arrive in the order 3, 1, 4, 2. What does the receiver do? TCP puts them back in order using the sequence numbers.
  2. Packet 2 never arrives. What now? TCP notices the gap and asks for packet 2 to be sent again.
  3. Why did each packet need the address? IP lets every router along the way send it in the right direction.

🎬 Watch: How Packets Travel

Local Connections: The Ethernet Protocol

Ethernet: The most common protocol used for wired Local Area Networks (LANs).

  • It defines how devices should format data for transmission over a physical cable.
  • Think of the network cables in your university's computer lab or your office—that's Ethernet in action.

While Wi-Fi is the standard for wireless, Ethernet is the king of wired LAN connections, prized for its speed and stability.

Making the Connection: Networking Hardware

Protocols are the rules, but this hardware makes the physical connection possible.

Switch Icon

Switch

Connects local devices

Router Icon

Router

Connects different networks

Modem Icon

Modem

Connects to the ISP

Hardware 1: The Switch 🔌

Switch: A device used to connect multiple computers together on a single Local Area Network (LAN).

Its job is to be a smart traffic controller *inside* the local network.

A switch intelligently forwards data only to the specific device it is intended for, which reduces unnecessary traffic and improves network efficiency.

📢 Hub vs Switch: Shouting or Delivering?

Hub (old)

  • Copies every message to every port
  • All devices share the bandwidth, and messages can collide
  • Any device can see everyone's traffic
  • Like a teacher shouting a note to the whole class

Switch (today)

  • Learns each device's MAC address
  • Sends a message only to the port it is meant for
  • Faster, with fewer collisions, and more private
  • Like handing the note to one student

Hubs are now almost extinct; offices and homes use switches.

Hardware 2: The Router 🌐

Router: A device that connects different networks together, directing traffic between them.

Its main job is to connect your private LAN to the public internet (a Wide Area Network or WAN).

Your home "Wi-Fi router" is usually a combination device: a router, a switch, and a wireless access point all in one box.

📊 Switch vs. Router: A Comparison

Switch (Local Director)

  • Scope: Within one LAN
  • Function: Connects end devices (PCs, printers)
  • Analogy: An office receptionist directing visitors to the right room.

Router (Global Navigator)

  • Scope: Between different networks (LAN ↔ WAN)
  • Function: Connects networks together
  • Analogy: An airport traffic controller directing planes between cities.

🎬 Watch: Switch vs. Router

Hardware 3: The Modem ⚡

Modem (Modulator-Demodulator): A device that connects your network to your Internet Service Provider (ISP).

  • It acts as a translator.
  • It converts the digital signals from your computer into signals suitable for the ISP's network (like fiber optic or cable).
  • It then converts incoming signals back into digital data your router can understand.

The box from your ISP: a fibre modem (ONT)

A tall white Nokia fibre-to-the-home modem on a shelf, with status lights labelled Power, PON, Internet and WLAN.

🔍 Practical Application: Connecting in Nepal

Scenario: Using Wi-Fi at a café in Pokhara

When you connect your laptop to the internet via Wi-Fi, you are interacting with a chain of hardware:

  1. Your laptop connects wirelessly to the café's Router (which is also a Wireless Access Point).
  2. The Router directs your request towards the internet.
  3. The Modem (often a fiber optic ONU in Nepal) translates your request for the ISP's network.
  4. The data travels over the ISP's network (e.g., WorldLink, Vianet) to the destination server. The process reverses for the reply!

🏢 Worked Example: Hardware for a 10-Person Office

A travel agency in Lalitpur has 8 desktops, 1 shared printer and staff laptops and phones. What does it need?

  1. Modem / fibre ONT from the ISP, to connect to the internet
  2. Router to join the office LAN to the internet and give each device an address
  3. 16-port switch so the 8 desktops and the printer connect by cable, with room to grow
  4. Wireless access point (often built into the router) for laptops and phones
  5. Twisted-pair cables (each run under 100 m) from each desk to the switch

The result is a star topology: every device links to the central switch. Draw it this way in the exam.

Image & Video Credits (1/2)

Images

  • Switch and router icons (existing, slide 18) and broadband-modem icon: Icons8, free licence with attribution, https://icons8.com
  • "Central Ridge Library Computer Rm 2026.jpg": Rachelb ABC, CC0, via Wikimedia Commons
  • "Thamel at Night - Kathmandu, Nepal (1).jpg": Saddam Hussain Ansari, CC BY 4.0, via Wikimedia Commons
  • "NetworkTopologies.svg": Maksim (original PNG), SVG by Malyszkz, Public domain, via Wikimedia Commons
  • "BNC Tee connector, with Ethernet cable connected-92166.jpg": Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons
  • "Netgear Gigabit Switch 5-port.jpg": Simon A. Eugster, CC BY-SA 3.0, via Wikimedia Commons
  • "Belkin Wireless G Router F5D7231-4 Version 1000de-1123.jpg": Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons
  • "Nokia FTTH modem Wi-Fi 6 Flying Bull Internet LLC.jpg": Ranch9613, CC0, via Wikimedia Commons

Image & Video Credits (2/2)

Videos (YouTube)

  • Tyler Lemmond, "Client-Server vs Peer-to-Peer: Networking Explained" (0:00–1:03), https://www.youtube.com/watch?v=kwL8LX0i_wA
  • PowerCert Animated Videos, "Network Topologies (Star, Bus, Ring, Mesh, Ad hoc, Infrastructure, & Wireless Mesh Topology)" (3:23–4:45), https://www.youtube.com/watch?v=zbqrNg4C98U
  • CodeAI (Code.org), "The Internet: Packets, Routing & Reliability" (2:33–4:01), https://www.youtube.com/watch?v=AYdF7b3nMto
  • PowerCert Animated Videos, "Hub, Switch, & Router Explained - What's the difference?" (3:14–4:35), https://www.youtube.com/watch?v=1z0ULvg_pW8

Teaching content © Arjan KC. Third-party media remain the property of their owners.

Thank You!

Any Questions?

Back to IT 231 Course Notes

📖 Read first (chapter notes)