Data link Layer switching
Routers, Hubs, Switches, and Bridges are all network connecting devices.
A network connecting device is a device that connects two or more devices together that are
present in the same or different networks.
Repeaters
• A repeater operates at the physical layer.
• A repeater is a powerful network hardware device that regenerates an incoming signal
from the sender before retransmitting it to the receiver.
• It is also known as a signal booster, and it helps in extending the coverage area of
networks.
• The Incoming data can be in optical, wireless or electrical signals.
• It works at the physical layer of the OSI model.
Hubs
• Hub is a very simple network connecting device.
• In Star/hierarchical topology, a Repeater is called Hub.
• It is also known as a Multiport Repeater Device.
• A Hub is a layer-1 device and operates only in the physical network of the OSI
Model.
• Since it works in the physical layer, it mainly deals with the data in the form of bits or
electrical signals.
• A Hub is mainly used to create a network and connect devices on the same network
only.
Bridges
• A bridge is a layer-2 network connecting device
• it works on the physical and data-link layer of the OSI model.
• It interprets data in the form of data frames.
• In the physical layer, the bridge acts as a Repeater which regenerates the weak
signals, while in the data-link layer, it checks the MAC(Media Access Control)
address of the data frames for its transmission.
• A bridge connects the devices which are present in the same network.
• It is mainly used to segment a network to allow a large network size.
• It has two types of port - incoming and outgoing.
• It uses the incoming port to receive the data frames and outgoing port to send the data
frames to other devices.
• A Bridge has filtering capacity.
• It means that it can discard the faulty data frames and will allow only the errorless
data frames in the network.
Switches
• A switch is a layer-2 network connecting device
• It works on the physical and data-link layer of the OSI model.
• It interprets data in the form of data frames.
• A switch acts as a multiport bridge in the network.
• A switch maintains a Switch table which has the MAC addresses of all the devices
connected to it.
• It is preferred more over the hub, as it reduces any kind of unnecessary traffic in the
transmission channel.
• It uses the full-duplex mode of communication and saves bandwidth.
• The switch table keeps on updating every few seconds for better processing.
Routers
• A Router is a layer-3 network connecting device,
• it works on the physical, data-link and network layer of the OSI model.
• It interprets data in the form of data packets.
• 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.
Gateways
• A gateway is an internetworking capable of joining together two networks that use
different base protocols.
• A network gateway can be implemented completely in software, hardware, or a
combination of both, depending on the types of protocols they support.
• A network gateway can operate at any level of the OSI model.
• A gateway is a router or proxy server that routes between networks.
• A gateway belongs to the same subnet to which the PC belongs.