Design and implementation of network data packet transceiver

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.