Data processing method and device

文档序号:516943 发布日期:2021-05-28 浏览:4次 中文

阅读说明:本技术 一种数据处理方法及装置 (Data processing method and device ) 是由 孟伟 刘明 于 2021-01-08 设计创作,主要内容包括:本发明提供了一种数据处理方法及装置,其中,该方法包括:根据数据的优先级将该数据存放到不同优先级对应的发送队列中;分别确定接入基站的多条通路的通路质量;根据该多条通路的通路质量优先发送高优先级对应的该发送队列中的数据,可以解决相关技术中终端通过多条通路接入基站,而基站接入终端的数量和带宽是有限的,使得关键紧急或重要数据无法及时传输的问题,通过将不同优先级的数据存储到不同等级的发送队列中,选取通路质量高的通路发送高优先级的数据,重要数据优先发送,确保重要数据的及时传输。(The invention provides a data processing method and a data processing device, wherein the method comprises the following steps: storing the data into sending queues corresponding to different priorities according to the priorities of the data; respectively determining the path quality of a plurality of paths accessed to the base station; the method comprises the steps that data in a sending queue corresponding to a high priority level are sent preferentially according to the quality of the paths, the problem that in the related technology, a terminal accesses a base station through the paths, the number and the bandwidth of the base station access terminals are limited, and therefore critical emergency or important data cannot be transmitted in time can be solved.)

1. A data processing method, comprising:

storing the data into sending queues corresponding to different priorities according to the priorities of the data;

respectively determining the path quality of a plurality of paths accessed to the base station;

and preferentially sending the data in the sending queue corresponding to the high priority according to the channel quality of the plurality of channels.

2. The method of claim 1, wherein separately determining path qualities of a plurality of paths accessing a base station comprises:

acquiring D2D signal strength between equipment nodes, a network mode and a signal-to-noise ratio of a network;

determining the path quality of the plurality of paths according to the D2D signal strength, the network mode and the signal-to-noise ratio respectively.

3. The method of claim 2, wherein determining the path quality of the plurality of paths based on the D2D signal strength, the network mode, and the signal-to-noise ratio, respectively, comprises:

if the target access of the multiple accesses is a direct access base station, determining the product of the network mode and the signal-to-noise ratio as the access quality of the target access;

and if the target access is accessed to the base station through equipment, determining the product of the D2D signal strength, the network mode and the signal-to-noise ratio as the access quality of the target access.

4. The method according to any one of claims 1 to 3, wherein before storing the data in the transmission queues corresponding to different priorities according to the priorities of the data, the method further comprises:

carrying out priority classification on the data according to the importance degree of the data, and at least obtaining a first priority, a second priority and a third priority from high to low;

and setting a corresponding first sending queue for the first priority, setting a corresponding second sending queue for the second priority, and setting a corresponding third sending queue for the third priority.

5. The method of claim 4, wherein preferentially transmitting data in the transmission queue corresponding to a high priority according to the path quality of the plurality of paths comprises:

if the data to be sent exists in the first sending queue, sending the data to be sent in the first sending queue through a first-stage channel with the highest channel quality;

and if data to be sent exists in the second sending queue and/or the third sending queue, sending the data to be sent in the second sending queue and/or the third sending queue through a path except the first-stage path in the plurality of paths.

6. The method of claim 5, wherein transmitting the data to be transmitted in the second transmit queue and/or a third transmit queue through a lane of the plurality of lanes except the first-level lane comprises:

if the data to be sent exists in the second sending queue and the data to be sent does not exist in the third sending queue, sending the data to be sent in the second sending queue through a second-stage channel except the first-stage channel and a third-stage channel with the lowest channel quality in the plurality of channels;

if the data to be sent exists in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the second sending queue through the second-level path and sending the data to be sent in the third sending queue through the third-level path;

and if the data to be sent does not exist in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the third sending queue through the second-level channel and the third-level channel.

7. The method of claim 4, further comprising:

setting a first monitoring thread for monitoring whether data to be sent exist or not for the first sending queue;

