CN114205307B - Data packet transmission method, RLC entity and storage medium - Google Patents
Data packet transmission method, RLC entity and storage medium Download PDFInfo
- Publication number
- CN114205307B CN114205307B CN202111459247.6A CN202111459247A CN114205307B CN 114205307 B CN114205307 B CN 114205307B CN 202111459247 A CN202111459247 A CN 202111459247A CN 114205307 B CN114205307 B CN 114205307B
- Authority
- CN
- China
- Prior art keywords
- data packet
- transmitted
- size
- transmission
- rlc entity
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 161
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000004044 response Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 13
- 238000012423 maintenance Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000013461 design Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 102100022734 Acyl carrier protein, mitochondrial Human genes 0.000 description 2
- 101000678845 Homo sapiens Acyl carrier protein, mitochondrial Proteins 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/36—Flow control; Congestion control by determining packet size, e.g. maximum transfer unit [MTU]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/0289—Congestion control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种数据包传输方法、RLC实体及存储介质。The invention relates to the technical field of communication, in particular to a data packet transmission method, an RLC entity and a storage medium.
背景技术Background technique
在第五代移动通信技术新空口(5th generation mobile communicationtechnology new radio,5GNR)协议栈的无线链路控制(radio link control,RLC)层中,一个完整的数据包对应一个无线链路控制协议数据单元(radio Link control protocoldata unit,RLC PDU)。当RLC实体接收到媒体接入控制(medium access control,MAC)层指示的传输指令后,根据传输指令中指示的传输块的大小,将待发送的RLC PDU放入该传输块中进行传输。In the radio link control (RLC) layer of the 5th generation mobile communication technology new radio (5GNR) protocol stack, a complete data packet corresponds to a radio link control protocol data unit (radio link control protocol data unit, RLC PDU). After receiving the transmission instruction indicated by the medium access control (medium access control, MAC) layer, the RLC entity puts the RLC PDU to be sent into the transmission block for transmission according to the size of the transmission block indicated in the transmission instruction.
但是,当该传输块无法完全容纳待发送的RLC PDU时(数据块的大小小于待发送的RLC PDU的大小),RLC实体则将该RLC PDU进行分段发送,即先发送该RLC PDU的一部分,剩下的部分等待再次接收到传输指令后再进行发送。当下次传输指令到来时,由于上述分段RLC PDU的存在,可能导致其他原本可以完全放入传输块的RLC PDU也无法完全发送,产生恶性循环,进而造成接收端的计算资源利用率低下。However, when the transmission block cannot fully accommodate the RLC PDU to be sent (the size of the data block is smaller than the size of the RLC PDU to be sent), the RLC entity sends the RLC PDU in segments, that is, sends a part of the RLC PDU first , and the remaining part waits for the transmission instruction to be received again before sending. When the next transmission instruction arrives, due to the existence of the above segmented RLC PDU, other RLC PDUs that could have been completely placed in the transmission block may not be completely sent, resulting in a vicious circle, which in turn leads to low utilization of computing resources at the receiving end.
发明内容Contents of the invention
本发明提供一种数据包传输方法、RLC实体及存储介质,用于减小分段数据包产生的负面影响,进而提升接收端的计算资源利用。The invention provides a data packet transmission method, an RLC entity and a storage medium, which are used to reduce the negative impact caused by segmented data packets, and further improve the utilization of computing resources at the receiving end.
为了达到上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts following technical scheme:
第一方面,提供一种数据包传输方法,应用于无线链路控制RLC实体,包括:接收媒体接入控制MAC实体发送的传输指令;传输指令用于指示RLC实体向MAC实体传输数据包;传输指令包括传输块大小;对于多个待传输数据包中的当前待传输数据包,确定当前待传输数据包的大小;在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在目标数据包,则向MAC实体发送目标数据包;目标数据包的大小小于或者等于传输块大小。In the first aspect, a data packet transmission method is provided, which is applied to a radio link control RLC entity, including: receiving a transmission instruction sent by a medium access control MAC entity; the transmission instruction is used to instruct the RLC entity to transmit a data packet to the MAC entity; The instruction includes the transmission block size; for the current data packet to be transmitted among the multiple data packets to be transmitted, determine the size of the current data packet to be transmitted; when the size of the current data packet to be transmitted is greater than the transmission block size, if multiple If there is a target data packet in the transmission data packet, the target data packet is sent to the MAC entity; the size of the target data packet is smaller than or equal to the size of the transmission block.
可选的,上述方法还包括:在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中不存在目标数据包,则获取当前待传输数据包的轮询值;当前待传输数据包的轮询值为RLC实体执行确定当前待传输数据包的大小的次数;在当前待传输数据包的轮询值大于或者等于第一阈值的情况下,向MAC实体发送当前待传输数据包。Optionally, the above method further includes: if the size of the current data packet to be transmitted is greater than the size of the transmission block, if there is no target data packet among the multiple data packets to be transmitted, then obtaining the polling value of the current data packet to be transmitted ; The polling value of the current data packet to be transmitted is the number of times that the RLC entity performs the determination of the size of the current data packet to be transmitted; when the polling value of the current data packet to be transmitted is greater than or equal to the first threshold, send the current Packets to be transmitted.
可选的,在确定当前待传输数据包的大小之后,上述方法还包括:按照预设增量更新当前待传输数据包的轮询值。Optionally, after determining the size of the current data packet to be transmitted, the above method further includes: updating the polling value of the current data packet to be transmitted according to a preset increment.
可选的,上述方法还包括:在当前待传输数据包的轮询值小于第一阈值的情况下,获取传输时长;传输时长为RLC实体响应于传输指令开始计时得到的时长;在传输时长大于或者等于第二阈值的情况下,向MAC实体发送当前待传输数据包。Optionally, the above method also includes: when the polling value of the current data packet to be transmitted is less than the first threshold, obtaining the transmission duration; the transmission duration is the duration obtained by the RLC entity responding to the transmission instruction to start counting; when the transmission duration is greater than Or in the case of being equal to the second threshold, send the currently to-be-transmitted data packet to the MAC entity.
第二方面,提供一种无线链路控制RLC实体,包括接收单元、确定单元、判断单元以及发送单元;接收单元,用于接收媒体接入控制MAC实体发送的传输指令;传输指令用于指示RLC实体向MAC实体传输数据包;传输指令包括传输块大小;确定单元,用于对于多个待传输数据包中的当前待传输数据包,确定当前待传输数据包的大小;判断单元,用于判断当前待传输数据包的大小是否大于传输块大小;判断单元,还用于在当前待传输数据包的大小大于传输块大小的情况下,依次确定其它待传输数据包的大小,并判断是否存在目标数据包;发送单元,用于在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在目标数据包,则向MAC实体发送目标数据包;目标数据包的大小小于或者等于传输块大小。In a second aspect, a radio link control RLC entity is provided, including a receiving unit, a determining unit, a judging unit, and a sending unit; the receiving unit is used to receive the transmission instruction sent by the medium access control MAC entity; the transmission instruction is used to indicate the RLC The entity transmits the data packet to the MAC entity; the transmission instruction includes the size of the transmission block; the determination unit is used to determine the size of the current data packet to be transmitted for the current data packet to be transmitted among the multiple data packets to be transmitted; the judging unit is used to judge Whether the size of the current data packet to be transmitted is greater than the size of the transmission block; the judging unit is also used to sequentially determine the size of other data packets to be transmitted and determine whether there is a target when the size of the current data packet to be transmitted is greater than the size of the transmission block Data packet; sending unit, used to send the target data packet to the MAC entity if the size of the current data packet to be transmitted is greater than the transmission block size, if there is a target data packet in a plurality of data packets to be transmitted; The size is less than or equal to the transport block size.
可选的,RLC实体还包括获取单元;获取单元,用于在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中不存在目标数据包,则获取当前待传输数据包的轮询值;当前待传输数据包的轮询值为RLC实体执行确定当前待传输数据包的大小的次数;发送单元,还用于在当前待传输数据包的轮询值大于或者等于第一阈值的情况下,向MAC实体发送当前待传输数据包。Optionally, the RLC entity also includes an acquisition unit; the acquisition unit is used to obtain the current pending data packet if the target data packet does not exist in the multiple pending data packets when the size of the current data packet to be transmitted is greater than the size of the transmission block. The polling value of the transmission data packet; the current polling value of the data packet to be transmitted is the number of times that the RLC entity performs the determination of the size of the current data packet to be transmitted; the sending unit is also used for when the current polling value of the data packet to be transmitted is greater than or If it is equal to the first threshold, send the currently to-be-transmitted data packet to the MAC entity.
可选的,RLC实体还包括更新单元;更新单元,用于按照预设增量更新当前待传输数据包的轮询值。Optionally, the RLC entity further includes an updating unit; the updating unit is configured to update the polling value of the current data packet to be transmitted according to a preset increment.
可选的,上述获取单元,还用于:在当前待传输数据包的轮询值小于第一阈值的情况下,获取传输时长;传输时长为RLC实体响应于传输指令开始计时得到的时长;发送单元,还用于在传输时长大于或者等于第二阈值的情况下,向MAC实体发送当前待传输数据包。Optionally, the above acquisition unit is also used to: obtain the transmission duration when the polling value of the current data packet to be transmitted is less than the first threshold; the transmission duration is the duration obtained by the RLC entity responding to the transmission instruction to start counting; sending The unit is further configured to send the current data packet to be transmitted to the MAC entity when the transmission duration is greater than or equal to the second threshold.
第三方面,提供了一种无线链路控制RLC实体,包括:处理器以及存储器;其中,存储器用于存储一个或多个程序,一个或多个程序包括计算机执行指令,当RLC实体运行时,处理器执行存储器存储的计算机执行指令,以使RLC实体执行上述第一方面的数据包传输方法。In a third aspect, a radio link control RLC entity is provided, including: a processor and a memory; wherein, the memory is used to store one or more programs, and the one or more programs include computer-executable instructions. When the RLC entity is running, The processor executes the computer-executed instructions stored in the memory, so that the RLC entity executes the data packet transmission method of the first aspect above.
第四方面,提供了一种计算机可读存储介质,其特征在于,计算机可读存储介质中存储有指令,当指令在无线链路控制RLC实体上运行时,使得无线链路控制RLC实体执行上述第一方面的数据包传输方法。In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions run on the radio link control RLC entity, the radio link control RLC entity executes the above-mentioned The data packet transmission method of the first aspect.
本发明提供的技术方案至少带来以下有益效果:RLC实体接收到MAC实体发送的用于指示RLC实体向MAC实体传输数据包的传输指令后,确定多个待传输数据包中待传输的当前待传输数据包的大小;由于传输指令中包括传输块大小,因此在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在大小小于或者等于传输块的目标数据包,则向MAC实体发送目标数据包,而并非直接向MAC实体发送当前待传输数据包。这样一来,可以减少因当前待传输数据包的大小大于传输块大小导致当前待传输数据包产生分段后,对大小小于或者等于传输块大小的待传输数据包的影响,避免产生恶性循环进而造成接收端的计算资源利用率低下的问题。The technical solution provided by the present invention brings at least the following beneficial effects: after the RLC entity receives the transmission instruction sent by the MAC entity for instructing the RLC entity to transmit data packets to the MAC entity, it determines the current pending data packet to be transmitted among the multiple data packets to be transmitted. The size of the transmitted data packet; since the transmission instruction includes the size of the transmission block, if the size of the current data packet to be transmitted is greater than the size of the transmission block, if there are target data whose size is smaller than or equal to the transmission block in multiple data packets to be transmitted packet, send the target data packet to the MAC entity instead of directly sending the current data packet to be transmitted to the MAC entity. In this way, the impact on the data packets to be transmitted whose size is smaller than or equal to the size of the transmission block after the current data packet to be transmitted is segmented due to the size of the current data packet to be transmitted being larger than the size of the transmission block can be reduced, thereby avoiding a vicious circle and further This causes a problem of low utilization of computing resources at the receiving end.
附图说明Description of drawings
图1为本发明的实施例提供的一种网络协议栈架构示意图;FIG. 1 is a schematic diagram of a network protocol stack architecture provided by an embodiment of the present invention;
图2为本发明的实施例提供的一种网络协议栈处理下行数据的流程示意图;2 is a schematic flow diagram of a network protocol stack processing downlink data provided by an embodiment of the present invention;
图3为本发明的实施例提供的一种通信系统的结构示意图;FIG. 3 is a schematic structural diagram of a communication system provided by an embodiment of the present invention;
图4为本发明的实施例提供的一种数据包传输方法流程示意图一;FIG. 4 is a first schematic flow diagram of a data packet transmission method provided by an embodiment of the present invention;
图5为本发明的实施例提供的一种数据包传输方法流程示意图二;FIG. 5 is a second schematic flow diagram of a data packet transmission method provided by an embodiment of the present invention;
图6为本发明的实施例提供的一种RLC实体的结构示意图一;FIG. 6 is a first schematic structural diagram of an RLC entity provided by an embodiment of the present invention;
图7为本发明的实施例提供的一种RLC实体的结构示意图二;FIG. 7 is a second schematic structural diagram of an RLC entity provided by an embodiment of the present invention;
图8为本发明的实施例提供的一种RLC实体的结构示意图三。FIG. 8 is a third structural schematic diagram of an RLC entity provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
在本发明的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In the description of the present invention, unless otherwise specified, "/" means "or", for example, A/B may mean A or B. The "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone These three situations. In addition, "at least one" and "plurality" mean two or more. Words such as "first" and "second" do not limit the number and order of execution, and words such as "first" and "second" do not necessarily limit the difference.
下面对本申请实施例涉及的相关技术进行说明。The related technologies involved in the embodiments of the present application will be described below.
相关技术中,终端之间的数据传输依靠包转发网络实现。例如,在第一终端向第二终端传输数据之前,第二终端可以向第一终端发送最大传输单元(maximum rransmissionunit,MTU)消息,指示其能够接收的数据服务单元的最大尺寸;第一终端在通过网络侧向第二终端发送数据时,将一个完整的数据分割为多个符合MTU的数据包,并通过网络侧将这些数据包发送给第二终端。如在MTU消息指示第二终端能够接收的数据服务单元的最大尺寸为1.5Kb时,第一终端可以将一个完整的数据(数据大小为4.5Kb)分割为3个1.5Kb的数据包,并将这些数据包封装发送给网络侧,由网络侧转发给第二终端。In related technologies, data transmission between terminals is implemented by means of a packet forwarding network. For example, before the first terminal transmits data to the second terminal, the second terminal may send a maximum transmission unit (maximum rransmission unit, MTU) message to the first terminal, indicating the maximum size of the data service unit that it can receive; When sending data to the second terminal through the network side, a complete data is divided into multiple data packets conforming to the MTU, and these data packets are sent to the second terminal through the network side. For example, when the MTU message indicates that the maximum size of the data service unit that the second terminal can receive is 1.5Kb, the first terminal can divide a complete data (data size is 4.5Kb) into three 1.5Kb data packets, and These data packets are encapsulated and sent to the network side, and then forwarded to the second terminal by the network side.
基于包转发网络,第二终端需要接收该数据对应的所有数据包之后,方可以对该数据进行处理。由于第二终端接收完该数据对应的所有数据包的时间较长,其计算资源处于空闲状态,这将使第二终端的计算资源利用率低下。另一方面,在第一终端通过网络侧向第二终端传输数据时,为避免传输链路的拥塞,网络侧通常使用拥塞控制算法使多个终端共享第一终端和第二终端之间的传输链路的带宽,这将进一步增加传输数据的时间,进而导致第二终端的计算资源处于空闲状态的时间增加,计算资源的利用率更低。Based on the packet forwarding network, the second terminal can process the data only after receiving all the data packets corresponding to the data. Since it takes a long time for the second terminal to receive all the data packets corresponding to the data, its computing resources are in an idle state, which will reduce the utilization rate of the computing resources of the second terminal. On the other hand, when the first terminal transmits data to the second terminal through the network side, in order to avoid the congestion of the transmission link, the network side usually uses a congestion control algorithm to make multiple terminals share the transmission between the first terminal and the second terminal. The bandwidth of the link will further increase the time for transmitting data, which will further increase the time during which the computing resources of the second terminal are in an idle state, and the utilization rate of computing resources will be lower.
基于上述现象,未来网络提出了一种突发转发技术,第一终端可以将一个完整的数据封装为一个完整的数据包进行发送,这样第二终端接收到该数据包后可以立即开始对该数据进行处理,从而提高第二终端的计算资源利用率。Based on the above phenomenon, the future network proposes a burst forwarding technology, the first terminal can encapsulate a complete data into a complete data packet and send it, so that the second terminal can immediately start processing the data after receiving the data packet. Processing is performed, so as to improve the utilization rate of computing resources of the second terminal.
本申请实施例提供一种终端的网络协议栈架构示意图,如图1所示,该网络协议栈包括业务数据适配协议(service data adaptation protocol,SDAP)层、分组数据汇聚协议(packet data convergence protocol,PDCP)层、无线链路控制(radio linkcontrolstructure,RLC)层、媒体接入控制(medium access control,MAC)层和物理(physical,PHY)层;相应的,对端的网络侧的协议栈也如终端的协议栈,包括SDAP层、PDCP层、RLC层、MAC层和PHY层。An embodiment of the present application provides a schematic diagram of a terminal network protocol stack architecture, as shown in FIG. 1 , the network protocol stack includes a service data adaptation protocol (service data adaptation protocol, SDAP) layer, a packet data convergence protocol (packet data convergence protocol) , PDCP) layer, radio link control structure (radio link control structure, RLC) layer, medium access control (medium access control, MAC) layer and physical (physical, PHY) layer; correspondingly, the protocol stack of the peer network side is also as The protocol stack of the terminal, including SDAP layer, PDCP layer, RLC layer, MAC layer and PHY layer.
其中,PDCP层通过RLC层的逻辑信道与MAC层通信,RLC层从PDCP层接收的数据或发送给PDCP层的数据称为RLC SDU或PDCP PDU;RLC层从MAC层接收的数据或发送给MAC层的数据称为RLC PDU或MAC SDU。这里协议数据单元(protocol data unit,PDU)用于指示根据相关协议传输数据,服务数据单元(service data unit,SDU)用于承载传输的数据。Among them, the PDCP layer communicates with the MAC layer through the logical channel of the RLC layer. The data received by the RLC layer from the PDCP layer or sent to the PDCP layer is called RLC SDU or PDCP PDU; the data received by the RLC layer from the MAC layer or sent to the MAC layer Layer data is called RLC PDU or MAC SDU. Here, a protocol data unit (protocol data unit, PDU) is used to indicate data transmission according to a related protocol, and a service data unit (service data unit, SDU) is used to bear the transmitted data.
基于上述的网络协议栈架构,如图2所示,提供一种终端下行数据通过图1所示所有协议层的流程示意图,给定三个互联网协议(internet protocol,IP)数据包,分别为IP数据包x、IP数据包y以及IP数据包z,图2示出了IP数据包通过各个协议层传输的过程。如图2所示,RLC层在向MAC层传输数据包时,RLC实体可以根据MAC实体发送的传输指令对RLCPDU进行分段,如图2中的两个RLC PDU Segment。这里传输指令可以指示传输块大小。Based on the above-mentioned network protocol stack architecture, as shown in Figure 2, a flow diagram of terminal downlink data passing through all protocol layers shown in Figure 1 is provided, and three Internet protocol (internet protocol, IP) data packets are given, respectively IP Data packet x, IP data packet y and IP data packet z, Fig. 2 shows the process of IP data packet transmission through each protocol layer. As shown in Figure 2, when the RLC layer transmits data packets to the MAC layer, the RLC entity can segment the RLC PDU according to the transmission instruction sent by the MAC entity, such as the two RLC PDU Segments in Figure 2 . Here the transfer instruction may indicate the transfer block size.
本发明实施例提供的数据包传输方法可以适用于无线网络的通信系统。图3示出了该通信系统的一种结构示意图。如图3所示,通信系统10包括RLC实体101以及MAC实体102。其中,RLC实体101与MAC实体102通过图1所示的网络协议进行通信。The data packet transmission method provided by the embodiment of the present invention can be applied to a communication system of a wireless network. Fig. 3 shows a schematic structural diagram of the communication system. As shown in FIG. 3 , the communication system 10 includes an RLC entity 101 and a MAC entity 102 . Wherein, the RLC entity 101 and the MAC entity 102 communicate through the network protocol shown in FIG. 1 .
RLC实体101可以为终端的RLC实体,也可以为基站的RLC实体,本实施例对此不作限定。The RLC entity 101 may be the RLC entity of the terminal or the RLC entity of the base station, which is not limited in this embodiment.
相应的,MAC实体102可以为终端的MAC实体,也可以为基站的MAC实体,本实施例对此不作限定。Correspondingly, the MAC entity 102 may be the MAC entity of the terminal or the MAC entity of the base station, which is not limited in this embodiment.
RLC实体101用于MAC实体102发送的传输指令;对于多个待传输数据包中的当前待传输数据包,RLC实体101确定当前待传输数据包的大小;在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在目标数据包,RLC实体101则向MAC实体发送目标数据包。The RLC entity 101 is used for the transmission instruction sent by the MAC entity 102; for the current data packet to be transmitted in a plurality of data packets to be transmitted, the RLC entity 101 determines the size of the current data packet to be transmitted; when the size of the current data packet to be transmitted is greater than the transmission In the case of the block size, if there is a target data packet among the multiple data packets to be transmitted, the RLC entity 101 sends the target data packet to the MAC entity.
下面结合附图对本发明实施例提供的数据包传输方法进行具体描述。The data packet transmission method provided by the embodiment of the present invention will be specifically described below in conjunction with the accompanying drawings.
如图4所示,本发明实施例提供的数据包传输方法,包括下述S201-S205:As shown in Figure 4, the data packet transmission method provided by the embodiment of the present invention includes the following S201-S205:
S201、RLC实体接收MAC实体发送的传输指令。S201. The RLC entity receives the transmission instruction sent by the MAC entity.
其中,传输指令用于指示RLC实体向MAC实体传输数据包;传输指令包括传输块大小。Wherein, the transmission instruction is used to instruct the RLC entity to transmit the data packet to the MAC entity; the transmission instruction includes the size of the transmission block.
需要说明的,在5GNR中为了降低时延,RLC实体在接收到MAC实体发送的传输指令之前,每从PDCP层接收到一个RLC SDU后,可立即生成一个RLC PDU(包含了头部信息),并保存在缓存器(buffer)中等待发送,即每个RLC SDU对应一个RLC PDU。It should be noted that in order to reduce the delay in 5GNR, the RLC entity can generate an RLC PDU (including header information) immediately after receiving an RLC SDU from the PDCP layer before receiving the transmission instruction sent by the MAC entity. And stored in the buffer (buffer) waiting to be sent, that is, each RLC SDU corresponds to one RLC PDU.
RLC实体在接收到MAC实体发送的传输指令之后,根据传输指令中指示的传输块大小,按照每个RLC PDU生成的先后顺序,依次将这些RLC PDU填充到传输块中进行发送。After the RLC entity receives the transmission instruction sent by the MAC entity, according to the transmission block size indicated in the transmission instruction, and according to the order in which each RLC PDU is generated, these RLC PDUs are sequentially filled into the transmission block and sent.
RLC实体的工作模式包括:透传模式(transparent mode,TM),非确认模式(unacknowledged mode,UM)和确认模式(acknowledged mode,AM)。The working modes of the RLC entity include: transparent mode (transparent mode, TM), unacknowledged mode (unacknowledged mode, UM) and acknowledged mode (acknowledged mode, AM).
对于UM和AM模式而言,MAC实体指示的传输块大小未必能够保证每一个RLC PDU都完整地发出去,即某个RLC PDU无法完整的填充到传输块中,则该RLC PDU就需要被分段,并重新生成RLC头部以及新的RLC PDU,将分段后的一部分RLC PDU填充到传输块中进行发送,未发送的部分RLC PDU,则需要等待下次传输指令到来时,才可发送。对于TM模式而言,这种模式普遍用于小信令包,MAC实体指示的传输块大小一般都可以保证该模式下生成的RLCPDU都完整地发出去。For UM and AM modes, the transport block size indicated by the MAC entity may not be able to ensure that each RLC PDU is completely sent out, that is, if a certain RLC PDU cannot be completely filled into the transport block, the RLC PDU needs to be divided Segment, and regenerate the RLC header and new RLC PDU, fill part of the segmented RLC PDU into the transmission block and send it, and the unsent part of the RLC PDU needs to wait for the arrival of the next transmission command before sending . For the TM mode, this mode is generally used for small signaling packets, and the transport block size indicated by the MAC entity can generally ensure that the RLC PDUs generated in this mode are completely sent out.
S202、对于多个待传输数据包中的当前待传输数据包,RLC实体确定当前待传输数据包的大小。S202. For the current data packet to be transmitted among the multiple data packets to be transmitted, the RLC entity determines the size of the current data packet to be transmitted.
作为一种可能实现的方式,RLC实体在接收到MAC实体发送的传输指令后,从buffer中的多个待传输数据包中,确定当前待传输数据包的大小。As a possible implementation manner, after receiving the transmission instruction sent by the MAC entity, the RLC entity determines the size of the current data packet to be transmitted from the multiple data packets to be transmitted in the buffer.
示例性的,RLC实体buffer中有3个待传输数据包,分别为RLC PDU1、RLC PDU2、RLCPDU3;RLC实体当前准备传输RLC PDU1,则RLC实体确定RLC PDU1的大小。Exemplarily, there are 3 data packets to be transmitted in the buffer of the RLC entity, namely RLC PDU1, RLC PDU2, and RLC PDU3; the RLC entity is currently preparing to transmit the RLC PDU1, and the RLC entity determines the size of the RLC PDU1.
S203、RLC实体判断当前待传输数据包的大小是否大于传输块大小。S203. The RLC entity judges whether the size of the currently to-be-transmitted data packet is greater than the size of the transmission block.
作为一种可能实现的方式,RLC实体将确定到的当前待传输数据包的大小,与MAC实体发送的传输指令中传输块大小比较,判断当前待传输数据包的大小是否大于传输块大小。As a possible implementation, the RLC entity compares the determined size of the currently to-be-transmitted data packet with the size of the transmission block in the transmission command sent by the MAC entity, and determines whether the size of the current to-be-transmitted data packet is greater than the size of the transmission block.
示例性的,当前待传输数据包RLC PDU1的大小为8Kb,而传输块大小为4Kb,则RLC实体判定当前待传输数据包的大小大于传输块大小。Exemplarily, if the size of the currently to-be-transmitted data packet RLC PDU1 is 8Kb, and the size of the transport block is 4Kb, the RLC entity determines that the size of the current to-be-transmitted data packet is greater than the size of the transport block.
S204、在当前待传输数据包的大小大于传输块大小的情况下,RLC实体依次确定其它待传输数据包的大小,并判断是否存在目标数据包。S204. In the case that the size of the current data packet to be transmitted is greater than the size of the transmission block, the RLC entity sequentially determines the sizes of other data packets to be transmitted, and judges whether there is a target data packet.
其中,目标数据包的大小小于或者等于传输块大小。Wherein, the size of the target data packet is smaller than or equal to the size of the transmission block.
作为一种可能实现的方式,在当前待传输数据包的大小大于传输块大小的情况下,RLC实体依次确定buffer中的其它待传输数据包的大小。对于每个确定到的待传输数据包,RLC实体将该数据包大小与传输块大小比较,判断该数据包大小是否小于或者等于传输块大小;若存在满足条件的数据包,则RLC实体判断存在目标数据包;否则,RLC实体判断不存在目标数据包。As a possible implementation manner, when the size of the currently to-be-transmitted data packet is greater than the size of the transmission block, the RLC entity sequentially determines the sizes of other to-be-transmitted data packets in the buffer. For each determined data packet to be transmitted, the RLC entity compares the size of the data packet with the size of the transmission block to determine whether the size of the data packet is less than or equal to the size of the transmission block; the target data packet; otherwise, the RLC entity judges that there is no target data packet.
示例性的,RLC实体buffer中有3个待传输数据包,分别为RLC PDU1、RLC PDU2、RLCPDU3;当前待传输数据包RLC PDU1的大小大于传输块大小,则RLC实体依次确定RLC PDU2、RLC PDU3的大小,并分别将RLC PDU2、RLC PDU3的大小与传输块大小比较;若RLC PDU2或者RLC PDU3的大小小于或者等于传输块大小,则RLC实体判断存在目标数据包。Exemplarily, there are three data packets to be transmitted in the buffer of the RLC entity, which are RLC PDU1, RLC PDU2, and RLC PDU3 respectively; the size of the current data packet RLC PDU1 to be transmitted is greater than the size of the transmission block, and the RLC entity sequentially determines RLC PDU2 and RLC PDU3 and compare the size of RLC PDU2 and RLC PDU3 with the size of the transport block; if the size of RLC PDU2 or RLC PDU3 is less than or equal to the size of the transport block, the RLC entity determines that there is a target data packet.
S205、若多个待传输数据包中存在目标数据包,RLC实体则向MAC实体发送目标数据包。S205. If there is a target data packet among the multiple data packets to be transmitted, the RLC entity sends the target data packet to the MAC entity.
示例性的,RLC实体buffer中有3个待传输数据包,分别为RLC PDU1、RLC PDU2、RLCPDU3;当前待传输数据包RLC PDU1的大小大于传输块大小,则RLC实体依次确定RLC PDU2、RLC PDU3的大小,而RLC PDU2的大小依然大于传输块大小,但RLC PDU3的大小小于传输块大小,则RLC实体将RLC PDU3作为目标数据包,并向MAC实体发送该数据包。Exemplarily, there are three data packets to be transmitted in the buffer of the RLC entity, which are RLC PDU1, RLC PDU2, and RLC PDU3 respectively; the size of the current data packet RLC PDU1 to be transmitted is greater than the size of the transmission block, and the RLC entity sequentially determines RLC PDU2 and RLC PDU3 , and the size of RLC PDU2 is still larger than the transport block size, but the size of RLC PDU3 is smaller than the transport block size, then the RLC entity uses RLC PDU3 as the target data packet, and sends the data packet to the MAC entity.
在一种设计中,在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中不存在目标数据包,如图5所示,本发明实施例提供的上述S205之后,还包括下述S301-S307。In one design, when the size of the current data packet to be transmitted is greater than the size of the transmission block, if there is no target data packet among the multiple data packets to be transmitted, as shown in FIG. 5 , the above S205 provided by the embodiment of the present invention Afterwards, the following S301-S307 are also included.
S301、RLC实体获取当前待传输数据包的轮询值。S301. The RLC entity acquires a polling value of a data packet currently to be transmitted.
其中,当前待传输数据包的轮询值为RLC实体执行确定当前待传输数据包的大小的次数。Wherein, the polling value of the currently to-be-transmitted data packet is the number of times the RLC entity determines the size of the current to-be-transmitted data packet.
需要说明的,对于RLC实体buffer中每个待传输数据包都设有一个初始轮询值。初始轮询值为运维人员预先设置的,一般情况下,运维人员将该初始轮询值设为Nseg=0。It should be noted that an initial polling value is set for each to-be-transmitted data packet in the RLC entity buffer. The initial polling value is preset by the operation and maintenance personnel. Generally, the operation and maintenance personnel set the initial polling value as Nseg=0.
对于任意一个当前待传输数据包,RLC实体确定该数据包的大小之后,RLC实体按照预设增量更新该数据包的轮询值。预设增量为运维人员预先设置的,一般情况下,运维人员将该预设增量设为1,即RLC实体每确定一次该数据包的大小,该数据包对应的轮询值加1。For any current data packet to be transmitted, after the RLC entity determines the size of the data packet, the RLC entity updates the polling value of the data packet according to a preset increment. The preset increment is preset by the operation and maintenance personnel. Generally, the operation and maintenance personnel set the preset increment to 1, that is, each time the RLC entity determines the size of the data packet, the polling value corresponding to the data packet is increased by 1.
作为一种可能实现的方式,在当前待传输数据包的大小大于传输块大小,且多个待传输数据包中不存在目标数据包的情况下,RLC实体获取当前待传输数据包的轮询值。As a possible implementation, when the size of the current data packet to be transmitted is greater than the size of the transmission block, and there is no target data packet among the multiple data packets to be transmitted, the RLC entity obtains the polling value of the current data packet to be transmitted .
S302、RLC实体判断当前待传输数据包的轮询值是否大于或者等于第一阈值。S302. The RLC entity judges whether the polling value of the currently to-be-transmitted data packet is greater than or equal to a first threshold.
需要说明的,第一阈值为运维人员预先在RLC实体中设置的。It should be noted that the first threshold is pre-set by the operation and maintenance personnel in the RLC entity.
作为一种可能实现的方式,RLC实体将当前待传输数据包的轮询值,与第一阈值进行比较,判断当前待传输数据包的轮询值是否大于或者等于第一阈值。As a possible implementation manner, the RLC entity compares the polling value of the current data packet to be transmitted with the first threshold, and determines whether the polling value of the current data packet to be transmitted is greater than or equal to the first threshold.
S303、在当前待传输数据包的轮询值大于或者等于第一阈值的情况下,RLC实体向MAC实体发送当前待传输数据包。S303. When the polling value of the current data packet to be transmitted is greater than or equal to the first threshold, the RLC entity sends the current data packet to be transmitted to the MAC entity.
示例性的,当前待传输数据包的轮询值为5,且第一阈值为5,表明当前待传输数据包的轮询值等于第一阈值,RLC实体则向MAC实体发送当前待传输数据包。Exemplarily, the polling value of the current data packet to be transmitted is 5, and the first threshold is 5, indicating that the polling value of the current data packet to be transmitted is equal to the first threshold, and the RLC entity sends the current data packet to be transmitted to the MAC entity .
可以理解的,此时RLC实体buffer中已不存在目标数据包,即使将该数据包分段发送也不会对目标数据包造成影响,且当前待传输数据包已被轮询多次,这样可以确保该数据包也能成功发送。It can be understood that the target data packet does not exist in the buffer of the RLC entity at this time, even if the data packet is sent in segments, it will not affect the target data packet, and the current data packet to be transmitted has been polled multiple times, so that Make sure that packet is also sent successfully.
S304、在当前待传输数据包的轮询值小于第一阈值的情况下,RLC实体获取传输时长。S304. In the case that the polling value of the current data packet to be transmitted is smaller than the first threshold, the RLC entity obtains the transmission duration.
其中,传输时长为RLC实体响应于传输指令开始计时得到的时长。Wherein, the transmission duration is the duration obtained by the RLC entity starting timing in response to the transmission instruction.
需要说明的,运维人员预先在RLC实体中设置计时器,当RLC实体接收到MAC发送的传输指令后,该计时器开始计时。It should be noted that the operation and maintenance personnel set a timer in the RLC entity in advance, and the timer starts counting when the RLC entity receives the transmission instruction sent by the MAC.
作为一种可能实现的方式,在当前待传输数据包的轮询值小于第一阈值的情况下,RLC实体从计时器中获取传输时长。As a possible implementation manner, when the polling value of the currently to-be-transmitted data packet is smaller than the first threshold, the RLC entity obtains the transmission duration from the timer.
S305、RLC实体判断传输时长是否大于或者等于第二阈值。S305. The RLC entity determines whether the transmission duration is greater than or equal to a second threshold.
需要说明的,第二阈值为运维人员预先在RLC实体中设置的。It should be noted that the second threshold is pre-set by the operation and maintenance personnel in the RLC entity.
作为一种可能实现的方式,RLC实体将传输时长,与第二阈值进行比较,判断传输时长是否大于或者等于第二阈值。As a possible implementation manner, the RLC entity compares the transmission duration with the second threshold, and determines whether the transmission duration is greater than or equal to the second threshold.
例如,RLC实体获取到的传输时长为9ms,第二阈值为10ms,则判断传输时长小于第二阈值;RLC实体获取到的传输时长为10ms,第二阈值为9ms,则判断传输时长大于第二阈值。For example, if the transmission duration obtained by the RLC entity is 9ms and the second threshold is 10ms, it is judged that the transmission duration is less than the second threshold; the transmission duration obtained by the RLC entity is 10ms, and the second threshold is 9ms, then it is judged that the transmission duration is longer than the second threshold threshold.
S306、在传输时长大于或者等于第二阈值的情况下,RLC实体向MAC实体发送当前待传输数据包。S306. In the case that the transmission duration is greater than or equal to the second threshold, the RLC entity sends the current data packet to be transmitted to the MAC entity.
作为一种可能实现的方式,在传输时长大于或者等于第二阈值的情况下,RLC实体向MAC实体发送当前待传输数据包,且将传输时长归零,等下次接收到MAC的传输指令后重新开始计时。As a possible implementation, when the transmission duration is greater than or equal to the second threshold, the RLC entity sends the current data packet to be transmitted to the MAC entity, and resets the transmission duration to zero, and waits until the next transmission instruction from the MAC is received. Start timing again.
可以理解的,此时RLC实体buffer中已不存在目标数据包,即使将该数据包分段发送也不会对目标数据包造成影响,且传输时长已经超过预设时长,这样可以尽可能的减少传输时间。It is understandable that the target data packet does not exist in the RLC entity buffer at this time, even if the data packet is sent in segments, it will not affect the target data packet, and the transmission time has exceeded the preset time length, which can be reduced as much as possible transmission time.
S307、在传输时长小于第二阈值的情况下,RLC实体将buffer中位于当前数据包的下一待传输数据包确定为当前待传输数据包,继续执行S301-S307。S307. In the case that the transmission duration is less than the second threshold, the RLC entity determines the next data packet to be transmitted located in the current data packet in the buffer as the current data packet to be transmitted, and continues to execute S301-S307.
上述实施例提供的技术方案至少带来以下有益效果:RLC实体接收到MAC实体发送的用于指示RLC实体向MAC实体传输数据包的传输指令后,确定多个待传输数据包中待传输的当前待传输数据包的大小;由于传输指令中包括传输块大小,因此在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在大小小于或者等于传输块的目标数据包,则向MAC实体发送目标数据包,而并非直接向MAC实体发送当前待传输数据包。这样一来,可以减少因当前待传输数据包的大小大于传输块大小导致当前待传输数据包产生分段后,对大小小于或者等于传输块大小的待传输数据包的影响,避免产生恶性循环进而造成接收端的计算资源利用率低下的问题。The technical solutions provided by the above embodiments bring at least the following beneficial effects: after the RLC entity receives the transmission instruction sent by the MAC entity for instructing the RLC entity to transmit data packets to the MAC entity, it determines the current data packet to be transmitted among the multiple data packets to be transmitted. The size of the data packet to be transmitted; since the transmission instruction includes the size of the transmission block, if the size of the current data packet to be transmitted is greater than the size of the transmission block, if there are targets whose size is smaller than or equal to the transmission block among the multiple data packets to be transmitted data packet, send the target data packet to the MAC entity instead of directly sending the current data packet to be transmitted to the MAC entity. In this way, the impact on the data packets to be transmitted whose size is smaller than or equal to the size of the transmission block after the current data packet to be transmitted is segmented due to the size of the current data packet to be transmitted being larger than the size of the transmission block can be reduced, thereby avoiding a vicious circle and further This causes a problem of low utilization of computing resources at the receiving end.
上述主要从方法的角度对本发明实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present invention from the perspective of methods. In order to realize the above functions, it includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
本发明实施例可以根据上述方法示例对上述设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present invention, the functional modules of the above-mentioned device can be divided according to the above-mentioned method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in this embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
图6为本发明实施例提供的一种RLC实体的结构示意图。如图6所示,该RLC实体40用于执行上述数据包传输方法,该RLC实体40包括接收单元401、确定单元402、判断单元403以及发送单元404。FIG. 6 is a schematic structural diagram of an RLC entity provided by an embodiment of the present invention. As shown in FIG. 6 , the RLC entity 40 is configured to implement the above data packet transmission method, and the RLC entity 40 includes a receiving unit 401 , a determining unit 402 , a judging unit 403 and a sending unit 404 .
接收单元401,用于接收媒体接入控制MAC实体发送的传输指令;传输指令用于指示RLC实体向MAC实体传输数据包;传输指令包括传输块大小。例如,如图4所示,接收单元401可以用于执行S201。The receiving unit 401 is configured to receive a transmission instruction sent by a medium access control MAC entity; the transmission instruction is used to instruct the RLC entity to transmit a data packet to the MAC entity; the transmission instruction includes a transmission block size. For example, as shown in FIG. 4 , the receiving unit 401 may be configured to perform S201.
确定单元402,用于对于多个待传输数据包中的当前待传输数据包,确定当前待传输数据包的大小。例如,如图4所示,接收单元401可以用于执行S202。The determining unit 402 is configured to determine the size of the current data packet to be transmitted for the current data packet to be transmitted in the plurality of data packets to be transmitted. For example, as shown in FIG. 4 , the receiving unit 401 may be configured to perform S202.
判断单元403,用于判断当前待传输数据包的大小是否大于传输块大小。例如,如图4所示,接收单元401可以用于执行S203。The judging unit 403 is configured to judge whether the size of the currently to-be-transmitted data packet is larger than the size of the transmission block. For example, as shown in FIG. 4 , the receiving unit 401 may be configured to perform S203.
判断单元403,还用于在当前待传输数据包的大小大于传输块大小的情况下,依次确定其它待传输数据包的大小,并判断是否存在目标数据包。例如,如图4所示,接收单元401可以用于执行S204。The judging unit 403 is further configured to sequentially determine the sizes of other data packets to be transmitted and judge whether there is a target data packet if the size of the current data packet to be transmitted is greater than the size of the transmission block. For example, as shown in FIG. 4 , the receiving unit 401 may be configured to perform S204.
发送单元404,用于在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中存在目标数据包,则向MAC实体发送目标数据包;目标数据包的大小小于或者等于传输块大小。例如,如图4所示,接收单元401可以用于执行S205。The sending unit 404 is used to send the target data packet to the MAC entity if the size of the current data packet to be transmitted is greater than the size of the transmission block, if there is a target data packet in a plurality of data packets to be transmitted; the size of the target data packet is less than Or equal to the transport block size. For example, as shown in FIG. 4, the receiving unit 401 may be configured to perform S205.
可选的,RLC实体40还包括获取单元405。Optionally, the RLC entity 40 further includes an acquiring unit 405 .
获取单元405,用于在当前待传输数据包的大小大于传输块大小的情况下,若多个待传输数据包中不存在目标数据包,则获取当前待传输数据包的轮询值;当前待传输数据包的轮询值为RLC实体执行确定当前待传输数据包的大小的次数。Acquisition unit 405, used to obtain the polling value of the current data packet to be transmitted if the size of the current data packet to be transmitted is greater than the size of the transmission block, if there is no target data packet in the multiple data packets to be transmitted; The polling value of the transmitted data packet is the number of times the RLC entity determines the size of the currently to-be-transmitted data packet.
发送单元404,还用于在当前待传输数据包的轮询值大于或者等于第一阈值的情况下,向MAC实体发送当前待传输数据包。The sending unit 404 is further configured to send the current data packet to be transmitted to the MAC entity when the polling value of the current data packet to be transmitted is greater than or equal to the first threshold.
可选的,RLC实体40还包括更新单元406。Optionally, the RLC entity 40 further includes an update unit 406 .
更新单元406,用于按照预设增量更新当前待传输数据包的轮询值。The updating unit 406 is configured to update the polling value of the current data packet to be transmitted according to a preset increment.
可选的,获取单元405,还用于在当前待传输数据包的轮询值小于第一阈值的情况下,获取传输时长;传输时长为RLC实体响应于传输指令开始计时得到的时长。Optionally, the acquiring unit 405 is further configured to acquire the transmission duration when the polling value of the current data packet to be transmitted is less than the first threshold; the transmission duration is the duration obtained by the RLC entity starting timing in response to the transmission instruction.
发送单元404,还用于在传输时长大于或者等于第二阈值的情况下,向MAC实体发送当前待传输数据包。The sending unit 404 is further configured to send the currently to-be-transmitted data packet to the MAC entity when the transmission duration is greater than or equal to the second threshold.
在采用硬件的形式实现上述集成的模块的功能的情况下,本发明实施例提供了一种RLC实体的一种可能的结构示意图。该RLC实体用于执行上述实施例中数据包传输方法。如图7所示,该RLC实体50包括处理器501,存储器502以及总线503。处理器501与存储器502之间可以通过总线503连接。In the case that the functions of the above-mentioned integrated modules are implemented in the form of hardware, the embodiment of the present invention provides a schematic diagram of a possible structure of an RLC entity. The RLC entity is used to execute the data packet transmission method in the above embodiments. As shown in FIG. 7 , the RLC entity 50 includes a processor 501 , a memory 502 and a bus 503 . The processor 501 and the memory 502 may be connected through a bus 503 .
处理器501是RLC实体的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器501可以是一个通用中央处理单元(central processing unit,CPU),也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The processor 501 is the control center of the RLC entity, and may be one processor, or may be a general term for multiple processing elements. For example, the processor 501 may be a general-purpose central processing unit (central processing unit, CPU), or other general-purpose processors. Wherein, the general-purpose processor may be a microprocessor or any conventional processor.
作为一种实施例,处理器501可以包括一个或多个CPU,例如图7中所示的CPU 0和CPU 1。As an embodiment, the processor 501 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 7 .
存储器502可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 502 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions The dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a magnetic disk storage medium or other magnetic storage devices, or can be used to carry or store instructions or data structures desired program code and any other medium that can be accessed by a computer, but not limited thereto.
作为一种可能的实现方式,存储器502可以独立于处理器501存在,存储器502可以通过总线503与处理器501相连接,用于存储指令或者程序代码。处理器501调用并执行存储器502中存储的指令或程序代码时,能够实现本发明实施例提供的数据包传输方法。As a possible implementation manner, the memory 502 may exist independently of the processor 501, and the memory 502 may be connected to the processor 501 through the bus 503, and is used for storing instructions or program codes. When the processor 501 invokes and executes the instructions or program codes stored in the memory 502, the data packet transmission method provided by the embodiment of the present invention can be realized.
另一种可能的实现方式中,存储器502也可以和处理器501集成在一起。In another possible implementation manner, the memory 502 may also be integrated with the processor 501 .
总线503,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外围设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 503 may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.
需要指出的是,图7示出的结构并不构成对该RLC实体50的限定。除图7所示部件之外,该RLC实体50可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the structure shown in FIG. 7 does not limit the RLC entity 50 . In addition to the components shown in FIG. 7, the RLC entity 50 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.
作为一个示例,结合图6,RLC实体40中的接收单元401、确定单元402、判断单元403以及发送单元404实现的功能与图7中的处理器501的功能相同。As an example, with reference to FIG. 6 , the functions implemented by the receiving unit 401 , the determining unit 402 , the judging unit 403 and the sending unit 404 in the RLC entity 40 are the same as those of the processor 501 in FIG. 7 .
可选的,如图7所示,本发明实施例提供的RLC实体50还可以包括通信接口504。Optionally, as shown in FIG. 7 , the RLC entity 50 provided in this embodiment of the present invention may further include a communication interface 504 .
通信接口504,用于与其他设备通过通信网络连接。该通信网络可以是以太网,无线接入网,无线局域网(wireless local area networks,WLAN)等。通信接口504可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The communication interface 504 is used to connect with other devices through the communication network. The communication network may be Ethernet, wireless access network, wireless local area network (wireless local area networks, WLAN) and so on. The communication interface 504 may include a receiving unit for receiving data, and a sending unit for sending data.
在一种设计中,本发明实施例提供的电子设备中,通信接口还可以集成在处理器中。In one design, in the electronic device provided by the embodiment of the present invention, the communication interface may also be integrated in the processor.
图8示出了本发明实施例中RLC实体的另一种硬件结构。如图8所示,RLC实体60可以包括处理器601以及通信接口602。处理器601与通信接口602耦合。Fig. 8 shows another hardware structure of the RLC entity in the embodiment of the present invention. As shown in FIG. 8 , the RLC entity 60 may include a processor 601 and a communication interface 602 . Processor 601 is coupled with communication interface 602 .
处理器601的功能可以参考上述处理器601的描述。此外,处理器601还具备存储功能,可以参考上述存储器502的功能。For functions of the processor 601, reference may be made to the description of the processor 601 above. In addition, the processor 601 also has a storage function, and reference may be made to the function of the above-mentioned memory 502 .
通信接口602用于为处理器601提供数据。该通信接口602可以是RLC实体的内部接口,也可以是RLC实体对外的接口(相当于通信接口604)。The communication interface 602 is used to provide data to the processor 601 . The communication interface 602 may be an internal interface of the RLC entity, or an external interface of the RLC entity (equivalent to the communication interface 604).
需要指出的是,图8中示出的结构并不构成对RLC实体的限定,除图8所示部件之外,该RLC实体60可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 8 does not constitute a limitation on the RLC entity. Except for the components shown in FIG. 8, the RLC entity 60 may include more or less components than shown in the figure, or combine certain some components, or a different arrangement of components.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当计算机执行该指令时,该计算机执行上述方法实施例所示的方法流程中的各个步骤。An embodiment of the present invention also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above-mentioned method embodiments.
本发明的实施例提供一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行上述方法实施例中的数据包传输方法。An embodiment of the present invention provides a computer program product containing instructions, and when the instructions are run on a computer, the computer is made to execute the data packet transmission method in the above method embodiments.
其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘。随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的人以合适的组合、或者本领域数值的任何其他形式的计算机可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integrated Circuit,ASIC)中。在本发明实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Wherein, the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connection having one or more wires, portable computer disk, hard disk. Random Access Memory (Random Access Memory, RAM), Read-Only Memory (Read-Only Memory, ROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact Disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium in a suitable combination of the above, or values in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC). In the embodiments of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.
由于本发明的实施例中的装置、设备计算机可读存储介质、计算机程序产品可以应用于上述方法,因此,其所能获得的技术效果也可参考上述方法实施例,本发明实施例在此不再赘述。Since the device, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above methods, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention are not described herein Let me repeat.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何在本发明揭露的技术范围内的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or replacements within the technical scope disclosed in the present invention shall be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111459247.6A CN114205307B (en) | 2021-12-02 | 2021-12-02 | Data packet transmission method, RLC entity and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111459247.6A CN114205307B (en) | 2021-12-02 | 2021-12-02 | Data packet transmission method, RLC entity and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114205307A CN114205307A (en) | 2022-03-18 |
| CN114205307B true CN114205307B (en) | 2023-07-18 |
Family
ID=80650183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111459247.6A Active CN114205307B (en) | 2021-12-02 | 2021-12-02 | Data packet transmission method, RLC entity and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114205307B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119109879A (en) * | 2024-09-29 | 2024-12-10 | 上海稀宇极智科技有限公司 | A network packet transmission method, system and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105517053A (en) * | 2016-02-01 | 2016-04-20 | 京信通信技术(广州)有限公司 | Method and system for reducing wireless link control layer protocol data unit subdivision sections |
| CN106713187A (en) * | 2015-11-17 | 2017-05-24 | 大唐移动通信设备有限公司 | Message transmission method and device |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE10252533A1 (en) * | 2002-11-08 | 2004-05-27 | Philips Intellectual Property & Standards Gmbh | Transmission method of data packets from transmitter to receiver, involves retransmission of selected left over data packets in another container during transmission abortion |
| EP1879333A1 (en) * | 2006-07-12 | 2008-01-16 | Siemens Aktiengesellschaft | Method for transmitting packets in a network |
| CN101166138A (en) * | 2006-10-19 | 2008-04-23 | 中兴通讯股份有限公司 | Device for L2 virtual private network service transmission |
| CN101170388B (en) * | 2006-10-27 | 2011-01-19 | 中兴通讯股份有限公司 | Method for identifying whether resending protocol data unit is sectioned |
| US7796646B2 (en) * | 2007-01-25 | 2010-09-14 | International Business Machines Corporation | Method and apparatus to perform segmentation off-load between two logical partitions |
| CN104521167A (en) * | 2013-06-28 | 2015-04-15 | 华为技术有限公司 | Data transmission method, apparatus, base station and user equipment |
| US9634949B2 (en) * | 2014-03-06 | 2017-04-25 | Samsung Electronics Co., Ltd | Method and apparatus for supporting large service data unit in mobile communication system |
| JP2019502313A (en) * | 2015-12-23 | 2019-01-24 | ノキア ソリューションズ アンド ネットワークス オサケユキチュア | Method, apparatus and computer program product for PDU format setting by SDU segmentation |
| US10700987B2 (en) * | 2016-09-09 | 2020-06-30 | Wipro Limited | System and method for transmitting data over a communication network |
| CN106936918B (en) * | 2017-03-24 | 2020-07-10 | 武汉虹信通信技术有限责任公司 | R L C PDU transmission method for L TE mobile communication system |
| CN107580233A (en) * | 2017-08-21 | 2018-01-12 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and computer equipment for transmitting data |
| US10476808B1 (en) * | 2018-03-07 | 2019-11-12 | Sprint Spectrum L.P. | Dynamic configuration of maximum transmission unit of UE, based on receipt of oversized packet(s) at network entity |
| CN110278612B (en) * | 2018-03-16 | 2022-07-12 | 华硕电脑股份有限公司 | Method and apparatus for handling multiple radio resource control procedures in wireless communication |
| CN113938431B (en) * | 2021-09-27 | 2023-06-23 | 中国联合网络通信集团有限公司 | Burst packet transmission method, device and electronic equipment |
-
2021
- 2021-12-02 CN CN202111459247.6A patent/CN114205307B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106713187A (en) * | 2015-11-17 | 2017-05-24 | 大唐移动通信设备有限公司 | Message transmission method and device |
| CN105517053A (en) * | 2016-02-01 | 2016-04-20 | 京信通信技术(广州)有限公司 | Method and system for reducing wireless link control layer protocol data unit subdivision sections |
Non-Patent Citations (1)
| Title |
|---|
| Evaluation of Jumboframes feasibility in LTE access networks;Marco Mezzavilla等;《2013 IEEE International Conference on Communications (ICC)》;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114205307A (en) | 2022-03-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9985749B2 (en) | Method and system for improving wireless link efficiency | |
| CN106664290B (en) | data transmission method and device of photoelectric hybrid network | |
| US7826457B2 (en) | Method and system for handling out-of-order segments in a wireless system via direct data placement | |
| US7953093B2 (en) | TCP/IP reordering | |
| US11159981B2 (en) | Congestion processing method and apparatus | |
| CN106034084B (en) | A data transmission method and device | |
| CN113938945B (en) | Method and device for sending data packets | |
| CN109803277B (en) | Method and apparatus for processing data packets | |
| CN108023683A (en) | A method, device, chip and terminal for sending messages | |
| CN110312282A (en) | Method and device for data transmission | |
| US10932159B2 (en) | Data transmission method, data receiving device, and data sending device | |
| JP7502691B2 (en) | Wireless communication device, wireless communication method, and wireless communication system | |
| TW201836328A (en) | Method and device for transmitting data using protocol data unit | |
| CN114286447A (en) | Method, device and storage medium for adjusting scheduling priority | |
| CN101742513B (en) | Counter check processing method, system and equipment | |
| CN114205307B (en) | Data packet transmission method, RLC entity and storage medium | |
| JP2004040493A (en) | Packet communication device and packet communication method | |
| CN113891398B (en) | A resource determination method, device and storage medium | |
| CN113938431B (en) | Burst packet transmission method, device and electronic equipment | |
| WO2021136278A1 (en) | Message transmission method and electronic device | |
| WO2019015487A1 (en) | Data retransmission method, rlc entity and mac entity | |
| KR100560742B1 (en) | Method and apparatus for processing Mac service data unit in wifi | |
| Fang et al. | Design and implementation of embedded rudp | |
| KR100639986B1 (en) | Method for reducing interrups of NIC in WLAN MAC system | |
| US20090290567A1 (en) | Wireless communication performing wireless lan communication |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |