Method, device, computer equipment and storage medium for processing message data
By setting time identification in the preset layer field of the message data, analyzing the transmission time and processing data according to the relationship between the difference and the threshold, the problem of low delay certainty in 5G communication is solved, and the certainty and consistency of data transmission is achieved.
Patent Information
- Application Number
- CN202310822258.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2043-07-05
AI Technical Summary
In 5G communication, due to the influence of message data segmentation, data packets are transmitted on different time slots, and the channel condition adaptation and encoding methods are different, resulting in low certainty in the delay of the data transmission air interface and cannot meet the actual needs.
Set a time identification in the preset layer field of the message data, obtain the transmission time by analyzing the time identification, and determine the data processing method, such as sending, delaying transmission or discarding, based on the relationship between the difference between the reception time and the transmission time and the preset threshold.
It improves the certainty of the delay difference (jitter) of message data transmission, ensuring consistency and accuracy of data processing methods.
Smart Images

Figure CN116723545B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless and terminal communication technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for processing message data. Background Art
[0002] With the development of communications technology, 5G communications have emerged. However, due to message data segmentation, packets of varying sizes may be transmitted in varying numbers across multiple time slots. Packets of the same size must be encoded using different modulation schemes and coding efficiencies to adapt to channel conditions. This results in low data transmission air interface latency certainty, which cannot meet practical requirements. Summary of the Invention
[0003] Based on this, it is necessary to provide a method, apparatus, computer equipment, storage medium and computer program product for processing message data in order to address the above technical issues.
[0004] In a first aspect, the present application provides a method for processing message data. The method comprises:
[0005] Receive message data and determine the time of receiving the message data; wherein the preset layer field of the message data is provided with a time identifier;
[0006] Parsing the time identifier of the preset layer field to obtain the sending time of the message data;
[0007] A data processing method for the message data is determined according to a size relationship between a difference between the receiving time and the sending time and a preset threshold.
[0008] In a possible implementation, the preset layer field includes an RLC layer field, and parsing the time identifier in the message data to obtain the sending time of the message data includes:
[0009] Parsing a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0010] The sending time of the message data is determined according to the time identifier.
[0011] In a possible implementation, the preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a header-segmented service data unit, and parsing the time identifier of the preset position in the RLC field in the message data includes:
[0012] Parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0013] 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:
[0014] When the difference between the receiving time and the sending time is equal to the preset threshold, the parsed message data is sent to a layer above the preset layer.
[0015] 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:
[0016] 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;
[0017] When the preset time period ends, the parsed message data is sent to the upper layer of the preset layer.
[0018] 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:
[0019] When the difference between the receiving time and the sending time is greater than the preset threshold, a prompt message is sent.
[0020] In a second aspect, the present application further provides a method for processing message data, applied to a terminal, the method comprising:
[0021] Obtain business data;
[0022] When the service data is encapsulated in the preset layer, a time stamp of the sending moment is added to obtain message data;
[0023] The message data is sent 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; based on the size relationship between the difference between the receiving time and the sending time and the preset threshold, the data processing method of the message data is determined.
[0024] In a possible implementation, the base station is configured to parse the time identifier in the message data to obtain the sending time of the message data, including:
[0025] The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0026] Determine the sending time of the message data according to the time identifier
[0027] In a possible implementation, the preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a head-segmented service data unit; and the base station is configured to parse a time identifier at a preset position in an RLC field in the message data, including:
[0028] The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0029] In a possible implementation, the base station is configured to determine a processing method for the message data based on a relationship between a difference between the receiving time and the sending time and a preset threshold, including:
[0030] The base station is configured to send the parsed message data to a layer above the preset layer when a difference between the receiving time and the sending time is equal to the preset threshold.
[0031] In a third aspect, the present application further provides a device for processing message data, the device comprising:
[0032] A receiving module, configured to receive message data and determine a time of reception of the message data; wherein a preset layer field of the message data is provided with a time identifier;
[0033] A parsing module, configured to parse the time identifier of the preset layer field to obtain the sending time of the message data;
[0034] The first processing module is used to determine a data processing method for the message data according to a size relationship between a difference between the receiving time and the sending time and a preset threshold.
[0035] In a possible implementation, the preset layer field includes an RLC layer field, and the parsing module includes:
[0036] a parsing submodule, configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier comprises a combination of multiple subfields, each of which comprises: a system frame number, a subframe number, a time slot, and a symbol;
[0037] The determination submodule is used to determine the sending time of the message data according to the time identifier.
[0038] In a possible implementation, the preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a head-segmented service data unit, and the parsing submodule includes:
[0039] A parsing unit is used to parse the time stamp at the preset number of bytes at the end of the RLC field header of the non-segmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the end of the RLC layer field sub-header of the head-segmented service data unit in the message data.
[0040] In a possible implementation, the processing module includes:
[0041] The first sending submodule is configured to send the parsed message data to a layer above the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
[0042] In a possible implementation, the processing module includes:
[0043] a cache submodule, configured to wait for a preset time period when the difference between the receiving time and the sending time is less than the preset threshold; wherein the preset time period is the difference between the preset threshold and the difference;
[0044] The second sending submodule is used to send the parsed message data to the upper layer of the preset layer when the preset time period ends.
[0045] In a possible implementation, the processing module includes:
[0046] The third sending submodule is configured to send a prompt message when the difference between the receiving time and the sending time is greater than the preset threshold.
[0047] In a fourth aspect, the present application further provides a message data processing device, applied to a terminal, the device comprising:
[0048] Acquisition module, used to obtain business data;
[0049] An encapsulation module, configured to encapsulate the service data at a preset layer, add a timestamp of a sending moment, and obtain message data;
[0050] The second processing module is used to 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; based on the size relationship between the difference between the receiving time and the sending time and the preset threshold, determine the data processing method of the message data.
[0051] In a possible implementation, in the second processing module, the base station is configured to parse the time identifier in the message data to obtain the sending time of the message data, including:
[0052] The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0053] The sending time of the message data is determined according to the time identifier.
[0054] In a possible implementation, the preset position includes a position of a preset number of bytes at the tail of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit, and the base station is configured to parse a time identifier at a preset position in an RLC field in the message data, including:
[0055] The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0056] In a possible implementation, in the second processing module, the base station is configured to determine a processing method for the message data based on a relationship between a difference between the receiving time and the sending time and a preset threshold, including:
[0057] The base station is configured to send the parsed message data to a layer above the preset layer when a difference between the receiving time and the sending time is equal to the preset threshold.
[0058] In a fifth aspect, the present application also provides a communication device, including a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps of the message data processing method as described in any one of the embodiments of the present disclosure.
[0059] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the message data processing method as described in any one of the embodiments of the present disclosure.
[0060] In a seventh aspect, the present application further provides a computer program product, comprising a computer program that, 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.
[0061] In the above-mentioned message data processing method, apparatus, computer device, storage medium, and computer program product, the terminal side sets a time stamp in the 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 based on the time stamp, calculates the difference between the sending time and the receiving time, compares the difference with a preset threshold, and determines the corresponding message data processing method, such as not sending, sending, or delaying sending. This ensures the determinism of the delay difference (jitter) of the message data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 A diagram illustrating an application environment of a method for processing message data in one embodiment;
[0063] Figure 2 1 is a schematic diagram of a first flow chart of a method for processing message data in one embodiment;
[0064] Figure 3 Schematic diagram of the air interface user plane protocol stack in a 5G communication network in one embodiment;
[0065] Figure 4 A schematic diagram of the structure of message data after adding a time stamp in one embodiment;
[0066] Figure 5 A schematic diagram of the structure of message data after adding a time stamp in another embodiment;
[0067] Figure 6 A schematic diagram of the structure of message data after adding a time stamp in another embodiment;
[0068] Figure 7 A schematic diagram of the structure of message data after adding a time stamp in another embodiment;
[0069] Figure 8 A second flow chart of a method for processing message data in another embodiment;
[0070] Figure 92 is a third flow chart of a method for processing message data in another embodiment;
[0071] Figure 10 is a structural block diagram of a device for processing message data in one embodiment;
[0072] Figure 11 It is a structural block diagram of a device for processing message data in another embodiment;
[0073] Figure 12 is a diagram showing the internal structure of a communication device in one embodiment;
[0074] Figure 13 FIG. 4 is a diagram showing the internal structure of a communication device in another embodiment. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0076] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0077] The method for processing message data provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, terminal 102 communicates with base station 104 via a network. Terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Base station 104 is a radio transceiver used to transmit information to and from terminal 102 via a mobile communication exchange center within a certain radio coverage area.
[0078] In one embodiment, Figure 2 As shown, a message data processing method is provided, which is applied to Figure 1 Taking the base station 104 in FIG. 1 as an example, the method includes the following steps:
[0079] Step S201: Receive message data and determine the time of receiving the message data; wherein the preset layer field of the message data is provided with a time identifier.
[0080] Specifically, the message data may include message data in 3G, 4G, 5G and future 5G mobile communication networks. Figure 3 As shown in the figure, the terminal's service data passes through the SDAP layer, PDCP layer, RLC layer, and MAC layer in sequence. Each layer adds an encapsulation header to the received data. The resulting message data includes the corresponding message headers for each layer and the service data. The message data is sent to the base station via the uplink physical channel. After receiving the message data on the uplink physical channel, the base station performs parsing processing at the MAC layer, RLC layer, PDCP layer, and SDAP layer to restore the service data.
[0081] Step S203: parse the time identifier of the preset layer field to obtain the sending time of the message data.
[0082] Specifically, the preset layer may include any layer in the above-mentioned message data, such as the RLC layer. The preset layer field may include a field corresponding to the preset layer in the message 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-mentioned time identifier represented by other characters; it may also be represented by a system frame, subframe number, time slot or system frame number, subframe number, time slot, symbol, wherein the system frame number, subframe number, time slot, symbol has higher time accuracy than the system frame, subframe number, and time slot, wherein in the 5G network, the duration of the system frame includes 10ms, each frame consists of 10 subframes, the duration of each subframe is 1ms, and the number of time slots included in each subframe increases with the increase of the parameter set, and the parameter set represents the subcarrier spacing, and each time system has 14 or 12 symbols. The sending time of the message data can be obtained by parsing the time identifier.
[0083] Step S205 : determining a data 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.
[0084] Specifically, the preset threshold value may represent a target delay Tt, such as 3ms, 6ms, etc., and may be set according to a specific application scenario. The receiving time may be identified as T1, the sending time may be identified as T0, and the difference between the receiving time and the sending time may be represented as Δt, where Δt=T1-T0. In an exemplary embodiment, when the difference Δt is equal to Tt, the message data may be sent to a layer above the preset layer for parsing. For example, if the preset layer is the RLC layer, the message data parsed at the RLC layer may be sent to the PDCP layer. In another exemplary embodiment, when the difference Δt is greater than Tt, the message data may be discarded, or, when the difference Δt is greater than Tt, the message 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 time period may be waited for, and when the preset time period expires, the message data may be sent to a layer above the preset layer for parsing.
[0085] In the above-mentioned message data processing method, the terminal side sets a time stamp in the 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 based on the time stamp. By calculating the difference between the sending time and the receiving time, and comparing this difference with a preset threshold, it determines the corresponding message data processing method, such as not sending, sending, or delaying sending. This ensures the determinism of the delay difference (jitter) of the message data transmission.
[0086] In a possible implementation, the preset layer field includes an RLC layer field, and parsing the time identifier in the message data to obtain the sending time of the message data includes:
[0087] Parsing a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0088] The sending time of the message data is determined according to the time identifier.
[0089] Specifically, the RLC (Radio Link Control) layer may include the RLC layer in 3G, 4G, 5G and future mobile communication networks above 5G. Taking the 5G RLC layer as an example, the RLC entity corresponds to the logical channel of a terminal. The data received by the RLC entity from the PDCP layer or sent to the PDCP layer is called RLC SDU. The data received by the RLC entity from the MAC layer or sent to the MAC layer is called RLC PDU. The functions of the RLC layer include: segmentation and reassembly, error correction through ARQ (Automatic Repeat reQuest), duplicate packet detection, RLC SDU discarding, etc.
[0090] In the embodiment of the present disclosure, the preset position may include the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU). It may also include the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment; the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the last segment; and the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of other segments. In one exemplary embodiment, if a time stamp is added at the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU), then parsing also needs to be performed from the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU). In another exemplary embodiment, if a time stamp is added at the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment, then parsing also needs to be performed from the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment. In another exemplary embodiment, if a time stamp is added at a preset number of bytes at the end of the RLC layer field subheader of the last segmented service data unit, parsing also needs to be performed from a preset number of bytes at the end of the RLC layer field subheader of the last segmented service data unit.
[0091] In the disclosed embodiment, system frame numbers, subframe numbers, time slots, and symbols are used to represent time, which further refines the time granularity, improves the accuracy of the delay difference, and further improves the certainty of the delay difference (jitter) of message data transmission.
[0092] In the disclosed embodiments, the terminal sets a time stamp in the RLC layer field of the message data. When the base station parses the RLC layer of the message data, it obtains the sending time of the message data based on the time stamp. By calculating the difference between the sending time and the receiving time, and comparing this difference with a preset threshold, it determines the corresponding processing method for the message data, such as not sending, sending, or delaying sending. This ensures the determinism of the delay difference (jitter) of the message data transmission. Using the RLC layer field to set the time stamp is highly feasible.
[0093] In a possible implementation, the preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a header-segmented service data unit, and parsing the time identifier of the preset position in the RLC field in the message data includes:
[0094] Parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0095] Specifically, during a transmission process, the total size of all RLC PDUs that can be sent by a logical channel is specified by the MAC layer. Its size usually cannot guarantee that every RLC SDU that needs to be sent can be sent completely, so the transmitting end needs to segment a certain RLC SDU to match the total size specified by the MAC layer. Accordingly, the segmented RLC SDU needs to be reassembled at the receiving end to restore the original RLC SDU and deliver it to the upper layer. Generally speaking, the RLC header can include SN, SI, and S0 information, where SN indicates which SDU number the data packet belongs to, SI indicates whether the data packet is a complete SDU or a header segment, end segment, or middle segment SDU, and S0 indicates the starting mapping position of the data segment carried by the data packet for the entire SDU.
[0096] In the 3GPP protocol, an unsegmented RLC SDU is identified by SI = 00, and a segmented RLC SDU is identified by SI, wherein the head segment of the SDU is identified by SI = 01, the last segment is identified by SI = 10, and other segments are identified by SI = 11. In the embodiment of the present disclosure, the preset number of bytes can be set according to the specific application scenario, for example, 3 bytes or 5 bytes, and the present disclosure does not impose any limitation on this.
[0097] In an exemplary embodiment, referring to Figure 4As shown, in the message data of the 5G mobile network, in the UM transmission mode, 3 bytes are extended at the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit, or 3 bytes are extended at the position of the preset number of bytes at the end of the RLC layer field subheader of the head-segmented service data unit, where the extended part SFN is the system frame number, ranging from 0 to 1023 (10 bits); SubFN is the subframe number, ranging from 0 to 9 (4 bits); SlotN is the slot number, ranging from 0 to 15 (4 bits).
[0098] In an exemplary embodiment, referring to Figure 5 As shown, in the AM transmission mode, 3 bytes are extended at the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit, or 3 bytes are extended at the position of the preset number of bytes at the end of the RLC layer field subheader of the header-segmented service data unit, wherein the extended part SFN is the system frame number, ranging from 0 to 1023 (10 bits); SubFN is the subframe number, ranging from 0 to 9 (4 bits); SlotN is the slot number, ranging from 0 to 15 (4 bits).
[0099] In an exemplary embodiment, referring to Figure 6 As shown, taking the message data of the 5G communication network as an example, in the UM working mode, the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit is extended by 3 bytes, or the position of the preset number of bytes at the end of the RLC layer field subheader of the head segmented service data unit is extended by 3 bytes. Among them, the extended part is: SFN is the system frame number, ranging from 0 to 1023 (10 bits); SubFN is the subframe number, ranging from 0 to 9 (4 bits); SlotN is the slot number, ranging from 0 to 15 (4 bits); SymbolN is the symbol number, ranging from 0 to 13 (4 bits).
[0100] In another exemplary embodiment, referring to Figure 7 As shown, taking the message data of the 5G communication network as an example, in the AM working mode and the UM transmission mode, the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit is extended by 3 bytes, or the position of the preset number of bytes at the end of the RLC layer field subheader of the head segmented service data unit is extended by 3 bytes. Among them, the extended part is: SFN is the system frame number, ranging from 0 to 1023 (10 bits); SubFN is the subframe number, ranging from 0 to 9 (4 bits); SlotN is the slot number, ranging from 0 to 15 (4 bits); SymbolN is the symbol number, ranging from 0 to 13 (4 bits).
[0101] In the embodiment of the present disclosure, the preset position includes the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit or the position of the preset number of bytes at the end of the RLC layer field subheader of the head segmented service data unit. On the one hand, if the base station side implements the method for processing message data as described in any one of the embodiments of the present disclosure, the above-mentioned embodiments can help improve the certainty of the message data. On the other hand, if the base station side does not implement the method for processing message data as described in any one of the embodiments of the present disclosure, it can also be parsed in the original way, so as not to cause the RLC layer to be unable to parse. Among them, Figure 6 and Figure 7 , using system frame number, subframe number, time slot, and symbol to represent time, which further refines the time granularity, improves the accuracy of delay difference, and further improves the certainty of delay difference (jitter) of message data transmission.
[0102] 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:
[0103] When the difference between the receiving time and the sending time is equal to the preset threshold, the parsed message data is sent to a layer above the preset layer.
[0104] 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 RLC 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 PDCP layer, so that the PDCP layer parses the message data.
[0105] 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.
[0106] 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:
[0107] 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;
[0108] When the preset time period ends, the parsed message data is sent to the upper layer of the preset layer.
[0109] Specifically, when the preset layer of the message data is parsed on the base station side, the sending time of the message data and the parsed message data are obtained. 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 RLC layer is parsed, 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 PDCP layer so that the PDCP layer parses the message data.
[0110] In the disclosed embodiment, by comparing the difference between the receiving time and the sending time with a preset threshold, if the difference between the receiving time and the sending time is less than the preset threshold, a preset time duration is waited. When the preset time duration expires, the parsed message data is sent to the layer above the preset layer, which helps to promote the consistency of the delay time of multiple message data and improve the certainty of message data delay.
[0111] 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:
[0112] When the difference between the receiving time and the sending time is greater than the preset threshold, a prompt message is sent.
[0113] Specifically, when parsing the message data at a preset layer, the base station obtains the message data's transmission time and the parsed message data. The base station calculates the difference between the reception time and the transmission time. If the difference is greater than a preset threshold, the message data may be discarded, or a prompt message may be sent simultaneously with the discard. This prompt message indicates that the message data has exceeded the delay and cannot meet the deterministic requirements. Subsequent processing can be performed by retransmitting or other methods.
[0114] In an embodiment of the present disclosure, by comparing the difference between the receiving time and the sending time with a preset threshold, a prompt message is sent when the difference between the receiving time and the sending time is greater than the preset threshold, thereby avoiding subsequent parsing of message data with a large delay and improving the certainty of the message data delay.
[0115] Based on the same inventive concept, Figure 8 This is a second flow chart of a method for processing message data in another embodiment, referring to Figure 8 As shown, applied to a terminal, the method includes:
[0116] Step S801: Acquire business data.
[0117] Step S803: When the service data is encapsulated at a preset layer, a time stamp of the sending moment is added to obtain message data.
[0118] Step S805: 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 based on the size relationship between the difference between the receiving time and the sending time and the preset threshold.
[0119] Specifically, the service data may include multiple service data, and 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 in data transmission, such as the RLC layer. The service data is encapsulated in the preset layer, referring to Figure 3 As shown, the terminal's service data passes through the SDAP layer, PDCP layer, RLC layer, and MAC layer in sequence. Each layer adds an encapsulation header to the received data. The resulting message data includes the message header corresponding to each layer and the service data. In an exemplary embodiment, a time stamp can be added to the message header of a preset layer.
[0120] 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 be represented by a system frame, subframe number, time slot or system frame number, subframe number, time slot, symbol, wherein the system frame number, subframe number, time slot, symbol has higher time accuracy than the system frame, subframe number, and time slot. In the 5G network, the duration of the system frame includes 10ms, each frame consists of 10 subframes, the duration of each subframe is 1ms, 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 system has 14 or 12 symbols. On the base station side, the sending time of the message data can be obtained by parsing the time identifier.
[0121] In the embodiment of the present disclosure, the preset threshold value may represent a target delay Tt, such as 3ms, 6ms, etc., and may be set according to a specific application scenario. The receiving time may be identified as T1, the sending time may be identified as T0, and the difference between the receiving time and the sending time may be represented as Δt, where Δt=T1-T0. In an exemplary embodiment, when the difference Δt is equal to Tt, the message data may be sent to a layer above the preset layer for parsing. For example, if the preset layer is the RLC layer, the message data parsed at the RLC layer may be sent to the PDCP layer. In another exemplary embodiment, when the difference Δt is greater than Tt, the message data may be discarded, or, when the difference Δt is greater than Tt, the message 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 time period may be waited for, and when the preset time period ends, the message data may be sent to a layer above the preset layer for parsing.
[0122] In the above-mentioned message data processing method, the terminal side sets a time stamp in the 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 based on the time stamp. By calculating the difference between the sending time and the receiving time, and comparing this difference with a preset threshold, it determines the corresponding message data processing method, such as not sending, sending, or delaying sending. This ensures the determinism of the delay difference (jitter) of the message data transmission.
[0123] In a possible implementation, when the base station parses the time identifier in the message data to obtain the sending time of the message data, the base station includes:
[0124] The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0125] The sending time of the message data is determined according to the time identifier.
[0126] Specifically, the RLC (Radio Link Control) layer may include the RLC layer in 3G, 4G, 5G and future mobile communication networks above 5G. Taking the 5G RLC layer as an example, the RLC entity corresponds to the logical channel of a terminal. The data received by the RLC entity from the PDCP layer or sent to the PDCP layer is called RLC SDU. The data received by the RLC entity from the MAC layer or sent to the MAC layer is called RLC PDU. The functions of the RLC layer include segmentation and reassembly, error correction through ARQ (Automatic Repeat reQuest), duplicate packet detection, and RLC SDU discard processing.
[0127] In the embodiment of the present disclosure, the preset position may include the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU). It may also include the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment; the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the last segment; and the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of other segments. In one exemplary embodiment, if a time stamp is added at the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU), then parsing also needs to be performed from the position of the preset number of bytes at the end of the RLC layer field subheader of the non-segmented service data unit (SDU). In another exemplary embodiment, if a time stamp is added at the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment, then parsing also needs to be performed from the position of the preset number of bytes at the end of the RLC layer field subheader of the service data unit of the first segment. In another exemplary embodiment, if a time stamp is added at a preset number of bytes at the end of the RLC layer field subheader of the last segmented service data unit, parsing also needs to be performed from a preset number of bytes at the end of the RLC layer field subheader of the last segmented service data unit.
[0128] In the disclosed embodiment, system frame numbers, subframe numbers, time slots, and symbols are used to represent time, which further refines the time granularity, improves the accuracy of the delay difference, and further improves the certainty of the delay difference (jitter) of message data transmission.
[0129] In a possible implementation, the preset position is a position of a preset number of bytes at the tail of an RLC layer field subheader of a non-segmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit, and the base station is configured to parse a time identifier at a preset position in an RLC field in the message data, including:
[0130] The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0131] Specifically, during a transmission process, the total size of all RLC PDUs that can be sent by a logical channel is specified by the MAC layer. Its size usually cannot guarantee that every RLC SDU that needs to be sent can be sent completely, so the transmitting end needs to segment a certain RLC SDU to match the total size specified by the MAC layer. Accordingly, the segmented RLC SDU needs to be reassembled at the receiving end to restore the original RLC SDU and deliver it to the upper layer. Generally speaking, the RLC header can include SN, SI, and S0 information, where SN indicates which SDU number the data packet belongs to, SI indicates whether the data packet is a complete SDU or a header segment, end segment, or middle segment SDU, and S0 indicates the starting mapping position of the data segment carried by the data packet for the entire SDU.
[0132] In the 3GPP protocol, the unsegmented RLC SDU is identified by SI=00, and the segmented RLC SDU is identified by SI, wherein the head segment of the SDU is identified by SI=01, the last segment is identified by SI=10, and other segments are identified by SI=11.
[0133] In the embodiments of the present disclosure, the preset position includes the position of a preset number of bytes at the end of the RLC layer field subheader of the unsegmented service data unit or the position of a preset number of bytes at the end of the RLC layer field subheader of the head segmented service data unit. On the one hand, if the base station side implements the message data processing method as described in any of the embodiments of the present disclosure, the above-mentioned embodiments can help improve the certainty of the message data. On the other hand, if the base station side does not implement the message data processing method as described in any of the embodiments of the present disclosure, it can still be parsed in the original manner, which will not cause the RLC layer to be unable to parse.
[0134] In a possible implementation, 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 RLC 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 PDCP layer, so that the PDCP layer parses the message data.
[0135] 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.
[0136] Figure 9 This is a third flow chart of a method for processing message data in another embodiment, referring to Figure 9 As shown, on the terminal side, the service data passes through the SDAP layer, RLC layer, and MAC layer in sequence, and the message header is added layer by layer. Among them, the time mark T0 is inserted in the RLC layer. The message data with the time mark is transmitted through the air interface to the base station side. The base station side parses the message data. When parsing the RLC layer, the time mark T0 is interpreted to determine the sending time of the message data, and the time difference between T1 and T0 is determined based on the sending time and the receiving time T1 of the message data. The time difference is compared with the target delay Tt. If they are equal, the message data parsed at the RLC layer can be uploaded to the RLC layer for parsing; if the time difference is less than the target delay, the message is cached, and after the preset time length Tt-(T1-T0) is over, the message data parsed at the RLC layer is uploaded to the PDCP layer for parsing; if the time difference is greater than the target delay, it is discarded or other processing such as error reporting is performed. The parsed message data is parsed layer by layer to obtain the service data.
[0137] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0138] Based on the same inventive concept, embodiments of the present application further provide a message data processing device for implementing the message data processing method involved above. The implementation solution provided by this device is similar to the implementation solution described in the above method. Therefore, the specific limitations of one or more message data processing device embodiments provided below can be found in the limitations of the message data processing method above and will not be repeated here.
[0139] In one embodiment, Figure 10 As shown, a message data processing device 1000 is provided, comprising:
[0140] The receiving module 1001 is configured to receive message data and determine a reception time of the message data; wherein the preset layer field of the message data is provided with a time identifier;
[0141] The parsing module 1003 is configured to parse the time identifier of the preset layer field to obtain the sending time of the message data;
[0142] The first processing module 1005 is configured to determine a data 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.
[0143] In a possible implementation, the preset layer field includes an RLC layer field, and the parsing module includes:
[0144] a parsing submodule, configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier comprises a combination of multiple subfields, each of which comprises: a system frame number, a subframe number, a time slot, and a symbol;
[0145] The determination submodule is used to determine the sending time of the message data according to the time identifier.
[0146] In a possible implementation, the preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a head-segmented service data unit, and the parsing submodule includes:
[0147] A parsing unit is used to parse the time stamp at the preset number of bytes at the end of the RLC field header of the non-segmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the end of the RLC layer field sub-header of the head-segmented service data unit in the message data.
[0148] In a possible implementation, the processing module includes:
[0149] The first sending submodule is configured to send the parsed message data to a layer above the preset layer when the difference between the receiving time and the sending time is equal to the preset threshold.
[0150] In a possible implementation, the processing module includes:
[0151] a cache submodule, configured to wait for a preset time period when the difference between the receiving time and the sending time is less than the preset threshold; wherein the preset time period is the difference between the preset threshold and the difference;
[0152] The second sending submodule is used to send the parsed message data to the upper layer of the preset layer when the preset time period ends.
[0153] In a possible implementation, the processing module includes:
[0154] The third sending submodule is configured to send a prompt message when the difference between the receiving time and the sending time is greater than the preset threshold.
[0155] In one embodiment, Figure 11 As shown, a device for processing message data is provided, comprising:
[0156] Acquisition module 1101, used to acquire business data;
[0157] The encapsulation module 1103 is configured to encapsulate the service data at a preset layer, add a time stamp of a sending moment, and obtain message data;
[0158] The second processing module 1105 is used to 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 based on the size relationship between the difference between the receiving time and the sending time and the preset threshold.
[0159] In a possible implementation, in the second processing module, the base station is configured to parse the time identifier in the message data to obtain the sending time of the message data, including:
[0160] The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol;
[0161] The sending time of the message data is determined according to the time identifier.
[0162] In a possible implementation, the preset position includes a position of a preset number of bytes at the tail of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit, and the base station is configured to parse a time identifier at a preset position in an RLC field in the message data, including:
[0163] The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
[0164] In a possible implementation, in the second processing module, the base station is configured to determine a processing method for the message data based on a relationship between a difference between the receiving time and the sending time and a preset threshold, including:
[0165] The base station is configured to send the parsed message data to a layer above the preset layer when a difference between the receiving time and the sending time is equal to the preset threshold.
[0166] Each module in the above-mentioned message data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0167] 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 FIG. Figure 12 As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. 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 computer program in the non-volatile storage medium. The database of the computer device is used to store processing data of message data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for processing message data is implemented.
[0168] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 13 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. 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, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing message data is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.
[0169] Those skilled in the art will understand that Figure 13 The structure shown in the figure is only a block diagram of a part of the structure 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 shown in the figure, or combine certain components, or have a different component arrangement.
[0170] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may 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). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0171] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0172] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for processing message data, characterized in that: Applied to a base station, the method includes: Receiving message data at a preset layer and determining a reception time of the message data; wherein a preset layer field of the message data is provided with a time identifier; Parsing the time identifier of the preset layer field to obtain the sending time of the message data; wherein the preset layer field includes an RLC layer field; Determine the data processing method of the message data according to the size relationship between the difference between the receiving time and the sending time and the preset threshold; determine the processing method of the message data according to the size relationship between the difference between the receiving time and the sending time and the preset threshold, including: when the difference between the receiving time and the sending time is less than the preset threshold, wait for a preset time; wherein the preset time is the difference between the preset threshold and the difference; when the preset time ends, send the parsed message data to the upper layer of the preset layer.
2. The method according to claim 1, characterized in that The preset layer field includes an RLC layer field, and parsing the time identifier in the message data to obtain the sending time of the message data includes: Parsing a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol; The sending time of the message data is determined according to the time identifier.
3. The method according to claim 2, characterized in that The preset position includes a position of a preset number of bytes at the end of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the end of an RLC layer field subheader of a head-segmented service data unit, and parsing a time identifier of the preset position in the RLC field in the message data includes: Parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
4. The method according to claim 1, wherein 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: When the difference between the receiving time and the sending time is equal to the preset threshold, the parsed message data is sent to a layer above the preset layer.
5. The method according to any one of claims 1 to 4, characterized in that 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: When the difference between the receiving time and the sending time is greater than the preset threshold, a prompt message is sent.
6. A method for processing message data, characterized in that: Applied to a terminal, the method includes: Obtain business data; When the service data is encapsulated in the preset layer, a time identifier of the sending moment is added to obtain message data; wherein the preset layer field includes an RLC layer field; The message data is sent to the base station to instruct the base station to parse the time identifier in the message data at the preset layer to obtain the sending time of the message data; according to the size relationship between the difference between the receiving time and the sending time and the preset threshold, the data processing method of the message data is determined; the processing method of the message data is determined according to the size relationship between the difference between the receiving time and the sending time and the preset threshold, including: when the difference between the receiving time and the sending time is less than the preset threshold, waiting for a preset time; wherein the preset time is the difference between the preset threshold and the difference; when the preset time ends, sending the parsed message data to the upper layer of the preset layer.
7. The method according to claim 6, characterized in that The base station is configured to parse the time identifier in the message data to obtain the sending time of the message data, including: The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol; The sending time of the message data is determined according to the time identifier.
8. The method according to claim 7, characterized in that The preset position includes a position of a preset number of bytes at the tail of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit, and the base station is configured to parse a time identifier of a preset position in an RLC field in the message data, including: The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
9. The method according to any one of claims 6 to 8, characterized in that The base station is configured to determine 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, including: The base station is configured to send the parsed message data to a layer above the preset layer when a difference between the receiving time and the sending time is equal to the preset threshold.
10. A message data processing device, characterized in that: The device comprises: A receiving module, configured to receive message data at a preset layer and determine a reception time of the message data; wherein the preset layer field of the message data is provided with a time identifier; a parsing module, configured to parse the time identifier of the preset layer field to obtain a sending time of the message data; wherein the preset layer field includes an RLC layer field; The first processing module is used to determine the data processing method of the message data based on the size relationship between the difference between the receiving time and the sending time and the preset threshold; the processing module includes: a cache submodule, used to wait for a preset time when the difference between the receiving time and the sending time is less than the preset threshold; wherein the preset time is the difference between the preset threshold and the difference; the second sending submodule is used to send the parsed message data to the upper layer of the preset layer when the preset time expires.
11. The device according to claim 10, characterized in that The preset layer field includes an RLC layer field, and the parsing module includes: a parsing submodule, configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier comprises a combination of multiple subfields, each of which comprises: a system frame number, a subframe number, a time slot, and a symbol; The determination submodule is used 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 a position of a preset number of bytes at the tail of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit. The parsing submodule includes: A parsing unit is used to parse the time stamp at the preset number of bytes at the end of the RLC field header of the non-segmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the end of the RLC layer field sub-header of the head-segmented service data unit in the message data.
13. The device according to claim 10, characterized in that The processing module includes: The first sending submodule is configured to send the parsed message data to a layer above 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: The third sending submodule is 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 message data processing device, characterized in that: Applied to a terminal, the device includes: Acquisition module, used to obtain business data; An encapsulation module, configured to encapsulate the service data in a preset layer and add a time identifier of a sending moment to obtain message data; wherein the preset layer field includes an RLC layer field; The second processing module is used to send the message data to the base station to instruct the base station to parse the time identifier in the message data at the preset layer to obtain the sending time of the message data; determine the data processing method of the message data according to the size relationship between the difference between the receiving time and the sending time and the preset threshold; the processing method of the message data is determined according to the size relationship between the difference between the receiving time and the sending time and the preset threshold, including: when the difference between the receiving time and the sending time is less than the preset threshold, wait for a preset time; wherein the preset time is the difference between the preset threshold and the difference; when the preset time ends, send the parsed message data to the upper layer of the preset layer.
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 message data to obtain the sending time of the message data, including: The base station is configured to parse a time identifier at a preset position in an RLC layer field in the message data; wherein the time identifier includes a combination of multiple subfields, and the subfields include: a system frame number, a subframe number, a time slot, and a symbol; The sending time of the message data is determined according to the time identifier.
17. The device according to claim 16, characterized in that The preset position includes a position of a preset number of bytes at the tail of an RLC layer field subheader of an unsegmented service data unit or a position of a preset number of bytes at the tail of an RLC layer field subheader of a head-segmented service data unit, and the base station is configured to parse a time identifier of a preset position in an RLC field in the message data, including: The base station is used to parse the time stamp at the preset number of bytes at the tail of the RLC field header of the unsegmented service data unit in the message data; or to parse the time stamp at the preset number of bytes at the tail of the RLC layer field subheader of the segmented service data unit in the message data.
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 a processing method for the message data based on a relationship between a difference between the receiving time and the sending time and a preset threshold, including: The base station is configured to send the parsed message data to a layer above the preset layer when a 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, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of the method for processing message data according to any one of claims 1 to 5, or implements the steps of the method for processing message data according to 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 a processor, the computer program implements the steps of the method for processing message data according to any one of claims 1 to 5, or implements the steps of the method for processing message data according to 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 a processor, the computer program implements the steps of the method according to any one of claims 1 to 5, or implements the steps of the message data processing method according to 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