The switch sends broadcast traffic to all ports like a hub to get the number of ports used and build its MAC address table.
Explanation:
A network switch is a device used in a LAN to connect all available workstations. Unlike a network hub, it is able to send frames from a host or workstation to another using its MAC address table.
An example of a switch is the Cisco 2950 switch. When it is first turned on, it acts as a hub, broadcasting traffic to all its ports. This process is used to create a MAC address table to get the IP address of workstations and the ports they relate to, enabling it to send unicast traffic to a specific port.
Tracert is the command that is used to trace the track of the packet of the Internet Protocol. That's why when the user troubleshoots their workstation and then the problem will occur at the time of conversation to the host's IP. So, that's why he using the following command of the to track route of the IP packets.