Data processing method and device, terminal equipment and network equipment

By parsing the fragmented groups of MPDU frames in parallel and using a combination of general and sub-parsing modules, efficient MPDU parsing is achieved, solving the problems of parsing efficiency and power consumption in the existing technology, and improving clock frequency and circuit stability.

CN118677968APending Publication Date: 2024-09-20伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310251874.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Existing MPDU parsing solutions have shortcomings in terms of area, power consumption and clock frequency. Single-cycle parsing efficiency is low, and multi-cycle parsing reduces parsing efficiency.

Method used

By parsing the first fragment group and the second fragment group of the MPDU frame in parallel, the general parsing module is used to parse the frame header, and the frame type is determined according to the frame control domain, and the corresponding sub-parsing module is started to parse the frame body and frame Parsing is performed at the end of the file, using a pipeline approach to parse, reducing overall parsing time and storage requirements.

Benefits of technology

The timing path of the MPDU parsing circuit is shortened, the parsing efficiency and the clock frequency of the circuit are improved, the power consumption and circuit area are reduced, and the MPDU parsing efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677968A
    Figure CN118677968A
Patent Text Reader

Abstract

The invention provides a data processing method and device, terminal equipment and network equipment. The data processing method comprises the following steps: analyzing a first fragment group of an MPDU frame to obtain first analysis information of the MPDU; analyzing the second fragment group to obtain second analysis information of the MPDU; and determining analysis data of the MPDU according to the first analysis information and the second analysis information. According to the embodiment of the invention, one MPDU frame does not need to be analyzed after being intensively received, and the partial content of the MPDU is analyzed after the first fragment group of the MPDU frame is received, so that the time sequence path of an MPDU analysis circuit is shortened, the overall analysis time is shortened, the clock frequency of the circuit is improved, and the analysis efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and more specifically, to a method and apparatus for processing data, a terminal device, and a network device. Background Art

[0002] With the development of wireless communication technology, wireless communication protocols are becoming increasingly complex, with higher requirements for data transmission. In order to adapt to higher data transmission rates, an efficient media access control layer protocol data unit (MAC protocol data unit, MPDU) parser design is required on the receiving path of the media access control layer (MAC). MPDU parsing is mainly divided into two types: single-cycle parsing and multi-cycle parsing. The single-cycle parsing solution has shortcomings in terms of area, power consumption and clock frequency limitations, and the multi-cycle parsing solution reduces the parsing efficiency. The current MPDU parsing solution still has a lot of room for improvement. Summary of the invention

[0003] The embodiments of the present application provide a method and apparatus for processing data, a terminal device, and a network device. The following introduces various aspects involved in the embodiments of the present application.

[0004] In a first aspect, a method for processing data is provided, comprising: parsing a first fragmentation group of an MPDU frame to obtain first parsing information of the MPDU; parsing a second fragmentation group of the MPDU frame to obtain second parsing information of the MPDU; and determining parsing data of the MPDU based on the first parsing information and the second parsing information.

[0005] In a second aspect, a device for processing data is provided, comprising: a first parsing module, used to parse a first fragmentation group of an MPDU frame to obtain first parsing information of the MPDU; a second parsing module, used to parse a second fragmentation group of the MPDU frame to obtain second parsing information of the MPDU; and a first determination module, used to determine the parsed data of the MPDU based on the first parsing information and the second parsing information.

[0006] In a third aspect, a device for processing data is provided, comprising: a memory for storing code; and a processor for executing the code stored in the memory to execute the method as described in the first aspect.

[0007] According to a fourth aspect, a terminal device is provided, comprising the apparatus for processing data as described in the second aspect.

[0008] According to a fifth aspect, a network device is provided, comprising the apparatus for processing data as described in the second aspect.

[0009] According to a sixth aspect, a chip is provided, comprising a processor, wherein the processor is configured to execute the method described in the first aspect.

[0010] According to a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program is used to execute the method described in the first aspect.

[0011] According to an eighth aspect, a computer program product is provided, comprising instructions for executing the method according to the first aspect.

[0012] The embodiment of the present application does not need to receive an MPDU frame in a centralized manner before parsing it. After receiving the first fragment group of the MPDU frame, the partial content of the MPDU is parsed without delaying the reception of the second fragment group of the MPDU frame. This helps to shorten the timing path of the MPDU parsing circuit, reduce the overall parsing time, improve the parsing efficiency, and increase the clock frequency of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a schematic diagram of an application scenario of an embodiment of the present application.

[0014] Figure 2 It is a schematic diagram of MPDU single cycle parsing.

[0015] Figure 3 It is a schematic diagram of MPDU multi-cycle parsing.

[0016] Figure 4 It is a flowchart of the method for processing data provided in an embodiment of the present application.

[0017] Figure 5 yes Figure 4 A schematic diagram of a possible implementation of the method.

[0018] Figure 6 Is adopted Figure 4 A schematic diagram of a possible analytical circuit for the method.

