CN115766909A - Data processing method, device and equipment applied to media access control layer - Google Patents

Data processing method, device and equipment applied to media access control layer Download PDF

Info

Publication number
CN115766909A
CN115766909A CN202111033697.9A CN202111033697A CN115766909A CN 115766909 A CN115766909 A CN 115766909A CN 202111033697 A CN202111033697 A CN 202111033697A CN 115766909 A CN115766909 A CN 115766909A
Authority
CN
China
Prior art keywords
pdu
data segment
parsing
header
transport block
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.)
Granted
Application number
CN202111033697.9A
Other languages
Chinese (zh)
Other versions
CN115766909B (en
Inventor
苏怀文
柴慧娟
杨旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111033697.9A priority Critical patent/CN115766909B/en
Priority to PCT/CN2022/116484 priority patent/WO2023030440A1/en
Publication of CN115766909A publication Critical patent/CN115766909A/en
Application granted granted Critical
Publication of CN115766909B publication Critical patent/CN115766909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/323Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the physical layer [OSI layer 1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation

Landscapes

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

Abstract

本申请公开了一种应用于媒体接入控制层的数据处理方法、装置及设备,涉及无线通信领域。该方法应用于终端设备中,该方法包括:从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;根据所述第一PDU数据分段更新所述传输块的解析进度指示。该方法可以按照CB对MAC PDU进行处理,减缓内存的访问压力。

Figure 202111033697

The application discloses a data processing method, device and equipment applied to a medium access control layer, and relates to the field of wireless communication. The method is applied to a terminal device, and the method includes: receiving from the physical layer the i-th code block of the transmission block used to carry the PDU of the media access control layer, the transmission block includes n code blocks, and i is A positive integer not greater than n, where n is a positive integer; parse the i-th code block according to the parsing progress indication of the transport block to obtain a first PDU data segment; update the An indication of the parsing progress of the transport block. This method can process the MAC PDU according to the CB, so as to relieve the memory access pressure.

Figure 202111033697

Description

应用于媒体接入控制层的数据处理方法、装置及设备Data processing method, device and equipment applied to media access control layer

技术领域technical field

本申请涉及无线通信领域,特别涉及一种应用于媒体接入控制层的数据处理方法、装置及设备。The present application relates to the field of wireless communication, and in particular to a data processing method, device and equipment applied to a media access control layer.

背景技术Background technique

LTE(Long Term Evolution,长期演进)是由第三代合作伙伴计划(The 3rdGeneration Partnership Project,3GGP)组织制定的通用移动通信系统(UniversalMobile Telecommunications System,UMTS)技术标准的长期演进。LTE (Long Term Evolution, Long Term Evolution) is a long-term evolution of the Universal Mobile Telecommunications System (UMTS) technical standard formulated by the 3rd Generation Partnership Project (The 3rd Generation Partnership Project, 3GGP) organization.

依据LTE用户面协议,网络设备MAC(Media Access Control,媒体接入控制)层和物理层(Physical Layer,PHY)的HARQ(Hybrid Automatic Repeat reQuest,混合自动重传请求)重传是基于CBG(Code Block Group,码块组)的。在下行数据包的处理流程中,终端的物理层接收网络设备发送的TB(Transport Block,传输块)。当TB中的部分CB(Code Block,码块)出现传输错误时,物理层缓存该TB,等待接收失败部分的CB重传,当TB接收完整后,PHY才会将TB递交给MAC层,由MAC层对TB进行处理。由此,会产生DDR(Double Data Rate,双倍速率)内存访问的峰值压力。According to the LTE user plane protocol, the HARQ (Hybrid Automatic Repeat reQuest, hybrid automatic repeat request) retransmission of the network equipment MAC (Media Access Control, media access control) layer and physical layer (Physical Layer, PHY) is based on CBG (Code Block Group, code block group). In the processing flow of the downlink data packet, the physical layer of the terminal receives a TB (Transport Block, transport block) sent by the network device. When part of the CB (Code Block, code block) in the TB has a transmission error, the physical layer caches the TB and waits for the retransmission of the CB that failed to receive the part. When the TB is completely received, the PHY will submit the TB to the MAC layer. The MAC layer processes TBs. As a result, the peak pressure of DDR (Double Data Rate, double rate) memory access will be generated.

发明内容Contents of the invention

本申请实施例提供了一种应用于媒体接入控制层的数据处理方法、装置及设备,可以按照CB对MAC PDU(Protocol Data Unit,协议数据单元)进行处理,减缓内存的访问压力。所述技术方案如下:The embodiment of the present application provides a data processing method, device and equipment applied to the media access control layer, which can process MAC PDU (Protocol Data Unit, protocol data unit) according to CB, and reduce memory access pressure. Described technical scheme is as follows:

根据本申请的一个方面,提供了一种应用于媒体接入控制层的数据处理方法,所述方法包括:According to one aspect of the present application, a data processing method applied to a media access control layer is provided, the method comprising:

从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;receiving from the physical layer the i-th code block of the transport block for carrying the PDU of the media access control layer, where the transport block includes n code blocks, i is a positive integer not greater than n, and n is a positive integer;

根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;Parsing the ith code block according to the parsing progress indication of the transport block to obtain the first PDU data segment;

根据所述第一PDU数据分段更新所述传输块的解析进度指示。updating the parsing progress indication of the transport block according to the first PDU data segment.

根据本申请的一个方面,提供了一种应用于媒体接入控制层的数据处理装置,所述装置包括:According to one aspect of the present application, a data processing device applied to a media access control layer is provided, the device comprising:

头部提取模块,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;A header extraction module, configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the medium access control layer, the transmission block includes n code blocks, and i is a positive value not greater than n Integer, n is a positive integer;

所述头部提取模块,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The header extraction module is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment;

所述头部提取模块,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The header extraction module is configured to update the parsing progress indication of the transport block according to the first PDU data segment.

根据本申请的一个方面,提供了一种终端设备,所述终端设备包括:处理器;其中,According to one aspect of the present application, a terminal device is provided, and the terminal device includes: a processor; wherein,

所述处理器,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;The processor is configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the media access control layer, the transmission block includes n code blocks, and i is a positive value not greater than n Integer, n is a positive integer;

所述处理器,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The processor is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment;

所述处理器,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The processor is configured to update the parsing progress indication of the transport block according to the first PDU data segment.

根据本申请的一个方面,提供了一种计算机可读存储介质,所述可读存储介质中存储有可执行指令,所述可执行指令由处理器加载并执行以实现如上述方面所述的应用于媒体接入控制层的数据处理方法。According to one aspect of the present application, a computer-readable storage medium is provided, wherein executable instructions are stored in the readable storage medium, and the executable instructions are loaded and executed by a processor to implement the application described in the above aspect A data processing method at the media access control layer.

根据本申请实施例的一个方面,提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片在计算机设备上运行时,用于实现上述方面所述的应用于媒体接入控制层的数据处理方法。According to one aspect of the embodiments of the present application, a chip is provided, the chip includes a programmable logic circuit and/or program instructions, and when the chip is run on a computer device, it is used to implement the application described in the above aspect The data processing method of the media access control layer.

根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品在计算机设备的处理器上运行时,使得计算机设备执行上述方面所述的应用于媒体接入控制层的数据处理方法。According to one aspect of the present application, a computer program product is provided. When the computer program product runs on a processor of a computer device, the computer device executes the data processing method applied to the medium access control layer described in the above aspect.

本申请实施例提供的技术方案至少包括如下有益效果:The technical solutions provided by the embodiments of the present application at least include the following beneficial effects:

通过从PHY接收到承载MAC PDU的TB的CB,以CB为解析对象对MAC PDU进行解析,得到各层的头部以及PDCP PDU。其中,由于CB所包含的字段可能不完整,例如,一个字段被两个相邻的CB分割为两部分,则在处理上一个CB时,根据CB的处理结果更新该TB的解析进度指示,解析进度指示用于存储CB的处理状态。在处理下一个CB时根据解析进度指示读取上一个CB未解析的字段,与下一个CB进行拼接,进而得到完整的字段,以便进行解析。因此,本申请实施例提供的方法,基于TB的解析进度指示能够实现对TB的CB进行逐个处理,以便PHY可以每接收一个CB就向高层传输一个CB,减轻终端设备内存的处理压力,降低数据包递交延时以及调制解调器的功耗。By receiving the CB of the TB carrying the MAC PDU from the PHY, the MAC PDU is analyzed with the CB as the analysis object, and the headers of each layer and the PDCP PDU are obtained. Among them, since the fields contained in the CB may be incomplete, for example, if a field is divided into two parts by two adjacent CBs, when processing the previous CB, the parsing progress indication of the TB is updated according to the processing result of the CB, and parsing The progress indicator is used to store the processing status of the CB. When processing the next CB, read the unparsed fields of the previous CB according to the parsing progress indication, and splicing with the next CB to obtain complete fields for parsing. Therefore, the method provided in the embodiment of the present application can process the CBs of TBs one by one based on the TB parsing progress indication, so that the PHY can transmit a CB to the upper layer every time it receives a CB, reducing the processing pressure on the memory of the terminal device and reducing the data Packet delivery delay and modem power consumption.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本申请一个示例性实施例提供的系统架构的示意图;FIG. 1 is a schematic diagram of a system architecture provided by an exemplary embodiment of the present application;

图2是本申请一个示例性实施例提供的用户面协议的示意图;FIG. 2 is a schematic diagram of a user plane protocol provided by an exemplary embodiment of the present application;

图3是本申请一个示例性实施例提供的MAC PDU的示意图;FIG. 3 is a schematic diagram of a MAC PDU provided by an exemplary embodiment of the present application;

图4是本申请一个示例性实施例提供的RLC PDU的示意图;FIG. 4 is a schematic diagram of an RLC PDU provided by an exemplary embodiment of the present application;

图5是本申请一个示例性实施例提供的PDCP PDU的示意图;FIG. 5 is a schematic diagram of a PDCP PDU provided by an exemplary embodiment of the present application;

图6是本申请一个示例性实施例提供的MAC PDU与CB映射的示意图;FIG. 6 is a schematic diagram of MAC PDU and CB mapping provided by an exemplary embodiment of the present application;

图7是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的流程图;FIG. 7 is a flowchart of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图8是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的示意图;FIG. 8 is a schematic diagram of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图9是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的示意图;FIG. 9 is a schematic diagram of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图10是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的流程图;FIG. 10 is a flowchart of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图11是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的示意图;FIG. 11 is a schematic diagram of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图12是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理方法的解析进度指示的示意图;Fig. 12 is a schematic diagram of a parsing progress indication of a data processing method applied to a media access control layer provided by an exemplary embodiment of the present application;

图13是本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理装置的结构框图;Fig. 13 is a structural block diagram of a data processing device applied to a medium access control layer provided by an exemplary embodiment of the present application;

图14是本申请一个示例性实施例提供的通信设备的结构示意图。Fig. 14 is a schematic structural diagram of a communication device provided by an exemplary embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

请参考图1,其示出了本申请一个实施例提供的系统架构的示意图。该系统架构可以包括:终端设备10和网络设备20。Please refer to FIG. 1 , which shows a schematic diagram of a system architecture provided by an embodiment of the present application. The system architecture may include: a terminal device 10 and a network device 20 .

终端设备10的数量通常为多个,每一个网络设备20所管理的小区内可以分布一个或多个终端设备10。终端设备10可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS)等等。为方便描述,本申请实施例中,上面提到的设备统称为终端设备。The number of terminal devices 10 is generally multiple, and one or more terminal devices 10 may be distributed in a cell managed by each network device 20 . The terminal device 10 may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS) and so on. For convenience of description, in the embodiment of the present application, the above-mentioned devices are collectively referred to as terminal devices.

