Lesson
18 of 26
Translate

Computer Networks

Types of networks (PAN, LAN, MAN, WAN), topologies (Star, Bus, Ring, Mesh), network devices (Hub, Switch, Router), cables, and protocols for UPSSSC AGTA.

What is a Computer Network?

A computer network is a group of two or more computers connected together to share resources like files, printers, internet, and software. When you share a document between your laptop and phone via WiFi, you’re using a network.

Definition: A network is a collection of interconnected computers and devices that can communicate and share resources using a common set of rules (protocols).


flowchart LR
PAN["PAN<br/>~10m<br/>(Bluetooth)"] --> LAN["LAN<br/>Building<br/>(Ethernet/WiFi)"] --> MAN["MAN<br/>City<br/>(Cable TV)"] --> WAN["WAN<br/>Global<br/>(Internet)"]
Network Types by Coverage Area

Types of Networks by Size

Network TypeFull FormRangeExample
PANPersonal Area Network~10 metersBluetooth between phone and earbuds
LANLocal Area NetworkWithin a building/campusOffice network, school computer lab
MANMetropolitan Area NetworkWithin a cityCable TV network, city-wide WiFi
WANWide Area NetworkCountry or worldwideThe Internet itself

LAN Features

  • Covers a small area (single room, building, or campus)
  • High data transfer speed (100 Mbps to 10 Gbps)
  • Owned by a single organization
  • Uses Ethernet cables or WiFi
  • Standard PC hardware

WAN Features

  • Covers large geographical areas (country, continent, globe)
  • Lower speed than LAN (depends on connection)
  • Uses telephone lines, fiber optic, satellites
  • The Internet is the largest WAN in the world

Network Topologies

Topology is the physical or logical arrangement of computers in a network — how they are connected to each other.

Star Topology — all nodes connect to central hub:

flowchart TD
Hub((Hub/Switch))
PC1[PC 1] --- Hub
PC2[PC 2] --- Hub
PC3[PC 3] --- Hub
PC4[PC 4] --- Hub
Star Topology (Most Common)

Bus Topology — all nodes share one backbone cable:

flowchart LR
PC1[PC 1] --- Bus["═══ Backbone Cable ═══"]
PC2[PC 2] --- Bus
PC3[PC 3] --- Bus
Bus Topology

Ring Topology — each node connects to exactly two others:

flowchart LR
PC1[PC 1] --> PC2[PC 2]
PC2 --> PC3[PC 3]
PC3 --> PC4[PC 4]
PC4 --> PC1
Ring Topology

Mesh Topology — every node connects to every other node:

flowchart TD
A[PC 1] --- B[PC 2]
A --- C[PC 3]
A --- D[PC 4]
B --- C
B --- D
C --- D
Mesh Topology (Most Reliable)

Star Topology

  • All computers connect to a central hub or switch
  • If one computer fails, others continue working
  • If the central hub fails, entire network goes down
  • Most commonly used in offices and homes

Bus Topology

  • All computers connect to a single backbone cable (bus)
  • Data travels in both directions along the cable
  • Cheap and easy to install
  • If the main cable breaks, entire network fails
  • Older technology, rarely used today

Ring Topology

  • Each computer connects to exactly two others, forming a circle
  • Data travels in one direction around the ring
  • If one computer fails, the entire network may be disrupted
  • Used in some industrial settings

Mesh Topology

  • Every computer connects to every other computer
  • Highly reliable — if one connection fails, data takes another path
  • Expensive due to many cables
  • Used in military and critical systems

Tree (Hierarchical) Topology

  • Combination of star and bus topologies
  • Computers organized in a hierarchy like branches of a tree
  • Used in large organizations with departments

Network Devices

DeviceFunction
HubConnects multiple devices; sends data to ALL connected devices (not smart)
SwitchLike a smart hub — sends data only to the intended device (more efficient)
RouterConnects different networks (e.g., your home network to the internet); directs data using IP addresses
BridgeConnects two LANs and filters traffic between them
RepeaterAmplifies weak signals to extend network range
GatewayConnects two networks that use different protocols (e.g., LAN to Internet)
ModemModulator-Demodulator — converts digital signals to analog (and vice versa) for telephone line transmission

Key difference: Hub sends data to everyone (broadcast); Switch sends only to the destination (unicast). Switch is smarter and more efficient than Hub.

flowchart LR
subgraph "Your Home Network"
PC[Computer] --- Switch[Switch]
Phone[Phone] --- Switch
Switch --- Router[Router]
end
Router --- |"via ISP"| Internet((Internet))
Internet --- Server[Web Server]
How Devices Connect to the Internet

Transmission Media (Network Cables)

Wired Media

Cable TypeDescriptionSpeedUse
Twisted Pair (UTP)Pairs of copper wires twisted together10-1000 MbpsLAN, telephone
Coaxial CableCentral copper wire with insulation and shielding10-100 MbpsCable TV, older networks
Fiber OpticGlass/plastic fibers carrying light pulsesUp to 100 GbpsInternet backbone, high-speed connections
Fiber optic cable with light

