parajulirajesh.com.np

Assignment

Study Materials

Unit 1: Computer Networks and the Internet

1.1 The Internet

The Internet is a global network of computers connected together.

  • It connects millions of devices (computers, phones, servers).
  • Uses standard protocols like TCP/IP.
  • Enables services like:
    • Web browsing 
    • Email 
    • Video streaming

When you open Google → your computer connects to Google’s server through the Internet.

1.2. The Network Edge : Access Networks, Physical Media

The Network Edge

The network edge is where users connect to the Internet. The Network Edge

Includes:

  • Computers, smartphones
  • Servers
  • Internet Service Providers (ISP)

Access Networks

How devices connect to the Internet.

Types:

  • Home network → WiFi, broadband
  • Mobile network → 4G / 5G
  • Institutional network → university, office

Physical Medium

The actual medium used to transmit data

Types:

  • Wired:
    • Twisted pair cable
    • Coaxial cable
    • Optical fiber (fastest)
  • Wireless:
    • WiFi
    • Satellite
    • Radio waves

1.3 The Network Core

The Network core is the backbone of the Internet (high-speed routers and links).

Packet Switching

Data is broken into small pieces called packets.

  • Each packet travels independently
  • Efficient and flexible

Used in the Internet.

Example: Sending WhatsApp message → divided into packets → reassembled

Circuit Switching

A dedicated path is established before communication

  • Fixed connection
  • Used in old telephone systems

 Less efficient than packet switching

Difference between packet switching and circuit switching

FeaturePacket SwitchingCircuit Switching
ConnectionNo dedicated connectionDedicated connection required
Data TransmissionData sent in small packetsData sent as a continuous stream
PathPackets may take different pathsFixed path for entire communication
EfficiencyHigh (uses bandwidth efficiently)Low (bandwidth reserved even if unused)
DelayVariable delay (depends on network)Constant delay once connection established
Setup TimeNo setup requiredRequires setup time before transmission
ReliabilityPackets may be lost or arrive out of orderReliable, ordered delivery
CostCheaperExpensive
ExampleInternet, emailTraditional telephone system

1.4 Delay, Loss, and Throughput

Delay

Time taken for data to travel from sender to receiver

Types:

  • Processing Delay:
    Time taken by the router to think and decide where to send the data.
  • Queue Delay:
    Time the data waits in line before being sent.
  • Transmission Delay:
    Time needed to send all the data bits into the network.
  • Propagation Delay:
    Time taken for the data to travel from sender to receiver.

Packet Loss

When data packets are lost during transmission. Network congestion may be the reason for data packet loss.

Throughput

Amount of data transferred per second

  • Measured in bps (bits per second)
  • Higher throughput = faster Internet

1.5. Protocol Layers and Their Service Models : Layered Architecture, Encapsulation

Protocol layers mean dividing network communication into different levels, where each layer has a specific task. Each layer works separately but together they complete the communication process.

Why layers are used:

  • Makes the system easy to understand
  • Simplifies design and troubleshooting
  • Each layer can be developed independently

Example (TCP/IP model):

  • Application Layer: interacts with user (web, email)
  • Transport Layer: ensures correct data delivery
  • Internet Layer: handles addressing and routing
  • Network Access Layer: sends data through physical medium

2. Encapsulation

Encapsulation is the process of adding extra information (called headers) to data as it moves from one layer to another.

Simple idea:

  • Data is created at top layer
  • Each layer adds its own header
  • At receiver side, headers are removed step by step

Process of adding headers at each layer

📦 Like packing a parcel:

  • Data → wrapped layer by layer → sent → unwrapped at receive

3. Service Models

A service model defines what type of service one layer provides to the layer above it.

Types of services:

  • Reliable service: data is delivered correctly and in order (example: TCP)
  • Unreliable service: no guarantee of delivery (example: UDP)

1.6. History of Computer Networking and the Internet

The development of computer networking and the Internet happened step by step over time.

  • 1960s: No networking
  • 1969: ARPANET started
  • 1970s–80s: TCP/IP developed
  • 1990s: Internet became public (WWW)
  • Today: Fast, global, and widely used

1. Early Stage (1960s)

Computers were very large and expensive. They were not connected to each other. People used them individually.

Later, the idea of connecting computers started for sharing data and resources.