网络设备20是一种部署在接入网中用以为终端设备10提供无线通信功能的装置。网络设备20可以包括各种形式的宏基站,微基站,中继站,接入点等等。在采用不同的无线接入技术的系统中,具备网络设备功能的设备的名称可能会有所不同,例如在5G NR系统中,称为gNodeB或者gNB。随着通信技术的演进,“网络设备”这一名称可能会变化。为方便描述,本申请实施例中,上述为终端设备10提供无线通信功能的装置统称为网络设备。The network device 20 is a device deployed in an access network to provide a wireless communication function for the terminal device 10 . The network device 20 may include various forms of macro base stations, micro base stations, relay stations, access points and so on. In systems using different radio access technologies, the names of devices with network device functions may be different, for example, in 5G NR systems, they are called gNodeB or gNB. The term "network equipment" may change as communications technology evolves. For the convenience of description, in the embodiment of the present application, the above-mentioned devices that provide the wireless communication function for the terminal device 10 are collectively referred to as network devices.

本公开实施例中的系统可以称为LTE系统、5G系统或者NR系统,但本领域技术人员可以理解其含义。本公开实施例描述的技术方案可以适用于LTE系统、5G NR系统,也可以适用于5G NR系统后续的演进系统。The system in the embodiments of the present disclosure may be called an LTE system, a 5G system or an NR system, but those skilled in the art can understand the meaning. The technical solution described in the embodiments of the present disclosure may be applicable to the LTE system, the 5G NR system, or the subsequent evolution system of the 5G NR system.

LTE用户面协议栈如图2所示。在下行数据包的处理流程中,终端设备10的PHY收到网络设备20发送的空口数据,PHY将空口数据递交给MAC层,MAC层从空口数据中解析MACSub Header(子头),得到MAC CE(MAC Control Element,MAC控制单元)和MACSDU(ServiceData Unit,服务数据单元)的信息,RLC(Radio Link Control,无线链路层控制协议)层负责解析RLCHeader(头部)、RLC PDU(Protocol Data Unit,协议数据单元)排序,并按序递交给PDCP(Packet Data Convergence Protocol,分组数据汇聚协议)层。在PDCP层解析PDCPHeader,然后进行数据包头解压缩,数据包解密,以及完整性保护校验等,之后递交给TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/网际互连协议)协议栈。The LTE user plane protocol stack is shown in Figure 2. In the processing flow of the downlink data packet, the PHY of the terminal device 10 receives the air interface data sent by the network device 20, the PHY submits the air interface data to the MAC layer, and the MAC layer parses the MACSub Header (subheader) from the air interface data to obtain the MAC CE (MAC Control Element, MAC control unit) and MACSDU (ServiceData Unit, service data unit) information, RLC (Radio Link Control, radio link layer control protocol) layer is responsible for parsing RLCHeader (header), RLC PDU (Protocol Data Unit , Protocol Data Units) are sorted and submitted to the PDCP (Packet Data Convergence Protocol, Packet Data Convergence Protocol) layer in sequence. Parse the PDCPHeader at the PDCP layer, then decompress the data packet header, decrypt the data packet, and check the integrity protection, etc., and then submit it to the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack .

PHY递交给MAC层的MACPDU,在3GPP(3rd Generation Partnership Project,第三代合作伙伴计划)36.321中的格式如图3所示,MAC PDU包括MAC Header、MAC CE、MAC SDU和Padding。The format of the MAC PDU submitted by the PHY to the MAC layer in 3GPP (3rd Generation Partnership Project) 36.321 is shown in Figure 3. The MAC PDU includes MAC Header, MAC CE, MAC SDU and Padding.

RLC是LTE协议栈用户面的无线链路控制层。RLC的header格式根据模式不同,有多种格式,图4是3GPP36.322AM(Ack Mode,确认模式)的RLC PDU的一种格式,Header部分分为FixHeader(固定头部)30和扩展部分40。扩展部分40包括RLCSDUs的长度信息。RLC is the radio link control layer of the user plane of the LTE protocol stack. The RLC header format has multiple formats depending on the mode. FIG. 4 is a format of the RLC PDU of 3GPP36.322AM (Ack Mode, confirmation mode). The Header part is divided into a FixHeader (fixed header) 30 and an extension part 40 . The extension part 40 includes length information of RLC SDUs.

根据3GPP 36.323,PDCP在收到RLC递交的RLC SDU后,需要解析PDCPheader,获取PDCPSN(Serial Number,序列号),然后计算HFN(Hyper Frame Number,超帧号),得到PDCPSDU的count(计数)值,PDCP的decipher(解密)模块基于count值进行解密和完整性保护验证。PDCPheader的格式之一(12bitSN)如图5所示。According to 3GPP 36.323, after PDCP receives the RLC SDU submitted by RLC, it needs to parse the PDCP header, obtain the PDCPSN (Serial Number, serial number), and then calculate the HFN (Hyper Frame Number, super frame number) to obtain the count (count) value of PDCP SDU , the decipher (decryption) module of PDCP performs decryption and integrity protection verification based on the count value. One of the formats of PDCPheader (12bitSN) is shown in Figure 5.

相关技术中的方法,网络设备MAC层和物理层PHY的HARQ重传是基于CBG的,一个TB可能大部分的数据已经收到,只有部分的CB出现传输错误,但整个TB都保存在PHY,没有递交给MAC层,这样在PHY需要预留大量的缓存。当TB接收完整后,PHY才递交TB给MAC层,MAC层和RLC层解码一批的数据包,递交给PDCP层的cipher(解密)模块,由此产生了DDR(DoubleData Rate双倍速率)访问的峰值压力,以及造成了数据包递交延时以及modem(调制解调器)的功耗。In the method in the related art, the HARQ retransmission of the network device MAC layer and the physical layer PHY is based on CBG. Most of the data of a TB may have been received, and only part of the CB has a transmission error, but the entire TB is stored in the PHY. It is not submitted to the MAC layer, so a large amount of cache needs to be reserved in the PHY. When the TB is completely received, the PHY submits the TB to the MAC layer. The MAC layer and the RLC layer decode a batch of data packets and submit them to the cipher (decryption) module of the PDCP layer, thereby generating DDR (Double Data Rate) access. The peak pressure, and caused the packet delivery delay and modem (modem) power consumption.

基于对相关技术中的方法的分析,本申请实施例提供了一种基于PHY按照CB递交的MAC PDU解析处理方案。如图6所示,以一个TB分为四个CB的情况为例,TB包括CB0、CB1、CB2、CB3;其中,CB0和CB1在位置1将CCCH(Common Control Channel,公共控制信道)分割为两部分,CB1和CB2在位置2将RLC SDU的segment分割为两部分,CB2和CB3在位置3将RLC FixHeader分割为两部分。由于CB只有在有序的时候,PDU才能被按照协议格式来解析,如果CB1发生HARQ重传,PDU的处理会pending(等待)在CCCH,直到CB1收到或者TB接收失败。基于上述分析,本申请实施例在进行MAC PDU解析时将会解决PDU被CB分割的技术问题。Based on the analysis of the methods in the related art, the embodiment of the present application provides a MAC PDU parsing and processing solution based on PHY and submitted by CB. As shown in Figure 6, taking the case where one TB is divided into four CBs as an example, the TB includes CB0, CB1, CB2, and CB3; wherein, CB0 and CB1 divide CCCH (Common Control Channel, common control channel) into Two parts, CB1 and CB2 divide the segment of the RLC SDU into two parts at position 2, and CB2 and CB3 divide the RLC FixHeader into two parts at position 3. Since the PDU can only be parsed according to the protocol format when the CB is in order, if the HARQ retransmission occurs in the CB1, the PDU processing will be pending (waiting) on the CCCH until the CB1 receives it or the TB fails to receive it. Based on the above analysis, the embodiment of the present application will solve the technical problem that the PDU is divided by the CB when parsing the MAC PDU.

