Network and Data CommunicationsUnit 113 min read
Data Comm & Networking Fundamentals
Unit 1 of Network and Data Communications: Explores core concepts like data communication basics, network types, models (OSI vs. TCP/IP), and real-world applications in Nepal’s digital ecosystem (eSewa, NTC, Daraz).
TAKEAWAYS:
- Data communication is the transfer of digital information between devices via shared media (wired/wireless).
- Networks are classified by scope (PAN, LAN, MAN, WAN), topology (bus, star, mesh), and ownership (public/private).
- The OSI model (7 layers) and TCP/IP model (4 layers) standardize how networks function, with each layer handling specific tasks.
- Communication modes (simplex, half-duplex, full-duplex) and transmission types (serial/parallel) define efficiency and speed.
- Noise (electrical interference) and attenuation (signal loss) degrade data integrity, requiring error control.
- Real-world examples: eSewa’s transaction security (OSI layers), NTC’s fiber-optic WAN (physical layer), Pathao’s ride-sharing app (client-server model).
1. Data Communication Basics
Data communication is the electronic transfer of data between two or more devices over a shared medium (cables, radio waves, fiber optics). It involves:
- Sender: Originates data (e.g., your laptop sending a WhatsApp message).
- Receiver: Destination (e.g., a friend’s phone).
- Medium: Physical path (copper wire, Wi-Fi, satellite link).
- Protocol: Rules for transmission (e.g., HTTP for web pages).
Key Terms:
- Bandwidth: Data-carrying capacity of a medium (measured in bits per second, e.g., 10 Mbps).
- Latency: Delay between sending and receiving data (critical for Pathao’s real-time ride updates).
- Throughput: Actual data delivered successfully (affected by noise, collisions).
1.1 Communication Modes
| Mode | Description | Example Use Case |
|---|---|---|
| Simplex | One-way communication (no feedback). | TV broadcasting, keyboard input. |
| Half-duplex | Two-way but not simultaneously (e.g., walkie-talkies). | CB radios, some old VoIP systems. |
| Full-duplex | Two-way simultaneous (e.g., phone calls). | WhatsApp calls, video conferencing. |
Visual:
1.2 Transmission Types
- Serial Transmission: Bits sent one after another (e.g., USB, Ethernet).
- Advantage: Uses fewer wires.
- Disadvantage: Slower for bulk data.
- Parallel Transmission: Multiple bits sent simultaneously (e.g., old IDE hard drives).
- Advantage: Faster for short distances.
- Disadvantage: Requires more wires (prone to noise).
2. Network Classification
Networks are categorized by scope, topology, and ownership:
2.1 By Scope
| Scope | Description | Example in Nepal |
|---|---|---|
| PAN | Personal Area Network (e.g., Bluetooth headset). | Connecting your phone to wireless earbuds. |
| LAN | Local Area Network (e.g., home Wi-Fi, office network). | Students sharing files in a college lab. |
| MAN | Metropolitan Area Network (covers a city). | NTC’s fiber network in Kathmandu. |
| WAN | Wide Area Network (global, e.g., internet). | Daraz’s servers connecting to Ncell towers. |
2.2 By Topology
Topology defines how devices are physically/logically connected.
Comparison Table:
| Topology | Advantages | Disadvantages | Example Use Case |
|---|---|---|---|
| Bus | Simple, low-cost cabling. | Single point of failure (bus crash). | Old Ethernet networks. |
| Star | Easy to add devices, centralized control. | Dependent on hub/switch. | Modern offices, NTC’s base stations. |
| Mesh | High redundancy, fault-tolerant. | Expensive, complex setup. | Military networks, IoT sensors. |
2.3 By Ownership
- Public Network: Open to all (e.g., Nepal’s internet via Ncell/NTC).
- Private Network: Restricted (e.g., bank’s internal LAN).
- Hybrid Network: Combines public/private (e.g., VPN for remote banking).
3. Network Models
Two foundational models standardize network functions:
3.1 OSI Model (7 Layers)
The Open Systems Interconnection (OSI) model divides networking into 7 layers for modularity and troubleshooting.
Each Layer’s Role:
| Layer | Function | Example Protocol |
|---|---|---|
| Application | User interface (e.g., web browsers, apps). | HTTP, FTP, SMTP |
| Presentation | Data translation, encryption (e.g., JPEG compression). | SSL, TLS |
| Session | Manages connections (e.g., keeps a call alive). | NetBIOS, RPC |
| Transport | Ensures end-to-end delivery (TCP/UDP). | TCP, UDP |
| Network | Logical addressing (IP routing). | IP, ICMP |
| Data Link | Framing, MAC addressing, error detection. | Ethernet, PPP |
| Physical | Raw bit transmission (cables, signals). | USB, Ethernet cables |
Why OSI Matters:
- Helps debug issues (e.g., if a connection fails at Layer 3, it’s a routing problem).
- Used in Nepal’s NTC network to manage signal transmission (Physical) and IP routing (Network).
3.2 TCP/IP Model (4 Layers)
A simplified version of OSI, used by the internet.
Mapping OSI to TCP/IP:
| TCP/IP Layer | OSI Layers Combined |
|---|---|
| Application | Application, Presentation, Session |
| Transport | Transport |
| Internet | Network |
| Network Access | Data Link + Physical |
Real-World Tie:
- When you open eSewa, your phone uses TCP/IP’s Application layer (HTTP) to talk to eSewa’s servers.
- NTC’s fiber-optic cables handle the Network Access layer (Physical + Data Link).
4. Noise and Attenuation
Two major threats to data integrity:
4.1 Noise
Electrical interference that corrupts signals:
- Thermal noise: Random electron movement (always present).
- Crosstalk: Signals from adjacent wires interfere (common in copper cables).
- Impulse noise: Sudden spikes (e.g., lightning strikes).
Impact:
- Causes bit errors (e.g., a "1" becomes a "0").
- Solutions: Error detection/correction (e.g., checksums, parity bits).
4.2 Attenuation
Signal weakening over distance:
- Solution: Repeaters (amplify signals) or fiber optics (less attenuation than copper).
- Example: NTC’s fiber-optic cables reduce attenuation compared to old copper lines.
5. Pure and Slotted ALOHA (Exam Focus)
ALOHA is a random access protocol for shared channels (used in early satellite networks).
5.1 Pure ALOHA
- Stations transmit whenever they have data.
- Collision probability is high (no coordination).
- Throughput formula: where .
Worked Example: A pure ALOHA network has a 50 kbps channel and transmits 200-bit frames at 1000 frames/sec. Find throughput.
- Calculate :
- Plug into throughput formula: S = \frac{4 e^{-8}}{1 + 4} \approx 0.0003 \text{ (30% efficiency!)}. Interpretation: Only 30% of attempts succeed due to collisions.
5.2 Slotted ALOHA
- Time divided into fixed slots.
- Stations transmit only at slot boundaries.
- Throughput doubles compared to Pure ALOHA (same , but collisions are less frequent).
Comparison:
| Feature | Pure ALOHA | Slotted ALOHA |
|---|---|---|
| Transmission | Anytime | Only at slot edges |
| Throughput | Low (30% max) | Higher (~18% max) |
| Collision | High (any time) | Reduced (aligned slots) |
Why It Matters:
- Used in early satellite networks (e.g., NASA’s ALOHAnet in Hawaii).
- Modern Wi-Fi uses CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) instead.
6. Reliable Protocols (Short Note)
A reliable protocol ensures error-free, in-order delivery of data. Examples:
- TCP (Transmission Control Protocol):
- Uses acknowledgments (ACKs), retries, and sequence numbers.
- Example: Downloading a file from Daraz (data arrives intact).
- Stop-and-Wait ARQ:
- Sender waits for ACK before sending next frame.
- Simple but inefficient for high-speed links.
7. Satellite Networks (Short Note)
Satellites relay signals between ground stations (e.g., Nepal’s communication with international networks).
Key Features:
- Geostationary satellites: Orbit at 35,786 km (e.g., Inmarsat for global coverage).
- Latency: ~250 ms (high, so not ideal for real-time apps like Pathao).
- Applications:
- Broadcast TV (e.g., Nepal TV).
- Internet connectivity in remote areas (e.g., Dolpa’s internet via satellite).
In the Real World
eSewa’s Transaction Security:
- Uses the OSI model’s lower layers (Physical: secure cables, Data Link: MAC filtering) to prevent fraud.
- Application layer (HTTPS) encrypts payment data.
NTC’s Fiber-Optic WAN:
- Physical layer: Fiber cables carry data with low attenuation.
- Network layer: IP routing directs calls across Nepal’s cities.
Daraz’s Order Queue:
- Transport layer (TCP): Ensures order data arrives in order.
- Application layer: Uses APIs to update your order status in real time.
Exam Tip
- Focus on definitions: Know the difference between bandwidth, throughput, and latency.
- Calculate ALOHA throughput: Memorize the formula and practice plugging in numbers.
- Compare OSI vs. TCP/IP: Draw the layers and map them (e.g., "TCP/IP’s Internet layer = OSI’s Network layer").
- Real-world links: Always tie concepts to Nepal (e.g., "NTC uses star topology in its base stations").
- Short notes: For reliable protocols and satellite networks, list one example (e.g., "TCP for Daraz downloads") and one limitation (e.g., "satellite latency is high").
Key Formula to Remember: For Pure ALOHA throughput: where .
Based on the TU BIT syllabus for Network and Data Communications (BIT254), unit 1.
Discussion
Loading…