0% found this document useful (0 votes)
38 views121 pages

Goals and Applications of Computer Networks

notes of computer network subject

Uploaded by

amritarawat064
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views121 pages

Goals and Applications of Computer Networks

notes of computer network subject

Uploaded by

amritarawat064
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Computer Network

GOALS AND APPLICATION OF NETWORKS

1. Introduction
A Computer Network is a system in which multiple computers, devices, or nodes
are interconnected to share data, information, and resources. These devices
communicate with each other using communication links such as wired (LAN
cables, fiber optics) or wireless (Wi-Fi, radio waves) channels.
Computer networks form the backbone of modern communication and support a
wide range of applications such as the Internet, banking, e-commerce, and online
services.
A formal definition:

“A computer network is an interconnected collection of autonomous computers


and devices that are able to exchange data and share resources using
communication channels.”
Computer networks allow users to collaborate, access remote data, communicate
instantly, and utilize distributed computing technologies such as cloud and IoT.

2. Goals of Computer Networks


The primary goals of networking are:

(i) Resource Sharing


One of the most important goals of a network is to share hardware (printers,
scanners), software (applications), and data files among multiple users. This
reduces duplication and makes resource use efficient.

(ii) High Reliability


Networks provide reliability through data redundancy, backup, and multiple
communication paths. If one system fails, the user can still access data from
another machine or central server. This increases fault tolerance.

Computer Network 1
(iii) Cost Reduction
By sharing expensive resources, the overall cost of computing decreases. For
example, instead of purchasing a printer for each user, a single network printer
can serve many systems. It also reduces storage costs.

(iv) Effective Communication


Networks enable fast communication through tools such as email, messaging,
voice calls, and video conferencing. This enhances collaboration across
distances and supports real-time information exchange.

(v) Scalability
A network can grow easily by adding new devices without affecting existing users.
This flexibility makes networks suitable for both small and large organizations.

(vi) Centralized Management


Through client-server architecture, administrators can centrally manage data,
implement security policies, monitor network activity, and control user access.
This also simplifies software updates and backups.

(vii) Better Performance


Networked systems can distribute complex tasks across multiple machines,
enabling parallel processing. This leads to improved performance and faster
execution.

(viii) Support for Distributed Systems


Modern technologies like cloud computing, distributed databases, IoT systems,
and edge computing rely heavily on computer networks to function.

3. Applications of Computer Networks


Computer networks have become essential in almost every field of life. Some of
the major applications are:

(i) Business and Office Applications

Computer Network 2
Organizations use networks for file sharing, database management, centralized
storage, email communication, VoIP, video meetings, and collaborative work. They
support e-commerce, customer management (CRM), and enterprise resource
planning (ERP).

(ii) Home and Personal Use


In homes, networks support web browsing, smart TVs, gaming, online learning,
social media, and smart home devices (IoT). Home Wi-Fi networks allow multiple
devices to connect simultaneously.

(iii) Education and Research


Universities use networks for e-learning platforms, digital libraries, online
examinations, research collaborations, and campus-wide Wi-Fi. Cloud-based
tools and virtual labs also depend on networking.

(iv) Banking and Financial Services


Networks enable online banking, mobile banking (UPI), ATM networks, credit card
transactions, NEFT/RTGS systems, and secure communication between bank
branches. The entire digital finance ecosystem relies on computer networks.

(v) Healthcare
Hospitals use computer networks for telemedicine, patient record management
(EHR), medical imaging transfer, online consultations, and monitoring systems.
Networking improves the quality and speed of healthcare.

(vi) Government and Public Services


E-governance services like Aadhaar, PAN, income tax filing, railway/flight
reservation systems, digital certificates, and online grievance portals are all
network-based. They ensure transparency and efficiency.

(vii) Communication and Social Media


Chat applications, social networks, email systems, audio/video calls, and VoIP
services entirely depend on computer networks. The Internet acts as a global
communication platform.

Computer Network 3
(viii) Transportation and Navigation
Railways, airlines, metro systems, GPS navigation, traffic monitoring, and logistics
tracking rely heavily on networks for real-time data sharing.

(ix) Entertainment and Media


Online gaming, video streaming (YouTube, Netflix), OTT platforms, music
streaming, and cloud gaming are possible because of high-speed networking
systems.

(x) Industrial and IoT Applications


Modern industries use networks for automation, robotics, sensor systems, supply
chain management, and remote monitoring. IoT devices communicate through
networks to share data.

4. Conclusion
Computer networks have become an integral part of modern society, enabling
efficient communication, resource sharing, centralized management, and large-
scale distributed applications. From simple home Wi-Fi connections to advanced
global networks such as the Internet, computer networks play a crucial role in
business, government, education, and daily life. Their goals—such as resource
sharing, reliability, communication, and scalability—make networking essential for
technological and economic growt

Network structure and architecture

1. Introduction
Computer networks consist of many components, including computers, switches,
routers, servers, and communication channels.
To organize these components and enable communication, networks follow a
structure and architecture.

Computer Network 4
Network structure refers to how the network is physically and logically arranged,
while network architecture refers to the set of rules, models, and layers that
define how data is exchanged.

Both concepts are essential to understanding how modern networks like the
Internet work.

2. NETWORK STRUCTURE
Network structure describes how network components are connected,
organized, and managed. It includes:

(A) Physical Structure


Physical structure focuses on the actual layout of hardware, including:

(i) Nodes
Nodes are devices connected in the network:

Computers

Printers

Servers

Switches, routers, modems

Each node has an address (IP/MAC) for identification.

(ii) Communication Links


These are the physical media that connect nodes.
Examples:

Copper cables (twisted pair, coaxial)

Optical fibers

Wireless links (Wi-Fi, Bluetooth, radio waves)

(iii) Network Topology


Topology describes the geometric arrangement of devices.

Computer Network 5
Common topologies include:

Bus Topology

Star Topology

Ring Topology

Mesh Topology

Tree & Hybrid Topology

Each topology has distinct performance, cost, and reliability characteristics.

(B) Logical Structure


Logical structure shows how data flows through the network, independent of
physical layout.

(i) Addressing
Each device has:

Physical Address (MAC)

Logical Address (IP)

These enable identification and routing.

(ii) Routing
Routing determines the path a packet should follow from source to destination.
Routers select paths using routing protocols such as:

RIP

OSPF

BGP

(iii) Protocols
Protocols define rules for communication.

Examples:

TCP, UDP

Computer Network 6
HTTP, FTP, SMTP

IP, ICMP

These protocols determine how data is formatted, transmitted, received, and


acknowledged.

(iv) Data Flow Methods


There are three types:

Simplex: One-way communication (e.g., keyboard → CPU)

Half-duplex: Two-way communication, one direction at a time (e.g., walkie-


talkie)

Full-duplex: Two-way communication simultaneously (e.g., telephone)

(C) Network Structure Based on Size


Networks are also classified by geographic coverage:

(i) LAN (Local Area Network)


Covers small areas like offices, homes, or labs.

High speed, low cost.

(ii) MAN (Metropolitan Area Network)


Covers a city-level area.

(iii) WAN (Wide Area Network)


Covers large areas across countries or continents (e.g., the Internet).

(D) Client-Server and Peer-to-Peer Structure

Client-Server
Central server provides resources

Clients request services

Examples: Banking systems, college databases

Computer Network 7
Peer-to-Peer
Every system acts as both client and server

No central authority

Example: Torrent networks

3. NETWORK ARCHITECTURE
Network architecture is the overall design and logical framework that defines
how computers communicate.

It includes the layers, protocols, services, and models used to structure


communication.
Network architecture answers questions like:

How is data packaged?

How many layers are used?

Which protocols operate at which layer?

The two most important architectures are:

(A) OSI (Open Systems Interconnection)


Architecture
A 7-layer model designed by ISO to standardize communication.
Layers:

1. Physical Layer — Transmission of raw bits

2. Data Link Layer — Frames, error detection, MAC

3. Network Layer — IP addressing, routing

4. Transport Layer — Reliable delivery (TCP), segmentation

5. Session Layer — Session management

6. Presentation Layer — Encryption, encoding, compression

Computer Network 8
7. Application Layer — User applications (HTTP, FTP, email)

Importance of OSI:
Provides structured communication

Defines responsibilities at each layer

Ensures interoperability between different vendors

(B) TCP/IP Network Architecture


The TCP/IP model is the practical architecture of the Internet.

It has 4 layers:

1. Application Layer — HTTP, FTP, DNS, SMTP

2. Transport Layer — TCP and UDP

3. Internet Layer — IP, ICMP

4. Network Access Layer — LAN/WAN technologies, frames, bits

Features:
Real-world implementation

Supports global communication

Flexible and scalable

(C) Protocol Architecture


Network architecture also defines which protocols operate at each layer.
Examples:

Transport Layer: TCP, UDP

Network Layer: IP, ICMP

Data Link Layer: Ethernet, Wi-Fi

Application Layer: HTTP, FTP, SMTP, DNS

Computer Network 9
Protocols ensure:

Reliable transfer

Error control

Flow control

Congestion control

(D) Service-Based Architecture


Network architecture supports two types of communication:

Connection-Oriented Communication
Uses TCP

Reliable

Three-way handshake

Connectionless Communication
Uses UDP

Fast, no acknowledgement

(E) Architectural Styles


1. Centralized ArchitectureServer controls everything.

2. Distributed ArchitectureWorkload is spread across multiple [Link]:


Cloud computing, IoT systems.

3. Hybrid ArchitectureCombination of centralized and distributed approaches.

4. Conclusion
Network structure and architecture form the foundation of computer networking.

Computer Network 10
Network structure explains how devices are physically arranged, logically
connected, and organized using topologies, addressing, media, and routing.

Network architecture defines the layered framework and protocols that


manage communication, such as the OSI and TCP/IP models.

Together, they ensure efficient, reliable, scalable, and standardized


communication across modern networks—from small LANs to the global Internet.

OSI reference model and services


The OSI (Open Systems Interconnection) Model was developed by ISO to make
communication between computers easy and standard.

It divides the entire network communication into 7 simple layers.


Each layer has its own job, and each layer helps the layer above it.
The OSI model makes:

communication easier to understand

troubleshooting simpler

devices of different companies work together

