Step 1: Understanding the Concept:
Filtering incoming network traffic is a primary function of devices that operate at the network layer or higher, often employing Access Control Lists (ACLs) to permit or deny packets.
Step 2: Detailed Explanation:
- Router: Uses routing tables and ACLs to inspect incoming packets and filter them based on source, destination, and protocol.
- Switch: Operates mostly at the data link layer (Layer 2) and primarily forwards frames based on MAC addresses.
- Hub: Just broadcasts signals to all ports.
- Gateway: Acts as a bridge between two different networks but is a broader term than a router.
Step 3: Final Answer:
Packets are filtered at the Router.