[0019] Figure 7 It is a structural diagram of a device for processing data provided in an embodiment of the present application.

[0020] Figure 8 It is a structural schematic diagram of another device for processing data provided in an embodiment of the present application.

[0021] Fig. 9 It is a schematic diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0023] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: global system of mobile communication (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new radio (NR), etc. The technical solutions provided in the present application can also be applied to future communication systems, such as the sixth generation mobile communication system, and satellite communication system, etc.

[0024] Figure 1 Schematic diagram of a communication scenario of an embodiment of the present application. Figure 1 As shown, the application scenario includes a network device 110 and a terminal device 120. The network device 110 may be an access network device, such as a base station. Each network device 110 includes one or more cells.

[0025] The terminal device in the embodiment of the present application may also be referred to as a terminal, user equipment (UE), user terminal, access terminal, user unit, user station, mobile station, mobile station (MS), mobile terminal (MT), remote terminal, remote station, mobile device, wireless communication device, user agent or user device. The terminal device in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, and may be used to connect people, objects and machines, such as a handheld device with wireless connection function, a vehicle-mounted device, etc. The terminal device in the embodiment of the present application can be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. Optionally, the UE can be used to act as a base station. For example, the UE can act as a scheduling entity that provides sidelink signals between UEs in V2X or D2D, etc. For example, a cellular phone and a car communicate with each other using a sidelink signal. The cellular phone and the smart home device communicate with each other without relaying the communication signal through the base station.

[0026] The network device in the embodiment of the present application may be a device for communicating with a terminal device, and the network device may also be referred to as an access network device or a wireless access network device, such as a base station. The network device in the embodiment of the present application may refer to a wireless access network (RAN) node (or device) that connects a terminal device to a wireless network. Base station can broadly cover various names as follows, or replace with the following names, such as: NodeB, evolved NodeB (eNB), next generation NodeB (gNB), relay station, access point, transmission point (TRP), transmission point (TP), master station MeNB, auxiliary station SeNB, multi-standard radio (MSR) node, home base station, network controller, access node, wireless node, access point (AP), transmission node, transceiver node, base band unit (BBU), remote radio unit (RRU), active antenna unit (AAU), remote radio head (RRH), central unit (CU), distributed unit (DU), positioning node, etc. The base station can be a macro base station, a micro base station, a relay node, a donor node or the like, or a combination thereof. The base station can also refer to a communication module, a modem or a chip used to be arranged in the aforementioned device or apparatus. The base station can also be a mobile switching center and a device that performs base station functions in device-to-device D2D, vehicle-to-everything (V2X), machine-to-machine (M2M) communications, a network-side device in a 6G network, and a device that performs base station functions in future communication systems. The base station can support networks with the same or different access technologies. The embodiments of the present application do not limit the specific technology and specific device form used by the network equipment.

[0027] Base stations can be fixed or mobile. For example, a helicopter or drone can be configured to act as a mobile base station, and one or more cells can move based on the location of the mobile base station. In other examples, a helicopter or drone can be configured to act as a device that communicates with another base station.

[0028] In some deployments, the network device in the embodiments of the present application may refer to a CU or a DU, or the network device includes a CU and a DU. The gNB may also include an AAU.

[0029] The network equipment and terminal equipment can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on the water surface; they can also be deployed on aircraft, balloons and satellites in the air. The embodiments of the present application do not limit the scenarios in which the network equipment and terminal equipment are located.

[0030] The network device and / or terminal device transmits the received wireless communication signal from the physical layer (PHY) to the upper layer, such as the network layer, via the media access control layer (MAC). In the interconnection protocol model of the wireless communication system, the data transmitted between the protocols of each layer is called the service data unit (SDU), and the data transmitted between the protocol entities of each layer is called the protocol data unit (PDU).

[0031] The PHY layer mainly provides the PHY transmission mechanism that maps the MAC layer protocol data unit (MPDU) to the corresponding physical channel, using orthogonal frequency division multiplexing (OFDM) and multiple-input multiple-output (MIMO) technology. MPDU is a data unit exchanged between two peer MAC entities using the PHY layer service. The MAC layer is an intermediate layer located between the high-level layer and the transceiver PHY layer, and may include the adaptation sublayer and the MAC sublayer. The adaptation sublayer mainly provides the mapping and conversion functions between external network data and the MAC service data unit (MSDU); in addition to the media access control function, the MAC sublayer also includes the management and control of the system and the support for specific functions of PHY.

[0032] With the development of wireless communication technology, wireless communication protocols are becoming increasingly complex, with higher requirements for data transmission rates, etc. The following uses the wireless fidelity (Wifi) protocol as an example. In order to adapt to higher data transmission rates and further improve the energy efficiency of Wifi chips, an efficient MPDU parser design is required in the MAC receive (RX) path.

[0033] In traditional parser design, it is usually necessary to receive an MPDU in batches before parsing it. After all parsing is completed, the data is passed to the next level module, such as the network layer. MPDU parsing is mainly divided into two types: single-cycle parsing and multi-cycle parsing. Figure 2 This is a schematic diagram of MPDU single cycle parsing. Figure 2 As shown, an MPDU may include multiple fragments. For example, an MPDU0 frame may include fragments MPDU0_0, MPDU0_1, MPDU0_2, and MPDU0_3. The parsing result is output in a single clock cycle after a complete MPDU is fully collected. With the development of Wifi protocols and the increase in transmission rates, the size of a single MPDU has increased rapidly, and the storage space required to store MPDUs has greatly increased, and the area and power consumption costs paid have become increasingly unacceptable. Moreover, single-cycle parsing solutions often have lower performance. In the case of single-cycle parsing, due to the large logic depth, there is often a longer timing path, which limits the clock frequency of the circuit. The timing path consists of a starting point, a wiring delay, a unit delay, and an end point.

[0034] Figure 3 This is a schematic diagram of MPDU multi-cycle parsing. Figure 3 As shown in FIG. 1 , multi-cycle parsing blocks the input of subsequent MPDU data after receiving an MPDU, and outputs the parsing result after multiple clock cycles. Since the input of MPDU data needs to be blocked, it takes a longer time to complete the parsing of an MPDU, thereby reducing the parsing efficiency of the MPDU.

[0035] It can be seen that the technical solution of MPDU single-cycle parsing has shortcomings in terms of area, power consumption and limited clock frequency, and the technical solution of multi-cycle parsing reduces the parsing efficiency. The current MPDU parsing solution still has a lot of room for improvement.

[0036] Therefore, how to develop a technical solution for MPDU parsing with high efficiency and low power consumption is a problem that needs to be solved.

[0037] Based on this, an embodiment of the present application proposes a method for processing data. Figure 4 1 is a flow chart of the method for processing data proposed in the application embodiment. Figure 4 The method for processing data in the embodiment of the present application is described in detail. Figure 4 As shown, the method for processing data may mainly include steps S410 to S430, and these steps are described in detail below.

[0038] It should be pointed out that the size of the serial numbers of the steps in the embodiments of the present application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0039] In step S410, a first fragment group of the MPDU frame is parsed to obtain first parsing information of the MPDU.

