Understanding Network Hubs, Routers, and Bridges
Understanding Network Hubs, Routers, and Bridges
What is HUB?
A hub is a multi-port repeater. A hub connects multiple wires coming from
different branches, for example, the connector in star topology which
connects different stations. Hubs cannot filter data, so data packets are
sent to all connected devices. In other words, the collision domain of all
hosts connected through hub remains one. Hub does not have any routing
table to store the data of ports and map destination addresses., the routing
table is used to send/broadcast information across all the ports.
How Does a Network Hub Work?
A hub is a multiport device, which has multiple ports in a device and shares
the data to multiple ports altogether. A hub acts as a dumb switch that
does not know, which data needs to be forwarded where so it broadcasts
or sends the data to each port.
Advantages of Routers
1. They provide a connection between different network architectures such as
Ethernet & Token Ring, etc.
2. They can choose the best path across the internetwork using dynamic routing
algorithms.
3. They can reduce network traffic by creating collision domains and also by
creating broadcast domains.
4. They provide sophisticated routing, flow control, and traffic isolation.
5. They are configurable, which allows network managers to make policy-based
routing decisions.
6. Unlike hubs (which operate in half-duplex mode), routers handle full-duplex
communication, allowing data to be sent and received simultaneously without
collisions.
Disadvantages of Routers
1. They operate based on routable network protocols.
2. They are expensive compared to other network devices.
3. Dynamic router communications can cause additional network overhead,
resulting in less bandwidth for user data.
4. They are slower as they need to analyze data from layer-1 through layer-3.
5. They require a considerable amount of initial configuration.
6. They are protocol-dependent devices which must understand the protocol they
are forwarding.
Bridge
A bridge operates at the data link layer. A bridge is a repeater, with add
on the functionality of filtering content by reading the MAC addresses of
the source and destination. It is also used for interconnecting two LANs
working on the same protocol. It typically connects multiple network
segments and each port is connected to different segment. A bridge is not
strictly limited to two ports, it can have multiple ports to connect and
manage multiple network segments. Modern multi-port bridges are often
called Layer 2 switches because they perform similar functions.
Types of Bridges
• Transparent Bridges: These are the bridge in which the stations
are completely unaware of the bridge’s existence i.e. whether or
not a bridge is added or deleted from the network,
reconfiguration of the stations is unnecessary. These bridges
make use of two processes i.e. bridge forwarding and bridge
learning.
• Source Routing Bridges: In these bridges, routing operations is
performed by the source station and the frame specifies which
route to follow. The host can discover the frame by sending a
special frame called the discovery frame, which spreads through
the entire network using all possible paths to the destination.
Switch
A switch is a multiport bridge with a buffer designed that can boost its
efficiency(a large number of ports imply less traffic) and performance. A
switch is a data link layer device. The switch can perform error checking
before forwarding data, which makes it very efficient as it does not forward
packets that have errors and forward good packets selectively to the
correct port only. In other words, the switch divides the collision
domain of hosts, but the broadcast domain remains the same.
Repeaters
Repeaters are network devices operating at physical layer of the OSI
model that amplify or regenerate an incoming signal before retransmitting
it. They are incorporated in networks to expand its coverage area. They
are also known as signal boosters.
Advantages of Repeaters
• Repeaters are simple to install and can easily extend the length or
the coverage area of networks.
• They are cost effective.
• Repeaters dont require any processing overhead. The only time they
need to be investigated is in case of degradation of performance.
• They can connect signals using different types of cables.
Disadvantages of Repeaters
• Repeaters cannot connect dissimilar networks.
• They cannot differentiate between actual signal and noise.
• They cannot reduce network traffic or congestion.
• Most networks have limitations upon the number of repeaters that
can be deployed.
Difference Between Classful Addressing and
Classless Addressing
Classless
Parameter Classful Addressing Addressing
Classless addressing
In Classful addressing IP
came to replace the
addresses are allocated
Basics classful addressing and
according to the classes- A
to handle the issue of
to E.
allocation of IP Address.
Troubleshooting and
Troubleshooting It is not as easy
problem detection are easy
and Problem compared to classful
than classless addressing
detection addressing.
because of the division of
Classless
Parameter Classful Addressing Addressing
• Network
Division of • Host
• Host
Address • Subnet
• Subnet
Introduction to Subnet
A subnet is like a smaller group within a large network. It is a way to split
a large network into smaller networks so that devices present in one
network can transmit data more easily. For example, in a company,
different departments can each have their own subnet, keeping their data
traffic separate from others. Subnet makes the network faster and easier
to manage and also improves the security of the network.
Why Subnetting is Important?
Let’s consider a company that follows classful addressing, it has a Class
C network ([Link]/24) with 256 IP addresses. It has three
departments:
• Sales: 20 devices
• HR: 10 devices
• IT: 50 devices
Without subnetting, all departments share the same network, and
all 256 IP addresses are available to everyone, which leads to:
• IP Waste: Only 80 devices are needed (20 + 10 + 50), but all
256 addresses are allocated, wasting 176 addresses.
• Performance Issues: Since all departments are on the same
network, any data sent between devices floods the entire
network, slowing communication for everyone. For example,
heavy data transfer in IT can impact Sales and HR.
• Security Risks: Without subnets, anyone in Sales can access HR
or IT devices, exposing sensitive data like payroll systems.
What is a Logical Address?
The logical address is a virtual address created by the CPU of the computer
system. The logical address of a program is generated when the program is
running. A group of several logical address is referred to a logical address space.
The logical address is basically used as a reference to access the physical
memory locations.
In computer systems, a hardware device named memory management
unit (MMU) is used to map the logical address to its corresponding physical
address. However, the logical address of a program is visible to the computer
user.
Broadcasting is supported by
Broadcasting Broadcasting is not supported by TCP.
UDP.
HTTP, HTTPs, FTP, SMTP, and Telnet DNS, DHCP, TFTP, SNMP, RIP,
Examples
use TCP. and VoIP use UDP.
Static routing does not use Dynamic routing uses complex routing
complex routing algorithms. algorithms.
In static routing, failure of the link In dynamic routing, failure of the link
disrupts the rerouting. does not interrupt the rerouting.
Another name for static routing is Another name for dynamic routing is
non-adaptive routing. adaptive routing
Border Gateway Protocol (BGP)
The protocol can connect any internetwork of the autonomous system
using an arbitrary topology. The only requirement is that each AS have at
least one router that can run BGP and that is the router connected to at
least one other AS’s BGP router. BGP’s main function is to exchange
network reachability information with other BGP systems. Border
Gateway Protocol constructs an autonomous systems graph based on the
information exchanged between BGP routers.
Characteristics of Border Gateway Protocol (BGP)
• Inter-Autonomous System Configuration: The main role of
BGP is to provide communication between two autonomous
systems.
• BGP supports the Next-Hop Paradigm.
• Coordination among multiple BGP speakers within the AS
(Autonomous System).
• Path Information: BGP advertisements also include path
information, along with the reachable destination and next
destination pair.
• Policy Support: BGP can implement policies that can be
configured by the administrator. For ex:- a router running BGP
can be configured to distinguish between the routes that are
known within the AS and that which are known from outside the
AS.
• Runs Over TCP.
• BGP conserves network Bandwidth.
• BGP supports CIDR.
• BGP also supports Security.
Functionality of Border Gateway Protocol (BGP)
BGP peers perform 3 functions, which are given below.
• The first function consists of initial peer acquisition and
authentication. both the peers established a TCP connection and
performed message exchange that guarantees both sides have
agreed to communicate.
• The second function mainly focuses on sending negative or
positive reach-ability information.
• The third function verifies that the peers and the network
connection between them are functioning correctly.
Importance of Border Gateway Protocol(BGP)
• Security: BGP is highly secure because it authenticates
messages between routers using preconfigured passwords
through which unauthorized traffic is filtered out.
• Scalability: BGP is more scalable because it manages a vast
number of routes and networks present on the internet.
• Supports Multihoming: BGP allows multihoming means an
organization can connect to multiple networks simultaneously.
• Calculate the Best Path: As we know data packets is traveled
across the internet from source to destination every system in
between the source and destination has to decide where the
data packet should go next
• TCP/IP Model: BGP is based on the TCP/IP model and it is used
to control the network layer by using transport layer protocol.
• Difference Between RIP and OSPF
RIP OSPF
RIP Stands for Routing Information OSPF stands for Open Shortest Path
Protocol. First.
In RIP, the whole routing table is to In OSPF, parts of the routing table are
be broadcasted to the neighbors only sent when a change has been
every 30 seconds by the routers. made to it.
Implementation
Generally more complex Generally simpler
Complexity
Cryptography
Cryptography is a technique of securing information and communications
using codes to ensure confidentiality, integrity and authentication. Thus,
preventing unauthorized access to information. The prefix “crypt” means
“hidden” and the suffix “graphy” means “writing”. In Cryptography, the
techniques that are used to protect information are obtained from
mathematical concepts and a set of rule-based calculations known as
algorithms to convert messages in ways that make it hard to decode
them. These algorithms are used for cryptographic key generation, digital
signing, and verification to protect data privacy, web browsing on the
internet and to protect confidential transactions such as credit card and
debit card transactions.
Features Of Cryptography
The features of cryptography that makes it a popular choice in various
applications could be listed down as:
1. Confidentiality: Information can only be accessed by the person
for whom it is intended and no other person except him can
access it.
2. Integrity: Information cannot be modified in storage or transition
between sender and intended receiver without any addition to
information being detected.
3. Non-repudiation: The creator/sender of information cannot deny
his intention to send information at a later stage.
4. Authentication: The identities of the sender and receiver are
confirmed. As well destination/origin of the information is
confirmed.
5. Interoperability: Cryptography allows for secure communication
between different systems and platforms.
6. Adaptability: Cryptography continuously evolves to stay ahead
of security threats and technological advancements.
Symmetric Key Cryptography
Symmetric Key Cryptography is an encryption system where the sender
and receiver of a message use a single common key to encrypt and
decrypt messages. Symmetric Key cryptography is faster and simpler but
the problem is that the sender and receiver have to somehow exchange
keys securely. The most popular symmetric key cryptography systems
are Data Encryption Systems (DES) and Advanced Encryption Systems
(AES) .
Asymmetric Key Cryptography
In Asymmetric Key Cryptography , a pair of keys is used to encrypt and
decrypt information. A sender’s public key is used for encryption and a
receiver’s private key is used for decryption. Public keys and Private keys
are different. Even if the public key is known by everyone the intended
receiver can only decode it because he holds his private key. The most
popular asymmetric key cryptography algorithm is the RSA algorithm.
It uses public key for encryption and Whereas, it uses public key for
private key for decryption and verification and private key for
signing. signing.
It is best suited for verification and It is best suited for signing in and
encryption. decryption.
It uses public key for encryption and Whereas, it uses public key for
private key for decryption and verification and private key for
signing. signing.
It is best suited for verification and It is best suited for signing in and
encryption. decryption.
Hash Functions
Hash functions are a fundamental concept in computer science and play
a crucial role in various applications such as data storage, retrieval, and
cryptography. A hash function creates a mapping from an input key to an
index in hash table.
Network Firewalls
Network Firewalls are the devices that are used to prevent private
networks from unauthorized access. A Firewall is a security solution for
the computers or devices that are connected to a network, they can be
either in the form of hardware as well as in form of software. It monitors
and controls the incoming and outgoing traffic (the amount of data moving
across a computer network at any given time ).
The major purpose of the network firewall is to protect an inner network
by separating it from the outer network. An inner Network can be simply
called a network created inside an organization and a network that is not
in the range of an inner network can be considered an Outer Network.
Types of Network Firewalls