WO2019014918A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2019014918A1
WO2019014918A1 PCT/CN2017/093845 CN2017093845W WO2019014918A1 WO 2019014918 A1 WO2019014918 A1 WO 2019014918A1 CN 2017093845 W CN2017093845 W CN 2017093845W WO 2019014918 A1 WO2019014918 A1 WO 2019014918A1
Authority
WO
WIPO (PCT)
Prior art keywords
pdu
sdu
segment
timer
rlc
Prior art date
Application number
PCT/CN2017/093845
Other languages
French (fr)
Chinese (zh)
Inventor
唐海
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201780049109.6A priority Critical patent/CN109565377A/en
Priority to PCT/CN2017/093845 priority patent/WO2019014918A1/en
Publication of WO2019014918A1 publication Critical patent/WO2019014918A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems

Definitions

  • Embodiments of the present application relate to the field of communications, and, more particularly, to a method and apparatus for transmitting data.
  • Radio Link Control RLC
  • SDU service data unit
  • PDUs protocol data units
  • a segment of a different segment carrying the different segments of the same SDU has the same sequence number (SN). Therefore, the SN can know which PDUs belong to the same SDU.
  • the embodiment of the present application provides a method and a device for transmitting data, which can implement data transmission of an RLC layer.
  • a method of transmitting data comprising:
  • the terminal device receives the first protocol data unit PDU, the sequence number SN of the first PDU is the first SN, the SN of the PDU in the radio link control RLC buffer is the second SN, and the PDU in the RLC buffer is the first a segmentation PDU of the service data unit SDU;
  • the terminal device If the first PDU is not continuous with the PDU in the RLC cache, the terminal device starts the first timer, and the first timer corresponds to the first SDU;
  • the terminal device may receive the first PDU, and if the PDU in the first PDU and the RLC cache is discontinuous, the RLC is enabled.
  • the reception of the segmentation PDU for each SDU can be achieved by assigning a timer to each SDU.
  • the method further includes:
  • the determining that the first PDU is discontinuous with the PDU in the RLC cache includes:
  • first SN is equal to the second SN, if there is another unseen PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, Determining that the first PDU and the PDU in the RLC cache are discontinuous; or
  • the terminal device determines that the first PDU is not contiguous with the PDU in the RLC cache.
  • the PDUs in the first PDU and the RLC cache may belong to the same SDU, or may not belong to the same SDU.
  • the first PDU and the PDU in the RLC cache belong to the same SDU, if there are other segment PDUs of the first SDU that are not received before the first PDU, it is determined that the PDU is currently received.
  • first PDU and the PDU in the RLC buffer are not consecutive; or if the first PDU and the PDU in the RLC cache do not belong to the same SDU, if the first PDU is received, The other segment PDUs of the first SDU are not received, and the timer corresponding to the first SDU is not yet enabled, that is, the PDUs in the RLC buffer are continuously received, so the timing corresponding to the first SDU is not started. That is, at least the last segment of the first SDU is not received, in which case the terminal device may consider that the PDU in the first PDU and the RLC cache is discontinuous.
  • the method further includes:
  • the terminal device stops the first timer.
  • the method further includes:
  • the terminal device reassembles all the received segment PDUs of the first SDU into the first SDU, and delivers the same to the upper layer.
  • the terminal device may remove the received segmentation PDU of the first SDU, remove the RLC header, reassemble the first SDU, and deliver it to an upper layer, for example, a PDCP layer.
  • an upper layer for example, a PDCP layer.
  • the method further includes:
  • the terminal device discards the received segment PDUs belonging to the first SDU. .
  • the terminal device may discard the segment PDU of the received first SDU, thereby facilitating avoiding the occupation of the RLC cache by the part of the segmentation PDU.
  • the RLC cache includes a second PDU, where the second PDU is a first segment of the first SDU, an intermediate segment or The last segment.
  • intermediate segment of the first SDU may include at least one segment, or the first SDU may not include the intermediate segment, which is not limited in this embodiment of the present application.
  • a packet header of the second PDU includes a first indication domain, where the first indicator domain is used to indicate that the second PDU is in the following case One:
  • a first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
  • the packet header of the second PDU further includes And a second indication field, where the second indication field is used to indicate a starting position of the second PDU in the first SDU.
  • an apparatus for transmitting data for performing the method of any of the above first aspect or any of the possible implementations of the first aspect comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
  • an apparatus for transmitting data comprising: a memory, a processor, an input interface, and an output interface.
  • the memory, the processor, the input interface, and the output interface are connected by a bus system.
  • the memory is for storing instructions for executing the memory stored instructions for performing the method of any of the first aspect or the first aspect of the first aspect.
  • a computer storage medium for storing computer software instructions for performing the method of any of the above first aspect or any of the possible implementations of the first aspect, comprising program.
  • a computer program product comprising instructions, when executed on a computer, causes the computer to perform the method of any of the first aspect or the optional implementation of the first aspect.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for transmitting data according to an embodiment of the present application.
  • FIG. 3 shows a schematic diagram of an example of determining that a newly received PDU and a PDU in the RLC buffer are discontinuous.
  • FIG. 4 shows a schematic diagram of another example of determining that a newly received PDU and a PDU in the RLC cache are discontinuous.
  • FIG. 5 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application.
  • FIG. 6 shows a schematic block diagram of an apparatus for transmitting data according to another embodiment of the present application.
  • GSM Global System of Mobile communication
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • GPRS General Packet Radio Service
  • LTE Long Term Evolution
  • FDD Frequency Division Duplex
  • TDD Time Division Duplex
  • UPD Universal Mobile Telecommunication System
  • WiMAX Worldwide Interoperability for Microwave Access
  • FIG. 1 shows a wireless communication system 100 to which an embodiment of the present application is applied.
  • the wireless communication system 100 can include a network device 110.
  • Network device 100 can be a device that communicates with a terminal device.
  • the internet Device 100 may provide communication coverage for a particular geographic area and may communicate with terminal devices (e.g., UEs) located within the coverage area.
  • the network device 100 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or may be a base station (NodeB, NB) in a WCDMA system, or may be an evolved base station in an LTE system.
  • BTS Base Transceiver Station
  • NodeB NodeB
  • the network device can be a relay station, an access point, an in-vehicle device, a wearable device, A network side device in a future 5G network or a network device in a publicly available Public Land Mobile Network (PLMN) in the future.
  • PLMN Public Land Mobile Network
  • the wireless communication system 100 also includes at least one terminal device 120 located within the coverage of the network device 110.
  • Terminal device 120 can be mobile or fixed.
  • the terminal device 120 may refer to an access terminal, a user equipment (User Equipment, UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, and a wireless communication.
  • the access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), with wireless communication.
  • the 5G system or network may also be referred to as an NR system or a network.
  • the Radio Link Control (RLC) layer is located between a Packet Data Convergence Protocol (PDCP) layer and a Media Access Control (MAC) layer.
  • the RLC layer communicates with the PDCP layer through a Service Access Point (SAP) and communicates with the MAC layer through a logical channel.
  • SAP Service Access Point
  • the data received by the RLC entity from the PDCP layer, or the data sent to the PDCP layer is referred to as an RLC SDU or PDCP PDU.
  • the data received by the RLC entity from the MAC layer, or the data sent to the MAC layer is referred to as an RLC PDU or a MAC SDU.
  • the RLC PDUs received by the RLC entity of the terminal device in the reordering window are out of order, need to be reordered, and then submitted to the PDCP layer, and the RLC PDUs arrive out of order. It will be saved in the receive buffer until the previous RLC PDU has been successfully received and delivered to the PDCP layer.
  • the RLC layer can support the SDU function, but the RLC SDU does not support the sequential delivery function. Therefore, a method for transmitting data is needed, which can implement data delivery from the RLC layer to the upper layer. .
  • FIG. 2 is a schematic flowchart of a method 200 for transmitting data according to an embodiment of the present application.
  • the method 200 may be performed by a terminal device in the wireless communication system shown in FIG. 1. As shown in FIG. 2, the method 200 includes :
  • the terminal device receives the first protocol data unit PDU, the sequence number SN of the first PDU is the first SN, the SN of the PDU in the radio link control RLC buffer is the second SN, and the PDU in the RLC buffer is A segmentation PDU of the first service data unit SDU.
  • the RLC layer may be an Unacknowledged Mode (UM) mode or an Acknowledged Mode (AM) mode.
  • UM Unacknowledged Mode
  • AM Acknowledged Mode
  • the RLC receiver does not perform the received RLC PDU.
  • the feedback confirms that in the AM mode, the RLC receiver will perform feedback confirmation on the received RLC PDU.
  • the RLC PDU received by the terminal device may also be referred to as a UMD PDU, or in the AM mode, the RLC PDU received by the terminal device may be referred to as an AMD PDU, and the MAC address received by the terminal device is not differentiated in this embodiment.
  • the data transmitted by the layer is collectively referred to as a PDU.
  • the terminal device receives the first PDU, and the sequence number (SN) of the first PDU is the first SN.
  • the RLC cache includes at least one PDU, and the at least one PDU.
  • the sequence number is a second SN
  • the at least one PDU is a segment PDU of the first SDU, that is, the first SDU can be divided into multiple segments, and each segment can be formed into a PDU by adding an RLC packet header, that is, It is said that one SDU can be divided into multiple segment PDU transmissions, each segment PDU having the same SN.
  • the RLC cache includes a second PDU, where the second PDU is a first segment, an intermediate segment, or a last segment of the first SDU.
  • intermediate segment of the first SDU may include at least one segment, or the first SDU may not include the intermediate segment, which is not limited in this embodiment of the present application.
  • the packet header of the second PDU includes a first indication domain, where the first indication domain is used to indicate that the second PDU is one of the following conditions:
  • the last segment of the first SUD is included.
  • the packet header of the second PDU further includes a second indication domain, where the second indication domain is used to indicate Determining a starting position of the second PDU in the first SDU.
  • the second indication field may be represented by a segment offset SO, and the SO is used to indicate a starting position of the second PDU in the first SDU, or the start of the second PDU.
  • the terminal device If the first PDU is not continuous with the PDU in the RLC cache, the terminal device starts a first timer, where the first timer corresponds to the first SDU.
  • the discontinuity of the at least one PDU in the first PDU and the RLC cache may be understood as a segment PDU of the first SDU that is not received before the first PDU, and therefore, the foregoing may be started.
  • a first timer corresponding to an SDU receives another segment PDU of the first SDU.
  • the method 200 further includes:
  • the terminal device first determines that the first PDU is discontinuous with the PDU in the RLC cache, that is, determines that the first PDU has a fragment PDU of the first SDU that is not received before, and then opens the first PDU.
  • a first timer corresponding to an SDU receives another segment PDU of the first SDU if the first timer does not time out.
  • the determining that the first PDU is discontinuous with the PDU in the RLC cache includes:
  • first SN is equal to the second SN, if there is another unseen PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, Determining that the first PDU and the PDU in the RLC cache are discontinuous; or
  • the terminal device determines that the first PDU is not contiguous with the PDU in the RLC cache.
  • the terminal device may determine the first PDU and the RLC cache.
  • the PDUs in the PDU are not continuous.
  • the terminal device does not receive Going to all the segment PDUs of the first SDU, and the first timer corresponding to the first SDU is not activated, that is, at least one PDU in the RLC buffer is continuously received, so the triggering is not triggered.
  • the first timer but at this time, the segment PDUs of other SDUs are received after all the segment PDUs of the first SDU have not been received.
  • At least one PDU in the RLC cache includes a first segment of the first SDU, or a first segment of the first SDU and at least one intermediate segment, in other words, not received
  • the segmentation PDU may include the last segment of the first SDU, or the last segment of the first SDU and at least one intermediate segment, ie, the unreceived segment PDU includes at least the last segment.
  • both PDU1 and PDU2 are segment PDUs of SDU1
  • PDU1 is the first segment of SDU1
  • PDU2 is the intermediate segment of SDU1
  • PDU1 and PDU2 are Continuously, if both PDU1 and PDU2 are 100 bytes in length, the terminal device may determine that a 300-byte PDU is not received between PDU2 and PDU3. At this time, the terminal device may be turned on. The timer corresponding to the SDU1 receives the segmentation PDU between the PDU2 and the PDU3.
  • PDU1, PDU2 and PDU4 are all segmentation PDUs of SDU1, and PDU1 is the first segment of SDU1, and PDU2 and PDU4 are intermediate segments of the SDU1, PDU1, PDU2, and PDU4 are contiguous. Therefore, the timer corresponding to SDU1 is not started, but the terminal device has not received the last segment of SDU1, that is, the segment PDU of SDU1 has not been received yet.
  • the terminal device may start a timer corresponding to the SDU1, and receive other segmentation PDUs of the SDU1 that have not been received, that is, receive the segmentation PDU after the PDU4.
  • the method 200 further includes:
  • the terminal device stops the first timer.
  • method 200 may further include:
  • the terminal device reassembles all the received segment PDUs of the first SDU into the first SDU, and delivers the same to the upper layer.
  • the terminal device may remove the received fragmentation PDU of the first SDU, remove the RLC header, reassemble the first SDU, and deliver it to an upper layer, for example, a PDCP layer.
  • the method 200 further includes:
  • the terminal device discards the received segment PDUs belonging to the first SDU. .
  • the terminal device may discard the segment PDU of the first SDU that has been received, thereby facilitating avoiding the occupation of the RLC cache by the part of the segmentation PDU.
  • the terminal device may reset the first timer, that is, set the duration of the first timer to a specific value, but does not start the first timer, so that the next time the first timer needs to be received
  • the first timer is started when another segment PDU of an SDU is used.
  • each SDU corresponds to a timer, or the same PDU of the SN corresponds to a timer, and the timer is used to receive the segment PDU of the corresponding SDU, and each SDU corresponds to The duration of the timers can be the same or different.
  • the timer may also be used to receive segment PDUs of other SDUs, but at the same time, one timer can only be used to receive one SDU. Segment PDU.
  • the terminal device may receive the first PDU, and in the case that the PDU in the first PDU and the RLC cache is discontinuous, the first PDU to which the PDU in the RLC buffer belongs is enabled.
  • the timer corresponding to the SDU in the case that the first timer is not timed out, receives the other segment PDUs of the first PDU, that is, the method for transmitting data in the embodiment of the present application, by assigning one to each SDU. A timer, thereby enabling reception of a segmentation PDU for each SDU.
  • the embodiment of the method of the present application is described in detail below with reference to FIG. 2 to FIG. 4 .
  • the device embodiment of the present application is described in detail below with reference to FIG. 5 to FIG. 6 . It should be understood that the device embodiment and the method embodiment correspond to each other. The description of the method can be referred to the method embodiment.
  • FIG. 5 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application.
  • the device 500 of Figure 5 includes:
  • the communication module 510 is configured to receive the first protocol data unit PDU, where the sequence number SN of the first PDU is the first SN, and the SN of the PDU in the radio link control RLC buffer is the second SN, where the RLC cache
  • the PDU is a segmentation PDU of the first service data unit SDU;
  • the processing module 520 is configured to: when the first PDU and the PDU in the RLC cache are not consecutive, start a first timer, where the first timer corresponds to the first SDU;
  • the communication module 510 is further configured to receive other segment PDUs belonging to the first SDU if the first timer does not time out.
  • the device 500 further includes:
  • a determining module configured to determine that the first PDU is discontinuous with a PDU in an RLC cache.
  • the determining module is specifically configured to:
  • first SN is equal to the second SN, if there is another unseen segment PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, determining The first PDU and the PDU in the RLC cache are discontinuous; or
  • the device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, determining the first A PDU is not contiguous with a PDU in the RLC cache.
  • the processing module 520 is further configured to:
  • the first timer does not time out, if the device receives all the segment PDUs of the first SDU, the first timer is stopped.
  • the processing module 520 is further configured to:
  • All received segment PDUs of the first SDU are reassembled into the first SDU and submitted to the upper layer.
  • the processing module 520 is further configured to:
  • the device If the first timer expires, if the device does not receive all the segment PDUs of the first SDU, discard the received segment PDUs belonging to the first SDU.
  • the RLC cache includes a second PDU, where the second PDU is a first segment, an intermediate segment or a last segment of the first SDU.
  • the packet header of the second PDU includes a first indication domain, where the first indication domain is used to indicate that the second PDU is one of:
  • a first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
  • the packet header of the second PDU further includes a second indication field, where the second The indication field is used to indicate a starting position of the second PDU in the first SDU.
  • the device 500 may correspond to (for example, may be configured or be itself) the terminal device described in the foregoing method 200, and each module or unit in the device 500 is used to execute the terminal device in the foregoing method 200, respectively.
  • Each of the operations or processes performed is omitted here for the sake of avoiding redundancy.
  • the embodiment of the present application further provides a device 600 for transmitting data, which may be the device 500 in FIG. 5, which can be used to execute a terminal device corresponding to the method 200 in FIG. content.
  • the device 600 includes an input interface 610, an output interface 620, a processor 630, and a memory 640.
  • the input interface 610, the output interface 620, the processor 630, and the memory 640 can be connected by a bus system.
  • the memory 640 is used to store programs, instructions or code.
  • the processor 630 is configured to execute a program, an instruction or a code in the memory 640 to control the input interface 610 to receive a signal, control the output interface 620 to send a signal, and complete the operations in the foregoing method embodiments.
  • the processor 630 may be a central processing unit (“CPU"), and the processor 630 may also be other General purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 640 can include read only memory and random access memory and provides instructions and data to the processor 630. A portion of the memory 640 can also include a non-volatile random access memory. For example, the memory 640 can also store information of the device type.
  • each content of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 630 or an instruction in a form of software.
  • the content of the method disclosed in the embodiments of the present application may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 640, and the processor 630 reads the information in the memory 640 and completes the contents of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the processing module 520 and the determining module included in the device 500 of FIG. 5 can be implemented by the processor 630 of FIG. 6.
  • the communication module 510 included in the device 500 of FIG. 5 can use the input interface 610 of FIG. And the output interface 620 is implemented.
  • the embodiment of the present application further provides a computer readable storage medium storing one or more programs, the one or more programs including instructions, when the portable electronic device is included in a plurality of applications When executed, the portable electronic device can be caused to perform the method of the embodiment shown in FIG. 2.
  • the embodiment of the present application also proposes a computer program comprising instructions which, when executed by a computer, cause the computer to execute the corresponding flow of the method of the embodiment shown in FIG. 2.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in embodiments of the present application are a data transmission method and device enabling data transmission in a radio link control (RLC) layer. The method comprises: a terminal device receiving a first protocol data unit (PDU), wherein the sequence number (SN) of the first PDU is a first SN, the SN of a PDU in a radio link control (RLC) buffer is a second SN, the PDU in the RLC buffer is a PDU segment of a first service data unit (SDU); if the first PDU and the PDU in the RLC buffer are not continuous, the terminal device starting a first timer, the first timer being corresponding to the first SDU; and receiving other PDU segments belonging to the first SDU before the first timer runs out.

Description

传输数据的方法和设备Method and device for transmitting data 技术领域Technical field
本申请实施例涉及通信领域,并且更具体地,涉及一种传输数据的方法和设备。Embodiments of the present application relate to the field of communications, and, more particularly, to a method and apparatus for transmitting data.
背景技术Background technique
在新无线(New Radio,NR)系统讨论中,针对无线链路控制(Radio Link Control,RLC)的做出如下改进:In the discussion of the New Radio (NR) system, the following improvements have been made to Radio Link Control (RLC):
1、确定保留RLC层的切割(segmentation)业务数据单元(Service Data Unit,SDU)功能,即一个SDU可以对应一个或多个协议数据单元(Protocol Data Unit,PDU),即每个PDU可以为SDU的一个分段,携带同一个SDU的不同分段的不同PDU具有相同的序列号(Sequence Number,SN),因此,通过SN可以获知哪些PDU是属于同一个SDU的。1. Determining the service data unit (SDU) function of the segmentation of the RLC layer, that is, one SDU may correspond to one or more protocol data units (PDUs), that is, each PDU may be an SDU. A segment of a different segment carrying the different segments of the same SDU has the same sequence number (SN). Therefore, the SN can know which PDUs belong to the same SDU.
2、确定RLC层不再支持RLC SDU的按序递交功能。2. It is determined that the RLC layer no longer supports the sequential delivery function of the RLC SDU.
因此,对于终端设备而言,如何实现RLC层的数据传输是一项亟需解决的问题。Therefore, how to implement data transmission at the RLC layer is an urgent problem for the terminal device.
发明内容Summary of the invention
本申请实施例提供了一种传输数据的方法和设备,能够实现RLC层的数据传输。The embodiment of the present application provides a method and a device for transmitting data, which can implement data transmission of an RLC layer.
第一方面,提供了一种传输数据的方法,包括:In a first aspect, a method of transmitting data is provided, comprising:
终端设备接收第一协议数据单元PDU,所述第一PDU的序列号SN为第一SN,无线链路控制RLC缓存中的PDU的SN为第二SN,所述RLC缓存中的PDU为第一业务数据单元SDU的分段PDU;The terminal device receives the first protocol data unit PDU, the sequence number SN of the first PDU is the first SN, the SN of the PDU in the radio link control RLC buffer is the second SN, and the PDU in the RLC buffer is the first a segmentation PDU of the service data unit SDU;
若所述第一PDU与RLC缓存中的PDU不连续,所述终端设备开启第一定时器,所述第一定时器对应所述第一SDU;If the first PDU is not continuous with the PDU in the RLC cache, the terminal device starts the first timer, and the first timer corresponds to the first SDU;
在所述第一定时器未超时的情况下,接收属于所述第一SDU的其他分段PDU。In the case that the first timer has not timed out, other segment PDUs belonging to the first SDU are received.
因此,本申请实施例的传输数据的方法,所述终端设备可以接收第一PDU,在所述第一PDU和RLC缓存中的PDU不连续的情况下,开启RLC 缓存中的PDU所属的第一SDU对应的定时器,在所述第一定时器未超时的情况下,接收所述第一PDU的其他分段PDU,即本申请实施例的传输数据的方法,可以通过给每个SDU分配一个定时器,从而实现对每个SDU的分段PDU的接收。Therefore, in the method for transmitting data in the embodiment of the present application, the terminal device may receive the first PDU, and if the PDU in the first PDU and the RLC cache is discontinuous, the RLC is enabled. The timer corresponding to the first SDU to which the PDU in the cache belongs, in the case that the first timer is not timed out, the other segment PDU of the first PDU is received, that is, the method for transmitting data in the embodiment of the present application, The reception of the segmentation PDU for each SDU can be achieved by assigning a timer to each SDU.
结合第一方面,在第一方面的一种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a possible implementation manner of the first aspect, the method further includes:
确定所述第一PDU与RLC缓存中的PDU不连续。Determining that the first PDU is not continuous with the PDU in the RLC cache.
结合第一方面,在第一方面的一种可能的实现方式中,所述确定所述第一PDU与RLC缓存中的PDU不连续,包括:With reference to the first aspect, in a possible implementation manner of the first aspect, the determining that the first PDU is discontinuous with the PDU in the RLC cache includes:
在所述第一SN等于所述第二SN的情况下,若所述第一PDU和所述RLC缓存中的PDU之间存在未接收到的属于所述第一SDU的其他分段PDU,所述终端设备确定所述第一PDU和所述RLC缓存中的PDU不连续;或If the first SN is equal to the second SN, if there is another unseen PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, Determining that the first PDU and the PDU in the RLC cache are discontinuous; or
在所述第一SN不等于所述第二SN的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,并且所述第一定时器未被启动,所述终端设备确定所述第一PDU与所述RLC缓存中的PDU不连续。If the first SN is not equal to the second SN, if the terminal device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, the terminal The device determines that the first PDU is not contiguous with the PDU in the RLC cache.
即所述第一PDU和所述RLC缓存中的PDU可以属于同一个SDU,也可以不属于同一个SDU。当所述第一PDU和所述RLC缓存中的PDU属于同一个SDU时,若在所述第一PDU之前还有未接收到的所述第一SDU的其他分段PDU,则确定当前接收到的第一PDU和所述RLC缓存中的PDU不连续;或者在所述第一PDU和所述RLC缓存中的PDU不属于同一个SDU的情况下,若在接收到所述第一PDU时,所述第一SDU的其他分段PDU未接收完毕,并且所述第一SDU对应的定时器还未开启,即RLC缓存中的PDU是连续接收的,所以未启动所述第一SDU对应的定时器,即至少未接收到所述第一SDU的最后一个分段,此情况下,所述终端设备可以认为所述第一PDU和所述RLC缓存中的PDU不连续。That is, the PDUs in the first PDU and the RLC cache may belong to the same SDU, or may not belong to the same SDU. When the first PDU and the PDU in the RLC cache belong to the same SDU, if there are other segment PDUs of the first SDU that are not received before the first PDU, it is determined that the PDU is currently received. If the first PDU and the PDU in the RLC buffer are not consecutive; or if the first PDU and the PDU in the RLC cache do not belong to the same SDU, if the first PDU is received, The other segment PDUs of the first SDU are not received, and the timer corresponding to the first SDU is not yet enabled, that is, the PDUs in the RLC buffer are continuously received, so the timing corresponding to the first SDU is not started. That is, at least the last segment of the first SDU is not received, in which case the terminal device may consider that the PDU in the first PDU and the RLC cache is discontinuous.
结合第一方面,在第一方面的一种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a possible implementation manner of the first aspect, the method further includes:
在所述第一定时器未超时的情况下,若所述终端设备接收到所述第一SDU的全部分段PDU,所述终端设备停止所述第一定时器。If the first timer does not time out, if the terminal device receives all the segment PDUs of the first SDU, the terminal device stops the first timer.
结合第一方面,在第一方面的一种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a possible implementation manner of the first aspect, the method further includes:
所述终端设备将接收到的所述第一SDU的全部分段PDU重组为所述第一SDU,并递交到上层。 The terminal device reassembles all the received segment PDUs of the first SDU into the first SDU, and delivers the same to the upper layer.
例如,所述终端设备可以将接收的所述第一SDU的分段PDU去除RLC头(header),重组为所述第一SDU,并将其递交至上层,例如,PDCP层。For example, the terminal device may remove the received segmentation PDU of the first SDU, remove the RLC header, reassemble the first SDU, and deliver it to an upper layer, for example, a PDCP layer.
结合第一方面,在第一方面的一种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a possible implementation manner of the first aspect, the method further includes:
在所述第一定时器超时的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,所述终端设备丢弃已接收到的属于所述第一SDU的分段PDU。If the first timer expires, if the terminal device does not receive all the segment PDUs of the first SDU, the terminal device discards the received segment PDUs belonging to the first SDU. .
也就是说,在所述第一定时器超时的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,可以认为已接收到的分段PDU不能重组为一个完整的SDU,因此,所述终端设备可以丢弃已接收到的所述第一SDU的分段PDU,从而有利于避免这部分分段PDU对RLC缓存的占用。That is, if the first timer expires, if the terminal device does not receive all the segment PDUs of the first SDU, it may be considered that the received segment PDU cannot be reorganized into a complete The SDU, therefore, the terminal device may discard the segment PDU of the received first SDU, thereby facilitating avoiding the occupation of the RLC cache by the part of the segmentation PDU.
结合第一方面,在第一方面的一种可能的实现方式中,所述RLC缓存中包括第二PDU,所述第二PDU为所述第一SDU的第一个分段,中间分段或最后一个分段。With reference to the first aspect, in a possible implementation manner of the first aspect, the RLC cache includes a second PDU, where the second PDU is a first segment of the first SDU, an intermediate segment or The last segment.
需要说明的是,所述第一SDU的中间分段可以包括至少一个分段,或所述第一SDU也可以不包括中间分段,本申请实施例对此不作限定。It should be noted that the intermediate segment of the first SDU may include at least one segment, or the first SDU may not include the intermediate segment, which is not limited in this embodiment of the present application.
结合第一方面,在第一方面的一种可能的实现方式中,所述第二PDU的包头包括第一指示域,所述第一指示域用于指示所述第二PDU为以下情况中的一种:With reference to the first aspect, in a possible implementation manner of the first aspect, a packet header of the second PDU includes a first indication domain, where the first indicator domain is used to indicate that the second PDU is in the following case One:
包括所述第一SDU的第一个分段,包括所述第一SDU的中间分段或包括所述第一SUD的最后一个分段。A first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
结合第一方面,在第一方面的一种可能的实现方式中,若所述第二PDU为所述第一SDU的中间分段或最后一个分段,所述第二PDU的包头还包括第二指示域,所述第二指示域用于指示所述第二PDU在所述第一SDU中的起始位置。With reference to the first aspect, in a possible implementation manner of the first aspect, if the second PDU is an intermediate segment or a last segment of the first SDU, the packet header of the second PDU further includes And a second indication field, where the second indication field is used to indicate a starting position of the second PDU in the first SDU.
第二方面,提供了一种传输数据的设备,用于执行上述第一方面或第一方面的任意可能的实现方式中的方法。具体地,该设备包括用于执行上述第一方面或第一方面的任一可能的实现方式中的方法的单元。In a second aspect, there is provided an apparatus for transmitting data for performing the method of any of the above first aspect or any of the possible implementations of the first aspect. In particular, the apparatus comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
第三方面,提供了一种传输数据的设备,该设备包括:存储器、处理器、输入接口和输出接口。其中,存储器、处理器、输入接口和输出接口通过总线系统相连。该存储器用于存储指令,该处理器用于执行该存储器存储的指令,用于执行上述第一方面或第一方面的任一可能的实现方式中的方法。 In a third aspect, an apparatus for transmitting data is provided, the apparatus comprising: a memory, a processor, an input interface, and an output interface. The memory, the processor, the input interface, and the output interface are connected by a bus system. The memory is for storing instructions for executing the memory stored instructions for performing the method of any of the first aspect or the first aspect of the first aspect.
第四方面,提供了一种计算机存储介质,用于储存为执行上述第一方面或第一方面的任意可能的实现方式中的方法所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, a computer storage medium is provided for storing computer software instructions for performing the method of any of the above first aspect or any of the possible implementations of the first aspect, comprising program.
第五方面,提供了一种包括指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任一可选的实现方式中的方法。In a fifth aspect, a computer program product comprising instructions, when executed on a computer, causes the computer to perform the method of any of the first aspect or the optional implementation of the first aspect.
附图说明DRAWINGS
图1示出了本申请实施例一个应用场景的示意图。FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application.
图2示出了本申请实施例的传输数据的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for transmitting data according to an embodiment of the present application.
图3示出了确定新接收的PDU和RLC缓存中的PDU不连续的一例的示意图。FIG. 3 shows a schematic diagram of an example of determining that a newly received PDU and a PDU in the RLC buffer are discontinuous.
图4示出了确定新接收的PDU和RLC缓存中的PDU不连续的另一例的示意图。FIG. 4 shows a schematic diagram of another example of determining that a newly received PDU and a PDU in the RLC cache are discontinuous.
图5示出了本申请实施例的传输数据的设备的示意性框图。FIG. 5 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application.
图6示出了本申请另一实施例的传输数据的设备的示意性框图。FIG. 6 shows a schematic block diagram of an apparatus for transmitting data according to another embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通讯(Global System of Mobile communication,简称为“GSM”)系统、码分多址(Code Division Multiple Access,简称为“CDMA”)系统、宽带码分多址(Wideband Code Division Multiple Access,简称为“WCDMA”)系统、通用分组无线业务(General Packet Radio Service,简称为“GPRS”)、长期演进(Long Term Evolution,简称为“LTE”)系统、LTE频分双工(Frequency Division Duplex,简称为“FDD”)系统、LTE时分双工(Time Division Duplex,简称为“TDD”)、通用移动通信系统(Universal Mobile Telecommunication System,简称为“UMTS”)、全球互联微波接入(Worldwide Interoperability for Microwave Access,简称为“WiMAX”)通信系统或未来的5G系统等。The technical solution of the embodiment of the present application can be applied to various communication systems, for example, Global System of Mobile communication ("GSM") system, Code Division Multiple Access (CDMA). System, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service ("GPRS"), Long Term Evolution (Long Term Evolution, referred to as "Long Term Evolution" LTE") system, LTE Frequency Division Duplex ("FDD") system, LTE Time Division Duplex ("TDD"), Universal Mobile Telecommunication System (Universal Mobile Telecommunication System) It is a "UMTS"), a Worldwide Interoperability for Microwave Access (WiMAX) communication system, or a future 5G system.
图1示出了本申请实施例应用的无线通信系统100。该无线通信系统100可以包括网络设备110。网络设备100可以是与终端设备通信的设备。网络 设备100可以为特定的地理区域提供通信覆盖,并且可以与位于该覆盖区域内的终端设备(例如UE)进行通信。可选地,该网络设备100可以是GSM系统或CDMA系统中的基站(Base Transceiver Station,BTS),也可以是WCDMA系统中的基站(NodeB,NB),还可以是LTE系统中的演进型基站(Evolutional Node B,eNB或eNodeB),或者是云无线接入网络(Cloud Radio Access Network,CRAN)中的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备、未来5G网络中的网络侧设备或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)中的网络设备等。FIG. 1 shows a wireless communication system 100 to which an embodiment of the present application is applied. The wireless communication system 100 can include a network device 110. Network device 100 can be a device that communicates with a terminal device. The internet Device 100 may provide communication coverage for a particular geographic area and may communicate with terminal devices (e.g., UEs) located within the coverage area. Optionally, the network device 100 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or may be a base station (NodeB, NB) in a WCDMA system, or may be an evolved base station in an LTE system. (Evolutional Node B, eNB or eNodeB), or a wireless controller in a Cloud Radio Access Network (CRAN), or the network device can be a relay station, an access point, an in-vehicle device, a wearable device, A network side device in a future 5G network or a network device in a publicly available Public Land Mobile Network (PLMN) in the future.
该无线通信系统100还包括位于网络设备110覆盖范围内的至少一个终端设备120。终端设备120可以是移动的或固定的。可选地,终端设备120可以指接入终端、用户设备(User Equipment,UE)、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。接入终端可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备、未来5G网络中的终端设备或者未来演进的PLMN中的终端设备等。The wireless communication system 100 also includes at least one terminal device 120 located within the coverage of the network device 110. Terminal device 120 can be mobile or fixed. Optionally, the terminal device 120 may refer to an access terminal, a user equipment (User Equipment, UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, and a wireless communication. Device, user agent, or user device. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), with wireless communication. Functional handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in future 5G networks, or terminal devices in future evolved PLMNs, and the like.
可选地,在本申请实施例中,5G系统或网络还可以称为NR系统或网络。Optionally, in the embodiment of the present application, the 5G system or network may also be referred to as an NR system or a network.
以下,对跟本申请实施例相关的背景知识做个简单介绍。In the following, a brief introduction to the background knowledge related to the embodiments of the present application will be given.
无线链路控制(Radio Link Control,RLC)层位于分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层和媒体接入控制(Media Access Control,MAC)层之间。RLC层通过服务访问点(Service Access Point,SAP)与PDCP层进行通信,并通过逻辑信道与MAC层进行通信。每个UE的每个逻辑信道都有一个RLC实体。RLC实体从PDCP层接收到的数据,或发往PDCP层的数据被称作RLC SDU或PDCP PDU。RLC实体从MAC层接收到的数据,或发往MAC层的数据被称作RLC PDU或MAC SDU。The Radio Link Control (RLC) layer is located between a Packet Data Convergence Protocol (PDCP) layer and a Media Access Control (MAC) layer. The RLC layer communicates with the PDCP layer through a Service Access Point (SAP) and communicates with the MAC layer through a logical channel. There is one RLC entity per logical channel per UE. The data received by the RLC entity from the PDCP layer, or the data sent to the PDCP layer is referred to as an RLC SDU or PDCP PDU. The data received by the RLC entity from the MAC layer, or the data sent to the MAC layer is referred to as an RLC PDU or a MAC SDU.
现有技术中,终端设备的RLC实体在重排序窗口接收到的RLC PDU是乱序的,需要先进行重排序,然后再递交至PDCP层,乱序到达的RLC PDU 会先保存在接收缓存(buffer)中,直到之前的RLC PDU都已成功接收并递送给PDCP层。In the prior art, the RLC PDUs received by the RLC entity of the terminal device in the reordering window are out of order, need to be reordered, and then submitted to the PDCP layer, and the RLC PDUs arrive out of order. It will be saved in the receive buffer until the previous RLC PDU has been successfully received and delivered to the PDCP layer.
由前文描述可知,在NR系统中,RLC层可以支持切割SDU功能,但不再支持RLC SDU的按序递交功能,因此,需要一种传输数据的方法,能够实现数据从RLC层到高层的递交。As can be seen from the foregoing description, in the NR system, the RLC layer can support the SDU function, but the RLC SDU does not support the sequential delivery function. Therefore, a method for transmitting data is needed, which can implement data delivery from the RLC layer to the upper layer. .
图2是本申请实施例提出的传输数据的方法200的示意性流程图,所述方法200可以由图1所示的无线通信系统中的终端设备执行,如图2所示,该方法200包括:2 is a schematic flowchart of a method 200 for transmitting data according to an embodiment of the present application. The method 200 may be performed by a terminal device in the wireless communication system shown in FIG. 1. As shown in FIG. 2, the method 200 includes :
S210,终端设备接收第一协议数据单元PDU,所述第一PDU的序列号SN为第一SN,无线链路控制RLC缓存中的PDU的SN为第二SN,所述RLC缓存中的PDU为第一业务数据单元SDU的分段PDU。S210, the terminal device receives the first protocol data unit PDU, the sequence number SN of the first PDU is the first SN, the SN of the PDU in the radio link control RLC buffer is the second SN, and the PDU in the RLC buffer is A segmentation PDU of the first service data unit SDU.
可选地,在本申请实施例中,RLC层可以为非确认模式(Unacknowledged Mode,UM)模式或(Acknowledged Mode,AM)模式,在UM模式下,RLC接收端不会对接收的RLC PDU进行反馈确认,在AM模式下,RLC接收端会对接收到的RLC PDU进行反馈确认。Optionally, in the embodiment of the present application, the RLC layer may be an Unacknowledged Mode (UM) mode or an Acknowledged Mode (AM) mode. In the UM mode, the RLC receiver does not perform the received RLC PDU. The feedback confirms that in the AM mode, the RLC receiver will perform feedback confirmation on the received RLC PDU.
在UM模式下,终端设备接收的RLC PDU也可以称为UMD PDU,或者在AM模式下,终端设备接收的RLC PDU可以称为AMD PDU,本申请实施例不区分模式,将终端设备接收的MAC层传输的数据统称为PDU。In the UM mode, the RLC PDU received by the terminal device may also be referred to as a UMD PDU, or in the AM mode, the RLC PDU received by the terminal device may be referred to as an AMD PDU, and the MAC address received by the terminal device is not differentiated in this embodiment. The data transmitted by the layer is collectively referred to as a PDU.
在某个时刻,所述终端设备接收到第一PDU,所述第一PDU的序列号(Sequence Number,SN)为第一SN,此时,RLC缓存中包括至少一个PDU,所述至少一个PDU的序列号为第二SN,所述至少一个PDU为第一SDU的分段PDU,即所述第一SDU可以分成多个分段,每个分段添加RLC包头后可以形成一个PDU,也就是说,一个SDU可以分成多个分段PDU传输,每个分段PDU具有相同的SN。At a certain moment, the terminal device receives the first PDU, and the sequence number (SN) of the first PDU is the first SN. At this time, the RLC cache includes at least one PDU, and the at least one PDU. The sequence number is a second SN, and the at least one PDU is a segment PDU of the first SDU, that is, the first SDU can be divided into multiple segments, and each segment can be formed into a PDU by adding an RLC packet header, that is, It is said that one SDU can be divided into multiple segment PDU transmissions, each segment PDU having the same SN.
可选地,在本申请实施例中,所述RLC缓存中包括第二PDU,所述第二PDU为所述第一SDU的第一个分段,中间分段或最后一个分段。Optionally, in the embodiment of the present application, the RLC cache includes a second PDU, where the second PDU is a first segment, an intermediate segment, or a last segment of the first SDU.
需要说明的是,所述第一SDU的中间分段可以包括至少一个分段,或所述第一SDU也可以不包括中间分段,本申请实施例对此不作限定。It should be noted that the intermediate segment of the first SDU may include at least one segment, or the first SDU may not include the intermediate segment, which is not limited in this embodiment of the present application.
可选地,在本申请实施例中,所述第二PDU的包头包括第一指示域,所述第一指示域用于指示所述第二PDU为以下情况中的一种:Optionally, in the embodiment of the present application, the packet header of the second PDU includes a first indication domain, where the first indication domain is used to indicate that the second PDU is one of the following conditions:
包括所述第一SDU的第一个分段,包括所述第一SDU的中间分段或包 括所述第一SUD的最后一个分段。Including a first segment of the first SDU, including an intermediate segment or packet of the first SDU The last segment of the first SUD is included.
例如,所述第一指示域可以为2比特,用分段索引SI表示,例如,可以设置当SI=01时表示所述第二SDU为所述第一SDU的第一个分段,当SI=10时表示所述第二SDU为所述第一SDU的中间分段,当SI=11时表示所述第二SDU为所述第一SDU的最后一个分段等。For example, the first indication field may be 2 bits, and is represented by a segment index SI. For example, it may be set that when the SI=01, the second SDU is the first segment of the first SDU, when the SI =10 indicates that the second SDU is an intermediate segment of the first SDU, and when SI=11, the second SDU is the last segment of the first SDU.
可选地,若所述第二PDU为所述第一SDU的中间分段或最后一个分段,所述第二PDU的包头还包括第二指示域,所述第二指示域用于指示所述第二PDU在所述第一SDU中的起始位置。Optionally, if the second PDU is an intermediate segment or a last segment of the first SDU, the packet header of the second PDU further includes a second indication domain, where the second indication domain is used to indicate Determining a starting position of the second PDU in the first SDU.
例如,所述第二指示域可以用分段偏移量SO表示,SO用于指示所述第二PDU在所述第一SDU中的起始位置,或者说,所述第二PDU的起始位置相对于所述第一SDU的起始位置的偏移量。For example, the second indication field may be represented by a segment offset SO, and the SO is used to indicate a starting position of the second PDU in the first SDU, or the start of the second PDU. The offset of the position relative to the starting position of the first SDU.
S220,若所述第一PDU与RLC缓存中的PDU不连续,所述终端设备开启第一定时器,所述第一定时器对应所述第一SDU。S220. If the first PDU is not continuous with the PDU in the RLC cache, the terminal device starts a first timer, where the first timer corresponds to the first SDU.
S230,在所述第一定时器未超时的情况下,接收属于所述第一SDU的其他分段PDU。S230. Receive other segment PDUs belonging to the first SDU if the first timer does not time out.
其中,所述第一PDU和RLC缓存中的至少一个PDU不连续可以理解为在所述第一PDU之前还有未接收到的所述第一SDU的分段PDU,因此,可以开启所述第一SDU对应的第一定时器,接收所述第一SDU的其他分段PDU。The discontinuity of the at least one PDU in the first PDU and the RLC cache may be understood as a segment PDU of the first SDU that is not received before the first PDU, and therefore, the foregoing may be started. A first timer corresponding to an SDU receives another segment PDU of the first SDU.
可选地,所述方法200还包括:Optionally, the method 200 further includes:
确定所述第一PDU与RLC缓存中的PDU不连续。Determining that the first PDU is not continuous with the PDU in the RLC cache.
即所述终端设备首先确定所述第一PDU与RLC缓存中的PDU不连续,即确定所述第一PDU之前还有未接收到的所述第一SDU的分段PDU,然后开启所述第一SDU对应的第一定时器,在所述第一定时器未超时的情况下,接收所述第一SDU的其他分段PDU。That is, the terminal device first determines that the first PDU is discontinuous with the PDU in the RLC cache, that is, determines that the first PDU has a fragment PDU of the first SDU that is not received before, and then opens the first PDU. A first timer corresponding to an SDU receives another segment PDU of the first SDU if the first timer does not time out.
可选地,在一些实施例中,所述确定所述第一PDU与RLC缓存中的PDU不连续,包括:Optionally, in some embodiments, the determining that the first PDU is discontinuous with the PDU in the RLC cache includes:
在所述第一SN等于所述第二SN的情况下,若所述第一PDU和所述RLC缓存中的PDU之间存在未接收到的属于所述第一SDU的其他分段PDU,所述终端设备确定所述第一PDU和所述RLC缓存中的PDU不连续;或 If the first SN is equal to the second SN, if there is another unseen PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, Determining that the first PDU and the PDU in the RLC cache are discontinuous; or
在所述第一SN不等于所述第二SN的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,并且所述第一定时器未被启动,所述终端设备确定所述第一PDU与所述RLC缓存中的PDU不连续。If the first SN is not equal to the second SN, if the terminal device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, the terminal The device determines that the first PDU is not contiguous with the PDU in the RLC cache.
具体而言,在所述第一SN等于所述第二SN的情况下,即所述第一PDU和所述RLC缓存中的至少一个PDU属于同一个SDU,因此,具有相同的SN,若所述第一PDU和所述RLC缓存中的至少一个PDU之间有未接收到的所述第一SDU的其他分段PDU,那么所述终端设备可以确定所述第一PDU和和所述RLC缓存中的PDU不连续。Specifically, in a case where the first SN is equal to the second SN, that is, at least one PDU in the first PDU and the RLC cache belongs to the same SDU, and therefore, has the same SN. Between the first PDU and at least one of the RLC caches, there are other segment PDUs of the first SDU that are not received, then the terminal device may determine the first PDU and the RLC cache. The PDUs in the PDU are not continuous.
或者,在所述第一SN不等于所述第二SN的情况下,即所述第一PDU和所述RLC缓存中的至少一个PDU不属于同一个SDU,此情况下,如果终端设备未接收到所述第一SDU的全部分段PDU,并且所述第一SDU对应的第一定时器未被启动,也就是说,RLC缓存中的至少一个PDU是连续接收的,所以没有触发开启所述第一定时器,但是此时,还未接收到所述第一SDU的全部分段PDU,就接收到其他SDU的分段PDU。也就是说,RLC缓存中的至少一个PDU包括所述第一SDU的第一个分段,或所述第一SDU的第一个分段以及至少一个中间分段,换句话说,未接收到的分段PDU可以包括所述第一SDU的最后一个分段,或所述第一SDU的最后一个分段以及至少一个中间分段,即未接收到的分段PDU至少包括最后一个分段。Or, in a case that the first SN is not equal to the second SN, that is, at least one of the first PDU and the RLC cache does not belong to the same SDU, in this case, if the terminal device does not receive Going to all the segment PDUs of the first SDU, and the first timer corresponding to the first SDU is not activated, that is, at least one PDU in the RLC buffer is continuously received, so the triggering is not triggered. The first timer, but at this time, the segment PDUs of other SDUs are received after all the segment PDUs of the first SDU have not been received. That is, at least one PDU in the RLC cache includes a first segment of the first SDU, or a first segment of the first SDU and at least one intermediate segment, in other words, not received The segmentation PDU may include the last segment of the first SDU, or the last segment of the first SDU and at least one intermediate segment, ie, the unreceived segment PDU includes at least the last segment.
以下,结合图3和图4所示的具体示例,详细介绍终端设备如何确定最新接收的PDU和RLC缓存中的PDU不连续。Hereinafter, in conjunction with the specific examples shown in FIG. 3 and FIG. 4, how the terminal device determines the latest received PDU and the PDU discontinuity in the RLC buffer is described in detail.
如图3所示,在某个时刻,终端设备接收到PDU3,其中,PDU3的SN为1,SI=11,SO=500,即所述PDU3为SN=1的SDU(记为SDU1)的分段PDU,并且所述PDU3为SDU1的中间分段,PDU3在所述SDU1中的偏移量为500字节,或者说,SDU1中在PDU3之前还有500字节的PDU。As shown in FIG. 3, at a certain moment, the terminal device receives the PDU3, wherein the SN of the PDU3 is 1, SI=11, and SO=500, that is, the PDU3 is a SDU of the SN=1 (denoted as SDU1). Segment PDU, and the PDU3 is an intermediate segment of SDU1, and the offset of PDU3 in the SDU1 is 500 bytes, or there is a 500-byte PDU in SDU1 before PDU3.
此时,在RLC缓存中有PDU1和PDU2,PDU1和PDU2都为SDU1的分段PDU,并且PDU1为SDU1的第一个分段,PDU2为所述SDU1的中间分段,所述PDU1和PDU2是连续的,若PDU1和所述PDU2的长度都为100字节,那么所述终端设备可以确定在PDU2和PDU3之间还有300字节的PDU未接收到,此时,所述终端设备可以开启所述SDU1对应的定时器,接收所述PDU2和PDU3之间的分段PDU。At this time, there are PDU1 and PDU2 in the RLC buffer, both PDU1 and PDU2 are segment PDUs of SDU1, and PDU1 is the first segment of SDU1, PDU2 is the intermediate segment of SDU1, and PDU1 and PDU2 are Continuously, if both PDU1 and PDU2 are 100 bytes in length, the terminal device may determine that a 300-byte PDU is not received between PDU2 and PDU3. At this time, the terminal device may be turned on. The timer corresponding to the SDU1 receives the segmentation PDU between the PDU2 and the PDU3.
如图4所示,在某个时刻,终端设备接收到PDU5,其中,PDU5的SN 为2,SI=01,即所述PDU5为SN=2的SDU(记为SDU2)的分段PDU,并且所述PDU5为SDU2的第一个分段。As shown in FIG. 4, at some time, the terminal device receives the PDU 5, where the SN of the PDU 5 2, SI=01, that is, the PDU5 is a segmentation PDU of an SDU (denoted as SDU2) of SN=2, and the PDU5 is the first segment of the SDU2.
此时,在RLC缓存中有PDU1、PDU2和PDU4,PDU1、PDU2和PDU4都为SDU1的分段PDU,并且PDU1为SDU1的第一个分段,PDU2和PDU4为所述SDU1的中间分段,PDU1、PDU2和PDU4是连续的,因此,SDU1对应的定时器未启动,但是所述终端设备还未收到SDU1的最后一个分段,即SDU1的分段PDU还未接收完毕,此时若接收到新的SDU,即SDU2的分段PDU,所述终端设备可以开启所述SDU1对应的定时器,接收所述SDU1的还未接收到的其他分段PDU,即接收PDU4之后的分段PDU。At this time, there are PDU1, PDU2 and PDU4 in the RLC buffer, PDU1, PDU2 and PDU4 are all segmentation PDUs of SDU1, and PDU1 is the first segment of SDU1, and PDU2 and PDU4 are intermediate segments of the SDU1, PDU1, PDU2, and PDU4 are contiguous. Therefore, the timer corresponding to SDU1 is not started, but the terminal device has not received the last segment of SDU1, that is, the segment PDU of SDU1 has not been received yet. To the new SDU, that is, the segmentation PDU of the SDU2, the terminal device may start a timer corresponding to the SDU1, and receive other segmentation PDUs of the SDU1 that have not been received, that is, receive the segmentation PDU after the PDU4.
可选地,在本申请实施例中,所述方法200还包括:Optionally, in the embodiment of the present application, the method 200 further includes:
在所述第一定时器未超时的情况下,若所述终端设备接收到所述第一SDU的全部分段PDU,所述终端设备停止所述第一定时器。If the first timer does not time out, if the terminal device receives all the segment PDUs of the first SDU, the terminal device stops the first timer.
进一步地,所述方法200还可以包括:Further, the method 200 may further include:
所述终端设备将接收到的所述第一SDU的全部分段PDU重组为所述第一SDU,并递交到上层。The terminal device reassembles all the received segment PDUs of the first SDU into the first SDU, and delivers the same to the upper layer.
即所述终端设备可以将接收的所述第一SDU的分段PDU去除RLC头(header),重组为所述第一SDU,并将其递交至上层,例如,PDCP层。That is, the terminal device may remove the received fragmentation PDU of the first SDU, remove the RLC header, reassemble the first SDU, and deliver it to an upper layer, for example, a PDCP layer.
可选地,作为另一个实施例,所述方法200还包括:Optionally, as another embodiment, the method 200 further includes:
在所述第一定时器超时的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,所述终端设备丢弃已接收到的属于所述第一SDU的分段PDU。If the first timer expires, if the terminal device does not receive all the segment PDUs of the first SDU, the terminal device discards the received segment PDUs belonging to the first SDU. .
在所述第一定时器超时的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,可以认为已接收到的分段PDU不能重组为一个完整的SDU,因此,所述终端设备可以丢弃已接收到的所述第一SDU的分段PDU,从而有利于避免这部分分段PDU对RLC缓存的占用。If the first timer expires, if the terminal device does not receive all the segment PDUs of the first SDU, it may be considered that the received segment PDU cannot be reassembled into a complete SDU. Therefore, The terminal device may discard the segment PDU of the first SDU that has been received, thereby facilitating avoiding the occupation of the RLC cache by the part of the segmentation PDU.
进一步地,所述终端设备可以重置所述第一定时器,即将所述第一定时器的时长设置为特定值,但不启动该第一定时器,以便于在下次需要进行接收所述第一SDU的其他分段PDU时,启动该第一定时器。Further, the terminal device may reset the first timer, that is, set the duration of the first timer to a specific value, but does not start the first timer, so that the next time the first timer needs to be received The first timer is started when another segment PDU of an SDU is used.
需要说明的是,在本申请实施例中,每个SDU对应一个定时器,或者说,SN相同的PDU对应一个定时器,该定时器用于接收对应的SDU的分段PDU,每个SDU对应的定时器的时长可以相同或不同。 It should be noted that, in the embodiment of the present application, each SDU corresponds to a timer, or the same PDU of the SN corresponds to a timer, and the timer is used to receive the segment PDU of the corresponding SDU, and each SDU corresponds to The duration of the timers can be the same or different.
可选地,当某个SDU对应的定时器被重置后,该定时器也可以用于接收其他SDU的分段PDU,但是在同一时间内,一个定时器只能用于接收一个SDU的分段PDU。Optionally, when a timer corresponding to an SDU is reset, the timer may also be used to receive segment PDUs of other SDUs, but at the same time, one timer can only be used to receive one SDU. Segment PDU.
因此,本申请实施例的传输数据的方法,所述终端设备可以接收第一PDU,在所述第一PDU和RLC缓存中的PDU不连续的情况下,开启RLC缓存中的PDU所属的第一SDU对应的定时器,在所述第一定时器未超时的情况下,接收所述第一PDU的其他分段PDU,即本申请实施例的传输数据的方法,可以通过给每个SDU分配一个定时器,从而实现对每个SDU的分段PDU的接收。Therefore, in the method for transmitting data in the embodiment of the present application, the terminal device may receive the first PDU, and in the case that the PDU in the first PDU and the RLC cache is discontinuous, the first PDU to which the PDU in the RLC buffer belongs is enabled. The timer corresponding to the SDU, in the case that the first timer is not timed out, receives the other segment PDUs of the first PDU, that is, the method for transmitting data in the embodiment of the present application, by assigning one to each SDU. A timer, thereby enabling reception of a segmentation PDU for each SDU.
上文结合图2至图4,详细描述了本申请的方法实施例,下文结合图5至图6,详细描述本申请的装置实施例,应理解,装置实施例与方法实施例相互对应,类似的描述可以参照方法实施例。The embodiment of the method of the present application is described in detail below with reference to FIG. 2 to FIG. 4 . The device embodiment of the present application is described in detail below with reference to FIG. 5 to FIG. 6 . It should be understood that the device embodiment and the method embodiment correspond to each other. The description of the method can be referred to the method embodiment.
图5是根据本申请实施例的传输数据的设备的示意性框图。图5的设备500包括:FIG. 5 is a schematic block diagram of an apparatus for transmitting data according to an embodiment of the present application. The device 500 of Figure 5 includes:
通信模块510,用于接收第一协议数据单元PDU,所述第一PDU的序列号SN为第一SN,无线链路控制RLC缓存中的PDU的SN为第二SN,所述RLC缓存中的PDU为第一业务数据单元SDU的分段PDU;The communication module 510 is configured to receive the first protocol data unit PDU, where the sequence number SN of the first PDU is the first SN, and the SN of the PDU in the radio link control RLC buffer is the second SN, where the RLC cache The PDU is a segmentation PDU of the first service data unit SDU;
处理模块520,用于在所述第一PDU与RLC缓存中的PDU不连续的情况下,开启第一定时器,所述第一定时器对应所述第一SDU;The processing module 520 is configured to: when the first PDU and the PDU in the RLC cache are not consecutive, start a first timer, where the first timer corresponds to the first SDU;
所述通信模块510还用于在所述第一定时器未超时的情况下,接收属于所述第一SDU的其他分段PDU。The communication module 510 is further configured to receive other segment PDUs belonging to the first SDU if the first timer does not time out.
可选地,在一些实施例中,所述设备500还包括:Optionally, in some embodiments, the device 500 further includes:
确定模块,用于确定所述第一PDU与RLC缓存中的PDU不连续。And a determining module, configured to determine that the first PDU is discontinuous with a PDU in an RLC cache.
可选地,在一些实施例中,所述确定模块具体用于:Optionally, in some embodiments, the determining module is specifically configured to:
在所述第一SN等于所述第二SN的情况下,若所述第一PDU和所述RLC缓存中的PDU之间存在未接收到的属于所述第一SDU的其他分段PDU,确定所述第一PDU和所述RLC缓存中的PDU不连续;或If the first SN is equal to the second SN, if there is another unseen segment PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, determining The first PDU and the PDU in the RLC cache are discontinuous; or
在所述第一SN不等于所述第二SN的情况下,若所述设备未接收到所述第一SDU的全部分段PDU,并且所述第一定时器未被启动,确定所述第一PDU与所述RLC缓存中的PDU不连续。If the first SN is not equal to the second SN, if the device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, determining the first A PDU is not contiguous with a PDU in the RLC cache.
可选地,在一些实施例中,所述处理模块520还用于: Optionally, in some embodiments, the processing module 520 is further configured to:
在所述第一定时器未超时的情况下,若所述设备接收到的所述第一SDU的全部分段PDU,停止所述第一定时器。If the first timer does not time out, if the device receives all the segment PDUs of the first SDU, the first timer is stopped.
可选地,在一些实施例中,所述处理模块520还用于:Optionally, in some embodiments, the processing module 520 is further configured to:
将接收到的所述第一SDU的全部分段PDU重组为所述第一SDU,并递交到上层。All received segment PDUs of the first SDU are reassembled into the first SDU and submitted to the upper layer.
可选地,在一些实施例中,所述处理模块520还用于:Optionally, in some embodiments, the processing module 520 is further configured to:
在所述第一定时器超时的情况下,若所述设备未接收到所述第一SDU的全部分段PDU,丢弃已接收到的属于所述第一SDU的分段PDU。If the first timer expires, if the device does not receive all the segment PDUs of the first SDU, discard the received segment PDUs belonging to the first SDU.
可选地,在一些实施例中,所述RLC缓存中包括第二PDU,所述第二PDU为所述第一SDU的第一个分段,中间分段或最后一个分段。Optionally, in some embodiments, the RLC cache includes a second PDU, where the second PDU is a first segment, an intermediate segment or a last segment of the first SDU.
可选地,在一些实施例中,所述第二PDU的包头包括第一指示域,所述第一指示域用于指示所述第二PDU为以下情况中的一种:Optionally, in some embodiments, the packet header of the second PDU includes a first indication domain, where the first indication domain is used to indicate that the second PDU is one of:
包括所述第一SDU的第一个分段,包括所述第一SDU的中间分段或包括所述第一SUD的最后一个分段。A first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
可选地,在一些实施例中,若所述第二PDU为所述第一SDU的中间分段或最后一个分段,所述第二PDU的包头还包括第二指示域,所述第二指示域用于指示所述第二PDU在所述第一SDU中的起始位置。Optionally, in some embodiments, if the second PDU is an intermediate segment or a last segment of the first SDU, the packet header of the second PDU further includes a second indication field, where the second The indication field is used to indicate a starting position of the second PDU in the first SDU.
具体地,该设备500可以对应(例如,可以配置于或本身即为)上述方法200中描述的终端设备,并且,该设备500中的各模块或单元分别用于执行上述方法200中终端设备所执行的各动作或处理过程,这里,为了避免赘述,省略其详细说明。Specifically, the device 500 may correspond to (for example, may be configured or be itself) the terminal device described in the foregoing method 200, and each module or unit in the device 500 is used to execute the terminal device in the foregoing method 200, respectively. Each of the operations or processes performed is omitted here for the sake of avoiding redundancy.
如图6所示,本申请实施例还提供了一种传输数据的设备600,所述设备600可以为图5中的设备500,其能够用于执行与图2中方法200对应的终端设备的内容。所述设备600包括:输入接口610、输出接口620、处理器630以及存储器640,所述输入接口610、输出接口620、处理器630和存储器640可以通过总线系统相连。所述存储器640用于存储包括程序、指令或代码。所述处理器630,用于执行所述存储器640中的程序、指令或代码,以控制输入接口610接收信号、控制输出接口620发送信号以及完成前述方法实施例中的操作。As shown in FIG. 6, the embodiment of the present application further provides a device 600 for transmitting data, which may be the device 500 in FIG. 5, which can be used to execute a terminal device corresponding to the method 200 in FIG. content. The device 600 includes an input interface 610, an output interface 620, a processor 630, and a memory 640. The input interface 610, the output interface 620, the processor 630, and the memory 640 can be connected by a bus system. The memory 640 is used to store programs, instructions or code. The processor 630 is configured to execute a program, an instruction or a code in the memory 640 to control the input interface 610 to receive a signal, control the output interface 620 to send a signal, and complete the operations in the foregoing method embodiments.
应理解,在本申请实施例中,所述处理器630可以是中央处理单元(Central Processing Unit,简称为“CPU”),所述处理器630还可以是其他 通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者所述处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 630 may be a central processing unit ("CPU"), and the processor 630 may also be other General purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器640可以包括只读存储器和随机存取存储器,并向处理器630提供指令和数据。存储器640的一部分还可以包括非易失性随机存取存储器。例如,存储器640还可以存储设备类型的信息。The memory 640 can include read only memory and random access memory and provides instructions and data to the processor 630. A portion of the memory 640 can also include a non-volatile random access memory. For example, the memory 640 can also store information of the device type.
在实现过程中,上述方法的各内容可以通过处理器630中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的内容可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。所述存储介质位于存储器640,处理器630读取存储器640中的信息,结合其硬件完成上述方法的内容。为避免重复,这里不再详细描述。In the implementation process, each content of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 630 or an instruction in a form of software. The content of the method disclosed in the embodiments of the present application may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 640, and the processor 630 reads the information in the memory 640 and completes the contents of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
一个具体的实施方式中,图5中设备500包括的处理模块520和确定模块可以用图6的处理器630实现,图5中设备500包括的通信模块510可以用图6的所述输入接口610和所述输出接口620实现。In a specific implementation, the processing module 520 and the determining module included in the device 500 of FIG. 5 can be implemented by the processor 630 of FIG. 6. The communication module 510 included in the device 500 of FIG. 5 can use the input interface 610 of FIG. And the output interface 620 is implemented.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的便携式电子设备执行时,能够使该便携式电子设备执行图2所示实施例的方法。The embodiment of the present application further provides a computer readable storage medium storing one or more programs, the one or more programs including instructions, when the portable electronic device is included in a plurality of applications When executed, the portable electronic device can be caused to perform the method of the embodiment shown in FIG. 2.
本申请实施例还提出了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行图2所示实施例的方法的相应流程。The embodiment of the present application also proposes a computer program comprising instructions which, when executed by a computer, cause the computer to execute the corresponding flow of the method of the embodiment shown in FIG. 2.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应 过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working processes of the above described systems, devices and units can refer to the corresponding solutions in the foregoing method embodiments. The process will not be repeated here.
在本申请所提供的几个实施例中,应所述理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者所述技术方案的部分可以以软件产品的形式体现出来,所述计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。 The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.

Claims (18)

  1. 一种传输数据的方法,其特征在于,包括:A method for transmitting data, comprising:
    终端设备接收第一协议数据单元PDU,所述第一PDU的序列号SN为第一SN,无线链路控制RLC缓存中的PDU的SN为第二SN,所述RLC缓存中的PDU为第一业务数据单元SDU的分段PDU;The terminal device receives the first protocol data unit PDU, the sequence number SN of the first PDU is the first SN, the SN of the PDU in the radio link control RLC buffer is the second SN, and the PDU in the RLC buffer is the first a segmentation PDU of the service data unit SDU;
    若所述第一PDU与RLC缓存中的PDU不连续,所述终端设备开启第一定时器,所述第一定时器对应所述第一SDU;If the first PDU is not continuous with the PDU in the RLC cache, the terminal device starts the first timer, and the first timer corresponds to the first SDU;
    在所述第一定时器未超时的情况下,接收属于所述第一SDU的其他分段PDU。In the case that the first timer has not timed out, other segment PDUs belonging to the first SDU are received.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    确定所述第一PDU与RLC缓存中的PDU不连续。Determining that the first PDU is not continuous with the PDU in the RLC cache.
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述第一PDU与RLC缓存中的PDU不连续,包括:The method according to claim 2, wherein the determining that the first PDU is not continuous with the PDU in the RLC cache comprises:
    在所述第一SN等于所述第二SN的情况下,若所述第一PDU和所述RLC缓存中的PDU之间存在未接收到的属于所述第一SDU的其他分段PDU,所述终端设备确定所述第一PDU和所述RLC缓存中的PDU不连续;或If the first SN is equal to the second SN, if there is another unseen PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, Determining that the first PDU and the PDU in the RLC cache are discontinuous; or
    在所述第一SN不等于所述第二SN的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,并且所述第一定时器未被启动,所述终端设备确定所述第一PDU与所述RLC缓存中的PDU不连续。If the first SN is not equal to the second SN, if the terminal device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, the terminal The device determines that the first PDU is not contiguous with the PDU in the RLC cache.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, further comprising:
    在所述第一定时器未超时的情况下,若所述终端设备接收到所述第一SDU的全部分段PDU,所述终端设备停止所述第一定时器。If the first timer does not time out, if the terminal device receives all the segment PDUs of the first SDU, the terminal device stops the first timer.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    所述终端设备将接收到的所述第一SDU的全部分段PDU重组为所述第一SDU,并递交到上层。The terminal device reassembles all the received segment PDUs of the first SDU into the first SDU, and delivers the same to the upper layer.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    在所述第一定时器超时的情况下,若所述终端设备未接收到所述第一SDU的全部分段PDU,所述终端设备丢弃已接收到的属于所述第一SDU的 分段PDU。If the first timer expires, if the terminal device does not receive all the segment PDUs of the first SDU, the terminal device discards the received information belonging to the first SDU. Segment PDU.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述RLC缓存中包括第二PDU,所述第二PDU为所述第一SDU的第一个分段,中间分段或最后一个分段。The method according to any one of claims 1 to 6, wherein the RLC cache includes a second PDU, the second PDU is a first segment of the first SDU, and an intermediate segment Or the last segment.
  8. 根据权利要求7所述的方法,其特征在于,所述第二PDU的包头包括第一指示域,所述第一指示域用于指示所述第二PDU为以下情况中的一种:The method according to claim 7, wherein the header of the second PDU comprises a first indication field, and the first indication field is used to indicate that the second PDU is one of:
    包括所述第一SDU的第一个分段,包括所述第一SDU的中间分段或包括所述第一SUD的最后一个分段。A first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
  9. 根据权利要求8所述的方法,其特征在于,若所述第二PDU为所述第一SDU的中间分段或最后一个分段,所述第二PDU的包头还包括第二指示域,所述第二指示域用于指示所述第二PDU在所述第一SDU中的起始位置。The method according to claim 8, wherein if the second PDU is an intermediate segment or a last segment of the first SDU, the header of the second PDU further includes a second indication domain, The second indication field is used to indicate a starting position of the second PDU in the first SDU.
  10. 一种传输数据的设备,其特征在于,包括:A device for transmitting data, comprising:
    通信模块,用于接收第一协议数据单元PDU,所述第一PDU的序列号SN为第一SN,无线链路控制RLC缓存中的PDU的SN为第二SN,所述RLC缓存中的PDU为第一业务数据单元SDU的分段PDU;a communication module, configured to receive a first protocol data unit PDU, where the sequence number SN of the first PDU is a first SN, and the SN of the PDU in the radio link control RLC buffer is a second SN, and the PDU in the RLC buffer a segmentation PDU that is a first service data unit SDU;
    处理模块,用于在所述第一PDU与RLC缓存中的PDU不连续的情况下,开启第一定时器,所述第一定时器对应所述第一SDU;a processing module, configured to: when the PDU of the first PDU and the RLC cache is discontinuous, start a first timer, where the first timer corresponds to the first SDU;
    所述通信模块还用于在所述第一定时器未超时的情况下,接收属于所述第一SDU的其他分段PDU。The communication module is further configured to receive other segment PDUs belonging to the first SDU if the first timer does not time out.
  11. 根据权利要求10所述的设备,其特征在于,所述设备还包括:The device according to claim 10, wherein the device further comprises:
    确定模块,用于确定所述第一PDU与RLC缓存中的PDU不连续。And a determining module, configured to determine that the first PDU is discontinuous with a PDU in an RLC cache.
  12. 根据权利要求11所述的设备,其特征在于,所述确定模块具体用于:The device according to claim 11, wherein the determining module is specifically configured to:
    在所述第一SN等于所述第二SN的情况下,若所述第一PDU和所述RLC缓存中的PDU之间存在未接收到的属于所述第一SDU的其他分段PDU,确定所述第一PDU和所述RLC缓存中的PDU不连续;或If the first SN is equal to the second SN, if there is another unseen segment PDU belonging to the first SDU between the first PDU and the PDU in the RLC cache, determining The first PDU and the PDU in the RLC cache are discontinuous; or
    在所述第一SN不等于所述第二SN的情况下,若所述设备未接收到所述第一SDU的全部分段PDU,并且所述第一定时器未被启动,确定所述第一PDU与所述RLC缓存中的PDU不连续。 If the first SN is not equal to the second SN, if the device does not receive all the segment PDUs of the first SDU, and the first timer is not activated, determining the first A PDU is not contiguous with a PDU in the RLC cache.
  13. 根据权利要求10至12中任一项所述的设备,其特征在于,所述处理模块还用于:The device according to any one of claims 10 to 12, wherein the processing module is further configured to:
    在所述第一定时器未超时的情况下,若所述设备接收到所述第一SDU的全部分段PDU,停止所述第一定时器。If the first timer does not time out, if the device receives all the segment PDUs of the first SDU, the first timer is stopped.
  14. 根据权利要求13所述的设备,其特征在于,所述处理模块还用于:The device according to claim 13, wherein the processing module is further configured to:
    将接收到的所述第一SDU的全部分段PDU重组为所述第一SDU,并递交到上层。All received segment PDUs of the first SDU are reassembled into the first SDU and submitted to the upper layer.
  15. 根据权利要求10至14中任一项所述的设备,其特征在于,所述处理模块还用于:The device according to any one of claims 10 to 14, wherein the processing module is further configured to:
    在所述第一定时器超时的情况下,若所述设备未接收到所述第一SDU的全部分段PDU,丢弃已接收到的属于所述第一SDU的分段PDU。If the first timer expires, if the device does not receive all the segment PDUs of the first SDU, discard the received segment PDUs belonging to the first SDU.
  16. 根据权利要求10至15中任一项所述的设备,其特征在于,所述RLC缓存中包括第二PDU,所述第二PDU为所述第一SDU的第一个分段,中间分段或最后一个分段。The device according to any one of claims 10 to 15, wherein the RLC cache includes a second PDU, the second PDU is a first segment of the first SDU, and an intermediate segment Or the last segment.
  17. 根据权利要求16所述的设备,其特征在于,所述第二PDU的包头包括第一指示域,所述第一指示域用于指示所述第二PDU为以下情况中的一种:The device according to claim 16, wherein the header of the second PDU comprises a first indication field, and the first indication field is used to indicate that the second PDU is one of:
    包括所述第一SDU的第一个分段,包括所述第一SDU的中间分段或包括所述第一SUD的最后一个分段。A first segment comprising the first SDU, including an intermediate segment of the first SDU or a last segment of the first SUD.
  18. 根据权利要求17所述的设备,其特征在于,若所述第二PDU为所述第一SDU的中间分段或最后一个分段,所述第二PDU的包头还包括第二指示域,所述第二指示域用于指示所述第二PDU在所述第一SDU中的起始位置。 The device according to claim 17, wherein if the second PDU is an intermediate segment or a last segment of the first SDU, the packet header of the second PDU further includes a second indication domain, where The second indication field is used to indicate a starting position of the second PDU in the first SDU.
PCT/CN2017/093845 2017-07-21 2017-07-21 Data transmission method and device WO2019014918A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780049109.6A CN109565377A (en) 2017-07-21 2017-07-21 The method and apparatus for transmitting data
PCT/CN2017/093845 WO2019014918A1 (en) 2017-07-21 2017-07-21 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/093845 WO2019014918A1 (en) 2017-07-21 2017-07-21 Data transmission method and device

Publications (1)

Publication Number Publication Date
WO2019014918A1 true WO2019014918A1 (en) 2019-01-24

Family

ID=65014831

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/093845 WO2019014918A1 (en) 2017-07-21 2017-07-21 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN109565377A (en)
WO (1) WO2019014918A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399471B (en) * 2020-10-23 2023-02-10 紫光展锐(重庆)科技有限公司 Data caching method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852084A (en) * 2005-10-10 2006-10-25 华为技术有限公司 Method for detecting data-bag lost and apparatus thereof
CN101652949A (en) * 2007-04-06 2010-02-17 株式会社Ntt都科摩 Packet communication method and receiving side device
WO2014182134A1 (en) * 2013-05-10 2014-11-13 주식회사 팬택 Method and apparatus for sequential forwarding considering multi-flow in dual connectivity system
CN104519524A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data sorting method based on multi-stream transmission and receiving device
CN106134099A (en) * 2014-01-29 2016-11-16 三星电子株式会社 For the method and apparatus using multiple carrier wave to send and receive data in mobile communication system
JP2017092574A (en) * 2015-11-04 2017-05-25 株式会社Nttドコモ Radio communication device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090087773A (en) * 2008-02-13 2009-08-18 삼성전자주식회사 Apparatus and method for retransmittion packet data unit and reporting status in a mobile communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852084A (en) * 2005-10-10 2006-10-25 华为技术有限公司 Method for detecting data-bag lost and apparatus thereof
CN101652949A (en) * 2007-04-06 2010-02-17 株式会社Ntt都科摩 Packet communication method and receiving side device
WO2014182134A1 (en) * 2013-05-10 2014-11-13 주식회사 팬택 Method and apparatus for sequential forwarding considering multi-flow in dual connectivity system
CN104519524A (en) * 2013-09-26 2015-04-15 中兴通讯股份有限公司 Data sorting method based on multi-stream transmission and receiving device
CN106134099A (en) * 2014-01-29 2016-11-16 三星电子株式会社 For the method and apparatus using multiple carrier wave to send and receive data in mobile communication system
JP2017092574A (en) * 2015-11-04 2017-05-25 株式会社Nttドコモ Radio communication device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NOKIA CORPORATION ET AL.: "RLC PDU loss detection", 3GPP TSG - RAN WG 2 MEETING #60 , R2-075112, 12 November 2007 (2007-11-12), XP050137572 *
OPPO.: "NR RLC UM operation", 3GPP TSG - RAN WG2 #NR ADHOC#2, R2-1706346, 16 June 2017 (2017-06-16), XP051300860 *

Also Published As

Publication number Publication date
CN109565377A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN111294153B (en) Method and device for transmitting data
AU2018366562C1 (en) Data processing method and apparatus, and computer storage medium
CN109474651B (en) Method and apparatus for processing data
CN111278029B (en) Method and apparatus for processing data
CN109803277B (en) Method and apparatus for packet processing
US11121829B2 (en) Method and device for retransmission processing
WO2020057044A1 (en) Connection releasing method, data processing method, device, and storage medium
TWI698146B (en) Method for receiving and processing data of radio link control layer and apparatus
WO2020062126A1 (en) Method for processing data packet, entity and storage medium
TW201911947A (en) Device and method for processing a handover
WO2019061155A1 (en) Data processing method, terminal device and network device
WO2019101122A1 (en) Method and device for transmitting data
WO2019127292A1 (en) Method and apparatus for controlling data replication transmission function
US11563524B2 (en) Wireless communication method and device
WO2019014918A1 (en) Data transmission method and device
WO2019214619A1 (en) Data processing method and apparatus
CN108200605B (en) Data transmission method and device for base station
WO2018126450A1 (en) Wireless communication method and device
WO2019047912A1 (en) Method and device for processing data
WO2020097819A1 (en) Method and apparatus for transmitting data upon handover, chip, and computer program
CN109644351B (en) Data processing method and device
WO2019028824A1 (en) Method for transmitting data, terminal device, and network device
CN112703815B (en) Data packet reordering method, electronic equipment and storage medium

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: 17918620

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: 17918620

Country of ref document: EP

Kind code of ref document: A1