[0040] MPDU usually transmits data in frames. MPDU frames can be divided into multiple fragments, and data is transmitted through multiple fragments that carry data. Usually, except for the last fragment, all fragments are of equal length and the fragments contain an even number of bytes. For example, an MPDU fragment can be 200 bytes. Optionally, the embodiment of the present application does not limit whether the MPDU fragments are of equal length. The first fragment group may include one or more MPDU fragments. The embodiment of the present application is applicable to MPDUs that can be divided into multiple data-bearing units for transmission, and accordingly, the first fragment group may also include one or more data-bearing units of the MPDU.

[0041] In step S420, the second fragment group of the MPDU frame is parsed to obtain second parsing information of the MPDU. The second fragment group may include one or more MPDU fragments. The second fragment group may include all fragments in the MPDU frame except the first fragment group.

[0042] In step S430, the parsed data of the MPDU is determined according to the first parsing information and the second parsing information, that is, the parsing result of the MPDU is obtained. After the parsed data of the MPDU is obtained, the parsed data of the MPDU can be transmitted to the next level, such as the network layer.

[0043] In some implementations, the first fragment group may be parsed first, and then the received second fragment group may be parsed, so that the first parsed information is obtained before the second parsed information is obtained. The first fragment group and the second fragment group are received continuously. That is, during the parsing of the first fragment group, the second fragment group of the MPDU frame continues to be received, and the reception of the second fragment group of the MPDU frame is not suspended due to the parsing of the first fragment group.

[0044] The embodiment of the present application does not need to receive an MPDU frame in a centralized manner before parsing. After receiving the first fragment group, the partial content of the MPDU frame is parsed, and when parsing the first fragment group, the second fragment group of the MPDU frame is not delayed. The embodiment of the present application helps to shorten the timing path of the MPDU parsing circuit, reduce the overall parsing time, improve the parsing efficiency, and increase the clock frequency of the circuit.

[0045] According to the frame format, each MPDU frame can be divided into three parts: a frame header, a frame body, and a frame tail. The frame header is usually universal and has a fixed length. In some implementations, the frame header may generally include a frame control field (FC), a duration / ID (Dur / ID), an address field, etc. The frame control field is generally composed of a field carrying frame type information, a field carrying subtype information, a field carrying protocol version information, a field carrying stream identification information, a field carrying fragment number information, a field carrying sequence number information, a field carrying fragment indication information, and a field carrying length information. The frame control field generally occupies 2 bytes. Among them, the fragment number information is used to indicate the number of each fragment of the MAC service data unit or the MAC management protocol data unit. The fragment indication information is used to indicate if there are fragments of the current MAC service data unit or the MAC management protocol data unit. In the embodiment of the present application, the PMDU frame is also referred to as PMDU.