and setting a second monitoring thread for monitoring whether the data to be sent exists or not for the second sending queue and the third sending queue.

8. A data processing apparatus, comprising:

the storage module is used for storing the data into the sending queues corresponding to different priorities according to the priorities of the data;

a determining module, configured to determine path qualities of multiple paths accessing the base station, respectively;

and the sending module is used for sending the data in the sending queue corresponding to the high priority preferentially according to the channel quality of the plurality of channels.

9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.

Technical Field

The present invention relates to the field of communications, and in particular, to a data processing method and apparatus.

Background

In the current 5G application environment, a plurality of 5G video terminals are respectively accessed to the 5G base station, and compared with the previous 4G base station, the deployment of the 5G base station is more dense and small.

One terminal system may be accessed to a 5G network through a plurality of 5G base stations, the number and bandwidth of base station access terminals are limited, and the change of surrounding people and environment can cause that the terminals and effective bandwidths which can be borne by the current base stations at different moments are different, so that critical and urgent alarm data, critical data frames and the like cannot be transmitted in time.

Aiming at the problem that the number and bandwidth of access terminals of a base station are limited, so that critical emergency or important data cannot be transmitted in time, a solution is not provided.

Disclosure of Invention

The embodiment of the invention provides a data processing method and a data processing device, which are used for at least solving the problem that in the related art, a terminal is accessed to a base station through a plurality of paths, and the number and the bandwidth of the access terminals of the base station are limited, so that critical emergency or important data cannot be transmitted in time.

According to an embodiment of the present invention, there is provided a data processing method including:

storing the data into sending queues corresponding to different priorities according to the priorities of the data;

respectively determining the path quality of a plurality of paths accessed to the base station;

and preferentially sending the data in the sending queue corresponding to the high priority according to the channel quality of the plurality of channels.

Optionally, the respectively determining the path quality of the multiple paths accessing the base station includes:

acquiring D2D signal strength between equipment nodes, a network mode and a signal-to-noise ratio of a network;

determining the path quality of the plurality of paths according to the D2D signal strength, the network mode and the signal-to-noise ratio respectively.

Optionally, determining the path quality of the plurality of paths according to the D2D signal strength, the network mode, and the signal-to-noise ratio respectively includes:

if the target access of the multiple accesses is a direct access base station, determining the product of the network mode and the signal-to-noise ratio as the access quality of the target access;

and if the target access is accessed to the base station through equipment, determining the product of the D2D signal strength, the network mode and the signal-to-noise ratio as the access quality of the target access.

Optionally, before storing the data into the sending queues corresponding to different priorities according to the priorities of the data, the method further includes:

carrying out priority classification on the data according to the importance degree of the data, and at least obtaining a first priority, a second priority and a third priority from high to low;

and setting a corresponding first sending queue for the first priority, setting a corresponding second sending queue for the second priority, and setting a corresponding third sending queue for the third priority.

Optionally, preferentially sending the data in the sending queue corresponding to the high priority according to the path quality of the plurality of paths includes:

if the data to be sent exists in the first sending queue, sending the data to be sent in the first sending queue through a first-stage channel with the highest channel quality;

and if data to be sent exists in the second sending queue and/or the third sending queue, sending the data to be sent in the second sending queue and/or the third sending queue through a path except the first-stage path in the plurality of paths.

Optionally, the sending the data to be sent in the second sending queue and/or a third sending queue through a path other than the first-stage path among the plurality of paths includes:

if the data to be sent exists in the second sending queue and the data to be sent does not exist in the third sending queue, sending the data to be sent in the second sending queue through a second-stage channel except the first-stage channel and a third-stage channel with the lowest channel quality in the plurality of channels;

if the data to be sent exists in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the second sending queue through the second-level path and sending the data to be sent in the third sending queue through the third-level path;

and if the data to be sent does not exist in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the third sending queue through the second-level channel and the third-level channel.

Optionally, the method further comprises:

setting a first monitoring thread for monitoring whether data to be sent exist or not for the first sending queue;

and setting a second monitoring thread for monitoring whether the data to be sent exists or not for the second sending queue and the third sending queue.

