WO2013075493A1 - Method and device for acquiring delay of data packet in second layer - Google Patents

Method and device for acquiring delay of data packet in second layer Download PDF

Info

Publication number
WO2013075493A1
WO2013075493A1 PCT/CN2012/077866 CN2012077866W WO2013075493A1 WO 2013075493 A1 WO2013075493 A1 WO 2013075493A1 CN 2012077866 W CN2012077866 W CN 2012077866W WO 2013075493 A1 WO2013075493 A1 WO 2013075493A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
layer
response
mac layer
receiving
Prior art date
Application number
PCT/CN2012/077866
Other languages
French (fr)
Chinese (zh)
Inventor
任广进
赵敬超
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013075493A1 publication Critical patent/WO2013075493A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0858One way delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays

Definitions

  • the present invention relates to the field of communications, and in particular to a method and a device for acquiring a layer 2 data packet delay.
  • 1 is a flowchart of user plane downlink data of Long Term Evolution (LTE) according to the related art. As shown in FIG.
  • LTE Long Term Evolution
  • an evolved terrestrial radio access network node (E-URTAN NodeB, referred to as e) B)
  • the user equipment (User Equipment, UE for short) protocol stack from the upper layer to the lower layer, includes: GPRS Tunneling Protocol User Plane (GTPU) layer, Packet Data Convergence (Packet Data Convergence) Protocol, referred to as PDCP layer, Radio Link Control (RLC) layer, Medium Access Control (MAC) layer; downlink data or message (Message) arrives at the eNB, after The GTPU layer, the PDCP layer, the RLC layer, and the MAC layer process, and finally reach the physical channel (Physical Channel, referred to as PHY) layer of the transmitting end.
  • GTPU GPRS Tunneling Protocol User Plane
  • RLC Radio Link Control
  • MAC Medium Access Control
  • the layer 2 packet delay refers to the start of receiving a data or data packet from the PDCP layer of the eNB until the data or the last fragment of the data packet receives the hybrid automatic repeat request from the peer end (Hybrid Automatic) Repeat Request (abbreviated as HARQ) The time taken for the response.
  • the response may be the acknowledgement character (Acknowledgment, ACK for short) returned by the peer after receiving the last fragment of the data or data packet, or it may be the data or After the last fragment of the packet is transmitted to the peer, the Hybrid Automatic Repeat Request (HARQ) is sent by the peer.
  • HARQ Hybrid Automatic Repeat Request
  • the existing processing mechanism determines that a PDCP data packet is completely received by the UE, and the RLC layer receives the response corresponding to the PDCP data packet.
  • This calculation method increases the peer to return to the local MAC layer than the method specified by the protocol.
  • the MAC layer sends the response time to the RLC layer, so the obtained delay value is larger than the real layer 2 packet delay value.
  • acknowledge mode also known as AM mode
  • unacknowledged mode also known as UM mode
  • transparent mode also known as TM mode
  • the embodiments of the present invention provide a method and a device for acquiring a layer 2 data packet delay, so as to at least solve the problem of low accuracy and poor versatility of the calculation method of the layer two data packet delay in the related art.
  • a method for obtaining a layer 2 data packet delay includes: acquiring, by a MAC layer, a storage time of a data packet received by a PDCP layer; and sending a data packet to the opposite end;
  • the MAC layer receives the response of the peer end to the data packet;
  • the MAC layer determines the response time of the data packet after receiving the response of the data packet;
  • the MAC layer sets the response time minus the receiving time, and obtains the layer 2 data packet of the data packet. Delay.
  • the receiving, by the MAC layer, the receiving time of the data packet received by the PDCP layer includes: after receiving the data packet whose PDCP layer serial number is SN, the PDCP layer sends the data packet receiving time and the data packet to the RLC layer;
  • the RLC layer determines the sending manner of the foregoing data packet according to the current bandwidth, where the sending mode includes a splitting mode or a combination mode;
  • the RLC layer sends the data packet and the receiving time to the MAC layer according to the determined sending manner;
  • the MAC layer receives the After the data packet and the receiving time, the SN and the receiving time are buffered in the corresponding buffer.
  • the RLC layer sends the data packet and the receiving time to the MAC layer according to the determined sending manner, and when the determined sending mode is the split mode, the RLC layer splits the data packet into multiple RLC data packets;
  • the RLC layer sends the foregoing multiple RLC data packets to the MAC layer, and sends the foregoing SN and the receiving time to the MAC layer;
  • the MAC layer sends the data packet to the opposite end, the MAC layer receives the multiple RLC data packets, and encapsulates multiple RLC data packets into multiple transport blocks TB; the MAC layer sends multiple TBs to the opposite end;
  • the response time of obtaining the data packet includes: after receiving all the responses of the multiple TBs, the MAC layer determines that the response of the data packet is received; the MAC layer will be the last one of the multiple TBs.
  • the response reception time of the TB is taken as the response time of the data packet.
  • the buffer for buffering the SN and the receiving time is a buffer for transmitting the plurality of TBs.
  • the RLC layer sends the foregoing data packet and the foregoing receiving time to the MAC layer according to the determined sending manner, and when the determined sending manner is the combined mode, the RLC layer receives multiple data packets from the PDCP layer, and multiple data is received.
  • the packets are spliced into one RLC data packet; the RLC layer sends the RLC data packet to the MAC layer, and sends the PDCP layer sequence number and the receiving time of each data packet of the multiple data packets to the MAC layer;
  • the MAC layer sends the foregoing data packet to the opposite end, where: the MAC layer receives the foregoing RLC data packet, and encapsulates the RLC data packet into one TB; the MAC layer sends the TB to the opposite end;
  • obtaining the response time of the data packet includes: after receiving the response of the TB, the MAC layer determines, according to the correspondence between the TB and the PDCP layer serial number, that the response of the data packet is received; The MAC layer uses the reception time of the response as the response time of the data packet.
  • the buffer for buffering the SN and the receiving time is a buffer corresponding to the TB.
  • a device for acquiring a layer two data packet delay is provided, where the MAC layer of the device includes: a receiving time acquisition and storage module, configured to acquire and store a data packet received by the PDCP layer.
  • the data packet sending module is configured to send a data packet to the opposite end;
  • the answering receiving module is configured to receive the response of the peer end to the data packet;
  • the response time obtaining module is configured to: after determining that the response of the data packet is received, obtain The response time of the data packet;
  • the delay acquisition module is configured to set the response time obtained by the response time acquisition module minus the reception time to obtain the reception time stored by the storage module, and obtain the layer 2 data packet delay of the data packet.
  • the PDCP layer of the device includes: a first sending module, configured to: after receiving the data packet with the PDCP layer serial number SN, send the data packet receiving time and the data packet to the RLC layer; the RLC layer includes a sending mode determining module, configured to determine, according to a current bandwidth, a sending manner of the foregoing data packet, where the sending manner includes a splitting manner or a combination manner; and a second sending module, configured to send the foregoing data packet according to the determined sending manner
  • the receiving time is sent to the MAC layer.
  • the receiving time acquiring and storing module includes: a buffer unit configured to: after receiving the data packet and the receiving time, buffering the SN and the receiving time in a corresponding buffer.
  • the second sending module includes: a splitting unit, configured to split the data packet into multiple RLC data packets when the determined sending mode is a split mode; the first sending unit is configured to set multiple RLCs The data packet is sent to the MAC layer, and the foregoing SN and the foregoing receiving time are sent to the MAC layer.
  • the data packet sending module includes: a first receiving unit, configured to receive the multiple RLC data packets; and a first encapsulating unit, configured to be The plurality of RLC data packets received by the receiving unit are encapsulated into a plurality of transport blocks TB; the first TB sending unit is configured to send the plurality of TBs of the first encapsulating unit package to the opposite end; the response time obtaining module includes: the first response a determining unit, configured to: after receiving all the responses of the plurality of TBs, determine that the response of the data packet is received; the first response time determining unit is configured to use the response receiving time of the last one of the plurality of TBs as the data packet Response time.
  • the second sending module includes: a combining unit, configured to: when the determined sending mode is the combined mode, receive multiple data packets from the PDCP layer, and splicing the multiple data packets into one RLC data packet; a unit, sending the RLC data packet to the MAC layer, and transmitting a PDCP layer sequence number and a receiving time of each data packet of the multiple data packets to the MAC layer;
  • the data packet sending module includes: a second receiving unit, configured to receive The second encapsulation unit is configured to encapsulate the RLC data packet received by the second receiving unit into one TB; the second TB sending unit is configured to send the TB of the second encapsulation unit package to the opposite end;
  • the module includes: a second response determining unit configured to: after receiving the response of the TB, determine, according to the correspondence between the TB and the PDCP layer serial number, that the response of the data packet is received; the second response time determining unit is configured to The reception time of the response is taken as the response time of
  • the MAC layer acquires and stores the receiving time of the data packet received by the PDCP layer, and then sends the data packet to the opposite end, and the MAC layer receives the response of the data packet to the peer end, and obtains the data packet after receiving the response.
  • the response time of the data packet, and then the response time minus the receiving time obtains the layer 2 data packet delay of the data packet, and solves the problem of low accuracy and poor versatility of the calculation method of the layer 2 data packet delay in the related art. Improved user experience.
  • FIG. 1 is a flowchart of long-term evolution user plane downlink data according to the related art
  • FIG. 2 is a flowchart of a method for acquiring layer two data packet delay according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing a structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention
  • FIG. 4 is a block diagram showing a specific structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention
  • FIG. 6 is a block diagram of a third specific structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention
  • FIG. 7 is a flowchart of a method for acquiring a layer 2 packet delay in a split mode according to an embodiment of the present invention
  • FIG. 8 is an acquisition layer 2 packet delay in a combined manner according to an embodiment of the present invention; Flow chart of the method. BEST MODE FOR CARRYING OUT THE INVENTION
  • the present invention will be described in detail with reference to the accompanying drawings.
  • the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the embodiment of the present invention provides a layer 2 data packet delay acquisition. Method and equipment. The details will be described below by way of examples.
  • This embodiment provides a method for obtaining a layer 2 data packet delay, and a flowchart for acquiring a layer 2 data packet delay according to an embodiment of the present invention, which may be in a network device (for example, The method includes the following steps (step S202 - step S210): Step S202, the MAC layer acquires and stores the receiving time of the data packet received by the PDCP layer; Step S204, the MAC layer sends the foregoing to the opposite end.
  • Step S206 the MAC layer receives the response of the peer to the data packet;
  • Step S208 the MAC layer determines that the response of the data packet is received, and obtains the response time of the data packet;
  • Step S210 the MAC layer sets the response time minus To receive the time, the layer 2 packet delay of the above data packet is obtained.
  • the foregoing response is a response that the peer MAC layer returns to the local MAC layer after receiving the data packet sent by the local MAC layer, and the UM mode is a transmission mode of the RLC layer, so the method is in the MAC. There is no non-response in the layer, so the implementation of the MAC layer improves the versatility of this calculation method.
  • the MAC layer obtains the response time after receiving the response of the data packet, which omits the time when the MAC layer sends a response to the RLC layer, so that the method for calculating the layer 2 packet delay is more accurate.
  • the MAC layer acquires and stores the reception time of the data packet received by the PDCP layer, and the response time of the MAC layer to obtain the data packet after determining that the response of the data packet is received, and then sets the response time minus the reception. Time gets the layer 2 packet delay of the data packet, because the MAC layer will receive the response of each data packet, and the MAC layer calculates the layer 2 data packet delay to save the time that the MAC layer sends the response to the RLC layer.
  • the problem of low accuracy and poor versatility of the calculation method of the layer 2 packet delay in the related technology is solved, and the user experience is improved.
  • the data packet before the data packet is sent to the MAC layer, the data packet passes through the PDCP layer, the RLC layer, and then the MAC layer from the upper layer to the lower layer.
  • the PDCP layer receives the data packet with the PDCP layer serial number SN
  • the receiving time of the data packet is recorded, and the receiving time and the data packet are sent to the RLC layer, and the RLC layer determines the sending manner of the data packet according to the current bandwidth, where the sending manner includes splitting or combining, and then, the RLC layer
  • the data packet and the receiving time are sent to the MAC layer according to the determined sending manner.
  • the MAC layer caches the PDCP layer serial number SN and the receiving time of the data packet in the corresponding buffer.
  • the PDCP layer records the receiving time of the data packet and stores it in the corresponding buffer, so that when the layer 2 data packet delay is calculated, the receiving time is conveniently obtained.
  • the SN in the embodiment of the present invention may be set on the packet header of the data packet.
  • the RLC layer selects the split mode to transmit the data packet, the RLC layer receives the data packet from the PDCP layer, and splits the data packet into multiple RLC data packets, and then multiple RLCs.
  • the data packet is sent to the MAC layer, and the SN and the receiving time are also sent to the MAC layer.
  • the MAC layer caches the SN and the receiving time in the corresponding buffer, and encapsulates multiple RLC data packets into multiple transport blocks (Transport Block, referred to as TB), then the MAC layer sends the multiple TBs to the peer. After receiving the multiple TBs, the peer end returns a response to the MAC layer. After the MAC layer determines that the response of the data packet is received, the response reception time of the last TB of the plurality of TBs is used as the response time of the data packet. In this way, when all the TBs are received by the opposite end, the response time is recorded, and the accuracy of the calculation layer 2 packet delay is ensured.
  • Transport Block referred to as TB
  • the above buffer may be a buffer for transmitting a plurality of TBs, that is, a PDCP layer sequence number SN and a reception time of the data packet are stored in buffers corresponding to the respective TBs.
  • the RLC layer determines the manner in which the data packet is transmitted according to the current bandwidth. In the case where the current bandwidth is large, the RLC layer selects a combined manner to transmit the data packet. Based on this, the RLC layer receives multiple data packets from the PDCP layer. And splicing a plurality of data packets into one RLC data packet, and transmitting the RLC data packet to the MAC layer, and also transmitting the PDCP layer serial number SN and the receiving time of each of the plurality of data packets to the MAC layer.
  • the MAC layer caches the SN and the receiving time in the corresponding buffer, encapsulates the RLC data packet into one TB, and then the MAC layer sends the TB to the opposite end. After receiving the TB, the peer end returns a response to the MAC layer. After the MAC layer determines that the response of the data packet has been received, the response reception time of the TB is used as the response time of the data packet. This can ensure the accuracy of the calculation layer 2 packet delay.
  • the above buffer may be a buffer corresponding to the sending TB, and the MAC layer caches the SN and the receiving time in the buffer area for the purpose of conveniently reading the receiving time when the MAC computing layer 2 data packet is delayed.
  • the above MAC layer refers to the MAC layer of the local end.
  • the embodiment further provides a layer 2 data packet delay acquiring device, which is used to implement the foregoing embodiment
  • FIG. 3 is a layer 2 data packet delay acquiring device according to an embodiment of the present invention.
  • the MAC layer in the device includes: a receiving time acquisition and storage module 30, a data packet transmitting module 32, a response receiving module 34, a response time obtaining module 36, and a delay obtaining module 38. The structure will be described below.
  • the receiving time acquisition and storage module 30 is configured to acquire and store the receiving time of the data packet received by the PDCP layer; the data packet sending module 32 is connected to the receiving time acquisition and storage module 30, and configured to send the data packet to the opposite end;
  • the receiving module 34 is connected to the data packet sending module 32, and is configured to receive the response of the peer to the data packet.
  • the response time obtaining module 36 is connected to the response receiving module 34, and is configured to obtain the data after receiving the response of the data packet.
  • the response time of the packet; the delay acquisition module 38 is connected to the reception time acquisition and storage module 30 and the response time acquisition module 36, and is configured to set the response time acquired by the response time acquisition module 36 minus the reception time acquisition and storage module 30. Receive time, get the layer 2 packet delay of the packet.
  • the receiving time acquisition and storage module 30 After the receiving time acquisition and storage module 30 acquires and stores the receiving time of the data packet received by the PDCP layer, the data packet transmitting module 32 sends a data packet to the opposite end, and then the response receiving module 34 receives the opposite end of the data packet.
  • the response, the response time acquisition module 36 obtains the response time of the data packet after determining that the response of the data packet is received, and the delay acquisition module 38 sets the response time minus the reception time to obtain the layer 2 data packet delay of the data packet.
  • the MAC layer receives the response of each data packet, and the MAC layer calculates the layer 2 data packet delay to save the time that the MAC layer sends the response to the RLC layer, and solves the calculation method of the layer 2 data packet delay in the related art.
  • FIG. 4 is a layer 2 packet delay acquisition according to a preferred embodiment of the present invention.
  • the device includes: a first sending module 40 of the PDCP layer, a sending mode determining module 42 of the RLC layer, and the module of the MAC layer in FIG.
  • the second sending module 44 and the receiving time of the MAC layer acquire the buffer unit 302 in the storage module 30. The structure will be described below.
  • the first sending module 40 located in the PDCP layer of the device, is configured to receive the data packet of the PDCP layer sequence number SN, and then send the data packet to the RLC layer; the sending mode determining module 42
  • the RLC layer in the device is connected to the first sending module 40, and is configured to determine a sending manner of the data packet according to the current bandwidth, where the sending manner includes a splitting manner or a combination manner; and the second sending module 44 is located at The RLC layer in the device is connected to the sending mode determining module 42 and configured to send the data packet and the receiving time to the MAC layer according to the determined sending manner.
  • the buffering unit 302 is located in the receiving time acquisition and storage module 30 of the MAC layer. And connecting to the second sending module 44, configured to receive the foregoing data packet and the receiving time, and buffer the SN and the receiving time in the corresponding buffer.
  • the RLC layer determines the manner in which the data packet is transmitted according to the current bandwidth. In the case where the current bandwidth is small, the RLC layer selects the split mode to transmit the data packet, and FIG. 5 is a layer 2 data packet according to a preferred embodiment of the present invention.
  • Another specific structural block diagram of the delay acquiring device includes: in addition to the respective modules in FIG. 4, the splitting unit 442 and the first sending unit 444 in the second sending module 44.
  • the structure will be described below.
  • the splitting unit 442 is located in the second sending module 44, and is configured to split the data packet into multiple RLC data packets when the determined sending mode is the split mode.
  • the first sending unit 444 is located in the second sending module 44. And connecting to the splitting unit 442, configured to send the multiple RLC data packets to the MAC layer, and send the SN and the receiving time to the MAC layer;
  • the first encapsulating unit 324 is located in the data packet sending module 32 and is connected to the first receiving unit 322, and is configured to encapsulate the plurality of RLC data packets received by the first receiving unit 322 into a plurality of transport blocks TB.
  • the first TB sending unit 326 The packet sending module 32 is connected to the first encapsulating unit 324 and configured to send the plurality of TBs encapsulated by the first encapsulating unit 324 to the opposite end.
  • the first response determining unit 362 is located in the response time acquiring module 36, and is configured to receive After all the responses of the plurality of TBs, it is determined that the response of the data packet is received; the first response time determining unit 364 is located at the response time obtaining module 36, and is connected to the first response determining unit 362, and is set to be the last one of the plurality of TBs.
  • the response reception time of the TB is taken as the response time of the data packet.
  • FIG. 6 is a third structural block diagram of a device for acquiring a layer two packet delay according to a preferred embodiment of the present invention.
  • the method further includes: The combining unit 446 and the second sending unit 448 in the sending module 44, the second receiving unit 328, the second encapsulating unit 330 and the second TB sending unit 332 in the data packet sending module 32, and the second in the response time obtaining module 36
  • the response determination unit 366 and the second response time determination unit 368 The structure will be described below.
  • the combining unit 446 is located at the second sending module 44, and is configured to receive multiple data packets from the PDCP layer and combine the multiple data packets into one RLC data packet when the determined sending mode is the combined mode.
  • the second sending unit 448 The second sending module 44 is connected to the combining unit 446, sends the RLC data packet to the MAC layer, and sends the PDCP layer sequence number and the receiving time of each data packet of the multiple data packets to the MAC layer;
  • the unit 328 is located in the data packet sending module 32, and is connected to the second sending unit 448, and is configured to receive the RLC data packet.
  • the second encapsulating unit 330 is located in the data packet sending module 32 and is connected to the second receiving unit 328.
  • the second TB sending unit 332 is configured to be a TB.
  • the second response determining unit 366 is located in the response time obtaining module 36, and is configured to determine the data according to the correspondence between the TB and the PDCP layer serial number after receiving the response of the TB. The response of the packet is received;
  • the second response time determining unit 368 located in the response time obtaining module 36, is connected to the second response determining unit 366, and is configured to set the receiving time of the response as the response time of the data packet.
  • the packet is determined based on the current bandwidth, and the application range of the acquisition device of the layer 2 packet delay is expanded, and the versatility of the device is improved. It can be seen from the foregoing embodiment that the MAC layer in the embodiment of the present invention can clearly know the PDCP SN number corresponding to a certain TB, and store the PDCP SN number corresponding to the TB and the receiving time of the PDCP layer receiving the data packet in the MAC layer.
  • the MAC layer records the response time at this time, and the MAC layer subtracts the reception time according to the response time, and calculates the PDCP data.
  • Embodiment 1 the RLC layer selects a split mode to perform data packet transmission when the current bandwidth is small.
  • the PDCP layer receives the downlink data and sends the data to the RLC layer according to the current bandwidth.
  • the RLC layer decides to send the data packet by splitting the data packet or combining the data packets.
  • FIG. 7 is a flowchart of a method for acquiring a layer 2 packet delay in a split mode according to an embodiment of the present invention. As shown in FIG.
  • Step S706 After receiving the data packet of the RLC layer, the local MAC layer encapsulates the RLC data packet into a TB (for example, 0, 1, -n), and then sends the data to the peer MAC layer, and carries the PDCP SN carried by the local RLC layer.
  • the number and the timestamp T1 are stored in a buffer corresponding to each TB of the local MAC layer (for example, a HARQ buffer).
  • Step S708 After receiving the TB sent by the local MAC layer, the peer MAC layer replies to the TBI, TB2, and TBn respectively.
  • the response may be an ACK returned by the peer MAC layer after receiving the TB, or may be an HARQ sent by the peer MAC layer after the TB transmits to the opposite MAC layer.
  • Step S710 After receiving the response, the local MAC layer determines, according to the correspondence between the TB and the PDCP SN stored in the HARQ buffer, that the response to the TBn, that is, the response of the last TB, is determined, and the PDCP data packet is received. The last piece.
  • the local MAC layer obtains the response time T2 of the corresponding TBn, and subtracts the PDCP layer timestamp T1 recorded in the corresponding buffer to obtain the layer 2 data packet delay of the PDCP data packet.
  • Embodiment 2 This embodiment is described by taking an example in which the RLC layer selects a combination to perform data packet transmission in a case where the current bandwidth is large.
  • FIG. 8 is an acquisition layer two data in a combined manner according to an embodiment of the present invention.
  • the PDCP layer calculates the current time, and timestrate each data packet by ⁇ 1, ⁇ 2 ⁇ , and then sends the data packet and the timestamp to the local RLC layer; Step S804, the local RLC layer receives the current After the data packet of the PDCP layer, the n PDCP data packets are spliced into one RLC data packet according to the current bandwidth. And sending all the PDCP SN numbers and the timestamps ,1, ⁇ 2, ⁇ ⁇ included in the RLC data packet to the local MAC layer; Step S806, the local MAC layer receives the data packet sent by the local RLC layer, and then sets the RLC.
  • the data packet is encapsulated into one TB and sent to the peer MAC layer, and all the PDCP SN numbers carried by the RLC layer and the timestamps T1, ⁇ 2, ⁇ are stored in the buffer corresponding to the TB in the local MAC layer (for example: HARQ buffer)
  • the peer MAC layer replies to the TB after receiving the TB sent by the local MAC layer;
  • Step S810 the local MAC layer receives the response according to the TB and PDCP SN recorded in the HARQ buffer.
  • the TB includes a plurality of PDCP data packets.
  • step S812 the local MAC layer obtains the response time T0 corresponding to the TB, and sequentially subtracts the PDCP layer time stamp ⁇ 1 stored in the HARQ buffer, ⁇ 2 ⁇ ⁇ , respectively obtain the layer 2 packet delay of all PDCP packets included in the TB.
  • the foregoing two embodiments specifically describe the process of calculating the delay of the layer 2 data packet by using the split/combined data packet transmission mode when the current bandwidth is small/large, and the data packet according to the current bandwidth size.
  • the transmission mode is changed, the versatility of the layer 2 packet delay calculation method is improved, and the problem of low accuracy and poor versatility of the calculation method of the layer 2 packet delay in the related technology is solved, and the user experience is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

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.

Description

层二数据包时延的获取方法及设备 技术领域 本发明涉及通信领域, 具体而言, 涉及一种层二数据包时延的获取方法及设备。 背景技术 图 1是根据相关技术的长期演进 (Long Term Evolution, 简称为 LTE) 用户面下 行数据的流程图, 如图 1所示, 演进陆地无线接入网节点 (E-URTAN NodeB, 简称为 e B) 和用户设备 (User Equipment, 简称为 UE) 的协议栈中, 从高层到低层包含: GPRS通道协议用户面(GPRS Tunneling Protocol user Plane, 简称为 GTPU)层、 分组 数据汇聚协议 (Packet Data Convergence Protocol, 简称为 PDCP) 层、 无线链路控制 (Radio Link Control, 简称为 RLC) 层、 媒体接入控制 (Medium Access Control, 简 称为 MAC)层; 下行数据或消息(Message)到达 eNB后, 经过 GTPU层、 PDCP层、 RLC层、 MAC层处理, 最后到达发送端的物理信道(Physical Channel, 简称为 PHY) 层。 按照协议规定,层二数据包时延是指从 eNB的 PDCP层接收到一个数据或数据包 开始,直到该数据或该数据包的最后一个分片接收到对端的混合自动重传请求(Hybrid Automatic Repeat Request, 简称为 HARQ)应答所花费的时间,该应答可以是对端接收 到数据或数据包的最后一个分片后所返回的确认字符 (Acknowledgment , 简称为 ACK), 也可以是该数据或该数据包的最后一个分片传输至对端失败后, 对端发送的 混合自动重传请求(Hybrid Automatic Repeat Request, 简称为 HARQ)。 但是按照现有 的处理机制,不能保证层二数据包时延的计算准确性。现有的处理机制判断一个 PDCP 数据包完全被 UE所接收到的标准是 RLC层接收到了该 PDCP数据包对应的应答,这 种计算方法比协议规定的方法增加了对端向本端 MAC层返回应答后, MAC层向 RLC 层发送应答的时间, 因此得到的时延值会比真实的层二数据包时延值大。 另外, RLC 层的传输模式有三种, 分别为: 确认模式 (又称为 AM模式)、 非确认模式 (又称为 UM模式)和透明模式(又称为 TM模式)。 对于 UM模式, 不需要接收方将正确接收 到数据的情况告知发送方, 即发送数据后不反馈状态报告, 因此上述计算层二数据包 时延的方法不适用于 UM模式下的数据传输。 针对相关技术中层二数据包时延的计算方法的准确度低和通用性差的问题, 目前 尚未提出有效的解决方案。 发明内容 本发明实施例提供了一种层二数据包时延的获取方法及设备, 以至少解决上述相 关技术中层二数据包时延的计算方法的准确度低和通用性差的问题。 根据本发明实施例的一个方面, 提供了一种层二数据包时延的获取方法, 该方法 包括: MAC层获取并存储 PDCP层接收的数据包的接收时间; 并向对端发送数据包; MAC层接收对端对该数据包的应答; MAC层确定数据包的应答接收完毕后, 获取数 据包的应答时间; MAC层设置应答时间减去接收时间,得到该数据包的层二数据包时 延。 优选地, MAC层获取并存储 PDCP层接收的数据包的接收时间包括: PDCP层接 收到 PDCP层序列号为 SN的数据包后,将该数据包的接收时间和该数据包发送给 RLC 层; RLC层根据当前带宽确定上述数据包的发送方式, 其中, 该发送方式包括拆分方 式或组合方式; RLC层按照确定的发送方式将该数据包和上述接收时间发送给 MAC 层; MAC层接收该数据包和该接收时间后, 将上述 SN和该接收时间缓存在对应的缓 冲区。 优选地, RLC层按照确定的发送方式将上述数据包和上述接收时间发送给 MAC 层包括: 当确定的发送方式为拆分方式时, RLC层将该数据包拆分为多个 RLC数据 包; RLC层将上述多个 RLC数据包发送给 MAC层, 并将上述 SN和接收时间发送给 MAC层; TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a method and a device for acquiring a layer 2 data packet delay. 1 is a flowchart of user plane downlink data of Long Term Evolution (LTE) according to the related art. As shown in FIG. 1 , an evolved terrestrial radio access network node (E-URTAN NodeB, referred to as e) B) The user equipment (User Equipment, UE for short) protocol stack, from the upper layer to the lower layer, includes: GPRS Tunneling Protocol User Plane (GTPU) layer, Packet Data Convergence (Packet Data Convergence) Protocol, referred to as PDCP layer, Radio Link Control (RLC) layer, Medium Access Control (MAC) layer; downlink data or message (Message) arrives at the eNB, after The GTPU layer, the PDCP layer, the RLC layer, and the MAC layer process, and finally reach the physical channel (Physical Channel, referred to as PHY) layer of the transmitting end. According to the agreement, the layer 2 packet delay refers to the start of receiving a data or data packet from the PDCP layer of the eNB until the data or the last fragment of the data packet receives the hybrid automatic repeat request from the peer end (Hybrid Automatic) Repeat Request (abbreviated as HARQ) The time taken for the response. The response may be the acknowledgement character (Acknowledgment, ACK for short) returned by the peer after receiving the last fragment of the data or data packet, or it may be the data or After the last fragment of the packet is transmitted to the peer, the Hybrid Automatic Repeat Request (HARQ) is sent by the peer. However, according to the existing processing mechanism, the calculation accuracy of the layer 2 packet delay cannot be guaranteed. The existing processing mechanism determines that a PDCP data packet is completely received by the UE, and the RLC layer receives the response corresponding to the PDCP data packet. This calculation method increases the peer to return to the local MAC layer than the method specified by the protocol. After the response, the MAC layer sends the response time to the RLC layer, so the obtained delay value is larger than the real layer 2 packet delay value. In addition, there are three transmission modes of the RLC layer: acknowledge mode (also known as AM mode), unacknowledged mode (also known as UM mode), and transparent mode (also known as TM mode). For the UM mode, the sender is not required to inform the sender of the correct reception of the data, that is, the status report is not fed back after the data is transmitted. Therefore, the method for calculating the layer 2 packet delay is not applicable to the data transmission in the UM mode. Aiming at the low accuracy and poor versatility of the calculation method of the layer 2 packet delay in the related art, an effective solution has not been proposed yet. SUMMARY OF THE INVENTION The embodiments of the present invention provide a method and a device for acquiring a layer 2 data packet delay, so as to at least solve the problem of low accuracy and poor versatility of the calculation method of the layer two data packet delay in the related art. According to an aspect of the present invention, a method for obtaining a layer 2 data packet delay is provided, where the method includes: acquiring, by a MAC layer, a storage time of a data packet received by a PDCP layer; and sending a data packet to the opposite end; The MAC layer receives the response of the peer end to the data packet; the MAC layer determines the response time of the data packet after receiving the response of the data packet; the MAC layer sets the response time minus the receiving time, and obtains the layer 2 data packet of the data packet. Delay. Preferably, the receiving, by the MAC layer, the receiving time of the data packet received by the PDCP layer includes: after receiving the data packet whose PDCP layer serial number is SN, the PDCP layer sends the data packet receiving time and the data packet to the RLC layer; The RLC layer determines the sending manner of the foregoing data packet according to the current bandwidth, where the sending mode includes a splitting mode or a combination mode; the RLC layer sends the data packet and the receiving time to the MAC layer according to the determined sending manner; the MAC layer receives the After the data packet and the receiving time, the SN and the receiving time are buffered in the corresponding buffer. Preferably, the RLC layer sends the data packet and the receiving time to the MAC layer according to the determined sending manner, and when the determined sending mode is the split mode, the RLC layer splits the data packet into multiple RLC data packets; The RLC layer sends the foregoing multiple RLC data packets to the MAC layer, and sends the foregoing SN and the receiving time to the MAC layer;
MAC层向对端发送数据包包括: MAC层接收上述多个 RLC数据包,将多个 RLC 数据包封装为多个传输块 TB; MAC层向对端发送多个 TB; The MAC layer sends the data packet to the opposite end, the MAC layer receives the multiple RLC data packets, and encapsulates multiple RLC data packets into multiple transport blocks TB; the MAC layer sends multiple TBs to the opposite end;
MAC层确定数据包的应答接收完毕后, 获取该数据包的应答时间包括: MAC层 接收到多个 TB的所有应答后, 确定该数据包的应答接收完毕; MAC层将多个 TB中 最后一个 TB的应答接收时间作为该数据包的应答时间。 优选地,缓存上述 SN和上述接收时间的缓冲区为发送上述多个 TB对应的各个缓 冲区。 优选地, RLC层按照确定的发送方式将上述数据包和上述接收时间发送给 MAC 层包括: 当确定的发送方式为组合方式时, RLC层接收来自 PDCP层的多个数据包, 将多个数据包拼接成一个 RLC数据包; RLC层将该 RLC数据包发送给 MAC层, 并 将多个数据包中每个数据包的 PDCP层序列号和接收时间发送给 MAC层; MAC层向对端发送上述数据包包括: MAC层接收上述 RLC数据包, 将该 RLC 数据包封装为一个 TB; MAC层向对端发送 TB; After the MAC layer determines that the response of the data packet is received, the response time of obtaining the data packet includes: after receiving all the responses of the multiple TBs, the MAC layer determines that the response of the data packet is received; the MAC layer will be the last one of the multiple TBs. The response reception time of the TB is taken as the response time of the data packet. Preferably, the buffer for buffering the SN and the receiving time is a buffer for transmitting the plurality of TBs. Preferably, the RLC layer sends the foregoing data packet and the foregoing receiving time to the MAC layer according to the determined sending manner, and when the determined sending manner is the combined mode, the RLC layer receives multiple data packets from the PDCP layer, and multiple data is received. The packets are spliced into one RLC data packet; the RLC layer sends the RLC data packet to the MAC layer, and sends the PDCP layer sequence number and the receiving time of each data packet of the multiple data packets to the MAC layer; The MAC layer sends the foregoing data packet to the opposite end, where: the MAC layer receives the foregoing RLC data packet, and encapsulates the RLC data packet into one TB; the MAC layer sends the TB to the opposite end;
MAC层确定上述数据包的应答接收完毕后,获取该数据包的应答时间包括: MAC 层接收到 TB的应答后,根据该 TB与 PDCP层序列号的对应关系确定该数据包的应答 接收完毕; MAC层将该应答的接收时间作为该数据包的应答时间。 优选地, 缓存上述 SN和上述接收时间的缓冲区为发送上述 TB对应的缓冲区。 根据本发明实施例的另一方面, 提供了一种层二数据包时延的获取设备, 该设备 的 MAC层包括: 接收时间获取与存储模块, 设置为获取并存储 PDCP层接收的数据 包的接收时间; 数据包发送模块, 设置为向对端发送数据包; 应答接收模块, 设置为 接收对端对该数据包的应答; 应答时间获取模块, 设置为确定数据包的应答接收完毕 后, 获取数据包的应答时间; 时延获取模块, 设置为设置应答时间获取模块获取的应 答时间减去接收时间获取与存储模块存储的接收时间, 得到该数据包的层二数据包时 延。 优选地, 该设备的 PDCP层包括: 第一发送模块, 设置为接收到 PDCP层序列号 为 SN的数据包后, 将该数据包的接收时间和该数据包发送给 RLC层; 该 RLC层包 括: 发送方式确定模块, 设置为根据当前带宽确定上述数据包的发送方式, 其中, 该 发送方式包括拆分方式或组合方式; 第二发送模块, 设置为按照确定的发送方式将上 述数据包和上述接收时间发送给 MAC层; 接收时间获取与存储模块包括: 缓存单元, 设置为接收上述数据包和上述接收时间后, 将上述 SN和上述接收时间缓存在对应的 缓冲区。 优选地, 第二发送模块包括: 拆分单元, 设置为当确定的发送方式为拆分方式时, 将上述数据包拆分为多个 RLC数据包; 第一发送单元, 设置为将多个 RLC数据包发 送给 MAC层, 并将上述 SN和上述接收时间发送给 MAC层; 数据包发送模块包括: 第一接收单元, 设置为接收上述多个 RLC数据包; 第一封 装单元, 设置为将第一接收单元接收的多个 RLC数据包封装为多个传输块 TB; 第一 TB发送单元, 设置为向对端发送第一封装单元封装的上述多个 TB; 应答时间获取模块包括: 第一应答确定单元, 设置为接收到上述多个 TB 的所有 应答后, 确定数据包的应答接收完毕; 第一应答时间确定单元, 设置为将上述多个 TB 中最后一个 TB的应答接收时间作为数据包的应答时间。 优选地, 第二发送模块包括: 组合单元, 设置为当确定的发送方式为组合方式时, 接收来自 PDCP层的多个数据包, 将该多个数据包拼接成一个 RLC数据包; 第二发送 单元, 将该 RLC数据包发送给 MAC层, 并将多个数据包中每个数据包的 PDCP层序 列号和接收时间发送给 MAC层; 数据包发送模块包括: 第二接收单元, 设置为接收 RLC数据包; 第二封装单元, 设置为将第二接收单元接收的上述 RLC数据包封装为一个 TB; 第二 TB发送单元, 设置为向对端发送第二封装单元封装的 TB; 应答时间获取模块包括: 第二应答确定单元, 设置为接收到上述 TB 的应答后, 根据该 TB与上述 PDCP层序列号的对应关系确定数据包的应答接收完毕; 第二应答 时间确定单元, 设置为将上述应答的接收时间作为上述数据包的应答时间。 通过本发明实施例, MAC层获取并存储 PDCP层接收的数据包的接收时间后向对 端发送数据包, MAC层接收对端对该数据包的应答,在确定数据包的应答接收完毕后 获取数据包的应答时间, 再设置应答时间减去接收时间, 得到该数据包的层二数据包 时延, 解决了相关技术中层二数据包时延的计算方法的准确度低和通用性差的问题, 提升了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的长期演进用户面下行数据的流程图; 图 2是根据本发明实施例的层二数据包时延的获取方法的流程图; 图 3是根据本发明实施例的层二数据包时延的获取设备的结构框图; 图 4是根据本发明优选实施例的层二数据包时延的获取设备的具体结构框图; 图 5是根据本发明优选实施例的层二数据包时延的获取设备的另一种具体结构框 图; 图 6是根据本发明优选实施例的层二数据包时延的获取设备的第三种具体结构框 图; 图 7是根据本发明实施例的采用拆分方式下的获取层二数据包时延的方法的流程 图; 图 8是根据本发明实施例的采用组合方式下的获取层二数据包时延的方法的流程 图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 为了提高层二数据包 (也可以写为 "层 2数据包 "或"层 2包") 时延计算的准确性 与通用性, 本发明实施例提供了一种层二数据包时延的获取方法及设备。 下面通过实 施例进行详细说明。 本实施例提供了一种层二数据包时延的获取方法, 如图 2所示的根据本发明实施 例的层二数据包时延的获取方法的流程图, 该方法可以在网络设备 (例如, 终端或基 站等) 中实现, 该方法包括以下步骤 (步骤 S202-步骤 S210): 步骤 S202, MAC层获取并存储 PDCP层接收的数据包的接收时间; 步骤 S204, MAC层向对端发送上述数据包; 步骤 S206, MAC层接收对端对上述数据包的应答; 步骤 S208, MAC层确定上述数据包的应答接收完毕后, 获取上述数据包的应答 时间; 步骤 S210, MAC层设置应答时间减去接收时间, 得到上述数据包的层二数据包 时延。 其中, 上述应答是对端 MAC层接收到本端 MAC层发送的数据包后, 对端 MAC 层向本端 MAC层返回的应答, 而上述 UM模式是 RLC层的传输模式, 因此该方法在 MAC层不会存在无应答的情况, 因此采用在 MAC层实现的方式提高了此计算方法的 通用性。 MAC层在接收到数据包的应答后获取应答时间, 省去了 MAC层向 RLC层 发送应答的时间, 使计算层二数据包时延的方法准确性更高。 通过本实施例, MAC层获取并存储 PDCP层接收的数据包的接收时间,以及 MAC 层在确定数据包的应答接收完毕后获取数据包的应答时间, 再设置应答时间减去接收 时间得到该数据包的层二数据包时延, 因在 MAC层会接收到每个数据包的应答, 并 且由 MAC层计算层二数据包时延省去了 MAC层向 RLC层发送应答的时间, 因此解 决了相关技术中层二数据包时延的计算方法的准确度低和通用性差的问题, 提升了用 户体验。 上述实施例中,数据包发送至 MAC层之前,数据包从高层到低层依次经过 PDCP 层、 RLC层, 再到 MAC层, 具体地: PDCP层接收到 PDCP层序列号为 SN的数据包 后, 记录该数据包的接收时间, 并将该接收时间和数据包发送给 RLC层, RLC层根 据当前带宽确定数据包的发送方式, 其中, 该发送方式包括拆分方式或组合方式, 然 后, RLC层按照确定的发送方式将数据包和接收时间发送给 MAC层, MAC层接收到 数据包和接收时间后, 将该数据包的 PDCP层序列号 SN和接收时间缓存在对应的缓 冲区。 上述过程中, PDCP 层记录数据包的接收时间并存储对应的缓冲区中, 这样在 计算层二数据包时延的时候, 方便获取接收时间。 其中, 本发明实施例中的 SN可以设置在该数据包的包头上。 在当前带宽较小的情况下, RLC层选择拆分的方式进行数据包的发送, RLC层接 收来自 PDCP层的数据包, 并将数据包拆分为多个 RLC数据包, 再将多个 RLC数据 包发送给 MAC层, 同时也将 SN和接收时间发送给 MAC层, MAC层将 SN和接收 时间缓存在对应的缓冲区, 将多个 RLC数据包封装为多个传输块 (Transport Block, 简称为 TB), 然后 MAC层向对端发送该多个 TB。 对端接收到上述多个 TB后, 向 MAC层返回应答, MAC层确定数据包的应答接 收完毕后,将多个 TB中最后一个 TB的应答接收时间作为数据包的应答时间。这样在 所有 TB都被对端接收到的情况下, 记录应答时间, 保证计算层二数据包时延的准确 性。 上述缓冲区可以是发送多个 TB对应的各个缓冲区,即在各个 TB对应的缓冲区中 均存储上述数据包的 PDCP层序列号 SN和接收时间。 RLC层是根据当前带宽来确定数据包的发送方式,在当前带宽较大的情况下, RLC 层选择组合的方式进行数据包的发送, 基于此, RLC层接收来自 PDCP层的多个数据 包, 并将多个数据包拼接成一个 RLC数据包, 再将该 RLC数据包发送给 MAC层, 同时也将上述多个数据包中每个数据包的 PDCP层序列号 SN和接收时间发送给 MAC 层, MAC层将 SN和接收时间缓存在对应的缓冲区, 将 RLC数据包封装为一个 TB, 然后 MAC层向对端发送该 TB。 对端接收到上述 TB后, 向 MAC层返回应答, MAC层确定数据包的应答接收完 毕后, 将该 TB 的应答接收时间作为数据包的应答时间。 这样可以保证计算层二数据 包时延的准确性。 上述缓冲区可以是发送 TB对应的缓冲区, MAC层将 SN和接收时间缓存在缓存 区的目的是在 MAC计算层二数据包时延的时候方便读取接收时间。上述 MAC层是指 本端的 MAC层。 对应于上述方法, 本实施例还提供了一种层二数据包时延的获取设备, 该设备用 于实现上述实施例, 图 3是根据本发明实施例的层二数据包时延的获取设备的结构框 图, 如图 3所示, 该设备中的 MAC层包括: 接收时间获取与存储模块 30、 数据包发 送模块 32、 应答接收模块 34、 应答时间获取模块 36和时延获取模块 38。 下面对该结 构进行说明。 接收时间获取与存储模块 30, 设置为获取并存储 PDCP层接收的数据包的接收时 间; 数据包发送模块 32,连接至接收时间获取与存储模块 30, 设置为向对端发送该数 据包; 应答接收模块 34, 连接至数据包发送模块 32, 设置为接收对端对数据包的应答; 应答时间获取模块 36,连接至应答接收模块 34, 设置为确定数据包的应答接收完 毕后, 获取该数据包的应答时间; 时延获取模块 38, 连接至接收时间获取与存储模块 30和应答时间获取模块 36, 设置为设置应答时间获取模块 36获取的应答时间减去接收时间获取与存储模块 30存 储的接收时间, 得到数据包的层二数据包时延。 通过上述设备,接收时间获取与存储模块 30获取并存储 PDCP层接收的数据包的 接收时间后, 由数据包发送模块 32向对端发送数据包, 然后应答接收模块 34接收对 端对该数据包的应答,应答时间获取模块 36在确定数据包的应答接收完毕后获取数据 包的应答时间, 时延获取模块 38设置应答时间减去接收时间,得到该数据包的层二数 据包时延, 因在 MAC层会接收到每个数据包的应答,并且由 MAC层计算层二数据包 时延省去了 MAC层向 RLC层发送应答的时间, 解决了相关技术中层二数据包时延的 计算方法的准确度低和通用性差的问题, 提升了用户体验。 上述实施例中,数据包发送至 MAC层之前,数据包从高层到低层依次经过 PDCP 层、 RLC层, 再到 MAC层, 图 4是根据本发明优选实施例的层二数据包时延的获取 设备的具体结构框图, 如图 4所示, 该设备除了包括上述图 3中的 MAC层的各个模 块之外, 还包括: PDCP层的第一发送模块 40、 RLC层的发送方式确定模块 42和第 二发送模块 44以及 MAC层的接收时间获取与存储模块 30中的缓存单元 302。下面对 该结构进行说明。 第一发送模块 40,位于该设备中的 PDCP层,设置为接收到 PDCP层序列号为 SN 的数据包后, 将该数据包的接收时间和该数据包发送给 RLC 层; 发送方式确定模块 42, 位于该设备中的 RLC层, 连接至第一发送模块 40, 设置为根据当前带宽确定上 述数据包的发送方式, 其中, 该发送方式包括拆分方式或组合方式; 第二发送模块 44, 位于该设备中的 RLC层, 连接至发送方式确定模块 42, 设置 为按照确定的发送方式将上述数据包和接收时间发送给 MAC层; 缓存单元 302, 位于 MAC层的接收时间获取与存储模块 30中, 连接至第二发送 模块 44, 设置为接收上述数据包和接收时间后, 将上述 SN和接收时间缓存在对应的 缓冲区。 After the MAC layer determines that the response of the data packet is received, obtaining the response time of the data packet includes: after receiving the response of the TB, the MAC layer determines, according to the correspondence between the TB and the PDCP layer serial number, that the response of the data packet is received; The MAC layer uses the reception time of the response as the response time of the data packet. Preferably, the buffer for buffering the SN and the receiving time is a buffer corresponding to the TB. According to another aspect of the present invention, a device for acquiring a layer two data packet delay is provided, where the MAC layer of the device includes: a receiving time acquisition and storage module, configured to acquire and store a data packet received by the PDCP layer. Receiving time; the data packet sending module is configured to send a data packet to the opposite end; the answering receiving module is configured to receive the response of the peer end to the data packet; and the response time obtaining module is configured to: after determining that the response of the data packet is received, obtain The response time of the data packet; the delay acquisition module is configured to set the response time obtained by the response time acquisition module minus the reception time to obtain the reception time stored by the storage module, and obtain the layer 2 data packet delay of the data packet. Preferably, the PDCP layer of the device includes: a first sending module, configured to: after receiving the data packet with the PDCP layer serial number SN, send the data packet receiving time and the data packet to the RLC layer; the RLC layer includes a sending mode determining module, configured to determine, according to a current bandwidth, a sending manner of the foregoing data packet, where the sending manner includes a splitting manner or a combination manner; and a second sending module, configured to send the foregoing data packet according to the determined sending manner The receiving time is sent to the MAC layer. The receiving time acquiring and storing module includes: a buffer unit configured to: after receiving the data packet and the receiving time, buffering the SN and the receiving time in a corresponding buffer. Preferably, the second sending module includes: a splitting unit, configured to split the data packet into multiple RLC data packets when the determined sending mode is a split mode; the first sending unit is configured to set multiple RLCs The data packet is sent to the MAC layer, and the foregoing SN and the foregoing receiving time are sent to the MAC layer. The data packet sending module includes: a first receiving unit, configured to receive the multiple RLC data packets; and a first encapsulating unit, configured to be The plurality of RLC data packets received by the receiving unit are encapsulated into a plurality of transport blocks TB; the first TB sending unit is configured to send the plurality of TBs of the first encapsulating unit package to the opposite end; the response time obtaining module includes: the first response a determining unit, configured to: after receiving all the responses of the plurality of TBs, determine that the response of the data packet is received; the first response time determining unit is configured to use the response receiving time of the last one of the plurality of TBs as the data packet Response time. Preferably, the second sending module includes: a combining unit, configured to: when the determined sending mode is the combined mode, receive multiple data packets from the PDCP layer, and splicing the multiple data packets into one RLC data packet; a unit, sending the RLC data packet to the MAC layer, and transmitting a PDCP layer sequence number and a receiving time of each data packet of the multiple data packets to the MAC layer; the data packet sending module includes: a second receiving unit, configured to receive The second encapsulation unit is configured to encapsulate the RLC data packet received by the second receiving unit into one TB; the second TB sending unit is configured to send the TB of the second encapsulation unit package to the opposite end; The module includes: a second response determining unit configured to: after receiving the response of the TB, determine, according to the correspondence between the TB and the PDCP layer serial number, that the response of the data packet is received; the second response time determining unit is configured to The reception time of the response is taken as the response time of the above data packet. According to the embodiment of the present invention, the MAC layer acquires and stores the receiving time of the data packet received by the PDCP layer, and then sends the data packet to the opposite end, and the MAC layer receives the response of the data packet to the peer end, and obtains the data packet after receiving the response. The response time of the data packet, and then the response time minus the receiving time, obtains the layer 2 data packet delay of the data packet, and solves the problem of low accuracy and poor versatility of the calculation method of the layer 2 data packet delay in the related art. Improved user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a flowchart of long-term evolution user plane downlink data according to the related art; FIG. 2 is a flowchart of a method for acquiring layer two data packet delay according to an embodiment of the present invention; FIG. 4 is a block diagram showing a structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention; FIG. 4 is a block diagram showing a specific structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention; FIG. 6 is a block diagram of a third specific structure of an apparatus for acquiring a layer 2 packet delay according to a preferred embodiment of the present invention; FIG. 7 is a flowchart of a method for acquiring a layer 2 packet delay in a split mode according to an embodiment of the present invention; FIG. 8 is an acquisition layer 2 packet delay in a combined manner according to an embodiment of the present invention; Flow chart of the method. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In order to improve the accuracy and versatility of the delay calculation of the layer 2 data packet (which may also be written as a "layer 2 data packet" or a "layer 2 packet"), the embodiment of the present invention provides a layer 2 data packet delay acquisition. Method and equipment. The details will be described below by way of examples. This embodiment provides a method for obtaining a layer 2 data packet delay, and a flowchart for acquiring a layer 2 data packet delay according to an embodiment of the present invention, which may be in a network device (for example, The method includes the following steps (step S202 - step S210): Step S202, the MAC layer acquires and stores the receiving time of the data packet received by the PDCP layer; Step S204, the MAC layer sends the foregoing to the opposite end. Step S206, the MAC layer receives the response of the peer to the data packet; Step S208, the MAC layer determines that the response of the data packet is received, and obtains the response time of the data packet; Step S210, the MAC layer sets the response time minus To receive the time, the layer 2 packet delay of the above data packet is obtained. The foregoing response is a response that the peer MAC layer returns to the local MAC layer after receiving the data packet sent by the local MAC layer, and the UM mode is a transmission mode of the RLC layer, so the method is in the MAC. There is no non-response in the layer, so the implementation of the MAC layer improves the versatility of this calculation method. The MAC layer obtains the response time after receiving the response of the data packet, which omits the time when the MAC layer sends a response to the RLC layer, so that the method for calculating the layer 2 packet delay is more accurate. In this embodiment, the MAC layer acquires and stores the reception time of the data packet received by the PDCP layer, and the response time of the MAC layer to obtain the data packet after determining that the response of the data packet is received, and then sets the response time minus the reception. Time gets the layer 2 packet delay of the data packet, because the MAC layer will receive the response of each data packet, and the MAC layer calculates the layer 2 data packet delay to save the time that the MAC layer sends the response to the RLC layer. Therefore, the problem of low accuracy and poor versatility of the calculation method of the layer 2 packet delay in the related technology is solved, and the user experience is improved. In the foregoing embodiment, before the data packet is sent to the MAC layer, the data packet passes through the PDCP layer, the RLC layer, and then the MAC layer from the upper layer to the lower layer. Specifically, after the PDCP layer receives the data packet with the PDCP layer serial number SN, The receiving time of the data packet is recorded, and the receiving time and the data packet are sent to the RLC layer, and the RLC layer determines the sending manner of the data packet according to the current bandwidth, where the sending manner includes splitting or combining, and then, the RLC layer The data packet and the receiving time are sent to the MAC layer according to the determined sending manner. After receiving the data packet and the receiving time, the MAC layer caches the PDCP layer serial number SN and the receiving time of the data packet in the corresponding buffer. In the above process, the PDCP layer records the receiving time of the data packet and stores it in the corresponding buffer, so that when the layer 2 data packet delay is calculated, the receiving time is conveniently obtained. The SN in the embodiment of the present invention may be set on the packet header of the data packet. In the case that the current bandwidth is small, the RLC layer selects the split mode to transmit the data packet, the RLC layer receives the data packet from the PDCP layer, and splits the data packet into multiple RLC data packets, and then multiple RLCs. The data packet is sent to the MAC layer, and the SN and the receiving time are also sent to the MAC layer. The MAC layer caches the SN and the receiving time in the corresponding buffer, and encapsulates multiple RLC data packets into multiple transport blocks (Transport Block, referred to as TB), then the MAC layer sends the multiple TBs to the peer. After receiving the multiple TBs, the peer end returns a response to the MAC layer. After the MAC layer determines that the response of the data packet is received, the response reception time of the last TB of the plurality of TBs is used as the response time of the data packet. In this way, when all the TBs are received by the opposite end, the response time is recorded, and the accuracy of the calculation layer 2 packet delay is ensured. The above buffer may be a buffer for transmitting a plurality of TBs, that is, a PDCP layer sequence number SN and a reception time of the data packet are stored in buffers corresponding to the respective TBs. The RLC layer determines the manner in which the data packet is transmitted according to the current bandwidth. In the case where the current bandwidth is large, the RLC layer selects a combined manner to transmit the data packet. Based on this, the RLC layer receives multiple data packets from the PDCP layer. And splicing a plurality of data packets into one RLC data packet, and transmitting the RLC data packet to the MAC layer, and also transmitting the PDCP layer serial number SN and the receiving time of each of the plurality of data packets to the MAC layer. The MAC layer caches the SN and the receiving time in the corresponding buffer, encapsulates the RLC data packet into one TB, and then the MAC layer sends the TB to the opposite end. After receiving the TB, the peer end returns a response to the MAC layer. After the MAC layer determines that the response of the data packet has been received, the response reception time of the TB is used as the response time of the data packet. This can ensure the accuracy of the calculation layer 2 packet delay. The above buffer may be a buffer corresponding to the sending TB, and the MAC layer caches the SN and the receiving time in the buffer area for the purpose of conveniently reading the receiving time when the MAC computing layer 2 data packet is delayed. The above MAC layer refers to the MAC layer of the local end. Corresponding to the foregoing method, the embodiment further provides a layer 2 data packet delay acquiring device, which is used to implement the foregoing embodiment, and FIG. 3 is a layer 2 data packet delay acquiring device according to an embodiment of the present invention. As shown in FIG. 3, the MAC layer in the device includes: a receiving time acquisition and storage module 30, a data packet transmitting module 32, a response receiving module 34, a response time obtaining module 36, and a delay obtaining module 38. The structure will be described below. The receiving time acquisition and storage module 30 is configured to acquire and store the receiving time of the data packet received by the PDCP layer; the data packet sending module 32 is connected to the receiving time acquisition and storage module 30, and configured to send the data packet to the opposite end; The receiving module 34 is connected to the data packet sending module 32, and is configured to receive the response of the peer to the data packet. The response time obtaining module 36 is connected to the response receiving module 34, and is configured to obtain the data after receiving the response of the data packet. The response time of the packet; the delay acquisition module 38 is connected to the reception time acquisition and storage module 30 and the response time acquisition module 36, and is configured to set the response time acquired by the response time acquisition module 36 minus the reception time acquisition and storage module 30. Receive time, get the layer 2 packet delay of the packet. After the receiving time acquisition and storage module 30 acquires and stores the receiving time of the data packet received by the PDCP layer, the data packet transmitting module 32 sends a data packet to the opposite end, and then the response receiving module 34 receives the opposite end of the data packet. The response, the response time acquisition module 36 obtains the response time of the data packet after determining that the response of the data packet is received, and the delay acquisition module 38 sets the response time minus the reception time to obtain the layer 2 data packet delay of the data packet. The MAC layer receives the response of each data packet, and the MAC layer calculates the layer 2 data packet delay to save the time that the MAC layer sends the response to the RLC layer, and solves the calculation method of the layer 2 data packet delay in the related art. The low accuracy and poor versatility raises the user experience. In the above embodiment, before the data packet is sent to the MAC layer, the data packet passes through the PDCP layer, the RLC layer, and the MAC layer from the upper layer to the lower layer in sequence. FIG. 4 is a layer 2 packet delay acquisition according to a preferred embodiment of the present invention. A specific structural block diagram of the device, as shown in FIG. 4, the device includes: a first sending module 40 of the PDCP layer, a sending mode determining module 42 of the RLC layer, and the module of the MAC layer in FIG. The second sending module 44 and the receiving time of the MAC layer acquire the buffer unit 302 in the storage module 30. The structure will be described below. The first sending module 40, located in the PDCP layer of the device, is configured to receive the data packet of the PDCP layer sequence number SN, and then send the data packet to the RLC layer; the sending mode determining module 42 The RLC layer in the device is connected to the first sending module 40, and is configured to determine a sending manner of the data packet according to the current bandwidth, where the sending manner includes a splitting manner or a combination manner; and the second sending module 44 is located at The RLC layer in the device is connected to the sending mode determining module 42 and configured to send the data packet and the receiving time to the MAC layer according to the determined sending manner. The buffering unit 302 is located in the receiving time acquisition and storage module 30 of the MAC layer. And connecting to the second sending module 44, configured to receive the foregoing data packet and the receiving time, and buffer the SN and the receiving time in the corresponding buffer.
RLC层是根据当前带宽来确定数据包的发送方式,在当前带宽较小的情况下, RLC 层选择拆分的方式进行数据包的发送, 图 5是根据本发明优选实施例的层二数据包时 延的获取设备的另一个具体结构框图, 如图 5所示, 除了包括上述图 4中的各个模块 之外, 还包括: 第二发送模块 44中的拆分单元 442和第一发送单元 444, 数据包发送 模块 32中的第一接收单元 322、 第一封装单元 324和第一 TB发送单元 326, 应答时 间获取模块 36中的第一应答确定单元 362和第一应答时间确定单元 364。下面对该结 构进行说明。 拆分单元 442, 位于第二发送模块 44, 设置为当确定的发送方式为拆分方式时, 将上述数据包拆分为多个 RLC数据包; 第一发送单元 444, 位于第二发送模块 44, 连接至拆分单元 442, 设置为将上述 多个 RLC数据包发送给 MAC层, 并将上述 SN和接收时间发送给 MAC层; 第一接收单元 322, 位于数据包发送模块 32, 连接至第一发送单元 444, 设置为 接收多个 RLC数据包; 第一封装单元 324, 位于数据包发送模块 32, 连接至第一接收单元 322, 设置为 将第一接收单元 322接收的多个 RLC数据包封装为多个传输块 TB; 第一 TB发送单元 326, 位于数据包发送模块 32, 连接至第一封装单元 324, 设置 为向对端发送第一封装单元 324封装的多个 TB; 第一应答确定单元 362, 位于应答时间获取模块 36, 设置为接收到多个 TB的所 有应答后, 确定数据包的应答接收完毕; 第一应答时间确定单元 364, 位于应答时间获取模块 36, 连接至第一应答确定单 元 362, 设置为将多个 TB中最后一个 TB的应答接收时间作为数据包的应答时间。 在当前带宽较大的情况下, RLC层选择组合的方式进行数据包的发送。 图 6是根 据本发明优选实施例的层二数据包时延的获取设备的第三种具体结构框图, 如图 6所 示, 除了包括上述图 4中的各个模块之外, 还包括: 第二发送模块 44中的组合单元 446和第二发送单元 448, 数据包发送模块 32中的第二接收单元 328、 第二封装单元 330和第二 TB发送单元 332, 应答时间获取模块 36中的第二应答确定单元 366和第 二应答时间确定单元 368。 下面对该结构进行说明。 组合单元 446, 位于第二发送模块 44, 设置为当确定的发送方式为组合方式时, 接收来自 PDCP层的多个数据包, 将多个数据包拼接成一个 RLC数据包; 第二发送单元 448, 位于第二发送模块 44, 连接至组合单元 446, 将 RLC数据包 发送给 MAC层, 并将多个数据包中每个数据包的 PDCP层序列号和接收时间发送给 MAC层; 第二接收单元 328, 位于数据包发送模块 32, 连接至第二发送单元 448, 设置为 接收 RLC数据包; 第二封装单元 330, 位于数据包发送模块 32, 连接至第二接收单元 328, 设置为 将第二接收单元 328接收的 RLC数据包封装为一个 TB; 第二 TB发送单元 332, 位于数据包发送模块 32, 连接至第二封装单元 330, 设置 为向对端发送第二封装单元 330封装的 TB; 第二应答确定单元 366, 位于应答时间获取模块 36, 设置为接收到 TB的应答后, 根据 TB与 PDCP层序列号的对应关系确定数据包的应答接收完毕; 第二应答时间确定单元 368, 位于应答时间获取模块 36, 连接至第二应答确定单 元 366, 设置为将应答的接收时间作为数据包的应答时间。 在上述两个关于层二数据包时延的获取设备的实施例中,分别介绍了 RLC层选择 不同的发送数据包方式的情况下的设备结构构成, RLC层选择拆分或组合的方式发送 数据包是基于当前带宽的大小决定的,扩大了层二数据包时延的获取设备的适用范围, 提高了该设备的通用性。 由上述实施例可知, 本发明实施例的 MAC层能够明确知道某个 TB对应的 PDCP SN号, 并将该 TB对应的 PDCP SN号以及 PDCP层接收到该数据包的接收时间存储 在 MAC层。对于拆分方式,当一个 PDCP数据包的最后一个 TB接收到 UE的应答(例 如 HARQ应答)时, MAC层记录此时的应答时间, MAC层根据应答时间减去接收时 间, 计算得到该 PDCP数据包的层二数据包时延。 为了使本发明的方法更易懂, 下面结合优选实施例和附图对上述实施例的实现过 程进行详细说明。 实施例一 本实施例以在当前带宽较小的情况下, RLC层选择拆分的方式进行数据包的发送 为例进行说明, PDCP层接收到下行数据后发送至 RLC层,根据当前带宽的大小, RLC 层决定采用拆分数据包或组合数据包的方式进行数据包的发送。 图 7是根据本发明实 施例的采用拆分方式下的获取层二数据包时延的方法的流程图, 如图 7所示, 该方法 包括如下步骤 (S702-S712): 步骤 S702, 本端 PDCP层接收到 PDCP层序列号为 SN的数据包, 比如设定 SN= x, PDCP层计算当前时间, 并对该数据包打时间戳 T1后, 将数据包发送给本端 RLC 层。 步骤 S704, 本端 RLC层接收到 PDCP层的数据包后根据当前带宽将数据包拆分 为 n个 RLC数据包, 比如 SN = 1, 2, … 并将 PDCP SN号以及时间戳 T1发送到本 端 MAC层。 步骤 S706, 本端 MAC层接收到 RLC层的数据包后, 将 RLC数据包封装为 TB (比如 0, 1, -n)后发送给对端 MAC层, 并将本端 RLC层携带的 PDCP SN号以及 时间戳 T1存储在本端 MAC层每个 TB对应的缓冲区 (比如: HARQ缓冲区) 中。 步骤 S708,对端 MAC层接收到本端 MAC层发送的 TB后分别对 TBI, TB2, TBn 回复应答。 该应答可以是对端 MAC层接收到 TB后所返回的 ACK, 也可以是该 TB传输至 对端 MAC层失败后, 对端 MAC层发送的 HARQ。 步骤 S710,本端 MAC层接收到应答后根据 HARQ缓冲区中存储的 TB与 PDCP SN 的对应关系, 判断直到接收到 TBn的应答, 即最后一个 TB的应答, 才确定收到了该 PDCP数据包的最后一个分片。 步骤 S712, 本端 MAC层获取到对应 TBn的应答时间 T2, 并减去对应的缓冲区 中记录的 PDCP层时间戳 Tl, 得到该 PDCP数据包的层二数据包时延。 实施例二 本实施例以在当前带宽较大的情况下, RLC层选择组合的方式进行数据包的发送 为例进行说明, 图 8是根据本发明实施例的采用组合方式下的获取层二数据包时延的 方法的流程图, 如图 8所示, 该方法包括如下步骤 (S802-S812): 步骤 S802, 本端 PDCP层接收到下行数据, 即 PDCP层序列号为 SN的数据包, 比如设定 SN= 1, 2, …!, PDCP层分别计算当前时间, 并分别对每个数据包打时间戳 Τ1, Τ2···Τη后, 将数据包和时间戳发送给本端 RLC层; 步骤 S804, 本端 RLC层接收到本端 PDCP层的数据包后, 根据当前带宽将 n个 PDCP数据包拼接成一个 RLC数据包。 并将该 RLC数据包中包含的所有 PDCP SN号 以及时间戳 Τ1, Τ2, ·Τη发送到本端 MAC层; 步骤 S806, 本端 MAC层接收到本端 RLC层发送的数据包后, 将 RLC数据包封 装为一个 TB后发送至对端 MAC层,并将 RLC层携带的所有 PDCP SN号以及时间戳 Tl, Τ2, Τη存储在本端 MAC层中该 TB对应的缓冲区 (比如: HARQ缓冲区) 中; 步骤 S808, 对端 MAC层接收到本端 MAC层发送的 TB后对该 TB回复应答; 步骤 S810,本端 MAC层接收到应答后根据 HARQ缓冲区中记录的 TB与 PDCP SN 的对应关系判断该 TB包含了多个 PDCP数据包; 步骤 S812,本端 MAC层获取到对应该 TB的应答时间 T0,并依次减去 HARQ缓 冲区中存储的 PDCP层时间戳 Τ1, Τ2···Τη, 分别得到该 TB中包含的所有 PDCP数据 包的层二数据包时延。 上述两个实施例具体说明了在当前带宽较小 /较大的情况下,采用拆分 /组合的数据 包发送方式, 从而计算层二数据包时延的过程, 依据当前带宽的大小对数据包的发送 方式进行改变, 提高了层二数据包时延计算方法的通用性, 解决了相关技术中层二数 据包时延的计算方法的准确度低和通用性差的问题, 提升了用户体验效果。 以上仅为本发明中的较佳实施方式而已, 并不作为对本发明所保护范围的限定。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 The RLC layer determines the manner in which the data packet is transmitted according to the current bandwidth. In the case where the current bandwidth is small, the RLC layer selects the split mode to transmit the data packet, and FIG. 5 is a layer 2 data packet according to a preferred embodiment of the present invention. Another specific structural block diagram of the delay acquiring device, as shown in FIG. 5, includes: in addition to the respective modules in FIG. 4, the splitting unit 442 and the first sending unit 444 in the second sending module 44. The first receiving unit 322, the first encapsulating unit 324, and the first TB transmitting unit 326 in the packet sending module 32, the first response determining unit 362 and the first response time determining unit 364 in the response time acquiring module 36. The structure will be described below. The splitting unit 442 is located in the second sending module 44, and is configured to split the data packet into multiple RLC data packets when the determined sending mode is the split mode. The first sending unit 444 is located in the second sending module 44. And connecting to the splitting unit 442, configured to send the multiple RLC data packets to the MAC layer, and send the SN and the receiving time to the MAC layer; the first receiving unit 322, located in the data packet sending module 32, connected to the a sending unit 444, configured to receive multiple RLC data packets; The first encapsulating unit 324 is located in the data packet sending module 32 and is connected to the first receiving unit 322, and is configured to encapsulate the plurality of RLC data packets received by the first receiving unit 322 into a plurality of transport blocks TB. The first TB sending unit 326 The packet sending module 32 is connected to the first encapsulating unit 324 and configured to send the plurality of TBs encapsulated by the first encapsulating unit 324 to the opposite end. The first response determining unit 362 is located in the response time acquiring module 36, and is configured to receive After all the responses of the plurality of TBs, it is determined that the response of the data packet is received; the first response time determining unit 364 is located at the response time obtaining module 36, and is connected to the first response determining unit 362, and is set to be the last one of the plurality of TBs. The response reception time of the TB is taken as the response time of the data packet. In the case where the current bandwidth is large, the RLC layer selects a combination manner to transmit a data packet. FIG. 6 is a third structural block diagram of a device for acquiring a layer two packet delay according to a preferred embodiment of the present invention. As shown in FIG. 6, in addition to the modules in FIG. 4, the method further includes: The combining unit 446 and the second sending unit 448 in the sending module 44, the second receiving unit 328, the second encapsulating unit 330 and the second TB sending unit 332 in the data packet sending module 32, and the second in the response time obtaining module 36 The response determination unit 366 and the second response time determination unit 368. The structure will be described below. The combining unit 446 is located at the second sending module 44, and is configured to receive multiple data packets from the PDCP layer and combine the multiple data packets into one RLC data packet when the determined sending mode is the combined mode. The second sending unit 448 The second sending module 44 is connected to the combining unit 446, sends the RLC data packet to the MAC layer, and sends the PDCP layer sequence number and the receiving time of each data packet of the multiple data packets to the MAC layer; The unit 328 is located in the data packet sending module 32, and is connected to the second sending unit 448, and is configured to receive the RLC data packet. The second encapsulating unit 330 is located in the data packet sending module 32 and is connected to the second receiving unit 328. The second TB sending unit 332 is configured to be a TB. The second response determining unit 366 is located in the response time obtaining module 36, and is configured to determine the data according to the correspondence between the TB and the PDCP layer serial number after receiving the response of the TB. The response of the packet is received; The second response time determining unit 368, located in the response time obtaining module 36, is connected to the second response determining unit 366, and is configured to set the receiving time of the response as the response time of the data packet. In the foregoing two embodiments of the device for acquiring the data packet delay of the layer two, the structure of the device in the case where the RLC layer selects different methods of sending packets is respectively introduced, and the RLC layer selects split or combined to send data. The packet is determined based on the current bandwidth, and the application range of the acquisition device of the layer 2 packet delay is expanded, and the versatility of the device is improved. It can be seen from the foregoing embodiment that the MAC layer in the embodiment of the present invention can clearly know the PDCP SN number corresponding to a certain TB, and store the PDCP SN number corresponding to the TB and the receiving time of the PDCP layer receiving the data packet in the MAC layer. For the split mode, when the last TB of a PDCP packet receives a response from the UE (for example, a HARQ response), the MAC layer records the response time at this time, and the MAC layer subtracts the reception time according to the response time, and calculates the PDCP data. Layer 2 packet delay for the packet. In order to make the method of the present invention more understandable, the implementation process of the above embodiment will be described in detail below with reference to the preferred embodiments and the accompanying drawings. Embodiment 1 In this embodiment, the RLC layer selects a split mode to perform data packet transmission when the current bandwidth is small. The PDCP layer receives the downlink data and sends the data to the RLC layer according to the current bandwidth. The RLC layer decides to send the data packet by splitting the data packet or combining the data packets. FIG. 7 is a flowchart of a method for acquiring a layer 2 packet delay in a split mode according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps (S702-S712): Step S702, the local end The PDCP layer receives the data packet whose sequence number is SN in the PDCP layer. For example, if SN=x is set, the PDCP layer calculates the current time, and timestamps the data packet to send the data packet to the local RLC layer. Step S704, the local RLC layer receives the data packet of the PDCP layer and splits the data packet into n RLC data packets according to the current bandwidth, for example, SN = 1, 2, ... and sends the PDCP SN number and the timestamp T1 to the present packet. End MAC layer. Step S706: After receiving the data packet of the RLC layer, the local MAC layer encapsulates the RLC data packet into a TB (for example, 0, 1, -n), and then sends the data to the peer MAC layer, and carries the PDCP SN carried by the local RLC layer. The number and the timestamp T1 are stored in a buffer corresponding to each TB of the local MAC layer (for example, a HARQ buffer). Step S708: After receiving the TB sent by the local MAC layer, the peer MAC layer replies to the TBI, TB2, and TBn respectively. The response may be an ACK returned by the peer MAC layer after receiving the TB, or may be an HARQ sent by the peer MAC layer after the TB transmits to the opposite MAC layer. Step S710: After receiving the response, the local MAC layer determines, according to the correspondence between the TB and the PDCP SN stored in the HARQ buffer, that the response to the TBn, that is, the response of the last TB, is determined, and the PDCP data packet is received. The last piece. Step S712, the local MAC layer obtains the response time T2 of the corresponding TBn, and subtracts the PDCP layer timestamp T1 recorded in the corresponding buffer to obtain the layer 2 data packet delay of the PDCP data packet. Embodiment 2 This embodiment is described by taking an example in which the RLC layer selects a combination to perform data packet transmission in a case where the current bandwidth is large. FIG. 8 is an acquisition layer two data in a combined manner according to an embodiment of the present invention. A flowchart of a method for packet delay, as shown in FIG. 8, the method includes the following steps (S802-S812): Step S802, the local PDCP layer receives downlink data, that is, a data packet whose PDCP layer serial number is SN, for example, Set SN= 1, 2, ...! The PDCP layer calculates the current time, and timestrate each data packet by Τ1, Τ2···Τη, and then sends the data packet and the timestamp to the local RLC layer; Step S804, the local RLC layer receives the current After the data packet of the PDCP layer, the n PDCP data packets are spliced into one RLC data packet according to the current bandwidth. And sending all the PDCP SN numbers and the timestamps ,1, Τ2, · Τη included in the RLC data packet to the local MAC layer; Step S806, the local MAC layer receives the data packet sent by the local RLC layer, and then sets the RLC. The data packet is encapsulated into one TB and sent to the peer MAC layer, and all the PDCP SN numbers carried by the RLC layer and the timestamps T1, Τ2, Τη are stored in the buffer corresponding to the TB in the local MAC layer (for example: HARQ buffer) In step S808, the peer MAC layer replies to the TB after receiving the TB sent by the local MAC layer; Step S810, the local MAC layer receives the response according to the TB and PDCP SN recorded in the HARQ buffer. Correspondingly, the TB includes a plurality of PDCP data packets. In step S812, the local MAC layer obtains the response time T0 corresponding to the TB, and sequentially subtracts the PDCP layer time stamp Τ1 stored in the HARQ buffer, Τ2··· Τη, respectively obtain the layer 2 packet delay of all PDCP packets included in the TB. The foregoing two embodiments specifically describe the process of calculating the delay of the layer 2 data packet by using the split/combined data packet transmission mode when the current bandwidth is small/large, and the data packet according to the current bandwidth size. The transmission mode is changed, the versatility of the layer 2 packet delay calculation method is improved, and the problem of low accuracy and poor versatility of the calculation method of the layer 2 packet delay in the related technology is solved, and the user experience is improved. The above are only the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种层二数据包时延的获取方法, 包括: A method for obtaining a layer 2 packet delay includes:
媒体接入控制 MAC层获取并存储分组数据汇聚协议 PDCP层接收的数据 包的接收时间;  Media access control The MAC layer acquires and stores the receiving time of the data packet received by the PDCP layer by the packet data convergence protocol;
所述 MAC层向对端发送所述数据包;  Sending, by the MAC layer, the data packet to a peer end;
所述 MAC层接收所述对端对所述数据包的应答;  Receiving, by the MAC layer, a response of the peer to the data packet;
所述 MAC层确定所述数据包的应答接收完毕后, 获取所述数据包的应答 时间;  After the MAC layer determines that the response of the data packet is received, the MAC layer obtains a response time of the data packet;
所述 MAC层设置所述应答时间减去所述接收时间, 得到所述数据包的层 二数据包时延。  The MAC layer sets the response time minus the receiving time to obtain a layer 2 packet delay of the data packet.
2. 根据权利要求 1所述的方法, 其中, 所述 MAC层获取并存储 PDCP层接收的 数据包的接收时间包括: 2. The method according to claim 1, wherein the receiving, by the MAC layer, the receiving time of the data packet received by the PDCP layer comprises:
PDCP层接收到 PDCP层序列号为 SN的数据包后, 将所述数据包的接收 时间和所述数据包发送给无线链路控制 RLC层;  After receiving the data packet with the serial number of the PDCP layer as the SN, the PDCP layer sends the receiving time of the data packet and the data packet to the radio link control RLC layer;
所述 RLC层根据当前带宽确定所述数据包的发送方式,其中,所述发送方 式包括拆分方式或组合方式;  Determining, by the RLC layer, a sending manner of the data packet according to a current bandwidth, where the sending manner includes a splitting manner or a combination manner;
所述 RLC 层按照确定的发送方式将所述数据包和所述接收时间发送给所 述 MAC层;  Sending, by the RLC layer, the data packet and the receiving time to the MAC layer according to a determined sending manner;
所述 MAC层接收所述数据包和所述接收时间后, 将所述 SN和所述接收 时间缓存在对应的缓冲区。  After receiving the data packet and the receiving time, the MAC layer caches the SN and the receiving time in a corresponding buffer.
3. 根据权利要求 2所述的方法, 其中, 3. The method according to claim 2, wherein
所述 RLC 层按照确定的发送方式将所述数据包和所述接收时间发送给所 述 MAC层包括: 当确定的发送方式为所述拆分方式时, 所述 RLC层将所述数 据包拆分为多个 RLC数据包;所述 RLC层将所述多个 RLC数据包发送给所述 MAC层, 并将所述 SN和所述接收时间发送给所述 MAC层;  Sending, by the RLC layer, the data packet and the receiving time to the MAC layer according to the determined sending manner, when the determined sending mode is the split mode, the RLC layer splits the data packet Dividing into a plurality of RLC data packets; the RLC layer sends the multiple RLC data packets to the MAC layer, and sends the SN and the receiving time to the MAC layer;
所述 MAC层向对端发送所述数据包包括:所述 MAC层接收所述多个 RLC 数据包, 将所述多个 RLC数据包封装为多个传输块 TB; 所述 MAC层向对端 发送所述多个 TB; 所述 MAC层确定所述数据包的应答接收完毕后, 获取所述数据包的应答 时间包括: 所述 MAC层接收到所述多个 TB的所有应答后, 确定所述数据包 的应答接收完毕;所述 MAC层将所述多个 TB中最后一个 TB的应答接收时间 作为所述数据包的应答时间。 The sending, by the MAC layer, the data packet to the peer end includes: the MAC layer receiving the multiple RLC data packets, and encapsulating the multiple RLC data packets into multiple transport blocks TB; Sending the plurality of TBs; After the MAC layer determines that the response of the data packet is received, obtaining the response time of the data packet includes: after receiving all the responses of the multiple TBs, the MAC layer determines that the response of the data packet is received. The MAC layer uses the response reception time of the last TB of the plurality of TBs as the response time of the data packet.
4. 根据权利要求 3所述的方法, 其中, 缓存所述 SN和所述接收时间的缓冲区为 发送所述多个 TB对应的各个缓冲区。 4. The method according to claim 3, wherein buffering the SN and the receiving time is to send each buffer corresponding to the plurality of TBs.
5. 根据权利要求 2所述的方法, 其中, 5. The method according to claim 2, wherein
所述 RLC 层按照确定的发送方式将所述数据包和所述接收时间发送给所 述 MAC层包括: 当确定的发送方式为所述组合方式时, 所述 RLC层接收来自 所述 PDCP层的多个数据包,将所述多个数据包拼接成一个 RLC数据包;所述 RLC层将所述 RLC数据包发送给所述 MAC层,并将所述多个数据包中每个数 据包的 PDCP层序列号和接收时间发送给所述 MAC层;  Sending, by the RLC layer, the data packet and the receiving time to the MAC layer according to the determined sending manner, when the determined sending manner is the combined mode, the RLC layer receives the PDCP layer from the PDCP layer. a plurality of data packets, the plurality of data packets being spliced into one RLC data packet; the RLC layer transmitting the RLC data packet to the MAC layer, and each of the plurality of data packets The PDCP layer sequence number and the receiving time are sent to the MAC layer;
所述 MAC层向对端发送所述数据包包括: 所述 MAC层接收所述 RLC数 据包, 将所述 RLC数据包封装为一个 TB; 所述 MAC层向对端发送所述 TB; 所述 MAC层确定所述数据包的应答接收完毕后, 获取所述数据包的应答 时间包括: 所述 MAC层接收到所述 TB的应答后, 根据所述 TB与所述 PDCP 层序列号的对应关系确定所述数据包的应答接收完毕; 所述 MAC层将所述应 答的接收时间作为所述数据包的应答时间。  The sending, by the MAC layer, the data packet to the peer end includes: the MAC layer receiving the RLC data packet, and encapsulating the RLC data packet into one TB; the MAC layer sending the TB to the opposite end; After the MAC layer determines that the response of the data packet is received, obtaining the response time of the data packet includes: after the MAC layer receives the response of the TB, according to the correspondence between the TB and the PDCP layer serial number Determining that the response of the data packet is received; the MAC layer uses the receiving time of the response as the response time of the data packet.
6. 根据权利要求 5所述的方法, 其中, 缓存所述 SN和所述接收时间的缓冲区为 发送所述 TB对应的缓冲区。 The method according to claim 5, wherein buffering the SN and the receiving time is a buffer corresponding to sending the TB.
7. 一种层二数据包时延的获取设备, 所述设备的媒体接入控制 MAC层包括: 接收时间获取与存储模块, 设置为获取并存储分组数据汇聚协议 PDCP层 接收的数据包的接收时间; A device for acquiring a layer 2 data packet delay, the medium access control MAC layer of the device includes: a receiving time acquisition and storage module, configured to acquire and store a data packet received by a PDCP layer of a packet data convergence protocol Time
数据包发送模块, 设置为向对端发送所述数据包;  a data packet sending module, configured to send the data packet to a peer end;
应答接收模块, 设置为接收所述对端对所述数据包的应答;  The response receiving module is configured to receive the response of the peer to the data packet;
应答时间获取模块, 设置为确定所述数据包的应答接收完毕后, 获取所述 数据包的应答时间; 时延获取模块, 设置为设置所述应答时间获取模块获取的应答时间减去所 述接收时间获取与存储模块存储的接收时间, 得到所述数据包的层二数据包时 延。 The response time obtaining module is configured to: after determining that the response of the data packet is received, obtain a response time of the data packet; The delay acquisition module is configured to set a response time obtained by the response time acquisition module, subtract the reception time and a reception time stored by the storage module, to obtain a layer 2 data packet delay of the data packet.
8. 根据权利要求 7所述的设备, 其中, 8. The apparatus according to claim 7, wherein
所述设备的 PDCP层包括: 第一发送模块, 设置为接收到 PDCP层序列号 为 SN的数据包后, 将所述数据包的接收时间和所述数据包发送给无线链路控 制 RLC层;  The PDCP layer of the device includes: a first sending module, configured to: after receiving a data packet with a PDCP layer sequence number SN, send the data packet receiving time and the data packet to a radio link control RLC layer;
所述 RLC层包括: 发送方式确定模块,设置为根据当前带宽确定所述数据 包的发送方式, 其中, 所述发送方式包括拆分方式或组合方式; 第二发送模块, 设置为按照确定的发送方式将所述数据包和所述接收时间发送给所述 MAC 层;  The RLC layer includes: a sending mode determining module, configured to determine, according to a current bandwidth, a sending manner of the data packet, where the sending mode includes a split mode or a combination mode; and the second sending module is configured to send according to the determined manner Transmitting the data packet and the receiving time to the MAC layer;
所述接收时间获取与存储模块包括: 缓存单元, 设置为接收所述数据包和 所述接收时间后, 将所述 SN和所述接收时间缓存在对应的缓冲区。  The receiving time acquisition and storage module includes: a buffer unit configured to buffer the SN and the receiving time in a corresponding buffer after receiving the data packet and the receiving time.
9. 根据权利要求 8所述的设备, 其中, 所述第二发送模块包括: 拆分单元, 设置为当确定的发送方式为所述拆分 方式时, 将所述数据包拆分为多个 RLC数据包; 第一发送单元, 设置为将所述 多个 RLC数据包发送给所述 MAC层, 并将所述 SN和所述接收时间发送给所 述 MAC层; The device according to claim 8, wherein the second sending module comprises: a splitting unit, configured to split the data packet into multiple when the determined sending mode is the split mode An RLC data packet; a first sending unit, configured to send the multiple RLC data packets to the MAC layer, and send the SN and the receiving time to the MAC layer;
所述数据包发送模块包括:第一接收单元,设置为接收所述多个 RLC数据 包;第一封装单元,设置为将所述第一接收单元接收的所述多个 RLC数据包封 装为多个传输块 TB; 第一 TB发送单元, 设置为向对端发送所述第一封装单元 封装的所述多个 TB;  The data packet sending module includes: a first receiving unit configured to receive the plurality of RLC data packets; and a first encapsulating unit configured to encapsulate the plurality of RLC data packets received by the first receiving unit into multiple a transport block TB; a first TB transmitting unit, configured to send the plurality of TBs of the first encapsulation unit package to a peer end;
所述应答时间获取模块包括: 第一应答确定单元, 设置为接收到所述多个 TB的所有应答后, 确定所述数据包的应答接收完毕; 第一应答时间确定单元, 设置为将所述多个 TB中最后一个 TB的应答接收时间作为所述数据包的应答 时间。  The response time obtaining module includes: a first response determining unit configured to: after receiving all the responses of the plurality of TBs, determine that the response of the data packet is received; the first response time determining unit is configured to: The response reception time of the last TB of the plurality of TBs is taken as the response time of the data packet.
10. 根据权利要求 8所述的设备, 其中, 所述第二发送模块包括: 组合单元, 设置为当确定的发送方式为所述组合 方式时, 接收来自所述 PDCP层的多个数据包, 将所述多个数据包拼接成一个 RLC数据包; 第二发送单元, 将所述 RLC数据包发送给所述 MAC层, 并将所 述多个数据包中每个数据包的 PDCP层序列号和接收时间发送给所述 MAC层; 所述数据包发送模块包括: 第二接收单元, 设置为接收所述 RLC数据包; 第二封装单元,设置为将所述第二接收单元接收的所述 RLC数据包封装为一个 TB; 第二 TB发送单元, 设置为向对端发送所述第二封装单元封装的所述 TB; 所述应答时间获取模块包括: 第二应答确定单元, 设置为接收到所述 TB 的应答后, 根据所述 TB与所述 PDCP层序列号的对应关系确定所述数据包的 应答接收完毕; 第二应答时间确定单元, 设置为将所述应答的接收时间作为所 述数据包的应答时间。 The device according to claim 8, wherein the second sending module comprises: a combining unit, configured to receive a plurality of data packets from the PDCP layer when the determined sending mode is the combined mode, Splicing the plurality of data packets into one a second sending unit, sending the RLC data packet to the MAC layer, and transmitting a PDCP layer sequence number and a receiving time of each of the plurality of data packets to the MAC layer; The data packet sending module includes: a second receiving unit, configured to receive the RLC data packet; a second encapsulating unit, configured to encapsulate the RLC data packet received by the second receiving unit into one TB; a TB sending unit, configured to send the TB of the second encapsulating unit package to the opposite end; the response time obtaining module includes: a second response determining unit, configured to receive the response of the TB, according to the Corresponding relationship between the TB and the PDCP layer sequence number determines that the response of the data packet is received; and the second response time determining unit is configured to use the reception time of the response as the response time of the data packet.
PCT/CN2012/077866 2011-11-23 2012-06-29 Method and device for acquiring delay of data packet in second layer WO2013075493A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110375848.9A CN103138873B (en) 2011-11-23 2011-11-23 The acquisition methods and equipment of two Packet Delay of layer
CN201110375848.9 2011-11-23

Publications (1)

Publication Number Publication Date
WO2013075493A1 true WO2013075493A1 (en) 2013-05-30

Family

ID=48469073

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077866 WO2013075493A1 (en) 2011-11-23 2012-06-29 Method and device for acquiring delay of data packet in second layer

Country Status (2)

Country Link
CN (1) CN103138873B (en)
WO (1) WO2013075493A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108092840B (en) * 2016-11-23 2021-08-31 中国移动通信集团广东有限公司 Network rate segmentation processing method and device
CN106851686B (en) * 2017-01-22 2020-03-31 郑州信工智能化系统有限公司 Method and system for realizing wireless MAC protocol with time compensation data acquisition
CN110475256A (en) * 2018-05-09 2019-11-19 电信科学技术研究院有限公司 A kind of sending method and node device of two statistic of layer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705308A (en) * 2004-05-31 2005-12-07 华为技术有限公司 User plane data processing method
CN1716882A (en) * 2004-06-28 2006-01-04 华为技术有限公司 Method for delay detecting based on RFN time stamp
CN101662725A (en) * 2008-08-25 2010-03-03 大唐移动通信设备有限公司 Method, system and device for implementing synchronous transmission between RNCs
CN102098725A (en) * 2009-12-15 2011-06-15 中兴通讯股份有限公司 System and method for transmitting data between service gateway and relay terminals

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026410B (en) * 2006-02-22 2010-05-12 华为技术有限公司 Evolutionary configuration based base station and terminal, and its data transmitting and receiving method
US8351380B2 (en) * 2007-05-09 2013-01-08 Samsung Electronics Co., Ltd Method and apparatus for layer 2 ARQ for packets
CN101604995B (en) * 2008-06-11 2013-03-27 普天信息技术研究院有限公司 Method and system for realizing MBMS synchronization among RNC
CN101932004B (en) * 2009-06-25 2012-07-04 电信科学技术研究院 Data sending and processing method and equipment for data link layer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705308A (en) * 2004-05-31 2005-12-07 华为技术有限公司 User plane data processing method
CN1716882A (en) * 2004-06-28 2006-01-04 华为技术有限公司 Method for delay detecting based on RFN time stamp
CN101662725A (en) * 2008-08-25 2010-03-03 大唐移动通信设备有限公司 Method, system and device for implementing synchronous transmission between RNCs
CN102098725A (en) * 2009-12-15 2011-06-15 中兴通讯股份有限公司 System and method for transmitting data between service gateway and relay terminals

Also Published As

Publication number Publication date
CN103138873B (en) 2018-02-02
CN103138873A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
WO2018121294A1 (en) Packet transmission method, terminal, network device, and communication system
ES2718087T3 (en) Method and apparatus for discarding PDCP
US10355826B2 (en) Communication methods performed by secondary base station and master base station and associated base stations
US9832745B2 (en) Transport stream packets with time stamp generation by medium access control
US20170085492A1 (en) Packet data convergence protocol (pdcp) entity and method performed by the same
CN111435866B (en) Data transmission method and related device
JP2020520567A (en) Network node and method for packet data convergence protocol (PDCP) reordering
WO2011144141A1 (en) Method, system and network device for congestion control
WO2010006557A1 (en) A method and device for transmitting data
JP2016174366A (en) Systems and methods for network quality estimation, connectivity detection and load management
KR20090125169A (en) Retransmission request transmitting method, transmitting side apparatus and receiving side apparatus
CN107959555B (en) Data transmission method, device and storage medium based on LWAAP
CN112436924B (en) Data transmission method and electronic equipment
TW200926668A (en) A method of performing polling procedure in a wireless communication system
KR20090122986A (en) Packet communication method and receiving side device
CN108886713B (en) Data transmission method, data receiving equipment and data sending equipment
WO2019144802A1 (en) Data transmission method and related device
WO2017185353A1 (en) Method, device and system for transmitting transmission control protocol (tcp) packet
WO2012083762A1 (en) Data transmission method, apparatus, and system
WO2013075493A1 (en) Method and device for acquiring delay of data packet in second layer
BR112021011534A2 (en) FAULT AND DEVICE DETERMINATION METHOD
CN114978961A (en) Time delay measuring method, device, equipment and computer readable storage medium
JP7123194B2 (en) Data transmission method, transmission device, data reception method, and reception device
WO2018137218A1 (en) Data transmission method, data receiving device, and data sending device
US9544249B2 (en) Apparatus and method for aligning order of received packets

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12852041

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12852041

Country of ref document: EP

Kind code of ref document: A1