Simulate spanning tree algorithm on a network of lans and bridges via UDP protocol