Goals and Applications of Computer Networks
Goals and Applications of Computer 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:
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.
(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.
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).
(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.
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.
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
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:
(i) Nodes
Nodes are devices connected in the network:
Computers
Printers
Servers
Optical fibers
Computer Network 5
Common topologies include:
Bus Topology
Star Topology
Ring Topology
Mesh Topology
(i) Addressing
Each device has:
(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
Client-Server
Central server provides resources
Computer Network 7
Peer-to-Peer
Every system acts as both client and server
No central authority
3. NETWORK ARCHITECTURE
Network architecture is the overall design and logical framework that defines
how computers communicate.
Computer Network 8
7. Application Layer — User applications (HTTP, FTP, email)
Importance of OSI:
Provides structured communication
It has 4 layers:
Features:
Real-world implementation
Computer Network 9
Protocols ensure:
Reliable transfer
Error control
Flow control
Congestion control
Connection-Oriented Communication
Uses TCP
Reliable
Three-way handshake
Connectionless Communication
Uses UDP
Fast, no acknowledgement
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.
troubleshooting simpler
🌟Explanation)
2. OSI Model – 7 Layers (Simple
🔹 1. Physical Layer
This is the lowest layer.
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.
🔹 4. Transport Layer
Handles end-to-end communication between two devices.
Functions:
✔ Segmentation
✔ Flow control
✔ Error control
Protocols:
TCP (reliable)
Computer Network 12
UDP (fast)
🔹 5. Session Layer
Manages sessions between devices.
Example:
🔹 6. Presentation Layer
Converts data into a proper format.
Example:
🔹 7. Application Layer
This is the topmost layer.
🌟(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.
🔹 2. Connectionless Service
No prior connection made.
🔹 6. Flow Control
Ensures sender does not send too fast.
🔹
Computer Network 14
🔹 7. Error Control
Detects and fixes errors.
🔹 8. Routing Service
Finds the best path for data packets.
🌟Points)
4. Importance of the OSI Model (Simple
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
⭐in simple
2. Types of Network Topology (Explain
words)
Network topologies are of two types:
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.
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).
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.
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
Advantages:
✔ Easy to expand
✔ Good for large organizations
Disadvantages:
✘ If main backbone fails, whole network fails
✘ More cabling required
Use:
Large universities, corporate networks.
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.
2. Scalability
Network should support future expansion (e.g., adding more computers).
3. Reliability
The system should work even if one part fails.
4. Performance
Computer Network 20
Speed of data transfer, traffic load, and number of collisions.
6. Type of Organization
Small office → Bus/Star
8. Security Requirements
Sensitive networks may need mesh or hybrid for higher security.
⭐Design
4. Importance of Proper Topology
Efficient communication
Easy troubleshooting
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.
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.
Computer Network 22
1. High Performance:Deliver fast data transfer using technologies like Ethernet,
switches, and fiber cables.
(ii) Cabling
Copper cables (UTP/CAT6) for short distances.
Computer Network 23
Step 1: Requirement Analysis
Number of users
Security needs
Budget
Step 4: IP Addressing
Assign static or dynamic (DHCP) IP addresses.
Network segmentation
Computer Network 24
User authentication (802.1X)
Encryption
Troubleshooting
2. Wireless LAN (WLAN):Uses Wi-Fi; easy to expand and suitable for mobile
users.
Enhanced security
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:
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.
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.
Common in:
Leased lines
2. Wireless Point-to-Point
Uses wireless signals such as microwave, infrared, radio frequency,
Bluetooth
Common in:
Satellite communication
Computer Network 27
Cable (copper/fiber)
Wireless link
Satellite channel
(iii) Protocols
Protocols such as
HDLC
SLIP
are used to manage communication.
2. Very Secure:
The dedicated link reduces chances of hacking.
4. Reliable:
Very stable connection, preferred for business communication.
5. Simple to Install:
Fewer devices needed.
Computer Network 28
7. Disadvantages of Point-to-Point Networks
1. Not Scalable:
Only two devices can connect; cannot support many users.
3. Resource Wastage:
When communication is not happening, the link remains unused.
4. Maintenance Cost:
Long-distance leased lines are expensive to maintain.
4. Satellite communication
9. Real-Life Examples
USB cable connecting a PC to a printer
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.
1. Introduction
In computer networks, routing and congestion control are two essential functions
of the network layer and transport layer.
Congestion control ensures that the network does not get overloaded with
too much traffic.
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.
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.
Computer Network 31
5. Routing Algorithms
(i) Distance Vector Routing
Router shares distances to all networks with neighbors.
Example: RIP
Pros: Simple
Cons: Slow convergence, routing loops
Example: OSPF
Pros: Fast, accurate
Cons: Complex, more memory needed
6. Routing Tables
Routers store information in routing tables:
Destination network
Next hop
Computer Network 32
Metric (cost, distance, delay)
Interface
This causes:
Packet loss
High delay
Decreased throughput
8. Causes of Congestion
1. High traffic load
2. Slow routers
3. Insufficient bandwidth
4. Bursty traffic
Computer Network 33
10. Approaches to Congestion Control
A. Open-Loop Congestion Control (Prevention)
Prevents congestion before it occurs
Good routing
Traffic shaping
Resource reservation
Packet dropping
Choke packets
Load shedding
Backpressure
Computer Network 34
Water (packets) leaks at constant rate
Output is uniform
(iv) Backpressure
Router signals previous router to slow down
1. Slow Start
2. Congestion Avoidance
3. Fast Retransmit
4. Fast Recovery
Computer Network 35
Slow Start
Sender begins with small congestion window (cwnd)
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
13. Conclusion
Routing and congestion control are two backbone functions that ensure a network
works smoothly.
Computer Network 36
Both are essential for achieving efficient, secure, and reliable communication in
modern networks.
2. What is Internetworking?
Internetworking means:
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.
2. Transport Layer
3. Internet Layer
Each layer performs specific functions, and together they ensure reliable
internetwork communication.
Role in Internetworking:
Major Protocols:
Computer Network 38
1. TCP (Transmission Control Protocol)
Connection-oriented
Reliable
Connectionless
Role in Internetworking:
Other protocols:
Computer Network 39
IGMP (multicast management)
Role in Internetworking:
Role in Internetworking:
3. Internet layer converts segments into packets and assigns source and
destination IP addresses.
5. Network Access layer delivers packets over physical media like Wi-Fi or
Ethernet.
Computer Network 40
Frames → Packets → Segments → Application data
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.
1. Introduction
In the Internet and TCP/IP networks, communication takes place using IP (Internet
Protocol).
Two important concepts of IP are:
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)
Computer Network 42
Protocol (TCP/UDP)
Fragmentation fields
Header checksum
The header is used by routers to forward, route, and manage the packet.
3. Features of IP Packets
1. Connectionless:
Each packet travels independently without a pre-established path.
2. Best-effort Delivery:
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:
Computer Network 43
Where the packet should go (destination)
5. Types of IP Address
(A) IPv4 Address
32-bit number
Example: [Link]
1. Network ID
2. Host ID
Written in hexadecimal
Example: 2001:0db8:85a3::8a2e:0370:7334
Computer Network 44
Class Range Usage
7. Types of IP Addressing
(i) Public IP Address
Unique address used on the Internet.
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.
Computer Network 45
9. Relationship Between IP Packets and IP
Addresses
Every IP packet carries source and destination IP addresses inside its header.
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.
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.
Computer Network 46
Growth of the Internet
Cloud computing
Large-scale networks
Computer Network 47
Link-Local: Used within a local network (prefix fe80::/10)
2. Multicast Address
One-to-many communication
Prefix: ff00::/8
3. Anycast Address
One-to-nearest communication
Computer Network 48
(v) Built-in Security – IPsec
Encryption and authentication are mandatory in IPv6
(vi) No Broadcasts
Uses multicast and anycast instead
1. Version
2. Traffic Class
3. Flow Label
4. Payload Length
5. Next Header
6. Hop Limit
7. Source Address
8. Destination Address
Computer Network 49
Fixed 40-byte header
(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
Cloud computing
Enterprise 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
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.
Computer Network 51
For example, your browser (HTTP) communicates with a web server (port 80)
through the Transport Layer.
At the receiver:
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
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
5. Error Control
Errors can occur during transmission due to noise, signal distortion, or congestion.
Transport Layer handles errors by:
1. Connection setup
2. Data transfer
3. Graceful termination
TCP uses:
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
Less delay
High throughput
Low jitter
10. Addressing
Applications are identified using port numbers such as:
HTTP → Port 80
DNS → Port 53
Computer Network 54
Connection-oriented
Connectionless
Fast
Source Port
Destination Port
Port numbers allow communication between multiple apps at the same time.
Computer Network 55
TCP uses:
1. Connection Establishment
2. Connection Release
Design concern:
How to prevent half-open connections?
Solution:
TCP uses timers and sequence numbers.
4. Flow Control
Network conditions change constantly.
If the sender is faster, the receiver may overflow.
Problem: Buffer overflow.
Solution: Sliding Window Protocol
5. Error Control
Computer Network 56
Errors occur due to noise or dropped packets.
Transport Layer provides:
Strategies include:
Go Back N 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:
Computer Network 57
How to allow many-to-one and one-to-many mappings?
Solution:
Use port numbers to differentiate different application flows.
Design issue:
How to guarantee performance?
Solution:
Prioritize traffic, allocate bandwidth efficiently.
9. Reliability vs Performance
A key design issue is the trade-off:
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
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.
reliably
in order
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:
Step 3: ACK
Client sends final ACK
Computer Network 60
Once the connection is established, the transport layer handles actual data
transmission.
Key Features:
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.
Computer Network 61
TCP uses a Four-Step (Four-Way) handshake to close the connection.
Step 2: ACK
Server sends ACK
Step 3: FIN
Server sends its own FIN
Step 4: ACK
Client sends final ACK
Confirms termination
Connection is closed
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
SYN Cookies
d) Proper Release
Both sides must ensure no data is pending before termination.
Avoids congestion
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.
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.
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:
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 responds
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?
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.
Step 5: Unmarshalling
Arguments are converted back into usable format.
Computer Network 68
Step 6: Execution
Actual procedure runs on the server.
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
Computer Network 69
Message passing becomes automatic
Dialogue control
Token control
Synchronization
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.
hardware 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
Computer Network 71
3. Data Compression / Decompression
6. Data Serialization
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
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.
AES
RSA
TLS/SSL encryption
ASCII
Computer Network 73
EBCDIC
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
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.
Design Issue:
✔ How to encode multimedia data so that devices with different codecs can
process it?
Computer Network 75
Example:
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).
Computer Network 76
4. Importance of Presentation Layer
Design
Ensures cross-platform communication
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.
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
Compression increases:
Efficiency
Transmission speed
Storage utilization
1. Lossless Compression
2. Lossy Compression
Text
Program files
Databases
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
Icons
2. Huffman Coding
A very popular encoding technique based on variable-length codes.
Idea:
Frequently occurring characters get shorter codes
Steps:
1. Count frequency of all characters.
Computer Network 79
3. Generate variable-length codes.
Advantages:
Very effective for text
Always lossless
Used in:
ZIP files
PNG
Idea:
Replace repeated patterns with references to earlier occurrences.
Variants:
LZ77 – sliding window
Applications:
ZIP/7ZIP
PNG
GIF
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
bzip2
Images
Audio
Video
Computer Network 81
Steps:
1. Divide image into 8×8 blocks
4. Quantize data
Advantages:
High compression ratio
Used in:
JPEG
Web images
Digital cameras
Idea:
Remove high frequencies that humans cannot hear
Examples:
MP3 (MPEG Layer 3)
Computer Network 82
Video data is huge; it uses:
Techniques:
Motion Compensation
Examples:
MPEG-2 (DVD)
Computer Network 83
2. Required quality
4. Processing power
5. Application requirements
Web optimization
Streaming platforms
Video conferencing
Medical imaging
Cloud storage
6. Benefits of Compression
Reduced storage cost
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
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
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:
Characteristics:
Fast
Examples:
DES (Data Encryption Standard)
Blowfish
RC4
Applications:
File encryption
Disk encryption
Computer Network 87
B. Asymmetric Key Cryptography (Public
Key Cryptography)
Definition:
Uses two keys:
Anyone can encrypt with public key, but only the private key owner can decrypt.
Characteristics:
More secure
Examples:
RSA (Rivest–Shamir–Adleman)
Applications:
SSL/TLS certificates
Digital signatures
C. Hash Functions
Definition:
A hash function converts data into a fixed-size hash value.
Computer Network 88
Characteristics:
No key is used
Examples:
SHA-256
SHA-1
Applications:
Password storage
Digital signatures
Blockchain
5. Cryptographic Techniques
1. Substitution Techniques
Characters of plaintext are replaced with other characters.
Examples:
Monoalphabetic Cipher
Vigenère Cipher
2. Transposition Techniques
Positions of characters are rearranged.
Computer Network 89
Examples:
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
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.
Used in:
E-commerce
Government documents
Software distribution
Registration Authorities
Used for:
HTTPS websites
Banking login
Encrypted emails
8. Applications of Cryptography
Secure banking (NEFT/IMPS/UPI encryption)
Mobile communication
Computer Network 91
VPNs
Password storage
Digital contracts
9. Advantages of Cryptography
Protects sensitive data
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.
Remote backup
Website management
Cloud storage
Computer Network 93
For remote access to files from anywhere
(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).
✔ Establishing Communication
Creates a session with the server for file exchange.
✔ 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.
(iii) FTPS
FTP + SSL/TLS security
Computer Network 95
(iv) HTTP / HTTPS
Used when downloading files from websites
No authentication
Step 2: Authentication
Server verifies:
username
password
upload
download
rename
delete
Computer Network 96
create directories
File corruption
Man-in-the-middle attacks
Solutions
Computer Network 97
Encryption (SFTP, HTTPS)
Authentication
Allows automation
10. Disadvantages
FTP is not secure without encryption
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:
1. Meaning of Access
Access means allowing users or applications to interact with network resources. It
involves:
✔ User Authentication
Verifying identity through:
Biometrics
Digital certificates
Tokens
Computer Network 99
✔ Authorization
Determining what an authenticated user can do—e.g.,
Read files
Write files
Delete files
Files
Webpages
Databases
Email systems
Remote services
2. Meaning of Management
Management refers to controlling and supervising the use of resources on a
network. It ensures that:
File management
Directory management
Error management
HTTPS authentication
FTP login
Printers
Servers
Files
Cloud services
Download
Rename
Delete
Create folders
Session creation
Session termination
Invalid commands
Permission denied
Missing files
Server unavailable
User activity
Access history
Encryption
Digital signatures
Hashing
File download
Directory operations
Managing mailboxes
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.
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.
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
Storing messages
Examples:
Gmail
Yahoo Mail
Outlook
Thunderbird
Functions:
Compose
Send
Read
Reply
Forward
Delete messages
(iv) Mailbox
A storage area on the mail server where all incoming emails are stored for a user.
4. E-Mail Protocols
E-mail depends on three main protocols:
Functions:
Downloads emails to local device and deletes them from the server.
Functions:
✔ Retrieve messages from mailbox
✔ Simple and low bandwidth
3. IMAP (Internet Message Access Protocol)
Used for receiving emails.
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)
Reply-to
(ii) Body
Contains the actual message written by the user.
May include:
Text
HTML formatting
SMTP servers
POP3/IMAP servers
Mailbox storage
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.
✘ 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
Customer support
Conclusion
Electronic Mail (E-mail) is a fundamental service provided by the Application
Layer of computer networks. It offers fast, reliable, and cost-effective
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.
Both protocols allow keyboard input and command execution on remote systems.
✔ Interactive Communication
You can type commands and instantly see results.
✔ Remote Management
Used for configuring routers, servers, switches.
✔ Standard Interface
Same terminal window works for all systems.
7. Advantages
Easy remote access
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.
In simple terms:
✔ The Internet connects computers across the world
✔ Decentralized Structure
No single organization owns the whole Internet.
✔ Publicly Accessible
Anyone can connect via ISPs (Internet Service Providers).
Search engines
Cloud storage
Social media
Video conferencing
E-learning
Cost-effective services
Privacy issues
Addiction
Spread of misinformation
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
Wi-Fi hotspots
Users can connect freely by paying subscription or using open access points.
✔ Affordable
Cost is shared across millions of users.
✔ Standard Protocols
Uses open standards (TCP/IP, GSM, LTE).
Data theft
Eavesdropping
Malware attacks
Identity theft
Solutions
Encryption (HTTPS, VPN)
Strong authentication
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.