According to another embodiment of the present invention, there is also provided a data processing apparatus including:

the storage module is used for storing the data into the sending queues corresponding to different priorities according to the priorities of the data;

a determining module, configured to determine path qualities of multiple paths accessing the base station, respectively;

and the sending module is used for sending the data in the sending queue corresponding to the high priority preferentially according to the channel quality of the plurality of channels.

Optionally, the determining module includes:

the acquisition submodule is used for acquiring the D2D signal strength between equipment nodes, the network mode and the signal-to-noise ratio of the network;

a determining submodule, configured to determine path qualities of the multiple paths according to the D2D signal strength, the network mode, and the signal-to-noise ratio, respectively.

Optionally, the determining sub-module includes:

a first determining unit, configured to determine, if a target access of the multiple accesses is a direct access base station, a product of the network mode and the signal-to-noise ratio as access quality of the target access;

a second determining unit, configured to determine, if the target access is a base station accessed through a device, a product of the D2D signal strength, the network mode, and the signal-to-noise ratio as an access quality of the target access.

Optionally, before storing the data into the sending queues corresponding to different priorities according to the priorities of the data, the apparatus further includes:

the classification module is used for classifying the priority of the data according to the importance degree of the data to obtain at least a first priority, a second priority and a third priority of which the priority is from high to low;

and the first setting module is used for setting a corresponding first sending queue for the first priority, setting a corresponding second sending queue for the second priority and setting a corresponding third sending queue for the third priority.

Optionally, the sending module includes:

a first sending submodule, configured to send, if there is data to be sent in the first sending queue, the data to be sent in the first sending queue through a first-stage channel with the highest channel quality;

and the second sending submodule is used for sending the data to be sent in the second sending queue and/or the third sending queue through a path except the first-stage path in the plurality of paths if the data to be sent exists in the second sending queue and/or the third sending queue.

Optionally, the second sending submodule includes:

a first sending unit, configured to send the data to be sent in the second sending queue through a second-stage channel of the multiple channels except the first-stage channel and a third-stage channel with lowest channel quality if the data to be sent exists in the second sending queue and the data to be sent does not exist in the third sending queue;

a second sending unit, configured to send the data to be sent in the second sending queue through the second-level path and send the data to be sent in the third sending queue through the third-level path if the data to be sent exists in the second sending queue and the data to be sent exists in the third sending queue;

a third sending unit, configured to send the data to be sent in the third sending queue through the second-level path and the third-level path if the data to be sent does not exist in the second sending queue and the data to be sent exists in the third sending queue.

Optionally, the apparatus further comprises:

the second setting module is used for setting a first monitoring thread for monitoring whether data to be sent exist or not for the first sending queue;

and the third setting module is used for setting a second monitoring thread for monitoring whether the data to be sent exists for the second sending queue and the third sending queue.

According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.

According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.

According to the invention, the data are stored in the sending queues corresponding to different priorities according to the priorities of the data; respectively determining the path quality of a plurality of paths accessed to the base station; the method comprises the steps that data in a sending queue corresponding to a high priority level are sent preferentially according to the quality of the paths of a plurality of paths, the problem that in the related technology, a terminal accesses a base station through the paths, the number and the bandwidth of base station access terminals are limited, so that critical emergency or important data cannot be transmitted in time can be solved, the data with different priority levels are stored in sending queues of different levels, the paths with high quality of the paths are selected to send the data with the high priority level, the important data are sent preferentially, and the timely transmission of the important data is guaranteed.

Drawings

The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:

fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a data processing method of an embodiment of the present invention;

FIG. 2 is a flow diagram of a data processing method according to an embodiment of the invention;

FIG. 3 is a schematic diagram of a 5G network according to an embodiment of the present invention;

FIG. 4 is a schematic diagram of a 5G local area network according to an embodiment of the present invention;

FIG. 5 is a flow diagram of data storage according to an embodiment of the present invention;

fig. 6 is a block diagram of a data processing apparatus according to an embodiment of the present invention.

Detailed Description

The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.

Example 1

