文中介绍了协议一致性测试基本理论,针对6LoWPAN现有草案及实验性协议的实现,设计了一种具有可扩展性的6LoWPAN协议一致性测试平台。文中从该平台的测试系统和被测系统两个部分出发,对基于Windows操作系统实现的测试系统,描述了该平台的功能、各个模块的框架结构和实现方法;应用XML可扩展标识语言设计了测试用例,并应用libxml2对XML标记的测试用例进行解析。设计和实现了报文接收发模块。被测系统部分,对Linux系统端实现的6LoWPAN协议栈进行了测试,达到了一致性测试的目的,对测试结果进行了分析。
According to the 6LoWPAN protocol and the conformance test theory,propose a way to set up a extensible scaffold to do the 6LoWPAN protocol conformance test. Analyze the test system and the system under test (SUT) two parts, for test system is realized in the Windows system, describe the function of the platform, the frame construction and the implement method of each model in detail. The test cases are designed by the eXtensible Markup Language (XML) ,use libxml2 to analyze the testcase labelled by XML. Set the sending and receiving packet modules. And the self-directed 6LoWPAN protocols are tested with this platform to achieve the protocol conform- ance test and the test results are analyzed.