2. ARPANET (1969)

The first real computer network was called ARPANET, developed in the United States.

  • Connected a few universities and research centers
  • Used packet switching technology
  • Became the foundation of the Internet

3. Development of Protocols (1970s–1980s)

Scientists developed communication rules called protocols.

The most important was TCP/IP.

  • Allowed different networks to connect
  • Became the standard for Internet communication.

4. Growth of Internet (1990s)

The Internet became popular worldwide.

Tim Berners-Lee introduced the World Wide Web.

  • Websites and browsers were created
  • Easy for people to use the Internet.

5. Modern Internet (2000s–Present)

The Internet is now used everywhere.

  • High-speed networks (fiber, wireless)
  • Mobile Internet and Wi-Fi
  • Applications like social media, cloud computing, video streaming

Unit 2: Application Layer

2.1 The Web and HTTP 

  • The Web is a system of websites accessed using the Internet.
  • It works using HTTP (HyperText Transfer Protocol).

HTTP Overview

  • It is a protocol used to transfer web pages from server to user.
  • It follows a request–response model.

HTTP Message Format

Two types:

1. Request Message

  • Method (GET, POST)
  • URL
  • Headers
  • Body (optional)

2. Response Message

  • Status code (200 OK, 404 Not Found)
  • Headers
  • Data (HTML page)

Note:

  • Request Message: Sent by client (browser)
  • Response Message: Sent by server
  • Contains: headers + body (data)

Cookies

  • Small data stored in user’s browser
  • Used to remember user information (login, preferences)

Web Caching

  • Stores copies of web pages
  • Reduces load time and network traffic

2.2 Electronic Mail in Internet 

  • Email is used to send messages over the Internet.

SMTP (Simple Mail Transfer Protocol)

  • Used to send emails from sender to mail server

Mail Message Format

Mail Message Format

 Email contains:

  • Header:
    • From
    • To
    • Subject
  • Body:
    • Message content

Mail Access Protocols

Used to receive emails

Types:

  1. POP3
    • Downloads email
    • Deletes from server
  2. IMAP
    • Syncs email with server
    • Access from multiple devices

Note:

  • POP3: Downloads email to device
  • IMAP: Access email directly from server

2.3 DNS (Domain Name System)

  • DNS converts domain names to IP addresses
  • Example: google.com → IP address
  • It acts like a phonebook of the Internet

2.4 Peer-to-Peer (P2P) File Distribution

 No central server → users share files directly

  • Users share files directly without central server
  • Each user acts as both client and server
  • Example: Torrent systems

2.5 Video Streaming and CDN

Video Streaming

Watching video without downloading fully

Examples:

  • YouTube
  • Netflix
  • Watching video without downloading full file
  • Data is sent continuously in small parts

Content Distribution Network (CDN)

Servers distributed across world

Purpose:

  • Deliver content faster 

Example:

When you watch Netflix:

  • Video comes from nearest server → fast streaming
  • Group of servers placed worldwide
  • Delivers content from nearest server
  • Improves speed and performance

Points to Know

  • HTTP = web communication protocol
  • Cookies = store user info
  • Web cache = faster loading
  • SMTP = send email
  • POP3/IMAP = receive email
  • DNS = name → IP conversion
  • P2P = direct file sharing
  • Streaming = watch without full download
  • CDN = faster global delivery

Unit 6: Wireless and Mobile Networks

6.1.5 Personal Area Networks: Bluetooth

Personal Area Network (PAN)

A Personal Area Network (PAN) is a small network used to connect devices around one person within a short distance.

It is mainly used for personal devices such as:

  • mobile phones
  • laptops
  • tablets
  • smartwatches
  • wireless earphones
  • keyboards
  • printers

The coverage area of a PAN is usually a few meters.

Bluetooth in PAN

Bluetooth is the most common technology used in a Personal Area Network. It allows devices to communicate wirelessly over short distances without using cables.

For example:

  • a phone connected to wireless earbuds
  • a laptop connected to a Bluetooth mouse
  • a mobile connected to a smartwatch
  • sharing files between two phones

Features of Bluetooth

  • It is a short-range wireless technology
  • It works in the 2.4 GHz ISM band
  • It is used for low power communication
  • It is suitable for personal devices
  • It does not need internet to connect devices directly
  • It is cheap and easy to use