🌟Explanation)
2. OSI Model – 7 Layers (Simple

🔹 1. Physical Layer
This is the lowest layer.

It deals with actual signals, wires, cables, connectors.

Converts data → electrical/optical signals.

Example devices: Hubs, cables, repeaters.

🔹 2. Data Link Layer


Computer Network 11
Makes sure data is error-free between two directly connected devices.

Breaks data into frames.

Uses MAC addresses.

Functions:
✔ Error detection
✔ Flow control
✔ MAC addressing
✔ Frame delivery
Devices: Switches, bridges.

🔹 3. Network Layer
Responsible for routing (choosing the best path).

Uses IP addresses.

Transfers data across multiple networks.

Protocols: IP, ICMP


Device: Router

🔹 4. Transport Layer
Handles end-to-end communication between two devices.

Ensures data is delivered correctly and in order.

Functions:
✔ Segmentation
✔ Flow control
✔ Error control
Protocols:

TCP (reliable)

Computer Network 12
UDP (fast)

🔹 5. Session Layer
Manages sessions between devices.

Starts, maintains, and ends sessions.

Example:

When you log in to a website → session starts.

🔹 6. Presentation Layer
Converts data into a proper format.

Responsible for encryption, decryption, compression, translation.

Example:

Converting text, images, audio formats


Encrypting credit card info during online payment.

🔹 7. Application Layer
This is the topmost layer.

Directly interacts with users.

Provides services such as email, web browsing, file transfer.

Protocols: HTTP, FTP, DNS, SMTP

🌟(Explained
3. SERVICES PROVIDED BY OSI MODEL
Simply)
The OSI model provides many services to make communication smooth and
reliable.

🔹 1. Connection-Oriented Service
Computer Network 13
Makes a proper connection before sending data.

Very reliable.

Example: TCP (like a phone call)

🔹 2. Connectionless Service
No prior connection made.

Fast but not reliable.

Example: UDP (like sending a letter)

🔹 3. Reliable and Unreliable Services


Reliable: Ensures data is delivered correctly (TCP).

Unreliable: No guarantee, but faster (UDP).

🔹 4. Unicast, Multicast, Broadcast


Unicast: One sender → one receiver

Multicast: One sender → many selected receivers

Broadcast: One sender → all devices in network

🔹 5. Segmentation and Reassembly


Large data is split into small pieces (segments).

At destination, segments are reassembled.

🔹 6. Flow Control
Ensures sender does not send too fast.

Protects slower receiver from overload.

🔹
Computer Network 14
🔹 7. Error Control
Detects and fixes errors.

Ensures correct data delivery.

🔹 8. Routing Service
Finds the best path for data packets.

Done by Network Layer.

🌟Points)
4. Importance of the OSI Model (Simple

✔ Makes communication structured


✔ Helps in troubleshooting
✔ Provides standard rules for all networks
✔ Supports interoperability (devices from different companies can work together)
✔ Very useful for understanding how data travels
🌟 5. Conclusion
The OSI model is a standard framework that explains how data moves from one
device to another across a network. Its seven layers divide the complex
communication process into small, easy-to-manage steps. The services like
routing, flow control, error control, segmentation, connection-oriented and
connectionless communication ensure smooth, reliable, and efficient data
transmission.
It remains one of the most important models in computer networking and forms
the base for understanding modern networks.

Computer Network 15
explain network topology design for 20 marks

. Introduction
Network topology refers to the arrangement or layout of computers, cables, and
other devices in a network.
It explains how devices are connected and how data flows between them.
Network topology design is an important part of network planning because it
affects:

performance

cost

scalability

reliability

maintenance

A well-designed topology provides efficient communication, reduces network


failures, and ensures smooth functioning of the entire network.

⭐in simple
2. Types of Network Topology (Explain
words)
Network topologies are of two types:

1. Physical Topology – actual physical layout of cables and devices

2. Logical Topology – path through which data actually flows

Below are the major physical topologies used in network design:

⭐ (A) Bus Topology


In bus topology, all computers are connected to a single main cable (called the
bus).

Computer Network 16
Diagram (simple):
PC ——— PC ——— PC ——— PC

Advantages:
✔ Easy to install
✔ Requires less cable
✔ Very cost-effective
Disadvantages:
✘ If the main cable fails, the whole network stops
✘ Limited cable length
✘ Heavy traffic slows the network

Use:
Small temporary networks.

⭐ (B) Star Topology


In star topology, all devices are connected to a central hub or switch.

Diagram:
PC
|
PC — HUB/SWITCH — PC

|
PC

Advantages:
✔ Very reliable – failure of one device doesn’t affect others
✔ Easy to add/remove devices
✔ Fast communication using switch
Computer Network 17
Disadvantages:
✘ If the hub/switch fails → entire network fails
✘ More cabling needed → costly

Use:
Schools, offices, labs (most common topology today).

⭐ (C) Ring Topology


Each device is connected to two others, forming a circular loop.

Diagram:
PC — PC — PC — PC (in a ring)

Advantages:
✔ Data flows in one direction → no collisions
✔ Simple and organized network
Disadvantages:
✘ If one node fails → whole network fails
✘ Difficult to add or remove devices

Use:
Used in old LANs, token ring networks.

⭐ (D) Mesh Topology


Every device is connected to every other device.

Diagram:
A device has multiple connections to all others.

Computer Network 18
Advantages:
✔ Very reliable
✔ No traffic problems
✔ Failure of one link doesn’t affect network
Disadvantages:
✘ Very expensive
✘ Complicated cabling

Use:
Backbone networks, military, critical systems.

⭐Topology)
(E) Tree Topology (Hierarchical

Combination of star + bus.


Multiple star networks are connected using a central bus.

Advantages:
✔ Easy to expand
✔ Good for large organizations
Disadvantages:
✘ If main backbone fails, whole network fails
✘ More cabling required

Use:
Large universities, corporate networks.

⭐ (F) Hybrid Topology


Computer Network 19
Combination of any two or more topologies (e.g., Star + Ring, Star + Mesh).

Advantages:
✔ Very flexible
✔ Scalable
✔ Reliable
Disadvantages:
✘ Expensive
✘ Hard to design and manage

Use:
Modern enterprise networks.

⭐Topology
3. Factors to Consider in Network
Design
When designing a network topology, the following factors must be considered:

1. Cost
Cabling, hardware (switches, routers), and installation cost.

Budget decides whether to use star, mesh, or hybrid.

2. Scalability
Network should support future expansion (e.g., adding more computers).

3. Reliability
The system should work even if one part fails.

Mesh and star topologies provide higher reliability.

4. Performance

Computer Network 20
Speed of data transfer, traffic load, and number of collisions.

Switch-based star topology gives high performance.

5. Ease of Installation and Maintenance


Should be easy to install and troubleshoot.

Star and tree topologies are easy to maintain.

6. Type of Organization
Small office → Bus/Star

Large enterprise → Tree/Hybrid/Mesh

7. Cable Length and Type


Fiber optics for long distance

Copper cables for short distance

8. Security Requirements
Sensitive networks may need mesh or hybrid for higher security.

⭐Design
4. Importance of Proper Topology

Proper topology design helps ensure:

Efficient communication

Cost-effective resource usage

Reduced network congestion

Easy troubleshooting

High security and reliability

Better performance and data flow

Topology selection greatly affects the overall strength and stability of the network.

Computer Network 21
Modern networks often use hybrid topologies because they combine reliability,
scalability, and cost efficiency.

⭐ 5. Conclusion
Network topology design is a crucial step in building a computer network. It
defines how devices are arranged and how data flows between them. Different
topologies like bus, star, ring, mesh, tree, and hybrid offer unique advantages
and limitations.

A well-designed topology considers factors such as cost, performance, reliability,


scalability, and security to create an efficient and stable network.
Thus, topology design plays a major role in the success and functioning of
modern network systems.

Local Access Network Design – (20 Marks Answer)


Local Access Network (LAN) design is the process of planning, structuring, and
implementing a network that connects users, devices, and resources within a
limited geographical area such as a building, office, school, college campus, or
home.
The main goal is to provide fast, reliable, and secure communication among end
users while ensuring scalability for future expansion.

1. Introduction
A Local Area Network (LAN) is a private network used within a small area.

LAN Design involves selecting the right topology, devices, cabling, IP addressing,
and performance requirements to create an efficient network.
A well-designed LAN reduces delays, increases speed, prevents congestion, and
ensures smooth data transfer.

2. Goals of Local Access Network Design

Computer Network 22
1. High Performance:Deliver fast data transfer using technologies like Ethernet,
switches, and fiber cables.

2. Scalability:The network should support future growth—more users, devices,


servers, and applications.

3. Security:Protect the network using firewalls, VLANs, authentication, and


encryption.

4. Reliability:Minimize downtime and provide backup links to prevent failures.

5. Cost Efficiency:Use resources optimally to balance performance with budget.

6. Ease of Management:Provide centralized control using tools like network


monitoring, SNMP, and configuration systems.

3. Components Used in LAN Design


(i) Network Devices
Switches: Core, distribution, and access switches connect devices.

Routers: Connect the LAN to the internet or other networks.

Wireless Access Points (WAPs): Provide Wi-Fi connectivity.

Servers: Store data and applications, and provide network services.

(ii) Cabling
Copper cables (UTP/CAT6) for short distances.

Fiber optic cables for high speed and backbone connectivity.

(iii) End Devices


Computers, laptops, printers, IoT devices, scanners, etc.

(iv) Network Software


Operating systems, network management tools, and authentication systems.

4. LAN Design Process

Computer Network 23
Step 1: Requirement Analysis
Number of users

Type of applications (video calls, databases, browsing)

Required speed (1 Gbps / 10 Gbps)

Security needs

Budget

Step 2: Selecting Topology


Common topologies used in LAN design:

Star topology – most common (each node connects to a switch)

Extended star topology – used in large buildings

Hybrid topology – combination of multiple topologies

Step 3: LAN Architecture


LANs typically follow a 3-layer architecture:

1. Core Layer:Backbone of the network with very high-speed switches.

2. Distribution Layer:Controls traffic, routing, filtering, and VLANs.

3. Access Layer:Connects end-user devices.

Step 4: IP Addressing
Assign static or dynamic (DHCP) IP addresses.

Separate networks using subnetting.

Use VLANs for different departments.

Step 5: Security Design


Firewalls

Access control lists (ACLs)

Network segmentation

Computer Network 24
User authentication (802.1X)

Encryption

Step 6: Testing & Optimization


Performance tests

Bandwidth usage monitoring

Troubleshooting

Apply QoS (Quality of Service) for priority traffic

5. Types of Local Access Networks


1. Wired LAN:Uses switches and cables; more secure and faster.

2. Wireless LAN (WLAN):Uses Wi-Fi; easy to expand and suitable for mobile
users.

3. Campus LAN:Large LAN covering multiple buildings within a campus.

6. Advantages of a Good LAN Design


High-speed communication

Reduced network congestion

Enhanced security

Smooth access to shared resources

Lower operational costs

UNIT 3
explain point to point networks for 20 marks

Computer Network 25
Introduction
A Point-to-Point (P2P) network is one of the simplest and most direct forms of
network communication.
In this network, a dedicated communication link is established between exactly
two devices.
There is no intermediate device between them.
The link may be wired or wireless, and it is used only by those two endpoints.
Examples:

Connection between two computers using a cable

Telephone line between two phones

Leased line between two offices

Direct Wi-Fi link using Bluetooth, infrared, etc.

2. Definition
A Point-to-Point network is a network arrangement where a single
communication path connects two nodes exclusively, allowing direct two-way
communication.

3. Characteristics of Point-to-Point Networks


1. Dedicated Link:

Only two devices share the connection.

2. High Performance:
No congestion because the link is not shared.

3. Low Delay:
Data travels directly from sender to receiver.

4. High Security:
Since no other device is connected, chances of interception are low.

Computer Network 26
5. Simple Configuration:
Easy to set up and maintain.

6. Supports Both Wired and Wireless Communication:


Examples: Ethernet crossover cable (wired), Bluetooth (wireless).

4. Types of Point-to-Point Connections


1. Wired Point-to-Point
Uses physical cables like UTP, Fiber, Coaxial, Serial cable

Common in:

Direct modem connections

Leased lines

Backbone connections between routers

2. Wireless Point-to-Point
Uses wireless signals such as microwave, infrared, radio frequency,
Bluetooth

Common in:

Remote building-to-building connection

Satellite communication

Mobile phone calls

5. Architecture of Point-to-Point Networks


A typical P2P architecture includes:

(i) Two End Nodes


Such as computers, routers, phones, servers.

(ii) Communication Medium

Computer Network 27
Cable (copper/fiber)

Wireless link

Satellite channel

(iii) Protocols
Protocols such as

PPP (Point-to-Point Protocol)

HDLC

SLIP
are used to manage communication.

(iv) Direct Data Flow


Data flows in both directions (full-duplex) or only one direction (simplex),
depending on the requirement.

6. Advantages of Point-to-Point Networks


1. High Speed:
Since no other user shares the line.

2. Very Secure:
The dedicated link reduces chances of hacking.

3. Low Error Rate:


No intermediate nodes = fewer faults.

4. Reliable:
Very stable connection, preferred for business communication.

5. Simple to Install:
Fewer devices needed.

6. Suitable for Long Distance:


Leased lines and microwave links support long-range communication.

Computer Network 28
7. Disadvantages of Point-to-Point Networks
1. Not Scalable:
Only two devices can connect; cannot support many users.

2. Costly for Large Networks:


Each pair of devices needs a separate link.

3. Resource Wastage:
When communication is not happening, the link remains unused.

4. Maintenance Cost:
Long-distance leased lines are expensive to maintain.

8. Applications of Point-to-Point Networks


1. Telecommunication systems (mobile phone calls)

2. Leased line connections between two offices or branches

3. Bank-to-data center secure link

4. Satellite communication

5. Direct transfers between two computers

6. Inter-router backbone connections

7. Bluetooth file transfer

8. Home-to-ISP modem connection

9. Real-Life Examples
USB cable connecting a PC to a printer

Direct cable between two switches

Microwave antennas between two buildings

VPN tunnel between headquarters and branch office

Computer Network 29
10. Conclusion
Point-to-Point networks provide a simple, fast, and secure method of
communication between two devices.
They are widely used in modern telecommunication, leased lines, and wireless
communication systems.
Although they are not suitable for large-scale networks due to high cost and
limited scalability, they remain essential wherever dedicated, reliable, and secure
communication is required.

explain what is routing and cogestion control for 25


marks

1. Introduction
In computer networks, routing and congestion control are two essential functions
of the network layer and transport layer.

Routing decides how data should travel from source to destination.

Congestion control ensures that the network does not get overloaded with
too much traffic.

Together, they maintain efficient, reliable, and smooth communication.

PART A: ROUTING
2. What is Routing?
Routing is the process of selecting the best possible path in a network for data
packets to travel from sender to receiver.
Routing is performed by routers, which use routing algorithms and routing tables
to decide the next hop.

Computer Network 30
3. Goals of Routing
1. Correctness: Packets must reach the correct destination.

2. Efficiency: Choose the shortest or optimal path.

3. Robustness: Network should continue working even if some routers fail.

4. Scalability: Should work for small as well as very large networks.

5. Fairness and Optimality: All users should get fair use of the network.

4. Types of Routing
(A) Static Routing
Paths are manually configured by the network admin.

Does not change automatically when network changes.

Used in small networks.


Advantages: Simple, secure
Disadvantages: Not scalable, hard to maintain

(B) Dynamic Routing


Routers automatically learn and update routes using algorithms.

Quickly adapts to network failures.


Examples: RIP, OSPF, BGP
Advantages: Fast, efficient

Disadvantages: More CPU and memory usage

(C) Unicast, Broadcast & Multicast Routing


Unicast: One sender → One receiver

Broadcast: One sender → All receivers

Multicast: One sender → Selected receivers (e.g., online classes)

Computer Network 31
5. Routing Algorithms
(i) Distance Vector Routing
Router shares distances to all networks with neighbors.

Uses Bellman-Ford algorithm.

Example: RIP
Pros: Simple
Cons: Slow convergence, routing loops

(ii) Link State Routing


Router gathers full map of the network and computes shortest path using
Dijkstra’s algorithm.

Example: OSPF
Pros: Fast, accurate
Cons: Complex, more memory needed

(iii) Hierarchical Routing


Network is divided into regions.

Reduces routing table size.


Used in large networks like the Internet.

(iv) Path Vector Routing


Used between autonomous systems in the Internet.

Example: BGP (Backbone of the Internet)

6. Routing Tables
Routers store information in routing tables:

Destination network

Next hop

Computer Network 32
Metric (cost, distance, delay)

Interface

These tables are continuously updated in dynamic routing.

PART B: CONGESTION CONTROL


7. What is Congestion?
Congestion occurs when too many packets are present in the network, and
routers or links cannot handle them.

This causes:

Packet loss

High delay

Decreased throughput

Network collapse in severe cases

8. Causes of Congestion
1. High traffic load

2. Slow routers

3. Insufficient bandwidth

4. Bursty traffic

5. Router buffer overflow

6. Poor routing decisions

9. What is Congestion Control?


Congestion control refers to techniques used to prevent, detect, and correct
congestion in a network.
It ensures that the network remains stable and performs efficiently.

Computer Network 33
10. Approaches to Congestion Control
A. Open-Loop Congestion Control (Prevention)
Prevents congestion before it occurs

No feedback from network


Examples:

Good routing

Traffic shaping

Resource reservation

Packet admission control

B. Closed-Loop Congestion Control (React to Congestion)


Uses feedback from routers

Takes action after congestion begins


Examples:

Packet dropping

Choke packets

Load shedding

Backpressure

11. Congestion Control Mechanisms


(i) Traffic Shaping (Leaky Bucket, Token Bucket)
Controls the rate at which packets are sent

Smoothens bursty traffic

Prevents sudden load on routers

Leaky Bucket Algorithm

Computer Network 34
Water (packets) leaks at constant rate

Output is uniform

Bursty packets are stored in bucket

Token Bucket Algorithm


Tokens accumulate at fixed rate

Packet can be sent only if token available

Allows bursts within limits

(ii) Choke Packets


Router sends a choke packet to the sender when overloaded

Sender reduces its sending rate

(iii) Load Shedding


Router drops packets when buffers are full

Dropping low-priority packets first

(iv) Backpressure
Router signals previous router to slow down

Continues backward until the source reduces sending rate

(v) TCP Congestion Control


Used in the transport layer of the Internet.
Includes:

1. Slow Start

2. Congestion Avoidance

3. Fast Retransmit

4. Fast Recovery

Computer Network 35
Slow Start
Sender begins with small congestion window (cwnd)

Doubles it every RTT

Prevents sudden congestion

Congestion Avoidance
cwnd increases linearly

Prevents overload

Fast Retransmit
Retransmits lost packet after receiving 3 duplicate ACKs

Fast Recovery
Avoids going back to slow start every time

12. Difference Between Routing and Congestion


Control
Routing Congestion Control

Chooses best path Controls traffic load

Performed by routers Performed by transport/network layer

Goal: shortest/optimal path Goal: avoid network overload

Algorithms: RIP, OSPF, BGP Methods: TCP control, leaky bucket

13. Conclusion
Routing and congestion control are two backbone functions that ensure a network
works smoothly.

Routing selects the best path for packet forwarding.

Congestion control maintains stability by preventing overload.

Computer Network 36
Both are essential for achieving efficient, secure, and reliable communication in
modern networks.

Internetworking and TCP/IP – (20 Marks


Answer)
1. Introduction
Internetworking refers to the process of connecting multiple separate networks
using routers so they function as a single large network – the Internet.
Different networks may use different topologies, media, or technologies, but
internetworking enables them to communicate smoothly.
The most widely used internetworking protocol suite is the TCP/IP model. It
provides the rules and standards for data communication across heterogeneous
networks worldwide.

2. What is Internetworking?
Internetworking means:

Connecting two or more independent networks

Allowing communication across large geographical areas

Using routers, gateways, protocols, and the TCP/IP architecture

Creating a global network of networks (Internet)

Internetworking helps achieve scalability, interoperability, universal


connectivity, and efficient communication.

3. TCP/IP Model Overview

Computer Network 37
TCP/IP (Transmission Control Protocol / Internet Protocol) is a 4-layer
architecture used for internetworking.
It defines “how data is created, transmitted, routed, and delivered” across
different networks.

The Four Layers of TCP/IP:


1. Application Layer

2. Transport Layer

3. Internet Layer

4. Network Access / Link Layer

Each layer performs specific functions, and together they ensure reliable
internetwork communication.

4. Working of TCP/IP in Internetworking


(A) Application Layer
Topmost layer; provides services to end-users.

Implements protocols for communication between applications.


Examples:
HTTP (web), SMTP (email), FTP (file transfer), DNS (domain names).

Role in Internetworking:

Converts user data into application messages

Supports interoperability between different applications on different networks

(B) Transport Layer


Provides end-to-end communication between processes on different devices.

Major Protocols:

Computer Network 38
1. TCP (Transmission Control Protocol)

Connection-oriented

Reliable

Ensures no data loss

Uses flow control, error control, congestion control

Example: Web browsing, email, file transfer

2. UDP (User Datagram Protocol)

Connectionless

Faster but unreliable

Used in video streaming, online games, VoIP

Role in Internetworking:

Breaks large messages into segments

Ensures correct delivery and error-free communication

Handles retransmissions if needed

(C) Internet Layer


This is the key layer for internetworking.
Main protocol: IP (Internet Protocol)
Functions:

1. Logical addressing using IP addresses

2. Routing – selecting the best path

3. Packet forwarding between networks

4. Fragmentation – packeting data to fit MTU of different networks

Other protocols:

ICMP (error reporting)

ARP (resolve IP to MAC)

Computer Network 39
IGMP (multicast management)

Role in Internetworking:

Connects multiple heterogeneous networks

Makes global communication possible

Ensures packets travel across routers regardless of network differences

(D) Network Access Layer (Link Layer)


Deals with physical and data link technologies like Ethernet, Wi-Fi, DSL, Fiber
etc.

Handles framing, physical addressing (MAC), error detection

Ensures packets are transmitted on the local network segment

Role in Internetworking:

Acts as an interface between TCP/IP and the underlying hardware

Converts IP packets into frames suitable for the local network

5. How Internetworking Works (Step-by-


Step)
1. User sends data from an application (e.g., opening a website using HTTP).

2. Transport layer divides the message into segments using TCP/UDP.

3. Internet layer converts segments into packets and assigns source and
destination IP addresses.

4. Routers examine the destination IP and forward packets across different


networks.

5. Network Access layer delivers packets over physical media like Wi-Fi or
Ethernet.

6. At the destination, the process is reversed:

Computer Network 40
Frames → Packets → Segments → Application data

This step-by-step forwarding enables communication between any two devices


anywhere in the world.

6. Features of TCP/IP Internetworking


1. Scalability: Can connect millions of networks.

2. Interoperability: Works across different hardware and OS.

3. Universal Addressing: IP addressing allows unique identification.

4. Reliable transmission: TCP ensures error-free delivery.

5. Flexible routing: Routers dynamically choose best paths.

6. Open standards: Not owned by any company; widely adopted.

7. Advantages of TCP/IP Internetworking


Supports large and complex internetworks

Works well in heterogeneous environments

Compatible with existing technologies

Supports both reliable and fast communication

Easy to expand (scalable)

Backbone of the Internet

8. Conclusion
Internetworking using the TCP/IP model enables different networks worldwide to
communicate seamlessly.
TCP/IP provides a structured, layered approach for transmitting, routing, and
delivering data across heterogeneous environments.

Computer Network 41
Because of its reliability, scalability, and universal acceptance, TCP/IP is the
foundation of modern internetworks and the global Internet.

IP Packets and IP Address – (15 Marks Answer)

1. Introduction
In the Internet and TCP/IP networks, communication takes place using IP (Internet
Protocol).
Two important concepts of IP are:

1. IP Packets – the basic unit of data transmitted across networks

2. IP Address – a unique numerical label assigned to every device on the


network

Both play a central role in routing and delivering data from source to destination.

2. IP Packets
An IP packet is the smallest unit of data exchanged between networks using the
Internet Protocol.
It is also called an IP datagram.

Structure of an IP Packet
An IP packet has two main parts:

(i) Header
Contains control information needed for delivery:

Source IP Address

Destination IP Address

Version (IPv4/IPv6)

TTL (Time To Live)

Computer Network 42
Protocol (TCP/UDP)

Fragmentation fields

Header checksum

The header is used by routers to forward, route, and manage the packet.

(ii) Payload (Data)


This is the actual data coming from the upper layers (TCP, UDP, application).
Examples: web page data, email content, video chunks, etc.

3. Features of IP Packets
1. Connectionless:
Each packet travels independently without a pre-established path.

2. Best-effort Delivery:

IP does not guarantee reliability; packets can be lost or delayed.

3. Fragmentation:
If packets are too large for a network, routers break them into smaller
fragments.

4. Routing:
Packets may take different routes through the network.

5. Reassembly:
Destination device reassembles fragmented packets.

4. IP Address
An IP address is a unique numeric identifier assigned to every device on a
network that uses the Internet Protocol.
It helps in identifying:

Where the packet comes from (source)

Computer Network 43
Where the packet should go (destination)

5. Types of IP Address
(A) IPv4 Address
32-bit number

Written in dotted decimal form

Example: [Link]

Total possible addresses: 4.3 billion

IPv4 address consists of two parts:

1. Network ID

2. Host ID

(B) IPv6 Address


128-bit number

Written in hexadecimal

Example: 2001:0db8:85a3::8a2e:0370:7334

Provides extremely large address space

6. Classes of IPv4 Addresses


IPv4 addresses are divided into 5 classes:

Class Range Usage

A [Link] – [Link] Very large networks

B [Link] – [Link] Medium networks

C [Link] – [Link] Small networks

D [Link] – [Link] Multicast

Computer Network 44
Class Range Usage

E [Link] – [Link] Research

7. Types of IP Addressing
(i) Public IP Address
Unique address used on the Internet.

(ii) Private IP Address


Used inside local networks only.
Examples:

192.168.x.x

10.x.x.x

172.16.x.x – 172.31.x.x

(iii) Static IP
Manually assigned; does not change.

(iv) Dynamic IP
Assigned by DHCP; changes automatically.

8. Functions of IP Addresses
1. Identification: Each device connected to a network gets a unique identity.

2. Location: IP address shows the location of a device within the network.

3. Routing: Routers use IP addresses to make forwarding decisions.

4. Communication: Ensures correct source-to-destination data delivery.

Computer Network 45
9. Relationship Between IP Packets and IP
Addresses
Every IP packet carries source and destination IP addresses inside its header.

Routers use these addresses to forward packets across networks.

Without IP addresses, IP packets cannot be delivered.

Without IP packets, IP addresses have no meaning.

Both work together to provide end-to-end communication on the Internet.

10. Conclusion
IP packets are the fundamental units of data transfer in the Internet, while IP
addresses uniquely identify devices and enable proper routing.
Together, they form the core of TCP/IP internetworking and make global
communication possible.

IPv6 – (20 Marks Answer)

1. Introduction
IPv6 (Internet Protocol Version 6) is the latest version of the Internet Protocol
designed to replace IPv4.
It was developed by the IETF due to the exhaustion of IPv4 addresses and to
support the rapidly growing number of devices on the Internet.
IPv6 provides a much larger address space, improved performance, built-in
security, and better support for modern networking.

2. Need for IPv6


IPv4 had only 4.3 billion addresses, which became insufficient because of:

Computer Network 46
Growth of the Internet

Mobile devices & IoT

Cloud computing

Large-scale networks

IPv6 solves this problem by offering 128-bit addresses.

3. IPv6 Address Structure


(A) Size
IPv6 address = 128 bits

Number of possible addresses = 3.4 × 10³⁸

Written in hexadecimal and separated by colons (:)


Example:
2001:0db8:85a3:0000:0000:8a2e:0370:7334

(B) Shortening Rules


Leading zeros can be removed

Consecutive groups of zeros can be replaced with “::” once in an address


Example shortened:
2001:db8:85a3::8a2e:370:7334

4. Types of IPv6 Addresses


1. Unicast Address
Identifies a single device.
Types include:

Global Unicast: Public IPv6 address, routable on the Internet

Computer Network 47
Link-Local: Used within a local network (prefix fe80::/10)

Unique Local (ULA): Private IPv6 address for local networks

2. Multicast Address
One-to-many communication

Replaces broadcast in IPv6

Prefix: ff00::/8

3. Anycast Address
One-to-nearest communication

Assigned to multiple devices; packet delivered to the closest one

5. Features & Advantages of IPv6


(i) Huge Address Space
128-bit addresses allow an extremely large number of devices.

(ii) No Need for NAT


Due to abundant addresses, IPv6 eliminates the need for Network Address
Translation (NAT).

(iii) Simplified Header Format


IPv6 header is simpler and more efficient than IPv4

Faster routing performance

(iv) Auto-configuration (Stateless Auto-config)


Devices can automatically generate their own IP addresses

Reduces administrative workload

Computer Network 48
(v) Built-in Security – IPsec
Encryption and authentication are mandatory in IPv6

More secure Internet communication

(vi) No Broadcasts
Uses multicast and anycast instead

Reduces network congestion

(vii) Better Mobility Support


Mobile IPv6 supports seamless movement across networks

(viii) Efficient Routing


Hierarchical addressing reduces routing table size

Improves network scalability

6. IPv6 Packet Format


IPv6 packet header includes:

1. Version

2. Traffic Class

3. Flow Label

4. Payload Length

5. Next Header

6. Hop Limit

7. Source Address

8. Destination Address

Improvements Over IPv4:

Computer Network 49
Fixed 40-byte header

No checksum field (faster processing)

Extension headers for optional information

Better QoS support

7. Transition from IPv4 to IPv6


Because IPv4 is still widely used, several transition methods exist:

(i) Dual Stack


Devices run both IPv4 and IPv6 simultaneously.

(ii) Tunneling
IPv6 packets are encapsulated inside IPv4 packets for transport over IPv4
networks (e.g., 6to4, Teredo).

(iii) Translation
Converting IPv6 to IPv4 (e.g., NAT64).
These methods allow smooth migration without breaking existing networks.

8. Applications of IPv6
5G networks

IoT (Internet of Things)

Smart homes & smart cities

Cloud computing

Enterprise networks

Large data centers

Government and research networks

Computer Network 50
9. Conclusion
IPv6 is the future of the Internet.
It overcomes all major limitations of IPv4, especially the shortage of addresses.
With its huge address space, improved performance, built-in security, simpler
routing, and support for mobility and IoT, IPv6 enables faster, scalable, and more
secure global communication.

UNIT 4

TRANSPORT LAYER & ITS DESIGN ISSUES (DETAILED –


25 MARKS)

1. Introduction
The Transport Layer is the fourth layer of the OSI Reference Model and acts as
the key bridge between the Application Layer and the Network Layer.
While the Network Layer provides host-to-host communication, the Transport
Layer provides process-to-process (application-to-application) communication.
Its main purpose is to provide reliable, transparent, and efficient end-to-end
transfer of data between two devices in a network.

2. Functions of the Transport Layer


(Explained in Detail)
1. End-to-End Communication
The Transport Layer establishes logical communication between processes
running on different systems.

Computer Network 51
For example, your browser (HTTP) communicates with a web server (port 80)
through the Transport Layer.

2. Segmentation and Reassembly


Application data can be very large.
The Transport Layer:

Breaks the data into small segments

Numbers each segment

Sends them through the network

At the receiver:

Segments are collected

Sequence numbers help reassemble them into the original message

3. Reliability
Reliability involves ensuring complete and error-free delivery of data to the
destination.
The Transport Layer uses:

Sequence numbers

Acknowledgements (ACKs)

Timers

Retransmission strategies

Error detection via checksum

TCP is a reliable protocol, UDP is unreliable.

4. Flow Control
Flow Control prevents the sender from sending data faster than the receiver can
process.
If the receiver’s buffer fills up:

Computer Network 52
Packets may get lost

Receiver may crash

TCP uses Sliding Window Protocol to manage this.

5. Error Control
Errors can occur during transmission due to noise, signal distortion, or congestion.
Transport Layer handles errors by:

Detecting corruption using checksum

Requesting retransmission of lost or damaged packets

Ensuring no duplicate packets are accepted

6. Connection Establishment & Termination


Reliable communication requires:

1. Connection setup

2. Data transfer

3. Graceful termination

TCP uses:

Three-way handshake for connection establishment

Four-step termination to close connections

7. Multiplexing & Demultiplexing


Multiple applications can run simultaneously on the same machine (WhatsApp,
Chrome, YouTube).

Transport Layer assigns port numbers to each application.

Multiplexing: Sender side combines data from different apps

Demultiplexing: Receiver side delivers segments to correct apps

8. Congestion Control

Computer Network 53
If too much data is injected into the network, it becomes congested, causing
delays and packet loss.
The Transport Layer (specifically TCP) uses:

Slow Start

Congestion Avoidance

Fast Retransmit

Fast Recovery

These regulate the sending rate to prevent collapse.

9. QoS (Quality of Service) Support


Some applications (video calls, gaming) need:

Less delay

High throughput

Low jitter

Transport layer aims to provide QoS by managing traffic efficiently.

10. Addressing
Applications are identified using port numbers such as:

HTTP → Port 80

HTTPS → Port 443

DNS → Port 53

These help in identifying the correct destination process.

3. Transport Layer Protocols


TCP (Transmission Control Protocol)
Reliable

Computer Network 54
Connection-oriented

Provides ordered delivery

Offers flow, error, and congestion control

Used in: emails, file transfers, web browsing.

UDP (User Datagram Protocol)


Unreliable

Connectionless

Fast

No flow or error control

Used in: live streams, voice calls, gaming.

4. Design Issues in the Transport Layer


(DETAILED)
This section is very important for 20–25 mark questions.

1. Addressing (Port Numbers)


Transport Layer must identify participating processes uniquely.
It uses:

Source Port

Destination Port

Port numbers allow communication between multiple apps at the same time.

2. Establishing and Releasing Connections


A major design challenge is creating a reliable connection between sender and
receiver.

Computer Network 55
TCP uses:

1. Connection Establishment

Three-way handshake ensures both sides agree on sequence numbers


and readiness.

2. Connection Release

Ensures no data is lost during termination.

Design concern:
How to prevent half-open connections?
Solution:
TCP uses timers and sequence numbers.

3. Sequencing and Ordering


Since the network may deliver packets out of order, transport layer must:

Add sequence numbers

Reorder packets at receiver

Detect missing packets

This ensures ordered, complete data delivery.

4. Flow Control
Network conditions change constantly.
If the sender is faster, the receiver may overflow.
Problem: Buffer overflow.
Solution: Sliding Window Protocol

Window size adjusts dynamically

Receiver communicates available buffer space to sender

5. Error Control

Computer Network 56
Errors occur due to noise or dropped packets.
Transport Layer provides:

Checksums to detect corruption

ACKs to confirm correct receipt

Timers for retransmission if ACK not received

Strategies include:

Stop and Wait ARQ

Go Back N ARQ

Selective Repeat ARQ

6. Congestion Control
When too many packets enter the network, it becomes congested.
Problems caused:

Packet loss

Delay

Low throughput

Network collapse

TCP mechanisms:

Slow Start: Begin with small window, increase gradually

Congestion Avoidance: Avoid crossing the congestion threshold

Fast Retransmit: Quickly retransmit lost packets

Fast Recovery: Avoid reducing window too aggressively

7. Multiplexing & Demultiplexing


Network must handle data from many processes at the same time.
Design issue:

Computer Network 57
How to allow many-to-one and one-to-many mappings?

Solution:
Use port numbers to differentiate different application flows.

8. Quality of Service (QoS)


Transport Layer must support different data types.
For example:

Video: Low latency

File transfer: High reliability

Design issue:
How to guarantee performance?
Solution:
Prioritize traffic, allocate bandwidth efficiently.

9. Reliability vs Performance
A key design issue is the trade-off:

TCP offers reliability, but is slower

UDP offers speed, but no reliability

Therefore, the Transport Layer must choose the correct protocol based on
application needs.

10. Security
Transport Layer must ensure:

Secure connection

Data confidentiality

No unauthorized access

This is done via TLS/SSL over TCP.

Computer Network 58
5. Conclusion
The Transport Layer is a crucial part of the OSI model that ensures efficient,
reliable, and accurate communication between applications.
Its design issues such as addressing, flow control, error handling, congestion
control, sequencing, and QoS determine the overall performance of data
communication systems.
Understanding these concepts is essential for network design and for writing
high-quality exam answers.

Connection Management (Detailed


Explanation)
Connection Management refers to the complete process of establishing,
maintaining, and terminating a communication session between two devices or
processes in a network.

It is mainly used in connection-oriented protocols, such as TCP (Transmission


Control Protocol).
It ensures that data transfer occurs:

reliably

in order

without loss or duplication

with proper synchronization

Connection Management involves three major phases:

1. Connection Establishment
This is the process where the sender and receiver agree to communicate,
exchange control information, and synchronize their sequence numbers.

Computer Network 59
TCP uses a Three-Way Handshake:
This ensures both sides know:

each other’s initial sequence numbers

both are ready for communication

connection is fully open and synchronized

✔ Steps of Three-Way Handshake


Step 1: SYN
Client sends a SYN (synchronize) packet to the server

Indicates: “I want to start a connection”

Sends its initial sequence number (ISN)

Step 2: SYN + ACK


Server replies with SYN + ACK

Acknowledges the client’s SYN

Sends its own SYN with its ISN

Step 3: ACK
Client sends final ACK

Confirms that connection is established

Ready to send data

Benefits of Three-Way Handshake


Prevents old duplicate packets from creating confusion

Synchronizes both sides’ sequence numbers

Ensures both sides are active and ready

2. Data Transfer Phase

Computer Network 60
Once the connection is established, the transport layer handles actual data
transmission.

Key Features:

a) Segmentation and Reassembly


