What is the primary function of a router in a computer network?

Options

  • A. To connect devices within the same network
  • B. To connect multiple networks together
  • C. To filter incoming traffic based on IP addresses
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. To connect multiple networks together

Detailed Explanation

Explanation: A router connects multiple networks and forwards data packets between them using IP addresses. Its primary function is to determine the best path for packet delivery. Although routers can also provide filtering features, the most appropriate answer is connecting multiple networks.