An intelligent traffic load balancing method for high-rate satellite-to-ground link communication services
By using deep reinforcement learning algorithms to train fully connected neural networks in the field of satellite communications, combined with the cumulative return reward function, the problem of limited effectiveness of load balancing strategies and routing algorithms in the existing technology is solved, and intelligent traffic for satellite-ground links is realized. Balanced, suitable for a variety of scenarios and adapted to satellite platforms.
Patent Information
- Application Number
- CN202111214625.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-10-19
AI Technical Summary
Existing load balancing strategies and routing algorithms in the field of satellite communications have limited effects when faced with different scenarios, and artificially selected features have limitations, making it difficult to adapt to application scenarios with large gaps. Optimizing the routing algorithm can alleviate the load balancing effect of simple scenarios. lower.
A deep reinforcement learning algorithm is used to train a fully connected neural network model in a virtual satellite-to-ground link transmission environment. The cumulative return is used as a reward function to select the optimal satellite-to-ground link for data frame transmission, avoiding the subjectivity of artificial selection of features, and Implement small neural networks on FPGA to adapt to spaceborne platforms.
It realizes advanced feature extraction of link information and data frame information, accurately estimates cumulative returns, is suitable for application scenarios with different numbers of satellite and ground links, and improves the flexibility and effect of traffic load balancing.
Smart Images

