A switch transfer packets without changing the content of the packets, and may change the transfe rate on each port. A router will remap the ip address information in the packets between internal ports and it's external port. A router will also assign ip addresses to all the devices connected to it's internal ports.