Routers are networking devices that forward data packets between computer networks, routing packets from one router to another until reaching the destination node. There are several types of routers including core routers that forward packets within a network, edge routers that connect a network to external networks, and wireless routers that provide wireless network access in addition to routing. Routers work by receiving packets on one port and forwarding them to the appropriate outgoing port based on routing table information.