A router is used to "route" packets. Not all routers have firewalls. It recieves packets and using a routing protocol determines where to deliver the packet (its Destination). Think of it like a highway with multiple exits and a traffic cope standing there, you drive up, show him your address...