Networking Student Module
Networking Student Module
Define key terms such as data communication, network, protocol, and transmission
media.
Understand how data is represented and transmitted in different formats.
Identify network types and their appropriate applications.
Recognize the advantages, limitations, and uses of different transmission media.
In the modern digital world, computers are no longer isolated devices performing standalone
tasks. Instead, they are part of a vast, interconnected system that allows data to be exchanged
seamlessly across the globe. The backbone of this interconnectivity is data communication and
computer networking. Understanding these concepts is fundamental for computer science
students, as it forms the foundation for designing, implementing, and managing modern
communication systems and networks.
Data Communication refers to the process of transferring digital or analog data between devices
via transmission media such as wires, optical fibers, or wireless channels. It ensures that
information is shared efficiently, accurately, and securely. Meanwhile, a Computer Network is a
collection of interconnected devices that communicate with each other to share resources,
applications, and data. Networks can range from a small home setup to the vast infrastructure of
the internet.
This chapter lays the groundwork for understanding how data is transmitted and how networks
are structured. The content is divided into three major sections:
In computer systems, information rarely stays within a single device. Computers, mobile phones,
servers, and embedded devices continuously exchange information with each other. This
exchange of information is known as data communication. It is the fundamental concept on
which computer networks and the internet are built.
Without data communication, modern technologies such as email, cloud computing, online
banking, video conferencing, and social media would not exist.
To clearly understand data communication, we must first understand the two words separately.
Data
Data by itself may not be meaningful until it is processed, but it becomes useful when
transmitted and interpreted correctly.
Data Communication is the process of transferring data from one device (sender) to another
device (receiver) through a communication medium using a set of rules known as protocols.
Formal Definition:
Data communication is the exchange of data between two or more devices through a
transmission medium, ensuring that the data is delivered accurately, efficiently, and securely.
1. Information Sharing: Allows users and systems to share information quickly and
efficiently.
2. Resource Sharing: Enables sharing of hardware (printers, storage), software, and data.
3. Remote Access: Allows users to access systems and data from distant locations.
4. Collaboration: Supports teamwork through shared documents, emails, and conferencing
tools.
5. Automation and Control: Used in industrial systems, IoT, and real-time monitoring.
3. Timeliness: Data must be delivered within the required time. Data delivered late are useless.
Every networking protocol, network device, and communication system is designed based on
data communication principles.
Examples
Communication is the core concept behind data communication systems. Before understanding
how computers communicate, it is essential to understand what communication is, how it occurs,
and what components are involved. Communication basics explain the fundamental principles
that govern the transfer of information from one entity to another, whether the entities are
humans, computers, or electronic devices.
In data communication, communication must be precise, structured, and reliable, unlike casual
human communication, which can tolerate ambiguity.
Meaning of Communication
- Human to Human
- Human to Computer
- Computer to Computer
In computer systems:
Every communication system follows a basic model consisting of several essential components.
Human communication
Telephone communication
Computer and network communication
The communication process consists of a set of fundamental components that work together to
transfer information from one entity to another. The process begins with the sender, who
generates the message and encodes it into a suitable form for transmission. The message is the
actual information to be communicated, such as text, numbers, images, audio, or video. This
message is transmitted in the form of signals through a transmission medium, which may be a
physical channel like a cable or a wireless channel such as radio waves. The medium serves as
the pathway that carries the signal from the sender to the destination.
At the receiving end, the receiver accepts the incoming signal and decodes it to retrieve the
original message. To ensure that communication occurs correctly and reliably, both the sender
and receiver must follow a common set of rules known as a protocol. Protocols define how data
is formatted, transmitted, received, and acknowledged. Together, these components ensure
accurate, timely, and effective communication in both human and computer-based
communication systems.
Signals in Communication
What is a Signal?
1. Analog Signal
Continuous waveform
Values vary smoothly over time
Example: Human voice and Analog telephone signal
2. Digital Signal
Discrete values
Represented using binary digits (0 and 1)
Example: Computer data and Network signals
Data flow refers to the movement of data between sender and receiver.
(Full modes are explained later, but basics are introduced here.)
In computer communication:
Data representation ensures that data is stored, processed, and transmitted accurately and
efficiently. Standardized representation techniques allow different devices and systems to
communicate without ambiguity or data loss.
All data representation techniques are based on the binary number system. In this system:
Binary representation is reliable because electronic circuits can easily distinguish between two
voltage levels, making digital systems less sensitive to noise compared to analog systems.
Text Representation
Text data consists of characters such as alphabets, digits, and special symbols. Each character is
represented using a unique binary code.
ASCII (American Standard Code for Information Interchange): ASCII uses 7 bits to
represent characters, allowing 128 unique symbols. Extended ASCII uses 8 bits, enabling
256 characters. ASCII includes:
o Uppercase and lowercase letters
o Numbers
o Punctuation and control characters
Number Representation
Numbers in computer systems are represented in binary form. Depending on the type of number,
different techniques are used.
The most widely used standard for floating-point representation is IEEE 754, which ensures
consistency across systems.
Image Representation
Digital images are represented as a collection of small picture elements called pixels. Each pixel
represents a specific color or intensity.
Because image data can be very large, compression techniques are commonly applied. Popular
image formats include JPEG, PNG, and BMP.
Audio Representation
Audio signals are continuous in nature, but digital systems require discrete data. To represent
audio digitally, the analog sound signal is converted into digital form using the following steps:
The quality of digital audio depends on the sampling rate and the number of bits used. For
example, CD-quality audio uses a sampling rate of 44.1 kHz. Common digital audio formats
include WAV, MP3, and AAC.
Video Representation
Video data consists of a sequence of images called frames, displayed rapidly to create motion,
along with synchronized audio. Each frame is a digital image, and video quality depends on:
Due to the large size of video data, efficient compression is essential for transmission over
networks. Common video formats include MP4, AVI, and MKV.
Importance of Data Representation in Data Communication
Accurate data representation ensures reliable communication, reduces errors, and enables
interoperability between devices from different manufacturers.
In data communication systems, once data is represented in binary form, it must be transmitted
from the sender to the receiver. Digital data transmission refers to the method by which binary
data (0s and 1s) is sent over a communication channel. The way in which data is organized and
transmitted is known as the digital data transmission format.
Digital data transmission involves sending discrete signals that represent binary data. Each bit is
transmitted as a signal element over the communication medium. The transmission format
determines:
Digital transmission is widely used because it is more resistant to noise, easier to regenerate, and
more reliable than analog transmission.
Parallel and Serial Transmission
Based on how bits are transmitted, digital data transmission can be classified into parallel
transmission and serial transmission.
A. Parallel Transmission
In parallel transmission, multiple bits are transmitted simultaneously, each bit using a separate
communication line. For example, if 8 bits are transmitted at the same time, eight separate lines
are required.
Parallel transmission is fast because multiple bits are sent together. However, it requires more
hardware, making it expensive. It is also more susceptible to synchronization problems and
signal interference when used over long distances. Due to these limitations, parallel transmission
is generally used for short-distance communication, such as inside a computer system between
the CPU and memory. Example:-
B. Serial Transmission
In serial transmission, bits are transmitted one after another over a single communication line.
Although this method appears slower than parallel transmission, it is more reliable and cost-
effective, especially over long distances.
Serial transmission requires fewer hardware resources and avoids synchronization issues
between multiple lines. For this reason, most data communication systems and networks,
including the internet, use serial transmission. Example:-
o USB devices
o SATA hard drives
o Serial ports (RS-232)
o Network cables (Ethernet uses serialized transmission)
Digital data transmission can also be classified based on timing and synchronization between the
sender and receiver.
A. Asynchronous Transmission
In asynchronous transmission, data is sent one character at a time. Each character is framed with
special bits:
These bits help the receiver identify the start and end of each character. There is no continuous
clock signal shared between the sender and receiver.
Asynchronous transmission is simple and flexible, but it is inefficient due to the overhead of start
and stop bits. It is commonly used in low-speed communication such as keyboard input and
serial communication ports.
B. Synchronous Transmission
In synchronous transmission, data is sent as continuous blocks or frames without start and stop
bits for each character. The sender and receiver are synchronized using a common clock or
timing mechanism.
This method is more efficient and supports higher data rates because there is less overhead.
Synchronous transmission is widely used in high-speed networks, such as local area networks
(LANs) and wide area networks (WANs).
Two important terms related to digital data transmission are bit rate and baud rate.
Bit Rate refers to the number of bits transmitted per second and is measured in bits per
second (bps).
Baud Rate refers to the number of signal changes (symbols) per second.
In simple systems, one signal change represents one bit, so bit rate and baud rate are equal. In
advanced systems, one signal change may represent multiple bits.
Transmission speed
Error detection and correction
Hardware cost
Network performance
Efficient transmission formats improve data throughput and ensure reliable communication
across networks.
In a data communication system, data is transmitted from the sender to the receiver in the form
of signals. Ideally, the signal received should be an exact replica of the signal sent. However, in
practical communication systems, the transmitted signal is often affected by various factors
while traveling through the transmission medium. These unwanted effects that degrade the
quality of the signal are known as transmission impairments.
Transmission impairments can cause errors in data, loss of information, and reduction in
communication efficiency. Understanding these impairments is essential for designing reliable
and high-performance communication systems.
Causes of Transmission Impairments
The major types of transmission impairments are attenuation, noise, and distortion.
1. Attenuation
Attenuation refers to the gradual loss of signal strength as the signal travels over a distance
through a transmission medium. As the signal moves farther from the sender, its energy
decreases, making it difficult for the receiver to correctly interpret the data.
To overcome attenuation:
2. Noise
Noise is any unwanted signal that interferes with the original transmitted signal. Noise can alter
the signal and introduce errors in the received data.
Noise is one of the primary reasons for errors in data communication systems.
3. Distortion
Distortion occurs when the shape of the transmitted signal changes during transmission. This
happens because different frequency components of a signal travel at different speeds through
the transmission medium.
As a result:
Data corruption
Increased error rate
Retransmissions
Reduced throughput
Poor quality of audio and video communication
These effects degrade overall network performance and user experience.
In a data communication system, data must travel between devices in a specific direction. The
mode of data transmission defines the direction of data flow between the communicating
devices. Different applications require different transmission modes depending on whether
communication is one-way, two-way, or simultaneous.
Based on the direction of data flow, data transmission modes are classified into:
Simplex
Half-duplex
Full-duplex
Each mode has unique characteristics and is suited to specific real-world applications.
In simplex transmission, data flows in only one direction. One device acts strictly as the
sender, while the other acts strictly as the receiver. There is no capability for the receiver to send
data back to the sender.
Examples
In half-duplex transmission, data can flow in both directions, but not at the same time. At
any given moment, one device transmits while the other receives.
Examples
Walkie-talkies: Only one person can speak at a time; the other must wait.
Two-way radio communication: Used by police, security, and aviation ground control.
Older Ethernet networks (hub-based): Devices share the same medium and take turns
transmitting.
Push-to-talk communication systems: User must press a button to transmit.
In full-duplex transmission, data flows in both directions simultaneously. Both devices can
send and receive data at the same time without waiting.
Examples
Full-duplex transmission offers the best performance and user experience. However, it requires
more bandwidth and sophisticated hardware, increasing system complexity.
Network performance
Communication reliability
User interaction
Cost of implementation
For example, interactive applications such as video calls require full-duplex communication,
whereas data collection devices may operate efficiently in simplex mode.
A data communication system is not a single entity but a combination of several components that
work together to transfer data from one device to another. For communication to be successful,
each component must function correctly and in coordination with the others. These fundamental
components are known as the elements of data communication.
Understanding these elements helps in analyzing how data communication systems operate and
in identifying where communication failures may occur.
Sender
Receiver
Message
Transmission Medium
Protocol
Each element plays a specific role in ensuring reliable and accurate data transfer.
1. Sender
The sender is the device or entity that initiates the communication process. It is responsible for
creating the data and converting it into a form suitable for transmission.
Generating data
Encoding data into binary form
Converting data into signals
2. Receiver
The receiver is the device that receives the transmitted data. Its primary role is to accept the
signal from the transmission medium and convert it back into a usable form.
Examples of receivers include a computer receiving an email, a printer receiving print data, or a
server receiving client requests.
3. Message
The message is the actual information that is being communicated between the sender and the
receiver. It represents the content of communication.
In data communication systems, messages are transmitted in digital form, even if the original
data is analog.
4. Transmission Medium
The transmission medium is the physical or wireless path through which the data travels from
sender to receiver. It acts as the channel for signal propagation.
Guided media, such as twisted pair cables, coaxial cables, and optical fiber
Unguided media, such as radio waves, microwaves, and infrared
Transmission speed
Distance
Cost
Susceptibility to noise
For example, optical fiber is used for high-speed internet due to its high bandwidth and low
attenuation.
5. Protocol
A protocol is a set of rules that governs data communication between devices. Without
protocols, communication would be chaotic and unreliable.
Protocols define:
Failure in any one of these elements can disrupt the communication process.
This example illustrates how all elements work together to achieve successful communication.
In data communication, simply connecting two devices with a transmission medium is not
enough to enable communication. For meaningful and reliable data exchange, the
communicating devices must follow a common set of rules. These rules ensure that data is sent,
received, interpreted, and processed correctly. Such rules are known as protocols, and the
agreed-upon specifications that govern how systems are designed and implemented are called
standards.
Protocols and standards play a crucial role in enabling communication between devices
manufactured by different vendors and operating on different platforms.
Protocol
A protocol is a formal set of rules and conventions that governs how data is transmitted and
received in a communication system. Protocols define what is communicated, how it is
communicated, and when it is communicated.
In the absence of protocols, devices would be unable to understand each other, even if they are
physically connected.
Data formatting: Defines how data is structured and organized before transmission.
Addressing: Identifies the sender and receiver of the data.
Error detection and correction: Ensures that data is received accurately.
Flow control: Prevents the sender from overwhelming the receiver.
Sequencing: Ensures data is received in the correct order.
Connection control: Establishes, maintains, and terminates communication sessions.
Each protocol may perform one or more of these functions depending on its role in the
communication system.
Syntax: Defines the structure or format of the data, including how bits are arranged into
fields and frames.
Semantics: Specifies the meaning of each section of bits, including control information
such as error handling and acknowledgments.
Timing: Defines when data should be sent and how fast it can be transmitted.
User Datagram Protocol (UDP) is a connectionless transport layer protocol that focuses on fast
data transmission with minimal overhead. It does not guarantee delivery, ordering, or error
correction, making it suitable for time-sensitive applications such as video streaming, online
gaming, and voice communication, where speed is more important than reliability.
Internet Protocol (IP) is a network layer protocol responsible for logical addressing and routing
of data packets across interconnected networks. It breaks data into packets, assigns source and
destination IP addresses, and ensures packets are forwarded to the correct destination through
routers. IP forms the backbone of the internet.
Hypertext Transfer Protocol (HTTP) is an application layer protocol used for communication
between web browsers and web servers. It defines how requests and responses are exchanged
and supports the transfer of web pages, images, and multimedia content. HTTP operates on a
request-response model and is the foundation of the World Wide Web.
5. Hypertext Transfer Protocol Secure (HTTPS)
HTTPS is a secure version of HTTP that uses encryption to protect data transmitted over the
network. It employs Transport Layer Security (TLS) to ensure confidentiality, integrity, and
authentication. HTTPS is widely used in online banking, e-commerce, and secure web
applications.
File Transfer Protocol (FTP) is an application layer protocol used to transfer files between a
client and a server over a network. It supports file upload, download, and directory management.
FTP can operate in active or passive mode and is commonly used in website maintenance and
large file transfers.
Simple Mail Transfer Protocol (SMTP) is used for sending email messages between mail servers
and from email clients to mail servers. It defines how email messages are formatted, transmitted,
and relayed across networks. SMTP works in conjunction with other protocols to provide
complete email functionality.
Post Office Protocol version 3 (POP3) is an email retrieval protocol that allows users to
download messages from a mail server to a local device. Once downloaded, emails are typically
removed from the server. POP3 is suitable for users who access email from a single device.
Internet Message Access Protocol (IMAP) is an email retrieval protocol that allows users to
access and manage emails directly on the mail server. Unlike POP3, IMAP supports
synchronization across multiple devices and preserves emails on the server, making it suitable
for modern email services.
10. Domain Name System (DNS)
Domain Name System (DNS) is an application layer protocol that translates human-readable
domain names into numerical IP addresses. It enables users to access internet resources using
meaningful names instead of remembering IP addresses. DNS functions as a distributed and
hierarchical naming system.
Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses and other
network configuration parameters to devices in a network. It simplifies network management by
eliminating manual IP configuration and helps prevent address conflicts.
Internet Control Message Protocol (ICMP) is used for error reporting and network diagnostics. It
helps detect problems such as unreachable hosts, packet loss, or routing failures. Tools like ping
and traceroute use ICMP to test network connectivity.
Simple Network Management Protocol (SNMP) is used for monitoring and managing network
devices such as routers, switches, and servers. It allows administrators to collect performance
data, detect faults, and configure network components remotely.
15. Secure Shell (SSH)
Secure Shell (SSH) is a protocol used for secure remote login and command execution over an
unsecured network. It provides encrypted communication and authentication, making it widely
used by network administrators for managing servers and network devices.
Each protocol serves a specific purpose and works in coordination with others.
Standards
The widespread success of the internet is largely due to adherence to common standards.
De facto standards: These standards emerge through widespread use rather than formal
approval. For example, early Ethernet implementations became de facto standards before
formal standardization.
De jure standards: These are officially approved by recognized standardization
organizations. Examples include ISO and IEEE standards.
Standardization Organizations
In the field of data communication, ISO is best known for developing the Open Systems
Interconnection (OSI) Reference Model. The OSI model provides a seven-layer framework
that explains how data is transmitted from one device to another over a network. Although
the OSI model is primarily conceptual and not directly implemented, it serves as a
fundamental teaching and design tool for understanding network architecture.
ISO has also developed standards related to data formats, character encoding, and security
management. For example, ISO/IEC 27001 defines standards for information security
management systems, which are widely adopted by organizations to protect network and data
security.
IEEE (Institute of Electrical and Electronics Engineers): Defines standards for LANs,
such as IEEE 802 (Ethernet and Wi-Fi).
One of the most important contributions of IEEE is the IEEE 802 family of standards,
which defines the physical and data link layer specifications for networking technologies. For
example, IEEE 802.3 defines the Ethernet standard used in wired LANs, specifying aspects
such as frame format, data rates, and transmission media. Similarly, IEEE 802.11 defines
wireless LAN standards, commonly known as Wi-Fi, which enable wireless connectivity in
homes, offices, and public spaces.
IEEE standards ensure that network interface cards, switches, routers, and wireless devices
from different manufacturers can operate together seamlessly.
ANSI plays a key role in representing U.S. interests in international standardization bodies
such as ISO and IEC. Many networking and communication standards used in the United
States are aligned with ANSI-approved specifications.
A protocol often becomes a standard after being formally approved by a standards organization.
This coordinated use of protocols and standards enables seamless internet communication.
They form the backbone of all modern data communication and networking systems.
The communication process in circuit switching occurs in three distinct phases. First, the circuit
establishment phase sets up a physical or logical connection between the two endpoints. Once
the circuit is established, the data transfer phase begins, during which data flows continuously
and in the same order. Finally, the circuit termination phase releases the reserved resources
after communication ends.
A classic real-world example of circuit switching is the traditional telephone network (PSTN).
When a call is made, a dedicated line is reserved between the caller and the receiver until the call
is disconnected. This guarantees consistent quality and low delay but results in inefficient use of
network resources.
Advantages of Circuit Switching
Circuit switching provides guaranteed bandwidth and constant data rate, making it suitable for
real-time voice communication. Since the path is fixed, there is minimal delay variation and no
packet loss during transmission.
The main drawback of circuit switching is inefficient resource utilization, as the dedicated path
remains idle when no data is sent. It also lacks flexibility and scalability, making it unsuitable for
modern data communication needs.
Packet switching is a communication technique in which data is divided into small units called
packets, which are transmitted independently over the network. Each packet contains both data
and control information, including source and destination addresses.
The most prominent example of packet switching is the Internet. Protocols such as IP, TCP,
and UDP operate in packet-switched environments. Packet switching makes efficient use of
network resources and supports multiple simultaneous communications.
Packet switching allows better utilization of network bandwidth by sharing resources among
multiple users. It is highly scalable, flexible, and resilient to failures, as packets can be rerouted
if a path becomes unavailable.
Limitations of Packet Switching
Packet-switched networks may experience delays, packet loss, and jitter due to congestion.
Quality of service is not guaranteed unless additional mechanisms are implemented.
Circuit switching is best suited for applications requiring continuous, real-time communication
with guaranteed quality, such as traditional voice calls. Packet switching, on the other hand, is
ideal for data communication, multimedia applications, and modern internet services where
efficient bandwidth usage and scalability are critical.
A computer network is a collection of two or more interconnected computers and devices that
are linked together through communication channels to share data, resources, and services. These
devices communicate using agreed-upon protocols and standards to ensure reliable and efficient
data transmission.
In a computer network, each connected device, known as a node, can send and receive data. The
interconnection may be achieved using wired media such as cables or wireless technologies such
as radio waves. The primary objective of a computer network is to enable communication,
collaboration, and resource sharing among users and systems.
These characteristics make networks essential for both small-scale and large-scale computing
environments.
Computer networks are used in almost every field of modern life. Their applications range from
personal communication to large industrial and scientific systems.
Communication and Collaboration
For example, applications like video meetings and collaborative document editing rely on
computer networks to support remote work and global teamwork.
Resource Sharing
Computer networks allow multiple users to share hardware and software resources. Printers,
scanners, storage devices, and specialized software can be shared over a network, reducing cost
and improving efficiency.
In an office environment, a single high-quality printer can be shared by many users through a
local area network, eliminating the need for individual printers.
Networks enable users to store, access, and transfer data efficiently. Files can be shared across
systems, databases can be accessed remotely, and large volumes of information can be
exchanged quickly.
Cloud storage services are a real-world example where users access and share data over a
network without needing local storage devices.
The internet is the largest example of a computer network. It provides access to web services
such as websites, online applications, search engines, and streaming platforms. Users can retrieve
information, conduct research, and access digital services from anywhere in the world.
Online banking, e-commerce, and digital learning platforms rely heavily on computer networks.
Business and Enterprise Applications
For example, multinational companies use networks to connect branch offices and data centers
across different locations.
Computer networks play a significant role in education and research by enabling online learning,
virtual classrooms, and access to digital libraries. Students and researchers can collaborate, share
resources, and access academic content remotely.
Learning management systems and virtual laboratories are common examples of network-based
educational applications.
Healthcare Systems
In healthcare, computer networks support electronic health records, telemedicine, and remote
patient monitoring. Medical professionals can access patient data securely and collaborate with
specialists in different locations.
Hospital information systems rely on networks to coordinate patient care and medical services.
Networks are used in industrial automation, monitoring systems, and scientific research. Sensors,
control systems, and data analysis tools communicate over networks to improve productivity and
accuracy.
Examples include smart factories, weather monitoring systems, and space research networks.
1.2.3 Network Types
Computer networks are classified based on various factors such as geographical area, network
architecture, and purpose. Understanding network types helps in designing networks suitable for
specific needs, whether it’s a small home setup or a large enterprise system.
Networks can be categorized according to the physical area they cover. The most common types
include:
A Personal Area Network (PAN) is the smallest type of network, designed to connect devices
within the range of a single person, typically within a few meters. It is used for personal device
connectivity.
PANs are usually short-range, low-cost, and private, primarily for individual use.
A Local Area Network (LAN) connects devices within a limited area, such as a home, office,
or building. LANs provide high-speed communication and allow sharing of resources like
printers, files, and internet connections.
A Metropolitan Area Network (MAN) covers a larger geographical area than a LAN,
typically a city or a town. MANs are designed to provide high-speed connectivity between
multiple LANs.
City-wide networks
University or hospital campus networks spanning multiple buildings
Internet service providers connecting customers within a city
MANs are often owned by a single organization or a service provider and use technologies like
fiber optics and microwave links.
A Wide Area Network (WAN) spans large geographical areas, often connecting multiple
cities, countries, or continents. WANs enable communication over long distances and are
essential for global business operations.
WANs typically use leased lines, satellite links, and public networks, and they require routing
protocols such as BGP (Border Gateway Protocol) to manage data transfer over long distances.
In a Peer-to-Peer network, all devices (nodes) have equal status, and each device can act as
both a client and a server. There is no central server controlling access.
P2P networks are simple to set up and cost-effective, but they are less secure and harder to
manage in large networks.
In a Client-Server network, one or more central servers provide services, and clients request
resources from these servers. The server manages data, security, and access.
Figure 1.7. Client-Server Architecture
Client-server networks are scalable, secure, and easier to manage, making them suitable for
medium to large organizations.
Hardware components form the physical infrastructure of a network. They include devices,
transmission media, and networking equipment.
1. Network Interface Card (NIC): A Network Interface Card (NIC) is a hardware component
installed in a computer or device to connect it to a network. It converts data from the device into
signals suitable for transmission over the network medium. Modern NICs can support wired
(Ethernet) or wireless (Wi-Fi) connections.
2. Switch: A switch is a networking device that connects multiple devices within a LAN. It
receives data packets and forwards them only to the intended recipient device, using MAC
addresses. Switches improve network efficiency and reduce collisions compared to older hub-
based networks.
Example: Office LAN networks use switches to connect computers, printers, and servers.
3. Hub: A hub is a simpler networking device that connects multiple devices in a LAN. Unlike a
switch, a hub broadcasts incoming data to all connected devices, regardless of the destination.
Hubs are rarely used today because they are inefficient and create network collisions.
4. Router: A router is a device that connects multiple networks, such as a LAN to a WAN or
the Internet. It determines the best path for data to reach its destination using routing tables and
protocols like RIP, OSPF, or BGP. Routers also provide security features like firewalls and
NAT (Network Address Translation).
6. Wireless Access Point (WAP): A Wireless Access Point (WAP) allows wireless devices to
connect to a wired network using Wi-Fi. It extends network coverage and supports multiple
simultaneous users.
Example: WAPs in offices, schools, or public hotspots like airports and cafes.
7. Transmission Media: Transmission media form the pathways through which data travels
between devices. They can be guided (wired) or unguided (wireless).
Guided Media Examples: Twisted pair cables, coaxial cables, optical fiber
Unguided Media Examples: Radio waves, microwaves, infrared, Wi-Fi
9. Firewall: A hardware firewall monitors and controls incoming and outgoing network traffic
based on security rules. It protects networks from unauthorized access, viruses, and cyberattacks.
Software components manage, control, and facilitate communication over the network. They
include operating systems, protocols, and network management tools.
1. Network Operating System (NOS): A Network Operating System (NOS) controls and
manages network resources, provides security, and enables file and printer sharing. Examples
include Windows Server, Linux (Ubuntu Server), and Novell NetWare.
Example: Windows Server manages user authentication, file sharing, and printer access in
corporate LANs.
2. Protocols: Protocols define rules and conventions for communication between devices. They
determine how data is formatted, transmitted, and interpreted.
Examples:
Examples:
4. Security Software: Security software protects networks from attacks, unauthorized access,
and malware. It may include antivirus programs, intrusion detection systems (IDS), and intrusion
prevention systems (IPS).
A computer network is built from both hardware and software components working together.
Hardware components like NICs, switches, routers, and transmission media provide the physical
pathways for data transfer, while software components such as protocols, NOS, and management
tools control communication, ensure reliability, and secure the network. Understanding these
components is essential for designing, implementing, and maintaining efficient and secure
networks.
Network topology refers to the layout or arrangement of devices and connections in a computer
network. It defines how nodes, devices, and communication links are organized, and how data
flows between them. Understanding topology is critical for designing networks that are efficient,
scalable, and reliable.
Physical topology describes how devices are physically connected in a network. The most
common physical topologies include:
1. Bus Topology
In a bus topology, all devices are connected to a single central cable called the backbone. Data
sent by a device travels along the bus until it reaches the intended recipient.
Limitations:
2. Star Topology
In a star topology, all devices are connected to a central device such as a switch or hub. The
central device manages and controls data traffic.
Limitations:
Real-World Example: Most modern office LANs use Ethernet switches in star topology.
3. Ring Topology
In a ring topology, each device is connected to two neighboring devices, forming a closed loop.
Data travels in one or both directions around the ring until it reaches its destination.
Limitations:
4. Mesh Topology
In a mesh topology, each device is connected to every other device in the network, creating
multiple redundant paths for data.
Highly fault-tolerant
Supports high-speed and secure communication
Limitations:
Real-World Example: Backbone networks of ISPs and WANs where reliability is critical.
5. Tree Topology
A tree topology is a hierarchical topology that combines characteristics of star and bus
topologies. Groups of devices (stars) are connected to a central backbone (bus).
Limitations:
6. Hybrid Topology
A hybrid topology combines two or more different topologies, taking advantage of their
strengths and minimizing weaknesses.
Limitations:
Real-World Example: Large enterprise networks combining star topology in offices with a
mesh backbone for redundancy.
Logical topology refers to how data actually flows between devices, independent of the
physical layout. It defines the path that signals take, which may differ from the physical
connections.
Types of Logical Topology
Bus Logical Topology: Data is broadcast to all devices, similar to physical bus, even if
physical layout is star.
Ring Logical Topology: Data flows sequentially from one device to the next in a logical
ring, even if the physical layout is star.
Point-to-Point Logical Topology: Direct communication between two devices over a
dedicated channel.
Importance: Logical topology affects network performance, data transfer efficiency, and fault
tolerance. Many modern networks use star physical topology with bus or ring logical
topology, such as Ethernet LANs.
Computer networks are complex systems involving multiple devices, protocols, transmission
media, and applications working together to achieve communication. To manage this
complexity, networking functions are organized into structured frameworks known as network
models. A network model divides the communication process into logical layers, where each
layer is responsible for a specific set of tasks. This layered approach simplifies network design,
enables interoperability between vendors, and makes troubleshooting more systematic.
The two most widely recognized network models are the OSI Reference Model and the TCP/IP
Protocol Suite. While the OSI model provides a conceptual framework for understanding
networking, the TCP/IP model represents the practical architecture used in modern internet
communication.
The Open Systems Interconnection (OSI) Reference Model was developed by the
International Organization for Standardization (ISO) to standardize network communication. It
organizes communication functions into seven distinct layers. Each layer performs specific
responsibilities and interacts only with the layer directly above and below it.
The OSI model was created to ensure that different systems developed by different
manufacturers could communicate with one another. Although it is not directly implemented as a
protocol stack in modern networks, it remains an essential educational and conceptual
framework.
The Physical layer is responsible for transmitting raw bits over a physical communication
medium. It defines the electrical, mechanical, and procedural specifications for activating and
maintaining the physical connection between devices. This layer determines how binary digits
are represented as electrical signals, light pulses, or radio waves.
Devices such as cables, connectors, network interface cards, and repeaters operate at this layer. It
does not interpret data; it simply ensures that bits move from one point to another.
The Data Link layer provides reliable communication between two directly connected nodes. It
converts raw bits into structured units called frames and manages error detection and correction.
This layer is also responsible for physical addressing using MAC addresses.
Switches operate primarily at this layer. Technologies such as Ethernet and Wi-Fi function here.
The Data Link layer ensures that data transmitted over the physical medium is free from
transmission errors.
The Network layer handles logical addressing and routing. It determines the best path for data to
travel from the source to the destination across multiple interconnected networks. This layer
introduces IP addresses, which uniquely identify devices in a network.
Routers operate at the Network layer. Protocols such as IP and ICMP function here. This layer
ensures that packets are delivered across different networks, not just within a single local
network.
Layer 4: Transport Layer
The Transport layer provides end-to-end communication between source and destination devices.
It ensures reliable data delivery, segmentation of large messages into smaller units, error
recovery, and flow control.
Two important protocols at this layer are TCP and UDP. TCP provides reliable, connection-
oriented communication, while UDP provides faster but less reliable communication. This layer
guarantees that the entire message is correctly delivered to the receiving application.
For example, when a user logs into a remote system, the session layer manages that active
session.
The Presentation layer ensures that data is presented in a format that the receiving system can
understand. It handles data translation, compression, and encryption. For example, it converts
character encoding formats or encrypts data before transmission.
The Application layer is the closest layer to the end user. It provides network services directly to
applications and users. Services such as web browsing, file transfer, and email communication
operate at this layer.
Protocols such as HTTP, FTP, SMTP, and DNS belong to this layer. It serves as the interface
between network services and application software.
The TCP/IP model consists of four layers, each combining the functions of multiple OSI layers.
This layer corresponds to the Physical and Data Link layers of the OSI model. It handles
hardware addressing, framing, and physical transmission of data. Technologies such as Ethernet
and Wi-Fi operate at this level.
Internet Layer
The Internet layer is responsible for logical addressing and routing. It ensures that packets travel
across interconnected networks to reach their destination. The Internet Protocol (IP) is the core
protocol at this layer. Other supporting protocols such as ICMP and ARP also function here.
Transport Layer
The Transport layer provides end-to-end communication services. It includes TCP, which
guarantees reliable delivery, and UDP, which provides fast but connectionless communication.
This layer ensures proper data segmentation, error detection, and flow control.
Application Layer
The Application layer in TCP/IP combines the functions of the Application, Presentation, and
Session layers of the OSI model. It provides services directly to user applications. Protocols such
as HTTP, FTP, SMTP, DNS, and SSH operate at this layer.
Network models provide a systematic way to understand and implement data communication.
The OSI model offers a detailed conceptual understanding of layered communication, while the
TCP/IP model represents the practical architecture used in modern networks. A strong
understanding of both models is essential for students to analyze, design, and troubleshoot
networking systems effectively.
1.3Transmission Media
In any data communication system, information must travel from a sender to a receiver through a
communication channel. This channel is known as transmission media. Transmission media
provide the physical path through which signals are transmitted between devices in a network.
The choice of transmission medium affects several important network characteristics, including
data rate, transmission distance, cost, reliability, and resistance to interference. Transmission
media are broadly classified into two categories:
Guided transmission media provide a physical pathway through which signals are transmitted
from sender to receiver. In guided media, electromagnetic signals are confined within a solid
medium such as copper wire or optical fiber. Because the signal is directed through a physical
path, guided media generally offer greater security, stability, and predictable performance
compared to wireless transmission.
The most common types of guided media are:
Twisted pair cable is the most widely used transmission medium in local area networks (LANs)
and telephone systems. It consists of two insulated copper conductors twisted around each other.
The twisting reduces electromagnetic interference (EMI) and crosstalk between adjacent pairs.
Twisted pair cables are inexpensive, flexible, easy to install, and widely available, making them
ideal for small to medium-sized network installations.
In Ethernet cables, multiple twisted pairs (typically four pairs, totaling eight wires) are enclosed
in a single outer sheath.
When electrical current flows through a wire, it produces a magnetic field. If two wires are
placed close together without twisting, electromagnetic interference can occur. Twisting the
wires ensures that the interference affects both wires equally, canceling out noise.
UTP does not have additional shielding around the twisted wires. It relies solely on twisting to
reduce interference. UTP is lightweight, inexpensive, and easy to install.
Modern Ethernet networks use UTP cables such as Cat5e, Cat6, and Cat6a.
STP includes a metallic shield (foil or braided mesh) around the twisted pairs. The shielding
provides additional protection against electromagnetic interference.
Industrial environments
Areas with high electrical interference
Data centers requiring improved signal protection
Twisted pair cables are standardized into categories (Cat), which define performance levels:
Higher categories provide better shielding, higher bandwidth, and improved performance.
Transmission Characteristics
Twisted pair cables transmit data as electrical signals. Key characteristics include:
Because it uses electrical signals, twisted pair cables are more vulnerable to noise compared to
fiber optic cables.
Low cost
Easy installation and maintenance
Flexible and lightweight
Widely supported by networking equipment
These advantages make it the most common medium for LAN installations.
Real-World Applications
For example, when a computer connects to a switch using an Ethernet cable (Cat6), it is typically
using a UTP twisted pair cable.
Coaxial cable is a type of guided transmission medium used to carry high-frequency electrical
signals with minimal interference. It was widely used in early computer networks and continues
to play an important role in cable television, broadband internet, and surveillance systems.
The term coaxial means that the central conductor and the outer shielding layer share the same
geometric axis. This concentric structure provides strong protection against electromagnetic
interference and allows higher frequency transmission compared to twisted pair cables.
A coaxial cable consists of four main layers arranged concentrically:
1. Central Conductor
The innermost component is a solid or stranded copper wire that carries the electrical signal. This
is the primary path through which data is transmitted.
2. Dielectric Insulator
Surrounding the central conductor is a non-conductive insulating material, usually made of foam
or solid plastic. This layer prevents the central conductor from touching the outer shield and
maintains the spacing required for proper signal transmission.
3. Metallic Shield
This layer is typically made of braided copper or aluminum foil. The shield serves two major
purposes:
Because of this shielding, coaxial cables provide better noise immunity than twisted pair cables.
4. Outer Jacket
The outermost layer is made of plastic or PVC and protects the cable from physical damage,
moisture, and environmental conditions.
This layered design gives coaxial cable excellent signal protection and transmission stability.
Working Principle
Coaxial cable transmits data in the form of electrical signals. The signal travels through the
central conductor, while the outer metallic shield acts as a ground reference and protects against
interference.
The electromagnetic field carrying the signal is confined within the space between the central
conductor and the shield. This confinement reduces signal loss and minimizes external noise
effects.
Baseband coaxial cable is used for digital transmission where the entire bandwidth is used for a
single data channel. It was used in early Ethernet networks such as 10BASE2 and 10BASE5.
Characteristics:
Though largely obsolete in LAN environments, it played a crucial role in early network
development.
2. Broadband Coaxial Cable
Broadband coaxial cable is used for analog transmission and can carry multiple channels
simultaneously using frequency division multiplexing (FDM).
Characteristics:
This type is still widely used by cable service providers for delivering television and internet to
homes.
However, it does not match the extremely high bandwidth and long-distance capability of fiber
optic cables.
Because of these features, it is preferred in environments where interference levels are moderate
to high.
Despite its advantages, coaxial cable has some limitations:
When compared to twisted pair cable, coaxial provides better noise resistance and longer
transmission distances but at a higher cost and with more complex installation.
When compared to fiber optic cable, coaxial is less expensive and easier to install but offers
lower bandwidth and shorter maximum distance.
For example, when a home internet modem is connected to a service provider’s network through
a thick round cable from the wall outlet, that cable is typically a broadband coaxial cable.
Fiber optic cable is the most advanced and high-performance guided transmission medium used
in modern communication networks. Unlike copper cables that transmit electrical signals, fiber
optic cables transmit data in the form of light pulses. These light signals travel through extremely
thin strands of glass or plastic, enabling very high data rates and long-distance communication
with minimal signal loss.
Fiber optics form the backbone of today’s global communication systems, including internet
infrastructure, submarine communication cables, data centers, and telecommunication networks.
1. Core
The core is the innermost part of the fiber, made of glass or plastic. It carries the light signals.
The diameter of the core determines the type of fiber (single-mode or multi-mode).
2. Cladding
The cladding surrounds the core and is made of a material with a lower refractive index. Its
function is to reflect light back into the core using total internal reflection.
3. Buffer Coating
A protective plastic coating that shields the fiber from physical damage and moisture.
4. Strengthening Members
Materials such as Kevlar are added to protect against tension and stretching.
5. Outer Jacket
The outermost protective layer that shields the cable from environmental conditions such as heat,
moisture, and physical stress.
This layered structure ensures durability while maintaining high transmission efficiency.
Fiber optic cables are classified into two major types based on core size and light propagation
method:
Single-mode fiber has a very small core diameter (typically around 8–10 micrometers). It allows
only one light path (mode) to travel through the fiber.
Because only one mode propagates, there is minimal signal distortion and dispersion.
Characteristics:
Applications:
Multi-mode fiber has a larger core diameter (typically 50 or 62.5 micrometers). It allows
multiple light paths (modes) to travel simultaneously.
Because multiple paths are used, signals may arrive at slightly different times, causing modal
dispersion.
Characteristics:
Applications:
Multi-mode fiber is suitable for shorter distances with moderate bandwidth requirements.
Because fiber uses light instead of electricity, it is not affected by lightning, electrical noise, or
magnetic fields.
For backbone and high-speed networks, fiber optic cable is the preferred medium.
Many countries are replacing traditional copper infrastructure with fiber-to-the-home (FTTH)
networks to support gigabit internet speeds.
Comparison Table
In unguided communication, antennas are required at both the transmitting and receiving ends to
radiate and capture electromagnetic waves.
1. Radio Waves
2. Microwaves
3. Infrared Waves
4. Satellite Communication (Microwave-based)
Wireless LAN technology allows devices to connect to a local network without physical cables.
It operates using radio waves in frequency bands such as 2.4 GHz, 5 GHz, and 6 GHz.
Wireless LANs are based on standards developed by the IEEE under the IEEE 802.11 family.
Wi-Fi provides:
Mobility
Easy installation
Flexible network expansion
Applications include home networks, campus networks, airports, offices, and public hotspots.
Because radio waves can penetrate walls and obstacles, they are suitable for indoor and outdoor
communication.
Characteristics
Radio communication is cost-effective and covers wide areas but is more susceptible to
interference.
Because of their high frequency, microwaves can carry large amounts of data at high speeds.
In this system, microwave antennas are mounted on towers or buildings. The transmitter and
receiver must be in direct line of sight.
Key features:
High bandwidth
Used for long-distance telephone and data transmission
Requires repeater stations every 30–50 km
Applications:
Cellular networks
Point-to-point communication links
Television signal transmission
Satellite communication uses microwaves transmitted between Earth stations and satellites
orbiting the Earth.
Process:
Applications:
Satellite television
GPS systems
Weather forecasting
Global internet services
Characteristics of Microwaves
Highly directional
Require line-of-sight
High data rates
Sensitive to weather conditions (rain attenuation)
Limited by Earth’s curvature (for terrestrial systems)
Infrared (IR) waves operate at frequencies higher than microwaves. Infrared communication is
typically used for short-range communication and requires direct line-of-sight.
Infrared signals cannot penetrate walls, making them suitable for secure, short-distance
communication.
Characteristics
TV remote controls
Wireless keyboards and mice
Short-range device communication
Infrared data transfer systems
Applications include:
Wireless headphones
Smartwatches
Mobile phone connectivity
Comparison Table
These layers are collectively known as the upper layers because they deal directly with user-level
applications and process-to-process communication.
While the lower layers (Physical, Data Link, Network, and Transport) are responsible for data
transmission, routing, and delivery, the upper layers ensure that communication between
applications is meaningful, organized, secure, and properly formatted.
In simple terms:
Together, these layers make network communication usable for real-world applications such as
web browsing, email, file transfer, and remote login.
In modern networks such as the Internet, most user interactions occur at the Application Layer.
Protocols such as HTTP, FTP, SMTP, and DNS operate at this layer, enabling services like web
browsing, email communication, and domain name resolution.
The Session and Presentation layer functions are sometimes integrated into the Application
Layer in practical implementations such as the TCP/IP model. However, conceptually separating
them helps us understand how:
The Application Layer is the topmost layer (Layer 7) of the OSI (Open Systems
Interconnection) model, developed by the International Organization for Standardization. It
serves as the interface between network services and user applications. This layer provides the
necessary protocols and services that allow software applications to communicate over a
network.
It is important to understand that the Application Layer does not refer to the application software
itself (such as a web browser or email client). Instead, it provides the communication
mechanisms and protocols that enable these applications to access network resources.
For example, when a user opens a web browser to visit a website, the browser uses the HTTP
protocol at the Application Layer to communicate with a web server.
The Application Layer performs functions that directly support end-user processes. It provides
standardized protocols that allow different systems and applications to communicate, even if
they are running on different hardware or operating systems.
This layer ensures that software applications can request and receive network services
efficiently.
2. File Transfer, Access, and Management: It enables users to transfer files between systems,
access remote files, and manage file operations.
3. Electronic Mail Services: The Application Layer supports email communication between
users.
Example: Sending emails using SMTP and retrieving them using POP3 or IMAP.
4. Directory Services: Directory services help translate domain names into IP addresses and
manage network resources.
The Application Layer enables web browsing and access to distributed resources over the
internet.
In the OSI model, the Application Layer is separate from the Session and Presentation layers.
However, in the TCP/IP model, these three layers are combined into a single Application Layer.
This means that in practical internet implementations, Application Layer protocols often perform
session management and data formatting functions as well.
Understanding this distinction helps in comparing theoretical and real-world networking models.
These protocols define rules for communication between client and server applications.
For example:
Process-to-process communication
High-level protocols
User-oriented services
Dependency on lower layers for transport and delivery
It does not concern itself with routing or physical transmission; those responsibilities are handled
by lower layers such as the Transport and Network layers.
Without the Application Layer, network communication would not be meaningful to end users.
The Client–Server Model is a distributed application architecture in which tasks and services
are divided between two types of entities: clients, which request services, and servers, which
provide services. This model forms the foundation of most modern network applications,
including web services, email systems, database systems, and cloud computing platforms.
In a network environment, client and server systems communicate using Application Layer
protocols. The client initiates the communication by sending a request, and the server processes
the request and sends back a response.
A client is a device or software application that requests services or resources from another
system. Examples include web browsers, email clients, and mobile apps.
A server is a powerful system or software application that provides services, resources, or data
to clients over a network. Servers are typically designed to handle multiple client requests
simultaneously.
The client–server architecture can be classified into different types depending on how processing
responsibilities are distributed.
1. Two-Tier Architecture
In this architecture:
Example: A database application where the client application directly interacts with a database
server.
2. Three-Tier Architecture
It consists of:
3. Multi-Tier Architecture
In large enterprise systems, multiple intermediate servers are used, such as authentication
servers, caching servers, and load balancers. This enhances performance and reliability.
However, modern systems reduce these issues using redundancy and distributed servers.
When a mobile app fetches data from an online service, it acts as a client communicating with
remote servers.
Unlike the Client–Server Model, the Peer-to-Peer (P2P) model allows each device to act as both
client and server. However, the Client–Server Model is more structured and secure for enterprise
environments.
Internet architecture
Enterprise networks
Distributed computing
Cloud-based services
E-commerce platforms
Application protocols are sets of rules and standards that define how software applications
communicate over a network. These protocols operate at the Application Layer of the OSI
model and provide services directly to user applications.
They specify:
Message format
Request and response structure
Error handling mechanisms
Communication procedures
Authentication and security rules
Without application protocols, different systems and applications would not be able to
understand each other, even if they were physically connected.
For example, when a web browser communicates with a web server, it uses a standardized
protocol to request and receive web pages. That protocol defines how the request should look
and how the server should respond.
HTTP is the protocol used for transferring web pages and related resources over the internet. It
operates on a request–response model.
HTTP is stateless, meaning each request is independent and does not automatically retain session
information.
It supports:
However, traditional FTP does not provide encryption, so secure alternatives such as SFTP are
often used.
1. The email client sends the message to the outgoing mail server.
2. The server forwards the email to the recipient’s mail server using SMTP.
It allows the client to download emails from the server to the local device. Once downloaded,
emails are often deleted from the server (depending on settings).
IMAP is also used for retrieving emails but provides more advanced features than POP3.
It allows:
Without DNS, users would need to remember numerical IP addresses instead of domain names.
7. Telnet
Telnet is used for remote login into another computer over a network.
It provides a virtual terminal connection but does not encrypt data, making it insecure for modern
use.
It provides:
For example:
The Transport Layer ensures reliability, while the Application Layer ensures meaningful
communication.
Without these protocols, modern services like web browsing, online banking, email, and cloud
computing would not function.