CAEN103 English I

English IUnit 412 min read

Computer Networks & Online Services: Types, Tech & Real-World Impact

Unit 4 of English I explores how computers connect globally via networks, the tech behind online services, and their real-world applications in Nepal and beyond—from eSewa transactions to Daraz logistics.

TAKEAWAYS

  • Learn how local area networks (LANs), wide area networks (WANs), and internet protocols enable real-time communication (e.g., WhatsApp, Pathao).
  • Understand network topologies (star, bus, mesh) and their trade-offs, using Nepal’s NTC/Ncell towers as examples.
  • Discover how data transmission (packets, bandwidth) powers apps like YouTube and NEPSE stock trading.
  • Analyze online services (cloud computing, e-commerce) through case studies like Daraz’s inventory systems.
  • Compare wired vs. wireless tech (Ethernet, Wi-Fi) and their roles in offices and homes.
  • Critique security risks (hacking, phishing) with real examples from eSewa breaches.

Unit 4: Computer Networks and Online Services

sequenceDiagram participant Phone as User's Phone participant NTC_Router as NTC Router participant eSewa_Server as eSewa Server participant Bank_Server as Bank Server

Phone->>NTC_Router: Encrypted Payment Request (HTTPS)
NTC_Router->>eSewa_Server: Packet via TCP/IP (WAN)
eSewa_Server->>Bank_Server: Authentication Check (IP routing)
Bank_Server-->>eSewa_Server: Approval/Rejection (TCP)
eSewa_Server-->>NTC_Router: Response Packet
NTC_Router-->>Phone: Transaction Status (Decrypted)

1. Introduction to Computer Networks

A computer network is a system where multiple devices (computers, phones, servers) share resources (data, printers) via communication protocols. Networks range from small office setups to the global internet, which connects billions of users.

How Networks Work

  • Nodes: Devices (e.g., laptops, routers) connected to the network.
  • Media: Physical links (cables, fiber optics) or wireless signals (Wi-Fi, Bluetooth).
  • Protocols: Rules (e.g., TCP/IP) governing data exchange.
  • Topologies: Geometric arrangements of nodes (e.g., star, bus, mesh).

Real-World Example: eSewa Transactions When you pay via eSewa, your phone sends encrypted data to eSewa’s servers. The network routes this request through NTC’s fiber-optic backbone (a WAN) to the bank’s server, which processes the payment. The response travels back via the same path, completing the transaction in seconds.


2. Types of Computer Networks

Networks are classified by size, scope, and ownership:

Type Scope Example Key Feature
LAN Small area (office/home) Home Wi-Fi, university labs High speed, low latency
MAN City-wide Kathmandu’s NTC fiber network Connects LANs via municipal infrastructure
WAN Country/continent Internet, Ncell’s mobile network Uses satellites/undersea cables
PAN Personal device Bluetooth headphones Short-range, low-power
VPN Secure remote access Bank employees accessing systems Encrypted tunnel over public internet

Worked Example: Daraz’s Order Processing Daraz uses a hybrid network combining:

  • LANs in warehouses (for inventory tracking).
  • WANs to connect warehouses to its cloud servers.
  • MANs in cities (e.g., Kathmandu’s NTC towers) for real-time order updates to customers.

3. Network Topologies

The physical layout of a network affects performance and cost.

A. Star Topology

  • All devices connect to a central hub (e.g., router).
  • Advantages: Easy to manage, fault isolation.
  • Disadvantages: Hub failure disrupts the entire network.
  • Example: NTC’s mobile towers (each phone connects to a central base station).

B. Bus Topology

  • Devices share a single communication line (e.g., Ethernet cable).
  • Advantages: Low cost, simple setup.
  • Disadvantages: Traffic congestion, single point of failure.
  • Example: Old-school office networks using coaxial cables.

C. Mesh Topology

  • Every device connects to multiple others (redundant paths).
  • Advantages: High reliability, no single failure point.
  • Disadvantages: Expensive, complex wiring.
  • Example: Military networks or IoT devices in smart homes.

Visual Comparison

flowchart TD
    subgraph Star["Star Topology"]
        A["Device 1"] -->|"to Hub"| Hub["Central Hub"]
        B["Device 2"] --> Hub
        C["Device 3"] --> Hub
    end

    subgraph Bus["Bus Topology"]
        D["Device 1"] -->|"Shared Cable"| E["Main Cable"]
        F["Device 2"] --> E
        G["Device 3"] --> E
    end

    subgraph Mesh["Mesh Topology"]
        H["Device 1"] -->|"Multiple Links"| I["Device 2"]
        H --> J["Device 3"]
        I --> J
    end

4. Data Transmission and Protocols

How Data Travels Data is broken into packets (small chunks) for efficient routing. Each packet includes:

  • Header: Source/destination IP addresses.
  • Payload: Actual data (e.g., an email or video stream).
  • Trailer: Error-checking info.

Key Protocols

Protocol Purpose Example Use Case
TCP Ensures reliable data delivery Downloading files from Google Drive
IP Addresses packets for routing Finding your phone on Ncell’s network
HTTP/HTTPS Web communication Browsing Daraz or YouTube
FTP File transfer Uploading resumes to job portals

Worked Example: YouTube Video Streaming When you watch a video:

  1. Your phone sends a HTTP request to YouTube’s servers.
  2. YouTube splits the video into packets and sends them via TCP/IP.
  3. Your phone reassembles packets in order, adjusting for buffering if needed.

5. Online Services and Their Applications

