Unlike a modem, which serves as the gateway between the ISP network infrastructure and a local network, a router generates a wireless connection and manages traffic on a local area network. Modern routers and mesh router systems also perform many network processing tasks, maintain firewalls, and even store data.