吉林大学学报(工学版) ›› 2012, Vol. 42 ›› Issue (增刊1): 290-294.

• 论文 • 上一篇    下一篇

面向物联网应用平台的Socket设计与优化

王堃, 于悦, 张玉华, 郭篁, 王琳琳   

  1. 南京邮电大学 宽带无线通信与传感网技术教育部重点实验室,南京 210003
  • 收稿日期:2012-05-31 出版日期:2012-09-01 发布日期:2012-09-01
  • 通讯作者: 于悦(1988-),男,硕士研究生.研究方向:无线传感器网络与数据挖掘.E-mail:ylswang3280@sina.com E-mail:ylswang3280@sina.com
  • 作者简介:王堃(1981-),男,副教授,博士.研究方向:普适计算与信息安全.E-mail:kwang@njupt.edu.cn
  • 基金资助:

    "973"国家重大基础研究发展规划项目(2011CB302903);国家自然科学基金项目(61100199,61100213);高等学校博士学科点专项科研基金项目(20113223120007);南京邮电大学宽带无线通信与传感网技术教育部重点实验室开放研究基金项目(NYKL201107).

IOT platform-oriented Socket design and optimization

WANG Kun, YU Yue, ZHANG Yu-hua, GUO Huang, WANG Lin-lin   

  1. Key Lab of Broadband Wireless Communication and Sensor Network Technology, Ministry of Education, Nanjing University of Posts and Telecommunications, Nanjing 210003, China
  • Received:2012-05-31 Online:2012-09-01 Published:2012-09-01

摘要: 在物联网平台的通信层,利用缓冲池、线程池建立多线程并发连接,提出一种高效Socket服务器设计方案,在应对大量的用户和数据请求的同时,最大限度地减少系统开销和缓存的使用。仿真结果表明,引入线程池和缓冲池的Socket服务器可减少线程的创建和销毁时间以及客户端阻塞时间,减少线程的动态生成和销毁过程,从而增强服务器的处理能力。

关键词: 计算机应用, 物联网平台, 线程池, Socket优化, 仿真

Abstract: An efficient design for a Socket server with buffer pool and a thread pool for concurrent request on the IOT platform is presented. This reduces the system overhead and buffer usage to the largest extent while faced with a large number of connections and digital requests. The simulation results show that a Socket server with a thread pool and buffer pool could lower the overhead on the context switch of threads as well as the I/O blocking.

Key words: computer application, IOT platform, thread pool, Socket optimization, simulation

中图分类号: 

  • TP393
[1] Karmani Rajesh K,Shali Amin,Agha Gul.Actor frameworks for the JVM platform:a comparative analysis[C]//Proceedings of the 7th International Conference on Principles and Practice of Programming in Java, Alberta, Canada, 2009.

[2] Eiraku Hideki, Shinjo Yasushi, Pu Calton, et al. Fast networking with socket-outsourcing in hosted virtual machine environments[C]//Proceedings of the 2009 ACM Symposium on Applied Computing, Hawaii, US, 2009.

[3] Kim Kangho, Kim Cheiyol, Jung Sung-In, et al. Inter-domain socket communications supporting high performance and full binary compatibility on Xen[C]//2008 International Conference on Virtual Execution Environments, Seattle, US, 2008.

[4] Wei Yun-gang, Sun Bo, Lian Shu-juan. Performance evaluation of JXTA transport mechanism[C]//Proceedings of 2009 WRI World Congress on Software Engineering, Xiamen, China, 2009.

[5] Lee Kang-Lyul, Pham H N, Kim Hee-seong, et al. A novel predictive and self-adaptive dynamic thread pool management[C]//2011 IEEE 9th International Symposium on Parallel and Distributed Processing with Applications, Busan, Korea, 2011.

[6] Chen Ning-jiang, Lin Pan. A dynamic adjustment mechanism with heuristic for thread pool in middleware[C]//2010 Third International Joint Conference on Computational Science and Optimization, Huangshan, China, 2010.

[7] Ling Yibei, Mullen Tracy, Lin Xiaola. Analysis of optimal thread pool size[J]. ACM SIGOPS Operating Systems Review, 2000, 34(2):42-55.

[8] HP Load Runner Performance Testing Software. http:[C]//www.hp.com/us/en/software/.
[1] 刘富,宗宇轩,康冰,张益萌,林彩霞,赵宏伟. 基于优化纹理特征的手背静脉识别系统[J]. 吉林大学学报(工学版), 2018, 48(6): 1844-1850.
[2] 王利民,刘洋,孙铭会,李美慧. 基于Markov blanket的无约束型K阶贝叶斯集成分类模型[J]. 吉林大学学报(工学版), 2018, 48(6): 1851-1858.
[3] 金顺福,王宝帅,郝闪闪,贾晓光,霍占强. 基于备用虚拟机同步休眠的云数据中心节能策略及性能[J]. 吉林大学学报(工学版), 2018, 48(6): 1859-1866.
[4] 赵东,孙明玉,朱金龙,于繁华,刘光洁,陈慧灵. 结合粒子群和单纯形的改进飞蛾优化算法[J]. 吉林大学学报(工学版), 2018, 48(6): 1867-1872.
[5] 刘恩泽,吴文福. 基于机器视觉的农作物表面多特征决策融合病变判断算法[J]. 吉林大学学报(工学版), 2018, 48(6): 1873-1878.
[6] 臧鹏飞, 王哲, 孙晨乐, 林炼炼. 直线增程器稳态运行换气过程[J]. 吉林大学学报(工学版), 2018, 48(5): 1455-1465.
[7] 王扬, 王晓梅, 陈泽仁, 于建群. 基于离散元法的玉米籽粒建模[J]. 吉林大学学报(工学版), 2018, 48(5): 1537-1547.
[8] 欧阳丹彤, 范琪. 子句级别语境感知的开放信息抽取方法[J]. 吉林大学学报(工学版), 2018, 48(5): 1563-1570.
[9] 刘富, 兰旭腾, 侯涛, 康冰, 刘云, 林彩霞. 基于优化k-mer频率的宏基因组聚类方法[J]. 吉林大学学报(工学版), 2018, 48(5): 1593-1599.
[10] 桂春, 黄旺星. 基于改进的标签传播算法的网络聚类方法[J]. 吉林大学学报(工学版), 2018, 48(5): 1600-1605.
[11] 刘元宁, 刘帅, 朱晓冬, 陈一浩, 郑少阁, 沈椿壮. 基于高斯拉普拉斯算子与自适应优化伽柏滤波的虹膜识别[J]. 吉林大学学报(工学版), 2018, 48(5): 1606-1613.
[12] 车翔玖, 王利, 郭晓新. 基于多尺度特征融合的边界检测算法[J]. 吉林大学学报(工学版), 2018, 48(5): 1621-1628.
[13] 胡满江, 罗禹贡, 陈龙, 李克强. 基于纵向频响特性的整车质量估计[J]. 吉林大学学报(工学版), 2018, 48(4): 977-983.
[14] 仇艳凯, 李宝仁, 杨钢, 曹博, 刘真. 新型液压消声器吸收液压系统压力脉动的机理和特性[J]. 吉林大学学报(工学版), 2018, 48(4): 1085-1091.
[15] 赵宏伟, 刘宇琦, 董立岩, 王玉, 刘陪. 智能交通混合动态路径优化算法[J]. 吉林大学学报(工学版), 2018, 48(4): 1214-1223.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!