Fiber optic cable — uses light pulses for ultra-fast data transfer (CC BY-SA, Wikimedia)

Fiber optic is the fastest — uses light instead of electricity. Immune to electromagnetic interference.

Wireless Media

TypeRangeUse
WiFi~100 metersHome/office internet
Bluetooth~10 metersShort-range device pairing
InfraredLine-of-sight, shortTV remotes
SatelliteGlobalGPS, satellite TV, remote areas
MicrowaveLine-of-sight, longPoint-to-point communication

Network Protocols — Quick Reference

A protocol is a set of rules that governs how data is transmitted between devices on a network. Key protocols used in networking:

ProtocolFull FormPurpose
TCP/IPTransmission Control Protocol / Internet ProtocolFoundation of the internet
DHCPDynamic Host Configuration ProtocolAuto-assigns IP addresses
DNSDomain Name SystemConverts domain names to IP addresses
ARPAddress Resolution ProtocolMaps IP address to MAC address
ICMPInternet Control Message ProtocolError reporting, ping command

For detailed coverage of HTTP, HTTPS, FTP, SMTP, OSI model, TCP vs UDP, and port numbers — see the Internet & Its Protocols lesson. For email protocols (SMTP, POP3, IMAP) — see the Email & Its Protocols lesson.


IP Address

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

VersionFormatExampleAddresses
IPv44 numbers (0-255) separated by dots192.168.1.1~4.3 billion
IPv68 groups of hex numbers separated by colons2001:0db8:85a3::8a2eVirtually unlimited

For IP classes (A-E), NAT, subnet masks, and IPv4 vs IPv6 in depth — see the Internet & Its Protocols lesson.

IPv4 addresses are running out globally, which is why IPv6 was introduced with a much larger address space.


Additional Network Types

Network TypeFull FormDescription
CANCampus Area NetworkConnects multiple LANs within a university campus or corporate campus — larger than LAN but smaller than MAN
SANStorage Area NetworkHigh-speed network dedicated to data storage devices (disk arrays, tape libraries) — used in data centers

Networking Standards (IEEE 802)

StandardNameDescription
IEEE 802.3EthernetWired LAN standard — defines how data is transmitted over cables
IEEE 802.11WiFiWireless LAN standard — 802.11a/b/g/n/ac/ax (WiFi 6)
IEEE 802.15Bluetooth / WPANWireless Personal Area Network — short-range communication

IEEE = Institute of Electrical and Electronics Engineers. The 802 family covers all LAN/MAN networking standards.


MAC Address

A MAC (Media Access Control) address is a 48-bit hardware address permanently assigned to each Network Interface Card (NIC).

  • Format: AA:BB:CC:DD:EE:FF (6 pairs of hexadecimal digits)
  • Unique to every network device in the world
  • Works at Layer 2 (Data Link) of OSI model
  • Also called physical address or hardware address
  • ARP protocol maps IP addresses to MAC addresses

IP address can change (dynamic via DHCP), but MAC address is permanent (burned into hardware). However, MAC spoofing is possible via software.


Client-Server vs Peer-to-Peer Architecture

FeatureClient-ServerPeer-to-Peer (P2P)
StructureCentral server serves client requestsAll computers are equal (no central server)
ControlCentralizedDecentralized
SecurityHigher (server manages security)Lower (each peer manages own security)
CostExpensive (server hardware)Cheap (no dedicated server)
ExamplesWebsite hosting, email servers, banking systemsBitTorrent, blockchain
ScalabilityEasily scalable with better serversDifficult to manage at large scale

Bandwidth Units

UnitFull FormValue
bpsBits per secondBase unit
KbpsKilobits per second1,000 bps
MbpsMegabits per second1,000 Kbps (home broadband)
GbpsGigabits per second1,000 Mbps (fiber optic)
TbpsTerabits per second1,000 Gbps (internet backbone)

Note: Internet speed is measured in bits per second (Mbps), while file sizes are in bytes (MB). 1 byte = 8 bits. So 100 Mbps speed downloads at ~12.5 MB/s.


Network Topology Comparison

TopologyReliabilityCostScalabilityCable Failure Impact
StarGood (single node failure OK)ModerateEasy to add nodesHub failure = total failure
BusLowCheapDifficultMain cable break = total failure
RingLowModerateDifficultSingle break can disrupt entire ring
MeshHighestMost expensiveDifficultMultiple paths — no single point of failure
TreeModerateModerateGood for hierarchiesBackbone failure = segment failure

LoRaWAN & Bluetooth Versions

LoRaWAN (Long Range Wide Area Network)

  • Designed for IoT (Internet of Things) devices
  • Low power consumption — battery can last years
  • Long range — up to 15 km in rural areas
  • Low data rate (suitable for sensors, not video)
  • Used in smart agriculture, smart cities, industrial monitoring

