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

计算机工程

• 移动互联与通信技术 • 上一篇    下一篇

高性能网络服务器框架的研究与实现

郭庆涛1,2,孙强强1,李永攀1,于晓军2,郑 滔3   

  1. (1. 深圳供电局有限公司,广东 深圳 518001;2. 腾讯研究院,广东 深圳 518001;3. 南京大学软件学院,南京 210093)
  • 收稿日期:2013-06-28 出版日期:2013-12-15 发布日期:2013-12-13
  • 作者简介:郭庆涛(1985-),男,硕士研究生,主研方向:高性能服务器设计,网络性能优化,分布式计算;孙强强,学士;李永攀,硕士研究生;于晓军,学士;郑 滔,教授
  • 基金资助:
    深圳供电局有限公司科技基金资助项目“电力信息系统性能评估模型的研究及应用”(090000KK51120041)

Research and Implementation of High Performance Network Server Framework

GUO Qing-tao 1,2,SUN Qiang-qiang 1,LI Yong-pan 1,YU Xiao-jun 2,ZHENG Tao 3   

  1. (1. Shenzhen Power Supply Co., Ltd., Shenzhen 518001, 2. Tencent Research Insitute, Shenzhen 518001, China, 3. Software Institute, Nanjing University, Nanjing 210093, China)
  • Received:2013-06-28 Online:2013-12-15 Published:2013-12-13

摘要: 为构建面向海量数据和连接的互联网应用服务器,提出一种轻量级的高性能服务器开发框架LHP-Svrframe。除服务器开发框架的常用模块(如网络通信管理、自定义协议开发以及进程处理模型等)外,LHP-Svrframe特别提供针对TCP/IP通信协议和进程模型额外的优化设计,如对NIC网卡中断的负载均衡、拥塞窗口的动态调整、ACK延时机制的改进等。与Apache、Lighttpd、ACE等网络服务器或开发框架的对比结果表明,使用LHP-Svrframe开发的应用服务器在最大连接数和吞吐量上性能可提升4~8倍。

关键词: 海量连接, 海量数据, 高性能服务器框架, TCP协议栈, 拥塞窗口, Nagle算法

Abstract: This paper proposes a brand new light-weight high performance server framework(LHP-Svrframe) for new generation server development, whose intension is for building a high performance server of massive connection and massive data. The difference from current frameworks is LHP-Svrframe focuses on TCP stack and process model and does especial optimization design, such as load balancing in NIC interrupts, dynamic adjust size of the congestion window, and optimization of the delayed ACK mechanism, et al. Experimental results in the end prove that the LHP-Svrframe performs much better than its counterparts like Apache, Lighttpd and ACE, with four times even eight times better.

Key words: massive connection, massive data, high performance server framework, TCP protocol stack, congestion window, Nagle algorithm

中图分类号: