Routing and forwarding are the two major functionalities of a router. The routing process builds the forwarding table used by the forwarding process. The forwarding process looks at the destination address of a packet, consults the forwarding table, and then moves the packet from the incoming port of the router to the outgoing port. Routing runs periodically while forwarding runs instantly. Routing algorithms are run globally and cooperatively; forwarding processes are performed locally only.