A method, device, storage medium and base station for sending data stream
By judging the shunt strategy and calculating weighting factors in the 5G network to decide whether to send data streams to an evolved base station, the problem of excessive data streams in the 5G base station is solved and the efficiency of data stream transmission is improved.
Patent Information
- Application Number
- CN202011024036.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2040-09-25
AI Technical Summary
In the non-independent networking architecture of 5G network, data streams cannot be sent to an evolved base station (eNB), resulting in too much data streams in the 5G base station (gNB), reducing the efficiency of transmitting data streams.
By determining whether a shunt policy is stored, if not, the parameter values of the acquired multiple data streams are calculated to generate a weighting value and a weighting factor. If the weighting factor is less than or equal to the second set threshold, the data stream is sent to the first base station (eNB).
Determine whether to send the data stream to the first base station based on the shunt strategy or the calculated weighting factor, which improves the efficiency of transmitting the data stream.
Smart Images

Figure CN114339886B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, storage medium and base station for sending a data stream. [Background technology]
[0002] During the evolution of the fifth generation mobile communication technology (5G), the Non-Stand Alone (NSA) architecture is adopted. The architecture adopts the Option 3x mode, that is, all control plane signaling is forwarded via the evolved Node B (eNB) and connected to the packet core network (EPC) via the 5G base station. In the related technology, the 5G base station performs switch control of data stream transmission, or sends all data streams to the 5G base station (generation Node B, gNB). In the related technology, the data stream cannot be sent to the eNB, resulting in too much data stream transmitted in the gNB, reducing the efficiency of transmitting the data stream. [Summary of the invention]
[0003] In view of this, embodiments of the present invention provide a method, device, storage medium and base station for sending a data stream, so as to improve the efficiency of transmitting the data stream.
[0004] On the one hand, an embodiment of the present invention provides a method for sending a data stream, including:
[0005] Determine whether a diversion strategy is stored;
[0006] If it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data flows are calculated to generate a weighted value;
[0007] Calculating the weighted value to generate a weighted factor;
[0008] Determining whether the weighting factor is greater than a second set threshold;
[0009] If it is determined that the weighting factor is less than or equal to the second set threshold, the data stream is sent to the first base station.
[0010] Optionally, it also includes:
[0011] If it is determined that a diversion strategy is stored, the data stream is sent to the first base station.
[0012] Optionally, it also includes:
[0013] If it is determined that the weighting factor is greater than a second set threshold, the data stream is sent to a second base station.
[0014] Optionally, the determining whether a diversion strategy is stored includes:
[0015] Get the data stream sent by the terminal device;
[0016] Determining whether the data flow is greater than a first set threshold;
[0017] If it is determined that the data flow is greater than the first set threshold, the step of determining whether a diversion strategy is stored is continued.
[0018] Optionally, it also includes:
[0019] If it is determined that the data flow is less than or equal to the first set threshold, the data flow is sent to the second base station.
[0020] Optionally, calculating the parameter values corresponding to the acquired multiple data streams to generate weighted values includes:
[0021] Obtain parameter values corresponding to each of the data streams, the parameter values including the number of users, TCP confirmation success rate, TCP confirmation delay, wireless side loop RTT and video download rate; perform weighted calculation on multiple current numbers of users to generate a weighted value of the current number of users;
[0022] Perform weighted calculation on multiple current TCP confirmation success rates to generate a current success rate weighted value;
[0023] Perform weighted calculation on multiple current TCP confirmation delays to generate a current delay weighted value;
[0024] Perform weighted calculation on multiple current wireless side loop RTTs to generate a current wireless side loop RTT weighted value;
[0025] Performing weighted calculation on multiple current video download rates to generate a current video download rate weighted value;
[0026] Determine whether the ratio of the current weighted value of the number of users to the previous weighted value of the number of users is greater than zero;
[0027] If it is determined that the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, the success rate weighted value, the delay weighted value, the wireless side loop RTT weighted value and the video download rate weighted value are added to generate a weighted value.
[0028] Optionally, it also includes:
[0029] If it is determined that the ratio of the user number weighted value to the previous user number weighted value is less than or equal to zero, the success rate weighted value and the delay weighted value are multiplied to generate a product value, and the product value, the wireless side loop RTT weighted value and the video download rate weighted value are added to generate a weighted value.
[0030] On the other hand, an embodiment of the present invention provides a data stream sending device, including:
[0031] A first judgment module is used to judge whether a diversion strategy is stored. If it is judged that no diversion strategy is stored, the first generation module is triggered to calculate the parameter values corresponding to the obtained multiple data flows to generate a weighted value;
[0032] A second generating module, used for calculating the weighted value to generate a weighted factor;
[0033] The second judgment module is used to judge whether the weighting factor is greater than a second set threshold, and if it is judged that the weighting factor is less than or equal to the second set threshold, trigger the sending module to send the data stream to the first base station.
[0034] On the other hand, an embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned data stream sending method.
[0035] On the other hand, an embodiment of the present invention provides a base station, including a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, and is characterized in that the program instructions implement the steps of the above-mentioned data stream sending method when loaded and executed by the processor.
[0036] In the technical solution of the method for sending data streams provided by the embodiment of the present invention, it is determined whether a diversion strategy is stored; if it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data streams are calculated to generate a weighted value; the weighted value is calculated to generate a weighted factor; it is determined whether the weighted factor is greater than a second set threshold; if it is determined that the weighted factor is less than or equal to the second set threshold, the data stream is sent to the first base station. In the technical solution provided by the embodiment of the present invention, it is possible to determine whether to send the data stream to the first base station based on the diversion strategy or the calculated weighted factor, thereby improving the efficiency of transmitting the data stream.
Brief Description of the Drawings
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 A flowchart of a method for sending a data stream provided by an embodiment of the present invention;
[0039] Figure 2 A flowchart of another method for sending a data stream provided by an embodiment of the present invention;
[0040] Figure 3 for Figure 2 A flowchart for generating weighted values in ;
[0041] Figure 4 A schematic diagram of the structure of a data stream sending device provided by an embodiment of the present invention;
[0042] Figure 5 for Figure 4 A schematic diagram of the structure of the first generation module;
[0043] Figure 6 A schematic diagram of a base station provided in an embodiment of the present invention. [Specific implementation method]
[0044] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0045] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0047] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0048] The invention provides a method for sending a data stream. Figure 1 A flow chart of a method for sending a data stream provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0049] Step 102: Determine whether a diversion strategy is stored.
[0050] In this embodiment of the present invention, each step is performed by the gNB.
[0051] In an embodiment of the present invention, the diversion strategy can be set according to actual conditions, and the set diversion strategy can be stored in the Packet Data Convergence Protocol (PDCP) layer of the gNB.
[0052] Step 104: If it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data flows are calculated to generate a weighted value.
[0053] Step 106: Calculate the weighted value to generate a weighted factor.
[0054] Specifically, through the formula Calculate the weighted value to generate the weighted factor, where P k is the weighted value, K is the number of groups of parameter values. As an optional solution, the value of K is 7.
[0055] Step 108: Determine whether the weighting factor is greater than a second set threshold.
[0056] In an embodiment of the present invention, a second set threshold can be set according to actual conditions. If the weighting factor is greater than the second set threshold, it indicates that the data flow is large and needs to be processed by the second base station; if the weighting factor is less than or equal to the second set threshold, it indicates that the data flow can be processed by the first base station.
[0057] In an embodiment of the present invention, the first base station includes an eNB, and the second base station includes a gNB.
[0058] Step 110: If it is determined that the weighting factor is less than or equal to the second set threshold, the data stream is sent to the first base station.
[0059] In the embodiment of the present invention, after step 110, the following further includes: the first base station processes the data flow to reduce the burden of the second base station in processing the data flow.
[0060] In the technical solution provided by the embodiment of the present invention, it is determined whether a diversion strategy is stored; if it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data streams are calculated to generate a weighted value; the weighted value is calculated to generate a weighted factor; it is determined whether the weighted factor is greater than a second set threshold; if it is determined that the weighted factor is less than or equal to the second set threshold, the data stream is sent to the first base station. In the technical solution provided by the embodiment of the present invention, it is possible to determine whether to send the data stream to the first base station based on the diversion strategy or the calculated weighted factor, thereby improving the efficiency of transmitting the data stream.
[0061] The present invention provides another method for sending data stream. Figure 2 A flowchart of another method for sending a data stream provided by an embodiment of the present invention, such as Figure 2 As shown, the method includes:
[0062] Step 202: Acquire the data stream sent by the terminal device.
[0063] In this embodiment of the present invention, each step is performed by the gNB.
[0064] In an embodiment of the present invention, the terminal device includes a vehicle computer, a computer, a tablet computer, a mobile phone or a wearable device.
[0065] In the embodiment of the present invention, the data stream includes protocol messages and data packets. For example, the data stream includes tunnel protocol messages and data packets of video files.
[0066] Step 204 , determine whether the data flow is greater than a first set threshold, if so, execute step 206 ; if not, execute step 216 .
[0067] In an embodiment of the present invention, a first set threshold can be set according to actual conditions. If it is determined that the data flow is greater than the first set threshold, it indicates that the data flow is large and needs to be processed by the second base station; if it is determined that the data flow is less than or equal to the first set threshold, it indicates that the data flow can be processed by the first base station.
[0068] In an embodiment of the present invention, the first base station includes an eNB, and the second base station includes a gNB.
[0069] Step 206 , determine whether a diversion strategy is stored, if so, execute step 214 ; if not, execute step 208 .
[0070] In the embodiment of the present invention, please refer to step 102 for the detailed description of step 206 .
[0071] Step 208: Calculate the parameter values corresponding to the obtained multiple data streams to generate weighted values.
[0072] Figure 3 for Figure 2The flow chart for generating weighted values is as follows: Figure 3 As shown, step 208 specifically includes:
[0073] Step 2082: Obtain parameter values corresponding to each data stream, including the number of users, TCP confirmation success rate, TCP confirmation delay, wireless side loop RTT, and video download rate.
[0074] In the embodiment of the present invention, the number of users, the Transmission Control Protocol (TCP) confirmation success rate, the TCP confirmation delay and the wireless side round-trip time (RTT) are used to evaluate the resource allocation capability, wireless coverage and interference. The video download rate is used to evaluate the continuous resource allocation capability, user service characteristics and mobility.
[0075] Step 2084: Perform weighted calculation on multiple current numbers of users to generate a weighted value of the current number of users.
[0076] Specifically, multiple current user numbers are grouped into one group of user numbers, multiple previous user numbers are grouped into another group of user numbers, and multiple next user numbers are grouped into another group of user numbers, thereby forming multiple groups of user numbers, performing weighted calculation on each group of user numbers, and generating a user number weighted value corresponding to each group of user numbers.
[0077] Step 2086: Perform weighted calculation on multiple current TCP confirmation success rates to generate a current success rate weighted value.
[0078] Specifically, multiple current TCP confirmation success rates are combined into one group of TCP confirmation success rates, multiple previous TCP confirmation success rates are combined into another group of TCP confirmation success rates, and multiple next TCP confirmation success rates are combined into another group of TCP confirmation success rates, thereby forming multiple groups of TCP confirmation success rates, performing weighted calculation on each group of TCP confirmation success rates, and generating a success rate weighted value corresponding to each group of TCP confirmation success rates.
[0079] Step 2088: Perform weighted calculation on multiple current TCP confirmation delays to generate a current delay weighted value.
[0080] Specifically, multiple current TCP confirmation delays are grouped into one group of TCP confirmation delays, multiple previous TCP confirmation delays are grouped into another group of TCP confirmation delays, and multiple next TCP confirmation delays are grouped into another group of TCP confirmation delays, thereby forming multiple groups of TCP confirmation delays, performing weighted calculation on each group of TCP confirmation delays, and generating a delay weighted value corresponding to each group of TCP confirmation delays.
[0081] Step 2090: Perform weighted calculation on multiple current wireless side loop RTTs to generate a current wireless side loop RTT weighted value.
[0082] Specifically, multiple current wireless side loop RTTs are grouped into a group of wireless side loop RTTs, multiple previous wireless side loop RTTs are grouped into another group of wireless side loop RTTs, and multiple next wireless side loop RTTs are grouped into another group of wireless side loop RTTs, thereby forming multiple groups of wireless side loop RTTs, performing weighted calculation on each group of wireless side loop RTTs, and generating a wireless side loop RTT weighted value corresponding to each group of wireless side loop RTTs.
[0083] Step 2092: Perform weighted calculation on multiple current video download rates to generate a current video download rate weighted value.
[0084] Specifically, multiple current video download rates are combined into one group of video download rates, multiple previous video download rates are combined into another group of video download rates, and multiple next video download rates are combined into another group of video download rates, thereby forming multiple groups of video download rates, performing weighted calculation on each group of video download rates, and generating video download rate weighted values corresponding to each group of video download rates.
[0085] Step 2094, determine whether the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, if so, execute step 2096; if not, execute step 2098.
[0086] In the embodiment of the present invention, if it is determined that the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, it indicates that the current user number weighted value and the previous user number weighted value are both positive or negative; if it is determined that the ratio of the current user number weighted value to the previous user number weighted value is less than or equal to zero, it indicates that the current user number weighted value and the previous user number weighted value have different signs, or the current user number weighted value is zero, or the previous user number weighted value is zero.
[0087] Step 2096: Add the success rate weighted value, the delay weighted value, the wireless side loop RTT weighted value and the video download rate weighted value to generate a weighted value, and execute step 210.
[0088] In the embodiment of the present invention, specifically, by formula
[0089] The weighted value of success rate, the weighted value of delay, the weighted value of wireless side loop RTT and the weighted value of video download rate are calculated to generate a weighted value, where p k (tcp_conn_succrate) is the current success rate weighted value, pk-1 (tcp_conn_succrate) is the weighted value of the previous success rate, p k (tcp_conn_delay) is the current delay weighted value, p k-1 (tcp_conn_delay) is the previous delay weighted value, p k (dl_rtt) is the current wireless side loop RTT weighted value, p k-1 (dl_rtt) is the weighted value of the previous wireless side loop RTT, p k (video_downloadrate) is the weighted value of the current video download rate, p k-1 (video_downloadrate) is the weighted value of the previous video download rate, p k is the weighted value.
[0090] Step 2098: Multiply the success rate weighted value and the delay weighted value to generate a product value, and add the product value, the wireless side loop RTT weighted value and the video download rate weighted value to generate a weighted value.
[0091] In the embodiment of the present invention, specifically, by formula
[0092]
[0093] The weighted value of success rate, the weighted value of delay, the weighted value of wireless side loop RTT and the weighted value of video download rate are calculated to generate a weighted value, where p k (tcp_conn_succrate) is the current success rate weighted value, p k-1 (tcp_conn_succrate) is the weighted value of the previous success rate, p k (tcp_conn_delay) is the current delay weighted value, p k-1 (tcp_conn_delay) is the previous delay weighted value, p k (dl_rtt) is the current wireless side loop RTT weighted value, p k-1 (dl_rtt) is the weighted value of the previous wireless side loop RTT, p k (video_downloadrate) is the weighted value of the current video download rate, p k-1 (video_downloadrate) is the weighted value of the previous video download rate, p k is the weighted value.
[0094] Step 210: Calculate the weighted value to generate a weighted factor.
[0095] In the embodiment of the present invention, please refer to step 106 for the detailed description of step 210.
[0096] Step 212 , determine whether the weighting factor is greater than a second set threshold, if so, execute step 216 ; if not, execute step 214 .
[0097] In the embodiment of the present invention, please refer to step 108 for the detailed description of step 212.
[0098] Step 214: Send the data stream to the first base station.
[0099] In the embodiment of the present invention, after step 214, the following further includes: the first base station processes the data flow to reduce the burden of the second base station in processing the data flow.
[0100] Step 216: Send the data stream to the second base station.
[0101] In the embodiment of the present invention, after step 216, the second base station also includes processing the data stream.
[0102] In the technical solution provided by the embodiment of the present invention, it is determined whether a diversion strategy is stored; if it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data streams are calculated to generate a weighted value; the weighted value is calculated to generate a weighted factor; it is determined whether the weighted factor is greater than a second set threshold; if it is determined that the weighted factor is less than or equal to the second set threshold, the data stream is sent to the first base station. In the technical solution provided by the embodiment of the present invention, it is possible to determine whether to send the data stream to the first base station based on the diversion strategy or the calculated weighted factor, thereby improving the efficiency of transmitting the data stream.
[0103] In the technical solution provided by the embodiment of the present invention, while achieving the rationality of data flow diversion, the signaling interaction between the second base station and the anchor cell is reduced, the load of the first base station is diverted to the maximum extent and the accessibility of users of the second base station to the anchor cell of the first base station is guaranteed, while taking user perception into account.
[0104] In the technical solution provided by the embodiment of the present invention, a service perception model is embedded with massive data based on the Deep Packet Inspection (DPI) system to form a cell service perception portrait. The portrait result is the network data of the second base station itself, not the introduced third-party data, and with the continuous iteration and update of the model, it can accurately present the service perception distribution characteristics of the cell in the time dimension.
[0105] In the technical solution provided by the embodiment of the present invention, the matching of user behavior, resource characteristics and data flow of the cell of the first base station is fully considered.
[0106] An embodiment of the present invention provides a device for sending a data stream. Figure 4 A schematic diagram of a data stream sending device provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the device includes: a first judgment module 11, a first generation module 12, a second generation module 13, a second judgment module 14 and a sending module 15.
[0107] The first judging module 11 is used to judge whether a diversion strategy is stored. If it is judged that no diversion strategy is stored, the first generating module 12 is triggered to calculate the parameter values corresponding to the obtained multiple data flows to generate a weighted value.
[0108] The second generating module 13 is used to calculate the weighted value and generate a weighted factor.
[0109] The second judging module 14 is used to judge whether the weighting factor is greater than a second set threshold. If it is judged that the weighting factor is less than or equal to the second set threshold, the sending module 15 is triggered to send the data stream to the first base station.
[0110] In the embodiment of the present invention, the first determining module 11 is further configured to trigger the sending module 15 to send the data flow to the first base station if it is determined that a diversion strategy is stored.
[0111] In the embodiment of the present invention, the second judging module 14 is further configured to trigger the sending module 15 to send the data stream to the second base station if it is judged that the weighting factor is greater than a second set threshold.
[0112] In the embodiment of the present invention, the device further includes: an acquisition module 16 and a third determination module 17 .
[0113] The acquisition module 16 is used to acquire the data stream sent by the terminal device.
[0114] The third judgment module 17 is used to judge whether the data flow is greater than a first set threshold. If it is judged that the data flow is greater than the first set threshold, the first judgment module 11 is triggered to continue to execute the step of judging whether a diversion strategy is stored.
[0115] In the embodiment of the present invention, the third judgment module 17 is further configured to trigger the sending module 15 to send the data stream to the second base station if it is determined that the data stream is less than or equal to the first set threshold.
[0116] Figure 5 for Figure 4 The structural diagram of the first generation module 12 is as follows: Figure 5As shown, the first generation module 12 includes: an acquisition submodule 121, a first generation submodule 122, a second generation submodule 123, a third generation submodule 124, a fourth generation submodule 125, a fifth generation submodule 126, a judgment submodule 127, a sixth generation submodule 128 and a seventh generation submodule 129.
[0117] The acquisition submodule 121 is used to obtain parameter values corresponding to each data stream, and the parameter values include the number of users, TCP confirmation success rate, TCP confirmation delay, wireless side loop RTT and video download rate.
[0118] The first generating submodule 122 is used to perform weighted calculation on multiple current numbers of users to generate a weighted value of the current number of users.
[0119] The second generating submodule 123 is used to perform weighted calculation on multiple current TCP confirmation success rates to generate a current success rate weighted value.
[0120] The third generating submodule 124 is used to perform weighted calculation on multiple current TCP confirmation delays to generate a current delay weighted value.
[0121] The fourth generating submodule 125 is used to perform weighted calculation on multiple current wireless side loop RTTs to generate a current wireless side loop RTT weighted value.
[0122] The fifth generating submodule 126 is used to perform weighted calculation on multiple current video download rates to generate a current video download rate weighted value.
[0123] The judgment submodule 127 is used to judge whether the ratio of the current user number weighted value to the previous user number weighted value is greater than zero. If it is judged that the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, the sixth generation submodule 128 is triggered to add the success rate weighted value, the delay weighted value, the wireless side loop RTT weighted value and the video download rate weighted value to generate a weighted value. If it is judged that the ratio of the user number weighted value to the previous user number weighted value is less than or equal to zero, the seventh generation submodule 129 is triggered to multiply the success rate weighted value and the delay weighted value to generate a product value, and add the product value, the wireless side loop RTT weighted value and the video download rate weighted value to generate a weighted value.
[0124] In the technical solution provided by the embodiment of the present invention, it is determined whether a diversion strategy is stored; if it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data streams are calculated to generate a weighted value; the weighted value is calculated to generate a weighted factor; it is determined whether the weighted factor is greater than a second set threshold; if it is determined that the weighted factor is less than or equal to the second set threshold, the data stream is sent to the first base station. In the technical solution provided by the embodiment of the present invention, it is possible to determine whether to send the data stream to the first base station based on the diversion strategy or the calculated weighted factor, thereby improving the efficiency of transmitting the data stream.
[0125] The data stream sending device provided in this embodiment can be used to implement the above Figure 1 and Figure 2 For the method of sending the data stream in the embodiment, the specific description can be found in the above-mentioned embodiment of the method of sending the data stream, and will not be repeated here.
[0126] An embodiment of the present invention provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the steps of the embodiment of the above-mentioned data stream sending method. For a specific description, please refer to the embodiment of the above-mentioned data stream sending method.
[0127] An embodiment of the present invention provides a base station, including a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions are loaded and executed by the processor to implement the steps of the embodiment of the above-mentioned data stream sending method. For a specific description, please refer to the embodiment of the above-mentioned data stream sending method.
[0128] Figure 6 A schematic diagram of a base station provided in an embodiment of the present invention. Figure 6 As shown, the base station 20 of this embodiment includes: a processor 21, a memory 22, and a computer program 23 stored in the memory 22 and executable on the processor 21. When the computer program 23 is executed by the processor 21, the sending method applied to the data stream in the embodiment is implemented. To avoid repetition, it is not described one by one here. Alternatively, when the computer program is executed by the processor 21, the functions of each model / unit in the sending device applied to the data stream in the embodiment are implemented. To avoid repetition, it is not described one by one here.
[0129] The base station 20 includes, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that Figure 6 It is only an example of the base station 20 and does not constitute a limitation of the base station 20. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the base station may also include input and output devices, network access devices, buses, etc.
[0130] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0131] The memory 22 may be an internal storage unit of the base station 20, such as a hard disk or memory of the base station 20. The memory 22 may also be an external storage device of the base station 20, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the base station 20. Further, the memory 22 may also include both an internal storage unit of the base station 20 and an external storage device. The memory 22 is used to store computer programs and other programs and data required by the base station. The memory 22 may also be used to temporarily store data that has been output or is to be output.
[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0133] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0136] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for sending a data stream, characterized in that: Applied to a gNB, the method includes: Determine whether a diversion strategy is stored; If it is determined that no diversion strategy is stored, the parameter values corresponding to the obtained multiple data flows are calculated to generate a weighted value; Calculating the weighted value to generate a weighted factor; Determining whether the weighting factor is greater than a second set threshold; If it is determined that the weighting factor is less than or equal to a second set threshold, sending the data stream to a first base station, where the first base station is an eNB; The step of calculating the parameter values corresponding to the acquired multiple data streams to generate weighted values includes: Obtain parameter values corresponding to each of the data flows, the parameter values including the number of users, TCP confirmation success rate, TCP confirmation delay, wireless side loop RTT and video download rate; Perform weighted calculation on multiple current numbers of users to generate a weighted value of the current number of users; Perform weighted calculation on multiple current TCP confirmation success rates to generate a current success rate weighted value; Perform weighted calculation on multiple current TCP confirmation delays to generate a current delay weighted value; Perform weighted calculation on multiple current wireless side loop RTTs to generate a current wireless side loop RTT weighted value; Performing weighted calculation on multiple current video download rates to generate a current video download rate weighted value; Determine whether the ratio of the current weighted value of the number of users to the previous weighted value of the number of users is greater than zero; If it is determined that the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, the success rate weighted value, the delay weighted value, the wireless side loop RTT weighted value and the video download rate weighted value are added together to generate a weighted value; If it is determined that a diversion strategy is stored, sending the data stream to the first base station; If it is determined that the weighting factor is greater than the second set threshold, the data stream is sent to a second base station, which is a gNB.
2. The method according to claim 1, characterized in that The step of determining whether a diversion strategy is stored includes: Get the data stream sent by the terminal device; Determining whether the data flow is greater than a first set threshold; If it is determined that the data flow is greater than the first set threshold, the step of determining whether a diversion strategy is stored is continued.
3. The method according to claim 2, characterized in that Also includes: If it is determined that the data stream is less than or equal to the first set threshold, the data stream is sent to a second base station, which is a gNB.
4. The method according to claim 1, characterized in that: Also includes: If it is determined that the ratio of the current user number weighted value to the previous user number weighted value is less than or equal to zero, the success rate weighted value and the delay weighted value are multiplied to generate a product value, and the product value, the wireless side loop RTT weighted value and the video download rate weighted value are added to generate a weighted value.
5. A data stream sending device, characterized in that: include: A first judgment module is used to judge whether a diversion strategy is stored. If it is judged that no diversion strategy is stored, the first generation module is triggered to calculate the parameter values corresponding to the obtained multiple data flows to generate a weighted value; A second generating module, used to calculate the weighted value to generate a weighted factor; A second judgment module, used to judge whether the weighting factor is greater than a second set threshold, and if it is judged that the weighting factor is less than or equal to the second set threshold, trigger the sending module to send the data stream to the first base station; The first determination module is further configured to trigger the sending module to send the data flow to the first base station if it is determined that a diversion strategy is stored, and the first base station is an eNB; The second determination module is further configured to trigger the sending module to send the data stream to the second base station if it is determined that the weighting factor is greater than a second set threshold, where the second base station is a gNB; The first generation module includes: an acquisition submodule, a first generation submodule, a second generation submodule, a third generation submodule, a fourth generation submodule, a fifth generation submodule, a judgment submodule and a sixth generation submodule; The acquisition submodule is used to obtain parameter values corresponding to each data stream, the parameter values including the number of users, TCP confirmation success rate, TCP confirmation delay, wireless side loop RTT and video download rate; The first generating submodule is used to perform weighted calculation on multiple current numbers of users to generate a weighted value of the current number of users; The second generating submodule is used to perform weighted calculation on multiple current TCP confirmation success rates to generate a current success rate weighted value; The third generating submodule is used to perform weighted calculation on multiple current TCP confirmation delays to generate a current delay weighted value; The fourth generating submodule is used to perform weighted calculation on multiple current wireless side loop RTTs to generate a current wireless side loop RTT weighted value; The fifth generating submodule is used to perform weighted calculation on multiple current video download rates to generate a current video download rate weighted value; The judgment submodule is used to judge whether the ratio of the current user number weighted value to the previous user number weighted value is greater than zero. If it is judged that the ratio of the current user number weighted value to the previous user number weighted value is greater than zero, the sixth generation submodule is triggered to add the success rate weighted value, the delay weighted value, the wireless side loop RTT weighted value and the video download rate weighted value to generate a weighted value.
6. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method for sending a data stream according to any one of claims 1 to 4.
7. A base station, comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the steps of the method for sending a data stream as described in any one of claims 1 to 4 are implemented, wherein the base station includes a gNB.
Citation Information
Patent Citations
Data transmission method and related devices
CN109587719A
Data transmission method and device
CN110708721A