[0046] There are three main types of frames: control frames, management frames, and data frames. Control frames are used for handshake communications and positive confirmation during contention, ending non-contention periods, etc. Management frames are mainly used for negotiation and relationship control between terminals and central access points (CAPs), such as association, authentication, synchronization, etc. A terminal is a terminal device that has MAC and PHY functional interfaces and can communicate with a CAP. The CAP is an entity that provides access services to the accessed terminals. Data frames are used to transmit data during contention periods and non-contention periods. The frame body (payload) of MPDUs of different frame types has different characteristics. For some management frames and control frames, only the frame header part that does not include the frame body is allowed to appear, and only the frame header and frame trailer may be included, or only the MAC frame header may be included. Therefore, the parsing characteristics of PMDUs of different frame types are also different.

[0047] The frame body is used to carry the payload carried by the MPDU, that is, the data or management message content to be transmitted. The payload may include one or more media access control service data units (MSDUs), or a management protocol data unit (MMPDU), or an MSDU fragment. The wireless communication system allows the payload to be fixed length or variable length, so the length of the entire MPDU is also fixed or variable. In addition, the payload in the MPDU is optional.

[0048] The frame tail carries the frame check sequence (FCS) information for frame verification. The FCS field is usually a 32-bit field, including a 32-bit cyclical redundancy check (CRC). The FCS is usually calculated from all the fields in the frame header and frame body.

[0049] In some implementations, the first fragment group may correspond to a frame header of an MPDU. The frame header is a common field of the MPDU. The first parsing information may include frame type information of the MPDU. The second fragment group may correspond to a frame body and / or a frame tail of the MPDU, and the second parsing information is parsing information of the frame body and / or parsing information of the frame tail. If the second fragment group corresponds to a frame body and a frame tail of the MPDU, the second parsing information is parsing information of the frame body and parsing information of the frame tail, and if the second fragment group corresponds to a frame tail of the MPDU, the second parsing information is parsing information of the frame tail.

[0050] In some implementations, the frame type of the MPDU can be determined according to the first parsing information. According to the frame type of the MPDU, the first sub-parsing module corresponding to the frame type of the MPDU is determined. The second fragment group is parsed using the first sub-parsing module to obtain the second parsing information of the MPDU. Among them, the multiple frame types of the MPDU have a one-to-one correspondence with the multiple sub-parsing modules, and the first sub-parsing module is any module among the multiple sub-parsing modules. The MPDU includes multiple frame types, such as control frames, management frames, and data frames. For example, if the frame type of the MPDU is a control frame, the first sub-parsing module is a control frame sub-parsing module corresponding to the control frame. For another example, if the frame type of the MPDU is a data frame, the first sub-parsing module is a data frame sub-parsing module corresponding to the data frame. Since the frame header is usually universal, a common universal parsing module can be used to parse the first fragment group (frame header). According to the characteristics of different frame types of the MPDU, a dedicated parsing module corresponding to the frame type can be designed, and the frame body and / or frame tail can be parsed using the dedicated parsing module. This helps to improve the parsing efficiency and simplify the structure of the parsing module. Since the parsing circuits for data, control, and management of different frame types are independent of each other, it also helps to reduce the control difficulty of the entire parsing circuit and improve the stability of the module.

[0051] The length of the frame header is usually much smaller than the length of the frame body, so the time taken by the general parsing module to parse the first fragment group (frame header) is usually less than the parsing time of the sub-parsing modules dedicated to different frame types. When the first fragment group of the next PMDU frame arrives, the general parsing module is already in an idle state and can be parsed in a pipeline manner. PMDUs are received one by one, and the master control state machine can be used to first enter each PMDU into the general parsing module for parsing of the first fragment group. The master control state machine, also known as the main state machine, is a task linear sequence machine.

[0052] In some implementations, the first slice group corresponds to the frame header area. In some embodiments, the first slice group may include a portion of the frame body or frame tail area in addition to the frame header area, and the area in the first slice group except the frame header may be parsed by the second parsing module.

[0053] Since a general parsing module is used to parse the frame header, and multiple sub-parsing modules are used to parse the frame body and / or frame tail of different frame types, the increase in the number of parsing modules will inevitably lead to an increase in power consumption. In addition, the PMDU frame is received frame by frame. Therefore, only one type of sub-parsing module is in the parsing working state at the same time.

[0054] In some implementations, the power-on state and the power-off state of multiple sub-parsing modules can be controlled. If the first sub-parsing module is in the parsing working state, the remaining sub-parsing modules except the first sub-parsing module among the multiple sub-parsing modules are in the power-off state. For example, if the first sub-parsing module is a data frame sub-parsing module and is in the parsing working state, the control frame sub-parsing module and the management frame sub-parsing module among the multiple sub-parsing modules are in the power-off state. This helps to reduce power consumption and improve the energy efficiency ratio of the parsing module.

