摘要
为了满足网络通信模拟与网络性能测试的工作需要,构建了一个网络数据包收发器。该收发器基于Libpcap函数库与原始套接字,支持Tcpdump格式数据包的读写,允许灵活设置发送策略。针对现有嗅探器与分析器功能上的不足,对大容量数据包定时发送等应用方面进行了设计优化。实验结果表明,该收发器具有数据接收准确、发送迅速、误差小、资源占用低等特点,适用于多种网络分析测量任务。
To satisfy the needs in network communication simulations and capability tests, a network packet transceiver is constructed. This transceiver based on Libpcap and raw socket, can support the Tcpdump format packet' s read-write and set sending scheme flexibly. To overcome functional shortcomings of existing sniffers and network analyzers, the design is optimized in application of mass packets sending regularly. Experiments show that the transceiver is characteristic of exact receiving, rapid sending, little error, and low resource consumption, which is applicable for various network analysis and measure tasks.
出处
《计算机工程与设计》
CSCD
北大核心
2010年第21期4728-4731,共4页
Computer Engineering and Design