计算机科学 ›› 2020, Vol. 47 ›› Issue (9): 258-264.doi: 10.11896/jsjkx.191000048

所属专题: 物联网技术 虚拟专题

• 计算机网络 • 上一篇    下一篇

HATBED:分布式硬件辅助追踪物联网测试平台

马峻岩, 李易, 李尚荣, 张特, 张颖   

  1. 长安大学信息工程学院 西安710064
  • 收稿日期:2019-10-11 发布日期:2020-09-10
  • 通讯作者: 马峻岩(majy@chd.edu.cn)
  • 基金资助:
    国家重点研发计划(2018YFB1600800);国家自然科学基金(61402050);创新引智基地(B14043)

HATBED:A Distributed Hardware Assisted Tracing Testbed for IoT

MA Jun-yan, LI Yi, LI Shang-rong, ZHANG Te, ZHANG Ying   

  1. School of Information Engineering,Chang’an University,Xi’an 710064,China
  • Received:2019-10-11 Published:2020-09-10
  • About author:MA Jun-yan,born in 1982,Ph.D,associate professor,postgraduate supervisor,is a member of China Computer Federation.His main research interests include embedded system and software,intelligent vehicle infrastructure system test and evaluation,etc.
  • Supported by:
    National Key R&D Program of China (2018YFB1600800),National Natural Science Foundation of China (61402050) and 111 Project (B14043).

摘要: 无线传感器网络等物联网系统通常具有资源高度受限且与物理世界耦合的特性,这使得该类系统部署后的设备通常难以调试。因此,在部署前对整个系统进行充分的测试与评价显得尤为重要。传统基于串口的网络化测试手段具有较大的侵入性,且无法对资源受限设备的运行情况进行详细的跟踪。文中对硬件辅助追踪技术在物联网测试评价中的应用进行了研究,设计并实现了一种硬件辅助追踪测试平台——HATBED(Hardware Assisted Tracing Testbed)。HATBED由控制器、观察者以及被测目标组成,可以提供网络级远程调试、灵活的软件追踪以及非侵入式软件分析等主要功能,并在不依赖操作系统与应用的前提下,实现对系统的非侵入式追踪与分析。实验中,首先使用裸机与FreeRTOS操作系统下的标准例程,从功耗开销、时间精度以及代码覆盖率3个方面对HATBED进行了基准性能的测试;然后,以物联网RIOT-OS代码库程序为例,通过HATBED实现了ping6的高精度时间特性分析,及其底层gnrc协议栈UDP通信过程函数覆盖与基本块覆盖的评估。实例分析表明,借助硬件辅助追踪技术,HATBED可以对资源受限的物联网系统开展更加高效、充分的测试与评价。

关键词: 测试平台, 物联网, 硬件辅助追踪

Abstract: Internet of Things systems,such as wireless sensor networks,usually have the characteristics of the high restriction of the resources and coupling with the physical world,which makes it difficult to debug the equipment after deployed.Therefore,it is especially important to thoroughly test and profile the systems before deploying to the real world.Due to the intrusiveness,traditional debugging methods based on the serial port are incompetent for detailed tracing on resource-constrained devices.This paper studies the application of hardware assisted tracing technology in the embedded network sensor systems’ test and evaluation.Then,it designs and realizes a Hardware Assisted Tracing testBed (HATBED).HATBED consists of a controller,observers,and targets.It can provide three services,network-wide remote debugging,flexible software tracing and non-invasive software profiling.HATBED can support non-intrusive tracing and profiling without relying on operating systems and applications.In the experiment,this paper benchmarks time and power consumption,time accuracy,and code coverage under bare-metal and FreeRTOS.Then,it tests the RIOT-OS examples and completes the ping6 command high time accuracy feature profiling and UDP communication function coverage and basic block coverage.With the help of hardware assisted tracing technology,HATBED caneva-luate the resource-constrained Internet of Things systems more efficiently and adequately.

Key words: Hardware assisted tracing, IoT, Testbed

中图分类号: 

  • TP393.05
