作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (13): 248-250,264. doi: 10.3969/j.issn.1000-3428.2011.13.082

• 工程应用技术与实现 • 上一篇    下一篇

基于“池”策略的网闸并发连接数提高方法

王锡普,陈 奇   

  1. (浙江大学计算机科学与技术学院,杭州 310027)
  • 收稿日期:2010-11-25 出版日期:2011-07-05 发布日期:2011-07-05
  • 作者简介:王锡普(1985-),男,硕士研究生,主研方向:网络通信与安全,三维地理信息技术;陈 奇,副教授、硕士

Method of Improving Number of Gap Concurrent Connections Based on Pool Strategy

WANG Xi-pu, CHEN Qi   

  1. (College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China)
  • Received:2010-11-25 Online:2011-07-05 Published:2011-07-05

摘要: 传统的网闸设计主旨是为隔离2个不同的网络环境,不支持高并发量和高速连接的应用需求。为此,提出一种通过扩展网闸设备软件部分的方法,在网闸两侧设计基于“池”策略的前端子和后端子作缓冲和优化网络连接,将前后端并发连接的新建和断开,通过网闸网络连接的新建和断开及线程的新建和销毁作为池中的资源进行管理。通过池策略降低系统调度的负荷,完成高并发连接的网络安全隔离。实验结果证明,该方法可行有效,能弥补网闸不支持高并发网络连接的缺点和不足。

关键词: 安全隔离, 并发连接, 连接池, 多线程

Abstract: The target of implementation of traditional gap is to isolate two different network environment, it does not support high concurrent applications and high speed connectivity. To propose a software method of extending gap device, this paper designs a forward adapter and a backward adapter based on pool strategy around the device, they can be set as a buffer and connection-optimized accessories, it is designed to manage the resource of connecting and disconnecting of backward adapter and forward adapter with security gap, creating and destroying of threading. Therefore, it can reduce the dispatch load, isolate high concurrent connection of networking. Experimental results show that the method is feasible and effective, it can greatly makes up for the shortcoming and deficiencies of high concurrent connection.

Key words: security isolation, concurrent connection, connection pool, multi-thread

中图分类号: