In switching packets are transferred from source to destination using MAC address. Switching is done within the network. Switch switches within the subnet that is switching whereas Router routes between the network. Routing is a process which is done between two networks using IP addresses. Basically routing is intelligent switching.
Below table compares both switching and routing terminologies –