Network and Data CommunicationsUnit 1310 min read
Packet Switching & Wireless Networks: Techniques, Protocols & Real-World Use
Unit 13 of Network and Data Communications explores packet switching (circuit vs. packet switching, ALOHA protocols, phases of packet switching) and wireless networks (satellite, cellular, Wi-Fi, Bluetooth, and their topologies). Learn how data is routed efficiently, how collisions are managed, and how wireless technol
TAKEAWAYS:
- Packet switching divides data into packets for efficient routing, unlike circuit switching’s dedicated paths.
- ALOHA protocols (pure/slotted) manage collisions in wireless networks, with throughput calculated via frame length, bandwidth, and frame arrival rate.
- Wireless networks (satellite, cellular, Wi-Fi) use different topologies (star, mesh) and access methods (FDMA, TDMA, CDMA).
- Packet switching phases include fragmentation, routing, queuing, and reassembly, each critical for reliable data delivery.
- Wireless networks face unique challenges like interference, latency, and bandwidth limitations, addressed via modulation and error control.
- Real-world applications include eSewa’s secure packet routing, Ncell’s cellular TDMA, and Daraz’s load-balanced servers.
1. Packet Switching: The Backbone of Modern Networks
Packet switching is a store-and-forward technique where data is divided into small units called packets, each containing:
- Header (source/destination, sequence number, error-checking bits).
- Payload (actual data).
- Trailer (optional error-checking bits like CRC).
How Packet Switching Works
- Fragmentation: Large data is split into packets (e.g., a 2000-byte file → 5 packets of 400 bytes each).
- Routing: Packets take independent paths (unlike circuit switching’s fixed path).
- Queuing: Packets wait in buffers at routers/switches (FIFO or priority-based).
- Reassembly: Packets are reassembled at the destination using sequence numbers.
stateDiagram-v2
[*] --> Fragmentation: Data Split
Fragmentation --> Routing: Independent Paths
Routing --> Queuing: Buffers at Nodes
Queuing --> Reassembly: Sequence Check
Reassembly --> [*]Packet Switching vs. Circuit Switching
| Feature | Packet Switching | Circuit Switching |
|---|---|---|
| Path | Dynamic (shared) | Dedicated (fixed) |
| Efficiency | High (shared bandwidth) | Low (idle time if no data) |
| Delay | Variable (queuing delays) | Fixed (setup delay) |
| Error Handling | Per-packet retransmission | Entire call dropped if error occurs |
| Examples | Internet, eSewa transactions | Traditional phone calls, NTC landlines |
2. ALOHA Protocols: Managing Collisions in Wireless Networks
ALOHA protocols are contention-based methods for wireless networks where multiple devices share the same channel. Collisions occur when two devices transmit simultaneously.
Types of ALOHA
Pure ALOHA
- Devices transmit whenever ready.
- Throughput (S) formula: where .
Slotted ALOHA
- Time is divided into slots (equal to frame transmission time).
- Devices transmit only at slot boundaries, reducing collisions by 50%.
Worked Example: Pure ALOHA Throughput Calculation
Problem: A pure ALOHA network transmits 200-bit frames on a 200-kbps channel. If 1000 frames/sec are generated, what is the throughput? Solution:
- Calculate :
- Throughput : S = 1 \cdot e^{-2 \times 1} = 0.135 \text{ (or 13.5%)} Interpretation: Only 13.5% of channel capacity is used due to collisions.
3. Wireless Network Technologies
Wireless networks use electromagnetic waves (radio, microwave, infrared) and are classified by:
- Range: Personal Area Network (PAN), Local Area Network (LAN), Wide Area Network (WAN).
- Topology: Star (Wi-Fi), Mesh (ad-hoc networks), Point-to-Point (satellite links).
- Access Method: FDMA, TDMA, CDMA (used in cellular networks).
Key Wireless Technologies
| Technology | Frequency Band | Access Method | Example Applications |
|---|---|---|---|
| Wi-Fi | 2.4 GHz, 5 GHz | CSMA/CA | Home networks, eSewa transactions |
| Bluetooth | 2.4 GHz | TDMA | Smartphone peripherals, headsets |
| Cellular (4G/5G) | 700 MHz–3.5 GHz | FDMA/TDMA/CDMA | Ncell, NTC mobile data |
| Satellite | Microwave (1–10 GHz) | FDMA | VSAT for rural connectivity, NEPSE data |
Satellite Networks
- Geostationary (GEO): Fixed orbit (36,000 km), high latency (~270 ms).
- Low Earth Orbit (LEO): Low latency (~10 ms), used by Starlink.
- Applications:
- Nepal: NTC’s satellite links for rural internet.
- Global: GPS (navigation), TV broadcasting.
4. Medium Access Control (MAC) in Wireless Networks
MAC protocols regulate how devices share the wireless medium:
CSMA (Carrier Sense Multiple Access)
- Devices listen before transmitting (reduces collisions).
- CSMA/CD (used in Ethernet): Stops transmitting if collision detected.
- CSMA/CA (used in Wi-Fi): Uses ACK/NACK to confirm reception.
FDMA (Frequency Division)
- Divides bandwidth into frequencies (e.g., FM radio).
- Used in 2G cellular networks.
TDMA (Time Division)
- Divides time into slots (e.g., GSM in 2G/3G).
- Example: Ncell’s TDMA for voice calls.
CDMA (Code Division)
- Uses unique codes for simultaneous transmission (e.g., 4G LTE).
- Advantage: Higher capacity, used by NTC’s 4G.
sequenceDiagram
participant Device1
participant Device2
participant Channel
Device1->>Channel: Sense idle
Device2->>Channel: Sense idle
Device1->>Channel: Transmit (collision)
Device2->>Channel: Collision detected
Device1->>Channel: Backoff (random delay)
Device2->>Channel: Retransmit5. Challenges in Wireless Networks
| Challenge | Cause | Solution |
|---|---|---|
| Interference | Other devices, noise | Spread spectrum (Wi-Fi), CDMA |
| Latency | Distance (satellite), queuing | LEO satellites, QoS prioritization |
| Bandwidth | Limited spectrum | OFDM (4G/5G), channel bonding (Wi-Fi) |
| Mobility | Device movement | Handover protocols (cellular networks) |
In the Real World
eSewa’s Packet Switching
- When you pay a bill via eSewa, your transaction data is split into packets, routed dynamically, and reassembled at the bank’s server. Packet switching ensures efficiency even during peak hours (e.g., Dashain).
Ncell’s TDMA in 2G/3G
- Ncell divides its 2G bandwidth into time slots (TDMA) to allow multiple calls simultaneously. If you’re on a call while someone else texts, TDMA ensures both work without interference.
Daraz’s Load Balancing
- Daraz’s servers use packet switching to distribute orders across multiple data centers. During sales (e.g., Dashain), packets take the fastest route, reducing delays.
Satellite Internet in Rural Nepal
- NTC’s VSAT (Very Small Aperture Terminal) uses geostationary satellites to provide internet in remote areas like Dolpa. The high latency (~270 ms) is a trade-off for connectivity where fiber isn’t feasible.
Wi-Fi Collisions in Kathmandu Traffic
- In crowded areas like Thamel, multiple Wi-Fi routers (hotels, cafes) use CSMA/CA. If two devices transmit at once, collisions occur, and the protocol forces a random backoff, slowing speeds during peak hours (5–8 PM).
Exam Tip
Throughput Calculations
- Memorize the Pure ALOHA and Slotted ALOHA throughput formulas:
- Always convert units (frames/sec → bits/sec) before plugging into .
Packet Switching Phases
- Exams often ask for steps in packet switching. Use the acronym FRQR:
- Fragmentation → Routing → Queuing → Reassembly.
- Exams often ask for steps in packet switching. Use the acronym FRQR:
Wireless Topologies
- Draw star (Wi-Fi), mesh (ad-hoc), and point-to-point (satellite) topologies. Label access points, nodes, and collisions.
ALOHA vs. CSMA
- ALOHA: No listening before transmit (high collisions).
- CSMA/CA: Listens before transmit (used in Wi-Fi).
Real-World Applications
- Link eSewa (packet switching), Ncell (TDMA), and Daraz (load balancing) to theoretical concepts. Examiners love Nepali examples!
Short Notes
- For questions like "Explain satellite networks", structure your answer as:
- Types (GEO, LEO, MEO).
- Applications (NTC, GPS, TV).
- Challenges (latency, cost).
- For questions like "Explain satellite networks", structure your answer as:
Practice Questions (Based on Past Exams)
- A slotted ALOHA network has a 1 Mbps channel and transmits 1000-bit frames. If 500 frames/sec are generated, calculate the throughput. (Hint: First find )
- Differentiate between CSMA/CD (Ethernet) and CSMA/CA (Wi-Fi) with a table.
- Explain how packet switching reduces the cost of long-distance communication compared to circuit switching. (Use eSewa as an example.)
- Draw a mermaid sequence diagram for a successful Wi-Fi transmission using CSMA/CA.
- Why is LEO satellite preferred for low-latency applications like online gaming, while GEO satellites are used for TV broadcasting? (Hint: Latency vs. coverage.)
Key Formulas to Remember
| Concept | Formula |
|---|---|
| Pure ALOHA Throughput | |
| Slotted ALOHA Throughput | |
| Calculation | |
| Propagation Delay | |
| Throughput (General) |
Final Visual Summary
mindmap
root((Packet Switching & Wireless Networks))
Packet Switching
Fragmentation
Routing (Independent Paths)
Queuing (Buffers)
Reassembly (Sequence Numbers)
ALOHA Protocols
Pure ALOHA (High Collision)
Slotted ALOHA (Slotted Time)
Wireless Technologies
Wi-Fi (CSMA/CA)
Cellular (FDMA/TDMA/CDMA)
Satellite (GEO/LEO)
Challenges
Interference
Latency
Bandwidth Limitations
Real-World Examples
eSewa (Packet Switching)
Ncell (TDMA)
Daraz (Load Balancing)Based on the TU BIT syllabus for Network and Data Communications (BIT254), unit 13.
Discussion
Loading…