Advanced Computer Networking
Advanced Computer Networking
All rights reserved. This book or any portion thereof may not be
reproduced or used in any manner whatsoever without the express
written permission of the publisher except for the use of brief
quotations in a book review.
Shoolini University
Bajhol, Solan, Himachal Pradesh
173229
Editorial Board
CONTENT:
Objectives
1.1 Introduction
1.2 Definition and Evolution of Computer Networks
1.3 Goals of Computer Networking
1.4 Applications of Computer Networks
1.6 Network Topologies
1.7 Advantages and Limitations of Computer Networks
1.8 Case Study - Smart Campus Network
1.9 Activity - Identify Network Topology
1.10 Summary
1.11 Keywords
1.12 Review Questions
1.13 Further Readings
OBJECTIVES:
• Understand the basic concept of computer networks
• Learn the evolution of networking technologies
• Identify different types of computer networks
• Recognize various network topologies
• Understand applications of computer networks
2 ADVANCED COMPUTER NETWORKING
1.1 INTRODUCTION
The rapid advancement of information and communication technologies has profoundly
transformed the way individuals, organizations, and societies interact. Computer networks
form the backbone of this transformation by enabling communication, data exchange, and
resource sharing across geographically distributed systems. From educational institutions and
healthcare facilities to agricultural systems and industrial enterprises, networking infrastructure
supports almost every aspect of modern digital life.
These devices may include personal computers, servers, mobile devices, sensors and embedded
systems, connected through wired or wireless transmission media. Networking enables
collaboration, improves efficiency, and supports distributed processing, making it an essential
component of modern information systems.
3 SHOOLINI UNIVERSITY
The evolution of computer networks reflects the growing demand for efficient data sharing and
collaborative computing. Initially, computing systems operated as standalone machines with
no direct communication capabilities. Data transfer was performed using physical storage
media, such as magnetic tapes and disks, which was time-consuming and inefficient. The
introduction of Local Area Networks (LANs) enabled communication within organizations,
facilitating file sharing and printer access. The development of client-server architecture
introduced centralized resource management, improving scalability and security. A major
milestone was the emergence of the Internet, which interconnected networks globally and
enabled applications such as email, web services, and electronic commerce. In recent years,
networking has evolved further with the introduction of cloud computing, mobile
4 ADVANCED COMPUTER NETWORKING
communication, Internet of Things (IoT), and edge computing, enabling intelligent and
real-time applications.
1.4.1 Education
In education, networks enable virtual classrooms, e-learning platforms, digital libraries and
collaborative research. Students and educators can access learning resources remotely and
participate in interactive learning environments.
1.4.2 Agriculture
Agricultural systems use networking for precision farming, where sensor networks monitor
soil moisture, temperature, and environmental conditions. This improves crop yield and
resource utilization.
1.4.3 Healthcare
Healthcare networks support telemedicine, electronic health records, remote diagnostics, and
real-time patient monitoring, improving accessibility and quality of medical services.
IoT integrates interconnected devices in smart homes, industrial automation, and smart city
infrastructures. Networks enable real-time data exchange and intelligent decision-making.
7 SHOOLINI UNIVERSITY
A LAN connects devices within a limited area such as homes, offices or campuses. It offers
high-speed communication and low latency.
A MAN covers a city or metropolitan region, interconnecting multiple LANs and supporting
urban communication infrastructure.
A WAN spans large geographical areas, connecting networks across regions or countries. The
Internet is the largest example of a WAN.
8 ADVANCED COMPUTER NETWORKING
All devices share a single communication backbone. It is simple and cost-effective but lacks
fault tolerance.
9 SHOOLINI UNIVERSITY
Devices form a closed loop and data travels sequentially. Failure of one node can disrupt
communication.
All devices connect to a central hub or switch. It offers easy management and fault isolation.
Multiple paths exist between nodes, providing high reliability and redundancy.
Tree topology follows a hierarchical structure, while hybrid topology combines features of
multiple topologies.
10 ADVANCED COMPUTER NETWORKING
• Efficient communication
11 SHOOLINI UNIVERSITY
• Resource sharing
• Remote access
Limitations
• Security vulnerabilities
• Network congestion
• Management complexity
1.10 SUMMARY
This chapter introduced the fundamental concepts of computer networks, including their
definition, evolution, goals, and applications. Different network types and topologies were
discussed along with their advantages and limitations. Practical elements such as a case study
and activity provided insight into real-world networking implementations, forming a
foundation for advanced networking topics.
1.11 KEYWORDS
• Computer Network
• Network Topology
• Bus Topology
• Star Topology
• Mesh Topology
c) WAN
d) PAN
• Which topology uses a central connecting device?
a) Bus
b) Ring
c) Star
d) Mesh
• Precision farming is an application of networking in:
a) Education
b) Healthcare
c) Agriculture
d) Banking
• Which is NOT an advantage of computer networks?
a) Resource sharing
b) Scalability
c) Security risks
d) Remote access
Short Answer
Long Answer
CONTENT:
Objectives
2.1 Introduction to Layered Architecture
2.2 Need for Layering in Computer Networks
2.5 OSI vs TCP/IP Comparison
2.6 Encapsulation and Decapsulation
2.7 Advantages of Layered Architecture
2.8 Summary
2.9 Keywords
2.10 Review Questions
2.11 Further Readings
OBJECTIVES:
• Understand the concept of layered architecture
• Learn the need for layering in networks
• Identify the layers of the OSI model
• Understand the TCP/IP model basics
• Learn encapsulation and decapsulation processes
16 ADVANCED COMPUTER NETWORKING
The adoption of layering in computer networks is driven by several technical and practical
requirements that arise from the complexity and scale of modern communication systems.
Network communication involves numerous tasks such as data formatting, addressing, routing,
error detection, flow control, and application-level interaction. Handling all these tasks within
a single system would result in an overly complex design that is difficult to understand and
manage. Layering decomposes this complexity by assigning specific responsibilities to
individual layers, making the system more structured and manageable. Each layer focuses on
a limited set of functions, allowing network designers and engineers to understand, implement,
and test individual components independently. This separation of concerns significantly
reduces system complexity.
and adopted globally. This enables interoperability between devices and systems manufactured
by different vendors.
For example, a computer manufactured by one company can communicate with a router
manufactured by another company because both adhere to standardized layered protocols.
Without layering and standardization, such interoperability would be extremely difficult to
achieve.
Layered architecture allows each layer to evolve independently without affecting the overall
system. Improvements or changes in one layer do not require redesigning other layers, provided
that interfaces remain unchanged.
When a network problem occurs, layered architecture helps isolate the issue to a specific layer.
For example, if data is not reaching its destination, the problem could be investigated at the
physical or data link layer. If data reaches the destination but appears corrupted, the issue may
lie in the transport or application layer. This structured troubleshooting approach reduces
diagnostic time and improves network reliability.
Protocols and services developed for a particular layer can be reused across different
networking systems. This reusability reduces development effort, lowers cost, and improves
consistency across networks.
19 SHOOLINI UNIVERSITY
The Open Systems Interconnection (OSI) model is a conceptual framework that standardizes
the functions of a communication system into seven distinct layers. Developed to provide a
universal standard for network communication, the OSI model serves as a reference model that
explains how data moves through a network from source to destination.
Each OSI layer performs a specific role and communicates logically with its corresponding
layer at the destination system. This peer-to-peer communication ensures consistency and
reliability in data exchange.
The Application Layer is the topmost layer of the OSI model and provides network services
directly to end-user applications. It acts as an interface between the user and the network,
enabling applications to access network resources. Functions of the Application Layer include
file transfer, electronic mail, web services and remote login. This layer does not provide
services to other layers but instead supports user-oriented network processes.
The Presentation Layer is responsible for data representation and translation. It ensures that
data sent by the application layer of one system can be correctly interpreted by the application
layer of another system. Key functions include data formatting, character encoding, data
compression, and encryption/decryption. By handling these tasks, the presentation layer
ensures compatibility between systems with different data formats and architectures.
This layer provides synchronization points that allow communication to resume from a known
state in case of interruption, improving reliability in long data transfers.
The Transport Layer is responsible for end-to-end communication between source and
destination systems. It ensures reliable or unreliable data delivery depending on the protocol
used. Functions include segmentation and reassembly of data, flow control to prevent buffer
overflow, and error control to ensure data integrity. This layer plays a critical role in
maintaining quality of service.
The Network Layer handles logical addressing and routing of data packets across
interconnected networks. It determines the best path for data transmission based on network
conditions and topology. This layer enables internetworking by allowing data to travel across
multiple networks to reach its destination.
The Data Link Layer provides reliable node-to-node data transfer over a physical medium. It
handles framing, physical addressing, error detection and flow control at the link level. By
ensuring error-free transmission between adjacent nodes, this layer forms a reliable foundation
for higher layers.
The Physical Layer defines the physical characteristics of the transmission medium and is
responsible for transmitting raw bits over the network. It specifies voltage levels, data rates,
transmission modes and physical connectors. This layer forms the hardware foundation of
network communication.
22 ADVANCED COMPUTER NETWORKING
The TCP/IP model is a practical networking model developed to support real-world internet
communication. Unlike the OSI model, which is primarily conceptual, the TCP/IP model is
protocol-oriented and widely implemented. The TCP/IP model consists of four layers, each
combining multiple OSI layers based on functional similarity. The Application Layer in
TCP/IP integrates the functions of the OSI application, presentation, and session layers. The
Transport Layer provides end-to-end communication services. The Internet Layer handles
logical addressing and routing, while the Network Access Layer manages physical
transmission and hardware addressing. The simplicity and robustness of the TCP/IP model
make it suitable for large-scale, heterogeneous networks such as the internet.
The OSI model emphasizes strict layering and clear separation of functions, making it ideal for
educational and theoretical understanding. In contrast, the TCP/IP model prioritizes practicality
and efficiency, resulting in fewer layers and flexible implementation. While OSI provides
detailed conceptual clarity, TCP/IP dominates real-world networking due to its scalability,
robustness, and protocol support.
Encapsulation is the process by which data moves down the protocol stack at the sender’s side,
with each layer adding its own header (and sometimes trailer) containing control information.
This layered packaging ensures proper addressing, routing, and error detection.
Decapsulation is the reverse process at the receiver’s side, where headers are removed layer by
layer as data moves upward through the protocol stack. This systematic removal ensures that
each layer processes only the information relevant to it.
2.8 SUMMARY
This chapter presented an in-depth theoretical discussion on layered architecture in computer
networks. It explained the need for layering, detailed the OSI model and its seven layers,
discussed the TCP/IP model, and highlighted key differences between the two models. The
concepts of encapsulation and decapsulation were elaborated to demonstrate data flow in
layered communication systems. Together, these concepts form the foundation of modern
network design and operation.
2.9 KEYWORDS
• Network stack
• Decapsulation
• OSI Model
• Abstraction
• Protocol
25 SHOOLINI UNIVERSITY
CONTENT:
Objectives
3.1 Introduction
3.2 Transmission Media
3.3 Data Link Layer Services
3.4 Framing
3.5 Flow Control Techniques
3.6 Error Detection and Correction
3.7 Role of Physical and Data Link Layers in Real Networks
3.8 Summary
3.9 Keywords
3.10 Review Questions
3.11 Further Readings
OBJECTIVES:
• Understand Physical and Data Link layer functions
• Identify types of transmission media
• Learn services of the Data Link Layer
• Understand framing and flow control techniques
• Learn error detection and correction methods
27 SHOOLINI UNIVERSITY
3.1 INTRODUCTION
In the layered architecture of computer networks, the Physical Layer and the Data Link Layer
together form the lowest levels of the communication hierarchy. These layers are responsible
for the actual movement of data across communication channels and for ensuring reliable
delivery between directly connected devices.
While higher layers deal with routing, end-to-end communication, and application services, the
Physical and Data Link layers focus on the fundamental task of transmitting data accurately
from one node to the next. The Physical Layer handles the transmission of raw binary data in
the form of electrical, optical, or radio signals. It defines the physical characteristics of the
communication medium and the signaling mechanisms required for data transfer. However,
transmission alone is not sufficient, as physical communication is prone to noise, interference,
and signal distortion.
To overcome these limitations, the Data Link Layer is responsible for organizing bits into
structured frames, detecting transmission errors, and regulating the flow of data between
adjacent nodes. Together, these layers provide a reliable foundation upon which all higher-
layer networking functions are built.
Transmission media refers to the physical path used to carry signals from a sender to a receiver.
The choice of transmission medium has a direct impact on data rate, transmission distance,
cost, and reliability of communication. Transmission media are broadly classified into guided
(wired) and unguided (wireless) media.
Guided transmission media provide a physical conduit that guides signals along a specific path.
These media are commonly used in wired networks due to their predictable performance and
controlled signal propagation.
29 SHOOLINI UNIVERSITY
Twisted pair cable consists of pairs of insulated copper wires twisted together to reduce
electromagnetic interference and crosstalk. Twisting causes interference to affect both wires
equally, allowing the receiver to cancel out noise. Twisted pair cables are widely used in local
area networks and telephone systems due to their low cost and ease of installation. However,
they offer limited bandwidth and are more susceptible to noise compared to other guided media.
Coaxial Cable
Coaxial cable consists of a central conductor surrounded by insulation, a metallic shield and an
outer protective covering. The shielding provides better protection against noise and
interference, allowing coaxial cables to support higher data rates over longer distances than
twisted pair cables. Coaxial cables are commonly used in cable television networks and
broadband internet connections. Despite their improved performance, they are bulkier and
more expensive than twisted pair cables
Optical fiber uses light signals to transmit data through thin strands of glass or plastic. Since
light is immune to electromagnetic interference, optical fiber offers extremely high bandwidth,
low signal attenuation, and high security. Optical fiber is widely used in backbone networks,
long-distance communication, and high-speed data transmission. Although it offers superior
performance, its installation and maintenance require specialized equipment and expertise.
Unguided transmission media transmit data through electromagnetic waves without using a
physical conductor. These media support wireless communication and mobility.
Radio Waves
Radio waves are omnidirectional and can penetrate obstacles such as walls and buildings. They
are used in wireless networks, cellular communication, and broadcasting. However, radio
communication is vulnerable to interference and security threats.
30 ADVANCED COMPUTER NETWORKING
Microwaves
Microwaves are directional and require line-of-sight communication between transmitter and
receiver. They are used for point-to-point links and satellite communication, offering high data
rates over long distances.
Infrared Communication
Infrared signals are used for short-range communication and require direct line-of-sight. They
are commonly used in remote controls and short-distance device communication.
3.4 FRAMING
Framing is the process of dividing a continuous stream of bits received from the Physical Layer
into discrete data units known as frames. Frames provide structure to the data stream and enable
synchronization, error detection and flow control. Different framing methods are used to mark
the beginning and end of frames. Character count framing specifies the number of characters
in a frame, while flag-based framing uses special bit or byte patterns as frame delimiters. Bit
stuffing or byte stuffing techniques are used to prevent ambiguity between data and control
information. Framing ensures that the receiver can correctly identify and process individual
data units.
31 SHOOLINI UNIVERSITY
Flow control regulates the rate of data transmission between sender and receiver to prevent
buffer overflow and data loss. Without flow control, a fast sender may transmit data faster than
the receiver can process it. The stop-and-wait technique requires the sender to wait for an
acknowledgment after sending each frame. While simple, this method results in poor channel
utilization for high-speed networks. The sliding window technique allows multiple frames to
be transmitted before receiving acknowledgments. By adjusting the window size, sliding
window protocols improve throughput and efficiency.
Parity Check
Parity checking is a simple error detection technique that adds an extra bit to data to make the
number of 1s either even or odd. At the receiver, parity is recalculated to detect errors. While
effective for detecting single-bit errors, parity checks cannot detect multiple-bit errors reliably.
CRC is a powerful error detection technique that treats data as a binary polynomial and
performs division using a generator polynomial. The remainder obtained is appended to the
data and transmitted. At the receiver, the same operation is performed to verify data integrity.
CRC is widely used due to its strong error detection capability.
34 ADVANCED COMPUTER NETWORKING
3.8 SUMMARY
This chapter presented an in-depth theoretical discussion of the Physical and Data Link layers.
It explained transmission media, services of the Data Link Layer, framing techniques, flow
control mechanisms, and error detection and correction methods. These layers together provide
the essential foundation for reliable data communication in computer networks.
3.9 KEYWORDS
• Physical Layer
• Data Link Layer
• Transmission Media
• Framing
• Cyclic Redundancy Check (CRC)
Answers
1-c, 2-d, 3-c, 4-b, 5-c, 6-b, 7-b, 8-b, 9-c, 10-c
CONTENT:
Objectives
4.1 Introduction to the Network Layer
4.2 Logical Addressing
4.3 Packet Forwarding
4.4 Fragmentation
4.5 Datagram vs Virtual Circuit
4.6 Role of Network Layer in Internetworking
4.8 Keywords
4.9 Review Questions
4.10 Further Readings
OBJECTIVES:
• Understand the role of the Network Layer
• Learn the concept of logical addressing
• Understand packet forwarding process
• Learn fragmentation in networks
• Differentiate datagram and virtual circuit networks
39 SHOOLINI UNIVERSITY
Logical addressing refers to the assignment of addresses that uniquely identify devices across
an internetwork. Unlike physical (MAC) addresses, which are hardware-dependent, logical
addresses are software-defined and hierarchical, allowing scalable and flexible network
communication.
40 ADVANCED COMPUTER NETWORKING
The most widely used logical addressing scheme is the Internet Protocol (IP) addressing
system. Logical addresses consist of two main parts:
Logical addressing enables routers to determine the destination network and forward packets
accordingly. Because logical addresses are independent of hardware, devices can move
between networks and still communicate effectively by acquiring new logical addresses.
Packet forwarding is the process by which a router receives a packet on one interface and
forwards it to the appropriate outgoing interface toward its destination. Forwarding decisions
are made based on the destination logical address contained in the packet header.
Each router maintains a forwarding table, which maps destination network addresses to
outgoing interfaces. When a packet arrives, the router examines the destination address,
searches the forwarding table, and forwards the packet to the next hop. Packet forwarding
operates independently at each router.
The packet may traverse multiple routers before reaching its final destination. This hop-by-hop
forwarding mechanism ensures scalability and fault tolerance in large networks.
Scenario:
A packet is sent from Host A (IP: [Link]) to Host B (IP: [Link]).
Steps involved:
3. Router R1 checks its forwarding table and forwards the packet to Router R2.
4. Router R2 repeats the process and forwards the packet toward the destination network.
This example demonstrates how packet forwarding enables end-to-end delivery across multiple
networks.
43 SHOOLINI UNIVERSITY
4.4 FRAGMENTATION
Fragmentation is the process of dividing a large packet into smaller fragments so that it can be
transmitted over a network with a smaller maximum transmission unit (MTU). Different
networks may support different frame sizes, and packets exceeding the MTU must be
fragmented. Fragmentation is performed at the Network Layer, typically by the sender or by
intermediate routers. Each fragment is treated as an independent packet and carries its own
header information. At the destination, fragments are reassembled to reconstruct the original
packet.
In a datagram network, each packet is treated independently and routed separately. Routers
make forwarding decisions for each packet based on the destination address. Packets may take
44 ADVANCED COMPUTER NETWORKING
different paths and arrive out of order. The internet is a classic example of a datagram network.
This approach offers flexibility, scalability and robustness.
In a virtual circuit network, a logical path is established between sender and receiver before
data transmission begins. All packets follow the same path and arrive in sequence. Virtual
circuits provide predictable performance and easier congestion control but require setup and
maintenance overhead.
technologies and ensures global connectivity. The success of the internet is largely attributed
to the efficiency and scalability of Network Layer functions.
Network Layer services can be broadly classified into datagram-based (connectionless) and
virtual circuit-based (connection-oriented) approaches.
4.7 SUMMARY
This chapter discussed the fundamental concepts of the Network Layer. It explained logical
addressing and its importance in internetworking, described packet forwarding mechanisms
with an example, and examined fragmentation as a solution to MTU limitations. The chapter
also compared datagram and virtual circuit approaches, highlighting their advantages and
limitations. Together, these concepts form the foundation of routing and data delivery in
modern networks.
4.8 KEYWORDS
• Network Layer
46 ADVANCED COMPUTER NETWORKING
• Logical Addressing
• Packet Forwarding
• Fragmentation
• Datagram
c) Datagram
d) Packet reservation
CHAPTER 5- IP ADDRESSING
CONTENT:
Objectives
5.1 Introduction to IP Addressing
5.2 IPv4 Address Structure
5.3 Classful Addressing
5.4 Subnetting
5.5 CIDR (Classless Inter-Domain Routing)
5.6 IPv6 Overview
5.7 Summary
5.8 Keywords
5.9 Review Questions
5.10 Further Readings
OBJECTIVES:
• Understand the concept of IP addressing
• Learn IPv4 address structure
• Identify classful addressing types
• Understand subnetting basics
• Learn CIDR and IPv6 overview
49 SHOOLINI UNIVERSITY
IPv4 (Internet Protocol version 4) uses a 32-bit addressing scheme, allowing for
approximately 4.3 billion unique addresses. These addresses are typically represented in dotted
decimal notation, where the 32 bits are divided into four 8-bit sections called octets.
50 ADVANCED COMPUTER NETWORKING
Binary: 11000000.10101000.00000001.00000010
Decimal: [Link]
The division between network and host portions depends on the addressing method used
(classful, subnetted, or CIDR).
Classful addressing is an early IP addressing scheme where IPv4 addresses are divided into
predefined classes based on the value of the first octet.
D 224–239 — — Multicast
E 240–255 — — Experimental
Classful addressing leads to inefficient address utilization. Organizations often received far
more IP addresses than required, resulting in rapid depletion of the IPv4 address space. These
limitations led to the development of subnetting and CIDR.
52 ADVANCED COMPUTER NETWORKING
5.4 SUBNETTING
Subnetting is the process of dividing a large network into smaller logical sub-networks called
subnets. It improves address utilization, network performance and security. Subnetting is
achieved by borrowing bits from the host portion of the IP address to create additional network
identifiers.
A subnet mask is a 32-bit value that identifies the network portion of an IP address.
Example:
IP Address: [Link]
/24 + 2 = /26
256 − 192 = 64
CIDR is an advanced addressing method that removes class boundaries and allows flexible
allocation of IP addresses using prefix notation.
56 ADVANCED COMPUTER NETWORKING
Format:
IP_address / prefix_length
Example: [Link]/20
The prefix length specifies the number of bits used for the network portion.
Problem:
How many hosts are supported by [Link]/22?
Solution:
Total bits = 32
Network bits = 22
Host bits = 32 − 22 = 10
CIDR supports route aggregation, reducing routing table size and improving routing
efficiency by combining multiple networks into a single routing entry.
• Written in hexadecimal
Example:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
5.7 SUMMARY
This chapter provided an extensive discussion on IP addressing concepts. It explained IPv4
structure and classful addressing, highlighting their limitations. Subnetting and CIDR were
discussed with step-by-step numerical examples to demonstrate efficient address allocation.
The chapter concluded with an overview of IPv6 and its advantages, emphasizing its role in
future internet expansion.
5.8 KEYWORDS
• IP Address
• Subnetting
• Subnet Mask
• CIDR
• IPv6
ACTIVITY WORKSHEET
Activity:
Design an IP addressing scheme for a college network with:
• 4 departments
• Each department requires at least 50 hosts
• One central server network
Tasks:
CONTENT:
Objectives
6.1 Introduction
6.2 Address Resolution Protocol (ARP)
6.3 Reverse Address Resolution Protocol (RARP)
6.4 Internet Control Message Protocol (ICMP)
6.5 Role of ARP, RARP and ICMP in Troubleshooting
6.6 Wireshark Activity
6.7 Summary
6.8 Keywords
6.9 Review Questions
6.10 Further Readings
OBJECTIVES:
• Understand the purpose of ARP
• Learn the working of RARP
• Identify ICMP functions and message types
• Understand role of protocols in troubleshooting
• Learn basic Wireshark packet analysis
62 ADVANCED COMPUTER NETWORKING
6.1 INTRODUCTION
Network communication relies on a set of well-defined protocols that enable devices to identify
each other, report errors, and manage control information. While the Internet Protocol (IP) is
responsible for logical addressing and packet delivery, it cannot function effectively in
isolation.
These protocols operate closely with IP and are often referred to as auxiliary network-layer
protocols. They do not carry application data but provide essential control and management
functions that ensure reliable and efficient network operation.
In a local network, devices communicate using physical (MAC) addresses, whereas IP uses
logical addresses. ARP bridges this gap by mapping an IP address to its corresponding MAC
address.
Without ARP, a device would know the destination IP address but would be unable to deliver
frames at the Data Link Layer.
1. ARP Request
When a host wants to send a packet to another host on the same network, it checks its
ARP cache for the destination MAC address. If no entry is found, the host broadcasts
an ARP request containing the destination IP address.
2. ARP Reply
The device with the matching IP address responds with an ARP reply containing its
MAC address.
This process minimizes broadcast traffic by caching address mappings for a limited duration.
The ARP cache is a temporary table maintained by hosts and routers. It stores recently resolved
IP-to-MAC mappings, reducing the need for repeated ARP broadcasts and improving network
efficiency.
65 SHOOLINI UNIVERSITY
RARP performs the reverse function of ARP. While ARP resolves an IP address from a MAC
address, RARP allows a device to discover its IP address using its MAC address. This
protocol was designed for diskless workstations that did not have permanent storage to store
IP configuration.
In RARP, a device broadcasts a RARP request containing its MAC address. A RARP server,
which maintains a database of MAC-to-IP mappings, responds with the corresponding IP
address. The requesting device then configures itself using the received IP address.
Due to these limitations, RARP has largely been replaced by more advanced protocols such as
BOOTP and DHCP.
ICMP is used for error reporting and network diagnostics. Unlike ARP and RARP, ICMP
does not assist in address resolution but instead provides feedback about network conditions to
67 SHOOLINI UNIVERSITY
hosts and routers. ICMP messages are encapsulated within IP packets and are not used to carry
user data.
68 ADVANCED COMPUTER NETWORKING
ICMP messages are broadly classified into error-reporting messages and query messages.
a) Error-Reporting Messages
• Destination Unreachable – Indicates that a packet could not reach its destination
b) Query Messages
• ICMP supports tools such as ping and traceroute, which are essential for connectivity
testing, latency measurement, and route analysis.
Network administrators rely heavily on ICMP-based tools to verify network health and identify
failures.
70 ADVANCED COMPUTER NETWORKING
Procedure
Observation
• ICMP Echo Request and Echo Reply messages appear during ping operations.
• Packet details show source and destination addresses, message type, and checksum
information.
Learning Outcome
Students gain hands-on understanding of protocol operation, packet structure and real-time
network behaviour.
71 SHOOLINI UNIVERSITY
6.7 SUMMARY
This chapter discussed essential network-layer protocols that support IP communication. ARP
enables mapping between logical and physical addresses, RARP allows address discovery for
diskless systems, and ICMP provides error reporting and diagnostic capabilities. Together,
these protocols ensure smooth network operation and effective troubleshooting.
6.8 KEYWORDS
• ARP
• RARP
• ICMP
• MAC Address
• Network Troubleshooting
c) BOOTP / DHCP
d) FTP
ANSWER KEY
1-b, 2-c, 3-c, 4-d, 5-b, 6-c, 7-c, 8-c, 9-d, 10-c
CONTENT:
Objectives
7.1 Introduction
7.2 Routing Principles
7.3 Distance Vector Routing
7.4 Link State Routing
7.5 Bellman-Ford Algorithm
7.6 Dijkstra Algorithm
7.7 Detailed Comparison: Distance Vector vs Link State Routing
7.8 Simulation Exercise
7.9 Summary
7.10 Keywords
7.11 Review Questions
7.12 Further Readings
OBJECTIVES:
• Understand basic routing concepts
• Learn routing principles and metrics
• Identify distance vector routing
• Understand link state routing
• Learn shortest path algorithms
75 SHOOLINI UNIVERSITY
7.1 INTRODUCTION
Routing is one of the most critical functions performed at the Network Layer of a computer
network. It determines the path that data packets follow from a source to a destination across
one or more interconnected networks. Unlike packet forwarding, which is a local operation
performed by a router for each incoming packet, routing is a global process that involves
discovering, selecting, and maintaining optimal paths through the network. A routing
algorithm is a procedure used by routers to decide the best path for packet delivery. These
algorithms evaluate various parameters such as hop count, bandwidth, delay, cost, and
reliability to determine efficient routes. The effectiveness of routing algorithms directly
impacts network performance, scalability, convergence speed and fault tolerance. As networks
grow in size and complexity, the role of efficient routing algorithms becomes increasingly
important.
Routing principles define the fundamental concepts and design goals that guide routing
decisions in a network.
• Hop count
• Bandwidth
• Delay
• Load
• Reliability
• Static routing uses manually configured routes and is suitable for small, stable
networks.
Distance Vector Routing is a dynamic routing approach in which each router maintains a
routing table (distance vector) containing the distance to every known destination and the next
hop to reach it. Routers periodically exchange their routing tables with immediate neighbours.
Each router:
1. Maintains a distance vector listing destination networks, cost and next hop
The distance vector algorithm is based on the Bellman-Ford algorithm, which iteratively
calculates shortest paths.
• Periodic updates
• Simple implementation
• Slow convergence
• Routing loops
• Count-to-infinity problem
Techniques such as split horizon, poisoned reverse and hold-down timers are used to reduce
these problems.
Link State Routing is a dynamic routing approach in which each router has complete
knowledge of the network topology. Instead of sharing routing tables, routers share information
about the state of their links.
81 SHOOLINI UNIVERSITY
• Faster convergence
Link State Routing provides better scalability and faster adaptation to network changes, making
it suitable for large and complex networks.
The Bellman-Ford algorithm is a shortest path algorithm used as the foundation for distance
vector routing. It computes the shortest paths from a source node to all other nodes by
repeatedly relaxing edges.
Given graph:
From source A:
• Distance to B = 2
83 SHOOLINI UNIVERSITY
• Distance to C = 2 + 1 = 3
• Distance to D = 2 + 3 = 5
Link Cost
A–B 2
A–C 5
B–C 1
B–D 3
C–D 2
Dijkstra’s algorithm is a shortest path algorithm used in link state routing protocols. It
calculates the shortest path from a source to all other nodes using a greedy approach.
Using the same graph, Dijkstra’s algorithm builds a shortest path tree from the source node
and ensures optimal, loop-free routing.
Distance vector routing relies on local information and neighbour updates, whereas link state
routing uses global topology knowledge. This fundamental difference affects convergence
speed, scalability and reliability.
85 SHOOLINI UNIVERSITY
Distance vector routing is easier to configure and maintain but struggles with large dynamic
networks. Link state routing requires more resources but provides superior performance,
reliability, and scalability.
86 ADVANCED COMPUTER NETWORKING
Tasks:
7.9 SUMMARY
This chapter presented a detailed discussion of routing algorithms. It explained routing
principles, distance vector routing, and link state routing, along with their underlying
algorithms—Bellman-Ford and Dijkstra. Numerical examples illustrated algorithm operation,
while a detailed comparison highlighted their strengths and limitations. Routing algorithms
form the backbone of efficient and reliable network communication.
7.10 KEYWORDS
• Routing
• Distance Vector Routing
• Link State Routing
• Bellman-Ford Algorithm
• Dijkstra Algorithm
87 SHOOLINI UNIVERSITY
CONTENT:
Objectives
8.1 Introduction
8.2 Services Provided by the Transport Layer
8.3 Port Addressing
8.4 Multiplexing and Demultiplexing
8.5 Reliable vs Unreliable Transport
8.6 Importance of Transport Layer in Network Communication
8.7 Summary
8.8 Keywords
8.9 Review Questions
8.10 Further Readings
OBJECTIVES:
• Understand the role of the Transport Layer
• Learn Transport Layer services
• Understand port addressing
• Learn multiplexing and demultiplexing
• Differentiate reliable and unreliable transport
89 SHOOLINI UNIVERSITY
8.1 INTRODUCTION
The Transport Layer occupies a crucial position in the layered architecture of computer
networks. It acts as a bridge between the Network Layer, which is responsible for routing
packets across networks, and the Application Layer, which provides services directly to end
users.
While the Network Layer ensures delivery of packets from one host to another, it does not
guarantee reliable, orderly, or error-free communication. These responsibilities are fulfilled by
the Transport Layer. The Transport Layer provides end-to-end communication services
between processes running on different hosts.
It ensures that data generated by an application at the source is delivered correctly, completely,
and in the proper order to the corresponding application at the destination. By offering a variety
of services such as reliability, flow control, error control, and congestion control, the Transport
Layer plays a vital role in maintaining the quality and efficiency of network communication.
The Transport Layer offers several essential services that support reliable and efficient
communication between applications.
90 ADVANCED COMPUTER NETWORKING
Unlike the Network Layer, which delivers data between hosts, the Transport Layer enables
communication between specific processes on those hosts.
Data received from the Application Layer is often large and must be broken into smaller units
called segments before transmission. This process is known as segmentation. At the receiving
end, the Transport Layer reassembles the segments to reconstruct the original data stream.
Flow control ensures that a fast sender does not overwhelm a slow receiver. The Transport
Layer regulates the amount of data transmitted based on the receiver’s buffer capacity,
preventing data loss due to buffer overflow.
The Transport Layer detects and corrects errors that may occur during data transmission. It
uses mechanisms such as checksums, acknowledgements and retransmissions to ensure data
integrity.
Congestion control prevents excessive traffic from overloading the network. By adjusting
transmission rates based on network conditions, the Transport Layer helps maintain stable and
efficient communication.
91 SHOOLINI UNIVERSITY
A port number is a logical identifier assigned to a process or service running on a host. Each
segment contains source and destination port numbers, which together with IP addresses
uniquely identify a communication session.
Port addressing is a fundamental mechanism that enables the Transport Layer to deliver data
to the correct application process.
92 ADVANCED COMPUTER NETWORKING
• Well-known ports (0–1023): Reserved for standard services such as web and email
Port addressing allows multiple applications to share the same network connection without
interference.
93 SHOOLINI UNIVERSITY
Multiplexing and demultiplexing are key Transport Layer functions that support concurrent
communication between multiple applications.
8.4.1 Multiplexing
Multiplexing is the process by which the Transport Layer at the sender accepts data from
multiple application processes, adds appropriate headers, and forwards the segments to the
Network Layer. Each segment is tagged with port numbers to identify the source application.
8.4.2 Demultiplexing
Demultiplexing is the reverse process performed at the receiver. The Transport Layer examines
the destination port number in each incoming segment and delivers the data to the appropriate
application process.
Transport Layer services can be broadly classified into reliable and unreliable transport
mechanisms, depending on the level of assurance required by applications.
Reliable transport ensures that data is delivered accurately, in sequence, and without loss. It
provides several guarantees that are essential for applications requiring data integrity and
correctness.
• Connection-oriented communication
• Sequencing of segments
Reliable transport is suitable for applications such as file transfer, email, and web
communication, where correctness of data is critical.
• Connectionless communication
• No acknowledgements or retransmissions
• Minimal overhead
Unreliable transport is suitable for real-time applications such as video streaming, online
gaming, and voice communication, where timely delivery is more important than perfect
accuracy.
8.7 SUMMARY
This chapter discussed the fundamental concepts of the Transport Layer. It explained the
services provided by the Transport Layer, the importance of port addressing, and the role of
multiplexing and demultiplexing. A detailed comparison of reliable and unreliable transport
highlighted how different application requirements are met. The Transport Layer plays a
central role in enabling efficient, flexible and dependable end-to-end communication.
8.8 KEYWORDS
• Transport Layer
• Port Addressing
97 SHOOLINI UNIVERSITY
• Multiplexing
• Reliable Transport
• Unreliable Transport
CONTENT:
Objectives
9.1 Introduction
9.2 User Datagram Protocol (UDP)
9.3 Transmission Control Protocol (TCP)
9.4 Comparison of TCP and UDP
9.5 Use Cases of TCP and UDP
9.6 Wireshark Analysis Activity
9.7 Summary
9.8 Keywords
9.9 Review Questions
9.10 Further Readings
OBJECTIVES:
• Understand TCP and UDP basics
• Learn features of UDP protocol
• Understand features of TCP protocol
• Compare TCP and UDP
• Identify use cases of TCP and UDP
99 SHOOLINI UNIVERSITY
9.1 INTRODUCTION
At the Transport Layer of the TCP/IP architecture, protocols are responsible for providing end-
to-end communication services between application processes running on different hosts.
While the Transport Layer defines the services required for communication, specific transport
protocols implement these services in different ways.
Among these protocols, Transmission Control Protocol (TCP) and User Datagram
Protocol (UDP) are the most widely used and form the backbone of modern internet
communication. TCP and UDP represent two contrasting approaches to transport-layer
communication. TCP emphasizes reliability, accuracy, and ordered delivery, whereas UDP
focuses on speed, simplicity, and low overhead. Understanding these protocols is essential
for selecting the appropriate transport mechanism for different applications and for diagnosing
performance and reliability issues in networks.
• No flow control: The sender transmits data without considering receiver capacity.
• No congestion control: UDP does not adjust its transmission rate based on network
conditions.
100 ADVANCED COMPUTER NETWORKING
These characteristics make UDP suitable for applications where speed is more important than
reliability.
The UDP header is simple and consists of only 8 bytes, making it one of the smallest protocol
headers.
Because of its small header and lack of control mechanisms, UDP introduces minimal delay
and processing overhead.
When an application sends data using UDP, the Transport Layer encapsulates the data into a
UDP segment by adding the UDP header. The segment is then passed to the Network Layer
101 SHOOLINI UNIVERSITY
for routing. At the receiver, UDP delivers the data directly to the destination application based
on the port number, without performing error recovery or reordering.
These features make TCP robust and suitable for critical data transmission.
The TCP header is more complex and larger than the UDP header, with a minimum size of 20
bytes.
Field Description
Field Description
The TCP header supports mechanisms for reliability, flow control, and congestion control.
TCP communication begins with connection establishment, followed by reliable data transfer,
and ends with connection termination. During data transmission, TCP continuously monitors
acknowledgements and network conditions, retransmitting lost segments and adjusting its
transmission rate as needed.
TCP prioritizes data integrity and correctness at the cost of increased overhead and latency.
UDP sacrifices reliability to achieve faster transmission and lower delay. The choice between
TCP and UDP depends on application requirements, network conditions, and performance
constraints.
TCP is preferred in applications where accuracy and completeness of data are essential:
• Remote login
UDP is used in applications where speed and real-time performance are more important than
reliability:
• Video streaming
• Online gaming
• DNS queries
107 SHOOLINI UNIVERSITY
Objective:
To analyze and compare TCP and UDP packets using Wireshark and understand their header
fields and behaviour in real network communication.
Procedure:
Observation
Analysis
Wireshark clearly highlights the complexity of TCP compared to the simplicity of UDP. TCP’s
additional fields support reliability and congestion control, while UDP’s lightweight structure
supports faster transmission.
Learning Outcome
Students gain practical insight into protocol behaviour, packet structure and performance
differences between TCP and UDP.
9.7 SUMMARY
This chapter presented a comprehensive discussion of TCP and UDP protocols. It explained
the features and header formats of both protocols, compared their design philosophies, and
discussed their use cases.
9.8 KEYWORDS
• TCP
• UDP
• Reliable Transport
• Connectionless Protocol
• Port Number
110 ADVANCED COMPUTER NETWORKING
CONTENT:
Objectives
10.1 Introduction
10.2 Characteristics of TCP
10.3 TCP Segment Structure
10.4 TCP Connection-Oriented Communication
10.5 Three-Way Handshake Mechanism
10.6 Importance of Three-Way Handshake
10.7 TCP State Transition During Connection Establishment
10.9 Summary
10.10 Keywords
10.11 Review Questions
10.12 Further Readings
OBJECTIVES:
• Understand TCP characteristics
• Learn TCP segment structure
• Understand TCP connection process
• Learn three-way handshake mechanism
• Understand TCP state transitions
112 ADVANCED COMPUTER NETWORKING
10.1 INTRODUCTION
The Transport Layer plays a crucial role in the layered architecture of computer networks by
providing end-to-end communication services between processes running on different hosts.
While the Network Layer is responsible for logical addressing and routing, the Transport Layer
ensures that data is delivered reliably in sequence and without duplication, depending on the
protocol used. Transmission Control Protocol (TCP) is one of the core protocols of the Internet
Protocol Suite and is designed to provide reliable, connection-oriented communication. It is
extensively used by applications that require guaranteed delivery, such as web browsing, file
transfer, email communication and remote login. TCP overcomes the limitations of unreliable
network services by incorporating mechanisms such as connection establishment, flow control,
error control, congestion control and orderly connection termination. These mechanisms
collectively ensure that data transmission remains efficient and dependable even under varying
network conditions.
• Reliable Data Transfer: Reliability is the core strength of TCP. Each byte of data
transmitted is assigned a sequence number, allowing the receiver to reorder segments
correctly and detect missing data. Acknowledgements are sent to confirm successful receipt
of data, and if an acknowledgement is not received within a specified time, TCP retransmits
the lost or corrupted segment. Additionally, TCP uses checksums to detect transmission
errors, ensuring that only error-free data is delivered to the application layer.
113 SHOOLINI UNIVERSITY
• Byte Stream Service: Unlike protocols that treat data as discrete packets, TCP provides a
byte stream service. It views the data sent by applications as a continuous stream of bytes
without preserving message boundaries. TCP segments this stream into manageable units
for transmission and reassembles them at the receiver in the correct order. This abstraction
simplifies application design and ensures smooth and orderly data delivery.
These characteristics make TCP a preferred protocol for applications where data integrity and
correctness are critical.
A TCP segment consists of a header followed by application data. The header contains essential
control information required for reliable communication.
• ACK – Acknowledgement
• FIN – Finish
• RST – Reset
• PSH – Push
• URG – Urgent
7) Window
Used for flow control.
8) Checksum
Ensures error detection.
9) Urgent
Points to urgent data, if any.
The process of establishing this connection is achieved using the Three-Way Handshake
mechanism, which is fundamental to TCP reliability.
The Three-Way Handshake is a method used by TCP to establish a connection between two
hosts. It ensures synchronization of sequence numbers and confirms that both ends are ready
to transmit data.
Steps Involved
Step 1: SYN
• The client sends a TCP segment with the SYN flag set
• Includes an initial sequence number (ISN)
Step 2: SYN-ACK
Step 3: ACK
• Prevents half-open connections: The handshake ensures that both the client and server
explicitly acknowledge each other’s connection requests before data transfer begins. This
prevents situations where one host believes a connection is established while the other
does not, thereby avoiding half-open or incomplete connections that could lead to data loss
or resource wastage.
• Allocates necessary resources at both ends: During the handshake process, both the
client and server allocate buffers, initialize control variables and reserve system resources
118 ADVANCED COMPUTER NETWORKING
required for the connection. This preparation ensures that once the connection is
established, data transfer can proceed smoothly and efficiently.
Without this mechanism, TCP would be vulnerable to miscommunication, data loss and
security risks.
• CLOSED
The CLOSED state indicates that there is no active connection between the sender and
receiver. At this stage, no resources are allocated for communication. A client begins
the connection process from this state by initiating a connection request, while a server
moves out of this state when it starts listening for incoming connections.
• LISTEN
In the LISTEN state, the server is ready and waiting for incoming connection requests
from clients. The server has allocated minimal resources and is monitoring a specific
port for SYN segments. This state is essential for accepting new connections without
actively initiating them.
• SYN-SENT
The SYN-SENT state occurs on the client side after it sends a SYN segment to request
a connection. In this state, the client is waiting for a response from the server. If a SYN-
ACK is received, the connection process continues; if no response arrives within a
certain time, the client may retransmit the request or terminate the attempt.
• SYN-RECEIVED
The SYN-RECEIVED state is entered by the server after it receives a SYN segment
from the client and responds with a SYN-ACK. At this stage, the server has partially
established the connection and is waiting for the client’s final ACK to confirm
successful synchronization.
119 SHOOLINI UNIVERSITY
• ESTABLISHED
The ESTABLISHED state indicates that the connection has been successfully set up at
both ends. Sequence numbers are synchronized, resources are fully allocated and
reliable data transfer can begin. Most of the data exchange between applications occurs
while the connection remains in this state.
These states help TCP manage connection reliability and detect abnormal termination.
Figure: TCP State Transition Diagram Showing Connection Establishment and Connection
Termination
120 ADVANCED COMPUTER NETWORKING
• Prevents data corruption: TCP connection setup enables the use of sequence numbers,
acknowledgements and checksums throughout the communication session. These
mechanisms help detect lost, duplicated or corrupted segments and ensure that only error-
free data is delivered to the receiving application, maintaining data integrity
• Enables effective congestion and flow control: Once a connection is established, TCP
can dynamically regulate the rate of data transmission based on receiver buffer capacity
(flow control) and network conditions (congestion control). This prevents buffer overflow
at the receiver and avoids network congestion, leading to stable and efficient data transfer.
10.9 SUMMARY
This chapter discussed the fundamental mechanisms of TCP that enable reliable transport layer
communication. It explained the role of TCP in providing connection-oriented services, its key
characteristics, segment structure and the importance of the Three-Way Handshake.
The connection establishment process, state transitions and advantages of TCP setup were also
elaborated. Together, these mechanisms ensure accurate, secure and efficient data transmission
across modern computer networks.
121 SHOOLINI UNIVERSITY
10.10 KEYWORDS
• Transport Layer
• TCP
• Connection-Oriented Protocol
• Sequence Number
• Three-Way Handshake
CONTENT:
Objectives
11.1 Introduction
11.2 Domain Name System (DNS)
11.3 Hypertext Transfer Protocol (HTTP)
11.4 Hypertext Transfer Protocol Secure (HTTPS)
11.5 File Transfer Protocol (FTP)
11.6 Email Protocols
11.7 Comparison of Email Protocols
11.8 Activity
11.9 Summary
11.10 Keywords
11.11 Review Questions
11.12 Further Readings
OBJECTIVES:
• Understand Application Layer functions
• Learn the working of DNS
• Understand HTTP and HTTPS protocols
• Learn FTP and email protocols
• Identify real-world applications of protocols
123 SHOOLINI UNIVERSITY
11.1 INTRODUCTION
The Application Layer is the topmost layer in both the OSI and TCP/IP reference models and
is directly responsible for providing network services to end users and application programs.
Unlike lower layers, which focus on data transmission, routing and error control, the
Application Layer defines how applications interact with the network and how user requests
are translated into meaningful network communication. This layer does not represent a single
piece of software; instead, it consists of a collection of protocols that support services such as
web access, file transfer, electronic mail, remote login and name resolution. Application layer
protocols determine the format of messages, request-response mechanisms, authentication
procedures and error reporting methods used by networked applications. In modern Internet
communication, application layer protocols operate over reliable transport services (usually
TCP) and play a critical role in ensuring usability, security and efficiency. Without these
protocols, users would not be able to browse websites, send emails or download files in a
structured and standardized manner.
The Domain Name System (DNS) is a distributed and hierarchical naming system that
translates human-readable domain names into IP addresses required for communication
between networked devices. Since remembering numerical IP addresses is impractical for
users, DNS acts as the “phonebook of the Internet.”
125 SHOOLINI UNIVERSITY
Computers communicate using IP addresses, whereas humans prefer meaningful names. DNS
bridges this gap by mapping domain names to IP addresses, enabling seamless Internet usage.
DNS Hierarchy
Features of DNS
• Distributed architecture
126 ADVANCED COMPUTER NETWORKING
• Fault tolerance
HTTP is an application layer protocol used for transferring hypertext and multimedia content
over the World Wide Web. It follows a client–server architecture, where the browser acts as
a client and the web server responds to requests.
Working of HTTP
HTTP Methods
• 200 – OK
Limitations of HTTP
• No encryption
• Vulnerable to attacks
Despite limitations, HTTP remains efficient for general web content delivery.
HTTPS is the secure version of HTTP, designed to protect sensitive information exchanged
over the Internet. It uses SSL/TLS encryption to ensure secure communication.
Security Features
• Data encryption
Working of HTTPS
Advantages of HTTPS
• Prevents eavesdropping
FTP Architecture
FTP Modes
Applications of FTP
• Data backup
• Software distribution
Limitations
• No encryption
• Security risks
• Push-based protocol
11.8 ACTIVITY
Activity: Browser Developer Tools
Objective:
To understand real-time application layer communication.
136 ADVANCED COMPUTER NETWORKING
Steps:
1. Open a website
3. Observe:
• HTTP/HTTPS requests
• Status codes
• Response times
Learning Outcome: Students gain practical insight into how application layer protocols
operate behind the scenes.
This demonstrates how multiple application layer protocols work together to deliver seamless
digital services.
137 SHOOLINI UNIVERSITY
11.9 SUMMARY
This chapter examined the role and functioning of major application layer protocols that enable
Internet communication. DNS facilitates name resolution, HTTP and HTTPS support web
communication, FTP enables file transfer and email protocols manage electronic messaging.
Together, these protocols form the backbone of modern Internet applications, ensuring
accessibility, reliability and security.
11.10 KEYWORDS
• Application Layer
• DNS
• HTTP
• HTTPS
• FTP
• SMTP
• POP3
• IMAP
• Web Communication
• Internet Protocols
CONTENT:
Objectives
12.1 Introduction
12.2 Wireless Local Area Networks (WLAN – IEEE 802.11)
12.3 Mobile IP
12.4 Cellular Networks Overview
12.5 Challenges in Wireless and Mobile Networks
12.6 Summary
12.7 Keywords
12.8 Review Questions
12.9 Further Readings
OBJECTIVES:
• Understand wireless and mobile network concepts
• Learn WLAN architecture and standards
• Understand Mobile IP working
• Learn basics of cellular networks
• Identify challenges in wireless networks
139 SHOOLINI UNIVERSITY
12.1 INTRODUCTION
Wireless and mobile networks play a vital role in modern communication systems by enabling
data transmission without the use of physical cables. Unlike wired networks, wireless networks
rely on electromagnetic waves such as radio waves, microwaves and infrared signals to
transmit information. This allows users to access network services with greater flexibility and
mobility. Mobile networks further enhance wireless communication by supporting user
movement across different geographical locations while maintaining continuous connectivity.
The rapid growth of smartphones, laptops, tablets and Internet of Things (IoT) devices has
significantly increased the demand for reliable wireless and mobile communication.
Applications such as mobile internet access, video streaming, online education, telemedicine
and cloud services depend heavily on wireless and mobile networks. Despite their advantages,
wireless and mobile networks face several challenges, including limited bandwidth, signal
interference, mobility management issues and security vulnerabilities. Understanding the
architecture, working and limitations of these networks is essential for designing efficient and
secure communication systems.
• Station (STA): A station refers to any wireless device such as a laptop, smartphone or
tablet that is equipped with a wireless network interface.
• Access Point (AP): An access point acts as a central device that connects wireless
stations to the wired network and controls communication within its coverage area.
• Basic Service Set (BSS): A BSS is a group of stations that communicate with each
other through a single access point.
140 ADVANCED COMPUTER NETWORKING
• Infrastructure Mode: In this mode, all communication takes place through an access
point. It is the most commonly used mode in organizations and public networks.
• Ad-hoc Mode: In ad-hoc mode, wireless devices communicate directly with each other
without the use of an access point. This mode is suitable for temporary or small
networks.
Different versions of the IEEE 802.11 standard provide varying data rates and operate on
different frequency bands:
141 SHOOLINI UNIVERSITY
Wireless networks use Carrier Sense Multiple Access with Collision Avoidance
(CSMA/CA) to regulate access to the shared wireless medium. Since collision detection is
difficult in wireless environments, CSMA/CA attempts to avoid collisions before data
transmission.
• Channel sensing
• Waiting for an interframe space
• Random backoff
• Frame transmission
• Acknowledgement reception
Security is a major concern in WLANs due to the open nature of wireless communication.
Common security mechanisms include:
Improper security configuration can expose WLANs to unauthorized access and data
interception.
12.3 MOBILE IP
12.3.1 Need for Mobile IP
• Mobile Node (MN) – A device that moves from one network to another
• Home Agent (HA) – Maintains information about the mobile node’s location
• Foreign Agent (FA) – Provides services to the mobile node in the visited network
• Care-of Address (CoA) – Temporary address assigned to the mobile node
This mechanism ensures uninterrupted communication even while the device is moving.
Advantages of Mobile IP
through home and foreign agents. This transparency simplifies application design and
operation.
• Session Persistence: Mobile IP ensures that active transport-layer and application-
layer sessions are preserved during movement. Since the IP address remains unchanged,
connections established using protocols such as TCP do not need to be re-established
when the mobile node changes networks.
• Compatibility with Existing Internet Infrastructure: Mobile IP is designed to work
with the existing IP architecture and does not require major changes to routers or end
systems. This backward compatibility allows Mobile IP to be deployed incrementally
without disrupting current network operations.
• Support for User Mobility: Mobile IP enables true mobility by allowing users to move
freely across different networks while remaining connected. This is particularly useful
for mobile professionals, wireless devices and applications that require constant
network access.
Limitations of Mobile IP
• Triangle Routing Problem: In Mobile IP, data packets from the correspondent node
are first sent to the home agent and then tunneled to the mobile node’s care-of address.
This indirect routing, known as triangle routing, increases path length and results in
higher delay and inefficient use of network resources.
• Increased Latency: The tunneling mechanism used in Mobile IP adds extra processing
and transmission overhead. Encapsulation and decapsulation of packets at the home
and foreign agents introduce delays, which can degrade performance for delay-sensitive
applications such as voice and video communication.
• Security Vulnerabilities: Mobile IP introduces additional security concerns, such as
unauthorized registration, spoofing of care-of addresses, and interception of tunneled
packets. Protecting registration messages and tunneled data requires strong
authentication and encryption mechanisms, increasing system complexity.
• Scalability Issues: As the number of mobile nodes increases, the home agent may
become a bottleneck due to the need to maintain location information and handle
tunneling for many devices. This can limit the scalability of Mobile IP in large-scale
networks.
145 SHOOLINI UNIVERSITY
Handoff is the process of transferring an active call or data session from one cell to another as
the user moves. Efficient handoff mechanisms are essential to maintain service continuity and
quality.
• Limited Bandwidth: Wireless spectrum is limited and shared among users, leading to
congestion and reduced performance.
• Signal Interference and Noise: Wireless signals are affected by interference, fading
and environmental obstacles.
• Mobility Management: Maintaining seamless connectivity during movement requires
efficient handoff and location management.
• Security Challenges: Wireless networks are vulnerable to eavesdropping, spoofing and
unauthorized access.
• Power Consumption Constraints: Mobile devices rely on batteries, and continuous
communication increases power usage.
• Quality of Service (QoS) Issues: Providing consistent QoS is difficult due to variable
network conditions.
• Scalability: Managing a large number of mobile users increases network complexity.
147 SHOOLINI UNIVERSITY
12.6 SUMMARY
This chapter discussed the fundamentals of wireless and mobile networks. It explained WLAN
architecture and operation, Mobile IP and its working, and the basic structure of cellular
networks. The chapter also highlighted the major challenges faced by wireless and mobile
communication systems. Understanding these concepts is essential for designing efficient,
secure and scalable wireless networks.
148 ADVANCED COMPUTER NETWORKING
12.7 KEYWORDS
• Wireless Networks
• IEEE 802.11
• Mobile IP
• Cellular Networks
• Handoff
CONTENT:
Objectives
13.1 Introduction
13.2 CIA Triad
13.3 Firewalls
13.4 Intrusion Detection System (IDS)
13.5 Encryption
13.6 SSL/TLS
13.7 Security Scenario Analysis
13.8 Summary
13.9 Keywords
13.10 Review Questions
13.11 Further Readings
OBJECTIVES:
• Understand basics of network security
• Learn CIA triad principles
• Identify types of firewalls
• Understand IDS and its working
• Learn encryption and SSL/TLS concepts
150 ADVANCED COMPUTER NETWORKING
13.1 INTRODUCTION
Network Security refers to the protection of computer networks and the data transmitted over
them from unauthorized access, misuse, modification, and disruption. In modern digital
environments, networks form the backbone of communication systems, supporting services
such as web applications, cloud computing, online banking, e-commerce, and institutional
databases. As dependence on networked systems increases, so does exposure to security threats
including malware, hacking, phishing, denial-of-service attacks, and data breaches. Network
security employs a combination of hardware devices, software mechanisms, cryptographic
techniques, and security policies to safeguard network infrastructure and information. Its
objective is not only to prevent unauthorized access but also to ensure reliable data
transmission, continuous service availability, and protection of sensitive information. Effective
network security mechanisms operate in a layered manner, providing preventive, detective, and
corrective controls to counter evolving cyber threats.
13.2.1 Confidentiality
Confidentiality ensures that information is accessible only to authorized users and systems. In
network environments, confidentiality is achieved through authentication mechanisms, access
control policies, encryption techniques, and secure communication protocols. By restricting
data access, confidentiality prevents unauthorized disclosure of sensitive information such as
passwords, personal records, financial data, and institutional databases. Failure to maintain
confidentiality can result in data leakage, identity theft, and violation of privacy, making it a
critical component of network security.
13.2.2 Integrity
Integrity refers to the assurance that data remains accurate, consistent, and unaltered during
transmission or storage. Network security mechanisms such as cryptographic hash functions,
151 SHOOLINI UNIVERSITY
message authentication codes, and digital signatures are used to verify that data has not been
tampered with. Integrity protection is essential to prevent unauthorized modification,
accidental corruption, or malicious alteration of data, which could otherwise lead to incorrect
decision-making and system malfunction.
13.2.3 Availability
Availability ensures that network services, systems, and data are accessible to authorized users
whenever required. It is maintained through redundancy, fault tolerance, regular maintenance,
and protection against attacks such as denial-of-service (DoS) and distributed denial-of-service
(DDoS). A lack of availability can disrupt organizational operations, reduce productivity, and
affect service continuity. Hence, availability is equally important as confidentiality and
integrity.
13.3 FIREWALLS
152 ADVANCED COMPUTER NETWORKING
153 SHOOLINI UNIVERSITY
A Firewall is a network security device or software that monitors and controls incoming and
outgoing network traffic based on predefined security rules. It acts as a barrier between a trusted
internal network and an untrusted external network such as the internet.
Firewalls analyze data packets and decide whether to allow or block them based on parameters
such as IP address, port number, protocol type, and session state.
• Packet Filtering Firewall: Packet filtering firewalls examine individual packets and
allow or deny them based on source address, destination address, port number, and
protocol. They are fast and efficient but provide limited security as they do not inspect
packet content.
• Stateful Inspection Firewall: Stateful firewalls monitor the state of active connections
and make decisions based on session information. By tracking connection states, they
offer improved security compared to packet filtering firewalls.
• Proxy Firewall: Proxy firewalls operate at the application layer and act as
intermediaries between users and external servers. They inspect application-level data
and provide higher security, though they may introduce latency.
• Next-Generation Firewall (NGFW): NGFWs integrate traditional firewall functions
with intrusion detection, intrusion prevention, and deep packet inspection, offering
enhanced protection against modern threats.
Firewalls prevent unauthorized access, enforce security policies, reduce exposure to external
threats, and serve as the first line of defense in network security architecture.
• Network-Based IDS (NIDS): NIDS monitors traffic flowing across the network and
detects suspicious activities such as port scanning, flooding attacks and malware
propagation.
• Host-Based IDS (HIDS): HIDS is installed on individual systems and monitors log
files, file integrity, system calls and user activities.
IDS provides real-time alerts, enabling administrators to respond quickly to potential threats.
156 ADVANCED COMPUTER NETWORKING
13.5 ENCRYPTION
157 SHOOLINI UNIVERSITY
Encryption is the process of converting readable data (plaintext) into an unreadable form
(ciphertext) to protect information from unauthorized access.
Symmetric encryption uses a single shared secret key for both encryption and decryption. It is
computationally efficient and suitable for encrypting large volumes of data. Common
symmetric algorithms include AES and DES. However, secure key distribution is a major
limitation.
Asymmetric encryption uses a pair of keys: a public key for encryption and a private key for
decryption. It supports secure key exchange and digital signatures. Algorithms such as RSA
and ECC are widely used, though they are slower than symmetric methods.
Modern communication systems use hybrid encryption, combining asymmetric encryption for
secure key exchange and symmetric encryption for fast data transmission.
158 ADVANCED COMPUTER NETWORKING
13.6 SSL/TLS
159 SHOOLINI UNIVERSITY
Secure Sockets Layer (SSL) and Transport Layer Security (TLS) are cryptographic
protocols designed to secure communication over computer networks.
SSL/TLS involves:
SSL/TLS is widely used in HTTPS, online banking, email communication, and virtual private
networks to protect sensitive information from interception and tampering.
An educational institution experiences unauthorized access to its internal database due to weak
firewall rules and absence of intrusion detection systems.
Problems Identified:
Result
The application of layered network security significantly reduced vulnerabilities and improved
overall protection.
13.8 SUMMARY
This chapter presented a detailed discussion of network security concepts, beginning with the
CIA triad as the foundation of security principles. It explained the role of firewalls and intrusion
detection systems in protecting networks, followed by encryption techniques and SSL/TLS
protocols for secure communication. The chapter also demonstrated practical application
through a security scenario analysis. Together, these mechanisms ensure secure, reliable, and
resilient network operations.
13.9 KEYWORDS
• CIA Triad
• Firewall
• Intrusion Detection System
• Encryption
• SSL/TLS
CONTENT:
Objectives
14.1 Introduction
14.2 Internet of Things (IoT) Networking
14.3 Software-Defined Networking (SDN)
14.4 Cloud Networking
14.5 Future Trends in Networking
14.6 Summary
14.7 Keywords
14.8 Review Questions
14.9 Further Readings
OBJECTIVES:
• Understand emerging networking technologies
• Learn basics of IoT networking
• Understand SDN architecture and benefits
• Learn cloud networking concepts
• Identify future trends in networking
163 SHOOLINI UNIVERSITY
14.1 INTRODUCTION
The continuous advancement of digital technologies has led to an unprecedented growth in
network usage, data generation, and interconnected devices. Traditional networking
approaches, which rely heavily on static configurations and hardware-based control
mechanisms, are increasingly inadequate in handling modern requirements such as real-time
communication, massive scalability, dynamic traffic management, and intelligent automation.
To overcome these limitations, emerging networking technologies have been developed,
focusing on flexibility, programmability, efficiency, and intelligent decision-making.
Emerging networking technologies redefine how networks are designed, deployed and
managed.
They integrate software-driven control, virtualization, cloud infrastructure and intelligent data
processing to support applications such as smart cities, autonomous systems, industrial
automation, healthcare monitoring, and global cloud services. These technologies enable
networks to adapt dynamically to changing conditions, support heterogeneous devices, and
provide high performance with optimized resource utilization. Among the most significant
emerging networking technologies are Internet of Things (IoT) networking, Software-Defined
Networking (SDN) and cloud networking. In addition, future trends such as artificial
intelligence-based networking, edge computing and next-generation wireless technologies
continue to shape the evolution of modern communication systems.
IoT networking exhibits several distinct characteristics that differentiate it from conventional
networking systems:
• Massive scalability: IoT networks are designed to support thousands or even millions
of connected devices, requiring scalable addressing and routing mechanisms.
• Low power operation: Most IoT devices are battery-powered and must operate for
extended periods with minimal energy consumption.
• Real-time data transmission: Many IoT applications require timely data delivery for
monitoring and control purposes.
These characteristics demand specialized networking architectures and protocols optimized for
efficiency and reliability.
IoT networking commonly follows a layered architecture that organizes communication and
processing functions:
• Device Layer: This layer consists of sensors and actuators responsible for data
generation and physical interaction with the environment.
• Gateway Layer: Gateways aggregate data from multiple devices, perform protocol
translation, and provide connectivity to external networks.
166 ADVANCED COMPUTER NETWORKING
• Network Layer: This layer handles data transmission using wired or wireless
networks, ensuring reliable and secure communication.
• Application Layer: The application layer processes data, performs analytics, and
provides services to end users.
IoT networking plays a crucial role in enabling smart systems across various domains. In
healthcare, IoT networks support remote patient monitoring and wearable devices. In
agriculture, they enable precision farming through real-time environmental monitoring.
Industrial IoT networks enhance automation, predictive maintenance, and operational
efficiency. Without reliable networking infrastructure, the full potential of IoT applications
cannot be realized.
In SDN, the control plane is managed by a centralized controller that maintains a global view
of the network and determines how traffic should be handled. The data plane consists of
forwarding devices such as switches and routers that simply execute the instructions provided
by the controller.
• Control Layer: Hosts the SDN controller, which acts as the central intelligence of the
network.
These benefits make SDN particularly suitable for large-scale data centers and cloud
environments.
Despite its advantages, SDN also introduces challenges such as controller security, scalability
of centralized control, and dependency on software reliability. Addressing these challenges is
essential for secure and stable SDN deployment.
Cloud networking abstracts physical infrastructure and allows users to deploy virtual networks
on demand. These networks can be scaled, modified, and secured dynamically based on
application requirements.
Cloud networking architecture typically includes virtual networks, cloud routers, virtual
switches, load balancers and security services such as firewalls. These components work
together to provide reliable and high-performance connectivity between cloud resources and
end users.
Cloud networking offers cost efficiency, scalability, high availability and simplified
management.
It supports rapid application deployment and global connectivity, making it essential for
modern digital services.
172 ADVANCED COMPUTER NETWORKING
AI-driven networks use machine learning algorithms to analyze traffic patterns, predict
failures, and automate network management. These networks are capable of self-optimization
and self-healing, reducing manual intervention.
174 ADVANCED COMPUTER NETWORKING
5G technology offers high data rates, ultra-low latency, and massive device connectivity. It
enables advanced applications such as autonomous vehicles, remote surgery and immersive
virtual environments.
Edge computing brings computation closer to data sources, reducing latency and bandwidth
usage. It complements IoT and cloud networking by enabling real-time data processing at the
network edge.
14.6 SUMMARY
This chapter provided an in-depth theoretical discussion on emerging networking technologies,
including IoT networking, Software-Defined Networking, and cloud networking. It explained
their architectures, working principles, advantages, and applications. The chapter also
examined future networking trends such as AI-driven networks, 5G and edge computing,
highlighting their role in shaping next-generation communication systems.
14.7 KEYWORDS
• Emerging Networking Technologies
• Internet of Things
• Software-Defined Networking
• Cloud Networking
• Edge Computing
• 5G