Courses / Application of ICT (GEN-103) – BS 1st Semester
Week 11 Theory – Transmission Modes, Protocols, Topologies and Network Types
Week 11 – Communication Modes, Protocols and Networks · 70 min read · 36 MCQs to check yourself
Modes of communication (transmission modes)
The transmission mode describes the direction of data flow between two connected devices.
| Mode | Direction | Description | Examples |
|---|---|---|---|
| Simplex | One way only | Data flows in one direction; the receiver can never reply | Keyboard → computer, computer → monitor, radio and TV broadcasting, loudspeaker |
| Half duplex | Both ways, one at a time | Each device can send and receive, but not simultaneously; they take turns | Walkie-talkie ("over"), CB radio |
| Full duplex | Both ways at the same time | Both devices send and receive simultaneously | Telephone/mobile call, video call, modern Ethernet |
Simplex: A ───────────► B
Half duplex: A ◄──────────► B (one direction at a time)
Full duplex: A ═══════════► B
A ◄═══════════ B (both at once)
Communications and media (recap)
Communication links can be wired (twisted pair, coaxial, fibre) or wireless (radio, microwave, satellite, infrared, Bluetooth, Wi-Fi). See Week 10 for details.
Computer network
A computer network is a group of two or more computers and devices connected together to share resources (printers, files, Internet) and communicate (email, chat).
Advantages: resource sharing (one printer for all), file and data sharing, communication, centralised backup and security, lower cost, remote access. Disadvantages: security risks (hacking, malware spread), setup and maintenance cost, dependence on the server, needs a network administrator.
Network models: client–server (a central server provides services to clients) and peer-to-peer (P2P) (all computers are equal and share directly).
Protocols
A protocol is a set of rules for formatting and transmitting data between devices. Common protocols:
| Protocol | Purpose |
|---|---|
| TCP/IP (Transmission Control Protocol / Internet Protocol) | Basic protocol suite of the Internet; IP addresses and routes packets, TCP ensures reliable, ordered delivery |
| UDP | Fast, connectionless delivery (video streaming, gaming) |
| HTTP / HTTPS | Transfers web pages; HTTPS is secure (encrypted with SSL/TLS) |
| FTP | Transfers files between computers |
| SMTP | Sends email |
| POP3 / IMAP | Receives/retrieves email (IMAP keeps mail synchronised on server) |
| DNS | Translates domain names (www.hec.gov.pk) into IP addresses |
| DHCP | Automatically assigns IP addresses to devices |
| Telnet / SSH | Remote login (SSH is secure) |
| Wi-Fi (IEEE 802.11), Ethernet (IEEE 802.3), Bluetooth | Rules for wireless and wired LANs |
IP address: a unique numeric address of a device on a network, e.g. IPv4 192.168.1.10 (32-bit), IPv6 (128-bit). MAC address: a unique physical address of a network card.
Network topologies
Topology is the physical or logical layout (arrangement) of computers (nodes) and cables in a network.
Bus topology
All devices are connected to a single main cable (backbone/bus) with terminators at both ends.
- ✔ Easy to install, needs the least cable, cheap; good for small networks.
- ✘ If the backbone fails, the whole network fails; performance drops as more devices are added; difficult to troubleshoot; data collisions.
Star topology
All devices are connected to a central device (hub or switch) by separate cables.
- ✔ Easy to install, add or remove devices; failure of one cable affects only that device; easy to troubleshoot; most common in LANs today.
- ✘ If the central hub/switch fails, the whole network fails; needs more cable than bus.
Ring topology
Each device is connected to two neighbours, forming a closed loop; data travels in one direction around the ring (often using a token – token ring).
- ✔ Orderly access, no collisions; equal access for all; performs well under heavy load.
- ✘ Failure of one device or cable can break the whole ring (unless dual ring); adding/removing devices disrupts the network; troubleshooting is hard.
Mesh topology
Every device is connected to every other device (full mesh) or to many others (partial mesh).
- Number of links in a full mesh = n(n − 1) / 2 (for 5 computers: 5×4/2 = 10 links).
- ✔ Very reliable and fault tolerant – many alternative paths; high security and privacy; no traffic problems.
- ✘ Very expensive; lots of cabling and ports; complex to install and manage.
- Used in the Internet backbone, military and critical networks, wireless mesh.
Others: tree (hierarchical) – stars connected to a bus; hybrid – combination of two or more topologies.
BUS: ─┬───┬───┬───┬─ STAR: A B
A B C D \ /
C ── SWITCH ── D
RING: A ── B MESH: A ─── B
│ │ │ ╲ ╱ │
D ── C │ ╱ ╲ │
D ─── C
| Bus | Star | Ring | Mesh | |
|---|---|---|---|---|
| Central device | No | Yes (hub/switch) | No | No |
| Cable needed | Least | More | Moderate | Most |
| Effect of one cable failure | Backbone fails = whole network | Only one device | Whole ring (single ring) | Little effect |
| Cost | Low | Moderate | Moderate | High |
Types of networks (by geographical area)
| Network | Coverage | Examples / features |
|---|---|---|
| PAN – Personal Area Network | A few metres around one person | Phone connected to wireless earbuds and smartwatch via Bluetooth; USB connections |
| LAN – Local Area Network | A room, building or campus (up to a few km) | School computer lab, office network; high speed (100 Mbps – 10 Gbps), low error rate, owned privately; Ethernet/Wi-Fi |
| MAN – Metropolitan Area Network | A city or large town (up to ~50 km) | City-wide cable TV network, a university's campuses across a city, city Wi-Fi |
| WAN – Wide Area Network | Countries/continents – unlimited | The Internet (largest WAN), bank networks connecting branches nationwide; uses leased lines, fibre, satellites; slower and costly, often public/leased |
Others: WLAN (wireless LAN), CAN (campus area network), SAN (storage area network), VPN (virtual private network – secure tunnel over the Internet).
Network devices (brief)
- NIC (Network Interface Card) – connects a computer to the network; has a MAC address.
- Hub – connects devices in a star; sends data to all ports (not smart).
- Switch – connects devices in a LAN and sends data only to the intended device (uses MAC addresses).
- Router – connects different networks (e.g. LAN to the Internet) and finds the best path using IP addresses.
- Repeater – regenerates weak signals to extend distance.
- Bridge – connects two LAN segments.
- Gateway – connects networks using different protocols.
- Access point – provides Wi-Fi to wireless devices.
Simplex, Half-Duplex and Full-Duplex Communication
Network Topologies – Star, Bus, Ring, Mesh (PowerCert)
PAN, LAN, MAN & WAN Explained in 3 Minutes
Computer Networks – Crash Course Computer Science #28
Short and long questions
1. Explain transmission modes and common network protocols.
Model answer
Transmission modes: simplex – one direction only (TV, radio broadcast, keyboard to CPU); half duplex – both directions but one at a time (walkie-talkie); full duplex – both directions simultaneously (telephone, video call, switched Ethernet). Protocols: rules for communication. TCP/IP – Internet protocol suite (IP addresses and routes packets; TCP ensures reliable delivery). HTTP/HTTPS – web pages (HTTPS encrypted). FTP – file transfer. SMTP – sending email; POP3/IMAP – receiving email. DNS – converts domain names to IP addresses. DHCP – assigns IP addresses automatically. Ethernet (802.3) and Wi-Fi (802.11) – wired and wireless LAN standards.
2. Explain simplex, half duplex and full duplex modes with examples.
Model answer
Simplex: one-way only (TV broadcast, keyboard → computer). Half duplex: two-way but one at a time (walkie-talkie). Full duplex: two-way at the same time (telephone call, video call).
3. What is the function of DNS?
Model answer
DNS (Domain Name System) converts human-readable domain names such as www.google.com into the numeric IP addresses that computers use to locate each other.
4. Define protocol and name any four protocols.
Model answer
A protocol is a set of rules that governs how data is formatted, transmitted and received between devices. Examples: TCP/IP, HTTP/HTTPS, FTP, SMTP (also DNS, DHCP, POP3, IMAP).
5. What is a network topology? Explain bus, star, ring and mesh topologies with diagrams, advantages and disadvantages.
Model answer
Topology is the layout of nodes and connections in a network. Bus: all nodes on one backbone cable with terminators. Advantages – cheap, least cable, easy for small networks. Disadvantages – backbone failure stops network, collisions, slow with more nodes, hard to troubleshoot. Star: all nodes connected to a central hub/switch. Advantages – easy to install, expand and troubleshoot; one cable fault affects only one node. Disadvantages – central device is a single point of failure; more cable. Ring: each node connected to two neighbours forming a loop; data passes in one direction (token). Advantages – no collisions, equal access, good under heavy load. Disadvantages – one failure can break the ring; adding nodes disrupts network. Mesh: every node connected to every other node; links = n(n−1)/2. Advantages – highly reliable, fault tolerant, secure. Disadvantages – very expensive, complex cabling and management. (Diagrams: bus – nodes hanging from a line; star – nodes around a central switch; ring – nodes in a circle; mesh – every node linked to every other.)
6. Write two advantages and two disadvantages of star topology.
Model answer
Advantages: easy to install and add/remove devices; failure of one cable affects only one device and troubleshooting is easy. Disadvantages: failure of the central hub/switch stops the whole network; needs more cable than bus topology.
7. What is network topology? Name its types.
Model answer
Network topology is the physical or logical arrangement of devices and links in a network. Types: bus, star, ring, mesh, tree and hybrid.
8. Explain types of networks (PAN, LAN, MAN and WAN) with examples and compare them.
Model answer
PAN: covers a few metres around a person; Bluetooth/USB; e.g. phone with earbuds and smartwatch. LAN: covers a room, building or campus; high speed (100 Mbps–10 Gbps), low error rate, privately owned; Ethernet/Wi-Fi; e.g. school computer lab, office network. MAN: covers a city (up to ~50 km); connects several LANs; e.g. city cable TV network, university campuses across a city. WAN: covers countries and continents; uses leased lines, fibre, microwave and satellites; slower, costly; e.g. the Internet, bank networks. Comparison: coverage PAN < LAN < MAN < WAN; speed is usually highest in LAN; cost and complexity increase from PAN to WAN; LANs are privately owned while WANs often use public/leased infrastructure.
9. What is a computer network? Give two advantages.
Model answer
A computer network is two or more computers and devices connected to share resources and communicate. Advantages: sharing of printers, files and Internet; fast communication through email and messaging (also centralised backup, reduced cost).
10. Differentiate between LAN and WAN.
Model answer
LAN covers a small area (room, building, campus), is privately owned, has high speed and low error rate and low cost (e.g. school lab). WAN covers a large geographical area (country/world), often uses public/leased lines and satellites, is slower, has higher error rate and cost (e.g. Internet, bank network).
11. Differentiate between a hub, switch and router.
Model answer
A hub connects devices and broadcasts data to all ports. A switch connects devices in a LAN and sends data only to the destination device using MAC addresses. A router connects different networks (LAN to Internet) and forwards packets along the best route using IP addresses.
This lesson ends with a quiz of 36 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: Week 10 Lab 10 – MS Excel: Interface, AutoFill, Formulas and Built-in Functions · Next: Week 11 Lab 11 – MS Excel: Relative, Absolute and Mixed Cell Addressing; Paste Special
All lessons in Application of ICT (GEN-103) – BS 1st Semester