| Recent years,human perception of the objective world is increas ing with the introduction of the concept of Internet of thingsand de velopment of technology. Wireless sensor network which is the im portant means of realization of Internet of things has becomea hot research field. The design and implementation for protocol stack of linear long-distance wireless sensor networkis the key whether a wireless sensor network can work efficiently.The existing design sof wireless sensor network protocol stack is based on topology o f the mesh network star network, which perform badly in the top ology of linear long-distance such as oil pipeline, road and river. In such current situation of technology development, we designed a protocol stack named "the method of port number mapping"espe cially for linear long-distance wireless sensor network, and an imp lementation of this protocol stack is also given in this paper. Furt hermore, we put forward an overall system for the linear long-dist ance wireless sensor network, and give the detailed description of the design for the gateway node as well as connection of the P C terminal management software.In this paper, the performance of linear long-distance wirele ss sensor network was on the whole tested and analyzed base on the design for its protocol. The network energy model an d single WSN-node energy consumption are analyzed after corresp onding experiments. In this way, We found the energy model is asymmetry and know clearly the performance of thecomm unication in physical layer. Referred to the description all abo ve, we give a proper implementation plan for the linear long-distance wireless sensor network. |