Bluetooth Versions

VersionKey Feature
Bluetooth 4.0Introduced BLE (Bluetooth Low Energy) — used in fitness trackers, IoT
Bluetooth 5.02x speed, 4x range compared to 4.2 — better for smart home
Bluetooth 5.3Latest version — improved energy efficiency, better connection quality

Key Takeaways

  • Network = computers connected to share resources; Internet = world’s largest WAN
  • LAN (building), MAN (city), WAN (country/global), PAN (personal ~10m)
  • CAN (Campus Area Network) = multiple LANs in a campus; SAN (Storage Area Network) = dedicated storage network
  • Topologies: Star (most common), Bus (old), Ring, Mesh (most reliable, most expensive), Tree (hierarchy)
  • Hub broadcasts to all; Switch sends to specific device (smart); Router connects different networks
  • Fiber optic is fastest (uses light, up to 100 Gbps); Twisted pair (UTP) is most common for LAN
  • IEEE 802.3 = Ethernet (wired LAN); IEEE 802.11 = WiFi (wireless LAN); IEEE 802.15 = Bluetooth/WPAN
  • MAC address: 48-bit hardware address (AA:BB:CC:DD:EE:FF), permanent, Layer 2, mapped by ARP
  • Client-Server = centralized (web hosting, banking); P2P = decentralized (BitTorrent, blockchain)
  • Bandwidth: bps → Kbps → Mbps → Gbps → Tbps; Internet speed in bits, file size in bytes (1 byte = 8 bits)
  • LoRaWAN: IoT, low power (years on battery), long range (up to 15 km), low data rate
  • Bluetooth 5.3 = latest version; BLE introduced in 4.0; 5.0 = 2x speed, 4x range
  • IPv4 (32-bit, 4.3B addresses, running out); IPv6 (128-bit, unlimited)
  • TCP/IP is the foundation protocol of the internet

Summary Cheat Sheet

ConceptKey Details
LANLocal — within building, fast (Ethernet/WiFi)
WANWide — country/global, Internet is biggest WAN
MANMetropolitan — within a city
PANPersonal — ~10m, Bluetooth
CANCampus Area Network — multiple LANs within university/corporate campus
SANStorage Area Network — high-speed dedicated storage network (data centers)
Star TopologyAll connect to central hub — most common
Bus TopologySingle backbone cable — cheap, old, single point of failure
Ring TopologyCircle — one node fails can disrupt ring
Mesh TopologyAll connect to all — most reliable, most expensive
Tree TopologyStar + Bus combo — hierarchical, large organizations
HubBroadcasts to all (dumb) — Layer 1
SwitchSends to specific device (smart) — Layer 2
RouterConnects different networks, uses IP — Layer 3
BridgeConnects two LANs, filters traffic
RepeaterAmplifies weak signals to extend range
ModemModulator-Demodulator — analog to digital conversion
GatewayConnects networks with different protocols
Fiber OpticFastest cable — uses light, up to 100 Gbps, immune to EMI
Twisted Pair (UTP)Common LAN cable, copper, 10-1000 Mbps
Coaxial CableCentral copper wire, shielded — Cable TV, older networks
WiFi~100m range, home/office
Bluetooth~10m, short-range device pairing
SatelliteGlobal — GPS, remote areas
IEEE 802.3Ethernet — wired LAN standard
IEEE 802.11WiFi — wireless LAN (a/b/g/n/ac/ax = WiFi 6)
IEEE 802.15Bluetooth / WPAN — short-range wireless
MAC Address48-bit hardware address — AA:BB:CC:DD:EE:FF — permanent, Layer 2
ARPMaps IP address → MAC address
Client-ServerCentralized — server serves clients (websites, banking)
P2P (Peer-to-Peer)Decentralized — all equal (BitTorrent, blockchain)
bpsBits per second — base bandwidth unit
MbpsMegabits/sec — home broadband speed
GbpsGigabits/sec — fiber optic speed
TbpsTerabits/sec — internet backbone
Speed vs SizeInternet speed in bits (Mbps); files in bytes (MB); 1 byte = 8 bits
LoRaWANIoTlow power (years on battery), up to 15 km range, low data rate
Bluetooth 4.0Introduced BLE (Bluetooth Low Energy) — fitness trackers, IoT
Bluetooth 5.02x speed, 4x range vs 4.2 — smart home
Bluetooth 5.3Latest version — improved energy efficiency
TCP/IPFoundation protocol of Internet
DHCPAuto-assigns IP addresses
DNSDomain name → IP address
ICMPError reporting, ping command
IPv432-bit, ~4.3 billion addresses (running out)
IPv6128-bit, virtually unlimited

Knowledge Check

Take a dynamically generated quiz based on the material you just read to test your understanding and get personalized feedback.

Lesson Doubts

Ask questions, get expert answers

Lesson Doubts is a Pro feature.Upgrade