摘要 |
<p>Provided are a method for measuring lost packets and a network device, comprising: receiving, by a second node, first data packets sent by a first node, the first data packets belonging to a first data packet group, the first data packet group being a data packet group sent to the second node by the first node, the first data packets containing a serial number of the first data packet group and the number of the first data packets, and the number of the first data packets being used for identifying the number of the data packets contained in the first data packet group; receiving, by the second node, second data packets sent by the first node; when determining that the second data packets do not belong to the first data packet group, counting, by the second node, the number of received second data packets belonging to the first data packet group; and according to the number of the first data packets and the number of the second data packets, determining, by the second node, the number of lost packets of the first data packet group. By means of the technical solution in the embodiment of the present invention, it is beneficial to increase the accuracy of measuring lost packets in the scenario of load sharing.</p> |