摘要
基于Winsock的网络通信模块中,海量客户端连接请求及其数据通信的效率往往成为影响网络服务器效率的关键所在,特别是Web服务器、代理服务器、网络游戏服务器等应用,对底层通信模块性能的要求更为严格。针对实际应用,提出了一种基于完成端口的服务器底层通信模块设计方法,着重解决客户端连接量巨大、小容量数据包频繁收发等问题,在内存管理方面进行了细节优化,并实现了一个应用于实际的服务器底层通讯模块。经测试,该模块达到了项目需求提出的5000人在线的负载标准。
In the communication module which is based on Winsock network, client requirements of great capacity and the efficiency of data communication are often the key points. Especially in the applications of Web server, proxy server and network game server, the performance requirement of bottom communication module is even stricter. To meet the practical requirement, a design method to realize the bottom module of server based on IOCP is proposed in this paper, which particularly solves the problems occurring in the case of that there are client connections of great capacity and the frequent receiving and dispatching of low capacity data packets. In the aspect of memory management, some detailed optimization and realized bottom communication module are made. The mesurent results show that the module has met the load standard of 5000 on-line users.
出处
《信息技术》
2007年第3期115-118,共4页
Information Technology
基金
教育部留学回国人员基金资助项目
关键词
海量客户端
完成端口
高性能
优化
clients of great capacity
IOCP
high performance
optimization