基于Netty的IoT终端通信服务系统设计  被引量:26

DESIGN OF IOT TERMINAL COMMUNICATION SERVICE SYSTEM BASED ON NETTY

在线阅读下载全文

作  者:顾振德 刘子辰[2] 龙隆[2] 牟林宏 Gu Zhende;Liu Ziehen;Long Long;Mou Linhong(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)

机构地区:[1]重庆邮电大学通信与信息工程学院,重庆400065 [2]移动计算与新型终端北京市重点实验室(中国科学院计算技术研究所),北京100190

出  处:《计算机应用与软件》2019年第4期135-139,共5页Computer Applications and Software

基  金:国家科技重大专项基金项目(2016ZX03002010-003)

摘  要:IoT终端高并发连接通信服务系统,造成服务器数据交互NIO线程数飙升,导致服务器宕机。对此分析异步非堵塞Netty框架,提出一种通信服务系统的设计方案。方案包含优化Netty设计,提出自定义通信协议,并结合自定义线程池进行数据接收、session管理、异常处理,日志记录,数据发送等主要模块的设计。经大于2 000并发测试表明,该方案的系统平均响应时间较Java NIO和Netty实现方案缩短了97%和95%,吞吐量提高了54%和33.2%。测试证明该设计具有较高的稳定性、可靠性以及高并发处理能力。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.

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

分 类 号:TN915[电子电信—通信与信息系统] TP3[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象