A router is a networking device that operates at the Network Layer (Layer 3) of the OSI model. Its primary function is to connect different networks and forward data packets between them.
Let's analyze the options:
(A) Signal Amplification: This is the function of a repeater or a hub, which operate at the Physical Layer (Layer 1).
(B) Collision Avoidance: This is managed by protocols like CSMA/CA at the Data Link Layer (Layer 2), especially in wireless networks. Switches help reduce collisions by creating separate collision domains.
(C) Frame Filtering: This is a function of a switch or a bridge, which operate at the Data Link Layer (Layer 2). They forward frames based on MAC addresses.
(D) Packet Switching: This is the core function of a router. It receives an IP packet, examines its destination IP address, consults its routing table to determine the best path to the destination network, and then forwards (switches) the packet to the appropriate next-hop router or destination host.
Therefore, the main function of a router is packet switching.