[0055] In some implementations, the power-on state and the power-off state of multiple sub-analysis modules can be controlled in a clock-gated manner. For example, a clock-gated circuit can be used to control the power-on state and the power-off state of multiple sub-analysis modules. If the first sub-analysis module is in the parsing working state, the sub-analysis modules other than the first sub-analysis module in the multiple types of parsing modules are placed in a power-off state in a clock-gated manner. The clock-gated method can accurately control the power-on state and the power-off state of multiple sub-analysis modules according to the reception time rhythm of the PMDU frame, which helps to further improve the energy efficiency ratio of the parsing module.

[0056] The first fragment group may include one or more MPDU fragments, which may be parsed after all MPDU fragments in the first fragment group are received. In some implementations, one or more MPDU fragments in the first fragment group may also be pipelined, that is, while parsing one fragment, the next fragment is received. The second fragment group may include one or more MPDU fragments, which may be parsed after all MPDU fragments in the second fragment group are received. In some implementations, one or more MPDU fragments in the second fragment group may also be pipelined, that is, while parsing one fragment, the next fragment is received. Parsing based on the pipeline method helps to significantly reduce storage requirements, effectively reduce the area of ​​the circuit, and improve the parsing efficiency of the MPDU.

[0057] In some embodiments, in the process of pipeline parsing of one or more MPDU fragments, the parsing of a certain fragment (multiple fragments) does not need to be based on the parsing information of the previous one or more fragments, and the parsing information of the previous one or more fragments can be directly transmitted, such as transmitted to the sending module, and sent to the next level after the overall parsing result of the PMDU is obtained. In some embodiments, the parsing of a certain fragment (multiple fragments) needs to be based on the parsing information of the previous one or more fragments, and the parsing information of the previous one or more fragments needs to be latched, and the latching can use a latch module. After obtaining the parsing information of the fragment (multiple fragments) or satisfying the unlocking condition, the latched parsing information can be unlocked. Therefore, if part or all of the information after parsing one or more MPDU fragments is data information that needs to be latched, the data information that needs to be latched is latched. A general latch module can be used to latch the data information that needs to be latched. In some embodiments, the frame check sequence (FCS) information at the end of the frame is usually calculated from all fields of the frame header and the frame body, and the parsing information of the frame header and the frame body can be latched so as to parse one or more fragments corresponding to the end of the frame. This ensures smooth pipeline parsing of PMDU fragments.

[0058] The embodiment of the present application does not need to receive an MPDU in a centralized manner before parsing. After receiving the first fragment group, the partial content of the MPDU frame is parsed, and when parsing the first fragment group, there is no need to delay the reception of the second fragment group of the MPDU frame. The embodiment of the present application helps to shorten the timing path of the MPDU parsing circuit, reduce the overall parsing time, improve the parsing efficiency, and increase the clock frequency of the circuit.

[0059] The method for processing data in the embodiment of the application is further described below in conjunction with some possible implementation methods of the embodiment of the application.

[0060] Figure 5 yes Figure 4 A possible implementation of the method is shown in the following figure. Figure 5 As shown, according to the MPDU frame format, a common general parsing module 510 is designed to parse the first fragment group (or general field, frame header) of the MPDU frame, and determine the frame type according to the frame control field. Three sub-parsing modules are designed: a data frame parsing module 521, a control frame parsing module 522, and a management frame parsing module 523, which are respectively used for parsing the second fragment group of the data frame, the control frame, and the management frame.

[0061] The general parsing module 510 can determine the parsed frame type, whether it is a data frame, a control frame or a management frame, according to the frame control field of the PMDU, and then start the sub-parsing module corresponding to the frame type according to the frame type of the PMDU.