The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of a mobile terminal of a data processing method according to an embodiment of the present invention, and as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.

The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.

In this embodiment, a data processing method operating in the mobile terminal or the network architecture is provided, and fig. 2 is a flowchart of the data processing method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:

step S202, storing the data into sending queues corresponding to different priorities according to the priorities of the data;

fig. 3 is a schematic diagram of a 5G network according to an embodiment of the present invention, as shown in fig. 3, data in the embodiment of the present invention mainly aims at 5G data, a terminal may be connected to the 5G network through multiple paths, that is, the terminal may access to the 5G network through several 5G base stations together, specifically, priority may be divided according to the main degree of the data, that is, data with a greater importance degree is higher, and data with a lower importance degree is lower.

Step S204, respectively determining the path quality of a plurality of paths accessed to the base station;

step S206, the data in the sending queue corresponding to the high priority is sent preferentially according to the channel quality of the plurality of channels.

Through the steps S202 to S206, the data is stored in the sending queues corresponding to different priorities according to the priorities of the data; respectively determining the path quality of a plurality of paths accessed to the base station; the method comprises the steps that data in a sending queue corresponding to a high priority level are sent preferentially according to the quality of the paths of a plurality of paths, the problem that in the related technology, a terminal accesses a base station through the paths, the number and the bandwidth of base station access terminals are limited, so that critical emergency or important data cannot be transmitted in time can be solved, the data with different priority levels are stored in sending queues of different levels, the paths with high quality of the paths are selected to send the data with the high priority level, the important data are sent preferentially, and the timely transmission of the important data is guaranteed.

In an embodiment of the present invention, the step S204 may specifically include:

s2041, acquiring D2D (Data To Data) signal strength between equipment nodes, a network mode and a signal-To-noise ratio of a network;

s2042, determining the path quality of the multiple paths according to the D2D signal strength, the network mode, and the signal-to-noise ratio, respectively, and further, if a target path of the multiple paths is a direct access base station, determining the path quality of the target path as a product of the network mode and the signal-to-noise ratio; and if the target access is accessed to the base station through equipment, determining the product of the D2D signal strength, the network mode and the signal-to-noise ratio as the access quality of the target access.

In an optional embodiment, before storing the data into the sending queues corresponding to different priorities according to the priorities of the data, performing priority classification on the data according to the importance degree of the data to obtain at least a first priority, a second priority and a third priority from high to low; and setting a corresponding first sending queue for the first priority, setting a corresponding second sending queue for the second priority, and setting a corresponding third sending queue for the third priority.

In an embodiment of the present invention, the S206 may specifically include:

s2061, if the data to be sent exists in the first sending queue, sending the data to be sent in the first sending queue through a first-stage channel with the highest channel quality;

s2062, if there is data to be sent in the second sending queue and/or the third sending queue, sending the data to be sent in the second sending queue and/or the third sending queue through a path other than the first-stage path in the plurality of paths, and further, if there is data to be sent in the second sending queue and there is no data to be sent in the third sending queue, sending the data to be sent in the second sending queue through a second-stage path other than the first-stage path and a third-stage path with the lowest path quality in the plurality of paths; if the data to be sent exists in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the second sending queue through the second-level path and sending the data to be sent in the third sending queue through the third-level path; and if the data to be sent does not exist in the second sending queue and the data to be sent exists in the third sending queue, sending the data to be sent in the third sending queue through the second-level channel and the third-level channel.

In another optional embodiment, a first monitoring thread for monitoring whether there is data to be sent is set for the first sending queue, and a second monitoring thread for monitoring whether there is data to be sent is set for the second sending queue and the third sending queue.

And performing priority classification on data generated by the 5G terminal, for example, setting the data with the highest alarm class and the data with the highest I-frame type importance as the 1 st priority, and each terminal needs to transmit or forward the data with the highest priority when receiving the data with the type.

Other real-time video-like data frames such as B-frames, P-frames are set to a second priority. The last network cache class data is set as the third priority, is not urgent and has low requirements on real-time performance, and only needs to be completely sent out.

