摘要: 为构建面向海量数据和连接的互联网应用服务器,提出一种轻量级的高性能服务器开发框架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
中图分类号:
郭庆涛,孙强强,李永攀,于晓军,郑滔. 高性能网络服务器框架的研究与实现[J]. 计算机工程.
GUO Qing-tao,SUN Qiang-qiang,LI Yong-pan,YU Xiao-jun,ZHENG Tao. Research and Implementation of High Performance Network Server Framework[J]. Computer Engineering.