Computer Networks
Computer Networks
Types of Networks:
1. Local Area Network (LAN): A network that covers a small geographic area, such as a
home, office, or campus. It typically provides high-speed connections and is used for
connecting devices within a limited area.
2. Wide Area Network (WAN): A network that covers a large geographic area, often
spanning cities, countries, or even continents. The internet is a prime example of a
WAN.
3. Metropolitan Area Network (MAN): A network that covers a city or a large campus.
It’s larger than a LAN but smaller than a WAN.
4. Personal Area Network (PAN): A network for personal devices within a very close
range, such as connecting a smartphone to a laptop via Bluetooth.
5. Wireless Network: A network that uses wireless technology (such as Wi-Fi or cellular
networks) to connect devices without physical cables.
Purpose of a Network:
Resource Sharing: Networks allow multiple users to share resources such as files,
printers, and internet connections.
Communication: They facilitate communication through emails, instant messaging,
video calls, and more.
Data Management: Networks enable centralized data management and access
control, which helps in maintaining and securing information.
Scalability: Networks can be expanded to accommodate more devices or users
without significant changes to the overall structure.
Point-to-Point Channel:
Definition: In a point-to-point channel, a single communication channel is dedicated
to connecting two specific devices. The channel is exclusively used for the
communication between these two endpoints.
Characteristics:
o Exclusive Use: The channel is not shared with other devices. The entire
bandwidth and capacity of the channel are dedicated to the two connected
devices.
o Direct Communication: Data flows directly between the two devices,
providing a direct path without interference from other devices.
Advantages:
o High Performance: With no shared medium, there are no data collisions or
congestion from other devices, leading to potentially higher throughput and
lower latency.
o Reliability: Fewer variables affect the channel, often resulting in more reliable
communication.
Disadvantages:
o Limited Scalability: Adding more devices requires additional channels, which
can be costly and complex.
Multipoint Channel:
Definition: In a multipoint channel, a single communication channel is shared among
multiple devices. This means that multiple devices use the same channel to
communicate with each other.
Characteristics:
o Shared Use: The channel's bandwidth and capacity are divided among all
devices connected to it. Data sent from one device is accessible to all other
devices on the channel, though it is typically only processed by the intended
recipient.
o Broadcasting: Often involves broadcasting data to all devices, where the data
is picked up by all devices but only acted upon by the intended recipient.
Advantages:
o Cost-Effective: Utilizing a single channel for multiple devices reduces
infrastructure costs and complexity.
o Scalability: Easier to add new devices to the network without needing new
physical channels.
Disadvantages:
o Potential for Collisions: In shared channels, multiple devices attempting to
communicate simultaneously can cause data collisions, leading to network
congestion and reduced performance.
o Lower Performance: Shared bandwidth may result in lower throughput and
higher latency compared to dedicated channels.
Summary:
Point-to-Point Channel: A dedicated communication channel for two devices,
providing exclusive use and potentially higher performance.
Multipoint Channel: A shared communication channel for multiple devices, offering
cost-effectiveness and scalability but with potential performance and reliability
trade-offs.
Topology in the context of computer networks refers to the physical or logical arrangement
of devices and connections within the network. It defines how different network devices are
connected and how data is transmitted between them. Network topology can impact the
network’s performance, scalability, and reliability.
Types of Network Topologies:
1. Bus Topology:
o Description: All devices are connected to a single central cable (the bus). Data
sent from one device is available to all devices on the network.
o Advantages: Easy to implement and expand.
o Disadvantages: If the central cable fails, the entire network goes down.
Performance can degrade as more devices are added.
2. Star Topology:
o Description: All devices are connected to a central hub or switch. Each device
has a direct connection to the central node.
o Advantages: Failure of one device does not affect the others. Easier to
manage and troubleshoot.
o Disadvantages: If the central hub or switch fails, the entire network is
affected. Requires more cable than bus topology.
3. Ring Topology:
o Description: Devices are connected in a circular fashion. Data travels in one
direction (or both directions in a dual ring) around the ring until it reaches its
destination.
o Advantages: Data packets travel at high speeds, and each device has equal
access to the network.
o Disadvantages: A failure in one device or connection can disrupt the entire
network. Adding or removing devices can be complex.
4. Mesh Topology:
o Description: Each device is connected to every other device in the network.
This can be a full mesh (where every device is directly connected) or a partial
mesh (where only some devices are interconnected).
o Advantages: High redundancy and reliability. Failure of one connection does
not affect the network.
o Disadvantages: High cost and complexity due to the large number of
connections.
5. Tree Topology:
o Description: A hybrid topology that combines characteristics of star and bus
topologies. It consists of groups of star-configured networks connected to a
linear bus backbone.
o Advantages: Scalable and easy to manage. Failure of a single device or
connection does not affect the entire network.
o Disadvantages: If the backbone fails, it can affect the entire network. More
complex than bus or star topologies.
6. Hybrid Topology:
o Description: Combines two or more different types of topologies. For
example, a network that combines star and mesh topologies.
o Advantages: Can be tailored to meet specific needs and can offer the benefits
of multiple topologies.
o Disadvantages: Can be complex to design and manage.