Fig. 4 is a schematic diagram of a 5G lan network according to an embodiment of the present invention, where various types of 5G terminals are constructed as the 5G lan network shown in fig. 4 by using a D2D technology.

And each 5G terminal sets a corresponding sending queue according to the defined priority type to store the monitoring data of each priority respectively. Fig. 5 is a flowchart of data storage according to an embodiment of the present invention, as shown in fig. 5, including:

step S501, function initialization of D2D is carried out, a local area network is built with surrounding equipment nodes, and a cellular network is initialized and connected to record;

step S502, calculating the path quality from the equipment to the recorded paths, and storing the path quality by taking an equipment ID as an index;

step S503, broadcasting the network fault description, the device ID and the signal SINR of the user through D2D;

step S504, judge whether there is D2D message, in the case of judging the result is yes, carry out step S505, otherwise return to step S502;

step S505, determining whether the D2D message is a broadcast type, if yes, executing step S506, otherwise executing step S508;

step S506, analyzing a network operating mode, a Signal to Interference plus Noise Ratio (SINR) and a D2D Signal strength of the device node corresponding to the D2D message, and calculating a path quality according to the network operating mode, the SINR and the D2D Signal strength;

step S507, updating the path quality by taking the equipment ID as an index;

step S508, analyzing the head of the unicast data frame, and confirming the data forwarding priority;

step S509, stores the forwarding data in the corresponding priority queue.

The routing module in each device will periodically update the quality of each current path based on the D2D signal strength between device nodes, the network mode (2G, 3G, 4G, 5G SA, 5G NSA) in which the device is located, and the signal-to-noise ratio SINR of the network in which the device is located, with 100 percent being the best.

Taking the device B as an example, the quality of each path of the device B is illustrated as follows: the device B has a total of 4 channels for the transmission channel, which are:

device B-base station A;

device B- > device C- > base station C;

device B- > device A- > base station D;

device B- > device D- > base station D.

The formula for calculating the path quality is:

the channel quality D2D signal strength (if there is a connection) and the current 5G module operating mode coefficient SINR (signal-to-noise ratio).

The 5G module working mode coefficients are summarized as follows:

NR-SA (5G Ad-hoc networking mode): 0.95;

NR-NSA (5G non-independent networking mode): 0.8;

LTE-FDD (Long Term Evolution-Frequency Division Duplexing): 0.65;

LTE-TDD(Time Division Duplexing):0.6;

and (3G) communication: 0.4;

telecommunication 3G: 0.35;

the rest of the 2G networks: 0.15.

for example, the device B currently connects to the 5G-SA network where the base station a is located, the SINR (signal to noise ratio) is 0.8, and since there is no D2D link in the connection with the base station a, the quality of the path is: the 0.95 × 0.8-0.76 via quality was very good.

Another path device B- > device C- > base station C, assuming that the signal strength of D2D between the device and the device C is 0.6, the 4G TDD network of the base station C to which the device C is connected, and the SINR is 0.9, the quality of the path is: 0.6 × 0.9 ═ 0.324, it is clear that the channel is not as good in transmission quality as the first pass.

The data sending module designs an independent monitoring thread for the first priority data, and once the first sending queue is detected to have data to be sent (which may be generated by itself or forwarded by other nodes), the data is taken out and sent from the optimal path until the sending is finished. And for the second priority sending queue and the third priority sending queue, one monitoring drive-by-wire is commonly used, the thread can preferentially ensure the sending of the data of the second priority queue, when the second priority queue is detected to have data to be sent, the data can be distributed to all secondary priority channels, and the channels with better channel quality send the data in parallel, so that the data can be sent out in real time to the maximum extent.

For non-urgent data with a third priority and no requirement on real-time performance, when detecting that the third priority queue has data to send, the monitoring thread 3 will determine whether the current second priority queue has data to send, and if not, will distribute the data to the third priority path and one third of the second priority path. If the second priority queue is currently sending heavily (the send queue is not free) then it is sent only over the third priority channel. Considering that the quality of the third priority path is poor, if the transmission fails, the third priority path is continuously put into a third priority queue to be transmitted to wait for the next transmission, wherein one third of the third priority path is an empirical value and can be in other proportions, and the third priority path is used for transmitting the third priority resource under the condition that the real-time performance of the second path is not influenced.

