摘要
针对利用组播跨网段传输文件需要网关开设IGMP协议的不足,提出了利用TCP协议跨网段传输文件的方法。为了提高传输效率,采用LZW压缩算法对数据进行编码;使用线程池来管理服务器和多个客户端的SOCKET连接;开设内存池缓存数据。该传输机制采用两个独立的异步通道(命令通道和数据通道)完成文件的传输,传输过程中可根据网络流量和客户端接受速度自动调整发送包的大小,可达到充分利用当前带宽的目的。
To solve the problem that using multicast to transfer file crossovers network segments needs gateway to open IGMP protocol, it is recommended to transfer file crossovers network segments with TCP protocol. In order to improve the transfer efficient, it uesed the method of LZW compression to code the data, and managed the server and multi-client's socket connection via thread pool and storages receiving packets with memory pool. That transmission system contained two unattached asynchronous channels (order channel and data channel) to complete the file transfer. The system can make full use of the current bandwidth by auto-adjusting the size of the package transmitted according to the network flow and the client receiving speed.
出处
《计算机工程与设计》
CSCD
北大核心
2007年第5期1064-1068,共5页
Computer Engineering and Design
基金
国家自然科学基金项目(40501053)
关键词
网关
封包
数据编码
网络架构
文件传输
GateWay
seal packet
data code
network framework
file transfer