How to Optimize Spanning Tree Protocol for Better Network Performance