Large data is divided into segments; destination reassembles them.

b) Flow Control
Prevents the sender from overwhelming the receiver.
TCP uses Sliding Window Protocol.

c) Error Control
Detects lost/corrupted segments using:

Checksums

Acknowledgements

Retransmissions

d) Sequencing
Adds sequence numbers to maintain correct order of segments.

e) Congestion Control
Controls sending rate to prevent network congestion.

f) Full-Duplex Communication
Both sides can send and receive data simultaneously.

3. Connection Termination (Releasing the


Connection)
After data transfer, connection must be properly closed so that all resources are
freed.

Computer Network 61
TCP uses a Four-Step (Four-Way) handshake to close the connection.

✔ Steps in Connection Termination


Step 1: FIN
Client sends FIN

Indicates: “I am done sending data”

Step 2: ACK
Server sends ACK

Confirms receipt of FIN

Server may still send remaining data

Step 3: FIN
Server sends its own FIN

Indicates it is also done sending data

Step 4: ACK
Client sends final ACK

Confirms termination

Connection is closed

Why four steps?


Because the two directions are independent.
Sender may finish earlier than receiver.

4. Half-Open Connections
A half-open connection occurs when one device believes the connection is open
while the other believes it is closed.
TCP prevents this using:

Computer Network 62
Timers

