0% found this document useful (0 votes)
23 views34 pages

Computer Networks: Hub, Switch, Router, Bridge

The document provides an overview of key components in computer networks, including hubs, switches, routers, and bridges, along with their functionalities and differences. It explains how each device operates within the OSI model and their roles in data transmission and network connectivity. Additionally, it covers network cables, specifically Ethernet cables, and their wiring standards.

Uploaded by

2021eeb1188
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views34 pages

Computer Networks: Hub, Switch, Router, Bridge

The document provides an overview of key components in computer networks, including hubs, switches, routers, and bridges, along with their functionalities and differences. It explains how each device operates within the OSI model and their roles in data transmission and network connectivity. Additionally, it covers network cables, specifically Ethernet cables, and their wiring standards.

Uploaded by

2021eeb1188
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Computer Networks

Hub, Switch, Router, Bridge

Jan 2021 Prepared By Dr. Sujata Pal, IIT Ropar 1 / 34


Previous Class


Network

Computer Network

Medium of Communications

Data Flow

Topology

LAN, MAN, WAN

Prepared By Dr. Sujata Pal, IIT Ropar 2 / 34


Jan 2021
Network Components

Prepared By Dr. Sujata Pal, IIT Ropar 3 / 34


Jan 2021
Host

Prepared By Dr. Sujata Pal, IIT Ropar 4 / 34


Jan 2021
Network

Prepared By Dr. Sujata Pal, IIT Ropar 5 / 34


Jan 2021
Repeater


A repeater operates at the physical layer.

Its job is to regenerate the signal over the same network before the signal becomes too weak
or corrupted so as to extend the length to which the signal can be transmitted over the same
network.

It is a 2 port device.

Prepared By Dr. Sujata Pal, IIT Ropar 6 / 34


Jan 2021
Hub

Prepared By Dr. Sujata Pal, IIT Ropar 7 / 34


Jan 2021
Hub

Prepared By Dr. Sujata Pal, IIT Ropar 8 / 34


Jan 2021
Hub

A hub is basically a multiport 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.
Demerits:

No security

Creates unnecessary traffic

Waste bandwidth
Prepared By Dr. Sujata Pal, IIT Ropar 9 / 34
Jan 2021
Bridge

A bridge operates at data link layer.

A bridge is a repeater, with add on the
functionality of filtering content by reading
the MAC addresses of source and destination.

It is also used for interconnecting two LANs
working on the same protocol.

It has a single input and single output port,
thus making it a 2 port device.

Prepared By Dr. Sujata Pal, IIT Ropar 10 / 34


Jan 2021
Bridge

Prepared By Dr. Sujata Pal, IIT Ropar 11 / 34


Jan 2021
Switch


A switch is a layer-2 network connecting device, i.e., it works on the physical and
data-link layer of the OSI model.

A switch maintains a Switch table which has the MAC addresses of all the devices
connected to it.

Prepared By Dr. Sujata Pal, IIT Ropar 12 / 34


Jan 2021
Switch


It is preferred more over the hub, as it reduces any kind of unnecessary traffic in the
transmission channel.

A switch can connect the devices only in the same network.

It uses the full-duplex mode of communication and saves bandwidth. The switch
table keeps on updating every few seconds for better processing.

A Switch is an intelligent device with filtering capabilities.

When a data frame arrives at the Switch, it first checks for any kind of
error in the data frame. If the frame is error-free, it will search the MAC
address of the destination in the Switch table. If the address is
available in the switch table, it will forward the data frame to that
specific node, else switch will register the MAC address in the switch
table.

Prepared By Dr. Sujata Pal, IIT Ropar 13 / 34


Jan 2021
Switch

If the destination address is not specified, it will broadcast the data
frame to each node in the network.

A Switch can have 8/6/24/48 ports. The data transmission speed is
slow in a switch(around 10-100 Mbps). Also, it has only one
broadcasting domain.
Disadvantages of using a Switch:

It can connect devices of the same network only.

There is a delay in forwarding the frames due to error checking.

There is a need to maintain a Switch table.

Prepared By Dr. Sujata Pal, IIT Ropar 14 / 34


Jan 2021
Prepared By Dr. Sujata Pal, IIT Ropar 15 / 34
Jan 2021
Two networks with two switches

Prepared By Dr. Sujata Pal, IIT Ropar 16 / 34


Jan 2021
Router

Prepared By Dr. Sujata Pal, IIT Ropar 17 / 34