请参考图7,其示出了本申请一个实施例提供的应用于媒体接入控制层的数据处理方法的流程图,该方法可以应用于图1所示的系统架构中的终端设备。该方法包括如下步骤。Please refer to FIG. 7 , which shows a flow chart of a data processing method applied to a media access control layer provided by an embodiment of the present application. The method can be applied to a terminal device in the system architecture shown in FIG. 1 . The method includes the following steps.

步骤210:从PHY接收用于承载MAC PDU的TB的第i个CB,TB包括n个CB,i为不大于n的正整数,n为正整数。Step 210: Receive the ith CB of the TB used to carry the MAC PDU from the PHY, the TB includes n CBs, i is a positive integer not greater than n, and n is a positive integer.

终端设备包括PHY、MAC层、RLC层和PDCP层。其中,在MAC层设置有头部提取模块(或称“Header extract模块”),在PDCP层设置有解密模块(或称“decipher模块”或“cipher模块”)。Terminal equipment includes PHY, MAC layer, RLC layer and PDCP layer. Wherein, a header extraction module (or called "Header extract module") is set in the MAC layer, and a decryption module (or called "decipher module" or "cipher module") is set in the PDCP layer.

示例性的,该方法可以由MAC层执行,也可以由其他在PHY之上的高层执行。Exemplarily, the method may be executed by the MAC layer, or by other higher layers above the PHY.

示例性的,该方法可以由MAC层中的头部提取模块执行。示例性的,头部提取模块还可以替换为其他具有相同功能的模块、协议栈等。头部提取模块用于对PHY传输给MAC层的TB或CB进行头部提取和解析,得到MAC头部、RLC头部、PDCP头部、PDCP PDU、PDCP Count值、HFN中的至少一种。Exemplarily, the method can be executed by a header extraction module in the MAC layer. Exemplarily, the header extraction module can also be replaced with other modules, protocol stacks, etc. having the same function. The header extraction module is used to extract and analyze the header of the TB or CB transmitted by the PHY to the MAC layer, and obtain at least one of the MAC header, RLC header, PDCP header, PDCP PDU, PDCP Count value, and HFN.

示例性的,当TB未被分为CB时,PHY接收承载MAC PDU的TB,向MAC层的头部提取模块传输TB。Exemplarily, when the TB is not divided into CBs, the PHY receives the TB carrying the MAC PDU, and transmits the TB to the header extraction module of the MAC layer.

步骤220:根据TB的解析进度指示解析第i个CB得到第一PDU数据分段,根据第一PDU数据分段更新TB的解析进度指示。Step 220: Parse the i-th CB according to the parsing progress indication of the TB to obtain the first PDU data segment, and update the parsing progress indication of the TB according to the first PDU data segment.

示例性的,第一PDU数据分段包括解析第i个CB得到的MAC PDU的数据分段。第一PDU数据分段包括MAC PDU中的部分数据或全部数据。示例性的,MAC PDU包括多种字段,例如,MAC PDU包括MAC头部、RLC头部、RLC PDU、PDCP头部、PDCP PDU中的至少一种字段。而第一PDU数据分段包括上述至少一个字段的部分或全部数据。例如,第一PDU数据分段可以包括完整的MAC头部以及部分RLC头部。Exemplarily, the first PDU data segment includes the data segment of the MAC PDU obtained by parsing the i-th CB. The first PDU data segment includes part or all of the data in the MAC PDU. Exemplarily, the MAC PDU includes various fields, for example, the MAC PDU includes at least one field among a MAC header, an RLC header, an RLC PDU, a PDCP header, and a PDCP PDU. The first PDU data segment includes part or all of the above at least one field. For example, the first PDU data segment may include a complete MAC header and a partial RLC header.

TB的解析进度指示用于指示该TB的CB处理状态,或,指示TB的解析进度。示例性的,解析进度指示用于指示TB当前处理完的CB的结束位置的字段,即,解析进度指示用于指示当前TB的CB处理截止到了MAC PDU的哪个字段。示例性的,解析进度指示用于指示MACPDU当前的解析进度。The parsing progress indication of the TB is used to indicate the CB processing status of the TB, or indicate the parsing progress of the TB. Exemplarily, the parsing progress indication is used to indicate the end position of the currently processed CB of the TB, that is, the parsing progress indication is used to indicate which field of the MAC PDU the CB processing of the current TB ends. Exemplarily, the parsing progress indication is used to indicate the current parsing progress of the MAC PDU.

由于MAC PDU的一个完整字段会被两个相邻CB分割为两部分,例如,RLC Header被CB0和CB1分割为第一部分和第二部分,CB0中包含了RLC Header的第一部分,CB1中包含了RLC Header的第二部分。在对CB0进行解析处理时,由于RLC Header数据不完整,无法进行解析,则在处理完CB0后,更新TB的解析进度指示为停止在RLC Header,则在接收到CB1时,可以根据TB的解析进度指示:停止在RLC Header,读取CB0中未被处理的停止在RLC Header的第一部分,与CB1进行拼接,得到完整的停止在RLC Header,进而对拼接后的CB1进行解析处理,以完整对MAC PDU在CB粒度的解析处理。Since a complete field of the MAC PDU will be divided into two parts by two adjacent CBs, for example, the RLC Header is divided into the first part and the second part by CB0 and CB1, CB0 contains the first part of the RLC Header, and CB1 contains the The second part of the RLC Header. When parsing CB0, because the RLC Header data is incomplete, parsing cannot be performed, then after processing CB0, update the parsing progress indication of TB to stop at RLC Header, then when CB1 is received, it can be parsed according to TB Progress indication: stop at the RLC Header, read the first part of the unprocessed stop at the RLC Header in CB0, splice with CB1 to obtain a complete stop at the RLC Header, and then analyze and process the spliced CB1 to complete the Parsing and processing of MAC PDU at CB granularity.

基于TB的解析进度指示,当MAC层的头部提取模块接收到了该TB的第i个CB时,可以根据该TB当前的解析进度指示,确定TB中CB处理的中间状态,进而获取第i-1个CB中未被处理的字段,与第i个CB进行拼接,使被第i个CB和第i-1个CB分隔开的字段拼接为完整的字段,然后对第i-1个CB进行解析处理。Based on the parsing progress indication of the TB, when the header extraction module of the MAC layer receives the i-th CB of the TB, it can determine the intermediate state of the CB processing in the TB according to the current parsing progress indication of the TB, and then obtain the i-th CB The unprocessed fields in 1 CB are spliced with the i-th CB, so that the fields separated by the i-th CB and the i-1th CB are spliced into complete fields, and then the i-1th CB Perform analytical processing.

示例性的,中间状态是指TB当前已经处理完的CB所停止在MAC PDU的字段。Exemplarily, the intermediate state refers to the field of the MAC PDU where the CB that the TB has currently processed stops.

示例性的,解析进度指示可以为一个参数,用该参数指代TB中CB处理的中间状态,参数与中间状态的映射关系可以是任意的。Exemplarily, the parsing progress indicator may be a parameter, and the parameter is used to refer to the intermediate state of the CB processing in the TB, and the mapping relationship between the parameter and the intermediate state may be arbitrary.

即,PHY接收一个CB就向MAC层传递一个CB,MAC层通过头部提取模块对CB进行解析处理,得到MAC PDU数据分段,并将MAC PDU数据分段上报高层。如此,可以实现对CB的实时处理,相比于在接收到完整TB后才对完整TB进行解析处理,本申请实施例提供的方法可以减轻内存压力、减少数据包的递交延时、降低调制解调器的功耗。That is, when the PHY receives a CB, it transmits a CB to the MAC layer, and the MAC layer parses the CB through the header extraction module, obtains MAC PDU data segments, and reports the MAC PDU data segments to the upper layer. In this way, real-time processing of the CB can be realized. Compared with analyzing and processing the complete TB after receiving the complete TB, the method provided by the embodiment of the present application can reduce the memory pressure, reduce the delivery delay of the data packet, and reduce the delay of the modem. power consumption.

本申请实施例提供的方法,当TB中的部分CB发生HARQ重传时,PHY不需要缓存TB等待CB的重传。例如,如图8所示,TB0包括TB0_CB0、TB0_CB1、TB0_CB2和TB0_CB3,TB1包括TB1_CB0和TB1_CB1,TB2未分为CB。当PHY接收到TB0_CB0、TB0_CB1时向MAC层递交TB0_CB0、TB0_CB1,MAC层的头部提取模块根据TB0的解析进度指示对TB0_CB0、TB0_CB1进行解析处理,并将MAC PDU数据分段上报高层。此时,TB0_CB2和TB0_CB3发生HARQ重传。则PHY接收TB1_CB0,向MAC层递交TB1_CB0,MAC层的头部提取模块根据TB1的解析进度指示对TB1_CB0进行解析处理,并将MAC PDU数据分段上报高层。当PHY接收到TB0_CB2和TB0_CB3的重传时,向MAC层递交TB0_CB2、TB0_CB3,MAC层的头部提取模块根据TB0的解析进度指示对TB0_CB2、TB0_CB3进行解析处理,并将MAC PDU数据分段上报高层。In the method provided in the embodiment of the present application, when HARQ retransmission occurs on some CBs in the TB, the PHY does not need to buffer the TB to wait for the CB retransmission. For example, as shown in Figure 8, TB0 includes TB0_CB0, TB0_CB1, TB0_CB2, and TB0_CB3, TB1 includes TB1_CB0 and TB1_CB1, and TB2 is not divided into CBs. When the PHY receives TB0_CB0 and TB0_CB1, it submits TB0_CB0 and TB0_CB1 to the MAC layer, and the header extraction module of the MAC layer parses TB0_CB0 and TB0_CB1 according to the TB0 parsing progress indication, and reports the MAC PDU data to the upper layer in segments. At this time, HARQ retransmission occurs in TB0_CB2 and TB0_CB3. Then the PHY receives TB1_CB0, submits TB1_CB0 to the MAC layer, and the header extraction module of the MAC layer parses TB1_CB0 according to the parsing progress indication of TB1, and reports the MAC PDU data segments to the upper layer. When the PHY receives the retransmission of TB0_CB2 and TB0_CB3, it submits TB0_CB2 and TB0_CB3 to the MAC layer, and the header extraction module of the MAC layer parses TB0_CB2 and TB0_CB3 according to the TB0 parsing progress indication, and reports the MAC PDU data segments to the upper layer .