Sequence number verification

RST (Reset) packets

5. Connection Management Issues


a) Duplicate Packet Problems
Old packets from previous connections must be avoided.
Handled using sequence numbers.

b) Lost or Delayed SYN Packets


Retransmissions ensure connection is not stuck.

c) Denial of Service (SYN Flood Attack)


Attacker sends many fake SYN packets.
Countered using:

SYN Cookies

Backlog queue protection

d) Proper Release
Both sides must ensure no data is pending before termination.

6. Importance of Connection Management


Provides reliable communication

Ensures proper sequencing

Avoids congestion

Avoids data duplication

Provides controlled connection start and end

Computer Network 63
Efficiently manages resources

Conclusion
Connection Management is the backbone of connection-oriented communication.
Through connection establishment (three-way handshake), reliable data transfer,
and controlled termination (four-step handshake), the transport layer provides
guaranteed, ordered, and error-free communication between applications.

SESSION LAYER – DESIGN ISSUES &


REMOTE PROCEDURE CALL
(Detailed Answer for 20–25 Marks)

1. Introduction to Session Layer


The Session Layer is the 5th layer in the OSI Reference Model.
Its main job is to create, manage, and terminate sessions between two
communicating devices or applications.
A session means a logical connection between two processes that need to
communicate for some duration.
Examples:

Logging into a remote server

Video conference call

File transfer sessions

Online banking sessions

The Session Layer provides dialogue control, synchronization, and session


recovery.

Computer Network 64
2. Functions of the Session Layer
1. Establishing Sessions
Initiates and sets communication rules between two devices.

2. Maintaining Sessions
Manages ongoing data exchange between devices.

3. Terminating Sessions
Properly closes the session after communication ends.

4. Dialogue Control
Controls who will send data and when (half-duplex/full-duplex).

5. Token Management
Allows only one user to access a critical resource by giving a token.

6. Synchronization
Places checkpoints so that long data transfers can resume after failure.

3. Design Issues of the Session Layer


(DETAILED)
These are the challenges or problems the Session Layer must solve while
providing its services.

1. Session Establishment and Release


The layer must ensure:

Proper handshake between devices

Negotiation of session parameters

Graceful session closing

Design Issue:
How to securely start and end sessions without confusion or resource wastage?

Computer Network 65
Solution:
Use structured procedures and session IDs.

2. Synchronization
When transferring long files or large data streams, failures may interrupt
communication.
Session Layer inserts synchronization points/checkpoints.
Example:
In a 1 GB file transfer, a checkpoint may be placed every 100 MB.
If failure occurs at 350 MB, only 50 MB needs to be retransmitted.
Design Issue:
Where to place checkpoints? How often should they be inserted?

3. Dialog Control
Two types of communication must be managed:

Half-duplex: One direction at a time

Full-duplex: Both directions simultaneously

Design Issue:
How to avoid data collision or confusion when two sides speak at the same time?
Session Layer solves this by regulating turns and defining speaking rules.

4. Token Management
In collaborative or shared editing applications, only one user must access a
resource at a time.
Session Layer uses a token, a kind of permission slip.
Design Issue:
How to avoid token loss, duplication, or unauthorized access?

Computer Network 66
5. Data Exchange Rules
The Session Layer must define:

Who speaks first

Who responds

How long one side can speak

What to do during inactivity

Design Issue:
How to maintain fairness and avoid deadlocks?

6. Exception Reporting
If anything fails during the session, the session layer must report errors.
Design Issue:
How to notify the application without breaking the session?

7. Session Recovery
After a failure, the session should continue from the last checkpoint.
Design Issue:
How to recover session state and resume smoothly?

4. Remote Procedure Call (RPC)


(Detailed Explanation)

1. What is RPC?
Remote Procedure Call (RPC) is a powerful mechanism that allows a program on
one computer to call a function/procedure on another computer as if it were a
local function.
In simple words:

Computer Network 67
➡️ RPC makes remote communication look like a normal function call.
There is no need to write low-level networking code.
Example:
A banking client software calling checkBalance() function on a remote server.

2. Why RPC is Needed?


Simplifies distributed computing

Hides complexities of network communication

Allows client-server communication easily

Makes remote services appear local

Useful for databases, cloud services, web apps, etc.

3. Working of RPC (Step-by-Step – Very


Important)
Step 1: Client Calls Procedure
A local function call is made → client-side stub is triggered.

Step 2: Marshalling of Arguments


Arguments are converted into a standard format (serialization).

Step 3: Sending Request


Client stub sends request to remote server using transport protocols.

Step 4: Server Receives Request


Server-side stub accepts incoming request.

Step 5: Unmarshalling
Arguments are converted back into usable format.

Computer Network 68
Step 6: Execution
Actual procedure runs on the server.

Step 7: Sending Back Results


Output is marshalled and sent back to the client.

Step 8: Client Receives Results


Client stub delivers result to the application.
➡️ Client thinks it just executed a normal function call.
4. Components of RPC
a) Client Stub
Acts as a proxy for the actual function on the client side.

b) Server Stub
Receives client requests and passes them to the server program.

c) RPC Runtime
Handles communication between both sides.

d) Marshalling / Unmarshalling
Converts data for transmission.

e) Binding
Locating the correct server program.

5. Advantages of RPC
Simplifies distributed application development

Hides network communication details

Computer Network 69
Message passing becomes automatic

Supports multiple languages/platforms

Faster development with less code

6. Disadvantages / Issues of RPC


Not suitable for real-time systems

Network failures may break remote calls

Hard to handle failures and retries

RPC may be slower than local calls

Complex to work across different OS/architectures

7. Relationship Between RPC & Session


Layer
RPC uses:

Dialogue control

Token control

Synchronization

These are all Session Layer responsibilities.


Thus, RPC works on top of Session Layer services.

Conclusion
Session Layer plays a crucial role in managing communications between
applications by handling session control, synchronization, dialog management,
and error recovery.
Remote Procedure Call (RPC) is an essential mechanism built over session and
transport services, enabling seamless communication between distributed

Computer Network 70
systems by making remote interactions appear like simple local procedure calls.
This makes both Session Layer and RPC fundamental concepts in network
communication and distributed computing.