[1] BOANO C A,DUQUENNOY S,FÖRSTER A,et al.IoT-Bench:Towards a benchmark for low-power wireless networking[C]//2018 IEEE Workshop on Benchmarking Cyber-Physical Networks and Systems (CPSBench).IEEE,2018:36-41.
[2] DODDAVENKATAPPA M,CHAN M C,ANANDA A L.Indriya:A low-cost,3D wireless sensor network testbed[C]//International Conference on Testbeds and Research Infrastructures.Springer,Berlin,Heidelberg,2011:302-316.
[3] ADJIH C,BACCELLI E,FLEURY E,et al.FIT IoT-LAB:A large scale open experimental IoT testbed[C]//2015 IEEE 2nd World Forum on Internet of Things (WF-IoT).IEEE,2015:459-464.
[4] WERNER-ALLEN G,SWIESKOWSKI P,WELSH M.Mote-lab:A wireless sensor network testbed[C]//Proceedings of the 4th International Symposium on Information Processing in Sensor Networks.IEEE Press,2005:68.
[5] KANZAKI A,HARA T,ISHI Y,et al.X-sensor:A sensor network testbed integrating multiple networks[C]//2009 International Conference on Complex,Intelligent and Software Intensive Systems.IEEE,2009:1082-1087.
[6] HANDZISKI V,KÖPKE A,WILLIG A,et al.Twist:a scalable and reconfigurable testbed for wireless indoor experiments with sensor networks[C]//Proceedings of the 2nd International Workshop on Multi-hop Ad Hoc Networks:From Theory to Reality.ACM,2006:63-70.
[7] TYTGAT L,JOORIS B,DE MIL P,et al.Demo abstract:WiLab,a real-life wireless sensor testbed with environment emulation[C]//6th European Conference on Wireless Sensor Networks (EWSN 2009).2009.
[8] WEBER M,WEBER M.A Competition to Push the Dependability of Low-Power Wireless Protocols to the Edge[C]//International Conference on Embedded Wireless Systems & Networks.Junction Publishing,2017.
[9] DUCROCQ T,VANDAËLE J,MITTON N,et al.Large scale geolocalization and routing experimentation with the SensLAB testbed[C]//The 7th IEEE International Conference on Mobile Ad-hoc and Sensor Systems (IEEE MASS 2010).IEEE,2010:751-753.
[10] ZHAO Z,LIU Q,LI D,et al.EasiTest:A Multi-Radio Testbed for Heterogeneous Wireless Sensor Networks[J].Jisuanji Yanjiu yu Fazhan(Journal of Computer Research and Development),2012,49(3):506-517.
[11] LI T L,HUANG P W,YANG X,et al.Design and Implementation of Non-intrusive Wireless Sensor Network Tester[J].Jisuanji Kexue(Computer Science),2010,37(4):45-48.
[12] TANCRETI M,HOSSAIN M S,BAGCHI S,et al.Aveksha:A hardware-software approach for non-intrusive tracing and profiling of wireless embedded systems[C]//Proceedings of the 9th ACM Conference on Embedded Networked Sensor Systems.ACM,2011:288-301.
[13] LIM R,FERRARI F,ZIMMERLING M,et al.Flocklab:A testbed for distributed,synchronized tracing and profiling of wireless embedded systems[C]//Proceedings of the 12th International Conference on Information Processing in Sensor Networks.ACM,2013:153-166.
[14] TRüB R,DA FORNO R,GSELL T,et al.Demo Abstract:A Testbed for Long-Range LoRa Communication[C]//2019 18th ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN).IEEE,2019:342-343.
[15] SOMMER P,KUSY B.Minerva:Distributed tracing and debugging in wireless sensor networks[C]//Proceedings of the 11th ACM Conference on Embedded Networked Sensor Systems.ACM,2013:12.
[16] LI J,WANG C,YANG Y.A General Purpose Testbed for Mobile Data Gathering in Wireless Sensor Networks and a Case Study[C]//2017 IEEE 37th International Conference on Distributed Computing Systems (ICDCS).IEEE,2017.
[17] KAMPIANAKIS E,KIMIONIS J,TOUNTAS K,et al.A Remotely Programmable Modular Testbed for Backscatter Sensor Network Research[J].Lecture Notes in Electrical Engineering,2014,281:153-161.
[18] LATRE S,LEROUX P,COENEN T,et al.City of things:An integrated and multi-technology testbed for IoT smart city experiments[C]//2016 IEEE International Smart Cities Conference (ISC2).IEEE,2016.
[19] PRADEEP P,DIVYA P,DEVI R D A,et al.A remote triggered wireless sensor network testbed[C]//Wireless Telecommunications Symposium (WTS).IEEE,2015.
[20] BELBACHIR,ASSIA.An embedded testbed architecture toevaluate autonomous car driving[J].Intelligent Service Robotics,2017,10(2):109-119.
[21] BURR K,YOUNG W.Combinatorial test techniques:Table-based automation,test generation and code coverage[C]//Proc.of the Intl.Conf.on Software Testing Analysis & Review.1998.
[22] WU Y X,GU G C,WANG K H.Partition method of control flow checking-based low-powered basic block[J].Jisuanji Gongcheng yu Yingyong(Computer Engineering and Applications),2007,42(25):118-120.
[1] 张翀宇, 陈彦明, 李炜.
边缘计算中面向数据流的实时任务调度算法
Task Offloading Online Algorithm for Data Stream Edge Computing
计算机科学, 2022, 49(7): 263-270. https://doi.org/10.11896/jsjkx.210300195
[2] 张翕然, 刘万平, 龙华.
物联网僵尸网络病毒的传播动力学模型与分析
Dynamic Model and Analysis of Spreading of Botnet Viruses over Internet of Things
计算机科学, 2022, 49(6A): 738-743. https://doi.org/10.11896/jsjkx.210300212
[3] 周天清, 岳亚莉.
超密集物联网络中多任务多步计算卸载算法研究
Multi-Task and Multi-Step Computation Offloading in Ultra-dense IoT Networks
计算机科学, 2022, 49(6): 12-18. https://doi.org/10.11896/jsjkx.211200147
[4] 董丹丹, 宋康.
RIS辅助双向物联网通信系统性能分析
Performance Analysis on Reconfigurable Intelligent Surface Aided Two-way Internet of Things Communication System
计算机科学, 2022, 49(6): 19-24. https://doi.org/10.11896/jsjkx.220100064
[5] 沈家芳, 钱丽萍, 杨超.
面向集能型中继窄带物联网的非正交多址接入和多维网络资源优化
Non-orthogonal Multiple Access and Multi-dimension Resource Optimization in EH Relay NB-IoT Networks
计算机科学, 2022, 49(5): 279-286. https://doi.org/10.11896/jsjkx.210400239
[6] 张振超, 刘亚丽, 殷新春.
适用于物联网环境的无证书广义签密方案
New Certificateless Generalized Signcryption Scheme for Internet of Things Environment
计算机科学, 2022, 49(3): 329-337. https://doi.org/10.11896/jsjkx.201200256
[7] 张叶, 李志华, 王长杰.
基于核密度估计的轻量级物联网异常流量检测方法
Kernel Density Estimation-based Lightweight IoT Anomaly Traffic Detection Method
计算机科学, 2021, 48(9): 337-344. https://doi.org/10.11896/jsjkx.200600108
[8] 李贝贝, 宋佳芮, 杜卿芸, 何俊江.
DRL-IDS:基于深度强化学习的工业物联网入侵检测系统
DRL-IDS:Deep Reinforcement Learning Based Intrusion Detection System for Industrial Internet of Things
计算机科学, 2021, 48(7): 47-54. https://doi.org/10.11896/jsjkx.210400021
[9] 李嘉明, 赵阔, 屈挺, 刘晓翔.
基于知识图谱的区块链物联网领域研究分析
Research and Analysis of Blockchain Internet of Things Based on Knowledge Graph
计算机科学, 2021, 48(6A): 563-567. https://doi.org/10.11896/jsjkx.200600071
[10] 王卫红, 陈震宇.
基于改进区块链的智能制造安全模型
Intelligent Manufacturing Security Model Based on Improved Blockchain
计算机科学, 2021, 48(2): 295-302. https://doi.org/10.11896/jsjkx.191200159
[11] 刘新, 黄缘缘, 刘子昂, 周睿.
IoTGuardEye:一种面向物联网服务的Web攻击检测方法
IoTGuardEye:A Web Attack Detection Method for IoT Services
计算机科学, 2021, 48(2): 324-329. https://doi.org/10.11896/jsjkx.200800030
[12] 王锡龙, 李鑫, 秦小麟.
电力物联网下分布式状态感知的源网荷储协同调度
Collaborative Scheduling of Source-Grid-Load-Storage with Distributed State Awareness UnderPower Internet of Things
计算机科学, 2021, 48(2): 23-32. https://doi.org/10.11896/jsjkx.200900209
[13] 张育龙, 王强, 陈明康, 孙静涛.
图像去雨算法在云物联网应用中的研究综述
Survey of Intelligent Rain Removal Algorithms for Cloud-IoT Systems
计算机科学, 2021, 48(12): 231-242. https://doi.org/10.11896/jsjkx.201000055
[14] 宗思洁, 覃天, 贺龙兵.
面向IOT芯片的安全启动算法分析与应用
Analysis and Application of Secure Boot Algorithm Based on IOT Chip
计算机科学, 2021, 48(11A): 552-556. https://doi.org/10.11896/jsjkx.210300237
[15] 刘炜, 阮敏捷, 佘维, 张志鸿, 田钊.
面向物联网的PBFT优化共识算法
PBFT Optimized Consensus Algorithm for Internet of Things
计算机科学, 2021, 48(11): 151-158. https://doi.org/10.11896/jsjkx.210500038
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!