Q. What are Network Devices?
Network devices are hardware components that help computers and other
electronic devices communicate with each other over a network. They are
responsible for transmitting, receiving, forwarding, filtering, and managing data
traffic.
🌐 Network Devices
1. Hub
🔹 Definition
A hub is a basic networking device that connects multiple computers in a
network and transmits incoming data packets to all connected devices,
without identifying the intended receiver. It works as a simple signal
distributor.
🔹 Characteristics
Works at Physical Layer (Layer 1).
Does not store MAC addresses.
No filtering of data.
Less secure and inefficient.
🔹 Uses
Used in very small or simple Local Area Networks (LANs)
Suitable for temporary connections or laboratory experiments
Earlier used in home and office networks (now mostly replaced by
switches)
🔹 Advantages
Very low cost compared to other networking devices
Simple design, easy to install and operate without technical knowledge
Does not require any configuration or software setup
🔹 Disadvantages
Sends data to all devices, causing unnecessary traffic
High chances of data collision, reducing network performance
Poor security because all devices can access transmitted data
2. Switch
🔹 Definition
A switch is an intelligent network device that connects multiple devices
within a network and forwards data only to the specific destination
device by using MAC addresses, thereby improving efficiency.
🔹 Uses
Widely used in LANs such as offices, colleges, and organizations
Connects computers, printers, servers, and other network devices
Forms the backbone of modern Ethernet networks
🔹 Advantages
Reduces unnecessary data transmission and minimizes collisions
Provides high-speed communication with better bandwidth utilization
Offers improved security by sending data only to the intended device
🔹 Disadvantages
More expensive than hubs
Requires configuration and management in advanced cases
Slightly complex for beginners to understand and maintain
3. Router
🔹 Definition
A router is a networking device that connects multiple networks and
directs data packets between them using IP addresses, selecting the most
efficient path for communication.
🔹 Uses
Connects a local network (LAN) to the Internet
Used in homes, offices, and large enterprises
Enables communication between different networks
🔹 Advantages
Determines the best path for data transmission, improving efficiency
Provides additional features like firewall, NAT, and DHCP
Helps in isolating networks, improving security and control
🔹 Disadvantages
Higher cost compared to switches and hubs
Requires technical knowledge for configuration
Can introduce delay if not properly configured
4. Modem
🔹 Definition
A modem is a communication device that converts digital data from a
computer into analog signals for transmission and converts received
analog signals back into digital form, enabling internet connectivity.
🔹 Uses
Provides access to the Internet through an Internet Service Provider
(ISP)
Used in homes and offices for broadband connections
Connects user devices to communication lines like telephone or cable
🔹 Advantages
Essential for establishing internet connection
Enables long-distance data communication
Supports various types of broadband technologies
🔹 Disadvantages
Limited to signal conversion; cannot manage network traffic
Performance depends on ISP quality and line conditions
May require additional devices like routers for full networking
5. Bridge
🔹 Definition
A bridge is a network device that connects two or more LAN segments
and filters data traffic, allowing only required data to pass based on
MAC addresses.
🔹 Uses
Divides large networks into smaller segments
Reduces traffic and improves performance
Connects similar types of networks
🔹 Advantages
Decreases network congestion by filtering unnecessary data
Improves overall performance of the network
Helps in reducing collision domains
🔹 Disadvantages
Slower compared to modern switches
Limited scalability for large networks
Can become inefficient with heavy traffic
6. Repeater
🔹 Definition
A repeater is a network device that receives weak or degraded signals,
regenerates them, and retransmits them to extend the distance of the
network.
🔹 Uses
Extends the coverage area of a network
Used in long-distance communication systems
Commonly used in Wi-Fi range extension
🔹 Advantages
Increases the range of the network
Cost-effective solution for signal loss
Simple to install and use
🔹 Disadvantages
Amplifies noise along with the signal
Does not filter or manage data
Cannot improve network performance beyond signal strength
7. Gateway
🔹 Definition
A gateway is a networking device that acts as an entry and exit point of
a network and enables communication between different types of
networks by converting protocols.
🔹 Uses
Connects networks using different communication protocols
Provides access to external networks like the Internet
Used in enterprise and large-scale networks
🔹 Advantages
Enables communication between dissimilar networks
Supports multiple protocols and systems
Provides flexibility in network design
🔹 Disadvantages
Complex to configure and maintain
Expensive compared to other devices
Can slow down communication due to conversion process
8. Access Point (AP)
🔹 Definition
An access point is a network device that allows wireless devices to
connect to a wired network by providing Wi-Fi connectivity.
🔹 Uses
Provides wireless internet access in offices, campuses, and homes
Extends Wi-Fi coverage in large areas
Connects mobile devices, laptops, and tablets
🔹 Advantages
Supports mobility and wireless communication
Expands network coverage
Allows multiple devices to connect simultaneously
🔹 Disadvantages
Performance may be affected by interference
Requires proper placement and configuration
More expensive than simple wired solutions
9. Firewall
🔹 Definition
A firewall is a network security device that monitors and controls
incoming and outgoing network traffic based on predefined security
rules, protecting the network from unauthorized access.
🔹 Uses
Protects networks from cyber threats and hackers
Controls access to network resources
Used in personal computers, offices, and enterprises
🔹 Advantages
Enhances network security
Prevents unauthorized access and attacks
Helps in monitoring and controlling traffic
🔹 Disadvantages
May slow down network performance
Requires proper configuration and management
Cannot protect against all types of attacks
10. Network Interface Card (NIC)
🔹 Definition
A Network Interface Card (NIC) is a hardware component installed in a
device that enables it to connect to a network and communicate with
other devices.
🔹 Uses
Connects computers and devices to wired or wireless networks
Enables data communication between devices
Provides a unique identification (MAC address)
🔹 Advantages
Essential for network connectivity
Supports both wired and wireless communication
Provides reliable data transmission
🔹 Disadvantages
Additional hardware cost
May require drivers and updates
Failure can disconnect the device from the network
Q. Network Switching Techniques
Introduction
Switching is the process of transferring data from a source device to a
destination device through a communication network. It helps share
network resources efficiently and enables communication between
devices that are not directly connected.
The three main switching techniques are:
1. Circuit Switching
2. Message Switching
3. Packet Switching
1. Circuit Switching
Definition
Circuit Switching is a technique in which a dedicated communication path is
established between the sender and receiver before data transmission begins. The
path remains reserved for the entire communication session.
Working Process
a) Connection Establishment
A dedicated path is created between the source and destination. Network
resources are reserved exclusively for the communication.
b) Data Transfer
Once the connection is established, data is transmitted continuously through the
reserved path.
c) Connection Release
After communication is completed, the dedicated path is disconnected and the
resources are released.
Advantages
1. Guaranteed bandwidth throughout communication.
2. Data arrives in the correct order.
3. Minimal delay after connection setup.
4. Suitable for voice and video communication.
Disadvantages
1. Bandwidth remains unused during idle periods.
2. Connection setup requires additional time.
3. Expensive because resources are reserved.
4. Communication fails if the dedicated path is broken.
Applications
Traditional telephone networks.
ISDN systems.
Dedicated leased communication lines.
2. Message Switching
Definition
Message Switching is a technique in which the entire message is transmitted as a
single unit from source to destination using the Store-and-Forward method. No
dedicated communication path is required.
Working Process
a) Message Creation
The sender creates the complete message and attaches the destination address.
b) Store-and-Forward
Each intermediate node receives the entire message, stores it temporarily, and
then forwards it to the next node.
c) Delivery
The process continues until the message reaches the destination.
Advantages
1. No need for a dedicated communication path.
2. Better utilization of network resources.
3. Messages can be prioritized.
4. More flexible routing options.
Disadvantages
1. High transmission delay due to storage and forwarding.
2. Requires large storage capacity at intermediate nodes.
3. Not suitable for real-time communication.
4. Large messages increase waiting time.
Applications
Telegraph networks.
Early computer communication systems.
Electronic mail systems (similar concept).
3. Packet Switching
Definition
Packet Switching is a technique in which a message is divided into small units
called packets. Each packet is transmitted separately through the network and
reassembled at the destination.
Working Process
a) Packetization
The message is divided into multiple packets. Each packet contains data and
control information such as source and destination addresses.
b) Transmission
Packets are transmitted through the network. Different packets may take different
routes.
c) Reassembly
At the destination, packets are collected and rearranged in the correct order to
reconstruct the original message.
Advantages
1. Efficient utilization of bandwidth.
2. Multiple users can share the network simultaneously.
3. More reliable because packets can be rerouted.
4. Cost-effective communication method.
Disadvantages
1. Packets may arrive out of sequence.
2. Congestion can increase transmission delay.
3. Some packets may be lost and require retransmission.
4. More complex network management is required.
Applications
Internet communication.
Local Area Networks (LANs).
Wide Area Networks (WANs).
Mobile communication networks.
Types of Packet Switching
A. Datagram Packet Switching
Definition
In Datagram Packet Switching, each packet is treated independently and routed
separately through the network. Different packets may follow different paths to
reach the destination.
Advantages
1. Highly flexible routing.
2. Network failures can be bypassed easily.
3. Efficient use of available routes.
Disadvantages
1. Packets may arrive out of order.
2. Variable transmission delay.
3. Additional processing is needed at the destination.
Example
Internet Protocol (IP)
B. Virtual Circuit Packet Switching
Definition
In Virtual Circuit Packet Switching, a logical path is established before packet
transmission begins. All packets follow the same route until communication
ends.
Advantages
1. Packets arrive in the correct order.
2. Easier error and flow control.
3. Reduced routing overhead.
Disadvantages
1. Initial setup is required.
2. Failure of the established route can disrupt communication.
Examples
ATM (Asynchronous Transfer Mode)
Frame Relay
X.25 Networks
Comparison of Switching Techniques
Circuit Message Packet
Feature
Switching Switching Switching
Usually Not
Path Setup Required Not Required
Required
Continuous Complete
Data Unit Packet
Stream Message
Delay Low High Moderate
Bandwidth
Poor Better Excellent
Utilization
Real-Time
Suitable Not Suitable Suitable
Communication
Storage
Low High Moderate
Requirement
Telephone
Example Telegraph internet
Network
Q. IP Addressing
Introduction
IP Addressing is a method used in computer networks to uniquely identify every
device connected to a network. It is based on the Internet Protocol (IP), which is
responsible for delivering data packets from a source device to a destination
device. Just as a postal address helps deliver a letter to the correct house, an IP
address helps data reach the correct computer, smartphone, server, or network
device.
Every device connected to the Internet or a private network must have an IP
address. Without IP addressing, devices would not be able to communicate,
exchange information, or access network services.
Definition
An IP Address (Internet Protocol Address) is a logical address assigned to a device
on a network. It uniquely identifies the device and its location within the network,
enabling data to be routed correctly between source and destination.
IP addresses are assigned either manually by a network administrator or
automatically through protocols such as DHCP (Dynamic Host Configuration
Protocol).
Need for IP Addressing
IP addressing is essential for network communication because it:
Uniquely identifies each device on a network.
Enables communication between devices across local and global networks.
Helps routers determine the best path for transmitting data.
Supports resource sharing such as files, printers, and internet access.
Facilitates network management and troubleshooting.
Without IP addressing, it would be impossible to distinguish one device from
another on a network.
Structure of an IP Address
An IP address is divided into two main parts:
Network Portion
The network portion identifies the specific network to which a device belongs.
Devices with the same network portion are considered part of the same network.
Host Portion
The host portion identifies a specific device within that network. Each device must
have a unique host portion to avoid address conflicts.
This division allows routers to efficiently route data between different networks
while enabling devices within the same network to communicate directly.
IPv4 Addressing
IPv4 (Internet Protocol Version 4) is the most widely used version of IP addressing.
Characteristics of IPv4
Uses a 32-bit address length.
Represented as four decimal numbers separated by dots.
Each number ranges from 0 to 255.
Supports approximately 4.3 billion unique addresses.
Example
[Link]
In this example:
192, 168, 1, and 100 are four octets.
Each octet contains 8 bits.
Total address length = 32 bits.
Advantages of IPv4
Simple and easy to understand.
Supported by almost all networking devices.
Requires less memory compared to IPv6.
Limitations of IPv4
Limited address space.
Address exhaustion due to rapid growth of internet-connected devices.
Requires techniques such as NAT (Network Address Translation) to conserve
addresses.
IPv6 Addressing
IPv6 (Internet Protocol Version 6) was developed to overcome the limitations of
IPv4.
Characteristics of IPv6
Uses a 128-bit address length.
Written in hexadecimal format.
Provides an extremely large address space.
Supports better security and routing efficiency.
Example
2001:0db8:85a3:0000:0000:8a2e:0370:7334
Advantages of IPv6
Vast number of unique addresses.
Improved security features.
Better support for mobile devices.
Simplified network configuration.
More efficient routing.
IPv6 is gradually being adopted worldwide as the demand for IP addresses
continues to increase.
Types of IP Addresses
Public IP Address
A public IP address is globally unique and used for communication over the
Internet. It is assigned by an Internet Service Provider (ISP).
Example Uses:
Websites
Email servers
Online gaming servers
Private IP Address
A private IP address is used within local networks and cannot be directly accessed
from the Internet.
Advantages:
Conserves public IP addresses.
Provides additional security.
Suitable for home and office networks.
Static IP Address
A static IP address remains fixed and does not change over time.
Applications:
Web servers
Mail servers
Network printers
Dynamic IP Address
A dynamic IP address is assigned automatically and may change periodically.
Advantages:
Easy management.
Efficient use of address resources.
Commonly used in home networks.
Subnetting and IP Addressing
Subnetting is the process of dividing a large network into smaller logical networks
called subnets.
Purpose of Subnetting
Reduces network congestion.
Improves performance.
Enhances security.
Simplifies network management.
Benefits
Efficient use of IP addresses.
Better control over network traffic.
Easier troubleshooting and maintenance.
Subnetting plays an important role in modern enterprise networks where
thousands of devices need to be managed efficiently.
Role of IP Addressing in Data Communication
When a device sends data:
1. The sender's IP address is attached to the packet as the source address.
2. The receiver's IP address is attached as the destination address.
3. Routers examine the destination IP address.
4. The packet is forwarded through the most suitable route.
5. The destination device receives the packet and processes the data.
Thus, IP addressing serves as the foundation for packet delivery across computer
networks.
Applications of IP Addressing
Internet browsing
Email communication
Video conferencing
Cloud computing
Online banking
File transfer
Q. Port Addressing
Introduction
Port Addressing is a method used in computer networks to identify a specific
application, process, or service running on a device. While an IP address identifies
a host (computer or device) on a network, a port number identifies the particular
application or service within that host.
For example, a computer may simultaneously run a web browser, email client, and
file transfer application. Although all these applications use the same IP address,
they are distinguished by different port numbers. This ensures that incoming data
is delivered to the correct application.
Port addressing operates at the Transport Layer and is implemented through the
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) protocols.
Definition
A Port Number is a 16-bit logical address assigned to a process or application
running on a device. It enables the transport layer to deliver data to the correct
application.
A communication endpoint is identified by combining:
IP Address + Port Number
Example:
IP Address: [Link]
Port Number: 80
This combination uniquely identifies a web service running on that device.
Need for Port Addressing
Port addressing is required because multiple applications can run simultaneously
on a single computer.
Functions of Port Addressing
Identifies the source application sending data.
Identifies the destination application receiving data.
Supports process-to-process communication.
Allows multiple services to operate on the same device.
Ensures accurate delivery of data.
Enables simultaneous network connections.
Without port addressing, a device could receive data but would not know which
application should process it.
Working of Port Addressing
The communication process using port addressing follows these steps:
1. An application generates data.
2. The transport layer assigns a source port number.
3. The destination port number is added to the data segment.
4. The segment is transmitted across the network.
5. The receiving device examines the destination port number.
6. The data is delivered to the corresponding application.
Example
When a user opens a website:
The browser sends a request from a temporary source port.
The request is directed to Port 80 (HTTP) or Port 443 (HTTPS) on the web server.
The server processes the request and sends the response back to the browser.
Thus, port numbers enable communication between specific applications on
different devices.
5. Port Number Range
Since a port number consists of 16 bits, the available range is:
0 – 65535
Port numbers are divided into three categories.
A. Well-Known Ports (0 – 1023)
These ports are reserved for standard and commonly used network services.
Port Number Service
20 FTP Data Transfer
21 FTP Control
22 SSH
23 Telnet
25 SMTP
53 DNS
80 HTTP
110 POP3
143 IMAP
443 HTTPS
B. Registered Ports (1024 – 49151)
These ports are assigned to specific applications and software services.
Examples:
Database servers
Application servers
Gaming services
Messaging platforms
Organizations can register these ports for their applications.
Dynamic or Private Ports (49152 – 65535)
These ports are temporarily assigned by the operating system when applications
initiate communication.
Characteristics:
Automatically assigned
Temporary in nature
Used by client applications
Released after communication ends
Example: A browser may use Port 52000 while communicating with a web server on Port 443.
Types of Port Numbers
a. Source Port Number
The source port identifies the application that sends the data.
Example:
Browser → Port 52000
b. Destination Port Number
The destination port identifies the application that receives the data.
Example:
Web Server → Port 80
Together, source and destination ports establish communication between
applications.
Port Addressing in TCP and UDP
TCP Port Addressing
TCP uses port numbers to provide reliable communication between applications.
Features:
Connection-oriented
Reliable data delivery
Error detection and recovery
Flow control
Ordered data transmission
Applications:
Web browsing
Email services
File transfer
UDP Port Addressing
UDP also uses port numbers but provides faster communication with less
overhead.
Features:
Connectionless communication
No guarantee of delivery
Faster transmission
Lower overhead
Applications:
Online gaming
Video streaming
Voice over IP (VoIP)
Live broadcasts
Socket Address
A Socket Address is the combination of an IP address and a port number.
Formula
Socket Address = IP Address + Port Number
Example
IP Address: [Link]
Port Number: 443
Socket Address:
[Link] : 443
A socket uniquely identifies a communication endpoint in a network.
Advantages of Port Addressing
Supports multiple applications on a single host.
Enables process-to-process communication.
Ensures accurate data delivery.
Improves network efficiency.
Allows simultaneous network connections.
Facilitates client-server communication.
Simplifies network resource management.
Applications of Port Addressing
Port addressing is widely used in:
Web Browsing (HTTP, HTTPS)
Email Communication (SMTP, POP3, IMAP)
File Transfer (FTP)
Remote Access (SSH, Telnet)
Online Gaming
Video Conferencing
Cloud Computing Services
Database Connectivity
Network Monitoring and Administration