Hub is the hardware networking device that is used to connect several computers and computer devices on network through its port.
Port is the hardware cable connection interface.
Data is first transferred from sender computer system to hub and then hub transmits the data to other connected devices through its ports.
Hub provides a path for data to transmit from source to destination.
A hub consists of multiple ports.
When data in the form of packet is sent to the hub then it copies the data packet to all of its port.