A router is a network device that transfers data packets between computer networks. Routers that work on layer 2 and layer 3 of the International Organization for Standardization (ISO)/Open Systems Interconnection (OSI) model are known as service provider routers.