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