Interdomain I/O Optimization in Virtualized Sensor Networks
In virtualized sensor networks, virtual machines (VMs) share the same hardware for sensing service consolidation and saving power. For those VMs that reside in the same hardware, frequent interdomain data transfers are invoked for data analytics, and sensor collaboration and actuation. Traditional w...
Main Authors: | , , , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2018-12-01
|
Series: | Sensors |
Subjects: | |
Online Access: | https://www.mdpi.com/1424-8220/18/12/4395 |
id |
doaj-963ffa47e11d4db1a8c9bba86a562d1a |
---|---|
record_format |
Article |
spelling |
doaj-963ffa47e11d4db1a8c9bba86a562d1a2020-11-24T21:22:13ZengMDPI AGSensors1424-82202018-12-011812439510.3390/s18124395s18124395Interdomain I/O Optimization in Virtualized Sensor NetworksCongfeng Jiang0Tiantian Fan1Yeliang Qiu2Hongyuan Wu3Jilin Zhang4Neal N. Xiong5Jian Wan6Key Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaKey Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaKey Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaKey Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaKey Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaCollege of Intelligence and Computing, Tianjin University, Tianjin 300072, ChinaKey Laboratory of Complex Systems Modeling and Simulation, Ministry of Education, Hangzhou 310037, ChinaIn virtualized sensor networks, virtual machines (VMs) share the same hardware for sensing service consolidation and saving power. For those VMs that reside in the same hardware, frequent interdomain data transfers are invoked for data analytics, and sensor collaboration and actuation. Traditional ways of interdomain communications are based on virtual network interfaces of bilateral VMs for data sending and receiving. Since these network communications use TCP/IP (Transmission Control Protocol/Internet Protocol) stacks, they result in lengthy communication paths and frequent kernel interactions, which deteriorate the I/O (Input/Output) performance of involved VMs. In this paper, we propose an optimized interdomain communication approach based on shared memory to improve the interdomain communication performance of multiple VMs residing in the same sensor hardware. In our approach, the sending data are shared in memory pages maintained by the hypervisor, and the data are not transferred through the virtual network interface via a TCP/IP stack. To avoid security trapping, the shared data are mapped in the user space of each VM involved in the communication, therefore reducing tedious system calls and frequent kernel context switches. In implementation, the shared memory is created by a customized shared-device kernel module that has bidirectional event channels between both communicating VMs. For performance optimization, we use state flags in a circular buffer to reduce wait-and-notify operations and system calls during communications. Experimental results show that our proposed approach can provide five times higher throughput and 2.5 times less latency than traditional TCP/IP communication via a virtual network interface.https://www.mdpi.com/1424-8220/18/12/4395interdomain communicationshared memorycircular buffer optimizationvirtual sensor networks |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Congfeng Jiang Tiantian Fan Yeliang Qiu Hongyuan Wu Jilin Zhang Neal N. Xiong Jian Wan |
spellingShingle |
Congfeng Jiang Tiantian Fan Yeliang Qiu Hongyuan Wu Jilin Zhang Neal N. Xiong Jian Wan Interdomain I/O Optimization in Virtualized Sensor Networks Sensors interdomain communication shared memory circular buffer optimization virtual sensor networks |
author_facet |
Congfeng Jiang Tiantian Fan Yeliang Qiu Hongyuan Wu Jilin Zhang Neal N. Xiong Jian Wan |
author_sort |
Congfeng Jiang |
title |
Interdomain I/O Optimization in Virtualized Sensor Networks |
title_short |
Interdomain I/O Optimization in Virtualized Sensor Networks |
title_full |
Interdomain I/O Optimization in Virtualized Sensor Networks |
title_fullStr |
Interdomain I/O Optimization in Virtualized Sensor Networks |
title_full_unstemmed |
Interdomain I/O Optimization in Virtualized Sensor Networks |
title_sort |
interdomain i/o optimization in virtualized sensor networks |
publisher |
MDPI AG |
series |
Sensors |
issn |
1424-8220 |
publishDate |
2018-12-01 |
description |
In virtualized sensor networks, virtual machines (VMs) share the same hardware for sensing service consolidation and saving power. For those VMs that reside in the same hardware, frequent interdomain data transfers are invoked for data analytics, and sensor collaboration and actuation. Traditional ways of interdomain communications are based on virtual network interfaces of bilateral VMs for data sending and receiving. Since these network communications use TCP/IP (Transmission Control Protocol/Internet Protocol) stacks, they result in lengthy communication paths and frequent kernel interactions, which deteriorate the I/O (Input/Output) performance of involved VMs. In this paper, we propose an optimized interdomain communication approach based on shared memory to improve the interdomain communication performance of multiple VMs residing in the same sensor hardware. In our approach, the sending data are shared in memory pages maintained by the hypervisor, and the data are not transferred through the virtual network interface via a TCP/IP stack. To avoid security trapping, the shared data are mapped in the user space of each VM involved in the communication, therefore reducing tedious system calls and frequent kernel context switches. In implementation, the shared memory is created by a customized shared-device kernel module that has bidirectional event channels between both communicating VMs. For performance optimization, we use state flags in a circular buffer to reduce wait-and-notify operations and system calls during communications. Experimental results show that our proposed approach can provide five times higher throughput and 2.5 times less latency than traditional TCP/IP communication via a virtual network interface. |
topic |
interdomain communication shared memory circular buffer optimization virtual sensor networks |
url |
https://www.mdpi.com/1424-8220/18/12/4395 |
work_keys_str_mv |
AT congfengjiang interdomainiooptimizationinvirtualizedsensornetworks AT tiantianfan interdomainiooptimizationinvirtualizedsensornetworks AT yeliangqiu interdomainiooptimizationinvirtualizedsensornetworks AT hongyuanwu interdomainiooptimizationinvirtualizedsensornetworks AT jilinzhang interdomainiooptimizationinvirtualizedsensornetworks AT nealnxiong interdomainiooptimizationinvirtualizedsensornetworks AT jianwan interdomainiooptimizationinvirtualizedsensornetworks |
_version_ |
1725996873980837888 |