The looping of frames over a LAN can be prevented using the spanning tree protocol, which does this by placing…