摘要 |
<p>Disclosed are a method and a device for acquiring the delay of data packet in the second layer. The method comprises: the MAC layer acquiring and storing the receiving time of a data packet received by the PDCP layer, and sending the data packet to a correspondent terminal; after a response from the correspondent terminal is received, the MAC layer determines that the reception of the response to the data packet is complete, and acquires the response time for the data packet; and the MAC layer obtains the delay of the data packet in the second layer by subtracting the receiving time from the response time. By using the present invention, the MAC acquires and stores the receiving time of the data packet received by the PDCP layer, acquires the response time for the data packet after it determines the reception of the response for the data packet is complete, and then subtracts the receiving time from the response time to obtain the delay of the data packet in the second layer, thereby solving the problems of low accuracy and poor versatility of the method for calculating the delay of data packet in the second layer in the art.</p> |