Analyzing Spanning Tree Protocols