PRESENTATION LAYER – DESIGN ISSUES


(DETAILED ANSWER)
(Best for 15–25 marks)

1. Introduction to Presentation Layer


The Presentation Layer is the 6th layer of the OSI Reference Model.
It is also known as the Syntax Layer because it deals with the format, structure,
and representation of data.
The main purpose of the Presentation Layer is to ensure that data sent by the
application on one system is understood by the application on another system,
regardless of:

hardware differences

operating system differences

data formats

character encoding

In simple words:
➡️ “The Presentation Layer acts as a translator between different systems.”
2. Functions of the Presentation Layer
1. Data Translation

2. Data Encryption / Decryption

Computer Network 71
3. Data Compression / Decompression

4. Character Code Translation

5. Syntax and Semantics of Information

6. Data Serialization

7. Graphic/Image representation formats

3. Presentation Layer Design Issues


(DETAILED)
These are the major problems/challenges the layer must solve to provide proper
data representation between different systems.
Each design issue is explained in depth for exam answers.

1. Data Format Translation


Different systems use different internal formats.
Example:

One computer may store integers in little-endian format

Another may use big-endian format

Design Issue:
✔ How to convert different formats into a common, standard format?
Solution:
The Presentation Layer converts all data into network standard formats such as
ASN.1, XDR.

2. Data Compression
Compression reduces the size of data during transmission.
Two types:

Computer Network 72
Lossless compression: ZIP, PNG, text

Lossy compression: JPEG, MP3, video

Design Issue:
✔ How to compress data to reduce bandwidth without losing meaning?
✔ How to choose between lossy and lossless compression?
Solution:
Presentation Layer implements suitable compression algorithms based on
application needs.

3. Data Encryption and Decryption


Data transmitted over networks must be secure from attackers.
Design Issue:
✔ How to ensure confidentiality, integrity, and authentication?
✔ How to manage encryption keys?
✔ How to apply encryption without affecting performance?
Solution:
Presentation Layer applies encryption methods such as:

AES

RSA

TLS/SSL encryption

The receiver decrypts using corresponding keys.

4. Character Code Translation


Different machines may use different character encoding standards.
Examples:

ASCII

Computer Network 73
EBCDIC

Unicode (UTF-8, UTF-16)

Design Issue:
✔ How to convert characters so both systems understand the text?
✔ How to maintain compatibility among old and new systems?
Solution:
Presentation Layer converts character codes into a standard form like Unicode.

5. Data Serialization
Serialization means converting structured data objects into a stream of bytes.
Used in:

Web APIs

Databases

Distributed systems

Design Issue:
✔ How to represent complex data structures (objects, arrays, lists) in a portable
format?
Solution:
Use universal formats like:

JSON

XML

Protocol Buffers

ASN.1

6. Graphic and Image Representation


Different systems support different image formats:

Computer Network 74
JPEG

GIF

PNG

TIFF

Design Issue:
✔ How to convert images so both sender and receiver can display them?
✔ How to maintain quality and reduce size?
Solution:
Presentation Layer handles image format translation and optimization.

7. Audio/Video Coding Standards


Multimedia data requires special formats.
Example:

MP3, AAC (audio)

MP4, AVI, H.264 (video)

Design Issue:
✔ How to encode multimedia data so that devices with different codecs can
process it?

✔ How to handle real-time streaming?


Solution:
Use standard multimedia codecs compatible across systems.

8. Syntax and Semantics of Data


The layer defines:

how data is structured (syntax)

what data means (semantics)

Computer Network 75
Example:

Sender sends floating-point numbers in IEEE-754 format.


Design Issue:
✔ How to ensure both systems follow the same interpretation of the data?
✔ How to avoid misinterpretation due to different architecture?
Solution:
Presentation Layer defines strict syntax rules.

9. Negotiation of Transfer Syntax


Before data transfer begins, two systems must agree on:

encoding techniques

representation formats

compression methods

Design Issue:
✔ How do systems negotiate compatible formats dynamically?
Solution:
Presentation Layer uses protocol mechanisms for negotiation (e.g., in TLS
handshake).

10. Maintaining Data Independence


Applications must remain independent of data representation.
The developer shouldn’t worry about encoding or formatting.
Design Issue:
✔ How to hide representation complexity from the application layer?
Solution:
Presentation Layer handles all transformations transparently.

Computer Network 76
4. Importance of Presentation Layer
Design
Ensures cross-platform communication

Improves security and compression

Reduces bandwidth usage

Avoids data misinterpretation

Supports advanced multimedia communication

Enables global web and distributed computing

5. Conclusion
The Presentation Layer plays a vital role in ensuring smooth communication
between different systems by handling data formatting, encryption, compression,
and code conversion.
Its design issues revolve around choosing and managing the best data
representation techniques that guarantee compatibility, security, and efficiency.
Understanding these design issues is crucial for network communication,
cybersecurity, and application development.

DATA COMPRESSION TECHNIQUES


(DETAILED)
(Perfect for 20–25 mark questions)

1. Introduction
Data Compression is the process of reducing the size of data so that it takes less
storage space and less bandwidth during transmission.

Computer Network 77
It is widely used in:

Text files

Audio

Images

Videos

Web pages

Network communication (Presentation Layer function)

Compression increases:

Efficiency

Transmission speed

Storage utilization

Data compression techniques are broadly divided into:

1. Lossless Compression

2. Lossy Compression

2. Types of Compression Techniques

A. Lossless Compression Techniques


Lossless compression restores data exactly as the original without any loss.
Used for:

Text

Program files

Databases

Any data where accuracy is required

Popular lossless methods include:

Computer Network 78
1. Run-Length Encoding (RLE)
One of the simplest and earliest compression techniques.

Working:
Repeated characters are replaced with a single character + count.

Example:

AAAAAABBBBCCDD

Compressed into:

6A4B2C2D

Uses:
Fax machines

Simple images (bitmaps)

Icons

2. Huffman Coding
A very popular encoding technique based on variable-length codes.

Idea:
Frequently occurring characters get shorter codes

Rare characters get longer codes

Steps:
1. Count frequency of all characters.

2. Build a binary tree (Huffman tree).

Computer Network 79
3. Generate variable-length codes.

4. Replace characters with codes.

Advantages:
Very effective for text

Always lossless

Used in:

ZIP files

JPEG (for metadata)

PNG

3. Lempel–Ziv (LZ77, LZ78, LZW)


This is the most widely used text compression family.

Idea:
Replace repeated patterns with references to earlier occurrences.

Variants:
LZ77 – sliding window

LZ78 – builds a dictionary

LZW – used in GIF images and UNIX compress tool

Applications:
ZIP/7ZIP

PNG

GIF

PDF

Web browsers

Computer Network 80
4. Arithmetic Coding
More powerful than Huffman coding.

Idea:
Encodes the entire message into a single fractional number between 0 and 1

More efficient for languages with skewed probability distributions (like English)

Used in:

JPEG

H.265 video codec

5. Burrows-Wheeler Transform (BWT)


Not compression alone, but a pre-processing step that rearranges data to make it
more compressible.
Used in:

bzip2

Advanced file compressors

B. Lossy Compression Techniques


Lossy compression removes unnecessary data permanently.
Used when exact reproduction is not required, especially for:

Images

Audio

Video

These techniques reduce file size drastically.

1. Transform Coding (JPEG)


Used mainly for image compression.

Computer Network 81
Steps:
1. Divide image into 8×8 blocks

2. Apply Discrete Cosine Transform (DCT)

3. Remove high-frequency components

4. Quantize data

5. Encode using Huffman coding

Advantages:
High compression ratio

Better quality for photographs

Used in:

JPEG

Web images

Digital cameras

2. Lossy Audio Compression (MP3, AAC)


Audio compression uses psychoacoustic models (human hearing characteristics).

Idea:
Remove high frequencies that humans cannot hear

Remove masked sounds

Quantize sound waves into fewer bits

Examples:
MP3 (MPEG Layer 3)

AAC (Advanced Audio Coding)

3. Video Compression (MPEG, H.264, H.265)

Computer Network 82
Video data is huge; it uses:

Image compression + motion prediction

Removing repeated frames

Removing similarity between successive frames

Techniques:
Motion Compensation

Frame prediction (I/P/B frames)

Discrete Cosine Transform

Examples:
MPEG-2 (DVD)

H.264 (Blu-ray, YouTube 1080p)

H.265 (4K videos)

3. Comparison of Lossless vs Lossy


Compression
Feature Lossless Lossy

Data recovery 100% original Irrecoverable loss

Compression ratio Moderate Very high

Used for Text, code Images, audio, video

Techniques RLE, Huffman, LZW JPEG, MP3, MP4

4. Factors Affecting Choice of


Compression
1. Type of data

Computer Network 83
2. Required quality

3. Storage and bandwidth availability

4. Processing power

5. Application requirements

5. Applications of Data Compression


File archiving (ZIP, RAR)

Web optimization

Streaming platforms

Video conferencing

Social media apps

Medical imaging

Cloud storage

6. Benefits of Compression
Reduced storage cost

Faster data transmission

Lower network load

Efficient multimedia delivery

Improved performance

7. Conclusion
Data compression is a fundamental technique that improves communication
efficiency by reducing the size of data during storage and transmission. Lossless
compression ensures perfect accuracy, while lossy compression focuses on high
reduction for multimedia at the cost of some data loss. Understanding these

Computer Network 84
techniques is crucial for networking, cloud computing, mobile apps, and
multimedia systems.

CRYPTOGRAPHY – DETAILED
EXPLANATION (20–25 MARKS)

1. Introduction
Cryptography is the science of protecting information by transforming it into an
unreadable format.

It ensures that only authorized persons can read or modify the data.
In simple words:
➡️ Cryptography = Secure communication in the presence of attackers.
Cryptography is widely used in:

Banking systems

Online transactions

Secure messaging

Password protection

Digital signatures

Network security protocols (SSL, TLS, IPsec)

2. Goals of Cryptography
Cryptography addresses four major security goals:

1. Confidentiality
Ensures information is accessible only to authorized persons.
Achieved through encryption.

Computer Network 85
2. Integrity
Assures that information has not been modified during transmission.
Achieved using:

Hash functions

MAC (Message Authentication Codes)

3. Authentication
Verifies the identity of the sender or receiver.

4. Non-repudiation
Sender cannot deny sending the message.
Achieved using digital signatures.

3. Basic Terminology
Plaintext
Original readable message.

Ciphertext
Encrypted unreadable message.

Key
A secret value used to encrypt or decrypt data.

Encryption
Process of converting plaintext → ciphertext.

Decryption
Ciphertext → plaintext.

Cryptographic Algorithm

Computer Network 86
A mathematical process used to encrypt and decrypt data.

4. Types of Cryptography
Cryptography techniques are mainly classified into:

A. Symmetric Key Cryptography (Secret


Key Cryptography)
Definition:
Same key is used for encryption and decryption.

Characteristics:
Fast

Suitable for bulk data encryption

Key must remain secret

Key distribution is difficult

Examples:
DES (Data Encryption Standard)

AES (Advanced Encryption Standard)

Blowfish

RC4

Applications:
File encryption

Wi-Fi security (WPA)

Disk encryption