Jan 2021
Router

Prepared By Dr. Sujata Pal, IIT Ropar 18 / 34


Jan 2021
Router

The Router is the Gateway of a network.

Hubs and switches are used to create networks.

Router are used to connect networks.

Prepared By Dr. Sujata Pal, IIT Ropar 19 / 34


Jan 2021
Prepared By Dr. Sujata Pal, IIT Ropar 20 / 34
Jan 2021
Router

A Router is a layer-3 network connecting device, i.e., it works on
the physical, data-link and network layer of the OSI model.

It is mainly an internetworking device, which can connect
devices of different networks

A Router is used to connect the networks or it routes traffic
between the networks.

In other words, a Router is the Gateway of a network.

It can have 2/4/8 ports for connecting the devices.

A router maintains a routing table using the routing algorithms.
When a data packet is received at the router, it first checks the
IP address. If the IP address is the same as the network's IP
address, it receives the data packet, else it forwards the data
packet to the destination IP address using the routing table.

Prepared By Dr. Sujata Pal, IIT Ropar 21 / 34


Jan 2021
Router

Prepared By Dr. Sujata Pal, IIT Ropar 22 / 34


Jan 2021
Prepared By Dr. Sujata Pal, IIT Ropar 23 / 34
Jan 2021
MODEM (modulator-demodulator)

A modem is what brings the Internet into your home or
business.

As analog data comes from the Internet the modem
demodulates incoming analog signals into a digital signal, so
that computer can understand it.

Modem also outgoing digital signal into an analog signal.

Prepared By Dr. Sujata Pal, IIT Ropar 24 / 34


Jan 2021

Some router have builtin switch within it.
Those router can pass Internet connections to
all of your devices.

You do not need a router if you want only one
of your device needs Internet access.

Prepared By Dr. Sujata Pal, IIT Ropar 25 / 34


Jan 2021

A lot of time the modem is a combination of
modem and router.

A modem router device would have a modem
with a built-in wireless router in one device.

A modem is part of the data link layer (layer
2) and connects an internal network to the
external Internet.

A digital subscriber line (DSL) modem is a
device used to connect a computer or router
to a telephone line.

Cable modem connected by co-axial cable.

Prepared By Dr. Sujata Pal, IIT Ropar 26 / 34


Jan 2021
Common network cable types


Unshielded
twisted pair


Coaxial
cable


Fiber optic

Prepared by Dr. S. Pal


Ethernet Cable


It is composed of 4-
pair twist wirings.
– Orange
– Green
– Blue
– Brown

Prepared by Dr. S. Pal



Unshielded twisted pair: because they are not wrapped
inside a metallic film.

Solid colours are -ve polarity, whereas stripped colours
represent +ve polarity.

Orange pair sends data. Used for sending photos, videos.

Green pair receives data. Used for downloading

Blue and brown pairs can be used to increase bandwidth.

Prepared by Dr. S. Pal


Rj45 plug

Color Pin (T568B)


White/Orange 1
Orange 2
White/Green 3
Blue 4
White/Blue 5
Green 6
White/Brown 7
Brown 8

You can use the order of rainbow colors to memorize


the order of this wiring. “red, orange, yellow, green,
blue, indigo and violet”

Prepared by Dr. S. Pal


Connection of 8 cables

T568A and T568B

T568B Color Code



RJ45 Pin---Pair Color

1-------------White/Orange

2-------------Orange

3-------------White/Green

4-------------Blue

5-------------White/Blue

6-------------Green

7-------------White/Brown

8-------------Brown
We can use either of them. Generally, we use T568B. Both the end
T568A Color Code Same standard at both ends ---> straight cable/patch cable

RJ45 Pin---Pair Color

1-------------White/Green Opposite standard at both the ends ---> crossover cable

2-------------Green

3-------------White/Orange

4-------------Blue

5-------------White/Blue

6-------------Orange

7-------------White/Brown

8-------------Brown

Prepared by Dr. S. Pal


LAN cable or CAT - 5 Cable


RJ45

Prepared by Dr. S. Pal


Pin Usage
1 Transmission (Tx+)
2 Transmission (Tx-)
3 Receive (Rx+)
4 --
5 --
6 Receive (Rx-)
7 --
8 --

• We can use the concept to justify the order of the wiring


colors of straight through and crossover.

33

Prepared by Dr. S. Pal


Prepared By Dr. Sujata Pal, IIT Ropar 34 / 34
Jan 2021

You might also like