示例性的,头部提取模块向高层上报第i个MAC PDU数据分段。Exemplarily, the header extracting module reports the i-th MAC PDU data segment to the upper layer.

示例性的,基于第i个MAC PDU数据分段包括PDCP Count值和PDCP PDU,头部提取模块向PDCP层发送PDCP Count值和PDCP PDU。Exemplarily, based on the i-th MAC PDU data segment including the PDCP Count value and the PDCP PDU, the header extraction module sends the PDCP Count value and the PDCP PDU to the PDCP layer.

例如,如图9所示,头部提取模块50从PHY接收CB,根据TB的解析进度指示对CB进行解析,得到PDCP信息(PDCP PDU和PDCP Count值),向PDCP层的解密模块发送PDCP信息。For example, as shown in Figure 9, the header extraction module 50 receives the CB from the PHY, analyzes the CB according to the analysis progress indication of the TB, obtains the PDCP information (PDCP PDU and PDCP Count value), and sends the PDCP information to the decryption module of the PDCP layer .

综上所述,本实施例提供的方法,通过从PHY接收到承载MAC PDU的TB的CB,以CB为解析对象对MAC PDU进行解析,得到各层的头部以及PDCP PDU。其中,由于CB所包含的字段可能不完整,例如,一个字段被两个相邻的CB分割为两部分,则在处理上一个CB时,根据CB的处理结果更新该TB的解析进度指示,解析进度指示用于存储CB的处理状态。在处理下一个CB时根据解析进度指示读取上一个CB未解析的字段,与下一个CB进行拼接,进而得到完整的字段,以便进行解析。因此,本申请实施例提供的方法,基于TB的解析进度指示能够实现对TB的CB进行逐个处理,以便PHY可以每接收一个CB就向高层传输一个CB,减轻终端设备内存的处理压力,降低数据包递交延时以及调制解调器的功耗。To sum up, the method provided in this embodiment receives the CB of the TB that bears the MAC PDU from the PHY, analyzes the MAC PDU with the CB as the analysis object, and obtains the header of each layer and the PDCP PDU. Among them, since the fields contained in the CB may be incomplete, for example, if a field is divided into two parts by two adjacent CBs, when processing the previous CB, the parsing progress indication of the TB is updated according to the processing result of the CB, and parsing The progress indicator is used to store the processing status of the CB. When processing the next CB, read the unparsed fields of the previous CB according to the parsing progress indication, and splicing with the next CB to obtain complete fields for parsing. Therefore, the method provided in the embodiment of the present application can process the CBs of TBs one by one based on the TB parsing progress indication, so that the PHY can transmit a CB to the upper layer every time it receives a CB, reducing the processing pressure on the memory of the terminal device and reducing the data Packet delivery delay and modem power consumption.

示例性的,给出一种头部提取模块根据解析进度指示解析CB的示例性实施例。Exemplarily, an exemplary embodiment is given in which the header extraction module parses the CB according to the parsing progress indication.

请参考图10,其示出了本申请一个实施例提供的应用于媒体接入控制层的数据处理方法的流程图,该方法可以应用于图1所示的系统架构中的终端设备。该方法包括如下步骤。Please refer to FIG. 10 , which shows a flowchart of a data processing method applied to a media access control layer provided by an embodiment of the present application. The method can be applied to terminal devices in the system architecture shown in FIG. 1 . The method includes the following steps.

步骤210:从PHY接收用于承载MAC PDU的TB的第i个CB,TB包括n个CB,i为不大于n的正整数,n为正整数。Step 210: Receive the ith CB of the TB used to carry the MAC PDU from the PHY, the TB includes n CBs, i is a positive integer not greater than n, and n is a positive integer.

如图11所示,由PHY递交in sequence CB(顺序码块)到Header Extract(头部提取)模块,头部提取模块建立每个TB的context(上下文),context中包括了解析进度指示这一参数,解析进度指示用来保存CB处理的中间状态。根据解析进度指示解析CB得到MAC、RLC、PDCP协议单元的header部分,通过计算得到PDCP Count值,然后递交完整PDCP PDU给PDCP层的Decipher Engine(解密引擎/解密模块)。As shown in Figure 11, the PHY submits the in sequence CB (sequential code block) to the Header Extract (header extraction) module, and the header extraction module establishes the context (context) of each TB, which includes the parsing progress indicator. Parameter, the parsing progress indication is used to save the intermediate state of CB processing. Parse the CB according to the parsing progress indication to obtain the header part of the MAC, RLC, and PDCP protocol units, obtain the PDCP Count value through calculation, and then submit the complete PDCP PDU to the Decipher Engine (deciphering engine/deciphering module) of the PDCP layer.

示例性的,头部提取模块保存Logic channel(逻辑信道)和DRB(Data RadioBeare,数据资源承载)的映射关系,配置MAC、RLC和PDCP的实体信息。在解析CB得到MAC PDU数据分段后,头部提取模块还保存MAC Sub header和RLC length(长度)的信息,以及解析TB的context。头部提取模块的主要功能包括header(头部)解析,RLC的window(窗口)检测,以及计算PDCP的HFN(Hyper Frame Number,超帧号)和Count值。其中,PDCP Count值由HFN和PDCP SN(PDCP Sequence Number,PDCP序列号)组成。Exemplarily, the header extraction module saves the mapping relationship between Logic channel (logical channel) and DRB (Data Radio Beare, data resource bearer), and configures entity information of MAC, RLC and PDCP. After parsing the CB to obtain the MAC PDU data segment, the header extraction module also saves the information of the MAC Sub header and RLC length (length), and parses the context of the TB. The main functions of the header extraction module include header (header) analysis, RLC window (window) detection, and calculation of HFN (Hyper Frame Number, super frame number) and Count value of PDCP. Wherein, the PDCP Count value is composed of HFN and PDCP SN (PDCP Sequence Number, PDCP sequence number).

示例性的,终端设备为MAC层的头部提取模块配置配置数据,配置数据包括逻辑信道与数据资源承载DRB的映射关系、MAC实体信息、RLC实体信息、PDCP实体信息中的至少一种。Exemplarily, the terminal device configures configuration data for the header extraction module of the MAC layer, and the configuration data includes at least one of a mapping relationship between a logical channel and a data resource bearing DRB, MAC entity information, RLC entity information, and PDCP entity information.

步骤221:根据TB的解析进度指示解析第i个CB,得到第一PDU数据分段;基于确定第一PDU数据分段包括的字段更新解析进度指示。Step 221: Parse the i-th CB according to the parsing progress indication of the TB to obtain the first PDU data segment; update the parsing progress indication based on determining the fields included in the first PDU data segment.

示例性的,基于解析第i个CB得到的第一PDU数据分段中所包含的MAC PDU的字段,来更新TB的解析进度指示。Exemplarily, based on the field of the MAC PDU contained in the first PDU data segment obtained by parsing the i-th CB, the parsing progress indication of the TB is updated.

例如,基于确定第一PDU数据分段包括无线链路层控制协议的固定头部的部分或全部,更新解析进度指示为第一状态;For example, based on determining that the first PDU data segment includes part or all of the fixed header of the radio link layer control protocol, update the parsing progress indication to the first state;

基于确定第一PDU数据分段包括无线链路层控制协议的扩展头部的部分或全部,更新解析进度指示为第二状态;Based on determining that the first PDU data segment includes part or all of the extended header of the radio link layer control protocol, updating the parsing progress indication to the second state;

基于确定第一PDU数据分段包括分组数据汇聚协议的头部的部分或全部,更新解析进度指示为第三状态;Based on determining that the first PDU data segment includes part or all of the header of the packet data convergence protocol, updating the parsing progress indication to a third state;

基于确定第一PDU数据分段包括无线链路层控制协议的服务数据单元的有效数据的部分或全部,更新解析进度指示为第四状态;Based on determining that the first PDU data segment includes part or all of the valid data of the service data unit of the radio link layer control protocol, update the parsing progress indication to the fourth state;

基于确定第一PDU数据分段包括媒体接入控制单元的有效数据的部分或全部,更新解析进度指示为第五状态;Based on determining that the first PDU data segment includes part or all of the valid data of the medium access control unit, updating the parsing progress indication to the fifth state;

基于确定媒体接入控制层的解析对象为传输块,更新解析进度指示为第六状态。Based on determining that the parsing object of the MAC layer is the transport block, updating the parsing progress indicator to the sixth state.

示例性的,基于第i个CB携带的数据结束在PDU(MAC PDU)的目标字段,基于目标字段更新解析进度指示。或,基于第一PDU数据分段结束在PDU(MAC PDU)的目标字段,基于目标字段更新解析进度指示。Exemplarily, based on the data carried by the i-th CB ending in the target field of the PDU (MAC PDU), the parsing progress indication is updated based on the target field. Or, based on the target field of the PDU (MAC PDU) where the first PDU data segment ends, the parsing progress indication is updated based on the target field.

示例性的,基于确定MAC层的解析对象为TB,更新TB的解析进度指示为第六状态;Exemplarily, based on determining that the parsing object of the MAC layer is a TB, updating the parsing progress indication of the TB to the sixth state;

基于确定目标字段为无线链路层控制协议RLC的固定头部,更新TB的解析进度指示为第一状态;Based on determining that the target field is a fixed header of the radio link layer control protocol RLC, updating the parsing progress indication of the TB is the first state;

基于确定目标字段为RLC的扩展头部,更新TB的解析进度指示为第二状态;Based on determining that the target field is the extended header of the RLC, updating the parsing progress indication of the TB to the second state;