Computer Network 87
B. Asymmetric Key Cryptography (Public
Key Cryptography)
Definition:
Uses two keys:

Public Key: For encryption

Private Key: For decryption

Anyone can encrypt with public key, but only the private key owner can decrypt.

Characteristics:
More secure

Slower than symmetric cryptography

Solves key distribution problem

Examples:
RSA (Rivest–Shamir–Adleman)

ECC (Elliptic Curve Cryptography)

Diffie-Hellman (Key Exchange)

Applications:
SSL/TLS certificates

Digital signatures

Email security (PGP)

C. Hash Functions
Definition:
A hash function converts data into a fixed-size hash value.

Computer Network 88
Characteristics:
No key is used

One-way function (cannot reverse it)

Used for integrity

Examples:
SHA-256

MD5 (old & insecure)

SHA-1

Applications:
Password storage

Digital signatures

Blockchain

5. Cryptographic Techniques

1. Substitution Techniques
Characters of plaintext are replaced with other characters.
Examples:

Caesar Cipher (shift letters)

Monoalphabetic Cipher

Vigenère Cipher

2. Transposition Techniques
Positions of characters are rearranged.

Computer Network 89
Examples:

Rail Fence Cipher

Columnar Transposition Cipher

3. Stream Ciphers
Encrypt data one bit/byte at a time.
Examples:

RC4

A5/1 (GSM)

4. Block Ciphers
Encrypt data in fixed-size blocks (e.g., 64 bits, 128 bits).
Examples:

AES

DES

Modes of block cipher:

ECB

CBC

CFB

OFB

CTR

6. Digital Signatures
A digital signature ensures:

Authentication

Computer Network 90
Integrity

Non-repudiation

How it works:
1. Message hash is created.

2. Hash is encrypted with private key.

3. Receiver decrypts using public key and verifies hash.

Used in:

E-commerce

Government documents

Software distribution

7. Public Key Infrastructure (PKI)


PKI manages digital certificates and public keys using:

Certificate Authorities (CAs)

Registration Authorities

Digital certificates (X.509)

Used for:

HTTPS websites

Banking login

Encrypted emails

8. Applications of Cryptography
Secure banking (NEFT/IMPS/UPI encryption)

Mobile communication

Cloud data protection

Computer Network 91
VPNs

Password storage

Blockchain & Cryptocurrency

Digital contracts

9. Advantages of Cryptography
Protects sensitive data

Ensures safe communication

Prevents identity theft

Ensures data privacy

Enables secure e-commerce

10. Limitations of Cryptography


Key management is complex

High computational cost (especially asymmetric)

Vulnerable to human errors (weak passwords)

Does not protect against user-level attacks (phishing, fraud)

Conclusion
Cryptography is a crucial part of modern digital communication, ensuring
confidentiality, integrity, authentication, and non-repudiation. Using techniques
like symmetric/asymmetric encryption, hashing, and digital signatures,
cryptography protects data from attackers and secures online transactions,
communication networks, and digital services.

Computer Network 92
FILE TRANSFER IN APPLICATION LAYER
(DETAILED EXPLANATION)
The Application Layer is the topmost layer of computer networks (OSI Model).
One of its most important functions is File Transfer—the process of sending and
receiving files between computers over a network or the internet.
File transfer allows users to upload, download, rename, delete, and manage files
on remote systems. Many protocols are designed in the application layer
specifically to support efficient, secure, and reliable file sharing.

1. Meaning of File Transfer


File transfer means moving digital files such as documents, images, audio, video,
databases, etc., from one device to another using a communication network.
It enables:

Sharing information between systems

Remote backup

Website management

Large-scale data distribution

Cloud storage

2. Why File Transfer is Needed?


(Importance)
To exchange files quickly and efficiently

To upload website content to servers

To transfer large data between organizations

To backup files on cloud servers

To support distributed computing

Computer Network 93
For remote access to files from anywhere

3. Components of File Transfer


Every file transfer involves three essential components:

(i) Client
The machine/software that requests the file (e.g., FileZilla client).

(ii) Server
The remote machine that stores the file and responds to client requests (e.g., FTP
server).

(iii) Protocol
The set of rules used to manage the transfer process (e.g., FTP, HTTP, SFTP).

4. Function of the Application Layer in File


Transfer
The application layer performs the following responsibilities:

✔ Providing User Interface


Allows users to connect to a remote server.

✔ Establishing Communication
Creates a session with the server for file exchange.

✔ Naming and Identification


Uses URLs, directory paths, and filenames.

✔ File Operations
Supports:

Computer Network 94
file upload

download

delete

rename

list directories

✔ Error Handling
Ensures retransmission if any file chunks are lost.

✔ Security
Provides encryption for authentication and safe transfer.

5. File Transfer Protocols in Application


Layer
(i) FTP – File Transfer Protocol
Traditional protocol for file transfer

Uses two connections: control and data

Allows login with username & password

Supports directory navigation

(ii) SFTP – Secure File Transfer Protocol


Uses SSH (Secure Shell)

Encrypts all data

Safer than FTP

(iii) FTPS
FTP + SSL/TLS security

Widely used in corporate environments

Computer Network 95
(iv) HTTP / HTTPS
Used when downloading files from websites

HTTPS ensures encryption

(v) TFTP – Trivial File Transfer Protocol


Very simple

No authentication

Used in routers, boot files, etc.

6. File Transfer Process (Step-by-Step)


Step 1: Client requests a connection
User opens an FTP/HTTP client and enters server address.

Step 2: Authentication
Server verifies:

username

password

certificates (in case of HTTPS / SFTP)

Step 3: Session Establishment


An application-layer session is created to exchange files.

Step 4: File Operations


The client can:

upload

download

rename

delete

Computer Network 96
create directories

Step 5: Data Transfer


Files are divided into segments, transmitted, and reassembled.

Step 6: Error Detection


Checksums ensure file integrity.

Step 7: Connection Termination


Server closes the session after operations.

7. Modes of File Transfer


(i) ASCII Mode
For text files

Converts data based on character encoding

(ii) Binary Mode


For images, videos, executables

Transfers exact byte-by-byte copy

Binary mode is the default for modern systems.

8. Security Concerns in File Transfer


Password theft

File corruption

Man-in-the-middle attacks

Unauthorized users accessing files

Solutions

Computer Network 97
Encryption (SFTP, HTTPS)

Authentication

File integrity checks

9. Advantages of File Transfer


Fast and reliable

Can transfer huge files

Allows automation

Secure (with SFTP/HTTPS)

Supports remote management

10. Disadvantages
FTP is not secure without encryption

Large files may take time

Needs stable network connection

Permissions must be managed properly

Conclusion
File transfer is one of the core functions of the Application Layer, enabling
communication, sharing, and distribution of data across networks. Using protocols
like FTP, SFTP, HTTP, and HTTPS, the application layer ensures that files are
transferred efficiently, securely, and reliably between client and server systems.
This functionality is essential for internet services, cloud systems, education,
business, and remote access.

Computer Network 98
ACCESS AND MANAGEMENT IN THE
APPLICATION LAYER (DETAILED
ANSWER)
The Application Layer is the topmost layer of the OSI model, and it provides
services directly to end users. One of its major responsibilities is Access and
Management, which refers to how users and applications access network
resources and how the system manages these resources efficiently and
securely.
Access and management determine:

How users log in

How resources are shared

How permissions are controlled

How data is accessed

How files, directories, and services are managed

These functionalities ensure smooth communication between distributed systems


over the network.

1. Meaning of Access
Access means allowing users or applications to interact with network resources. It
involves:

✔ User Authentication
Verifying identity through:

Username & Password

Biometrics

Digital certificates

Tokens

Computer Network 99
✔ Authorization
Determining what an authenticated user can do—e.g.,

Read files

Write files

Delete files

Access certain servers

✔ Resource Access Mechanisms


Application layer provides interfaces to access:

Files

Webpages

Databases

Email systems

Remote services

These mechanisms ensure controlled and secure access to network resources.

2. Meaning of Management
Management refers to controlling and supervising the use of resources on a
network. It ensures that:

The system works efficiently

No unauthorized access occurs

Resources are not misused

User actions are monitored

Application layer management includes:

File management

Directory management

Computer Network 100


Network service management

User session management

Error management

3. Functions of Access and Management


in the Application Layer
(i) User Identification and Authentication
The application layer verifies who is accessing the system.
Example protocols:

HTTPS authentication

FTP login

Email authentication (SMTP/IMAP)

(ii) Access Control


Defines user permissions using:

Access Control Lists (ACLs)

Role-Based Access Control (RBAC)

(iii) Resource Sharing


Provides shared access to:

Printers

Servers

Files

Cloud services

(iv) File and Directory Management


Application layer protocols allow:

Computer Network 101


Upload

Download

Rename

Delete

Create folders

View directory listings

Example: FTP, SFTP

(v) Session Management


Manages:

Session creation

Maintaining session state

Session termination

Example: Web login session, online banking session.

(vi) Error Reporting and Handling


Application layer handles:

Invalid commands

Permission denied

Missing files

Server unavailable

Error messages help the user understand issues.

(vii) Logging and Monitoring


Tracks:

User activity

Access history

File transfer logs

Computer Network 102


Failed login attempts

This helps in security and auditing.

(viii) Data Integrity and Security


Ensures safe and accurate access using:

Encryption

Digital signatures

Hashing

Protocols like HTTPS and SFTP provide security.

4. Access and Management Protocols


1. HTTP/HTTPS (Web Access and Management)
Access websites

Manage web sessions

Secure access using SSL/TLS

2. FTP/SFTP (File Access and Management)


File upload

File download

Directory operations

Secure encrypted transfer (SFTP)

3. SMTP/IMAP/POP3 (Email Access)


Sending and receiving emails

Managing mailboxes

4. DNS (Name Management)


Resolves domain names into IP addresses

Computer Network 103


5. SNMP (Network Management)
Monitors network devices

Gathers performance data

5. Importance of Access and Management


in Application Layer
✔ Ensures secure communication
✔ Protects resources from unauthorized users
✔ Makes file and service access easier
✔ Allows remote management of systems
✔ Supports distributed applications
✔ Provides accountability through logging
Without proper access and management, networks become insecure, unreliable,
and difficult to operate.

6. Real-Life Examples
1. Google Drive/File Transfer
Access files from any device, manage folders, share permissions.

2. Online Banking
Strict authentication, session management, secure communication.

3. Gmail
Manages inbox, folders, permissions, sessions.

Computer Network 104


4. FTP Server
Used by web developers to upload website files.

Conclusion
Access and Management are essential responsibilities of the Application Layer,
ensuring that users can safely and efficiently interact with network resources.
Through authentication, authorization, resource management, error handling, and
security protocols, the application layer provides a robust environment for data
sharing and communication. These mechanisms support the smooth functioning
of websites, email systems, file servers, cloud services, and all internet-based
applications.

ELECTRONIC MAIL (E-MAIL) – DETAILED


EXPLANATION (20 MARKS)
Electronic Mail, commonly known as E-mail, is one of the most widely used
applications of computer networks. It allows users to send, receive, store, and
manage messages electronically over the Internet. E-mail has replaced traditional
mail because it is fast, reliable, inexpensive, and can carry text, images, videos,
and documents easily.

