•Hub is used to create a small networks.
•It is used for network monitoring.
•It is also used in organizations to provide connectivity.
•It can be used to create a device that is available through out of the network.
•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.
What is network switch?
•A network switch is a small hardware device that centralizes communications among multiple connected devices within one local area network(LAN).
•A network switch is a computer networking device that connects devices together on a computer network by using packet switching to receive, process and forward data to the destination device.
•A large network may include multiple switches, which connect different groups of computer system together.
•These switches are typically connected to a router that allows connected devices to access the Internet.
How does an Ethernet Switch work?
Working of network switch is divided into four steps,
•Receiving Packets: An ethernet switch works at the data link level. Devices with Ips create packets, which are then available within an ethernet frame.
•Encapsulation: In order to transport the information contained in the IP packet through the network, encapsulation occurs, where bits adhere to the front and back of the packet.
In computer networks, a frame is a digital unit of data that transmits packets and includes control information and addressing. Frames are a key part of the data link layer (Layer 2) of the OSI (Open Systems Interconnection) model. They help ensure that data is delivered reliably and efficiently between devices on a network
A data frame in a computer network is a packet of data that has been encapsulated with a header and trailer to be sent across a local network.
Processing Identifying Data: The frame contains key identifying data is available at the header, such as inter alia source, source MAC address and destination MAC address. When the frame arrives at the ethernet switch, the switch reads the information and decodes where to forward(send) it through the ports to reach its targeted destination.
Sending : The frame reaches at the destination device, which then receives and strips the packet.