Each of these components serves a distinct purpose within a network infrastructure. A gateway acts as a interface between two different networks, typically enabling communication between disparate platforms. In contrast, a hub functions as a shared connection point for multiple devices, broadcasting data to every endpoint attached to it. Switches,