Abstract:To check the connection between a large number of switchings and the optical lines in working order, the network management software based on SNMP protocol is usually checked, or a single test method is used. However, these methods cannot meet the requirements of the operation and management very well. This paper analyzes the features of campus ethernet connection and operation and establishes the singly linked list modal. Finally, it achieves the automatic detection the operation state between the optical line and switch equipment in management vlan regions based on Ping or TraceRt method and makes a comparison with open source MRTG software’s flow.