提出一种基于Contiki操作系统的6LoWPAN无线传感器网络协议栈的实现方案,利用Cooja软件仿真环境对提出的方案进行整体网络模拟。在保证基于6LoWPAN的无线传感器网络和IPv6网络连通性正常的情况下,实现数据报的分片和重组、UDP数据传输、传感数据采集、网络拓扑监视等功能。通过实验验证,该方案具有可行性和合理性,有一定的研究和应用价值。
This paper puts forward a design for 6LoWPAN stack based on Contiki operating system. Then, the Cooja simulation environment is adopted to simulate the whole performance of 6LoWPAN network. It mainly implements such functions as packet fragmentation and reassembly, UDP packet transition, environmental data collection and network topology monitoring on the premise that the 6LoWPAN network can connect to IPv6 network normally. Through this test, it achieves the anticipated objectives and results, proving the correctness and effectiveness of the proposed scheme and validating the rationality and feasibility of the 6LoWPAN stack designed for WSN in the paper.