How Bluetooth Works

Bluetooth works by creating a wireless link between nearby devices.
First, devices go through a process called pairing. Pairing allows two devices to recognize and trust each other. After pairing, they can exchange data.

Bluetooth can be used for:

  • file transfer
  • audio transfer
  • connecting input devices
  • sharing small amounts of data

Advantages of Bluetooth in Data Communication

  • No cable is required
  • Easy to connect devices
  • Low power consumption
  • Low cost
  • Useful for portable devices
  • Supports voice and data communication

Disadvantages of Bluetooth

  • Short communication range
  • Lower speed than Wi-Fi
  • Limited number of connected devices
  • Can face interference from other wireless devices
  • Security risks if not properly paired

Applications of Bluetooth in Networking

Bluetooth is used in many networking situations such as:

  • wireless headphones and speakers
  • keyboard and mouse connection
  • mobile to laptop data transfer
  • fitness bands and smartwatches
  • car hands-free systems
  • printer connection

6.2 Cellular Networks: 4G and 5G

Cellular networks are wireless communication systems that divide a large area into small sections called cells. Each cell has a base station or cell tower that provides network service to mobile users. When you move from one cell to another, the connection is transferred automatically, which is called handover.

In data communication, cellular networks allow devices like phones, tablets, and laptops to send and receive data through radio waves instead of cables.

1. What is 4G?

4G means Fourth Generation mobile network technology. It was introduced to provide faster internet speed than 3G.

Main features of 4G

  • High-speed internet access
  • Better voice and video calling
  • Smooth video streaming
  • Support for mobile apps, gaming, and browsing
  • Uses LTE (Long Term Evolution) technology

4G speed

4G can provide:

  • around 10 Mbps to 100 Mbps in normal use
  • higher speed in good conditions

Uses of 4G

  • Watching YouTube
  • Video calls
  • Social media
  • Online classes
  • Downloading files
  • Mobile banking

2. What is 5G?

5G means Fifth Generation mobile network technology. It is more advanced than 4G and is designed for very fast speed, very low delay, and huge device connectivity.

Main features of 5G

  • Much faster than 4G
  • Very low latency (delay)
  • Can connect many devices at the same time
  • Better support for smart cities, self-driving cars, IoT, and remote surgery
  • Higher network efficiency

5G speed

5G can provide:

  • 100 Mbps to 1 Gbps or more
  • in some cases, even higher speed

Difference Between 4G and 5G

4G5G
Fourth Generation technologyFifth Generation technology
Fast internet speed (10–100 Mbps)Ultra-fast speed (100 Mbps–1 Gbps+)
Example: HD video streaming works smoothlyExample: 4K/8K streaming and cloud gaming without buffering
Higher latency (30–50 ms)Very low latency (1–10 ms)
Example: Small delay in video callsExample: Real-time remote surgery, instant response
Limited device connectionMassive device connection
Example: Slows down in crowded areasExample: Works well in stadiums with thousands of users
Uses LTE technologyUses Massive MIMO and Beamforming
Example: Normal signal coverageExample: Focused signal directly to user for better speed
Lower data capacityVery high data capacity
Example: Network congestion during peak hoursExample: Handles heavy traffic easily
Suitable for normal mobile usageSuitable for advanced technologies
Example: Social media, browsingExample: Smart homes, IoT devices, self-driving cars
Lower bandwidthVery high bandwidth
Example: Limited data transfer rateExample: Faster download of large files in seconds
Wide coverageLimited coverage (especially mmWave)
Example: Works in rural areasExample: Best performance in cities with 5G towers
Less energy efficientMore energy efficient
Example: Higher battery/network loadExample: Optimized power usage for connected devices

OSI Model

The OSI (Open Systems Interconnection) Reference Model is a conceptual framework developed by ISO (International Organization for Standardization) to standardize network communication. In 1984, ISO officially introduced the OSI Reference Model.

The OSI model was created to make network communication simple, standard, and flexible. It provides a structured way to understand how data moves from one system to another and helps in developing and implementing networking protocols.

The OSI model was developed by ISO in 1984 to standardize network communication. It divides networking functions into seven layers, each performing specific tasks. The main purpose of the OSI model is to enable interoperability between different systems, simplify network design, and help in understanding and troubleshooting networks.