Figure CN114040447B
Abstract
Description
Technical Field
[0001] The invention relates to an intelligent flow load balancing design method for high-rate satellite-to-ground link communication services, and belongs to the field of on-board processing of satellite communication systems. Background Art
[0002] With the development of artificial intelligence, deep reinforcement learning has shown great advantages in feature extraction and strategy learning. At present, in the field of satellite communications, the method to alleviate the imbalance of communication link load is usually to implement a fixed load balancing strategy or optimize the routing algorithm based on the data transmission of the link and certain characteristics of the data frame. Fixed load balancing strategies are often only suitable for certain scenarios, and the artificially selected features have great limitations. For application scenarios with large differences, it is even necessary to replace the load balancing strategy; the method of optimizing the routing algorithm also requires specific design in specific scenarios. For scenarios with simpler routing, the optimization of the routing algorithm has a low effect on load balancing. Summary of the invention
[0003] The present invention aims to avoid the problems in the above-mentioned background technology and provide a design method for flow load balancing in satellite-to-ground link communication services which is more flexible and has better applicability.
[0004] The technical solution adopted by the present invention is:
[0005] A method for intelligent traffic load balancing of high-rate satellite-to-ground link communication services, comprising the following steps:
[0006] (1) Constructing a virtual satellite-to-ground link transmission environment, including setting the virtual environment state, virtual environment state update time, execution action, and environment reward function. The virtual environment state is the satellite-to-ground link state, and the execution action is to select a satellite-to-ground link to send a data frame.
[0007] (2) Build a fully connected neural network model;
[0008] (3) Using deep reinforcement learning algorithm to train the fully connected neural network model in a virtual satellite-to-ground link transmission environment, and then optimize the fully connected neural network model;
[0009] (4) Store the trained fully connected neural network model on the FPGA;
[0010] (5) FPGA collects data frame information and regularly collects satellite-to-ground link status, and uses the collected information as the input of the fully connected neural network model. The neural network model is operated on the FPGA to calculate the cumulative rewards brought by sending data frames on each satellite-to-ground link, and the satellite-to-ground link with the largest cumulative reward is selected to send the data frame.
[0011] Wherein, the step (1) specifically comprises the following steps:
[0012] (101) According to the actual satellite-to-ground link transmission, the virtual environment state is set, and the virtual environment state includes the data frame transmission rate of each link, the remaining length of the data frame being transmitted by each link, and the length of the data frame to be transmitted currently; if the remaining length of the data frame being transmitted by the link is 0, it means that the link is idle; the data frame transmission rate of each link is obtained by dividing the total number of bits transmitted by the link in a set time period by the time, and the length of the time period is expressed as M time moments; wherein the value of M is set according to different satellite-to-ground link conditions;
[0013] (102) Setting the time scale of the virtual environment to t microseconds, that is, the state of the virtual environment is updated every t microseconds; where t is a set value;
[0014] (103) Setting an execution action, using a one-hot code to represent the action, the length of the one-hot code is the number of links plus 1, the last position 1 represents not sending data, that is, not selecting any link, and the remaining positions 1 represent using the link to send data frames;
[0015] (104) Set the environment reward function R = -∑ N i=1 |V i -(∑ N i=1 V i ) / N|,V i is the data frame sending rate of link i at time t.
[0016] The structure of the fully connected neural network model in step (2) is as follows:
[0017] The fully connected neural network model includes four fully connected layers. The number of neurons in the fourth fully connected layer is set to the total number of satellite-to-ground links plus 1. The output value of the fourth fully connected layer represents the cumulative rewards brought by sending data frames using each link and the cumulative rewards of not selecting any link to send data frames. The ReLU activation function is used between every two fully connected layers to prevent the gradient from disappearing.
[0018] Wherein, the step (5) comprises the following steps:
[0019] (501) counting the data rate sent by each satellite-to-ground link and the remaining frame length of the frame being sent;
[0020] (502) sending the link status of each satellite-to-ground link and the data frame information to be sent to the fully connected neural network at the same time every t microseconds; wherein t is a set value;
[0021] (503) The fully connected neural network performs calculations and outputs the cumulative returns of the data frames sent by each satellite-to-ground link;
[0022] (504) Compare the cumulative rewards of sending data frames on each satellite-to-ground link, and select the satellite-to-ground link with the largest cumulative reward to send the data frame.
[0023] Compared with the background technology, the present invention has the following advantages:
[0024] 1. The present invention uses a neural network to extract features from link information and data frame information, thus avoiding the subjectivity of artificial feature selection;
[0025] 2. The present invention takes the equilibrium of the transmission rates of each link as the ultimate learning goal, and designs the corresponding environmental reward function, which makes the estimation of the cumulative return more accurate;
[0026] 3. The present invention adopts a small fully connected neural network with a small parameter scale, which is suitable for limited onboard FPGA platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is the overall design block diagram of the present invention.
[0028] Figure 2 It is a structural diagram of a fully connected neural network of the present invention.
[0029] Figure 3 It is a fully connected neural network training flow chart of the present invention.
[0030] Figure 4 It is the FPGA state jump diagram of the present invention. DETAILED DESCRIPTION
[0031] The present invention uses the powerful feature extraction capability of deep neural networks to learn the feature information in data frames and link states, thereby learning the more advanced features in data frames and link states, avoiding the limitations of artificially selected features; in addition, the present invention uses the balance of traffic on each link as the target reward function, and uses a deep reinforcement learning algorithm to train the fully connected neural network, so that the fully connected neural network can better evaluate the load balancing effect brought about by sending data using each link. The number of outputs of the fully connected neural network is only related to the number of links, which is more flexible for application scenarios with different numbers of satellite-to-ground links. Figure 1 , Attachment Figure 2 , Attachment Figure 3 and attached Figure 4 The present invention is further described with reference to the specific embodiments.
[0032] like Figure 1 As shown, the present invention is mainly divided into two parts: neural network model and training and FPGA platform implementation. The specific steps are as follows:
[0033] (1) Constructing a virtual satellite-to-ground link transmission environment, including setting the virtual environment state (the virtual environment state includes the data frame transmission rate of each link, the remaining length of the data frame being transmitted by each link, and the length of the data frame to be transmitted. If the remaining length of the data frame being transmitted by the link is 0, it means that the link is idle. The data frame transmission rate of each link is obtained by dividing the total number of bits transmitted by the link in a set time period by the time. The length of the time period is represented by M moments; wherein the value of M is set according to different satellite-to-ground link conditions), virtual environment state update time, execution action (using a one-hot code to represent the action, the length of the one-hot code is the number of links plus 1, the last position 1 represents not transmitting data, that is, not selecting any link, and the remaining positions 1 represent using the link to transmit data frames;) and environment reward function. The virtual environment state is the satellite-to-ground link state, and the execution action is to select a satellite-to-ground link to transmit data frames;
[0034] To adapt to the internal calculation of FPGA, link frame information such as data frame length and data frame sending rate are all represented by binary numbers and spliced in the form of row vectors as the observation state of the intelligent agent on the environment, that is, the input of the fully connected neural network; the unit of the data frame sending rate of each link is bps.
[0035] For example, if there are three satellite-to-ground links, the observed state of the agent at time t is (L, V1, V2, V3), where L is the data frame length, V1, V2, and V3 are the data frame transmission rates of the three links at time t. Correspondingly, the agent's execution action is a row vector composed of 4 bits, where the first three bits are set to 1 to represent the use of the corresponding links to send data, and the last bit is set to 1 to represent no data transmission; in this environment, the environmental reward obtained by the agent for executing the action is: R = -∑ 3 i=1 |V i -(∑ 3 i=1 V i ) / 3|.
[0036] (2) Build a small fully connected neural network to predict the cumulative reward of the agent's actions;
[0037] The structure of the fully connected neural network that estimates the cumulative reward of the agent is shown in the following figure. Figure 2 shown.
[0038] The neural network is a four-layer fully connected neural network. The number of neurons in the first fully connected layer is set to 64, the number of neurons in the second fully connected layer is set to 32, the number of neurons in the third fully connected layer is set to 16, and the number of neurons in the fourth fully connected layer is set to the total number of satellite-to-ground links plus 1. The output value of the fourth fully connected layer represents the cumulative reward brought by sending data frames using each link and the cumulative reward of not selecting any link to send data frames; the ReLU activation function is used between every two fully connected layers to prevent the gradient from disappearing.
[0039] (3) Using deep reinforcement learning algorithm to train the fully connected neural network model in a virtual satellite-to-ground link transmission environment, and then optimize the fully connected neural network model;
[0040] The neural network is trained using the deep reinforcement learning algorithm Deep Q-learning. The agent's action execution strategy is the ε-greedy strategy. The agent has a 1-ε probability of selecting the action with the maximum cumulative reward and a ε probability of selecting the action that does not have the maximum cumulative reward, to ensure that the agent explores the action space during training.
[0041] like Figure 3 As shown, the training of the neural network can be carried out in the following steps:
[0042] ① The PyTorch framework is used as the framework for training the fully connected neural network; the parameters for training the fully connected neural network are set as follows: the optimizer is the Adam optimizer, the learning rate is set to 0.01, ε can be set to 0.05, the capacity of the experience replay buffer is set to 1000000, and the elements in the experience replay buffer are (current environment state, agent execution action, environment reward, next environment state), the batch size of the fully connected neural network is set to 1024, and the total number of training iterations is 1000000; then, the deep neural network is initialized;
[0043] ② Input the environment state observed by the agent at the current moment into the fully connected neural network to obtain the cumulative reward of each action performed by the agent;
[0044] ③ According to the ε-greedy strategy, the agent chooses the action with the maximum cumulative reward with a probability of 95%, and chooses to perform other actions with a probability of 5%, and obtains the agent's observation state of the environment at the next moment and the environment's reward for the action performed by the agent;
[0045] ④ The environment state s observed by the agent at the current moment t 、The execution action at the current moment a t , the reward r obtained by the agent for performing the action tAnd the agent's observation state s of the environment at the next moment t+1 According to (s t , a t , r t ,s t+1 ) in the form of experience replay buffer;
[0046] ⑤ Randomly extract batch size data from the experience replay cache;
[0047] ⑥ Use the data extracted in step ⑤ to train the neural network model in the PyTorch framework. The loss function of training the neural network model is shown as follows:
[0048] L=[(r t +γQ'(s t+1 ,a t+1 ))-Q(s t ,a t )] 2
[0049] Where Q represents the neural network model, Q' represents the target neural network model, and γ represents the degree of influence of future cumulative rewards on the cumulative returns of the current action. The target neural network Q' is updated every 1000 iterations using the weight parameters of Q, and the update method is Q' = Q' + (1-α) Q. The target neural network model is to prevent the neural network from overestimating the cumulative returns of the agent's actions.
[0050] In the first 10,000 interactions between the agent and the environment, only samples in the experience replay cache are collected, and the neural network is not trained. When the number of samples in the experience replay cache is greater than 10,000, 1,024 samples are randomly selected from the experience replay cache to calculate the loss function for every 1,000 new samples collected, and the neural network model parameters are updated using the derivatives of the loss function to the neural network model parameters;
[0051] ⑦ Adjust the training parameters in ② until the loss function converges or the maximum number of iterations is reached;
[0052] (4) Storing the trained fully connected neural network model on the FPGA;
[0053] The neural network model can be stored in SDRAM memory of DDR2, DDR3 or other models.
[0054] (5) FPGA collects the received data frame information and regularly collects the satellite-to-ground link status, and uses the collected information as the input of the fully connected neural network model. The fully connected neural network model is operated on the FPGA to calculate the cumulative reward brought by sending data frames on each link, and the link with the largest cumulative reward is selected to send the data frame.
[0055] FPGA uses a three-stage state machine to complete different operations in different states. Figure 4 The FPGA state transition diagram shown in the figure performs state transition. The working states of the FPGA include:
[0056] ① Idle state: system initialization state, periodically clear the counter and start counting until a data frame arrives and enters the data frame cache state;
[0057] ②Data frame cache status: write the data frame into the data RAM, extract the frame length information of the data frame, write the collected satellite-to-ground link status information and frame length information into the status information RAM, and update the satellite-to-ground link information every 0.1s. If the satellite-to-ground link information is being updated in the data receiving state, store the updated satellite-to-ground link information, and then enter the neural network calculation state;
[0058] ③ Neural network operation status: read the status information in the status information RAM, input it into the neural network operation module, obtain the cumulative reward for sending data frames using each satellite-to-ground link, and enter the satellite-to-ground link selection state;
[0059] ④ Satellite-to-ground link selection state: According to the cumulative reward obtained in the neural network calculation state, the satellite-to-ground link with the largest cumulative reward is selected, and the data frame sending state is entered;
[0060] ⑤Data frame sending state: Send data frames according to the satellite-to-ground link selected by the satellite-to-ground link selection state and enter the idle state;
[0061] Through the above five steps, the intelligent balancing of traffic load on the high-speed satellite-to-ground link is completed.
[0062] The construction of the virtual environment and the training of the fully connected neural network of the present invention can be implemented on a PC that can run the Python language and the PyTorch framework. The onboard FPGA platform can adopt the FPGA series products produced by Xilinx, and the off-chip storage device for storing the neural network model can adopt various types of SDRAM memories.
Claims
1. An intelligent traffic load balancing method for high-rate satellite-to-ground link communication services. It is characterized in that The steps include: (1) Constructing a virtual satellite-to-ground link transmission environment, including setting the virtual environment state, virtual environment state update time, execution action, and environment reward function. The virtual environment state is the satellite-to-ground link state, and the execution action is to select a satellite-to-ground link to send a data frame. (2) Build a fully connected neural network model; (3) Using deep reinforcement learning algorithm to train the fully connected neural network model in a virtual satellite-to-ground link transmission environment, and then optimize the fully connected neural network model; (4) Store the trained fully connected neural network model on the FPGA; (5) FPGA collects data frame information and regularly collects satellite-to-ground link status, uses the collected information as the input of the fully connected neural network model, performs neural network model operations on the FPGA, calculates the cumulative rewards brought by sending data frames on each satellite-to-ground link, and selects the satellite-to-ground link with the largest cumulative reward to send the data frame; Wherein, the step (1) specifically comprises the following steps: (101) According to the actual satellite-to-ground link transmission, the virtual environment state is set, and the virtual environment state includes the data frame transmission rate of each link, the remaining length of the data frame being transmitted by each link, and the length of the data frame to be transmitted currently; if the remaining length of the data frame being transmitted by the link is 0, it means that the link is idle; the data frame transmission rate of each link is obtained by dividing the total number of bits transmitted by the link in a set time period by the time, and the length of the time period is expressed as M time moments; wherein the value of M is set according to different satellite-to-ground link conditions; (102) Setting the time scale of the virtual environment to t microseconds, that is, the state of the virtual environment is updated every t microseconds; where t is a set value; (103) Setting an execution action, using a one-hot code to represent the action, the length of the one-hot code is the number of links plus 1, the last position 1 represents not sending data, that is, not selecting any link, and the remaining positions 1 represent using the link to send data frames; (104) Set the environment reward function R = -∑ N i=1 |V i -(∑ N i=1 V i ) / N|,V i is the data frame transmission rate of link i at time t, and N is the number of links; Complete intelligent traffic load balancing for high-speed satellite-to-ground link communication services.
2. According to claim 1, a method for intelligent traffic load balancing for high-rate satellite-to-ground link communication services, It is characterized in that The structure of the fully connected neural network model in step (2) is as follows: The fully connected neural network model includes four fully connected layers. The number of neurons in the fourth fully connected layer is set to the total number of satellite-to-ground links plus 1. The output value of the fourth fully connected layer represents the cumulative rewards brought by sending data frames using each link and the cumulative rewards of not selecting any link to send data frames. The ReLU activation function is used between every two fully connected layers to prevent the gradient from disappearing.
3. According to claim 1, a method for intelligent traffic load balancing for high-rate satellite-to-ground link communication services, It is characterized in that The step (5) comprises the following steps: (501) counting the data rate sent by each satellite-to-ground link and the remaining frame length of the frame being sent; (502) sending the link status of each satellite-to-ground link and the data frame information to be sent to the fully connected neural network at the same time every t microseconds; wherein t is a set value; (503) The fully connected neural network performs calculations and outputs the cumulative returns of the data frames sent by each satellite-to-ground link; (504) Compare the cumulative rewards of sending data frames on each satellite-to-ground link, and select the satellite-to-ground link with the largest cumulative reward to send the data frame.
