目前进行网络性能测量所得到的只是一个基于模型的估计值,与其实际值有一定的误差,针对这个问题,设计了一个基于Linux的参数可控的网络数据包发生器,阐述了该数据包发生器的设计原理,给出了实现方法,并以发送TCP包为例.详细阐述了数据包的生成厦发送过程。最后利用它对网络延迟和丢包率进行了测量,测量结果表明了所设计的网络数据包发生器可对包的大小、数量和发送速率等参数进行准确控制。
Aiming at the problem of the value of the network performance measurement existing with certain error with true value of the network performance at present,in this paper,the author designs a network packet generator with parameter controllable Linux-based.This paper expounds its design principle,presents its implement method,and takes sending TCP packet as an example,elaborates the process of generating and sending of packet.At the end of this paper,the packet generator is utilized to measure network performance such as packet delay and packet discard rate, the measurement result indicates that it can accurately control the parameter of packet such as the size,amount and sending velocity.