CN109362102B - Data processing method and device of MAC layer - Google Patents

Data processing method and device of MAC layer Download PDF

Info

Publication number
CN109362102B
CN109362102B CN201811295480.3A CN201811295480A CN109362102B CN 109362102 B CN109362102 B CN 109362102B CN 201811295480 A CN201811295480 A CN 201811295480A CN 109362102 B CN109362102 B CN 109362102B
Authority
CN
China
Prior art keywords
data unit
service data
control
mac layer
protocol
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
Application number
CN201811295480.3A
Other languages
Chinese (zh)
Other versions
CN109362102A (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co 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 Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201811295480.3A priority Critical patent/CN109362102B/en
Publication of CN109362102A publication Critical patent/CN109362102A/en
Application granted granted Critical
Publication of CN109362102B publication Critical patent/CN109362102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols

Landscapes

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

Abstract

The application relates to a data processing method of an MAC layer, which comprises the following steps: receiving a service data unit issued by an upper layer, and determining the type of a protocol data unit corresponding to the service data unit; acquiring a control element required by a multiplexing service data unit from a scheduling module of an MAC layer; adding sub-headers to the service data units to obtain corresponding first transition data units, and adding sub-headers to the control elements to obtain corresponding second transition data units; the first transition data units are connected in series to obtain merged service data units, and the second transition data units are connected in series to obtain control data units; and after the control data unit is connected to the combined service data unit in series, the protocol data unit is obtained and is sent to the transmission channel with the corresponding type. The service data unit issued by the upper layer is multiplexed on the data surface of the MAC layer by using the control element provided by the scheduling module, so that the multiplexing processing process is simplified, and the multiplexing processing efficiency of the data of the MAC layer is greatly improved.

Description

Data processing method and device of MAC layer
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method and apparatus for an MAC layer.
Background
With the development of communication technology, in an NR (Radio Access network) system of fifth generation mobile communication, an L2 Layer (Data Link Layer) includes a MAC Layer (Media Access Control), a RLC Layer (Radio Link Control), and a PDCP Layer (Packet Data Convergence Protocol). The protocol layers supplement each other to finish the transmission of uplink and downlink data together. The MAC layer has the functions of scheduling and multiplexing and demultiplexing of transmission data: MAC SDUs (MAC layer service data units) from the logical channels are multiplexed, and the multiplexed MAC SDUs, i.e., MAC PDUs (MAC layer protocol data units), are mapped to the transport channels. The MAC PDU from the transport channel is demultiplexed, and the demultiplexed MAC PDU (i.e., MAC SDU) is mapped to a logical channel. In the NR system, data processing is performed layer by layer according to the hierarchical structure of the air interface protocol stack.
In NR systems, the conventional technique of multiplexing and demultiplexing data is done on the physical layer (PHY layer) or on the control plane of the MAC layer. However, in the process of implementing the present invention, the inventor finds that at least the data multiplexing and demultiplexing processing efficiency in the conventional technology is not high.
Disclosure of Invention
In view of the above, it is necessary to provide a data processing method of the MAC layer, another data processing method of the MAC layer, a data processing apparatus of the MAC layer, and another data processing apparatus of the MAC layer, which can greatly improve the multiplexing and demultiplexing processing efficiency of the data of the MAC layer, in order to solve the above technical problems.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in one aspect, an embodiment of the present invention provides a data processing method in an MAC layer, including:
receiving a service data unit issued by an upper layer, and determining the type of a protocol data unit corresponding to the service data unit;
acquiring a control element required by multiplexing the service data unit from a scheduling module of an MAC layer;
adding sub-headers to the service data units to obtain corresponding first transition data units, and adding sub-headers to the control elements to obtain corresponding second transition data units;
the first transition data units are connected in series to obtain merged service data units, and the second transition data units are connected in series to obtain control data units;
and after the control data unit is connected to the combined service data unit in series, the protocol data unit is obtained and sent to the transmission channel corresponding to the type.
In one embodiment, the method further comprises:
and if the total data amount of the transmission block where the protocol data unit is located is larger than the total data amount of the protocol data unit, adding a filling data unit behind the control data unit in the protocol data unit.
In one embodiment, the step of adding a subheader to the service data unit to obtain a corresponding first transition data unit, and adding a subheader to the control element to obtain a corresponding second transition data unit includes:
determining a logical channel corresponding to the service data unit, and adding a subheader to the service data unit according to the ID number of the logical channel to obtain the first transition data unit corresponding to the service data unit;
and determining a logical channel corresponding to the control element, and adding a subheader to the control element according to the ID number of the logical channel to obtain the second transition data unit corresponding to the control element.
In one embodiment, the determining the type of the protocol data unit corresponding to the service data unit includes:
and determining the type of the protocol data unit according to the ID number of the logical channel which issues the service data unit.
In another aspect, a data processing method of a MAC layer is further provided, including:
receiving a protocol data unit uploaded by a lower layer and determining the type of the protocol data unit; wherein the protocol data unit comprises a control data unit and a merge service data unit;
analyzing the protocol data unit to obtain the control data unit and the combined service data unit in sequence;
and demultiplexing the control data unit and the merged service data unit according to the types to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
In one embodiment, the method further comprises:
and forwarding each control element to a scheduling module, sending each service data unit to the logic channel corresponding to the type, and discarding the padding data unit.
In one embodiment, the protocol data unit further comprises a padding data unit; the method further comprises the following steps:
and discarding the padding data unit obtained after the protocol data unit is analyzed.
In still another aspect, a data processing apparatus of a MAC layer is further provided, including:
a downlink receiving module, configured to receive a service data unit delivered by an upper layer, and determine a type of a protocol data unit corresponding to the service data unit;
a control obtaining module, configured to obtain, from a scheduling module of an MAC layer, a control element required for multiplexing the service data unit;
a header adding module, configured to add a subheader to the service data unit to obtain a corresponding first transition data unit, and add a subheader to the control element to obtain a corresponding second transition data unit;
the multiplexing processing module is used for serially connecting the first transition data units to obtain merged service data units and serially connecting the second transition data units to obtain control data units;
and the group packet sending module is used for connecting the control data unit in series with the combined service data unit to obtain the protocol data unit and sending the protocol data unit to the transmission channel corresponding to the type.
In another aspect, a data processing apparatus of a MAC layer is also provided, including:
the uplink receiving module is used for receiving the protocol data unit uploaded by the lower layer and determining the type of the protocol data unit; wherein the protocol data unit comprises a control data unit and a merge service data unit;
the analysis processing module is used for analyzing the protocol data unit to obtain the control data unit and the combined service data unit in sequence;
and the demultiplexing module is used for respectively demultiplexing the control data unit and the merged service data unit according to the types to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
In still another aspect, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the data processing method of the MAC layer when executing the computer program.
In still another aspect, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data processing method of the MAC layer.
One of the above technical solutions has the following advantages and beneficial effects:
according to the data processing method of the MAC layer, the service data units issued by the upper layer on the data side of the MAC layer are multiplexed by using the control elements provided by the scheduling module, a general data unit package format is adopted, the multiplexing processing process is simplified, and the data multiplexing format is determined without consuming extra system resources, so that the multiplexing processing efficiency of the data on the MAC layer is greatly improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a data processing method implemented by the MAC layer;
FIG. 2 is a flowchart illustrating a data processing method of the MAC layer according to an embodiment;
FIG. 3 is a flow diagram illustrating data multiplexing processing at the MAC layer in one embodiment;
FIG. 4 is a flow diagram illustrating the addition of subheaders to data units in one embodiment;
FIG. 5 is a diagram illustrating the composition of a filler data cell in one embodiment;
FIG. 6 is a block diagram illustrating the composition of a merged service data unit in one embodiment;
FIG. 7 is a diagram illustrating the composition of control data units in one embodiment;
FIG. 8 is a diagram illustrating the components of a PDU sent down by the MAC layer in an embodiment;
fig. 9 is a flowchart illustrating a data processing method of the MAC layer in another embodiment;
FIG. 10 is a diagram illustrating the composition of lower layer uploaded PDU in one embodiment;
FIG. 11 is a schematic flow chart of the demultiplexing process in one embodiment;
FIG. 12 is a block diagram of a data processing apparatus of a MAC layer in one embodiment;
fig. 13 is a block diagram of a data processing apparatus of a MAC layer in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data processing method of the MAC layer provided in the present application may be applied to an application environment shown in fig. 1, that is, a partial protocol layer structure of a user plane (also referred to as a data plane) of a protocol stack in a base station. In the L2 layer, when the uplink data of the MAC layer (i.e., the RLC layer) passes through the MAC layer, the uplink data needs to be multiplexed and then transmitted to the downlink layer (i.e., the PHY layer).
In the multiplexing process of the MAC layer, the specific process may be: when a processor in the base station processes the downlink data multiplexing of the MAC layer and receives a service data unit (that is, MAC SDU) delivered by an upper layer, the processor may determine the type of the protocol data unit into which the service data unit is to be multiplexed according to the type of the protocol data unit that is determined at the same time, for example, according to a logical channel from which the service data unit comes, so as to determine a destination to which the protocol data unit needs to be delivered in the downlink process. After obtaining the service data unit, the control element required for multiplexing the service data unit, that is, the MAC CE required for multiplexing, is obtained from the scheduling module of the MAC layer. Further, a subheader is added to the service data unit (i.e., MAC sub-header is added), a corresponding first transition data unit is obtained, i.e., a service data unit (MAC sub pdu) to which the subheader is added, a subheader is added to the control element, and a corresponding second transition data unit is obtained, i.e., a data unit (MAC sub pdu) corresponding to the control element to which the subheader is added. And finally, performing final packaging processing on the obtained first transition data unit and the second transition data unit: the first transition data units are connected in series to obtain a combined service data unit; and the second transition data unit is connected in series to obtain a control data unit, and the control data unit is connected behind the merged service data unit in series to obtain a protocol data unit. The number of the service data units may be one, two or more, and for the convenience of understanding, a plurality of service data units are described in the present specification; correspondingly, the number of the control elements may also be multiple, and one service data unit corresponds to one control element.
The group package treatment process is that: sequentially concatenating the MAC sub-PDUs obtained by adding the sub-headers to each MAC SDU to form a merged service data unit (namely, MAC sPDU); and finally, according to the sequence of the MAC sPDU before and the MAC cPDU close to the MAC cPDU, the MAC sPDU and the MAC cPDU are connected in series to form a protocol data unit (namely the MAC PDU). And sending the protocol data unit obtained after multiplexing to a corresponding transmission channel in the MAC layer to the lower layer so that the protocol data unit can be sent to a corresponding destination according to the type.
In one embodiment, as shown in fig. 2, a data processing method of the MAC layer is provided, and is described by taking as an example that the method is applied to data processing on the MAC layer user plane in fig. 1, and includes the following steps S12 to S20:
s12, receiving the service data unit sent by the upper layer, and determining the type of the protocol data unit corresponding to the service data unit.
The service data unit is a downlink data unit from each channel of an upper layer (i.e., RLC), and each corresponding logical channel in the MAC layer is transmitted to the MAC layer. The number of service data units may be plural. The protocol data unit is the protocol data unit obtained correspondingly after the service data unit is subjected to multiplexing processing by the MAC layer and is used for downlink transmission. The type of the pdu includes destination information to which the data is sent, and is used to indicate a destination of transmission data carried in each service data unit. Specifically, in the MAC layer, a service data unit transmitted by an upper layer is received, and a type of a protocol data unit corresponding to the service data unit is determined.
S14, obtaining the control element required by multiplexing the service data unit from the scheduling module of the MAC layer.
The control element is a control data unit required when multiplexing the service data unit. Specifically, after receiving each downlink service data unit, the scheduling module for scheduling control in the multiplexing and demultiplexing process in the base station may be received, and each corresponding control element is sent so as to perform multiplexing processing on each corresponding service data unit. It is to be understood that one service data unit may correspond to one control element.
S16, adding the subheader to the service data unit to obtain a corresponding first transition data unit, and adding the subheader to the control element to obtain a corresponding second transition data unit.
It is understood that in the process of adding subheaders to the service data units respectively, one service data unit may correspond to one first transition data unit added with a subheader. Accordingly, in the process of adding the subheaders to the control elements, one control element may obtain one second transition data unit to which the subheader is added.
Specifically, after obtaining each service data unit and each corresponding control element, adding sub-headers to each service data unit and each control element, respectively, to obtain each first transition data unit corresponding to each service data unit, and each second transition data unit corresponding to each control element, respectively.
And S18, the first transition data units are connected in series to obtain a merged service data unit, and the second transition data units are connected in series to obtain a control data unit.
It is understood that after the adding process of the subheaders is completed for the service data units and the control elements respectively, the first transition data units with the total number corresponding to the total number of the service data units and the second transition data units with the total number corresponding to the total number of the control elements can be obtained respectively. Specifically, after adding sub-headers to each service data unit and each control element, respectively, all the obtained first transition data units and all the obtained second transition data units are packed: and sequentially connecting the first transition data units obtained by respectively adding the subheaders to the service data units in series to form a combined service data unit. And sequentially connecting the second transition data units obtained by respectively adding the subheaders to the control elements in series to form a control data unit.
And S20, after the control data unit is connected in series to the merged service data unit, the protocol data unit is obtained and sent to the transmission channel with the corresponding type.
Specifically, after the corresponding merged service data unit and the control data unit are obtained, the merged service data unit and the control data unit are connected in series according to the sequence of the merged service data unit before and the control data unit next to each other, so as to obtain a protocol data unit, and data can be continuously transmitted to a lower layer. After the multiplexing processing from the service data unit to the protocol data unit is completed, the obtained protocol data unit is sent to the transmission channel corresponding to the type, so that the data in the protocol data unit is descended to the corresponding destination.
According to the data processing method of the MAC layer, the downlink service data units are multiplexed on the user plane of the MAC layer by using the control elements provided by the scheduling module, a general data unit package format is adopted, the multiplexing processing process is simplified, and extra system resources are not required to be consumed to determine the data multiplexing format, so that the multiplexing processing efficiency of the data of the MAC layer is greatly improved.
In an embodiment, as shown in the multiplexing process shown in fig. 3, the data processing method of the MAC layer further includes the following steps:
if the total data amount of the transmission block where the protocol data unit is located is larger than the total data amount of the protocol data unit, a filling data unit is added behind the control data unit in the protocol data unit.
The transport block is a transport data block in the MAC layer for transmitting the protocol data unit obtained after the current multiplexing process, and the size of the total amount of data that can be carried by the transport block can be obtained through negotiation between the upper layer and the scheduling module. The padding data unit is a data unit formed by a MAC padding element which is conventional in the art and does not carry actual valid data, and is used for filling the vacant data vacancy on the transport block.
Specifically, when the total amount of data included in the protocol data unit is smaller than the total amount of data that can be carried by the transmission block in which the protocol data unit is located, for example, the total amount of data of the protocol data unit is subtracted from the total amount of data of the transmission block, so that whether the transmission block is occupied by the protocol data unit or not and the size of the margin can be obtained. When a transport block has a data vacancy (i.e. scheduling margin of current multiplexing processing), a padding data unit corresponding to the size of the scheduling margin may be added behind a control data unit in a protocol data unit, so as to finally obtain a padded downlink protocol data unit.
Through the steps, the filling data unit can be quickly added to the transmission block with the margin after the protocol data unit is generated, and the final downlink protocol data unit is obtained. The transmission block filling processing process is simple and convenient, and the multiplexing processing efficiency is effectively improved.
Referring to fig. 4 to 8, in an embodiment, the step S16 may specifically include the following sub-steps S162 and S164:
and S162, determining a logical channel corresponding to the service data unit, and adding a subheader to the service data unit according to the ID number of the logical channel to obtain a first transition data unit corresponding to the service data unit.
The ID number of the logical Channel, that is, the LCID (logical Channel ID, logical Channel number) of the logical Channel in the MAC layer, may be obtained by performing corresponding recording when receiving a service data unit delivered by an upper layer.
Specifically, in the process of adding the subheaders to the service data units respectively, the subheaders may be added to the service data units respectively according to ID numbers of logical channels from which the service data units come, as shown in fig. 5, the subheaders are added by MAC padding to form a padding data unit, and then, as shown in fig. 6, the subheaders are concatenated in front of the service data units to form a corresponding first interim data unit (MAC sub pdu), and then, the concatenated merged service data unit (MAC sdu) is finally formed.
And S164, determining a logical channel corresponding to the control element, and adding a subheader to the control element according to the ID number of the logical channel to obtain a second transition data unit corresponding to the control element.
Specifically, the type of the control element may be determined according to the logical channel from the control element during multiplexing, so that, in the process of adding the subheader to each control element, the subheader may be added to each control element according to the ID number of the logical channel from each control element, that is, the subheader is concatenated in front of the control element to form a corresponding second transition data unit (MAC subPDU), and then the concatenated control data unit (MAC cPDU) is finally obtained, as shown in fig. 7. As shown in fig. 8, after the multiplexing process, a protocol data unit MAC PDU is obtained when a padding data unit is included.
Through the steps S162 and S164, the subheaders can be quickly and accurately added to the user plane of the MAC layer for each service data unit and each control element, so as to obtain each corresponding first transition data unit and second transition data unit, thereby simplifying the header adding process and improving the efficiency.
In an embodiment, regarding the step S12, the process of determining the type of the protocol data unit corresponding to the service data unit may specifically include the following processes:
and determining the type of the protocol data unit according to the ID number of the logical channel for sending the service data unit.
Specifically, in step S12, when receiving each downlink service data unit, the logical channel from which each service data unit comes is determined, that is, the type of the corresponding pdu is determined according to the ID number of the logical signal from which each service data unit comes, so as to determine the destination to which data is sent during downlink transmission of each service data unit. By the above type determination, accurate transmission of transmission data in each service data unit is ensured.
Referring to fig. 9 to 11, in an embodiment, a data processing method of a MAC layer is further provided, including the following steps S11 to S15:
s11, receiving the protocol data unit uploaded by the lower layer and determining the type of the protocol data unit; the protocol data unit comprises a control data unit and a combined service data unit;
s13, analyzing the protocol data unit to obtain a control data unit and a combined service data unit;
and S15, demultiplexing the control data unit and the merged service data unit according to the type to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
Specifically, in the data demultiplexing process of the MAC layer, the protocol data unit submitted from the lower layer enters the MAC layer through the transport channel of the MAC layer, and at this time, the type of the protocol data unit may be determined according to the logical channel number to which the protocol data unit needs to be sent, so as to determine the transmission destination of the transmission data in the protocol data unit. The protocol data unit (as shown in fig. 10, where whether the padding data unit MAC pdu is included is determined by the total data amount of the protocol data unit uploaded at the lower layer, and the padding data unit in fig. 3 is understood in the same way as above) is analyzed (i.e., the reverse process of the packet-unpacking process is one of the demultiplexing steps), so as to obtain a control data unit and a merged service data unit. Then, according to the type of the protocol data unit, for example, the LCID field of each control element and the LCID field of each service data unit in the protocol data unit, demultiplexing processing is performed on the control data unit and the merged service data unit, that is, a main demultiplexing processing step is performed to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit, so as to complete demultiplexing processing of the protocol data unit uploaded at the lower layer, as shown in the demultiplexing flow diagram shown in fig. 11.
Through the steps S11 to S15, the protocol data unit uploaded by the lower layer is demultiplexed on the data plane of the MAC layer, so that the demultiplexing process is simplified, and the demultiplexing efficiency of the data of the MAC layer is effectively improved.
In an embodiment, the data processing method of the MAC layer further includes the following steps:
and forwarding each control element to a scheduling module, and sending each service data unit to a logic channel with a corresponding type.
Specifically, after the demultiplexing processing, each obtained control element may be forwarded to the scheduling module. After being aggregated, each service data unit is forwarded to a corresponding logical channel (which may be determined by the type of the service data unit) of an upper layer (i.e., an RLC layer), and the delivery of the valid data unit to the upper layer is completed. Wherein the padding data unit does not contain actual valid data. The submitting processing of the corresponding data unit to the upper layer is quickly and reliably completed through the steps, and the data processing process is simple, convenient and efficient.
In one embodiment, the protocol data unit uploaded by the lower layer further comprises a padding data unit. The data processing method of the MAC layer further includes the steps of:
and discarding the padding data unit obtained after the protocol data unit is analyzed.
Optionally, the protocol data unit received from the lower layer may further include a padding data unit, that is, the padding data unit is also included after the service data unit is merged. For example, in the data downlink process, when the data amount of the transmission block is greater than the total data amount of the control data unit and the merge service data unit, a padding data unit with a certain data stream size needs to be added to fill up the vacant data amount in the transmission block.
When the protocol data unit uploaded by the lower layer contains the filling data unit, the corresponding filling data unit can be obtained after the protocol data unit is analyzed. After being analyzed, the padding data unit does not need to be submitted to an upper layer, and can be directly discarded. Through the steps, discarding processing when the filling data unit exists can be quickly realized, resource occupation is avoided, and processing efficiency of data submitting to an upper layer is improved.
It should be understood that although the various steps in the flowcharts of fig. 2, 4 and 9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 4, and 9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps. It should be noted that the data processing method of the MAC layer and the data processing method of the MAC layer may also be applied to the LTE system, and specific implementation steps refer to the embodiments described above with the NR system as an example.
In one embodiment, as shown in fig. 12, a data processing apparatus 100 of a MAC layer is provided, which includes a downlink receiving module 12, a control obtaining module 14, a header adding module 16, a multiplexing processing module 18, and a group packet sending module 20, where:
the downlink receiving module 12 is configured to receive a service data unit delivered by an upper layer, and determine a type of a protocol data unit corresponding to the service data unit.
And a control obtaining module 14, configured to obtain the control element required by the multiplexing service data unit on the scheduling module 22 of the MAC layer.
And a header adding module 16, configured to add a subheader to the service data unit to obtain a corresponding first transition data unit, and add a subheader to the control element to obtain a corresponding second transition data unit.
And the multiplexing processing module 18 is configured to concatenate the first transition data units to obtain merged service data units, and concatenate the second transition data units to obtain control data units.
And a packet sending module 20, configured to concatenate the control data unit to the merged service data unit to obtain a protocol data unit, and send the protocol data unit to a transmission channel of a corresponding type.
The data processing apparatus 100 in the MAC layer performs multiplexing on the downlink service data unit on the data plane of the MAC layer by using the control element provided by the scheduling module, and adopts a general data unit packet format, so that the multiplexing process is simplified and the data multiplexing format does not need to be determined by consuming additional system resources, thereby greatly improving the multiplexing processing efficiency of the data on the MAC layer.
In an embodiment, the data processing apparatus 100 of the MAC layer further includes a padding processing module, configured to add a padding data unit after a control data unit of a protocol data unit when a total data amount of a transport block in which the protocol data unit is located is greater than a total data amount of the protocol data unit.
In an embodiment, the head adding module 16 may specifically include a first head adding module and a second head adding module, where:
and the first header adding module is used for determining the logical channels corresponding to the service data units, and adding sub-headers to the service data units according to the ID numbers of the logical channels to obtain first transition data units corresponding to the service data units.
And the second head adding module is used for determining the logical channels corresponding to the control elements, and adding sub heads to the control elements according to the ID numbers of the logical channels to obtain second transition data units corresponding to the control elements.
In an embodiment, the downlink receiving module 12 includes a type determining submodule, configured to determine the type of the protocol data unit according to an ID number of a logical channel that issues a service data unit.
In one embodiment, as shown in fig. 13, there is provided a data processing apparatus 200 of a MAC layer, including an uplink receiving module 11, a parsing module 13, and a demultiplexing module 15, where:
and the uplink receiving module 11 is configured to receive the protocol data unit uploaded by the lower layer and determine the type of the protocol data unit. The protocol data unit comprises a control data unit and a combined service data unit.
And the analysis processing module 13 is configured to perform analysis processing on the protocol data unit to obtain a control data unit and a merged service data unit in sequence.
The demultiplexing module 15 is configured to demultiplex the control data unit and the merged service data unit according to the type to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
The data processing device 200 of the MAC layer demultiplexes the protocol data unit uploaded from the lower layer on the data plane of the MAC layer, so that the demultiplexing process is simplified, and the demultiplexing efficiency of the data of the MAC layer is effectively improved.
In one embodiment, the data processing apparatus 200 of the MAC layer further includes a data sending module, configured to forward each control element to the scheduling module 22, and send each service data unit to the logical channel corresponding to the type.
In one embodiment, the protocol data unit further comprises a padding data unit. The data processing apparatus 200 of the MAC layer further includes a data discarding module, configured to discard a padding data unit obtained after the protocol data unit is analyzed.
For specific limitations of the data processing apparatus 100 or 200 at the MAC layer, reference may be made to the above limitations of the data processing method at the MAC layer or the data processing method at the MAC layer, which are not described herein again. Each module in the data processing apparatus 100 of the MAC layer or the data processing apparatus 200 of the MAC layer may be entirely or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a base station, for example a base station of a 4G mobile communication network or a base station of a 5G mobile communication network. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data processing data of the MAC layer. The network interface of the computer device is used for communicating with an external terminal (e.g., a UE device) through a network connection. The computer program is executed by a processor to implement the steps of the data processing method of the MAC layer described above.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: receiving a service data unit issued by an upper layer, and determining the type of a protocol data unit corresponding to the service data unit; acquiring a control element required by a multiplexing service data unit from a scheduling module of an MAC layer; adding sub-headers to the service data units to obtain corresponding first transition data units, and adding sub-headers to the control elements to obtain corresponding second transition data units; the first transition data units are connected in series to obtain merged service data units, and the second transition data units are connected in series to obtain control data units; and after the control data unit is connected to the combined service data unit in series, a protocol data unit is obtained and is sent to a transmission channel corresponding to the type.
Or the following steps are realized: receiving a protocol data unit uploaded at a lower layer and determining the type of the protocol data unit; the protocol data unit comprises a control data unit, a merging service data unit and a filling data unit; analyzing the protocol data unit to obtain a control data unit, a combined service data unit and a filling data unit; and respectively carrying out demultiplexing treatment on the control data unit and the combined service data unit according to the type to obtain each control element corresponding to the control data unit and each service data unit corresponding to the combined service data unit.
In one embodiment, when the processor executes the computer program, the processor further implements the steps of the data processing method of the MAC layer in the foregoing sub-embodiments.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a service data unit issued by an upper layer, and determining the type of a protocol data unit corresponding to the service data unit; acquiring a control element required by a multiplexing service data unit from a scheduling module of an MAC layer; adding sub-headers to the service data units to obtain corresponding first transition data units, and adding sub-headers to the control elements to obtain corresponding second transition data units; the first transition data units are connected in series to obtain merged service data units, and the second transition data units are connected in series to obtain control data units; and after the control data unit is connected to the combined service data unit in series, the protocol data unit is obtained and is sent to the transmission channel with the corresponding type.
Or the following steps are realized: receiving a protocol data unit uploaded at a lower layer and determining the type of the protocol data unit; the protocol data unit comprises a control data unit, a merging service data unit and a filling data unit; analyzing the protocol data unit to obtain a control data unit, a combined service data unit and a filling data unit; and respectively carrying out demultiplexing treatment on the control data unit and the combined service data unit according to the type to obtain each control element corresponding to the control data unit and each service data unit corresponding to the combined service data unit.
In one embodiment, the computer program, when executed by the processor, further implements the steps of the data processing method of the MAC layer in the sub-embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A data processing method of a MAC layer is characterized by comprising the following steps:
receiving a service data unit issued by an upper layer, and determining the type of a protocol data unit corresponding to the service data unit;
acquiring a control element required by multiplexing the service data unit from a scheduling module of an MAC layer;
adding sub-headers to the service data units to obtain corresponding first transition data units, and adding sub-headers to the control elements to obtain corresponding second transition data units;
the first transition data units are connected in series to obtain merged service data units, and the second transition data units are connected in series to obtain control data units;
and after the control data unit is connected to the merged service data unit in series according to the sequence of the merged service data unit before and the control data unit next to the merged service data unit, the protocol data unit is obtained and sent to the transmission channel corresponding to the type.
2. The data processing method of the MAC layer according to claim 1, wherein the method further comprises:
and if the total data amount of the transmission block where the protocol data unit is located is larger than the total data amount of the protocol data unit, adding a filling data unit behind the control data unit in the protocol data unit.
3. The data processing method of the MAC layer according to claim 1, wherein the step of adding a subheader to the service data unit to obtain a corresponding first transition data unit, and adding a subheader to the control element to obtain a corresponding second transition data unit comprises:
determining a logical channel corresponding to the service data unit, and adding a subheader to the service data unit according to the ID number of the logical channel to obtain the first transition data unit corresponding to the service data unit;
and determining a logical channel corresponding to the control element, and adding a subheader to the control element according to the ID number of the logical channel to obtain the second transition data unit corresponding to the control element.
4. The data processing method at the MAC layer according to claim 1, wherein the process of determining the type of the pdu corresponding to the sdu comprises:
and determining the type of the protocol data unit according to the ID number of the logical channel which issues the service data unit.
5. A data processing method of a MAC layer is characterized by comprising the following steps:
receiving a protocol data unit uploaded by a lower layer and determining the type of the protocol data unit; the protocol data unit comprises a control data unit and a combined service data unit, and is obtained by connecting the control data unit to the combined service data unit in series according to the sequence of the combined service data unit before and the control data unit next to the combined service data unit; the merged service data unit is obtained by concatenating corresponding first transition data units obtained by adding sub-headers to the service data unit, and the control data unit is obtained by concatenating corresponding second transition data units obtained by adding sub-headers to the control element;
analyzing the protocol data unit to obtain the control data unit and the combined service data unit in sequence;
and demultiplexing the control data unit and the merged service data unit according to the types to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
6. The data processing method of the MAC layer of claim 5, wherein the method further comprises:
and forwarding each control element to a scheduling module, and sending each service data unit to the logic channel corresponding to the type.
7. The data processing method of the MAC layer of claim 6, wherein the protocol data unit further includes a padding data unit; the method further comprises the following steps:
and discarding the padding data unit obtained after the protocol data unit is analyzed.
8. A data processing apparatus of a MAC layer, comprising:
a downlink receiving module, configured to receive a service data unit delivered by an upper layer, and determine a type of a protocol data unit corresponding to the service data unit;
a control obtaining module, configured to obtain, from a scheduling module of an MAC layer, a control element required for multiplexing the service data unit;
a header adding module, configured to add a subheader to the service data unit to obtain a corresponding first transition data unit, and add a subheader to the control element to obtain a corresponding second transition data unit;
the multiplexing processing module is used for serially connecting the first transition data units to obtain merged service data units and serially connecting the second transition data units to obtain control data units;
and the group packet sending module is used for connecting the control data unit in series to the merged service data unit according to the sequence of the merged service data unit before and the control data unit next to obtain the protocol data unit and sending the protocol data unit to the transmission channel corresponding to the type.
9. A data processing apparatus of a MAC layer, comprising:
the uplink receiving module is used for receiving the protocol data unit uploaded by the lower layer and determining the type of the protocol data unit; the protocol data unit comprises a control data unit and a combined service data unit, and is obtained by connecting the control data unit to the combined service data unit in series according to the sequence of the combined service data unit before and the control data unit next to the combined service data unit; the merged service data unit is obtained by concatenating corresponding first transition data units obtained by adding sub-headers to the service data unit, and the control data unit is obtained by concatenating corresponding second transition data units obtained by adding sub-headers to the control element;
the analysis processing module is used for analyzing the protocol data unit to obtain the control data unit and the combined service data unit in sequence;
and the demultiplexing module is used for respectively demultiplexing the control data unit and the merged service data unit according to the types to obtain each control element corresponding to the control data unit and each service data unit corresponding to the merged service data unit.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the data processing method of the MAC layer of any one of claims 1 to 7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the data processing method of the MAC layer of any one of claims 1 to 7.
CN201811295480.3A 2018-11-01 2018-11-01 Data processing method and device of MAC layer Active CN109362102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811295480.3A CN109362102B (en) 2018-11-01 2018-11-01 Data processing method and device of MAC layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811295480.3A CN109362102B (en) 2018-11-01 2018-11-01 Data processing method and device of MAC layer

Publications (2)

Publication Number Publication Date
CN109362102A CN109362102A (en) 2019-02-19
CN109362102B true CN109362102B (en) 2022-05-06

Family

ID=65343786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811295480.3A Active CN109362102B (en) 2018-11-01 2018-11-01 Data processing method and device of MAC layer

Country Status (1)

Country Link
CN (1) CN109362102B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404659A (en) * 2008-11-04 2009-04-08 中国科学院计算技术研究所 Construction and analysis method and device for protocol data unit
CN201230323Y (en) * 2007-03-07 2009-04-29 美商内数位科技公司 Node B for generating and processing medium access control protocol data units

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100926707B1 (en) * 2002-11-05 2009-11-17 엘지전자 주식회사 Data communication method of mobile communication system
CN100571109C (en) * 2004-11-29 2009-12-16 中兴通讯股份有限公司 High density channels apparatus for multiplexing and demultiplexing and method
CN101175023B (en) * 2006-10-30 2011-12-28 中兴通讯股份有限公司 Serial connection method for wireless links control layer service data unit
CN102026411B (en) * 2009-09-18 2014-07-23 电信科学技术研究院 Method, system and device for transmitting MAC PDU
CN102883278B (en) * 2011-07-12 2016-03-23 普天信息技术有限公司 A kind of transmission method of cluster multi call business downlink data
EP3400733B1 (en) * 2016-01-06 2021-08-25 LG Electronics Inc. Method for transmitting a mac pdu in wireless communication system and a device therefor
US10855409B2 (en) * 2016-10-11 2020-12-01 Qualcomm Incorporated Media access control header and transport block formats

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201230323Y (en) * 2007-03-07 2009-04-29 美商内数位科技公司 Node B for generating and processing medium access control protocol data units
CN101404659A (en) * 2008-11-04 2009-04-08 中国科学院计算技术研究所 Construction and analysis method and device for protocol data unit

Also Published As

Publication number Publication date
CN109362102A (en) 2019-02-19

Similar Documents

Publication Publication Date Title
US11051322B2 (en) Data processing method, apparatus, and system
JP5261587B2 (en) Method and apparatus for signaling packet segmentation and concatenation in a communication system
TWI492563B (en) Mac layer packet data units for wireless communications
US20180368166A1 (en) User equipment and method to support data preprocessing
EP1261222A1 (en) Method for allocating resources in the uplink of a wireless communication network and corresponding radio terminal
CN107005560B (en) Data sending method, data receiving method and related equipment
US20040008659A1 (en) Method of setting initial transport format combination in broadband code division multiple access system
EP2814283B1 (en) Method and device for transmitting/receiving data
CN107925505B (en) User and network side equipment, method for determining processing mode of data packet
US11419004B2 (en) Optimization of logical channel processing for multiple transport blocks
CN101945440B (en) Data transmission processing method and system
CN110572850A (en) method, device, equipment and storage medium for caching and processing service data by 5G base station
CN109362102B (en) Data processing method and device of MAC layer
US20180124634A1 (en) Logical channel prioritization and data block preparation
US7756080B2 (en) Method and a device for reallocating transport format combination identifiers in a wireless system
US10869314B2 (en) Method and terminal device for allocating logical channel resources
US20230019547A1 (en) Uplink data transmission scheduling
CN108366039B (en) Sending method, receiving method, device and equipment of MAC layer data
CN107612871B (en) Data transmission processing method, user terminal, network equipment and system
CN116017564A (en) Satellite reverse link efficient transmission method, system, equipment and storage medium
CN110856218B (en) Data encapsulation method and communication device
CN109845315B (en) Data preprocessing method, network device, user equipment and computer storage medium
CN107979441B (en) Data processing method and device, RRC (radio resource control) entity and MAC (media access control) entity
CN113132999B (en) Resource allocation method, device, network equipment and storage medium
CN115136727A (en) Downlink protocol alignment and decoding

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200109

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: Comba Telecom System (China) Ltd.

GR01 Patent grant
GR01 Patent grant