首页 | 官方网站   微博 | 高级检索  
     

基于Netty的IoT终端通信服务系统设计
引用本文:顾振德,刘子辰,龙隆,牟林宏.基于Netty的IoT终端通信服务系统设计[J].计算机应用与软件,2019(4):135-139.
作者姓名:顾振德  刘子辰  龙隆  牟林宏
作者单位:1.重庆邮电大学通信与信息工程学院;2.移动计算与新型终端北京市重点实验室(中国科学院计算技术研究所)
基金项目:国家科技重大专项基金项目(2016ZX03002010-003)
摘    要:IoT终端高并发连接通信服务系统,造成服务器数据交互NIO线程数飙升,导致服务器宕机。对此分析异步非堵塞Netty框架,提出一种通信服务系统的设计方案。方案包含优化Netty设计,提出自定义通信协议,并结合自定义线程池进行数据接收、session管理、异常处理,日志记录,数据发送等主要模块的设计。经大于2 000并发测试表明,该方案的系统平均响应时间较Java NIO和Netty实现方案缩短了97%和95%,吞吐量提高了54%和33.2%。测试证明该设计具有较高的稳定性、可靠性以及高并发处理能力。

关 键 词:Netty  高并发  自定义线程池  JAVA  NIO  吞吐量

DESIGN OF IOT TERMINAL COMMUNICATION SERVICE SYSTEM BASED ON NETTY
Gu Zhende,Liu Ziehen,Long Long,Mou Linhong.DESIGN OF IOT TERMINAL COMMUNICATION SERVICE SYSTEM BASED ON NETTY[J].Computer Applications and Software,2019(4):135-139.
Authors:Gu Zhende  Liu Ziehen  Long Long  Mou Linhong
Affiliation:(School of Communication and Information Engineering, Chongqing University of Posts and Telecommunications,Chongqing 400065, China;Beijing Key Laboratory of Mobile Computing and Pervasive Device (Institute of Computing Technology, Chinese Academy of Sciences),Beijing 100190, China)
Abstract:The high concurrency of IoT terminal communication service system connections leads to the soaring number of NIO threads in server data interaction, which eventually leads to server downtime. To solve this problem, we analyzed the asynchronous non-blocking Netty framework and proposed a design scheme of communication service system. The design scheme included optimizing Netty design, putting forward self-defined communication protocol and system design which was divided into data receiving, session management, exception handling, log recording, data sending and other main modules, combining with the custom thread pool. The concurrent tests over 2 000 show that the average response time of the design scheme is 97% and 95% shorter than that of Java NIO and Netty scheme, and the throughput is increased by 54% and 33. 2%. The test proves that the system has high stability, reliability and concurrent processing ability.
Keywords:Netty  High concurrent  Custom thread pool  Java NIO  Throughput
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号