[0062] For example, the general parsing module 510 parses the first fragment group (frame header) of the current PMDU, determines that the parsed frame type is a data frame according to the frame control field of the PMDU, and outputs the parsed information of the frame header in real time (such as Figure 5 The data frame parsing module 521 parses the second fragment group (frame body and frame tail) of the PMDU (as shown in the dotted line). Figure 5 The parsing process is shown as follows: Figure 5 At this time, the data frame parsing module 521 is the first sub-parsing module corresponding to the data frame, and the general parsing module 510 and the data frame parsing module 521 are in the power-on state. Figure 5 The control frame parsing module 522 and the management frame parsing module 523 are in a power-off state. Figure 5 Displayed in a white frame.

[0063] For another example, the general parsing module 510 parses the first fragment group of the currently received PMDU, determines that the parsed frame type is a management frame according to the frame control field of the PMDU, and outputs the parsed information of the frame header in real time (such as Figure 5 The management frame parsing module 523 parses the second fragment group (frame body and / or frame tail) of the PMDU (as shown in the dotted line). Figure 5 The frame body and / or frame tail are obtained and then output in real time. Figure 5 At this time, the management frame parsing module 523 is the first sub-parsing module corresponding to the management frame, and the general parsing module 510 and the management frame parsing module 523 are in the power-on state ( Figure 5 The data frame parsing module 521 and the control frame parsing module 522 are in a power-off state ( Figure 5 (shown in white box in the figure).

[0064] The length of the frame header is usually much smaller than the length of the frame body and the frame tail, so the time for the general parsing module 510 to parse the first fragment group (frame header) is usually less than the parsing time of the sub-parsing modules dedicated to different frame types. When the first fragment group of the next PMDU frame arrives, the general parsing module 510 is already in an idle state and can be parsed in a pipeline manner. In other words, during the parsing of the first fragment group, the second fragment group of the MPDU frame continues to be received, and the reception of the second fragment group of the MPDU frame is not suspended due to the parsing of the first fragment group.

[0065] The first fragment group may include one or more MPDU fragments, and the general parsing module 510 may perform pipeline parsing on one or more MPDU fragments in the first fragment group, that is, while parsing one fragment, the next fragment is received. The second fragment group may include one or more MPDU fragments, and each sub-parsing module may perform pipeline parsing on one or more MPDU fragments in the second fragment group, that is, while parsing one fragment, the next fragment is received. Parsing based on the pipeline method helps to significantly reduce storage requirements, effectively reduce the area of ​​the circuit, and improve the parsing efficiency of the MPDU.

[0066] If part or all of the information after parsing of one or more MPDU fragments is data information that needs to be latched, the data information that needs to be latched is latched. A general latch module can be used to latch the data information that needs to be latched. In some embodiments, the frame check sequence (FCS) information at the end of the frame is usually calculated from all fields of the frame header and the frame body, and the parsed information of the frame header and the frame body can be latched to parse one or more fragments corresponding to the end of the frame.

[0067] The embodiment of the present application can design a dedicated parsing module corresponding to the frame type according to the characteristics of different frame types of MPDU, and use a dedicated parsing module to parse the frame body and / or frame tail, which helps to improve the parsing efficiency, simplify the structure of the parsing module, shorten the timing path of the circuit, and increase the clock frequency of the circuit. The use efficiency of the circuit can be improved by multiplexing the common parsing parts of the three frame formats of data, control, and management frames. Since the parsing circuits of different frame types are independent of each other, it also helps to reduce the control difficulty of the entire parsing circuit and improve the stability of the parsing module.

[0068] Figure 6 Is adopted Figure 4 A schematic diagram of the framework of an analytical circuit of the method. Figure 6 As shown, the analysis circuit may include: a main control state machine 610 , a general analysis module 620 , a plurality of sub-analysis modules 630 and a latch module 640 .

[0069] The master state machine 610 is a task linear sequence machine, that is, it switches tasks according to commands. PMDU frames are received one by one. Under the control of the master state machine 610, each PMDU first enters the general parsing module 620 for parsing the first fragment group (or general domain, frame header).

[0070] The general parsing module 620 is a public parsing module, which is used to parse the first fragment group of the MPDU frame and determine the parsed frame type according to the frame control field of the PMDU, and then start the sub-parsing module corresponding to the frame type.

[0071] The multiple sub-parsing modules 630 may include: a data frame parsing module 631, a control frame parsing module 632 and a management frame parsing module 633, which are respectively used for parsing the second fragment group of data frames, control frames and management frames.

[0072] For example, the general parsing module 620 parses the first fragment group of the currently received PMDU, determines that the parsed frame type is a data frame according to the frame control field of the PMDU, outputs the parsing information of the frame header in real time, and the data frame parsing module 631 parses the second fragment group of the PMDU data frame, obtains the parsing information of the frame body and the frame tail, and then outputs it in real time. Figure 6 As shown, the data frame parsing module 631 can parse the second fragment group of PMDU data frame A, data frame B, data frame C, and data frame D, and output the parsing information in real time. For another example, the general parsing module 620 determines that the parsed frame type is a management frame according to the frame control field of the PMDU, outputs the parsing information of the frame header in real time, and the management frame parsing module 633 parses the second fragment group of the PMDU management frame, and outputs the parsing information of the frame body and / or frame tail in real time. Figure 6 As shown, the management frame parsing module 633 can parse the second fragmentation group of the PMDU management frame A, management frame B, management frame C, and management frame D, and output the parsed information in real time.

[0073] The second fragment group may include one or more MPDU fragments, and the data frame parsing module 631 may perform pipeline parsing on one or more MPDU fragments in the second fragment group, that is, while parsing one fragment, receiving the next fragment. Parsing based on the pipeline method helps to significantly reduce storage requirements, effectively reduce the area of ​​the circuit, and improve the MPDU parsing efficiency.

[0074] If part or all of the information after parsing of one or more MPDU fragments is data information that needs to be latched, the data information that needs to be latched is latched. A general latch module 640 can be used to latch the data information that needs to be latched. Exemplarily, the frame check sequence (FCS) information at the end of the frame is usually calculated from all the fields of the frame header and the frame body, and the latch module 640 can latch the parsed information of the frame header and the frame body so as to parse one or more fragments corresponding to the end of the frame. For example, the latched information A can be the frame header information of the data frame A, or it can be the frame header parsing information and the frame body parsing information of the data frame A. In some embodiments, the latched information A can also be the parsed information of a certain fragment (multiple fragments) in the second fragment group.

[0075] PMDU frames are received sequentially frame by frame. Therefore, only one type of sub-parsing module is in the parsing working state at the same time. In some implementations, a clock gating circuit can be used to control the power-on and power-off states of multiple sub-parsing modules. Clock gating mainly controls the dynamic power consumption caused by register flipping. Multiple sub-parsing modules do not work at the same time. For sub-parsing modules that have no execution tasks, their clocks can be turned off to reduce the redundant internal register flips with the clock flips, thereby reducing the waste of power consumption and heat accumulation.

[0076] If the first sub-parsing module is in the parsing working state, the sub-parsing modules except the first sub-parsing module in the multiple types of parsing modules are in the power-off state in a clock-gated manner. The clock-gated method can accurately control the power-on state and the power-off state of multiple sub-parsing modules according to the reception time rhythm of the PMDU, further improving the energy efficiency of the module. The embodiment of the present application inserts a clock gating circuit in the three sub-parsing modules, and clock gates the internal idle modules in real time, which can further improve the energy efficiency of the circuit and reduce the design power consumption.

[0077] According to the characteristics of different MPDU frame types, the embodiment of the present application designs a dedicated parsing module corresponding to the frame type, and uses a dedicated parsing module to parse the frame body and / or frame tail of the corresponding frame type, which helps to improve the parsing efficiency, simplify the structure of the parsing module, shorten the timing path of the circuit, and increase the clock frequency of the circuit. The use efficiency of the circuit can be improved by multiplexing the common parsing parts of the three frame formats of data, control, and management frames. Since the parsing circuits of different frame types are independent of each other, it also helps to reduce the control difficulty of the entire parsing circuit and improve the stability of the module.

[0078] Combination of the above Figures 1 to 6 The method embodiment of the present application is described in detail. Figure 7 and Figure 8The device embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0079] Figure 7 Schematic diagram of a data processing device provided in an embodiment of the present application. Figure 7 As shown, the apparatus 700 for processing data includes a first parsing module 710 , a second parsing module 720 and a first determining module 730 .

[0080] The first parsing module 710 is used to parse the first fragment group of the MPDU frame to obtain first parsing information of the MPDU. The first parsing module 710 may be a general parsing module.

[0081] The second parsing module 720 is used to parse the second fragment group of the MPDU frame to obtain second parsing information of the MPDU. Optionally, the second parsing module 720 can also be integrated with the first parsing module 710 and be the same parsing module.

[0082] The first determination module 730 is used to determine the parsing data of the MPDU, that is, the parsing result of the MPDU, according to the first parsing information and the second parsing information.

[0083] Optionally, the first fragmentation group corresponds to the frame header of the MPDU, the first parsing information includes the frame type information of the MPDU, the second fragmentation group corresponds to the frame body and / or frame tail of the MPDU, and the second parsing information is the parsing information of the frame body and / or the parsing information of the frame tail.

[0084] Optionally, the second parsing module 720 may include a plurality of different sub-parsing modules, and the plurality of different sub-parsing modules correspond one-to-one to a plurality of frame types to be applicable to the parsing of different frame types. For example, the second parsing module 720 may include a data frame sub-parsing module, a management frame sub-parsing module, and a control frame sub-parsing module. The device 700 for processing data may include a second determination module. The second determination module is used to determine a first sub-parsing module corresponding to the frame type information of the MPDU according to the frame type information of the MPDU, and the first sub-parsing module is used to parse the second fragment group to obtain the second parsing information of the MPDU. Among them, the first sub-parsing module is any one of the plurality of sub-parsing modules.

[0085] Optionally, the device 700 for processing data may further include a switch control module. The switch control module is used to control the power-on state and the power-off state of the multiple sub-analysis modules. The switch control module is used to put the sub-analysis modules other than the first sub-analysis module in the multiple sub-analysis modules in the power-off state, and the first sub-analysis module in the analysis working state and the power-on state.

[0086] Optionally, the switch control module is a clock gating circuit.

[0087] Optionally, the first fragment group includes one or more MPDU fragments, and the second fragment group includes one or more MPDU fragments. The first parsing module 710 is used to parse the one or more MPDU fragments in the first fragment group in a pipeline manner; and / or the second parsing module 720 is used to parse the one or more MPDU fragments in the second fragment group in a pipeline manner.

[0088] Optionally, the data processing device 700 may further include a latch module. The latch module is used to latch the data information that needs to be latched after the one or more MPDU fragments are parsed.

[0089] Figure 8 is a schematic diagram of the structure of another device for processing data provided in an embodiment of the present application. Figure 8 As shown, the device 800 for processing data includes a memory 810 and a processor 820 .

[0090] The memory 810 is used to store codes.

[0091] The processor 810 is used to execute the code stored in the memory 810 to perform any of the methods for processing data as described above.

[0092] Fig. 9 900 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. The terminal device 900 can be used to implement the method described in the above method embodiment, and can be any terminal device mentioned above. The terminal device 900 can include the device 910 for processing data as described in any of the above items.

[0093] The embodiment of the present application further provides a network device, which may be any of the network devices mentioned above. The network device may include the device for processing data as described in any of the above items.

[0094] An embodiment of the present application provides a chip, including a processor, wherein the processor is configured to execute any of the methods described above.

[0095] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is used to execute any of the methods described above.

[0096] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0097] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0098] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0099] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0100] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0101] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for processing data, characterized in that: include: Parsing a first fragment group of the MPDU frame to obtain first parsing information of the MPDU; Parsing the second fragment group of the MPDU frame to obtain second parsing information of the MPDU; Determine parsed data of the MPDU according to the first parsing information and the second parsing information.