A. Cloud Computing

  • Definition: Remote servers host data/apps (e.g., Google Drive, Microsoft 365).
  • Advantages:
    • Scalability (e.g., Daraz during festivals).
    • Cost-efficient (no need for local servers).
  • Disadvantages:
    • Dependency on internet.
    • Privacy concerns (e.g., NEPSE data breaches).

B. E-Commerce Platforms

  • Example: Daraz uses cloud databases to track inventory and process orders.
  • Tech Stack:
    • Frontend: Web/mobile apps for users.
    • Backend: Servers handling payments (eSewa/Khalti integration).
    • Database: SQL/NoSQL to store product details.

C. Social Media and Messaging

  • WhatsApp: Uses end-to-end encryption (via Signal Protocol) for private chats.
  • YouTube: Leverages CDNs (Content Delivery Networks) to reduce latency globally.

6. Security in Networks

Threats and Countermeasures

Threat Description Real-World Example Solution
Phishing Fake emails/sites to steal data eSewa scam emails asking for login credentials Two-factor authentication (2FA)
DDoS Attacks Overwhelming servers with traffic Ncell outages during peak hours Firewalls, load balancing
Man-in-the-Middle Intercepting data Hackers snooping on unsecured Wi-Fi HTTPS (SSL/TLS encryption)
Malware Viruses/worms corrupting data Ransomware attacks on banks Antivirus software, regular updates

Worked Example: NEPSE’s Security Measures NEPSE uses:

  • Firewalls to block unauthorized access.
  • Biometric authentication for traders.
  • Encrypted databases to protect stock data.

7. Wireless vs. Wired Networks

Feature Wired (Ethernet) Wireless (Wi-Fi/Bluetooth)
Speed Faster (1 Gbps–10 Gbps) Slower (up to 1 Gbps for Wi-Fi 6)
Reliability Less interference Affected by distance/walls
Setup Cost Higher (cabling) Lower (no physical connections)
Mobility Fixed devices Portable (laptops, phones)
Example Office LANs, data centers Home Wi-Fi, Pathao’s delivery tracking

8. Real-World Applications in Nepal

A. Banking and Finance

  • eSewa/Khalti: Use payment gateways (secure HTTP transactions) to process online payments.
  • NEPSE: Relies on real-time databases to update stock prices for traders.

B. Logistics and Delivery

  • Daraz/Pathao: Employ GPS tracking (via GPRS/Wi-Fi) to monitor deliveries in real time.
  • NTC/Ncell: Provide 4G/5G networks for logistics apps to update statuses.

C. Education

  • Online Classes (e.g., TU’s virtual lectures): Use Zoom/Google Meet (VoIP over internet).
  • Digital Libraries: Host textbooks on cloud storage (e.g., TU’s e-library).

In the Real World

  1. eSewa’s Payment Network

    • Idea Used: Secure TCP/IP protocols and two-factor authentication (2FA).
    • How: When you pay via eSewa, your phone encrypts the transaction data and sends it to eSewa’s servers. The bank verifies your credentials via SMS/OTP before processing the payment. If a hacker intercepts the data, the encryption ensures the transaction is unusable.
  2. Daraz’s Inventory Management

    • Idea Used: Cloud databases + LAN/WAN integration.
    • How: Daraz’s warehouses use local LANs to track stock in real time. When an order is placed, the system checks inventory via a WAN connection to the cloud database. If an item is out of stock, the system automatically updates the customer’s order status (e.g., "Backordered") without manual intervention.
  3. Pathao’s Ride-Hailing Network

    • Idea Used: Mesh topology for driver connectivity + GPS tracking.
    • How: Pathao’s app uses Wi-Fi/4G to connect drivers to the central server (a star topology). Each driver’s location is updated every few seconds via GPS, which is sent to the server as packets. The app then matches riders with the nearest available driver, reducing wait times. During peak hours (e.g., 6–9 PM), Pathao’s system dynamically adjusts driver routes using algorithmic routing (a form of artificial intelligence).

Exam Tip

This unit tests conceptual understanding (e.g., network types, protocols) and real-world application (e.g., linking eSewa to TCP/IP). Focus on:

  1. Definitions: Know the difference between LAN/MAN/WAN/PAN.
  2. Topologies: Draw and explain star/bus/mesh with examples (e.g., NTC towers for star).
  3. Protocols: Match TCP/IP to real services (e.g., YouTube streaming).
  4. Security: Relate threats (phishing, DDoS) to Nepalese cases (eSewa breaches).
  5. Applications: Connect tech to apps (e.g., Daraz’s cloud databases, Pathao’s GPS).

Common Pitfalls:

  • Confusing Wi-Fi (wireless) with Ethernet (wired).
  • Forgetting to mention encryption in security answers.
  • Describing networks without linking to real Nepalese examples.

Sample Question Breakdown: Question: "Describe the star topology and provide a real-world example." Answer Structure:

  1. Definition: Central hub connects all devices.
  2. Advantages: Easy troubleshooting, scalable.
  3. Example: NTC’s mobile network (each phone connects to a base station).
  4. Disadvantage: Single point of failure (e.g., tower outage).

Visuals (real pictures):

![network topologies diagram](/media/6f076447577e99d12195.png "A labeled diagram showing star, bus, and mesh topologies with devices and connections. (Image: NetworkTopologies.png: Maksim / derivative work: Malyszkz, Public domain, via Wikimedia Commons)")

Based on the TU BCA syllabus for English I (CAEN103), unit 4.

Discussion

Loading…