基于确定目标字段为PDCP的头部,更新TB的解析进度指示为第三状态;updating the parsing progress indication of the TB to a third state based on determining that the target field is the header of the PDCP;

基于确定目标字段为RLC SDU的有效数据,更新TB的解析进度指示为第四状态;Based on determining that the target field is valid data of the RLC SDU, updating the parsing progress indication of the TB is the fourth state;

基于确定目标字段为MAC CE的有效数据,更新TB的解析进度指示为第五状态。Based on determining that the target field is the valid data of the MAC CE, updating the parsing progress indication of the TB to the fifth state.

在一种可选的实现方式中,目标字段与解析进度指示的映射关系如下:In an optional implementation manner, the mapping relationship between the target field and the parsing progress indication is as follows:

解析进度指示:0(第六状态)对应:无解析进度指示:即,解析的对象是TB,没有解析进度指示;Parsing progress indication: 0 (sixth state) corresponds to: no parsing progress indication: that is, the object of parsing is TB, and there is no parsing progress indication;

解析进度指示:1(第一状态)对应:RLC fix header:即,当前CB结束在RLC Fixheader部分;Parsing progress indication: 1 (first state) corresponds to: RLC fix header: that is, the current CB ends in the RLC Fix header part;

解析进度指示:2(第二状态)对应:RLC LI header:即,当前CB结束在RLC扩展头部的length information(长度信息)部分;Parsing progress indication: 2 (second state) corresponds to: RLC LI header: that is, the current CB ends at the length information (length information) part of the RLC extension header;

解析进度指示:3(第三状态)对应:PDCP Header:即,当前CB结束在PDCP header的部分(当PDCP header多于1Byte的时候);Parsing progress indication: 3 (third state) corresponding to: PDCP Header: that is, the current CB ends at the part of the PDCP header (when the PDCP header is more than 1Byte);

解析进度指示:4(第四状态)对应:RLC SDU Payload:即,当前CB结束在RLC SDU的payload(有效数据)部分。payload可能是:PDCP的Control PDU(控制PDU),或SRB(Signalling Radio Bearers,信令无线承载的消息),或IP Packet(IP包)的header或data(数据)部分;Parsing progress indication: 4 (the fourth state) corresponds to: RLC SDU Payload: that is, the current CB ends at the payload (effective data) part of the RLC SDU. The payload may be: PDCP's Control PDU (control PDU), or SRB (Signalling Radio Bearers, signaling wireless bearer message), or the header or data (data) part of IP Packet (IP packet);

解析进度指示:5(第五状态)对应:MAC CE Payload:即,当前CB结束在MAC CE的payload部分。Parsing progress indication: 5 (fifth state) corresponds to: MAC CE Payload: that is, the current CB ends in the payload part of the MAC CE.

例如,如图12所示,基于确定当前解析的CB停在MAC PDU的MAC CE的有效数据,则TB的TBCS(TB Context State,TB解析进度指示状态)为TBCS-5。基于确定当前解析的CB停在MAC PDU的RLC Fix Header字段,则TB的TBCS为TBCS-1。基于确定当前解析的CB停在MACPDU的RLC Li Header字段,则TB的TBCS为TBCS-2。基于确定当前解析的CB停在MAC PDU的PDCP Header字段,则TB的TBCS为TBCS-3。基于确定当前解析的CB停在MAC PDU的RLC SDU的有效数据,则TB的TBCS为TBCS-4。For example, as shown in FIG. 12 , based on determining that the currently parsed CB stops at the valid data of the MAC CE of the MAC PDU, the TBCS (TB Context State, TB parsing progress indication state) of the TB is TBCS-5. Based on the determination that the currently parsed CB stops at the RLC Fix Header field of the MAC PDU, the TBCS of the TB is TBCS-1. Based on the determination that the currently parsed CB stops at the RLC Li Header field of the MAC PDU, the TBCS of the TB is TBCS-2. Based on the determination that the currently parsed CB stops at the PDCP Header field of the MAC PDU, the TBCS of the TB is TBCS-3. Based on the determination that the currently parsed CB stops at the valid data of the RLC SDU of the MAC PDU, the TBCS of the TB is TBCS-4.

在另一种可选的实现方式中,基于确定第i个CB携带的数据结束在MAC PDU的目标字段,且在第i个CB中目标字段的数据不完整,根据目标字段更新TB的解析进度指示。基于确定第i个CB携带的数据结束在MAC PDU的目标字段,且在第i个CB中目标字段的数据完整,根据MAC PDU中目标字段的下一个字段更新TB的解析进度指示。In another optional implementation, based on determining that the data carried by the i-th CB ends in the target field of the MAC PDU, and the data in the target field in the i-th CB is incomplete, update the parsing progress of the TB according to the target field instruct. Based on determining that the data carried by the i-th CB ends in the target field of the MAC PDU, and the data in the target field in the i-th CB is complete, update the parsing progress indication of the TB according to the next field of the target field in the MAC PDU.

示例性的,第一PDU数据分段包括MAC头部、RLC头部、PDCP头部、PDCP Count值、PDCP PDU中的至少一种。Exemplarily, the first PDU data segment includes at least one of a MAC header, an RLC header, a PDCP header, a PDCP Count value, and a PDCP PDU.

示例性的,当第i个CB中包含PDCP头部时,头部提取模块根据TB的解析进度指示读取PDCP头部的缓存数据;头部提取模块解析PDCP头部的缓存数据和第i个CB,基于解析得到的PDCP头部计算PDCP Count值,得到第i个MAC PDU数据分段,第i个MAC PDU数据分段包括PDCP Count值。Exemplarily, when the i-th CB contains a PDCP header, the header extraction module reads the cached data of the PDCP header according to the parsing progress indication of the TB; the header extraction module parses the cached data of the PDCP header and the i-th CB CB, calculate the PDCP Count value based on the PDCP header obtained by parsing, and obtain the i-th MAC PDU data segment, where the i-th MAC PDU data segment includes the PDCP Count value.

示例性的,头部提取模块从PDCP头部解析得到PDCP SN,根据PDCP SN计算HFN,根据HFN和PDCP SN得到PDCP Count值。Exemplarily, the header extraction module parses the PDCP header to obtain the PDCP SN, calculates the HFN according to the PDCP SN, and obtains the PDCP Count value according to the HFN and the PDCP SN.

示例性的,基于第i个CB携带的最后一个比特属于MAC PDU的目标字段,基于目标字段来更新TB的解析进度指示。Exemplarily, based on the fact that the last bit carried by the i-th CB belongs to the target field of the MAC PDU, the parsing progress indication of the TB is updated based on the target field.

步骤230:从PHY接收TB的第i+1个CB。Step 230: Receive the i+1th CB of the TB from the PHY.

步骤240:解析第i+1个CB得到第二PDU数据分段,根据第一PDU数据分段和第二PDU数据分段更新TB的解析进度指示。Step 240: Parse the i+1th CB to obtain the second PDU data segment, and update the parsing progress indication of the TB according to the first PDU data segment and the second PDU data segment.

示例性的,继续接收TB的下一个CB,并解析下一个CB,根据CB的解析结果更新TB的解析进度指示。Exemplarily, continue to receive the next CB of the TB, and parse the next CB, and update the parsing progress indication of the TB according to the parsing result of the CB.

示例性的,在解析完第i个CB后,缓存第一PDU数据分段的比特序列;在解析完第i+1个CB后,提取第二PDU数据分段的比特序列;将第一PDU数据分段的比特序列与第二PDU数据分段的比特序列拼接,根据拼接结果更新TB的解析进度指示。Exemplarily, after parsing the i-th CB, the bit sequence of the first PDU data segment is cached; after parsing the i+1th CB, the bit sequence of the second PDU data segment is extracted; the first PDU The bit sequence of the data segment is spliced with the bit sequence of the second PDU data segment, and the TB parsing progress indication is updated according to the splicing result.

在一个可选的实施例中,在解析完第i个CB后,若第i个CB中包含不完整的字段,还需要将该不完整的字段缓存起来,以便在解析第i+1个CB时,与第i+1个CB拼接得到完整的该字段。即,基于第i个CB未携带完整的目标字段,将第i个CB中属于目标字段的比特序列缓存至目标字段的数据中。In an optional embodiment, after parsing the i-th CB, if the i-th CB contains an incomplete field, the incomplete field needs to be cached so that the i+1-th CB When , it is spliced with the i+1th CB to obtain a complete field. That is, based on the fact that the i-th CB does not carry a complete target field, the bit sequence belonging to the target field in the i-th CB is buffered into the data of the target field.

示例性的,目标字段携带在至少两个CB中。例如,目标字段携带在第i个CB和第i+1个CB上,i为小于n的正整数。Exemplarily, the target field is carried in at least two CBs. For example, the target field is carried on the i-th CB and the i+1-th CB, where i is a positive integer smaller than n.

由于目标字段被第i个CB和第i+1个CB分割为第一字段部分和第二字段部分。头部提取模块在解析第i个CB时,由于目标字段不完整,无法被解析的第一字段部分会被头部提取模块缓存,等待接收到第i+1个CB后,与第i+1个CB一起解析。Since the target field is divided into a first field part and a second field part by the i-th CB and the i+1-th CB. When the header extraction module parses the i-th CB, because the target field is incomplete, the part of the first field that cannot be parsed will be cached by the header extraction module. CBs are analyzed together.

在一个可选的实施例中,在解析第i+1个CB前,根据TB的解析进度指示读取目标字段的目标缓存数据。In an optional embodiment, before parsing the i+1th CB, the target cache data in the target field is read according to the parsing progress indication of the TB.

头部提取模块基于确定接收到TB的第i+1个CB,读取TB的解析进度指示,基于TB的解析进度指示读取目标字段的目标缓存数据。Based on determining that the i+1th CB of the TB has been received, the header extraction module reads the parsing progress indication of the TB, and reads the target cache data of the target field based on the parsing progress indication of the TB.

