Method, apparatus, computer device, and storage medium for processing message data
By setting time marks in the preset layer field of the message data, analyzing the transmission time and processing the message data according to the relationship between the difference and the threshold, the problem of insufficient delay certainty in wireless communication is solved, and higher data transmission certainty and consistency are achieved.
Patent Information
- Application Number
- CN202310822108.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2043-07-05
AI Technical Summary
In the existing wireless communication technology, the certainty of the delay of the data transmission air interface is low, and it cannot meet the high reliability and low latency requirements of application scenarios such as URLLC.
By setting a time mark in the preset layer field of the message data, the transmission time of the message data is analyzed, and the processing method of the message data is determined based on the difference between the reception time and the transmission time and the preset threshold value, such as sending, delaying transmission or discarding.
The certainty of the delay difference (jitter) of message data transmission is improved, and the accuracy and consistency of data transmission is ensured.
Smart Images

Figure CN116782403B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of wireless and terminal communication, and particularly to a method, device, computer device, storage medium, and computer program product for processing packet data. Background Art
[0002] With the development of communication technologies, 5G communication technology has emerged and is widely used in eMBB (Enhanced Mobile Broadband), MMTC (Massive Machine Type Communication), and URLLC (Ultra Reliable & Low Latency Communication) application scenarios. Among them, URLLC is more oriented towards vehicle networking, industrial control, remote medical treatment, etc., and has relatively high requirements for air interface latency. However, in related wireless communication technologies, the determinacy of data transmission air interface latency is relatively low and cannot meet actual needs. Summary of the Invention
[0003] Based on this, it is necessary to provide a method, device, computer device, storage medium, and computer program product for processing packet data in view of the above technical problems.
[0004] In a first aspect, this application provides a method for processing packet data. The method includes:
[0005] Receiving packet data and determining the receiving time of the packet data; wherein, a time identifier is set in a preset layer field of the packet data;
[0006] Parsing the time identifier of the preset layer field to obtain the sending time of the packet data;
[0007] Determining a data processing method for the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold.
[0008] In a possible implementation, the preset layer field includes a MAC layer field. Parsing the time identifier in the packet data to obtain the sending time of the packet data includes:
[0009] Parsing the time identifier at a preset position in the MAC layer field of the packet data;
[0010] Determining the sending time of the packet data according to the time identifier.
[0011] In a possible implementation, the preset position includes the position of the last preset number of bytes in the MAC layer field sub-header, and parsing the time identifier at the preset position in the MAC field in the packet data includes:
[0012] Parsing the time identifier at the position of the last preset number of bytes in the MAC field header in the packet data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
[0013] In a possible implementation, determining the processing mode of the packet data according to the magnitude relationship between the difference between the reception time and the transmission time and a preset threshold includes:
[0014] When the difference between the reception time and the transmission time is equal to the preset threshold, sending the parsed packet data to the layer above the preset layer.
[0015] In a possible implementation, determining the processing mode of the packet data according to the magnitude relationship between the difference between the reception time and the transmission time and a preset threshold includes:
[0016] When the difference between the reception time and the transmission time is less than the preset threshold, waiting for a preset duration; wherein, the preset duration is the difference between the preset threshold and the difference.
[0017] When the preset duration ends, sending the parsed packet data to the layer above the preset layer.
[0018] In a possible implementation, determining the processing mode of the packet data according to the magnitude relationship between the difference between the reception time and the transmission time and a preset threshold includes:
[0019] When the difference between the reception time and the transmission time is greater than the preset threshold, sending a prompt message.
[0020] In a second aspect, the present application further provides a method for processing packet data, which is applied to a terminal, and the method includes:
[0021] Obtaining service data;
[0022] When the service data is encapsulated at a preset layer, adding a time identifier of the transmission time to obtain packet data;
[0023] Send the message data to the base station to instruct the base station to parse the time identifier in the message data and obtain the sending time of the message data; determine the data processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold.
[0024] In a possible implementation manner, the base station for parsing the time identifier in the message data and obtaining the sending time of the message data includes:
[0025] The base station is used to parse the time identifier at a preset position in the MAC layer field of the message data; determine the sending time of the message data according to the time identifier
[0026] In a possible implementation manner, the preset position includes the position of the preset number of bytes at the tail of the sub-header of the MAC layer field. The base station for parsing the time identifier at the preset position in the MAC field of the message data includes:
[0027] The base station is used to parse the time identifier at the position of the preset number of bytes at the tail of the header of the MAC field of the message data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
[0028] In a possible implementation manner, the base station for determining the processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold includes:
[0029] The base station is used to send the parsed message data to the layer above the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
[0030] In a third aspect, the present application further provides a processing device for message data, and the device includes:
[0031] A receiving module, configured to receive message data and determine the receiving time of the message data; wherein, a time identifier is set in the preset layer field of the message data;
[0032] A parsing module, configured to parse the time identifier of the preset layer field and obtain the sending time of the message data;
[0033] A first processing module, configured to determine the data processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold.
[0034] In a possible implementation manner, the preset layer field includes a MAC layer field, and the parsing module includes:
[0035] A parsing sub-module, configured to parse a time identifier at a preset position in a MAC layer field in the message data;
[0036] A determining sub-module, configured to determine a sending time of the message data according to the time identifier.
[0037] In a possible implementation manner, the preset position includes a position of a preset number of bytes at the tail of a sub-header of the MAC layer field, and the parsing sub-module includes:
[0038] A parsing unit, configured to parse a time identifier at a position of a preset number of bytes at the tail of a MAC field header in the message data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: a system frame number, a sub-frame number, a time slot, and a symbol.
[0039] In a possible implementation manner, the processing module includes:
[0040] A first sending sub-module, configured to send the parsed message data to the upper layer of the preset layer when a difference between the receiving time and the sending time is equal to the preset threshold.
[0041] In a possible implementation manner, the processing module includes:
[0042] A caching sub-module, configured to wait for a preset duration when a difference between the receiving time and the sending time is less than the preset threshold; wherein, the preset duration is a difference between the preset threshold and the difference.
[0043] A second sending sub-module, configured to send the parsed message data to the upper layer of the preset layer when the preset duration ends.
[0044] In a possible implementation manner, the processing module includes:
[0045] A third sending sub-module, configured to send a prompt message when a difference between the receiving time and the sending time is greater than the preset threshold.
[0046] In a fourth aspect, the present application further provides a processing device for message data, which is applied to a terminal, and the device includes:
[0047] An obtaining module, configured to obtain service data;
[0048] An encapsulating module, configured to add a time identifier of a sending time to obtain message data when encapsulating the service data at a preset layer.
[0049] A second processing module, configured to send the packet data to a base station to instruct the base station to parse a time identifier in the packet data and obtain the sending time of the packet data; and determine a data processing method for the packet data according to a magnitude relationship between a difference between the receiving time and the sending time and a preset threshold.
[0050] In a possible implementation manner, in the second processing module, the base station is configured to parse a time identifier in the packet data and obtain the sending time of the packet data, including:
[0051] The base station is configured to parse a time identifier at a preset position in a MAC layer field of the packet data;
[0052] Determine the sending time of the packet data according to the time identifier.
[0053] In a possible implementation manner, the preset position includes a position of a preset number of bytes at the tail of a sub-header of the MAC layer field. The base station is configured to parse a time identifier at a preset position in a MAC field of the packet data, including:
[0054] The base station is configured to parse a time identifier at a position of a preset number of bytes at the tail of a header of the MAC field of the packet data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: a system frame number, a sub-frame number, a time slot, and a symbol.
[0055] In a possible implementation manner, in the second processing module, the base station is configured to determine a processing method for the packet data according to a magnitude relationship between a difference between the receiving time and the sending time and a preset threshold, including:
[0056] The base station is configured to, when a difference between the receiving time and the sending time is equal to the preset threshold, send the parsed packet data to a layer above the preset layer.
[0057] In a fifth aspect, the present application further provides a communication device, including a processor and a memory. The memory stores a computer program, and when the processor executes the computer program, the steps of the method for processing packet data according to any one of the embodiments of the present disclosure are implemented.
[0058] In a sixth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for processing packet data according to any one of the embodiments of the present disclosure are implemented.
[0059] In a seventh aspect, the present application also provides a computer program product. The computer program product includes a computer program which, when executed by a processor, implements the steps of the method for processing message data as described in any one of the embodiments of the present disclosure.
[0060] In the above method, apparatus, computer device, storage medium and computer program product for processing message data, the terminal side sets a time identifier in a preset layer field of the message data. When the base station side parses the preset layer of the message data, it obtains the sending time of the message data according to the time identifier, calculates the difference between the sending time and the receiving time, compares the difference with a preset threshold, and determines the processing method for the corresponding message data, such as not sending, sending or delaying sending, etc. This ensures the certainty of the time delay difference (jitter) in message data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is an application environment diagram of the method for processing message data in an embodiment;
[0062] Figure 2 It is a first flowchart of the method for processing message data in an embodiment;
[0063] Figure 3 It is a schematic diagram of the radio interface user plane protocol stack in a 5G communication network in an embodiment;
[0064] Figure 4 It is a schematic diagram of the structure of message data after adding a time identifier in an embodiment;
[0065] Figure 5 It is a schematic diagram of the structure of message data after adding a time identifier in another embodiment;
[0066] Figure 6 It is a schematic diagram of the structure of message data after adding a time identifier in yet another embodiment;
[0067] Figure 7 It is a schematic diagram of the structure of message data after adding a time identifier in still another embodiment;
[0068] Figure 8 It is a second flowchart of the method for processing message data in another embodiment;
[0069] Figure 9 It is a third flowchart of the method for processing message data in another embodiment;
[0070] Figure 10 It is a block diagram of the structure of the apparatus for processing message data in an embodiment;
[0071] Figure 11It is a structural block diagram of a message data processing device in another embodiment;
[0072] Figure 12 It is an internal structure diagram of a communication device in one embodiment;
[0073] Figure 13 It is an internal structure diagram of a communication device in one embodiment. Detailed implementation manners
[0074] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0076] The message data processing method provided by the embodiments of the present application can be applied to, for example, Figure 1 the application environment shown in the figure. Among them, the terminal 102 communicates with the base station 104 through the network. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The base station 104 is a radio transceiver station for transmitting and receiving information with the terminal 102 through a mobile communication switching center in a certain radio coverage area.
[0077] In one embodiment, as Figure 2 shown in the figure, a message data processing method is provided. Taking the method applied to the Figure 1 base station 104 in the figure as an example, the method includes the following steps:
[0078] Step S201: Receive the message data and determine the reception time of the message data; wherein, a time identifier is set in a preset layer field of the message data.
[0079] Specifically, the packet data may include packet data in 3G, 4G, 5G, and future mobile communication networks above 5G. Taking the 5G communication network as an example, refer to Figure 3 As shown, the service data of the terminal sequentially passes through the SDAP layer, PDCP layer, RLC layer, and MAC layer. Each layer performs an operation of adding a packet header to the received data. The obtained packet data includes the packet headers corresponding to each layer and the service data. The packet data is sent to the base station through the uplink physical channel. After receiving the packet data on the uplink physical channel, the base station performs parsing and processing of the peer layers of the MAC layer, RLC layer, PDCP layer, and SDAP layer to restore the service data.
[0080] Step S203: Parse the time identifier of the preset layer field to obtain the sending time of the packet data.
[0081] Specifically, the preset layer may include any layer in the above packet data, such as the MAC layer. The preset layer field may include the field corresponding to the preset layer in the packet data header. The time identifier may include a custom time identifier, such as XX year XX month XX day; it may also include the above time identifier represented by other characters; it may also use the system frame, subframe number, time slot representation, or system frame number, subframe number, time slot, symbol. Among them, the system frame number, subframe number, time slot, symbol have higher time accuracy than the system frame, subframe number, time slot. In the 5G network, the duration of a system frame is 10 ms, each frame consists of 10 subframes, the duration of each subframe is 1 ms, the number of time slots included in each subframe increases with the increase of the parameter set, the parameter set represents the subcarrier spacing, and each time slot has 14 or 12 symbols. By parsing the time identifier, the sending time of the packet data can be obtained.
[0082] Step S205: Determine the data processing method of the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold.
[0083] Specifically, the preset threshold can represent the target delay Tt, such as 3 ms, 6 ms, etc., which can be set according to specific application scenarios. The reception time can be marked as T1, the transmission time can be marked as T0, and the difference between the reception time and the transmission time can be expressed as Δt, then Δt = T1 - T0. In an exemplary embodiment, when the difference Δt is equal to Tt, the packet data can be sent to the upper layer of the preset layer for parsing. For example, if the preset layer is the MAC layer, the packet data parsed at the MAC layer can be sent to the RLC layer. In another exemplary embodiment, when the difference Δt is greater than Tt, the packet data can be discarded. Or, when the difference Δt is greater than Tt, the packet data can be discarded and a prompt message, such as an error message, can be sent. In another exemplary embodiment, when the difference Δt is less than Tt, a preset duration can be waited. When the preset duration ends, the packet data can be sent to the upper layer of the preset layer for parsing.
[0084] In the above method for processing packet data, the terminal side sets a time identifier in the preset layer field of the packet data. When the base station side parses the preset layer of the packet data, it obtains the transmission time of the packet data according to the time identifier, calculates the difference between the transmission time and the reception time, and compares the difference with the preset threshold to determine the processing method for the corresponding packet data, such as not sending, sending, or delaying sending, etc. This ensures the certainty of the delay difference (jitter) in the transmission of packet data.
[0085] In a possible implementation manner, the preset layer field includes a MAC layer field. Parsing the time identifier in the packet data to obtain the transmission time of the packet data includes:
[0086] Parsing the time identifier at a preset position in the MAC layer field of the packet data;
[0087] Determining the transmission time of the packet data according to the time identifier.
[0088] Specifically, the MAC (Medium Access Control) layer can include the MAC layers in 3G, 4G, 5G, and future mobile communication networks above 5G. Taking the MAC layer of 5G as an example, the MAC layer of 5G is located in the data link layer of the network structure. The functions of the MAC layer can include: mapping between logical channels and transport channels; multiplexing MAC SDUs from one or more logical channels into a transport block and delivering it to the PHY layer; demultiplexing the transport block received from the physical layer into multiple MAC SDUs and delivering them to one or more logical channels.
[0089] In the embodiments of the present disclosure, the preset position may include the head, middle, and tail of the MAC layer field sub-header. In an exemplary embodiment, if a time identifier is added to the head of the MAC layer field sub-header (where the sub-header starts), parsing also needs to be performed from the head of the MAC layer field sub-header. In another exemplary embodiment, if a time identifier is added to the middle of the MAC layer field sub-header, parsing also needs to be performed from the head of the MAC layer field sub-header. In another exemplary embodiment, if a time identifier is added to the tail of the MAC layer field sub-header, parsing also needs to be performed from the tail of the MAC layer field sub-header. In the embodiments of the present disclosure, the time identifier may include the time identifier represented by any one of the above embodiments.
[0090] Reference Figure 4 As shown, in an exemplary embodiment, in the packet data of a 5G mobile network, when L = 8 bits, 3 bytes are extended at the tail of the MAC layer field sub-header, where the extended part SFN is the system frame number, with a range of 0 to 1023 (10 bits); SubFN is the sub-frame number, with a range of 0 to 9 (4 bits); SlotN is the Slot number, with a range of 0 to 15 (4 bits).
[0091] Reference Figure 5 As shown, in an exemplary embodiment, in the packet data of a 5G mobile network, when L = 16 bits, 3 bytes are extended at the tail of the MAC layer field sub-header, where the extended part SFN is the system frame number, with a range of 0 to 1023 (10 bits); SubFN is the sub-frame number, with a range of 0 to 9 (4 bits); SlotN is the Slot number, with a range of 0 to 15 (4 bits).
[0092] In the embodiments of the present disclosure, the terminal side sets a time identifier in the MAC layer field of the packet data. When the base station side parses the MAC layer of the packet data, it obtains the sending time of the packet data according to the time identifier, calculates the difference between the sending time and the receiving time, compares the difference with a preset threshold, and determines the processing method of the corresponding packet data, such as not sending, sending, or delaying sending, etc. This ensures the certainty of the time delay difference (jitter) of the packet data transmission. Using the MAC layer field to set the time identifier has strong implementability.
[0093] In a possible implementation manner, the preset position includes the position of a preset number of bytes at the tail of the MAC layer field sub-header. Parsing the time identifier at the preset position in the MAC field of the packet data includes:
[0094] Parsing the time identifier at the position of a preset number of bytes at the tail of the MAC field header of the packet data; where the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
[0095] Specifically, the preset position includes the position of the tail preset number of bytes of the MAC layer field sub-header. On the one hand, if the base station side implements the message data processing method described in any one of the embodiments of the present disclosure, as described in the above embodiments, it can help improve the determinism of the message data. On the other hand, if the base station side does not implement the message data processing method described in any one of the embodiments of the present disclosure, it can still be parsed in the original manner without causing the MAC layer to be unable to parse.
[0096] In an exemplary embodiment, referring to Figure 6 As shown, taking the message data of a 5G communication network as an example, 3 bytes are extended at the tail of the MAC layer field sub-header. When L = 8bit, among them, for the extended part, SFN is the system frame number, with a range of 0 to 1023 (10 bits); SubFN is the sub-frame number, with a range of 0 to 9 (4 bits); SlotN is the Slot number, with a range of 0 to 15 (4 bits); SymbolN is the Symbol number, with a range of 0 to 13 (4 bits).
[0097] In another exemplary embodiment, referring to Figure 7 As shown, taking the message data of a 5G communication network as an example, 3 bytes are extended at the tail of the MAC layer field sub-header. When L = 16bit, among them, for the extended part, SFN is the system frame number, with a range of 0 to 1023 (10 bits); SubFN is the sub-frame number, with a range of 0 to 9 (4 bits); SlotN is the Slot number, with a range of 0 to 15 (4 bits); SymbolN is the Symbol number, with a range of 0 to 13 (4 bits).
[0098] The embodiments of the present disclosure use the system frame number, sub-frame number, time slot, and symbol to represent time, which further refines the time granularity, improves the accuracy of the time delay difference, and further improves the determinism of the time delay difference (jitter) of the message data transmission.
[0099] In a possible implementation manner, according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold, determining the processing manner of the message data includes:
[0100] When the difference between the receiving time and the sending time is equal to the preset threshold, sending the parsed message data to the layer above the preset layer.
[0101] Specifically, when the base station side parses the preset layer of the message data, it obtains the sending time of the message data and the parsed message data. The difference between the receiving time and the sending time is calculated. If the difference is equal to the preset threshold, the parsed message data can be sent to the upper layer of the preset layer, so that the upper layer of the preset layer can further parse the parsed message data. For example, after the MAC layer parses, the sending time of the message data and the parsed message data are obtained. If the difference between the receiving time and the sending time is equal to the preset threshold, the parsed message data is sent to the RLC layer, so that the RLC layer parses the message data.
[0102] In the embodiment of the present disclosure, by comparing the difference between the receiving time and the sending time with the size of a preset threshold, when the two are equal, the parsed message data is sent to the upper layer of the preset layer, which is beneficial to promoting the consistency of the delay time of multiple message data and improving the certainty of the message data delay.
[0103] In one possible implementation, determining a processing method for the message data according to a relationship between a difference between the receiving time and the sending time and a preset threshold value includes:
[0104] When the difference between the receiving time and the sending time is less than the preset threshold, wait for a preset time period; wherein the preset time period is the difference between the preset threshold and the difference;
[0105] When the preset time period ends, the parsed message data is sent to the upper layer of the preset layer.
[0106] Specifically, when the base station side parses the preset layer of the message data, it obtains the sending time of the message data and the parsed message data. The difference between the receiving time and the sending time is calculated. If the difference is less than the preset threshold, the preset time length can be waited. Specifically, for example, the message data is cached, a timer task is set, and when the preset time length expires, the parsed message data is sent to the upper layer of the preset layer. The preset time length may include the difference between the preset threshold and the difference. In an exemplary embodiment, after the MAC layer parses, the sending time of the message data and the parsed message data are obtained. If the difference between the receiving time and the sending time is less than the preset threshold, the difference between the preset threshold and the difference is waited. After the waiting is over, the parsed message data is sent to the RLC layer so that the RLC layer parses the message data.
[0107] In an embodiment of the present disclosure, by comparing the difference between the reception time and the transmission time with a preset threshold, when the difference between the reception time and the transmission time is less than the preset threshold, wait for a preset duration. When the preset duration ends, send the parsed message data to the layer above the preset layer, which is beneficial to promoting the consistency of the delay times of multiple message data and improving the determinacy of the message data delay.
[0108] In a possible implementation manner, determining the processing method of the message data according to the magnitude relationship between the difference between the reception time and the transmission time and the preset threshold includes:
[0109] When the difference between the reception time and the transmission time is greater than the preset threshold, send a prompt message.
[0110] Specifically, when the base station side parses the preset layer of the message data, it obtains the transmission time of the message data and the parsed message data. Calculate the difference between the reception time and the transmission time. If the difference is greater than the preset threshold, the message data can be discarded, or a prompt message can be sent while discarding the message data. The prompt message is used to prompt that the delay of the message data times out and cannot meet the determinacy requirement. Subsequently, it can be further processed by retransmission or other means.
[0111] In an embodiment of the present disclosure, by comparing the difference between the reception time and the transmission time with a preset threshold, when the difference between the reception time and the transmission time is greater than the preset threshold, send a prompt message, which avoids subsequent parsing of message data with a large delay and improves the determinacy of the message data delay.
[0112] Based on the same inventive concept, Figure 8 For the second process schematic diagram of the processing method of message data in another embodiment, refer to Figure 8 as shown, applied to a terminal, the method includes:
[0113] Step S801, obtain service data.
[0114] Step S803, when encapsulating the service data at the preset layer, add a time identifier of the transmission time to obtain message data.
[0115] Step S805, send the message data to the base station to instruct the base station to parse the time identifier in the message data, obtain the transmission time of the message data; determine the data processing method of the message data according to the magnitude relationship between the difference between the reception time and the transmission time and the preset threshold.
[0116] Specifically, the service data may include various types of service data, which may include multiple types according to different application scenarios, such as streaming media data, report data, session data, etc. The preset layer may include any layer in the Internet reference model during data transmission, such as the MAC layer. Encapsulate the service data in the preset layer, referring to Figure 3 As shown, the service data of the terminal sequentially passes through the SDAP layer, PDCP layer, RLC layer, and MAC layer. Each layer performs an operation of adding an encapsulation header to the received data, and the obtained packet data includes the corresponding packet headers of each layer and the service data. In an exemplary embodiment, a time identifier may be added to the packet header of the preset layer.
[0117] Among them, the time identifier may include a custom time identifier, such as XX year XX month XX day; it may also include the above time identifier represented by other characters; it may also use system frame, subframe number, time slot representation, or system frame number, subframe number, time slot, symbol. Among them, the system frame number, subframe number, time slot, symbol have higher time accuracy compared to the system frame, subframe number, time slot. In the 5G network, the duration of a system frame is 10 ms, each frame consists of 10 subframes, the duration of each subframe is 1 ms, and the number of time slots included in each subframe increases with the increase of the parameter set. The parameter set represents the subcarrier spacing, and each time slot has 14 or 12 symbols. At the base station side, the transmission time of the packet data can be obtained by parsing the time identifier.
[0118] In the embodiments of the present disclosure, the preset threshold may represent the target delay Tt, such as 3 ms, 6 ms, etc., and can be set according to specific application scenarios. The reception time can be denoted as T1, the transmission time can be denoted as T0, and the difference between the reception time and the transmission time can be denoted as Δt, then Δt = T1 - T0. In an exemplary embodiment, when the difference Δt is equal to Tt, the packet data may be sent to the upper layer of the preset layer for parsing. For example, if the preset layer is the MAC layer, the packet data parsed in the MAC layer may be sent to the RLC layer. In another exemplary embodiment, when the difference Δt is greater than Tt, the packet data may be discarded. Or, when the difference Δt is greater than Tt, the packet data may be discarded and a prompt message, such as an error message, may be sent. In another exemplary embodiment, when the difference Δt is less than Tt, a preset duration may be waited. When the preset duration ends, the packet data may be sent to the upper layer of the preset layer for parsing.
[0119] In the above method for processing the message data, the terminal side sets a time identifier in a preset layer field of the message data. When the base station side parses the preset layer of the message data, it obtains the sending time of the message data according to the time identifier, calculates the difference between the sending time and the receiving time, compares the difference with a preset threshold, and determines the processing method for the corresponding message data, such as not sending, sending, or delaying sending, etc., ensuring the certainty of the time delay difference (jitter) of the message data transmission.
[0120] In a possible implementation manner, when the base station executes parsing the time identifier in the message data to obtain the sending time of the message data, it includes:
[0121] The base station is used to parse the time identifier at a preset position in the MAC layer field of the message data;
[0122] According to the time identifier, determine the sending time of the message data.
[0123] Specifically, the MAC (Medium Access Control) layer may include the MAC layers in 3G, 4G, 5G, and future mobile communication networks above 5G. Taking the MAC layer of 5G as an example, the MAC layer of 5G is located in the data link layer of the network structure, and the functions of the MAC layer may include: mapping between logical channels and transport channels; multiplexing MAC SDUs from one or more logical channels into a transport block and delivering it to the PHY layer; demultiplexing the transport block received from the physical layer into multiple MAC SDUs and delivering it to one or more logical channels.
[0124] In the embodiments of the present disclosure, the preset position may include the head, middle, and tail of the MAC layer field sub-header. In an exemplary embodiment, if a time identifier is added at the head of the MAC layer field sub-header (the beginning of the sub-header), parsing also needs to be performed from the head of the MAC layer field sub-header. In another exemplary embodiment, if a time identifier is added in the middle of the MAC layer field sub-header, parsing also needs to be performed from the head of the MAC layer field sub-header. In another exemplary embodiment, if a time identifier is added at the tail of the MAC layer field sub-header, parsing also needs to be performed from the tail of the MAC layer field sub-header. In the embodiments of the present disclosure, the time identifier may include the time identifier represented by any one of the above embodiments.
[0125] In a possible implementation manner, the preset position includes a position at a preset number of bytes at the tail of the MAC layer field sub-header. The base station is used to parse the time identifier at the preset position in the MAC field of the message data, including:
[0126] The base station is used to parse the time stamp at the position of the preset number of bytes at the tail of the MAC field header in the packet data; wherein, the time stamp includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
[0127] Specifically, the preset position includes the position of the preset number of bytes at the tail of the MAC layer field sub-header. On the one hand, if the base station side implements the packet data processing method described in any one of the embodiments of the present disclosure, as described in the above embodiments, it can help improve the determinacy of the packet data. On the other hand, if the base station side does not implement the packet data processing method described in any one of the embodiments of the present disclosure, it can still be parsed in the original way without causing the MAC layer to be unable to parse.
[0128] In the embodiments of the present disclosure, the system frame number, sub-frame number, time slot, and symbol are used to represent time, which further refines the time granularity, improves the accuracy of the time delay difference, and further improves the determinacy of the time delay difference (jitter) of packet data transmission.
[0129] In a possible implementation manner, specifically, when the base station side parses a preset layer of packet data, it obtains the transmission time of the packet data and the parsed packet data. Calculate the difference between the reception time and the transmission time. If the difference is equal to the preset threshold, if the difference is equal to the preset threshold, the parsed packet data can be sent to the upper layer of the preset layer, so that the upper layer of the preset layer further parses the parsed packet data. For example, after parsing at the MAC layer, the transmission time of the packet data and the parsed packet data are obtained. If the difference between the reception time and the transmission time is equal to the preset threshold, the parsed packet data is sent to the RLC layer so that the RLC layer parses the packet data.
[0130] In the embodiments of the present disclosure, by comparing the difference between the reception time and the transmission time with the preset threshold, when the two are equal, sending the parsed packet data to the upper layer of the preset layer is beneficial to promoting the consistency of the delay times of multiple packet data and improving the determinacy of the packet data time delay.
[0131] Figure 9 For the third process schematic diagram of the packet data processing method in another embodiment, refer to Figure 9As shown, on the terminal side, service data sequentially passes through the SDAP layer, RLC layer, and MAC layer, with headers added layer by layer. Among them, a time identifier T0 is inserted at the MAC layer. The packet data with the time identifier is transmitted through the air interface to reach the base station side. The base station side parses the packet data. When parsing the MAC layer, it interprets the time identifier T0 to determine the sending time of the packet data, and based on the sending time and the receiving time T1 of the packet data, determines the time difference between T1 and T0. Compare this time difference with the target delay Tt. If they are equal, the packet data parsed at the MAC layer can be uploaded to the RLC layer for parsing; if the time difference is less than the target delay, buffer the packet sequence, and after the preset duration Tt - (T1 - T0) ends, upload the packet data parsed at the MAC layer to the RLC layer for parsing; if the time difference is greater than the target delay, discard it or perform other operations such as error reporting. The parsed packet data is parsed layer by layer to obtain the service data.
[0132] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0133] Based on the same inventive concept, an embodiment of the present application further provides a packet data processing device for implementing the above-mentioned packet data processing method. The implementation solution provided by this device to solve the problem is similar to the implementation solution described in the above method. Therefore, the specific limitations in one or more embodiments of the packet data processing device provided below can refer to the limitations on the packet data processing method in the above text, and will not be repeated here.
[0134] In one embodiment, as Figure 10 shown, a packet data processing device 1000 is provided, including:
[0135] A receiving module 1001, configured to receive packet data and determine the receiving time of the packet data; wherein, a time identifier is set in the preset layer field of the packet data;
[0136] A parsing module 1003, configured to parse the time identifier of the preset layer field to obtain the sending time of the packet data;
[0137] The first processing module 1005 is configured to determine the data processing mode of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold.
[0138] In a possible implementation manner, the preset layer field includes a MAC layer field, and the parsing module includes:
[0139] A parsing sub-module, configured to parse a time identifier at a preset position in the MAC layer field in the message data;
[0140] A determining sub-module, configured to determine the sending time of the message data according to the time identifier.
[0141] In a possible implementation manner, the preset position includes a position of a preset number of bytes at the tail of the MAC layer field sub-header, and the parsing sub-module includes:
[0142] A parsing unit, configured to parse a time identifier at a position of a preset number of bytes at the tail of the MAC field header in the message data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: a system frame number, a sub-frame number, a time slot, and a symbol.
[0143] In a possible implementation manner, the processing module includes:
[0144] A first sending sub-module, configured to send the parsed message data to the upper layer of the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
[0145] In a possible implementation manner, the processing module includes:
[0146] A caching sub-module, configured to wait for a preset duration when the difference between the receiving time and the sending time is less than the preset threshold; wherein, the preset duration is the difference between the preset threshold and the difference.
[0147] A second sending sub-module, configured to send the parsed message data to the upper layer of the preset layer when the preset duration ends.
[0148] In a possible implementation manner, the processing module includes:
[0149] A third sending sub-module, configured to send a prompt message when the difference between the receiving time and the sending time is greater than the preset threshold.
[0150] In one embodiment, as Figure 11 shown, there is provided a processing device for message data, including:
[0151] An acquisition module 1101, configured to acquire service data;
[0152] An encapsulation module 1103, configured to add a time identifier of the sending moment when encapsulating the service data at a preset layer to obtain message data;
[0153] A second processing module 1105, configured to send the message data to a base station to instruct the base station to parse the time identifier in the message data to obtain the sending moment of the message data; and determine a data processing method of the message data according to a magnitude relationship between a difference between the receiving moment and the sending moment and a preset threshold.
[0154] In a possible implementation manner, in the second processing module, the base station is configured to parse the time identifier in the message data to obtain the sending moment of the message data, including:
[0155] The base station is configured to parse a time identifier at a preset position in a MAC layer field of the message data;
[0156] Determine the sending moment of the message data according to the time identifier.
[0157] In a possible implementation manner, the preset position includes a position of a preset number of bytes at the tail of a sub-header of a MAC layer field. The base station is configured to parse the time identifier at the preset position in the MAC field of the message data, including:
[0158] The base station is configured to parse a time identifier at a position of a preset number of bytes at the tail of a header of the MAC field of the message data; wherein the time identifier includes a combination of multiple sub-fields, and the sub-fields include: a system frame number, a sub-frame number, a time slot, and a symbol.
[0159] In a possible implementation manner, in the second processing module, the base station is configured to determine a processing method of the message data according to a magnitude relationship between a difference between the receiving moment and the sending moment and a preset threshold, including:
[0160] The base station is configured to send the parsed message data to a layer above the preset layer when the difference between the receiving moment and the sending moment is equal to the preset threshold.
[0161] Each module in the above message data processing device may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in a processor in a computer device in a hardware form or be independent of the processor, or may 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 above respective modules.
[0162] In one embodiment, a communication device is provided. The computer device may be a base station, and its internal structure diagram may be as shown in Figure 12 the following. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the processed data of the message data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it is used to implement a method for processing message data.
[0163] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in Figure 13 the following. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it is used to implement a method for processing message data. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, a touchpad, or a mouse, etc.
[0164] Those skilled in the art can understand that Figure 13 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0165] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0166] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as falling within the scope described in this specification.
[0167] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for processing message data, characterized in that, Applied to a base station, the method includes: Receiving packet data and determining the receiving time of the packet data; wherein, a time identifier is set in a preset layer field of the packet data; Parsing the time identifier of the preset layer field to obtain the sending time of the packet data; Determining a data processing method for the packet data according to a magnitude relationship between a difference between the receiving time and the sending time and a preset threshold; wherein, determining the processing method for the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold includes: waiting for a preset duration when the difference between the receiving time and the sending time is less than the preset threshold; wherein, the preset duration is a difference between the preset threshold and the difference; and sending the parsed packet data to the layer above the preset layer when the preset duration ends.
2. The method according to claim 1, characterized in that, The preset layer field includes a MAC layer field. Parsing the time identifier in the packet data to obtain the sending time of the packet data includes: Parsing the time identifier at a preset position in the MAC layer field of the packet data; Determining the sending time of the packet data according to the time identifier.
3. The method according to claim 2, wherein The preset position includes a position of a preset number of bytes at the tail of the sub-header of the MAC layer field. Parsing the time identifier at the preset position in the MAC field of the packet data includes: Parsing the time identifier at a position of a preset number of bytes at the tail of the header of the MAC field in the packet data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
4. The method according to claim 1, characterized in that, Determining the processing method for the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold includes: Sending the parsed packet data to the layer above the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
5. The method according to any one of claims 1 to 4, characterized in that, Determining the processing method for the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold includes: Sending a prompt message when the difference between the receiving time and the sending time is greater than the preset threshold.
6. A method for processing message data, characterized in that, Applied to a terminal, the method includes: Obtaining service data; Adding a time identifier of the sending time to obtain packet data when encapsulating the service data at a preset layer. Send the message data to the base station to instruct the base station to parse the time identifier in the message data and obtain the sending time of the message data; determine the data processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold; the determining the data processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold includes: when the difference between the receiving time and the sending time is less than the preset threshold, wait for a preset duration; wherein, the preset duration is the difference between the preset threshold and the difference; when the preset duration ends, send the parsed message data to the layer above the preset layer.
7. The method according to claim 6, characterized in that, The base station is used to parse the time identifier in the message data and obtain the sending time of the message data, including: The base station is used to parse the time identifier at a preset position in the MAC layer field of the message data; Determine the sending time of the message data according to the time identifier.
8. The method according to claim 7, characterized in that, The preset position includes the position of the preset number of bytes at the tail of the sub-header of the MAC layer field. The base station is used to parse the time identifier at a preset position in the MAC field of the message data, including: The base station is used to parse the time identifier at the position of the preset number of bytes at the tail of the header of the MAC field of the message data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
9. The method according to any one of claims 6 to 8, characterized in that, The base station is used to determine the processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold, including: The base station is used to send the parsed message data to the layer above the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
10. A processing device for message data, characterized in that, The device includes: A receiving module, configured to receive message data and determine the receiving time of the message data; wherein, a time identifier is set in the preset layer field of the message data; An analysis module, configured to analyze the time identifier of the preset layer field and obtain the sending time of the message data; A first processing module, configured to determine the data processing method of the message data according to the magnitude relationship between the difference between the receiving time and the sending time and a preset threshold; the first processing module includes: a caching sub-module, configured to wait for a preset duration when the difference between the receiving time and the sending time is less than the preset threshold; wherein, the preset duration is the difference between the preset threshold and the difference; a second sending sub-module, configured to send the parsed message data to the layer above the preset layer when the preset duration ends.
11. The device according to claim 10, characterized in that, The preset layer field includes a MAC layer field, and the analysis module includes: An analysis sub-module, configured to analyze the time identifier at a preset position in the MAC layer field of the message data; A determining sub-module, configured to determine the sending time of the message data according to the time identifier.
12. The device according to claim 11, characterized in that, The preset position includes the position of the preset number of bytes at the tail of the MAC layer field sub-header. The parsing sub-module includes: A parsing unit, configured to parse the time identifier at the position of the preset number of bytes at the tail of the MAC field header in the packet data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
13. The device according to claim 10, characterized in that, The processing module includes: A first sending sub-module, configured to send the parsed packet data to the upper layer of the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
14. The device according to any one of claims 10 to 13, characterized in that The processing module includes: A third sending sub-module, configured to send a prompt message when the difference between the receiving time and the sending time is greater than the preset threshold.
15. A processing device for message data, characterized in that, Applied to a terminal, the device includes: An obtaining module, configured to obtain service data; An encapsulation module, configured to add a time identifier of the sending time to obtain packet data when encapsulating the service data at the preset layer; A second processing module, configured to send the packet data to a base station to instruct the base station to parse the time identifier in the packet data and obtain the sending time of the packet data; determine the data processing mode of the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold; the determining the data processing mode of the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold includes: waiting for a preset duration when the difference between the receiving time and the sending time is less than the preset threshold; wherein, the preset duration is the difference between the preset threshold and the difference; sending the parsed packet data to the upper layer of the preset layer when the preset duration ends.
16. The device according to claim 15, characterized in that, In the second processing module, the base station is configured to parse the time identifier in the packet data and obtain the sending time of the packet data, including: The base station is configured to parse the time identifier at the preset position in the MAC layer field of the packet data; Determine the sending time of the packet data according to the time identifier.
17. The device according to claim 16, wherein, The preset position includes the position of the preset number of bytes at the tail of the MAC layer field sub-header. The base station is configured to parse the time identifier at the preset position in the MAC field of the packet data, including: The base station is configured to parse the time identifier at the position of the preset number of bytes at the tail of the MAC field header in the packet data; wherein, the time identifier includes a combination of multiple sub-fields, and the sub-fields include: system frame number, sub-frame number, time slot, symbol.
18. The device according to any one of claims 15 to 17, characterized in that, In the second processing module, the base station is configured to determine the processing mode of the packet data according to the magnitude relationship between the difference between the receiving time and the sending time and the preset threshold, including: The base station is configured to send the parsed packet data to the upper layer of the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
19. A communication device, comprising a processor and a memory, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for processing message data described in any one of claims 1 to 5, or implements the steps of the method for processing message data described in any one of claims 6 to 9.
20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for processing message data described in any one of claims 1 to 5, or implements the steps of the method for processing message data described in any one of claims 6 to 9.
21. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method described in any one of claims 1 to 5, or implements the steps of the method for processing message data described in any one of claims 6 to 9.
Citation Information
Patent Citations
Semi-persistent scheduling and receiving method, system and device of relaying access link
CN102548011A
Communication method and communication device
CN108886478A
Method for preventing intelligent terminal from being lost and intelligent terminal
CN113067938A