The local area network constructed based on 5G D2D determines the quality of a path based on the working mode of a 5G cellular module, the signal-to-noise ratio and the signal strength among D2D links, determines a data transmission path based on the path quality, realizes the efficient transmission of various classified data through channels with different priorities, and efficiently sends the data in parallel according to the priorities.

Example 2

According to another embodiment of the present invention, there is also provided a data processing apparatus, and fig. 6 is a block diagram of the data processing apparatus according to the embodiment of the present invention, as shown in fig. 6, including:

a storing module 62, configured to store the data into sending queues corresponding to different priorities according to priorities of the data;

a determining module 64, configured to determine path qualities of multiple paths accessing the base station, respectively;

a sending module 66, configured to send the data in the sending queue corresponding to the high priority preferentially according to the path quality of the multiple paths.

Optionally, the determining module 64 includes:

the acquisition submodule is used for acquiring the D2D signal strength between equipment nodes, the network mode and the signal-to-noise ratio of the network;

a determining submodule, configured to determine path qualities of the multiple paths according to the D2D signal strength, the network mode, and the signal-to-noise ratio, respectively.

Optionally, the determining sub-module includes:

a first determining unit, configured to determine, if a target access of the multiple accesses is a direct access base station, a product of the network mode and the signal-to-noise ratio as access quality of the target access;

a second determining unit, configured to determine, if the target access is a base station accessed through a device, a product of the D2D signal strength, the network mode, and the signal-to-noise ratio as an access quality of the target access.

Optionally, the apparatus further comprises:

the classification module is used for classifying the priority of the data according to the importance degree of the data to obtain at least a first priority, a second priority and a third priority of which the priority is from high to low;

and the first setting module is used for setting a corresponding first sending queue for the first priority, setting a corresponding second sending queue for the second priority and setting a corresponding third sending queue for the third priority.

Optionally, the sending module 66 includes:

a first sending submodule, configured to send, if there is data to be sent in the first sending queue, the data to be sent in the first sending queue through a first-stage channel with the highest channel quality;

and the second sending submodule is used for sending the data to be sent in the second sending queue and/or the third sending queue through a path except the first-stage path in the plurality of paths if the data to be sent exists in the second sending queue and/or the third sending queue.

Optionally, the second sending submodule includes:

a first sending unit, configured to send the data to be sent in the second sending queue through a second-stage channel of the multiple channels except the first-stage channel and a third-stage channel with lowest channel quality if the data to be sent exists in the second sending queue and the data to be sent does not exist in the third sending queue;

a second sending unit, configured to send the data to be sent in the second sending queue through the second-level path and send the data to be sent in the third sending queue through the third-level path if the data to be sent exists in the second sending queue and the data to be sent exists in the third sending queue;

a third sending unit, configured to send the data to be sent in the third sending queue through the second-level path and the third-level path if the data to be sent does not exist in the second sending queue and the data to be sent exists in the third sending queue.

Optionally, the apparatus further comprises:

the second setting module is used for setting a first monitoring thread for monitoring whether data to be sent exist or not for the first sending queue;

and the third setting module is used for setting a second monitoring thread for monitoring whether the data to be sent exists for the second sending queue and the third sending queue.

It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.

Example 3

Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.

Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:

s1, storing the data into sending queues corresponding to different priorities according to the priorities of the data;

s2, respectively determining the path quality of a plurality of paths accessed to the base station;

and S3, preferentially transmitting the data in the transmission queue corresponding to the high priority according to the path quality of the paths.

Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.

Example 4

Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.

Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.

Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:

s1, storing the data into sending queues corresponding to different priorities according to the priorities of the data;

s2, respectively determining the path quality of a plurality of paths accessed to the base station;

and S3, preferentially transmitting the data in the transmission queue corresponding to the high priority according to the path quality of the paths.

Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.

It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种被用于动态调度的用户设备、基站中的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!