Switch is a sort of normal, but very important equipment in the real world. Networking topology with large dimension and high performance could be set up through the combination of switches. Nowadays, Ethernet switches are not only used for LAN's interaction and network accessing, but also backbones.This thesis summarizes the development work at the period of reading for master degree and discusses the contents as follows. Through the research of switch chip that is used in the Layer 2 Ethernet switch developed by Beijing VANLINK Co.. The architecture of the driver has been designed and realized. Spanning Tree Protocol and General VLAN Registration Protocol have been implemented. The switch is launched successfully.Layered design is used for the architecture of the driver. The whole driver program is divided into five layers, each of which provides self-defined standard service functions for the upper layer. When the driver is transferred from one hard platform to the others, the layers completely dependent on the hardware must be mended, but the others stay little changed. Besides, I listed the specific implementation of several sub-modules. The two protocol modules were realized by some opening codes of the RFC. They were realized based on the switch chip. Finally, the improvement of them was mentioned. |