A switch looks at the data sent to it and tries to solely ahead packets…