BIT254 Network and Data Communications

Network and Data CommunicationsUnit 211 min read

Network Topologies & Physical Layer: Wiring, Signals & Layouts

Unit 2 of Network and Data Communications explores how devices connect physically (topologies) and how signals travel (physical layer), covering cabling, transmission modes, and real-world trade-offs in speed, cost, and reliability.

TAKEAWAYS:

  • Topologies define how devices connect (bus, star, ring, mesh) and directly impact network performance, fault tolerance, and scalability.
  • Physical layer handles raw bits—signals (digital/analog), modulation (AM/FM), and transmission media (twisted pair, fiber, wireless) determine speed and distance limits.
  • Signal degradation (attenuation, noise) requires repeaters, amplifiers, or better cabling to maintain data integrity over long distances.
  • Half-duplex vs. full-duplex trade-offs appear in walkie-talkies (half) vs. phone calls (full), with implications for collision domains and throughput.
  • Real-world networks mix topologies (e.g., ISPs use mesh backbones, offices use star topologies with switches, and Wi-Fi uses ad-hoc mesh for hotspots).
  • Exam focus: Calculate throughput for ALOHA networks, differentiate attenuation/noise, and match topologies to scenarios (e.g., "Why use a ring topology for NTC’s fiber backbone?").

1. Network Topologies: How Devices Connect

Topologies describe the physical or logical arrangement of devices in a network. They influence:

  • Cost (cabling, hardware),
  • Scalability (adding new devices),
  • Fault tolerance (single-point failures),
  • Performance (collisions, latency).

Key Topologies

graph TD
    A["Bus Topology"] --> B["All devices share a single cable"]
    A --> C["Cheap to install"]
    A --> D["Single failure point (cable break = network down)"]
    A --> E["Example: Old Ethernet 10BASE5"]

    F["Star Topology"] --> G["Central hub/switch connects all devices"]
    F --> H["Easy to add/remove devices"]
    F --> I["Single failure point (hub/switch)"]
    F --> J["Example: Home Wi-Fi router, office LANs"]

    K["Ring Topology"] --> L["Devices connected in a closed loop"]
    K --> M["Token-passing reduces collisions"]
    K --> N["Faulty node can disrupt entire network"]
    K --> O["Example: FDDI (Fiber Distributed Data Interface), NTC’s fiber backbone"]

    P["Mesh Topology"] --> Q["Every device connected to every other"]
    P --> R["High redundancy, no single failure point"]
    P --> S["Expensive (n(n-1)/2 links for n devices)"]
    P --> T["Example: ISP backbones, military networks"]

Comparison Table

Topology Cabling Cost Scalability Fault Tolerance Collision Domain Real-World Use Case
Bus Low Poor Very Low Entire network Old Ethernet (10BASE5)
Star Medium Good Low (hub failure) Per device Home Wi-Fi, office LANs
Ring Medium Medium Medium Token-controlled NTC’s fiber backbone, FDDI
Mesh Very High Excellent Very High None ISP backbones, military nets

2. Physical Layer: The Foundation of Data Transmission

The physical layer defines:

  • Transmission media (how bits travel: copper, fiber, air),
  • Signal types (digital vs. analog),
  • Modulation (encoding bits onto signals),
  • Topologies (how media is arranged).

Transmission Media

pie
    title Transmission Media Types
    "Twisted Pair (UTP/STP)" : 40
    "Coaxial Cable" : 20
    "Fiber Optic" : 30
    "Wireless (Radio/Microwave)" : 10
Medium Speed Distance Limit Noise Immunity Cost Use Case
Twisted Pair (UTP/STP) 10 Mbps–10 Gbps 100m (UTP), 150m (STP) Low (UTP) Low Ethernet (Cat5e, Cat6), phones
Coaxial 10 Mbps–1 Gbps 500m (thinnet), 2.5 km (thicknet) Medium Medium Cable TV, old Ethernet (10BASE2)
Fiber Optic 10 Mbps–100 Tbps 2 km (multi-mode), 100+ km (single-mode) Very High High ISP backbones, NTC, Ncell core
Wireless 1 Mbps–10 Gbps Line-of-sight (microwave), 100m (Wi-Fi) Low Medium Wi-Fi, Bluetooth, satellite

3. Signal Types and Modulation

Digital vs. Analog Signals

  • Digital: Discrete values (0s and 1s), less prone to noise, used in Ethernet, fiber.
  • Analog: Continuous waves, susceptible to noise, used in phone lines, radio.

Modulation Techniques

Modulation encodes digital data onto analog signals for transmission over media like copper or air.

Technique Description Example Use Case
AM (Amplitude Modulation) Vary signal amplitude Old radio broadcasts
FM (Frequency Modulation) Vary signal frequency FM radio, Wi-Fi (OFDM)
PM (Phase Modulation) Vary signal phase Fiber optics, DSL
ASK (Amplitude Shift Keying) Two amplitudes for 0/1 Early wireless networks
FSK (Frequency Shift Keying) Two frequencies for 0/1 Bluetooth, modems
PSK (Phase Shift Keying) Phase shifts for bits Wi-Fi (64-QAM), LTE

4. Signal Degradation: Attenuation and Noise

Attenuation

  • Definition: Loss of signal strength over distance (e.g., a whisper fading down a hallway).
  • Causes: Resistance in copper, absorption in fiber, free-space loss in wireless.
  • Solution: Use repeaters (regenerate signals), amplifiers (boost signals), or better media (fiber > copper).

