主动测量是进行网络测量常用的方法,大部分主动测量工具的实现过程可分为数据包发送、接收与处理三个部分.本文从这三个方面对现有主动测量方法进行研究和总结,归纳了主动测量的通用过程,以libnet和winpcap库为基础,设计一种可快速实现多种主动测量工具的开发包,将主动测量过程中所需各种操作进行封装,提供统一的编程接口,使主动测量工具的实现变得简单.实验结果表明,主动测量工具开发包能实现多种主动测量工具功能,并且,相比于现有工具,大大减少了实现代码量,提高了实现效率.
Active measurement is a common method for the network measurement. The implementation process of most active measurement tool can be divided into three parts: sending, receiving and processing packets. In this paper, we study the current active detection method of network performance in those three aspects and summarize the common procedure of the active measurement. A kind of development kit is designed to quickly implement various active measurement tool based on libnet and winpcap. The implementation of the active measurement tool is simplified by encapsulating all kinds of the operation required in the active measurement procedure and providing unified programming interface in the new design. As the experimental results suggest, the active measurement development kit is able to realize various function of the active measurement tool and greatly reduce the code compared with existing tool, and the efficiency is highly improved.