示例性的,第二PDU数据分段包括解析目标缓存数据和第i+1个CB得到的MAC PDU数据分段。Exemplarily, the second PDU data segment includes a MAC PDU data segment obtained by parsing the target buffer data and the i+1th CB.

示例性的,将目标缓存数据与第i+1个CB拼接,解析拼接后的第i+1个CB得到第二PDU数据分段。Exemplarily, the target buffer data is spliced with the i+1th CB, and the spliced i+1th CB is analyzed to obtain the second PDU data segment.

示例性的,基于确定第i+1个CB携带的数据结束在字段X,且第i+1个CB未携带完整的字段X,将第+1个CB中属于字段X的比特序列缓存至字段X的缓存数据中。示例性的,字段X与上述的目标字段可以为同一字段,也可以为不同字段。目标字段为第i+1个CB所携带的第一个比特所属于的字段,字段X为第i+1个CB所携带的最后一个比特所属于的字段。Exemplarily, based on determining that the data carried by the i+1th CB ends in field X, and the i+1th CB does not carry a complete field X, the bit sequence belonging to field X in the +1th CB is buffered in the field X's cached data. Exemplarily, field X and the aforementioned target field may be the same field, or may be different fields. The target field is the field to which the first bit carried by the i+1th CB belongs, and field X is the field to which the last bit carried by the i+1th CB belongs to.

示例性的,由于位于第i+1个CB头部目标字段不完整,因此需要读取之前目标字段的缓存数据,与第i+1个CB进行拼接然后解析。由于位于第i+1个CB尾部的字段X不完整,因此,需要缓存第i+1个CB中字段X的比特序列,以便在后续CB处理时读取字段X的缓存数据,以拼接得到完整的字段X进行解析。Exemplarily, since the target field in the header of the i+1th CB is incomplete, it is necessary to read the cached data of the previous target field, splicing it with the i+1th CB and then parsing it. Since the field X at the end of the i+1th CB is incomplete, the bit sequence of the field X in the i+1th CB needs to be cached so that the cached data of the field X can be read during subsequent CB processing to splicing to obtain a complete The field X is parsed.

示例性的,从物理层接收传输块的第i+1个码块;解析第i+1个码块得到第二PDU数据分段;根据第二PDU数据分段更新传输块的解析进度指示。Exemplarily, the i+1th code block of the transport block is received from the physical layer; the i+1th code block is parsed to obtain the second PDU data segment; and the parsing progress indication of the transport block is updated according to the second PDU data segment.

示例性的,至少部分地基于解析进度指示来解析传输块的第j个码块,其中j为不同于i且不大于n的另一个正整数。Exemplarily, the j-th code block of the transport block is parsed based at least in part on the parsing progress indication, where j is another positive integer different from i and not greater than n.

示例性的,本申请实施例提供的方法不局限于LTEMAC PDU的基于CB的递交处理,还可以应用于5G MAC PDU的基于CB的递交处理,还可以应用于后续演进系统,例如6G、7G、8G系统。Exemplarily, the method provided in the embodiment of this application is not limited to the CB-based delivery processing of LTEMAC PDU, but can also be applied to the CB-based delivery processing of 5G MAC PDU, and can also be applied to subsequent evolution systems, such as 6G, 7G, 8G system.

综上所述,本实施例提供的方法,通过根据TB的解析进度指示来读取上一个CB解析时,未被解析的字段,与当前CB进行拼接,使CB中的字段完整,进而实现基于CB递交时对MAC PDU的每个字段的解析。实现LTE的基于CB的MACPDU解析,数据包onthefly(快速)处理,减少物理层、RLC和整个系统需要的DDR缓存和片上内存,节省成本。解密模块的处理压力平均化,DDR带宽相比数据传输峰值带宽会降低约两倍,从而提高数据包递交的即时性和降低modem的功耗。To sum up, the method provided in this embodiment reads the unparsed fields in the previous CB parsing according to the parsing progress indication of the TB, and splices them with the current CB to make the fields in the CB complete, and then realizes based on Analysis of each field of the MAC PDU when CB is submitted. Realize LTE CB-based MAC PDU parsing, data packet onthefly (fast) processing, reduce DDR cache and on-chip memory required by the physical layer, RLC and the entire system, and save costs. The processing pressure of the decryption module is averaged, and the DDR bandwidth will be reduced by about two times compared with the data transmission peak bandwidth, thereby improving the immediacy of data packet delivery and reducing the power consumption of the modem.

图13示出了本申请一个示例性实施例提供的应用于媒体接入控制层的数据处理装置的结构框图,该装置可以实现成为终端设备,或者,实现成为终端设备中的一部分,该装置包括:Fig. 13 shows a structural block diagram of a data processing device applied to the media access control layer provided by an exemplary embodiment of the present application. The device can be implemented as a terminal device, or can be implemented as a part of the terminal device. The device includes :

头部提取模块50,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;The header extraction module 50 is configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the medium access control layer, the transmission block includes n code blocks, and i is not greater than n positive integer, n is a positive integer;

头部提取模块50,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The header extraction module 50 is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment;

头部提取模块50,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The header extraction module 50 is configured to update the parsing progress indication of the transport block according to the first PDU data segment.

在一种可选的实施例中,头部提取模块50,用于至少部分地基于所述解析进度指示来解析所述传输块的第j个码块,其中j为不同于i且不大于n的另一个正整数。In an optional embodiment, the header extraction module 50 is configured to parse the jth code block of the transmission block based at least in part on the parsing progress indication, where j is different from i and not greater than n Another positive integer of .

在一种可选的实施例中,头部提取模块50,用于基于确定所述第一PDU数据分段包括无线链路层控制协议的固定头部的部分或全部,更新所述解析进度指示为第一状态;In an optional embodiment, the header extraction module 50 is configured to update the parsing progress indication based on determining that the first PDU data segment includes part or all of the fixed header of the radio link layer control protocol is the first state;

头部提取模块50,用于基于确定所述第一PDU数据分段包括无线链路层控制协议的扩展头部的部分或全部,更新所述解析进度指示为第二状态;The header extraction module 50 is configured to update the parsing progress indicator to a second state based on determining that the first PDU data segment includes part or all of the extended header of the radio link layer control protocol;

头部提取模块50,用于基于确定所述第一PDU数据分段包括分组数据汇聚协议的头部的部分或全部,更新所述解析进度指示为第三状态;The header extraction module 50 is configured to update the parsing progress indicator to a third state based on determining that the first PDU data segment includes part or all of the header of the packet data convergence protocol;

头部提取模块50,用于基于确定所述第一PDU数据分段包括无线链路层控制协议的服务数据单元的有效数据的部分或全部,更新所述解析进度指示为第四状态;The header extraction module 50 is configured to update the parsing progress indicator to a fourth state based on determining that the first PDU data segment includes part or all of the valid data of the service data unit of the radio link layer control protocol;

头部提取模块50,用于基于确定所述第一PDU数据分段包括媒体接入控制单元的有效数据的部分或全部,更新所述解析进度指示为第五状态。在一种可选的实施例中,头部提取模块50,用于基于确定所述媒体接入控制层的解析对象为所述传输块,更新所述解析进度指示为第六状态。The header extraction module 50 is configured to update the parsing progress indicator to a fifth state based on determining that the first PDU data segment includes part or all of the valid data of the MAC unit. In an optional embodiment, the header extraction module 50 is configured to update the parsing progress indicator to a sixth state based on determining that the parsing object of the medium access control layer is the transport block.

在一种可选的实施例中,头部提取模块50,用于从所述物理层接收所述传输块的第i+1个码块;In an optional embodiment, the header extraction module 50 is configured to receive the i+1th code block of the transport block from the physical layer;

头部提取模块50,用于解析所述第i+1个码块得到第二PDU数据分段;A header extraction module 50, configured to parse the i+1th code block to obtain a second PDU data segment;

头部提取模块50,用于根据所述第一PDU数据分段和所述第二PDU数据分段更新所述传输块的解析进度指示。The header extraction module 50 is configured to update the parsing progress indication of the transport block according to the first PDU data segment and the second PDU data segment.

在一种可选的实施例中,头部提取模块50,用于缓存所述第一PDU数据分段的比特序列;In an optional embodiment, the header extraction module 50 is configured to buffer the bit sequence of the first PDU data segment;

头部提取模块50,用于提取所述第二PDU数据分段的比特序列;A header extraction module 50, configured to extract the bit sequence of the second PDU data segment;

头部提取模块50,用于将所述第一PDU数据分段的比特序列与所述第二PDU数据分段的比特序列拼接A header extraction module 50, configured to splice the bit sequence of the first PDU data segment with the bit sequence of the second PDU data segment

在一种可选的实施例中,头部提取模块50,用于从所述物理层接收所述传输块的第i+1个码块;In an optional embodiment, the header extraction module 50 is configured to receive the i+1th code block of the transport block from the physical layer;

头部提取模块50,用于解析所述第i+1个码块得到第二PDU数据分段;A header extraction module 50, configured to parse the i+1th code block to obtain a second PDU data segment;

头部提取模块50,用于根据所述第二PDU数据分段更新所述传输块的解析进度指示。The header extraction module 50 is configured to update the parsing progress indication of the transport block according to the second PDU data segment.

在一种可选的实施例中,所述第一PDU数据分段包括:媒体介入控制层的头部、无线链路层控制协议的头部、分组数据汇聚协议的头部、分组数据汇聚协议计数值、分组数据汇聚协议的PDU中的至少一种。In an optional embodiment, the first PDU data segment includes: the header of the media intervention control layer, the header of the radio link layer control protocol, the header of the packet data convergence protocol, the packet data convergence protocol At least one of a count value and a PDU of a packet data convergence protocol.