Noise

  • Definition: Unwanted signals that distort data (e.g., static on a phone line).
  • Types:
    • White noise: Random (e.g., thermal noise in cables).
    • Impulse noise: Sudden spikes (e.g., lightning).
    • Crosstalk: Interference between adjacent cables.
  • Solution: Shielding (STP cables), error correction (CRC), or better SNR (signal-to-noise ratio).

Comparison: Attenuation vs. Noise

Feature Attenuation Noise
Cause Distance, media loss External interference
Effect Signal weakens uniformly Random corruption
Fix Repeaters, amplifiers Shielding, error control
Example Fiber signal fading Microwave interference

5. Transmission Modes: Simplex, Half-Duplex, Full-Duplex

stateDiagram-v2
    [*] --> Simplex
    Simplex --> ["One-way communication"] --> TV Broadcast
    Simplex --> [*]

    [*] --> HalfDuplex
    HalfDuplex --> ["Two-way, but not simultaneous"] --> Walkie-Talkie
    HalfDuplex --> [*]

    [*] --> FullDuplex
    FullDuplex --> ["Two-way, simultaneous"] --> Phone Call
    FullDuplex --> [*]

Real-World Examples:

  • Simplex: TV broadcast (station → viewer), keyboard input (keyboard → CPU).
  • Half-Duplex: Walkie-talkies (press-to-talk), old Ethernet (CSMA/CD).
  • Full-Duplex: Phone calls, Ethernet with switches, fiber optic links.

6. Worked Example: Throughput in ALOHA Networks

Problem: A pure ALOHA network transmits 200-bit frames on a 200-kbps channel. If 1000 frames are generated per second, calculate the throughput. Define "vulnerable time."

Solution Steps

  1. Calculate frame transmission time:

  2. Vulnerable time:

    • In pure ALOHA, a frame’s vulnerable period is twice its transmission time (since collisions can occur if another frame arrives during the sender’s transmission or the next slot).
  3. Throughput formula: Where:

    • = offered load (frames/second × frame time) = .
    • = throughput (successful transmissions/second).
  4. Calculate :

    • Throughput = .

Exam Tip: Always define vulnerable time and use the correct formula for pure/slotted ALOHA.


7. Practical Implications: Topologies and Physical Layer in Nepal

In the Real World

  1. eSewa/Khalti (Digital Payments)

    • Topology: Star topology (central servers connect to banks and users via switches/routers).
    • Physical Layer: Fiber optic cables (low latency, high security) for core transactions; copper for last-mile connections.
    • Signal: Digital (encrypted packets over TCP/IP).
  2. NTC’s Fiber Backbone

    • Topology: Ring topology (fault tolerance; if one fiber fails, traffic reroutes).
    • Physical Layer: Single-mode fiber (long-distance, low attenuation).
    • Modulation: DWDM (Dense Wavelength Division Multiplexing) to carry multiple signals on one fiber.
  3. Pathao/Daraz Delivery Routes

    • Topology: Mesh-like (drivers communicate via mobile networks; central servers route orders).
    • Physical Layer: 4G/5G wireless (microwave towers for backhaul; Wi-Fi for last-mile).
    • Transmission Mode: Full-duplex (real-time GPS updates and order confirmations).
  4. Nepal Rastra Bank (NRB) ATM Network

    • Topology: Star (central bank server connects to ATMs via leased lines).
    • Physical Layer: Dedicated fiber or microwave links (secure, low-latency).
    • Signal: Digital (encrypted ATM transactions over VPNs).

8. Exam Tip: How to Score Full Marks

  1. For topology questions:

    • Draw the topology and label components (e.g., "hub in star topology").
    • Compare two topologies in a table (cost, scalability, fault tolerance).
    • Example: "Why does NTC use a ring topology?" → Answer: Fault tolerance, token passing reduces collisions.
  2. For physical layer calculations:

    • Always define terms like attenuation, noise, and vulnerable time.
    • Show step-by-step formulas (e.g., ALOHA throughput).
    • Example: "A coaxial cable has 3 dB attenuation per km. What’s the max distance for a 10 Mbps signal?" → Use attenuation formula and solve.
  3. For real-world applications:

    • Link concepts to Nepali examples (e.g., "Ncell uses mesh backhaul for 4G towers").
    • Explain trade-offs (e.g., "Fiber is expensive but immune to noise").
  4. Common pitfalls:

    • Confusing attenuation vs. noise: Attenuation is distance-based; noise is interference.
    • ALOHA vulnerable time: Pure ALOHA = , slotted ALOHA = .
    • Topology misapplication: Mesh is expensive but fault-tolerant; bus is cheap but fails entirely if the backbone breaks.

9. Summary Checklist

Before the exam, ensure you can:

  • Differentiate bus, star, ring, mesh topologies with pros/cons.
  • Calculate throughput for pure/slotted ALOHA given frame size, bandwidth, and arrival rate.
  • Explain attenuation vs. noise and their solutions (repeaters, shielding).
  • Match media (copper/fiber/wireless) to use cases (e.g., "Why use fiber for NTC?").
  • Describe modulation techniques (AM, FM, PSK) and their applications.
  • Apply simplex/half/full-duplex to real scenarios (e.g., "Why is a phone call full-duplex?").

Based on the TU BIT syllabus for Network and Data Communications (BIT254), unit 2.

Discussion

Loading…