| ITU put forward the concept of IoT(Internet of Things) in 2005.All things should be connected to exchange information though Internet,resulting to the network and the computing anywhere, also the connections between anything at anywhere and anytime. Io T earns greatly focus since it has been put. It is considered the Third Wave of world information industry after computer and internet.The IoT gateway is the connection between the public network and the sensor network. And the research mainly focuses on the sensor network and the more efficient way the IoT gateway access to the public network.Thethesis main work is the research on three problems. First of all, the design of structure of the IoT gateway. Different from traditional gateway,the sensor gateway connects public network on one side,and connects sensor network on the other side.So we design a layered structure, containing strategy layer and forwarding layer.Strategy layer is used to output strategy,and receive commands from upper server.besides,italso answers for managing the sensor nodes,and rules matching. Forwarding layer is only to transfer the data package. This structure which separates the controlling flow from data flow can raise the transmission efficiency of system.Secondly, the thesis works on the analysis and optimization of Rete algorithm inrule matching. Rete algorithm takes an important role in rule matching,also it is core of rule engine.This paper analyses the mechanism of Rete algorithm, and put forward the optimization of the Rete algorithm and its efficiency analysis.Thirdly, the whole solution for the Io T sensor gateway. we analyse the application of SDN in the sensor network gateway. The thesis put forward the the software structureand the hardware design of the sensor gateway. In addition,we discuss the design of the rule engine. |