在一种可选的实施例中,所述第一PDU数据分段包括所述分组数据汇聚协议计数值;In an optional embodiment, the first PDU data segment includes the packet data convergence protocol count value;

头部提取模块50,用于根据所述传输块的所述解析进度指示读取所述分组数据汇聚协议的头部的缓存数据;A header extraction module 50, configured to read the cached data of the header of the packet data convergence protocol according to the parsing progress indication of the transport block;

头部提取模块50,用于解析所述分组数据汇聚协议的头部的缓存数据和所述第i个码块,基于解析得到的所述分组数据汇聚协议的头部计算所述分组数据汇聚协议计数值,得到所述第一PDU数据分段。The header extraction module 50 is configured to analyze the cached data of the header of the packet data convergence protocol and the i-th code block, and calculate the packet data convergence protocol based on the header of the packet data convergence protocol obtained by parsing The count value is used to obtain the first PDU data segment.

在一种可选的实施例中,头部提取模块50,用于基于所述第一PDU数据分段包括所述分组数据汇聚协议计数值和所述分组数据汇聚协议的PDU,向分组数据汇聚协议层发送所述分组数据汇聚协议计数值和所述分组数据汇聚协议的PDU。In an optional embodiment, the header extraction module 50 is configured to, based on the first PDU data segment including the PDU count value of the packet data convergence protocol and the PDU of the packet data convergence protocol, send to the packet data convergence protocol The protocol layer sends the packet data convergence protocol count value and the packet data convergence protocol PDU.

在一种可选的实施例中,头部提取模块50,用于配置配置数据,所述配置数据包括逻辑信道与数据资源承载的映射关系、媒体接入控制层的实体信息、无线链路层控制协议的实体信息、分组数据汇聚协议的实体信息中的至少一种。In an optional embodiment, the header extraction module 50 is configured to configure configuration data, the configuration data includes the mapping relationship between logical channels and data resource bearers, entity information of the media access control layer, radio link layer At least one of the entity information of the control protocol and the entity information of the packet data convergence protocol.

图14示出了本申请一个示例性实施例提供的通信设备(终端设备或网络设备)的结构示意图,该通信设备包括:处理器101、接收器102、发射器103、存储器104和总线105。FIG. 14 shows a schematic structural diagram of a communication device (terminal device or network device) provided by an exemplary embodiment of the present application. The communication device includes: a processor 101 , a receiver 102 , a transmitter 103 , a memory 104 and a bus 105 .

处理器101包括一个或者一个以上处理核心,处理器101通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 101 includes one or more processing cores, and the processor 101 executes various functional applications and information processing by running software programs and modules.

接收器102和发射器103可以实现为一个通信组件,该通信组件可以是一块通信芯片。The receiver 102 and the transmitter 103 can be implemented as a communication component, which can be a communication chip.

存储器104通过总线105与处理器101相连。The memory 104 is connected to the processor 101 through the bus 105 .

存储器104可用于存储至少一个指令,处理器101用于执行该至少一个指令,以实现上述方法实施例中的各个步骤。The memory 104 may be used to store at least one instruction, and the processor 101 is used to execute the at least one instruction, so as to implement various steps in the foregoing method embodiments.

此外,存储器104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器(Electrically-Erasable Programmable Read Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM),静态随时存取存储器(Static Random Access Memory,SRAM),只读存储器(Read-Only Memory,ROM),磁存储器,快闪存储器,可编程只读存储器(Programmable Read-Only Memory,PROM)。In addition, the memory 104 can be implemented by any type of volatile or non-volatile storage device or their combination. The volatile or non-volatile storage device includes but not limited to: magnetic disk or optical disk, electrically erasable and programmable Electrically-Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Random Access Memory (SRAM), Read-Only Memory (Read-Only Memory, ROM), magnetic memory, flash memory, programmable read-only memory (Programmable Read-Only Memory, PROM).

其中,当通信设备实现为终端设备时,本申请实施例涉及的通信设备中的处理器和收发器,可以执行上述任一所示的方法中,由终端设备执行的步骤,此处不再赘述。Wherein, when the communication device is implemented as a terminal device, the processor and the transceiver in the communication device involved in the embodiment of the present application can perform the steps performed by the terminal device in any of the above-mentioned methods, which will not be repeated here. .

在一种可能的实现方式中,当通信设备实现为终端设备时,In a possible implementation manner, when the communication device is implemented as a terminal device,

所述处理器,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;The processor is configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the medium access control layer, the transmission block includes n code blocks, and i is a positive number not greater than n Integer, n is a positive integer;

所述处理器,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The processor is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment;

所述处理器,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The processor is configured to update the parsing progress indication of the transport block according to the first PDU data segment.

在示例性实施例中,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现上述各个方法实施例提供的由通信设备执行的应用于媒体接入控制层的数据处理方法。In an exemplary embodiment, a computer-readable storage medium is also provided, the computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the At least one section of program, the code set or instruction set is loaded and executed by the processor to implement the data processing method applied to the media access control layer executed by the communication device and provided by the above method embodiments.

在示例性实施例中,还提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片在计算机设备上运行时,用于实现上述方面所述的应用于媒体接入控制层的数据处理方法。In an exemplary embodiment, there is also provided a chip, the chip includes a programmable logic circuit and/or program instructions, and when the chip is run on a computer device, it is used to implement the above-mentioned application medium The data processing method of the access control layer.

在示例性实施例中,还提供了一种计算机程序产品,该计算机程序产品在计算机设备的处理器上运行时,使得计算机设备执行上述方面所述的应用于媒体接入控制层的数据处理方法。In an exemplary embodiment, a computer program product is also provided. When the computer program product runs on a processor of a computer device, the computer device executes the data processing method applied to the medium access control layer described in the above aspect .

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (15)