1. Definition
Electronic Mail (E-mail) is a method of exchanging digital messages between
users using computer networks, especially the Internet.
It provides services such as:

Sending messages

Receiving messages

Attaching files

Computer Network 105


Forwarding messages

Storing messages

2. Components of an E-Mail System


An e-mail system mainly consists of the following:

(i) User Agent (UA)


A user interface through which users interact with the email system.

Examples:

Gmail

Yahoo Mail

Outlook

Thunderbird

Functions:

Compose

Send

Read

Reply

Forward

Delete messages

(ii) Message Transfer Agents (MTAs)


These transfer messages between mail servers.
Example protocol: SMTP (Simple Mail Transfer Protocol)

(iii) Mail Servers

Computer Network 106


Servers that store, forward, and manage emails.

There are two main types:

➤ Outgoing Mail Server


Uses SMTP to send emails.

➤ Incoming Mail Server


Uses POP3 or IMAP to retrieve emails.

(iv) Mailbox
A storage area on the mail server where all incoming emails are stored for a user.

(v) Message Queue


Outgoing emails are temporarily stored here before being sent to the destination
server.

3. Working of E-Mail (Step-by-Step)


Step 1: User composes an email
Using Gmail/Outlook (User Agent), the sender writes a message and adds
attachments.

Step 2: Email goes to SMTP server


The outgoing email is sent to the sender’s SMTP server.

Step 3: Email travels across the Internet


SMTP transfers the message from sender’s server to receiver’s server.

Step 4: Email reaches receiver’s mail server


The receiving server stores the message in the recipient’s mailbox.

Computer Network 107


Step 5: Receiver accesses email
The receiver uses POP3 or IMAP to download or view the message.

4. E-Mail Protocols
E-mail depends on three main protocols:

1. SMTP (Simple Mail Transfer Protocol)


Used for sending emails.

Works between mail servers (server-to-server delivery).

Uses port 25 or 587.

Functions:

✔ Accept message from sender’s UA


✔ Route it to the correct receiver’s server
✔ Ensure successful delivery
2. POP3 (Post Office Protocol Version 3)
Used for receiving emails.

Downloads emails to local device and deletes them from the server.

Suitable for single-device usage.

Functions:
✔ Retrieve messages from mailbox
✔ Simple and low bandwidth
3. IMAP (Internet Message Access Protocol)
Used for receiving emails.

Stores emails on the server; allows access from multiple devices.

Computer Network 108


Suitable for smartphones and cloud mail.

Functions:
✔ Folder management
✔ Multiple device synchronization
✔ Keeps emails on server
5. Format of an E-Mail Message
An email consists of two parts:

(i) Header
Contains control information:

To

From

Subject

Date

Cc (Carbon copy)

Bcc (Blind carbon copy)

Reply-to

Headers do not contain the actual message.

(ii) Body
Contains the actual message written by the user.

May include:

Text

HTML formatting

Attachments (images, audio, video, documents)

Computer Network 109


6. E-Mail Architecture
A simple email architecture includes:

User Agents (Gmail, Outlook)

SMTP servers

POP3/IMAP servers

Mailbox storage

DNS (to resolve domain names for mail servers)

This structure ensures reliable delivery across networks.

7. Advantages of E-Mail
✔ Fast and Instant Communication
Messages are delivered within seconds.

✔ Low Cost
No postage or printing cost.

✔ Supports Attachments
Documents, images, videos, etc.

✔ Accessible Anywhere
Using smartphone or computer.

✔ Group Mailing
Send messages to multiple users at once.

✔ Storage and Backup


Messages are stored and can be retrieved anytime.

Computer Network 110


8. Disadvantages of E-Mail
✘ Requires Internet
No internet = no communication.

✘ Spam & Junk Mail


Unwanted promotional emails.

✘ Virus Attachments
Malicious files can spread through attachments.

✘ Privacy Issues
Sensitive data may leak if accounts are compromised.

✘ Overload of Messages
Too many emails can reduce productivity.

9. Applications of E-Mail
Academic communication

Business communication

Job applications

Newsletter distribution

File exchange and cloud communication

Customer support

Marketing and promotions

Conclusion
Electronic Mail (E-mail) is a fundamental service provided by the Application
Layer of computer networks. It offers fast, reliable, and cost-effective

Computer Network 111


communication. With the help of protocols like SMTP, POP3, and IMAP, e-mail
supports sending, receiving, storing, and organizing messages efficiently. It plays
a crucial role in personal, academic, and business communication across the
globe.

VIRTUAL TERMINAL – DETAILED


EXPLANATION (10 MARKS)
A Virtual Terminal (VT) is an application layer service that allows a user on one
computer to remotely log in and interact with another computer or network
device as if they were using it directly. It provides a software-based terminal
interface that behaves like a physical terminal.
In simple words:

✔ It allows remote login


✔ You can access another computer’s command line or system
✔ You can control and manage remote devices
The concept of Virtual Terminal is essential in networking because it helps users
and administrators work on remote systems easily from anywhere.

1. Definition
A Virtual Terminal is a network service that enables a user to access a remote
computer’s resources and applications using a standardized software interface.

It creates a “virtual” session that looks like a real computer terminal.

2. Purpose of Virtual Terminal


To provide remote access to computers

To standardize communication between different systems

To allow management of network devices

Computer Network 112


To support multi-user systems

To allow remote command execution

3. How Virtual Terminal Works


1. The user opens a terminal client (like PuTTY, SSH, Telnet).

2. The client creates a session with the remote machine.

3. The user types commands in the virtual terminal.

4. The commands are executed on the remote system.

5. The output is displayed on the user’s screen.

This makes remote management simple and powerful.

4. Virtual Terminal Protocols


Virtual terminal services mainly use:

(i) TELNET (Telecommunication Network)


Classical virtual terminal protocol

Provides remote login

Sends data in plain text (not secure)

(ii) SSH (Secure Shell)


Secure version of remote terminal

Provides encrypted connection

Most widely used today

Both protocols allow keyboard input and command execution on remote systems.

5. Features of Virtual Terminal

Computer Network 113


✔ Device Independence
You can connect to any remote device regardless of hardware or OS.

✔ Interactive Communication
You can type commands and instantly see results.

✔ Remote Management
Used for configuring routers, servers, switches.

✔ Security (in SSH)


Encrypted communication prevents hacking.

✔ Standard Interface
Same terminal window works for all systems.

6. Applications of Virtual Terminal


Remote administration of servers

Network device configuration (routers, switches)

Remote login for programmers and administrators

Access to university or corporate systems

Cloud server management

Troubleshooting remote computers

7. Advantages
Easy remote access

Supports multi-platform communication

Reduces need for physical presence

Allows automation through scripts

Computer Network 114


8. Disadvantages
Telnet is insecure (no encryption)

Requires stable network connectivity

Possible vulnerability if not secured properly

Conclusion
A Virtual Terminal is an essential application-layer service that enables remote
login, remote command execution, and centralized management of systems. By
using protocols like Telnet and SSH, it provides a standardized interface to access
and control remote computers, making it crucial for system administration and
network operations.

INTERNET AND PUBLIC NETWORKS –


DETAILED EXPLANATION
The Internet and Public Networks are two important concepts in computer
networking. They form the backbone of global communication and information
exchange. Understanding them is essential for networking, cybersecurity, and
information technology subjects.

1. What is the Internet?


The Internet is a global system of interconnected computer networks that use the
TCP/IP protocol suite to communicate.

It is a network of networks, linking millions of private, public, academic,


government, and business networks.

In simple terms:
✔ The Internet connects computers across the world

Computer Network 115


✔ It allows sharing of information and services
✔ It supports communication, e-commerce, entertainment, cloud, etc.
2. Characteristics of the Internet
✔ Global Connectivity
Connects users worldwide across different continents.

✔ Decentralized Structure
No single organization owns the whole Internet.

✔ Uses Standard Protocols (TCP/IP)


Ensures that all connected devices understand each other.

✔ Supports Multiple Services


Emails, websites, online banking, social media, video streaming, cloud computing.

✔ Publicly Accessible
Anyone can connect via ISPs (Internet Service Providers).

3. Architecture of the Internet


The Internet is built using a layered architecture:

(i) Physical Layer


Cables, fibers, satellites, wireless systems.

(ii) Network Layer


IP addressing and routing.

(iii) Transport Layer


Reliable communication using TCP and UDP.

Computer Network 116


(iv) Application Layer
User services like email, web, file transfer.

It follows the TCP/IP model, which enables interoperability between different


networks.

4. Services Provided by the Internet


Email

World Wide Web (WWW)

Search engines

Online banking and shopping

Cloud storage

Social media

Video conferencing

E-learning

Entertainment (games, OTT platforms)

5. Advantages of the Internet


Instant communication

Huge information resource

Online business opportunities

Remote work and education

Global social interaction

Cost-effective services

6. Disadvantages of the Internet

Computer Network 117


Cyber crime

Privacy issues

Addiction

Spread of misinformation

Malware and viruses

PUBLIC NETWORKS
A Public Network is a communication network that is open for public use, usually
managed by telecom companies or ISPs.

Examples include:

Internet

Public switched telephone network (PSTN)

Cellular networks (4G/5G)

Wi-Fi hotspots

Public data networks (PDN)

Users can connect freely by paying subscription or using open access points.

1. Definition of Public Network


A Public Network is a network that allows general public access and is managed
by a public authority or service provider.
It supports multiple users, devices, and services.

2. Characteristics of Public Networks


✔ Open Access
Anyone can subscribe or connect.

Computer Network 118


✔ Large Coverage
National or global reach.

✔ Affordable
Cost is shared across millions of users.

✔ Standard Protocols
Uses open standards (TCP/IP, GSM, LTE).

✔ Managed by Telecom Companies


Like Jio, Airtel, BSNL, AT&T, Verizon.

3. Types of Public Networks


(i) Internet
Most widely used public network.

(ii) Public Switched Telephone Network (PSTN)


Traditional voice-calling system.

(iii) Mobile Networks


4G/5G networks used by smartphones.

(iv) Public Data Networks (PDN)


Shared networks for data services.

(v) Wi-Fi Hotspots


Public wireless internet in airports, cafes, malls.

Computer Network 119


4. Difference Between Private and Public
Networks
Public Networks Private Networks

Open for public use Restricted to employees/users

Managed by ISPs Managed by organizations

Large area coverage Specific office/building

Less secure Highly secure

Shared bandwidth Dedicated bandwidth

5. Importance of Public Networks


Provide communication to large populations

Enable Internet access

Support digital services (UPI, banking, govt portals)

Promote economic growth

Enable cloud and IoT technologies

6. Public Network Security Issues


Unauthorized access

Data theft

Eavesdropping

Malware attacks

Identity theft

Solutions
Encryption (HTTPS, VPN)

Strong authentication

Computer Network 120


Firewalls

Security updates

Conclusion
The Internet and Public Networks play a vital role in global connectivity. The
Internet acts as a worldwide communication infrastructure using TCP/IP protocols,
while Public Networks provide large-scale access for individuals and
organizations. Together, they support communication, commerce, education,
entertainment, and many modern technologies. Although they offer numerous
benefits, proper security measures are essential to protect data and users.

Computer Network 121

You might also like