Understanding Network Devices and Topologies
Understanding Network Devices and Topologies
Network Devices
Network devices are communication tools that are essential for interaction
between hardware on a computer network. These devices facilitate the
transmission and reception of data securely and efficiently.
Managing Traffic: Network devices like routers and firewalls manage and
control traffic flow, allowing administrators to block unauthorized connection
requests and maintain a secure network environment.
Device Connectivity: Devices like routers and gateways play a crucial role in
connecting different networks, using unique protocols, and enabling
communication between diverse systems with data format translation.
1. Hub
A hub is a simple connectivity device that connects cables, forming a network
segment. It serves as a repeater for long-distance data and retransmits without
filtering. It handles both digital and analog data when configured appropriately.
2. Switch
A switch is more advanced than a hub. It intelligently forwards data based on
hardware addresses. Switches enhance network efficiency and security by making
forwarding decisions using TCP/IP protocol headers. Additionally, multilayer
switches can function as both a switch and a router.
3. Router
Routers can filter and forward data using logical addresses like IP addresses.
They store network information, act as packet-filtering firewalls, and play a vital
role in controlling and optimizing network traffic.
4. Bridge
A bridge is a networking device that filters and forwards packets based on
physical addresses, connecting different network segments. It manages data flow
between segments and is beneficial for dividing extensive networks into smaller
sections.
5. Gateway
A gateway acts as a “gate” between autonomous networks with different routing
algorithms. It can promote traffic flow, translating data formats between
networks.
6. Repeater
A repeater is an electronic device that amplifies received signals and extends
signal transmission over longer distances. It is specifically beneficial for standard
LAN cables.
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or
devices in a computer network. Common types of network topology include bus, star,
ring, mesh, and tree topologies, each with its advantages and disadvantages.
Types of Network Topology
Table of Content
Point to Point Topology
Mesh Topology
Star Topology
Bus Topology
Ring Topology
Tree Topology
Point to Point Topology
Point-to-point topology is a type of topology that works on the functionality of the
sender and receiver. It is the simplest communication between two nodes, in which
one is the sender and the other one is the receiver. Point-to-Point provides high
bandwidth.
Poin
t to Point Topology
Mesh Topology
In a mesh topology, every device is connected to another device via a particular
channel. Every device is connected to another via dedicated channels. These channels
are known as links. In Mesh Topology, the protocols used are AHCP (Ad Hoc
Configuration Protocols), DHCP (Dynamic Host Configuration Protocol), etc.
Mesh Topology
Suppose, the N number of devices are connected with each other in a mesh
topology, the total number of ports that are required by each device is N-1. In
Figure , there are 6 devices connected to each other, hence the total number of
ports required by each device is 5. The total number of ports required = N * (N-1).
Suppose, N number of devices are connected with each other in a mesh topology,
then the total number of dedicated links required to connect them is N C 2 i.e.
N(N-1)/2. In Figure, there are 6 devices connected to each other, hence the total
number of links required is 6*5/2 = 15.
Advantages of Mesh Topology
Communication is very fast between the nodes.
Mesh Topology is robust.
The fault is diagnosed easily. Data is reliable because data is transferred among
the devices through dedicated channels or links.
Provides security and privacy.
Disadvantages of Mesh Topology
Installation and configuration are difficult.
The cost of cables is high as bulk wiring is required, hence suitable for less
number of devices.
The cost of maintenance is high.
A common example of mesh topology is the internet backbone, where various internet
service providers are connected to each other via dedicated channels. This topology is
also used in military communication systems and aircraft navigation systems.
Star Topology
In Star Topology, all the devices are connected to a single hub through a cable. This
hub is the central node and all other nodes are connected to the central node. The hub
can be passive in nature i.e., not an intelligent hub such as broadcasting devices, at the
same time the hub can be intelligent known as an active hub. Active hubs have
repeaters in them. Coaxial cables or RJ-45 cables are used to connect the computers.
In Star Topology, many popular Ethernet LAN protocols are used as CD(Collision
Detection), CSMA (Carrier Sense Multiple Access), etc.
Star Topology
Bu
s Topology
Advantages of Bus Topology
If N devices are connected to each other in a bus topology, then the number of
cables required to connect them is 1, known as backbone cable, and N drop lines
are required.
Coaxial or twisted pair cables are mainly used in bus-based networks that support
up to 10 Mbps.
The cost of the cable is less compared to other topologies, but it is used to build
small networks.
Bus topology is familiar technology as installation and troubleshooting techniques
are well known.
CSMA is the most common method for this type of topology.
Disadvantages of Bus Topology
A bus topology is quite simpler, but still, it requires a lot of cabling.
If the common cable fails, then the whole system will crash down.
If the network traffic is heavy, it increases collisions in the network. To avoid this,
various protocols are used in the MAC layer known as Pure Aloha, Slotted Aloha,
CSMA/CD, etc.
Adding new devices to the network would slow down networks.
Security is very low.
A common example of bus topology is the Ethernet LAN, where all devices are
connected to a single coaxial cable or twisted pair cable. This topology is also used in
cable television networks.
Ring Topology
In a Ring Topology, it forms a ring connecting devices with exactly two neighboring
devices. A number of repeaters are used for Ring topology with a large number of
nodes, because if someone wants to send some data to the last node in the ring
topology with 100 nodes, then the data will have to pass through 99 nodes to reach the
100th node. Hence to prevent data loss repeaters are used in the network.
The data flows in one direction, i.e. it is unidirectional, but it can be made
bidirectional by having 2 connections between each Network Node, it is called Dual
Ring Topology. In-Ring Topology, the Token Ring Passing protocol is used by the
workstations to transmit the data.
Ring Topology
Advantages of Ring Topology
The data transmission is high-speed.
The possibility of collision is minimum in this type of topology.
Cheap to install and expand.
It is less costly than a star topology.
Disadvantages of Ring Topology
The failure of a single node in the network can cause the entire network to fail.
Troubleshooting is difficult in this topology.
The addition of stations in between or the removal of stations can disturb the
whole topology.
Less secure.
Tree Topology
Tree topology is the variation of the Star topology. This topology has a hierarchical
flow of data. In Tree Topology, protocols like DHCP and SAC (Standard Automatic
Configuration) are used.
Tree Topology
In tree topology, the various secondary hubs are connected to the central hub which
contains the repeater. This data flow from top to bottom i.e. from the central hub to
the secondary and then to the devices or from bottom to top i.e. devices to the
secondary hub and then to the central hub. It is a multi-point connection and a non-
robust topology because if the backbone fails the topology crashes.
Advantages of Tree Topology
It allows more devices to be attached to a single central hub thus it decreases the
distance that is traveled by the signal to come to the devices.
It allows the network to get isolated and also prioritize from different computers.
We can add new devices to the existing network.
Error detection and error correction are very easy in a tree topology.
Disadvantages of Tree Topology
If the central hub gets fails the entire system fails.
The cost is high because of the cabling.
If new devices are added, it becomes difficult to reconfigure.
A common example of a tree topology is the hierarchy in a large organization. At the
top of the tree is the CEO, who is connected to the different departments or divisions
(child nodes) of the company. Each department has its own hierarchy, with managers
overseeing different teams (grandchild nodes). The team members (leaf nodes) are at
the bottom of the hierarchy, connected to their respective managers and departments.
Hybrid Topology
Hybrid Topology is the combination of all the various types of topologies we have
studied above. Hybrid Topology is used when the nodes are free to take any form. It
means these can be individuals such as Ring or Star topology or can be a combination
of various types of topologies seen above. Each individual topology uses the protocol
that has been discussed earlier.
Hybrid Topology
The above figure shows the structure of the Hybrid topology. As seen it contains a
combination of all different types of networks.
Advantages of Hybrid Topology
This topology is very flexible .
The size of the network can be easily expanded by adding new devices.
Disadvantages of Hybrid Topology
It is challenging to design the architecture of the Hybrid Network.
Hubs used in this topology are very expensive.
The infrastructure cost is very high as a hybrid network requires a lot of cabling
and network devices .
A common example of a hybrid topology is a university campus network. The
network may have a backbone of a star topology, with each building connected to the
backbone through a switch or router. Within each building, there may be a bus or ring
topology connecting the different rooms and offices. The wireless access points also
create a mesh topology for wireless devices. This hybrid topology allows for efficient
communication between different buildings while providing flexibility and
redundancy within each building.
Circuit
Switching in Computer Network
• The dedicated path/circuit established between the sender and receiver
provides a guaranteed data rate.
• or connection is established between the source and destination .
• This connection receives the complete bandwidth of the network until the data
is transferred completely.
• Data can be transmitted without any delays once the circuit is established.
• The telephone system network is one of the examples of Circuit switching.
Phases of Circuit Switching
Circuit Establishment: A dedicated circuit between the source and destination
is constructed via a number of intermediary switching center's. Communication
signals can be requested and received when the sender and receiver
communicate signals over the circuit.
Data Transfer: Data can be transferred between the source and destination once
the circuit has been established. The link between the two parties remains as
long as they communicate.
Circuit Disconnection: Disconnection in the circuit occurs when one of the
users initiates the disconnect. When the disconnection occurs, all intermediary
linkages between the sender and receiver are terminated.
Advantages of Circuit Switching
The main advantage of circuit switching is that a committed transmission
channel is established between the computers which give a guaranteed data rate.
In circuit switching, there is no delay in data flow because of the dedicated
transmission path.
Reliability: Circuit switching provides a high level of reliability since the
dedicated communication path is reserved for the entire duration of the
communication. This ensures that the data will be transmitted without any loss
or corruption.
Quality of service: Circuit switching provides a guaranteed quality of service,
which means that the network can prioritize certain types of traffic, such as
voice and video, over other types of traffic, such as email and web browsing.
Security: Circuit switching provides a higher level of security compared to
packet switching since the dedicated communication path is only accessible to
the two communicating parties. This can help prevent unauthorized access
and data breaches.
Ease of management: Circuit switching is relatively easy to manage since the
communication path is pre-established and dedicated to a specific
communication. This can help simplify network management and reduce the risk
of errors.
Compatibility: Circuit switching is compatible with a wide range of devices
and protocols, which means that it can be used with different types of networks
and applications. This makes it a versatile technology for various industries and
use cases.
Disadvantages of Circuit Switching
Limited scalability: Circuit switching is not well-suited for large-scale
networks with many nodes, as it requires a dedicated communication path
between each pair of nodes. This can result in a high degree of complexity and
difficulty in managing the network.
Vulnerability to failures: Circuit switching relies on a dedicated
communication path, which can make the network vulnerable to failures, such as
cable cuts or switch failures. In the event of a failure, the communication path
must be re-established, which can result in delays or loss of data.
Limited Flexibility: Circuit switching is not flexible as it requires a dedicated
circuit between the communicating devices. The circuit cannot be used Waste of
Resources for any other purpose until the communication is complete, which
limits the flexibility of the network.
Waste of Resources: Circuit switching reserves the bandwidth and network
resources for the duration of the communication, even if there is no data being
transmitted. This results in the wastage of resources and inefficient use of the
network.
Expensive: Circuit switching is an expensive technology as it requires dedicated
communication paths, which can be costly to set up and maintain. This makes it
less feasible for small-scale networks and applications.
Susceptible to Failure: Circuit switching is susceptible to failure as it relies on
a dedicated communication path. If the path fails, the entire communication is
disrupted. This makes it less reliable than other networking technologies, such
as packet switching.
Not suitable for high traffic: Circuit switching is not suitable for high traffic,
where data is transmitted intermittently at irregular intervals. This is because a
dedicated circuit needs to be established for each communication, which can
result in delays and inefficient use of resources.
Delay and latency: Circuit switching requires the establishment of a dedicated
communication path, which can result in delay and latency in establishing the
path and transmitting data. This can impact the real-time performance of
applications, such as voice and video.
High cost: Circuit switching requires the reservation of resources, which can
result in a high cost, particularly in large-scale networks. This can make circuit
switching less practical for some applications.
No prioritization: Circuit switching does not provide any mechanism for
prioritizing certain types of traffic over others.
Packet Switching
Method of transferring data to a network in the form of packets.
the data is broken into small pieces of variable length, called Packet.
transfer the file fast and efficiently over the network and minimize the
transmission latency(time for data transfer),
At the destination, all these small parts (packets) have to be reassembled,
belonging to the same file.
A packet is composed of a payload and various control information.
No pre-setup or reservation of resources is needed.
uses the Store and Forward technique while switching the packets
while forwarding the packet each hop first stores that packet then forwards.
HOP: the movement of a data packet from one network device (like a router or
switch) to another
beneficial because packets may get discarded at any hop for some reason.
More than one path is possible between a pair of sources and destinations.
Each packet contains the Source and destination address using which they
independently travel through the network.
In other words, packets belonging to the same file may or may not travel through
the same path.
If there is congestion at some path, packets are allowed to choose different
paths possible over an existing network
Each packet contains two parts that is Header and Payload,
the header on each packet conatian routing and control data..
Payload :the actual data being transmitted within a network packet
Advantages of Packet Switching over Circuit Switching
More efficient in terms of bandwidth, since the concept of reserving a circuit is
not there.
Minimal transmission latency.
More reliable as a destination can detect the missing packet.
More fault tolerant because packets may follow a different path in case any link
is down, Unlike Circuit Switching.
Cost-effective and comparatively cheaper to implement
Disadvantage of Packet Switching over Circuit Switching
Packet Switching doesn’t give packets in order, whereas Circuit Switching
provides ordered delivery of packets because all the packets follow the same
path.
Since the packets are unordered, we need to provide sequence numbers for each
packet.
Complexity is more at each node because of the facility to follow multiple paths.
Transmission delay is more because of rerouting
OSI Model
o OSI stands for Open System Interconnection is a reference model that
describes how information from a software application in one computer moves
through a physical medium to the software application in another computer.
o OSI consists of seven layers, and each layer performs a particular network
function.
o OSI model was developed by the International Organization for
Standardization (ISO) in 1984, and it is now considered as an architectural
model for the inter-computer communications.
o OSI model divides the whole task into seven smaller and manageable tasks.
Each layer is assigned a particular task.
o Each layer is self-contained, so that task assigned to each layer can be
performed independently.
o The OSI model is divided into two layers: upper layers and lower layers.
o The upper layer of the OSI model mainly deals with the application related
issues, and they are implemented only in the software. The application layer is
closest to the end user. Both the end user and the application layer interact
with the software applications. An upper layer refers to the layer just above
another layer.
o The lower layer of the OSI model deals with the data transport issues. The
data link layer and the physical layer are implemented in hardware and
software. The physical layer is the lowest layer of the OSI model and is closest
to the physical medium. The physical layer is mainly responsible for placing
the information on the physical medium.
There are the seven OSI layers. Each layer has different functions. A list of seven
layers are given below:
1. Physical Layer
2. Data-Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
1) Physical layer
o The main functionality of the physical layer is to transmit the individual bits
from one node to another node.
o It is the lowest layer of the OSI model.
o It establishes, maintains and deactivates the physical connection.
o It specifies the mechanical, electrical and procedural network interface
specifications.
o Line Configuration: It defines the way how two or more devices can be
connected physically.
o Data Transmission: It defines the transmission mode whether it is simplex,
half-duplex or full-duplex mode between the two devices on the network.
o Topology: It defines the way how network devices are arranged.
o Signals: It determines the type of the signal used for transmitting the
information.
2) Data-Link Layer
o Framing: The data link layer translates the physical's raw bit stream into
packets known as Frames. The Data link layer adds the header and trailer to
the frame. The header which is added to the frame contains the hardware
destination and source address.
o Physical Addressing: The Data link layer adds a header to the frame that
contains a destination address. The frame is transmitted to the destination
address mentioned in the header.
o Flow Control: Flow control is the main functionality of the Data-link layer. It
is the technique through which the constant data rate is maintained on both the
sides so that no data get corrupted. It ensures that the transmitting station such
as a server with higher processing speed does not exceed the receiving station,
with lower processing speed.
o Error Control: Error control is achieved by adding a calculated value CRC
(Cyclic Redundancy Check) that is placed to the Data link layer's trailer which
is added to the message frame before it is sent to the physical layer. If any
error seems to occurr, then the receiver sends the acknowledgment for the
retransmission of the corrupted frames.
o Access Control: When two or more devices are connected to the same
communication channel, then the data link layer protocols are used to
determine which device has control over the link at a given time.
3) Network Layer
4) Transport Layer
o The Transport layer is a Layer 4 ensures that messages are transmitted in the
order in which they are sent and there is no duplication of data.
o The main responsibility of the transport layer is to transfer the data
completely.
o It receives the data from the upper layer and converts them into smaller units
known as segments.
o This layer can be termed as an end-to-end layer as it provides a point-to-point
connection between source and destination to deliver the data reliably.
5) Session Layer
o It is a layer 3 in the OSI model.
o The Session layer is used to establish, maintain and synchronizes the
interaction between communicating devices.
o Dialog control: Session layer acts as a dialog controller that creates a dialog
between two processes or we can say that it allows the communication
between two processes which can be either half-duplex or full-duplex.
o Synchronization: Session layer adds some checkpoints when transmitting the
data in a sequence. If some error occurs in the middle of the transmission of
data, then the transmission will take place again from the checkpoint. This
process is known as Synchronization and recovery.
6) Presentation Layer
o A Presentation layer is mainly concerned with the syntax and semantics of the
information exchanged between the two systems.
o It acts as a data translator for a network.
o This layer is a part of the operating system that converts the data from one
presentation format to another format.
o The Presentation layer is also known as the syntax layer.
7) Application Layer
TCP/IP model
Here, hierarchical means that each upper-layer protocol is supported by two or more
lower-level protocols.
Internet Layer
IP Protocol: IP protocol is used in this layer, and it is the most significant part of the
entire TCP/IP suite.
ARP Protocol
ICMP Protocol
o The core responsibility of the ICMP protocol is to report the problems, not
correct them. The responsibility of the correction lies with the sender.
o ICMP can send the messages only to the source, but not to the intermediate
routers because the IP datagram carries the addresses of the source and
destination but not of the router that it is passed to.
Transport Layer
The transport layer is responsible for the reliability, flow control, and correction of
data which is being sent over the network.
The two protocols used in the transport layer are User Datagram protocol and
Transmission control protocol.
Application Layer
o HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us
to access the data over the world wide web. It transfers the data in the form of
plain text, audio, video. It is known as a Hypertext transfer protocol as it has
the efficiency to use in a hypertext environment where there are rapid jumps
from one document to another.
o SNMP: SNMP stands for Simple Network Management Protocol. It is a
framework used for managing the devices on the internet by using the TCP/IP
protocol suite.
o SMTP: SMTP stands for Simple mail transfer protocol. The TCP/IP protocol
that supports the e-mail is known as a Simple mail transfer protocol. This
protocol is used to send the data to another e-mail address.
o DNS: DNS stands for Domain Name System. An IP address is used to identify
the connection of a host to the internet uniquely. But, people prefer to use the
names instead of addresses. Therefore, the system that maps the name to the
address is known as Domain Name System.
o TELNET: It is an abbreviation for Terminal Network. It establishes the
connection between the local computer and remote computer in such a way
that the local terminal appears to be a terminal at the remote system.
o FTP: FTP stands for File Transfer Protocol. FTP is a standard internet
protocol used for transmitting the files from one computer to another
computer.