2. The method according to claim 1, characterized in that The first fragment group corresponds to a frame header of the MPDU, and the second fragment group corresponds to a frame body and / or a frame tail of the MPDU.

3. The method according to claim 1, characterized in that The first parsing information includes frame type information of the MPDU, and the parsing of the second fragment group of the MPDU frame to obtain the second parsing information of the MPDU includes: Determine, according to the frame type of the MPDU, a first sub-parsing module corresponding to the frame type of the MPDU; The second fragment group is parsed using the first sub-parsing module to obtain second parsing information of the MPDU.

4. The method according to claim 3, characterized in that Also includes: If the first sub-parsing module is in the parsing working state, the sub-parsing modules among the multiple sub-parsing modules except the first sub-parsing module are placed in a power-off state.

5. The method according to any one of claims 1 to 4, characterized in that The first fragment group includes one or more MPDU fragments, the second fragment group includes one or more MPDU fragments, and the parsing of the first fragment group of the MPDU frame includes: parsing the one or more MPDU fragments in the first fragment group in a pipeline manner; and / or, The parsing of the second fragment group of the MPDU frame includes: The one or more MPDU fragments in the second fragment group are parsed in a pipeline manner.

6. The method according to claim 5, characterized in that The method further comprises: If part or all of the information after parsing the one or more MPDU fragments is data information that needs to be latched, the data information that needs to be latched is latched.

