The invention discloses an X86 platform network
port performance test method and device based on a DPDK technology, and the method comprises the steps: obtaining a port name and a PCI
bus number of a tested network port, and generating a corresponding relation table of the PCI
bus number and the port name; performing PCI binding by using a DPDK script, and performing UP
processing on two ports for receiving and transmitting data; performing data receiving and transmitting on two ports for receiving and transmitting data through a data receiving and transmitting tool, counting data actually received and transmitted by the two ports in each receiving and transmitting process, updating the total amount of the data, and writing the data into a log file in real time; analyzing whether the
packet loss quantity and the
packet loss rate are in a preset standard in a preset time period, and if the
packet loss quantity and the
packet loss rate exceed the preset standard, judging that the test fails and the network
port performance is unqualified; and if yes, determining that the test is successful and the network
port performance is qualified. According to the method, the flow, the success rate and the
packet loss rate of the two ports in a period of time can be automatically counted, the
test efficiency of the network port function is greatly improved, and a sufficient basis is provided for the network port performance.