A router is any piece of hardware or software that forwards packets based on their destination IP address. Connects each of the subnets Your typical home router functions as a router and a switch, this is what is known as a MLS or multilayer switch.