| With the rapid development of mobile Internet, Internet of Things and cloud computing network, the demands on the network is increasing.However, due to the poor scalability and manageability of traditional network architecture, it is difficult to adapt to the rapid development of the network, so people are trying to design new network architecture.Moreover, more and more protocols are built in the network devices,which increases the difficulty of researching the new network protoco. To some extent, it hinders the innovation and development of the network.OpenFlow is a new kind of network switching model, which is the core technology to solve the problem of the Internet. VxWorks operating system is a excellent embedded real-time operating system, and it is widely used. However, most of the software implemented OpenFlow switches are running on the Linux system, and can not support VxWorks system.Based on this situation, this paper researches the implemention of OpenFlow software switch based on VxWorks system. Firstly, the background and research status of OpenFlow and SDN are expounded.The VxWorks system and OpenFlow technology are also introduced.Then, this paper studies the structure of the datapath and the process of packet matching deeply, and designs hash flow table for high speed matching.This paper not only researches the establishment of security channel, but also researches the structure and processing methods of various OpenFlow messages. The secure channel is realized by reliable connection. Then, combined with the excellent task management characteristics of VxWorks operating system, the OpenFlow switch is realized through multi-task. This paper also optimizes the flow table matching algorithm and the timeout flow entry in OpenFlow technology.Finally, the accomplished OpenFlow software switch is ran by VMware Workstation. The controller can configure the switch and manage flow table correctly. According to the OpenFlow switch test specification customized by the ONF (Open Network Foundation), the functional tests of the OpenFlow switch are performed.To sum up, this paper implements the OpenFlow software switch based on VxWorks system successfully, then verifies that the network equipment based on VxWorks operating system has the ability of building OpenFlow network. The research results provide more possibilities for the application of OpenFlow network protocol, which is of great significance. |