7. The method according to any one of claims 1 to 4, characterized in that: The frame types of the MPDU include: control frame, management frame and data frame.

8. A device for processing data, characterized in that: include: A first parsing module, configured to parse a first fragmentation group of an MPDU frame to obtain first parsing information of the MPDU; A second parsing module, configured to parse a second fragment group of the MPDU frame to obtain second parsing information of the MPDU; The first determining module is used to determine the parsed data of the MPDU according to the first parsing information and the second parsing information.

9. The device according to claim 8, characterized in that The first fragment group corresponds to a frame header of the MPDU, and the second fragment group corresponds to a frame body and / or a frame tail of the MPDU.

10. The device according to claim 8, characterized in that The first parsing information includes frame type information of the MPDU, the second parsing module includes a plurality of sub-parsing modules, and the device includes: a second determination module, configured to determine, according to the frame type of the MPDU, a first sub-parsing module corresponding to the frame type of the MPDU, wherein the first sub-parsing module is configured to parse the second fragmentation group to obtain second parsing information of the MPDU; The first sub-analysis module is any one of the multiple sub-analysis modules.

11. The device according to claim 10, characterized in that Also includes: The switch control module is used to put the sub-analysis modules among the multiple sub-analysis modules except the first sub-analysis module into a power-off state.

12. The device according to claim 11, characterized in that The switch control module is a clock gating circuit.

13. The device according to any one of claims 8 to 12, characterized in that The first fragment group includes one or more MPDU fragments, the second fragment group includes one or more MPDU fragments, and the first parsing module is used to parse the one or more MPDU fragments in the first fragment group in a pipeline manner; and / or, The second parsing module is used to parse the one or more MPDU fragments in the second fragment group in a pipeline manner.

14. The device according to claim 13, characterized in that The device also includes: The latch module is used to latch the data information that needs to be latched after parsing the one or more MPDU fragments.

15. The device according to any one of claims 8 to 12, characterized in that The frame types of the MPDU include: control frame, management frame and data frame.

16. A device for processing data, characterized in that: include: A memory for storing codes; A processor, configured to execute the code stored in the memory to perform the method according to any one of claims 1 to 7.

17. A terminal device, characterized in that: The device comprises a data processing device as claimed in any one of claims 8 to 15.

18. A network device, characterized in that: The device comprises a data processing device as claimed in any one of claims 8 to 15.

19. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the computer program is used to implement the method according to any one of claims 1 to 7.

20. A chip, characterized in that: The method comprises a processor configured to execute the method of any one of claims 1-7.