Bandwidth allocation method and device based on flow prediction, terminal and medium
By predicting the sensor traffic status and establishing a bandwidth optimization model through the hidden Markov model, it solves the problem of unreasonable bandwidth allocation in industrial real-time systems, achieves more accurate resource allocation, and is suitable for different application scenarios.
Patent Information
- Application Number
- CN202410997992.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology's bandwidth allocation in industrial real-time systems is not reasonable enough and fails to effectively consider the specific traffic status of the sensor, resulting in resource allocation that is not optimized.
The hidden Markov model is used to predict the sensor's traffic status, establish a bandwidth optimization model, reserve dedicated bandwidth for high traffic status and orthogonal sub-channel resource pool for low traffic status, and perform bandwidth allocation.
It achieves more reasonable and accurate bandwidth allocation, is suitable for different application scenarios, and improves the applicability and resource utilization efficiency of the system.
Smart Images

Figure CN118740641A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sensor communication, and in particular to a bandwidth allocation method, device, terminal equipment and computer-readable storage medium based on traffic prediction. Background Art
[0002] For the mMTC (massive machine type communication) scenario, the industrial real-time system is the key technology to support the large-scale sensor network, and ensuring the freshness and reliability of information is the key to the industrial real-time system. In industrial scenarios, the data flow of sensors is highly bursty, and different sensor devices have different state information. Therefore, even for the same sensor, its data packet flow at different times may be different. Therefore, how to reasonably allocate bandwidth is an important part of the industrial real-time system.
[0003] The current bandwidth allocation method is mainly an optimization method to minimize the maximum transmission power. Under the constraints of QoS, this method minimizes the transmission power by optimizing the packet loss strategy, power allocation strategy, etc., so as to ensure the reliability and low latency of the wireless access network. However, this method does not take into account the specific traffic status, so there is a problem of unreasonable bandwidth allocation. Summary of the invention
[0004] The present invention application provides a bandwidth allocation method, device, terminal equipment and computer-readable storage medium based on traffic prediction to solve the technical problem that bandwidth allocation in the prior art is not reasonable enough.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a bandwidth allocation method based on traffic prediction, comprising:
[0006] Determining the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window;
[0007] According to the flow state of each sensor, the predicted flow state of the target time window is obtained through the hidden Markov model; wherein the prediction results include a high flow state and a low flow state;
[0008] According to the predicted traffic state, a bandwidth optimization model is established; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing a plurality of orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing by the sensors in the low traffic state;
[0009] The bandwidth optimization model is solved, and bandwidth is allocated to each sensor in the sensor system according to the solution result.
[0010] As a preferred solution, the bandwidth optimization model includes:
[0011]
[0012] st0≤B L , B H ≤W c ,;
[0013] 1≤M≤N L ,M∈Z,;
[0014]
[0015] P loss ≤ε u ;
[0016] Among them, N H is the number of sensors in high flow state, N L is the number of sensors in low-flow state, M is the number of orthogonal subchannels, B L is the bandwidth of each orthogonal subchannel, B H For each dedicated channel bandwidth, W c is the coherence bandwidth, Z represents M taking an integer, PAoI H is the peak information age of the high-flow state sensor, PAoI L is the peak information age of the sensor in the low flow state, represents the upper bound of the average PAoI of sensors in high flow conditions, represents the upper bound of the average PAoI of the sensor in the low flow state, ε u is the upper bound of the packet error rate, P loss is the packet error probability of each low-flow state sensor, is the decoding error probability of the sensor in the low flow state.
[0017] As a preferred solution, the data packet error probability of each low flow state sensor is specifically:
[0018]
[0019] Among them, P c is the collision probability.
[0020] As a preferred solution, the peak information age of the low flow state sensor is specifically:
[0021]
[0022] Among them, λ L is the average packet arrival rate in the low traffic state, μ is the average service rate of the server, and K is the number of transmissions of diversity transmission.
[0023] As a preferred solution, the peak information age of the high flow state sensor is specifically:
[0024]
[0025] in, is the decoding error probability under Rayleigh channel, μ is the average service rate of the server, ρ H is the server utilization, λ H is the average packet arrival rate in high traffic state.
[0026] As a preferred solution, the method of determining the historical flow status of each sensor in the sensor system according to the number of data packets arriving in the sample time window includes:
[0027] The packet arrival process is modeled as a switching Poisson process;
[0028] Under the predefined constraints of false alarm probability, missing detection probability and successful detection probability, the arrival process of the data packet maximizes the successful detection probability under the constraint of the false alarm probability;
[0029] Obtaining a flow threshold that satisfies the constraint condition through a Poisson distribution cumulative distribution function;
[0030] According to the number of data packets arriving in the sample time window and the flow threshold, it is determined whether each sensor in the sensor system is in a high flow state or a low flow state.
[0031] As a preferred solution, the method of obtaining the predicted flow state of the target time window through a hidden Markov model according to the flow state of each sensor includes:
[0032] Establishing the hidden Markov model;
[0033] Through the hidden Markov model, based on the flow state of each sensor in the sample time window, the transition probability matrix of the hidden state and the observation probability matrix from the hidden state to the visible state are obtained, and then the probability of whether the flow state of the sensor changes in the prediction window is obtained, and then the predicted flow state of the target time window is obtained.
[0034] Accordingly, the present invention also provides a bandwidth allocation device based on traffic prediction, including a state determination module, a prediction module, a model building module and an allocation module; wherein:
[0035] The state determination module is used to determine the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window;
[0036] The prediction module is used to obtain the predicted flow state of the target time window through the hidden Markov model according to the flow state of each sensor; wherein the prediction result includes a high flow state and a low flow state;
[0037] The model building module is used to build a bandwidth optimization model according to the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing a plurality of orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing of the sensors in the low traffic state;
[0038] The allocation module is used to solve the bandwidth optimization model and allocate bandwidth to each sensor in the sensor system according to the solution result.
[0039] As a preferred solution, the bandwidth optimization model includes:
[0040]
[0041] st0≤B L , B H ≤W c ,;
[0042] 1≤M≤N L ,M∈Z,;
[0043]
[0044] P loss ≤ε u ;
[0045] Among them, N H is the number of sensors in high flow state, N L is the number of sensors in low-flow state, M is the number of orthogonal subchannels, B L is the bandwidth of each orthogonal subchannel, B H For each dedicated channel bandwidth, W c is the coherence bandwidth, Z represents M taking an integer, PAoI H is the peak information age of the high-flow state sensor, PAoI L is the peak information age of the sensor in the low flow state, represents the upper bound of the average PAoI of sensors in high flow conditions, represents the upper bound of the average PAoI of the sensor in the low flow state, ε u is the upper bound of the packet error rate, P loss is the packet error probability of each low-flow state sensor, is the decoding error probability of the sensor in the low flow state.
[0046] As a preferred solution, the data packet error probability of each low flow state sensor is specifically:
[0047]
[0048] Among them, P c is the collision probability.
[0049] As a preferred solution, the peak information age of the low flow state sensor is specifically:
[0050]
[0051] Among them, λ L is the average packet arrival rate in the low traffic state, μ is the average service rate of the server, and K is the number of transmissions of diversity transmission.
[0052] As a preferred solution, the peak information age of the high flow state sensor is specifically:
[0053]
[0054] in, is the decoding error probability under Rayleigh channel, μ is the average service rate of the server, ρ H is the server utilization, λ H is the average packet arrival rate in high traffic state.
[0055] As a preferred solution, the state determination module determines the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window, including:
[0056] The state determination module models the arrival process of the data packet as a switching Poisson process;
[0057] Under the predefined constraints of false alarm probability, missing detection probability and successful detection probability, the arrival process of the data packet maximizes the successful detection probability under the constraint of the false alarm probability;
[0058] Obtaining a flow threshold that satisfies the constraint condition through a Poisson distribution cumulative distribution function;
[0059] According to the number of data packets arriving in the sample time window and the flow threshold, it is determined whether each sensor in the sensor system is in a high flow state or a low flow state.
[0060] As a preferred solution, the prediction module obtains the predicted flow state of the target time window through a hidden Markov model according to the flow state of each sensor, including:
[0061] The prediction module establishes the hidden Markov model;
[0062] Through the hidden Markov model, based on the flow state of each sensor in the sample time window, the transition probability matrix of the hidden state and the observation probability matrix from the hidden state to the visible state are obtained, and then the probability of whether the flow state of the sensor changes in the prediction window is obtained, and then the predicted flow state of the target time window is obtained.
[0063] Correspondingly, the present invention application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the bandwidth allocation method based on traffic prediction when executing the computer program.
[0064] Correspondingly, the present invention application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the bandwidth allocation method based on traffic prediction.
[0065] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0066] The present invention provides a bandwidth allocation method, device, terminal device and computer-readable storage medium based on traffic prediction, wherein the bandwidth allocation method comprises: determining the historical traffic state of each sensor in the sensor system according to the number of data packets arriving in the sample time window; obtaining the predicted traffic state of the target time window through a hidden Markov model according to the traffic state of each sensor; wherein the prediction result includes a high traffic state and a low traffic state; establishing a bandwidth optimization model according to the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing several orthogonal subchannels for the sensor in the low traffic state, and the resource pool is used for sharing by the sensors in the low traffic state; solving the bandwidth optimization model, and allocating bandwidth for each sensor in the sensor system according to the solution result. In an embodiment of the present application, the historical traffic state of the sensor is determined by the number of data packets arriving in the sample time window, thereby predicting the traffic state of the target time window, and then realizing bandwidth allocation based on the prediction result, taking into account the dynamic change of the user traffic state between the sample window and the prediction window, so that the bandwidth allocation is more reasonable and more accurate, and the applicability for different application scenarios is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 : A flow chart of an embodiment of a bandwidth allocation method based on traffic prediction provided by the present invention.
[0068] Figure 2 : A schematic diagram of the principles of an embodiment of the time window division method provided by the present invention.
[0069] Figure 3 : A schematic diagram of the principle of an embodiment of the hidden Markov model provided by the present invention.
[0070] Figure 4 : A structural diagram of an embodiment of a bandwidth allocation device based on traffic prediction provided by the present invention. DETAILED DESCRIPTION
[0071] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the 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.
[0072] Embodiment 1
[0073] Please refer to Figure 1 , Figure 1 A bandwidth allocation method based on traffic prediction provided by an embodiment of the present invention includes steps S1 to S4; wherein:
[0074] Step S1, determining the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window.
[0075] In this embodiment, for a sample time window (the sample window shown in the figure), the time in the window can be discretized into multiple time slots, such as Figure 2 As shown, the duration of each time slot is T s Similarly, for the target time window (the prediction window shown in the figure), the time in the window can also be discretized into several time windows with a duration of T s Thus, for a sample time window, it can be defined as the past T m Time slot, the number of data packets arriving in the past sample time window is recorded as a sample, represented by l. The BS (base station) can classify the traffic state of each sensor according to the number of data packets arriving in the past sample time window, and divide the sensor into two states: high traffic and low traffic.
[0076] In order to capture the burstiness and autocorrelation of different sensor traffic, the arrival process of the data packet can be modeled as a switching Poisson process. Specifically, step S1 can be preferably:
[0077] Under the predefined constraints of false alarm probability, missing detection probability and successful detection probability, the arrival process of the data packet is made to maximize the successful detection probability under the constraint of the false alarm probability; the flow threshold satisfying the constraint condition is obtained through the cumulative distribution function of Poisson distribution; and according to the number of data packets arriving in the sample time window and the flow threshold, each sensor in the sensor system is respectively determined to be in a high flow state or a low flow state.
[0078] In this embodiment, in each state of the switch Poisson process (SPP), including the high traffic state and the low traffic state, the packet arrival process is a Poisson process. Assume that the average packet arrival rates of the high and low traffic states are λ H and λ L , that is, the flow state of each sensor switches back and forth between high and low flow states, and the duration of each flow state is unknown.
[0079] This embodiment can classify the flow state using, but not limited to, the Neyman-Pearson (NP) method, that is, by determining a flow threshold, classify the sensor or user into a high flow state or a low flow state. Assume that H0 and H1 represent that the samples are from high flow users and low flow users, respectively, and D0 and D1 are binary decisions that classify users into high flow and low flow states, respectively.
[0080] Then, define the false alarm probability P FA P FA =P(D1|H0), that is, high-traffic users are classified as low-traffic users. Similarly, the missing detection probability P S and the probability of successful detection P D They are defined as P S =P(D0|H1) and P D =P(D1|H1). The idea of the NP method is to maximize the probability of successful detection under the constraint of the false alarm probability. At this time, in order to ensure reliability and timeliness, constraints can be set.
[0081] Furthermore, under the above constraints, the threshold At this time, the false alarm probability can be rewritten as When H0 is true, l obeys the parameter λ H T m T s Poisson distribution. From the cumulative distribution function (CDF) of the Poisson distribution, we can find the distribution that satisfies P FA ≤ε f Maximum flow threshold of the condition when When we get , the probability of missing detection and successful detection can be rewritten as and when When the sensor is in low flow state, the sensor is classified as high flow state.
[0082] Step S2, according to the flow state of each sensor, obtain the predicted flow state of the target time window through the hidden Markov model; wherein the prediction result includes a high flow state and a low flow state.
[0083] In this embodiment, in order to obtain the flow state of the sensor in the target time window (future prediction window), the embodiment of the present application adopts a flow prediction method based on Hidden Markov Model (HMM) according to the flow characteristics of each sensor in all historical windows. The display state of HMM is determined as the duration of the sensor in each flow state, and the hidden state is the flow state of the sensor during this period. The hidden Markov process is as follows: Figure 3 shown.
[0084] The method of obtaining the predicted flow state of the target time window through a hidden Markov model based on the flow state of each sensor includes: establishing the hidden Markov model; obtaining a transition probability matrix of the hidden state and an observation probability matrix from the hidden state to the visible state based on the flow state of each sensor in the sample time window through the hidden Markov model, and then obtaining the probability of whether the flow state of the sensor changes in the prediction window, and then obtaining the predicted flow state of the target time window.
[0085] Step S3, establishing a bandwidth optimization model based on the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing several orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing by the sensors in the low traffic state.
[0086] In this embodiment, to ensure QoS requirements, dedicated bandwidth is reserved for each sensor under high traffic conditions, taking into account the queuing delay and transmission delay of short packet transmission, as well as the decoding error probability at the receiving end.
[0087] For each sensor in a high traffic state, there is no situation where data packets of other sensors compete for the dedicated channel of the sensor, and the transmission delay of a short packet can be approximated to the packet length of the data packet.
[0088] Since the data packet arrival is subject to the parameter λ HPoisson distribution exists, queuing delay and decoding error, so the data packet transmission process of the high-traffic state sensor can be modeled as a cache, adopting the non-preemptive FCFS (first come first served) rule and the single-source M / D / 1 model, and the data packet is directly discarded without retransmission after an error.
[0089] Therefore, the average peak information age (PAoI) of a high-flow state sensor is H It can be expressed as:
[0090]
[0091] in, is the decoding error probability under Rayleigh channel, μ is the average service rate of the server, ρ H is the server utilization, λ H is the average packet arrival rate in high traffic state.
[0092] As for sensors in a low-flow state, if dedicated bandwidth is reserved for the sensors in a low-flow state, resource utilization will be relatively low.
[0093] To this end, this embodiment reserves a resource pool with M orthogonal sub-channels, which are composed of N orthogonal sub-channels in a low-flow state. L In addition, a synchronized multi-channel slotted ALOHA protocol is adopted, and each sensor’s data packet randomly selects a subchannel to transmit its message without scheduling.
[0094] A transmission collision occurs when two or more packets attempt to access the same subchannel in the same time slot. When a collision occurs, the packets cannot be successfully decoded.
[0095] In order to reduce the probability of collision and improve reliability, this embodiment adopts a diversity transmission solution, that is, when no ACK (acknowledgement character) is received, multiple copies of each data packet are sent, and different repetitions of each data packet occupy different sub-channels.
[0096] Therefore, the packet error probability P of each sensor in the low-flow state is loss It consists of two parts: decoding error probability and collision probability P c ,in Average peak information age (PAoI) per low flow sensor L It can be expressed as:
[0097]
[0098] Among them, λ L is the average packet arrival rate in the low traffic state, μ is the average service rate of the server, and K is the number of transmissions of diversity transmission.
[0099] Therefore, according to the above-obtained average peak information age of the low flow sensor and the average peak information age of the high flow sensor, combined with the predicted flow state, a bandwidth optimization model is established through a TPBA algorithm. The bandwidth optimization model includes:
[0100]
[0101] st0≤B L , B H ≤W c ,;
[0102] 1≤M≤N L ,M∈Z,;
[0103]
[0104]
[0105] P loss ≤ε u ;
[0106] Among them, N H is the number of sensors in high flow state, N L is the number of sensors in low-flow state, M is the number of orthogonal subchannels, B L is the bandwidth of each orthogonal subchannel, B H For each dedicated channel bandwidth, W c is the coherence bandwidth, Z is an integer set or M is an integer, PAoI H is the peak information age of the high-flow state sensor, PAoI L is the peak information age of the sensor in the low flow state, represents the upper bound of the average PAoI of sensors in high flow conditions, represents the upper bound of the average PAoI of the sensor in the low flow state, ε u is the upper bound of the packet error rate, P loss is the packet error probability of each low-flow state sensor, is the decoding error probability of the sensor in the low flow state.
[0107] Step S4, solving the bandwidth optimization model, and allocating bandwidth to each sensor in the sensor system according to the solution result.
[0108] The solution of this embodiment considers two situations where traffic prediction is wrong, that is, a high traffic sensor is wrongly predicted as a low traffic state and a low traffic sensor is wrongly predicted as a high traffic state. Bandwidth can be allocated according to the impact of the two errors on QoS.
[0109] Accordingly, refer to Figure 4 The present invention also provides a bandwidth allocation device based on traffic prediction, including a state determination module 101, a prediction module 102, a model building module 103 and an allocation module 104; wherein,
[0110] The state determination module 101 is used to determine the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window;
[0111] The prediction module 102 is used to obtain the predicted flow state of the target time window through the hidden Markov model according to the flow state of each sensor; wherein the prediction result includes a high flow state and a low flow state;
[0112] The model building module 103 is used to build a bandwidth optimization model according to the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing a plurality of orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing of the sensors in the low traffic state;
[0113] The allocation module 104 is used to solve the bandwidth optimization model and allocate bandwidth to each sensor in the sensor system according to the solution result.
[0114] As a preferred solution, the bandwidth optimization model includes:
[0115]
[0116] st0≤B L , B H ≤W c ,;
[0117] 1≤M≤N L ,M∈Z,;
[0118]
[0119] P loss ≤ε u ;
[0120] Among them, N H is the number of sensors in high flow state, N L is the number of sensors in low-flow state, M is the number of orthogonal subchannels, B L is the bandwidth of each orthogonal subchannel, B H For each dedicated channel bandwidth, W c is the coherence bandwidth, Z represents M taking an integer, PAoI His the peak information age of the high-flow state sensor, PAoI L is the peak information age of the sensor in the low flow state, represents the upper bound of the average PAoI of sensors in high flow conditions, represents the upper bound of the average PAoI of the sensor in the low flow state, ε u is the upper bound of the packet error rate, P loss is the packet error probability of each low-flow state sensor, is the decoding error probability of the sensor in the low flow state.
[0121] As a preferred solution, the data packet error probability of each low flow state sensor is specifically:
[0122]
[0123] Among them, P c is the collision probability.
[0124] As a preferred solution, the peak information age of the low flow state sensor is specifically:
[0125]
[0126] Among them, λ L is the average packet arrival rate in the low traffic state, μ is the average service rate of the server, and K is the number of transmissions of diversity transmission.
[0127] As a preferred solution, the peak information age of the high flow state sensor is specifically:
[0128]
[0129] in, is the decoding error probability under Rayleigh channel, μ is the average service rate of the server, ρ H is the server utilization, λ H is the average packet arrival rate in high traffic state.
[0130] As a preferred solution, the state determination module 101 determines the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window, including:
[0131] The state determination module models the arrival process of the data packet as a switching Poisson process;
[0132] Under the predefined constraints of false alarm probability, missing detection probability and successful detection probability, the arrival process of the data packet maximizes the successful detection probability under the constraint of the false alarm probability;
[0133] Obtaining a flow threshold that satisfies the constraint condition through a Poisson distribution cumulative distribution function;
[0134] According to the number of data packets arriving in the sample time window and the flow threshold, it is determined whether each sensor in the sensor system is in a high flow state or a low flow state.
[0135] As a preferred solution, the prediction module 102 obtains the predicted flow state of the target time window through a hidden Markov model according to the flow state of each sensor, including:
[0136] The prediction module establishes the hidden Markov model;
[0137] Through the hidden Markov model, based on the flow state of each sensor in the sample time window, the transition probability matrix of the hidden state and the observation probability matrix from the hidden state to the visible state are obtained, and then the probability of whether the flow state of the sensor changes in the prediction window is obtained, and then the predicted flow state of the target time window is obtained.
[0138] Correspondingly, the present invention application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the bandwidth allocation method based on traffic prediction when executing the computer program.
[0139] The processor may be a central processing unit (CPU), 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. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal, and various interfaces and lines are used to connect various parts of the entire terminal.
[0140] The memory can be used to store the computer program, and the processor realizes various functions of the terminal by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0141] Correspondingly, the present invention application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the bandwidth allocation method based on traffic prediction.
[0142] Wherein, if the module integrated in the bandwidth allocation device based on traffic prediction is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0143] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0144] The present invention provides a bandwidth allocation method, device, terminal device and computer-readable storage medium based on traffic prediction, wherein the bandwidth allocation method comprises: determining the historical traffic state of each sensor in the sensor system according to the number of data packets arriving in the sample time window; obtaining the predicted traffic state of the target time window through a hidden Markov model according to the traffic state of each sensor; wherein the prediction result includes a high traffic state and a low traffic state; establishing a bandwidth optimization model according to the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing several orthogonal subchannels for the sensor in the low traffic state, and the resource pool is used for sharing by the sensors in the low traffic state; solving the bandwidth optimization model, and allocating bandwidth for each sensor in the sensor system according to the solution result. In an embodiment of the present application, the historical traffic state of the sensor is determined by the number of data packets arriving in the sample time window, thereby predicting the traffic state of the target time window, and then realizing bandwidth allocation based on the prediction result, taking into account the dynamic change of the user traffic state between the sample window and the prediction window, so that the bandwidth allocation is more reasonable and more accurate, and the applicability for different application scenarios is improved.
[0145] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A bandwidth allocation method based on traffic prediction, characterized in that: include: According to the number of data packets arriving in the sample time window, the historical traffic state of each sensor in the sensor system is determined respectively; According to the flow state of each sensor, the predicted flow state of the target time window is obtained through the hidden Markov model; wherein the prediction results include a high flow state and a low flow state; According to the predicted traffic state, a bandwidth optimization model is established; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing a plurality of orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing by the sensors in the low traffic state; The bandwidth optimization model is solved, and bandwidth is allocated to each sensor in the sensor system according to the solution result.
2. A bandwidth allocation method based on traffic prediction as claimed in claim 1, characterized in that: The bandwidth optimization model includes: s.t.0≤B L ,B H ≤W c ,; 1≤M≤N L ,M∈Z,; P loss ≤ε u ; Among them, N H is the number of sensors in high flow state, N L is the number of sensors in low-flow state, M is the number of orthogonal subchannels, B L is the bandwidth of each orthogonal subchannel, B H For each dedicated channel bandwidth, W c is the coherence bandwidth, Z represents M taking an integer, PAoI H is the peak information age of the high-flow state sensor, PAoI L is the peak information age of the sensor in the low flow state, represents the upper bound of the average PAoI of sensors in high flow conditions, represents the upper bound of the average PAoI of the sensor in the low flow state, ε u is the upper bound of the packet error rate, P loss is the packet error probability of each low-flow state sensor, is the decoding error probability of the sensor in the low flow state.
3. A bandwidth allocation method based on traffic prediction as claimed in claim 2, characterized in that: The data packet error probability of each low flow state sensor is specifically: Among them, P c is the collision probability.
4. A bandwidth allocation method based on traffic prediction as claimed in claim 2, characterized in that: The peak information age of the low flow state sensor is specifically: Among them, λ L is the average packet arrival rate in the low traffic state, μ is the average service rate of the server, and K is the number of transmissions of diversity transmission.
5. A bandwidth allocation method based on traffic prediction as claimed in claim 2, characterized in that: The peak information age of the high flow state sensor is specifically: in, is the decoding error probability under Rayleigh channel, μ is the average service rate of the server, ρ H is the server utilization, λ H is the average packet arrival rate in high traffic state.
6. A bandwidth allocation method based on traffic prediction as claimed in claim 1, characterized in that: Determining the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window includes: The packet arrival process is modeled as a switching Poisson process; Under the predefined constraints of false alarm probability, missing detection probability and successful detection probability, the arrival process of the data packet maximizes the successful detection probability under the constraint of the false alarm probability; Obtaining a flow threshold that satisfies the constraint condition through a Poisson distribution cumulative distribution function; According to the number of data packets arriving in the sample time window and the flow threshold, it is determined whether each sensor in the sensor system is in a high flow state or a low flow state.
7. A bandwidth allocation method based on traffic prediction as claimed in claim 1, characterized in that: The method of obtaining the predicted flow state of the target time window through the hidden Markov model according to the flow state of each sensor includes: Establishing the hidden Markov model; Through the hidden Markov model, based on the flow state of each sensor in the sample time window, the transition probability matrix of the hidden state and the observation probability matrix from the hidden state to the visible state are obtained, and then the probability of whether the flow state of the sensor changes in the prediction window is obtained, and then the predicted flow state of the target time window is obtained.
8. A bandwidth allocation device based on traffic prediction, characterized in that: It includes a state determination module, a prediction module, a model building module and an allocation module; wherein, The state determination module is used to determine the historical flow state of each sensor in the sensor system according to the number of data packets arriving in the sample time window; The prediction module is used to obtain the predicted flow state of the target time window through the hidden Markov model according to the flow state of each sensor; wherein the prediction result includes a high flow state and a low flow state; The model building module is used to build a bandwidth optimization model according to the predicted traffic state; wherein the bandwidth optimization model reserves a dedicated bandwidth for each sensor in the high traffic state, and the bandwidth optimization model reserves a resource pool containing a plurality of orthogonal sub-channels for the sensor in the low traffic state, and the resource pool is used for sharing of the sensors in the low traffic state; The allocation module is used to solve the bandwidth optimization model and allocate bandwidth to each sensor in the sensor system according to the solution result.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the bandwidth allocation method based on traffic prediction as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the bandwidth allocation method based on traffic prediction according to any one of claims 1 to 7.
Citation Information
Cited By
Aloha network transmission method for optimizing information age
CN119697698A
Underwater bandwidth resource allocation method based on feature fusion parallel flow prediction
CN120166550A
