| The implementation of virtual machine has become pervasive in datacenter whose three main components:calculation, storage and network are becoming increasingly virtualized. Currently traditional network are confronted with various challenges:increasing demand for link layer topology discovery, low utilization of data link due to STP’s defective mechanism;limited tenants that can be served under VLAN architecture;difficulties in IP maintenance resulted in frequent migration of virtual machine. Virtual eXtensible Local Area Network (VXLAN) emerged as a revolutionary invention, offering solutions to all problems mentioned above.VXLAN is a "MAC in UDP" technology promoted by Cisco and VMware back in the year 2011. By encapsulation tunneling, it creates a layer 2 network on top of layer 3. VXLAN solves VLAN’s constraints meanwhile shows great compatibility to traditional networking whose utilization rate can be maximized.In this article, core function of VXLAN driven system was designed and achieved using C language base on BCM88650 chip form Broadcom. The design is composed of 3 layers:interface layer, function layer and entry layer. Connecting with software platform is performed on Interface layer; function layer can be divided into four models, each performing individual task:adding/deleting tunnel is done in tunnel module, setting up AC surface is performed in AC module, VSI resources allocation is performed in VSI module and MAC addressing is achieved in MAC module. At entry layer, SDK interface is called to deploy entries to hardware.After core function of driven system was accomplished, the author set a testing environment based on IRF and MDC, where testing example was written and development for test of automation script was completed, VXLAN modules’basic functions and transmission atomization between layer 2 and layer 3 were tested. Testing results justify the author’s expectation that VXLAN meets the system requirement. |