The Application layer is the topmost layer of the OSI model and acts as the interface between the user and the network. It provides network services directly to user applications. This layer does not provide services to other OSI layers but instead offers services such as file transfer, email, remote login, and web browsing. It allows users to access network resources and handles user authentication and service availability.

Functionalities 

  • Provides interface between user and network
  • Offers network services to applications
  • Supports email, file transfer, and web access
  • Handles user authentication
  • Identifies communication partners

The Presentation layer is responsible for data representation and translation. It ensures that data sent by the sender is readable by the receiver. This layer handles data format conversion, encryption for security, and compression to reduce data size. It acts as a translator between different systems.

Functionalities

  • Data translation and formatting
  • Encryption and decryption
  • Data compression and decompression
  • Converts data into a standard format
  • Ensures data readability

The Session layer establishes, manages, and terminates communication sessions between applications. It controls dialog management and synchronization between systems. This layer ensures that data exchange happens smoothly by setting checkpoints and maintaining sessions during data transfer.

Functionalities 

  • Establishes communication sessions
  • Maintains and manages sessions
  • Terminates sessions properly
  • Provides synchronization

The Transport layer is responsible for reliable data transfer between systems. It breaks data into smaller segments, performs error detection and recovery, and ensures data is delivered in the correct sequence. This layer controls flow and congestion and uses protocols like TCP and UDP.

Functionalities 

  • Segmentation and reassembly of data
  • Error detection and correction
  • Flow control
  • Ensures reliable data delivery
  • Uses TCP (reliable) and UDP (fast)
  • Maintains correct data sequence

The Network layer handles routing and logical addressing of data packets. It determines the best path for data to travel from the source to the destination across multiple networks. This layer uses IP addresses and is responsible for packet forwarding, routing, and congestion control.

Functionalities 

  • Logical addressing (IP addresses)
  • Routing and path determination
  • Packet forwarding
  • Traffic and congestion control
  • Internetworking

The Data Link layer ensures error-free transmission of data between two directly connected nodes. It packages raw data into frames and uses physical (MAC) addresses for device identification. This layer also handles error detection, flow control, and access control to the physical medium.

Functionalities 

  • Framing of data
  • Physical (MAC) addressing
  • Error detection and correction
  • Flow control
  • Media access control
  • Ensures reliable node-to-node delivery

The Physical layer is responsible for the transmission of raw bits over the communication medium. It defines hardware specifications such as cables, connectors, voltage levels, and transmission speed. This layer deals with the physical connection between devices.

Functionalities 

  • Transmission of raw bits (0s and 1s)
  • Defines hardware specifications
  • Controls voltage levels and signals
  • Manages data rate and synchronization
  • Defines transmission media and topology

The Network Layer –

The Network Layer is the 3rd layer of the OSI Model.
Its main job is to move packets from source to destination across multiple networks.

It is responsible for:

  • Logical addressing (IP addresses)
  • Routing (finding best path)
  • Forwarding (sending packet to next hop)
  • Fragmentation
  • Congestion handling (basic level)

4.1 Data Plane

The Data Plane (also called Forwarding Plane) is responsible for:

  • Moving packets from input port to correct output port inside a router.
  • It works locally at each router.

Key Functions:

  • Packet Forwarding: Moving a packet to correct output port based on destination address.
  • Header Inspection: Checking packet header fields to decide forwarding action.
  • Queue Management: Managing packet buffers during congestion.
  • Packet Scheduling: Selecting order of packet transmission from queue.

Real-Life Example

Think of a bus station:

  • 🧾 Header Inspection → Check passenger ticket
  • 🧭 Packet Forwarding → Send passenger to correct bus
  • 🪑 Queue Management → Manage waiting line
  • 🚍 Packet Scheduling → Decide which bus leaves first

 

Forwarding is different from routing.

  • Routing → Determines best path (control plane).
  • Forwarding → Moves packet to next hop (data plane).

 

Scroll to Top

Rajesh Parajuli

BICTE GMC

LEC.RAJESH PARAJULI

Address: Ghodaghodi Municipality-1 Sukhad kailali

Contact: 9847546279

Ghodaghodi Multiple Campus BICTE