1.一种应用于媒体接入控制层的数据处理方法,其特征在于,所述方法包括:1. A data processing method applied to a media access control layer, characterized in that the method comprises: 从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;receiving from the physical layer the i-th code block of the transport block for carrying the PDU of the media access control layer, where the transport block includes n code blocks, i is a positive integer not greater than n, and n is a positive integer; 根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;Parsing the ith code block according to the parsing progress indication of the transport block to obtain the first PDU data segment; 根据所述第一PDU数据分段更新所述传输块的解析进度指示。updating the parsing progress indication of the transport block according to the first PDU data segment. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 至少部分地基于所述解析进度指示来解析所述传输块的第j个码块,其中j为不同于i且不大于n的另一个正整数。A jth code block of the transport block is parsed based at least in part on the parsing progress indication, where j is another positive integer different from i and not greater than n. 3.根据权利要求2所述的方法,其特征在于,根据所述第一PDU数据分段更新所述传输块的解析进度指示包括如下步骤中的至少一个:3. The method according to claim 2, wherein updating the parsing progress indication of the transport block according to the first PDU data segment comprises at least one of the following steps: 基于确定所述第一PDU数据分段包括无线链路层控制协议的固定头部,更新所述解析进度指示为第一状态;updating the parsing progress indication to a first state based on determining that the first PDU data segment includes a fixed header of a radio link layer control protocol; 基于确定所述第一PDU数据分段包括无线链路层控制协议的扩展头部,更新所述解析进度指示为第二状态;updating the parsing progress indicator to a second state based on determining that the first PDU data segment includes an extended header of a radio link layer control protocol; 基于确定所述第一PDU数据分段包括分组数据汇聚协议的头部,更新所述解析进度指示为第三状态;updating the parsing progress indicator to a third state based on determining that the first PDU data segment includes a packet data convergence protocol header; 基于确定所述第一PDU数据分段包括无线链路层控制协议的服务数据单元的有效数据,更新所述解析进度指示为第四状态;updating the parsing progress indicator to a fourth state based on determining that the first PDU data segment includes valid data of a service data unit of a radio link layer control protocol; 基于确定所述第一PDU数据分段包括媒体接入控制单元的有效数据,更新所述解析进度指示为第五状态。Updating the parsing progress indicator to a fifth state based on determining that the first PDU data segment includes valid data of a MAC element. 4.根据权利要求2所述的方法,其特征在于,所述方法还包括:4. The method according to claim 2, characterized in that the method further comprises: 基于确定所述媒体接入控制层的解析对象为所述传输块,更新所述解析进度指示为第六状态。Based on determining that the parsing object of the medium access control layer is the transport block, updating the parsing progress indicator to a sixth state. 5.根据权利要求2所述的方法,其特征在于,所述方法还包括:5. The method according to claim 2, characterized in that the method further comprises: 从所述物理层接收所述传输块的第i+1个码块;receiving the i+1th code block of the transport block from the physical layer; 解析所述第i+1个码块得到第二PDU数据分段;Analyzing the i+1th code block to obtain a second PDU data segment; 根据所述第一PDU数据分段和所述第二PDU数据分段更新所述传输块的解析进度指示。updating the parsing progress indication of the transport block according to the first PDU data segment and the second PDU data segment. 6.根据权利要求5所述的方法,其特征在于,所述根据所述第一PDU数据分段和所述第二PDU数据分段更新所述传输块的解析进度指示,包括:6. The method according to claim 5, wherein the updating the parsing progress indication of the transport block according to the first PDU data segment and the second PDU data segment comprises: 缓存所述第一PDU数据分段的比特序列;buffering the bit sequence of the first PDU data segment; 提取所述第二PDU数据分段的比特序列;extracting the bit sequence of the second PDU data segment; 将所述第一PDU数据分段的比特序列与所述第二PDU数据分段的比特序列拼接。splicing the bit sequence of the first PDU data segment and the bit sequence of the second PDU data segment. 7.根据权利要求2所述的方法,其特征在于,所述方法还包括:7. The method according to claim 2, further comprising: 从所述物理层接收所述传输块的第i+1个码块;receiving the i+1th code block of the transport block from the physical layer; 解析所述第i+1个码块得到第二PDU数据分段;Analyzing the i+1th code block to obtain a second PDU data segment; 根据所述第二PDU数据分段更新所述传输块的解析进度指示。updating the parsing progress indication of the transport block according to the second PDU data segment. 8.根据权利要求1至7任一所述的方法,其特征在于,所述第一PDU数据分段包括:媒体介入控制层的头部、无线链路层控制协议的头部、分组数据汇聚协议的头部、分组数据汇聚协议计数值、分组数据汇聚协议的PDU中的至少一种字段的部分或全部。8. The method according to any one of claims 1 to 7, wherein the first PDU data segment comprises: a header of a media access control layer, a header of a radio link layer control protocol, a packet data aggregation Part or all of at least one field in the header of the protocol, the count value of the packet data convergence protocol, and the PDU of the packet data convergence protocol. 9.根据权利要求8所述的方法,其特征在于,所述第一PDU数据分段包括所述分组数据汇聚协议计数值;9. The method according to claim 8, wherein the first PDU data segment comprises the packet data convergence protocol count value; 所述根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段,包括:The parsing of the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment includes: 根据所述传输块的所述解析进度指示读取所述分组数据汇聚协议的头部的缓存数据;reading the cached data in the header of the packet data convergence protocol according to the parsing progress indication of the transport block; 解析所述分组数据汇聚协议的头部的缓存数据和所述第i个码块,基于解析得到的所述分组数据汇聚协议的头部计算所述分组数据汇聚协议计数值,得到所述第一PDU数据分段。Analyzing the cached data in the header of the packet data convergence protocol and the i-th code block, calculating the count value of the packet data convergence protocol based on the analyzed header of the packet data convergence protocol, to obtain the first PDU data segmentation. 10.根据权利要求8所述的方法,其特征在于,所述方法还包括:10. The method according to claim 8, further comprising: 基于所述第一PDU数据分段包括所述分组数据汇聚协议计数值和所述分组数据汇聚协议的PDU,向分组数据汇聚协议层发送所述分组数据汇聚协议计数值和所述分组数据汇聚协议的PDU。Sending the packet data convergence protocol count value and the packet data convergence protocol layer to the packet data convergence protocol layer based on the PDU of the first PDU data segment including the packet data convergence protocol count value and the packet data convergence protocol PDUs. 11.根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:11. The method according to any one of claims 1 to 7, characterized in that the method further comprises: 配置配置数据,所述配置数据包括逻辑信道与数据资源承载的映射关系、媒体接入控制层的实体信息、无线链路层控制协议的实体信息、分组数据汇聚协议的实体信息中的至少一种。Configure configuration data, the configuration data includes at least one of the mapping relationship between logical channels and data resource bearers, the entity information of the media access control layer, the entity information of the radio link layer control protocol, and the entity information of the packet data convergence protocol . 12.一种应用于媒体接入控制层的数据处理装置,其特征在于,所述装置包括:12. A data processing device applied to a medium access control layer, characterized in that the device comprises: 头部提取模块,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;A header extraction module, configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the medium access control layer, the transmission block includes n code blocks, and i is a positive value not greater than n Integer, n is a positive integer; 所述头部提取模块,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The header extraction module is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment; 所述头部提取模块,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The header extraction module is configured to update the parsing progress indication of the transport block according to the first PDU data segment. 13.一种终端设备,其特征在于,所述终端设备包括:处理器;其中,13. A terminal device, characterized in that the terminal device comprises: a processor; wherein, 所述处理器,用于从物理层接收用于承载所述媒体接入控制层的PDU的传输块的第i个码块,所述传输块包括n个码块,i为不大于n的正整数,n为正整数;The processor is configured to receive from the physical layer the i-th code block of the transmission block used to carry the PDU of the media access control layer, the transmission block includes n code blocks, and i is a positive value not greater than n Integer, n is a positive integer; 所述处理器,用于根据所述传输块的解析进度指示解析所述第i个码块,得到第一PDU数据分段;The processor is configured to parse the i-th code block according to the parsing progress indication of the transport block to obtain the first PDU data segment; 所述处理器,用于根据所述第一PDU数据分段更新所述传输块的解析进度指示。The processor is configured to update the parsing progress indication of the transport block according to the first PDU data segment. 14.一种计算机可读存储介质,其特征在于,所述可读存储介质中存储有可执行指令,所述可执行指令由处理器加载并执行以实现如权利要求1至11任一所述的应用于媒体接入控制层的数据处理方法。14. A computer-readable storage medium, characterized in that executable instructions are stored in the readable storage medium, and the executable instructions are loaded and executed by a processor to implement any one of claims 1 to 11. The data processing method applied to the media access control layer. 15.一种芯片,其特征在于,所述芯片包括可编程逻辑电路或程序,所述芯片用于实现如权利要求1至11中任一所述的应用于媒体接入控制层的数据处理方法。15. A chip, characterized in that the chip includes a programmable logic circuit or program, and the chip is used to implement the data processing method applied to the media access control layer according to any one of claims 1 to 11 .
CN202111033697.9A 2021-09-03 2021-09-03 Data processing method, device and equipment applied to media access control layer Active CN115766909B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111033697.9A CN115766909B (en) 2021-09-03 2021-09-03 Data processing method, device and equipment applied to media access control layer
PCT/CN2022/116484 WO2023030440A1 (en) 2021-09-03 2022-09-01 Data processing method and apparatus applied to media access control (mac) layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033697.9A CN115766909B (en) 2021-09-03 2021-09-03 Data processing method, device and equipment applied to media access control layer

Publications (2)

Publication Number Publication Date
CN115766909A true CN115766909A (en) 2023-03-07
CN115766909B CN115766909B (en) 2024-12-27

Family

ID=85332626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033697.9A Active CN115766909B (en) 2021-09-03 2021-09-03 Data processing method, device and equipment applied to media access control layer

Country Status (2)

Country Link
CN (1) CN115766909B (en)
WO (1) WO2023030440A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815366A (en) * 2010-04-01 2010-08-25 华为终端有限公司 Device, receiving terminal and method for analyzing MAC-ehs PDU
WO2018141229A1 (en) * 2017-02-03 2018-08-09 华为技术有限公司 Method and device for data transmission
US20190260519A1 (en) * 2016-11-03 2019-08-22 Huawei Technologies Co., Ltd. Information transmission method and related apparatus
US20190288797A1 (en) * 2016-09-30 2019-09-19 Huawei Technologies Co.,Ltd. Data transmission method and apparatus
CN110741579A (en) * 2017-06-14 2020-01-31 夏普株式会社 Procedure, user equipment and base station for code block group based transmission

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102561715B1 (en) * 2016-11-24 2023-08-02 삼성전자주식회사 Method and apparatus for partial retransmission in wirelss cellular communication system
CA3049031C (en) * 2017-01-04 2023-08-15 Idac Holdings, Inc. Receiver feedback in wireless systems
US11317413B2 (en) * 2019-06-11 2022-04-26 Qualcomm Incorporated Data packet grouping for traffic awareness in new radio

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815366A (en) * 2010-04-01 2010-08-25 华为终端有限公司 Device, receiving terminal and method for analyzing MAC-ehs PDU
US20190288797A1 (en) * 2016-09-30 2019-09-19 Huawei Technologies Co.,Ltd. Data transmission method and apparatus
US20190260519A1 (en) * 2016-11-03 2019-08-22 Huawei Technologies Co., Ltd. Information transmission method and related apparatus
WO2018141229A1 (en) * 2017-02-03 2018-08-09 华为技术有限公司 Method and device for data transmission
CN110741579A (en) * 2017-06-14 2020-01-31 夏普株式会社 Procedure, user equipment and base station for code block group based transmission

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
""r1-210xxxx_[105-e-nr-iiot_urllc_enh-01]_harq _enh_r3_v093_zte_fl"", 3GPP TSG_RAN\\WG1_RL1, 25 May 2021 (2021-05-25) *

Also Published As

Publication number Publication date
WO2023030440A1 (en) 2023-03-09
CN115766909B (en) 2024-12-27

Similar Documents

Publication Publication Date Title
US10602400B2 (en) Enhancement of PDCP status report
RU2461147C2 (en) Method of processing radio protocol in mobile communication system and mobile communication transmitter
JP5114567B2 (en) Efficient data block transmission method using header indicator
CN115066975B (en) Layer 2 downstream data on-line processing using integrated circuits
CN118488493A (en) Packet Data Convergence Protocol PDU Preprocessing
WO2018166517A1 (en) Data transmission method, data transmitting device, and data receiving device
US20230075613A1 (en) Terminal device
US10880871B2 (en) Method and apparatus for asymmetrical up-link/down-link protocol stack and frame structure in a 5G NR communication system
KR20090132503A (en) How to transfer the PDC data unit to the upper level
CN115066844A (en) Dynamic uplink end-to-end data transmission scheme with optimized memory path
CN110572850B (en) Method, device, equipment and storage medium for processing service data by 5G base station buffer memory
KR102337701B1 (en) Data transmission methods and devices
WO2016061987A1 (en) Packet processing method and device
CN115766909B (en) Data processing method, device and equipment applied to media access control layer
CN108012289B (en) PDU (protocol data Unit) sending method and device and PDU receiving method and device
WO2019015487A1 (en) Data retransmission method, rlc entity and mac entity
US20090042568A1 (en) Communication control method, transmission device and computer program
WO2021152363A2 (en) Layer 2 uplink data inline processing using integrated circuits
US20240259483A1 (en) Method and apparatus for handling protocol stack in wireless communication system
US20230412514A1 (en) Method and apparatus for managing the flow of data in pdcp
CN108882304B (en) A method and device for encapsulating data packets in a data link layer
CN116233040A (en) Data fragment reorganization method, device, equipment and storage medium
WO2021035433A1 (en) Retransmit the whole ip packet when detecting source id conflict in v2x
CN117134865A (en) Communication method and device
CN108282442B (en) Data sending method and device and user plane entity

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