Ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement
By combining A-star and ant colony algorithms in satellite networks, the problems of low search efficiency and poor resource allocation of traditional ant colony algorithms in satellite networks are solved, efficient satellite routing and wavelength allocation are achieved, and the accuracy of path search is improved. accuracy and success rate, reducing communication delay.
Patent Information
- Application Number
- CN202410787224.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-10
AI Technical Summary
The traditional ant colony algorithm has low search efficiency in satellite networks, is prone to falling into local optima, and has poor resource allocation. It cannot meet the needs of high capacity, long distance, rapid rate and security.
Using the ant colony satellite routing and wavelength allocation algorithm enhanced by A-star, the improved A* algorithm is used to search for suboptimal paths under the constraints of wavelength resources and topology structures. Combined with the ant colony algorithm, new pheromone update rules are used to find the optimal path. Optimize paths and allocate resources.
It improves the computing efficiency and path-finding success rate of satellite networks, avoids the initial blindness of the ant colony algorithm, ensures path reliability and optimal allocation of resources, reduces the average communication delay, and improves path search efficiency.
Smart Images

Figure CN118631323A
Abstract
Description
Technical Field
[0001] The invention designs a satellite network routing and wavelength allocation algorithm, specifically an ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement. Background Art
[0002] With the continuous development of communication, the demand for communication quality and capacity is also increasing. After generations of development, the ground network has been able to guarantee good communication quality. However, the existing ground network is still affected by the geographical environment. Some places where it is difficult to build base stations, the environment is harsh, and the population is sparse still cannot fully guarantee high-quality communication. Satellite communication is based on satellite construction and has a coverage that traditional networks cannot compare with. It can cover remote areas or oceans, and is not easily affected by weather, geography and other factors. It can provide services for special industries or dedicated networks. As the integration of air, space and land becomes the trend of the future, satellite communication, as the space-based part, has naturally received more widespread attention. With the continuous increase in business volume and the application of various remote sensing technologies, single satellite relay can no longer meet people's needs. Therefore, since the last century, the world has set off a wave of satellite networking. This network architecture can adapt to more complex and changing environments, better handle business, and meet people's communication requirements. Therefore, with development, it will be widely used in more fields.
[0003] In terms of inter-satellite link data transmission, the microwave links used by traditional satellites can hardly meet the business needs of larger capacity, longer distance, faster speed and greater security. Laser communication, on the other hand, has the advantages of large transmission capacity, long transmission distance, fast transmission rate, strong anti-interference ability, small transceiver equipment and low power consumption, making it more meaningful for research.
[0004] As a key technology of satellite networks, intersatellite routing technology determines the performance of satellite networks. It has become a hot topic of research both at home and abroad. On the one hand, compared with ground communication networks, the high-speed movement of satellite nodes and the real-time changes in network topology make traditional ground routing algorithms no longer fully applicable. On the other hand, the limited on-board processing power and storage capacity caused by factors such as satellite size, power consumption, and space environment pose considerable challenges to the reasonable allocation of satellite wavelengths. In addition, routing and wavelength allocation are integrated and need to be optimized at the same time. Not only do they need to meet the constraints of wavelength continuity and consistency, but they also need to optimize the transmission path in the network according to business needs and network performance requirements.
[0005] Among the common satellite routing algorithms currently, the ant colony algorithm has problems such as lack of initial pheromones, low search efficiency, and easy to fall into local optimality. In order to solve these problems and optimize resource allocation, this paper proposes an ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement. Summary of the invention
[0006] The purpose of the present invention is to provide an ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement to solve the problems of low search efficiency, easy to fall into local optimum and poor resource allocation of traditional ant colony algorithm.
[0007] To achieve the above purpose, the present invention provides the following technical solutions: an ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement. First, the improved A* algorithm is used to search for a suboptimal path under the constraints of wavelength resources, topological structure and , and it is judged whether the path is greater than the set threshold. If so, the ant colony algorithm is directly performed. If not, the initial pheromone of the path is doubled, and then the ant colony algorithm is performed to find the optimal path and allocate resources through the new pheromone update rule.
[0008] Furthermore, the specific steps of the algorithm are as follows:
[0009] (1) Obtain the current satellite network topology, wavelength resource usage, geographic location of each satellite, inter-satellite distance, and Doppler wavelength drift data; the geographic location of any satellite is obtained by dividing the satellite trajectory into time slots and obtaining the corresponding position of each time slot, which is expressed in X, Y, and Z coordinates; the current inter-satellite distance, Doppler wavelength drift value, and topology between each satellite are determined based on the coordinates and satellite constellation characteristics.
[0010] (2) obtaining the source node and the destination node; initializing pheromone;
[0011] Furthermore, the improved A* algorithm searches for a suboptimal path, and the specific steps are as follows:
[0012] First, set up two sets, open list and closed list;
[0013] Obtain the current satellite network topology and wavelength resource usage;
[0014] (1) Put the source node into the open list and set the parent node to be empty;
[0015] (2) Determine whether the open list is empty. If it is, the program ends. If it is not, continue to step 3.
[0016] (3) According to the topology structure, taboo table and wavelength resource constraints, find the neighboring nodes based on the current node and calculate the F value;
[0017] (4) Process all neighboring nodes;
[0018] (4.1) If the node is in the open list, determine whether the new path F value has a lower cost. If so, update the node's parent node and the wavelength resources used by this path;
[0019] (4.2) If the node is not in the open list, add it to the open list and record the parent node and wavelength resources;
[0020] (5) Select the node with the smallest F in the open list, remove it, add it to the closed list, and make it the current node;
[0021] (6) Determine whether there is a destination node in the list. If so, find the parent node in reverse order from the list to obtain the path. If not, go to step 2 to continue execution.
[0022] (7) The obtained path is judged whether it is greater than the Doppler wavelength drift threshold and the delay threshold. If so, no operation is performed. If not, the pheromone concentration on the path is doubled, and then the program ends.
[0023] Furthermore, the A* algorithm grids the satellite topology and replans the calculation method of the cost function, specifically as follows:
[0024] (1) The cost function of the A* algorithm is calculated as F(n) = G(n) + H(n), where n is the node in the path, G(n) is the minimum path cost to the current node, and H(n) is the shortest path cost to the target node.
[0025] (2) Obtain the current satellite constellation data. The number of satellite orbits is P, and the number of satellites in each orbit is S. The satellites are numbered according to their original numbers and topological positions, and the new coordinates are set to (x, y), where x represents the satellite on the xth orbit and y represents the satellite is the yth satellite on the orbit.
[0026] (3) Ignore the transmission delay and the difference in intersatellite link distances between different satellites, and set the cost between each pair of satellites to be uniform. At this time, the G(n) value of the current node in the evaluation function of the A* algorithm can be simplified to the parent node G(n) plus one, and the cost value H(n) can be calculated by coordinate calculation difference. Because the satellite structure is different from that of an ordinary map, the top row in its topological structure may be connected to the bottom row, and the same is true for the leftmost and rightmost rows. Therefore, suppose the coordinates of the current node are (xs, ys) after transformation (2), and the coordinates of the destination node are (xd, yd). H(n) can be obtained by the following formula:
[0027] H(n)=X(n)+Y(n), where
[0028] X(n)=max((|xd-xs|),(min(xs-xd)+S–max(xs,xd)))
[0029] Y(n)=max((|yd-ys|),(min(ys-yd)+P–max(ys,yd)))
[0030] Furthermore, the A* algorithm considers the topological structure and wavelength resources when selecting neighboring nodes:
[0031] (1) No moving direction is set for the rasterized map, and the neighboring nodes that can be reached are found through the satellite constellation topology structure;
[0032] (2) For the neighboring nodes obtained in (1), check whether there are wavelength resources available. If yes, no operation is performed; if no, delete the neighboring nodes from the neighboring node set;
[0033] (3) For the neighboring nodes in (2), find the intersection with the available wavelength resources of the current node and determine whether the intersection is empty. If so, delete it from the neighboring node set; if not, do nothing.
[0034] Furthermore, the ant colony algorithm optimizes the global pheromone update, and the specific steps are as follows:
[0035] (1) Obtain the routing request from the source node to the destination node;
[0036] (2) Initialize various parameters, obtain the satellite constellation topology and wavelength resources, set the number of ants AntNum, the maximum number of iterations IteNum, the pheromone importance factor α, the heuristic function (cost) importance factor β, the heuristic function (delay) importance factor γ, the pheromone volatility coefficient ρ, and the pheromone increase intensity coefficient Q;
[0037] (3) The ants start to search for accessible nodes through the taboo table, topology, and wavelength resources;
[0038] (4) Whether the nodes found by the ant include the destination. If yes, proceed to step 5. If not, select the next hop by roulette and proceed to step 3.
[0039] (5) After finding the end point, randomly select a wavelength resource and record the path and the selected wavelength resource;
[0040] (6) Determine whether all ants have finished walking. If so, go to step 7; otherwise, go to step 3.
[0041] (7) Count all the paths searched by the ants and determine whether the path reaches the end point, whether there is an available wavelength, and whether the Doppler wavelength drift and transmission delay are less than the threshold. If so, increase the pheromone of the path. The increase formula is as follows:
[0042] Δτ k ij =Q / LenRote
[0043] Where k is the kth path found by the ant, i is the departure node number, j is the arrival node number, Q is the pheromone increase intensity coefficient, and LenRote is the length of the kth path.
[0044] If not, then Δτ k ij =0;
[0045] (8) Update the global pheromone, and the update formula is:
[0046] τ(t+1)=(1-ρ)*τ+Δτ0<ρ<1;
[0047] Where τ is the set of all pheromones, ρ is the pheromone evaporation coefficient, and Δτ is all the Δτ counted in step 7. k ij , and add it to the corresponding part in τ.
[0048] (9) Determine whether the maximum number of iterations has been reached. If so, go to step 3. Otherwise, count the feasible optimal paths searched by all ants under all iterations, calculate the optimal path length, output the optimal path, and record the wavelength resources used by it as used on the path.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] 1. The present invention grids the satellite network topology, simplifies the satellite network and proposes a new heuristic function design method, so that the calculation of the cost function of the A* algorithm can be simply calculated in the satellite network, thereby improving the calculation efficiency;
[0051] 2. The present invention proposes a method for finding neighboring nodes by using the A* algorithm in a satellite network through topological structure and wavelength resource constraints, so that each exploration of the A* algorithm is accurate and effective, thereby improving the success rate of path finding;
[0052] 3. The present invention uses the A* algorithm to plan the initial path, and at the same time, through the threshold judgment, it ensures that the path is reliable and effective, while avoiding the blindness of the ant colony algorithm in the initial search, and improving the optimization ability of the ant colony algorithm;
[0053] 4. The present invention first uses the A* algorithm for path finding. However, when wavelength resources are tight, the A* algorithm cannot find a feasible path. However, combined with the subsequent ant colony algorithm, it can be guaranteed that a path will be found when it exists, thereby improving the success rate of the algorithm.
[0054] 5. The present invention proposes a new pheromone update condition, which only adds pheromones on the path where wavelength resources exist and the threshold requirements are met;
[0055] 6. The present invention integrates the A* algorithm with the ant colony algorithm, which enables satellite routing to quickly find available routes. In addition, the hybrid algorithm shows a high success rate, faster path search efficiency, and reduces the average communication delay, which can be used for satellite routing and resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flow chart of ant colony satellite routing and wavelength allocation based on A-star enhancement provided by Embodiment 1 of the present invention;
[0057] Figure 2 It is a specific flow chart of the A* algorithm in Example 1 of the present invention. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0059] Embodiment 1:
[0060] like Figure 1 and Figure 2 As shown, the present invention is based on the A-star enhanced ant colony satellite routing and wavelength allocation algorithm, which specifically includes the following steps:
[0061] Step 1: Obtain the current satellite network topology, wavelength resource usage, geographic location of each satellite, inter-satellite distance and Doppler wavelength drift data; the geographic location of any satellite is obtained by dividing the satellite trajectory into time slots to obtain the corresponding position of each time slot, expressed in X, Y, and Z three-axis coordinates; through the coordinates and satellite constellation characteristics, determine the current inter-satellite distance between each satellite, Doppler wavelength drift value and topology.
[0062] Step 2: Obtain the source node and the destination node; initialize pheromone;
[0063] Step 3: Perform the improved A* algorithm, including:
[0064] First, set up two sets, open list and closed list;
[0065] Obtain the current satellite network topology, number the satellites, and the wavelength resource usage;
[0066] Specifically, after obtaining the satellite network topology structure, the satellite topology structure is rasterized and the satellites are numbered, including:
[0067] Get the current satellite constellation data, the number of satellite orbits is P, the number of satellites in each orbit is S, number the satellites according to their original numbers and topological positions, and set the new coordinates to (x, y), where x represents the satellite on the xth orbit, and y represents the satellite is the yth satellite on the orbit.
[0068] Assume the satellite number is i, where 1≤i≤S*P, then the formulas for x and y are:
[0069]
[0070] Step 3.1: put the source node into the open list, and set the parent node to be empty;
[0071] Step 3.2 determines whether the open list is empty. If it is empty, the program ends. If it is not empty, continue to step 3.3.
[0072] Step 3.3: According to the topology structure and the constraints of wavelength resources, find the neighboring nodes according to the current node and calculate the F value;
[0073] In step 3.3, under the constraints of the topology structure and wavelength resources, searching for neighboring nodes according to the current node includes:
[0074] (1) No moving direction is set for the rasterized map, and the neighboring nodes that can be reached are found through the satellite constellation topology structure;
[0075] (2) For the neighboring nodes obtained in (1), check whether there are wavelength resources available. If yes, no operation is performed; if no, delete the neighboring nodes from the neighboring node set;
[0076] (3) For the neighboring nodes in (2), find the intersection with the available wavelength resources of the current node and determine whether the intersection is empty. If so, delete it from the neighboring node set; if not, do nothing.
[0077] Specifically, there are no obstacles in the satellite constellation in the actual sense, only disconnections in the topology. Therefore, it is impossible to set the location of the obstacles in the map in advance. The only way is to verify whether the adjacent nodes are accessible through the topology to ensure that the selected adjacent nodes can be reached by the next hop. Then, each node has its own wavelength resource usage. Those without available wavelength resources will be excluded. In addition, even if some wavelength resources are available, in Example 1, the wavelength resources used need to ensure continuity, that is, wavelength resources of the same frequency band are used in a path, so it is necessary to intersect the currently used and node available wavelength resources to ensure that the route is truly available.
[0078] Step 3.4 processes all neighboring nodes;
[0079] Step 3.4.1 If the node is in the open list, determine whether the F value of the new path is lower. If so, update the node's parent node and the wavelength resources used by this path;
[0080] Specifically, the calculation of the cost function F in the satellite constellation in step 3.4.1 includes:
[0081] The cost function of the A* algorithm is calculated as F(n)=G(n)+H(n), where n is the node in the path, G(n) is the minimum path cost to the current node, and H(n) is the shortest path cost to the target point.
[0082] Ignoring the transmission delay and the difference in intersatellite link distances between different satellites, the cost between each pair of satellites is set to be uniform. At this time, the G(n) value of the current node in the evaluation function of the A* algorithm can be simplified to the parent node G(n) plus one, and the cost value H(n) can be calculated by coordinate calculation difference. Because the satellite structure is different from that of an ordinary map, the top row in its topological structure may be connected to the bottom row, and the same is true for the leftmost and rightmost columns. Therefore, assuming that the coordinates of the current node are (xs, ys) after transformation by (2), and the coordinates of the destination node are (xd, yd), H(n) can be obtained by the following formula:
[0083] H(n)=X(n)+Y(n), where
[0084] X(n)=max((|xd-xs|),(min(xs-xd)+S–max(xs,xd)))
[0085] Y(n)=max((|yd-ys|),(min(ys-yd)+P–max(ys,yd)))
[0086] In fact, the formula here is used when the top and bottom, as well as the left and right are connected in the topological structure. If it is a π constellation, there are only two rows of topological connections, and Y(n) can be simplified to
[0087] Y(n)=|yd-ys|
[0088] When the most basic mesh topology is used, that is, no topological connection is made between the topology, the topology, the left and the right, in addition to Y(n) being simplified, X(n) can also be simplified to:
[0089] X(n)=|xd-xs|
[0090] Step 3.4.2: If the node is not in the open list, add it to the open list and record the parent node and wavelength resources;
[0091] Step 3.5 Select the node with the smallest F in the open list, remove it, add it to the closed list, and make it the current node;
[0092] Step 3.6 determines whether there is a destination node in the list. If so, find the parent node in reverse order from the list to obtain the path. If not, go to step 3.2 to continue execution.
[0093] Step 3.7 determines whether the obtained path is greater than the Doppler wavelength drift threshold and the delay threshold. If so, no operation is performed. If not, the pheromone concentration on the path is doubled, and then the program ends.
[0094] Specifically, the doubling of path pheromones here is to give the ant colony algorithm more initial information. The ant colony algorithm has the problem of insufficient initial pheromones and low search efficiency. The A* algorithm is used to quickly find a path, and after passing the threshold, it can ensure that the found path is feasible. On this basis, the path found by the ant colony algorithm will be optimized on this basis, and a better path may be obtained, reducing the average communication delay; if the A* algorithm fails to find a path, the initial pheromone will not be changed, but the ant colony algorithm will converge to a feasible path when a path exists to ensure the success rate of communication.
[0095] Step 4: Perform an ant colony algorithm to change the pheromone update rule, including:
[0096] Step 4.1 obtains the routing request from the source node to the destination node;
[0097] Step 4.2 initializes various parameters, obtains the satellite constellation topology and wavelength resources, sets the number of ants AntNum, the maximum number of iterations IteNum, the pheromone importance factor α, the heuristic function (cost) importance factor β, the heuristic function (delay) importance factor γ, the pheromone volatility coefficient ρ, and the pheromone increase intensity coefficient Q;
[0098] Step 4.3 The ants start to search for accessible nodes through the taboo table, topology structure, and wavelength resources;
[0099] Step 4.4: Check whether the nodes found by the ant include the destination. If yes, proceed to step 4.5. If not, perform roulette wheel method to select the next hop and then proceed to step 4.3.
[0100] Step 4.5 After finding the end point, randomly select a wavelength resource and record the path and the selected wavelength resource;
[0101] Step 4.6 determines whether all ants have finished walking. If so, go to step 4.7, otherwise go to step 4.3;
[0102] Step 4.7 counts all the paths searched by the ants, determines whether the path reaches the end point, has an available wavelength, and the Doppler wavelength drift and transmission delay are less than the threshold. If so, the pheromone of the path is increased, and the increase formula is as follows:
[0103] Δτ k ij =Q / LenRote
[0104] Where k is the kth path found by the ant, i is the departure node number, j is the arrival node number, Q is the pheromone increase intensity coefficient, and LenRote is the length of the kth path.
[0105] If not, then Δτ k ij =0;
[0106] Specifically, the found path is checked three times: whether there are wavelength resources, whether the destination is reached, and whether the Doppler wavelength drift is less than the threshold. Only when all of them are qualified, the found path is confirmed to be feasible. This is to prevent the following:
[0107] (1) When allocating resources, the found path cannot be used for wavelength allocation, resulting in communication failure;
[0108] (2) The found path fails to reach the destination, resulting in a path error;
[0109] (3) Although wavelength resources exist and the destination is reached, the path Doppler wavelength drift or transmission delay is greater than the set threshold, and the communication is ultimately judged as a failure;
[0110] Therefore, only by strictly judging the path and ensuring that the updated pheromones are correct can the ant colony algorithm finally converge to the optimal result.
[0111] Step 4.8 updates the global pheromone, and the update formula is:
[0112] τ(t+1)=(1-ρ)*τ+Δτ0<ρ<1;
[0113] Where τ is the set of all pheromones, ρ is the pheromone evaporation coefficient, and Δτ is all the Δτ counted in step 7. k ij , and add it to the corresponding part in τ.
[0114] Step 4.9 determines whether the maximum number of iterations has been reached. If so, go to step 4.3. Otherwise, count the feasible optimal paths searched by all ants under all iterations, calculate the optimal path length, output the optimal path, and record the wavelength resources used by it as used on the changed path.
[0115] Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0116] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus.
[0117] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An ant colony satellite routing and wavelength allocation algorithm based on A-star enhancement, It is characterized in that The specific method is as follows: Obtain routing request from source node to destination node; Based on the destination request, find a suboptimal path under the constraints of topology structure and wavelength resources through A* algorithm; Determine whether the suboptimal path is greater than the Doppler wavelength drift threshold and the delay threshold to obtain a first judgment result; If the first judgment result is yes, performing an ant colony algorithm on the source node and the destination node to find an optimal path and perform wavelength resource allocation; If the first judgment result is no, then: Record the suboptimal path found by the A* algorithm and double the initial pheromone of this path; Using the above initial pheromone distribution, an ant colony algorithm is performed on the source node and the destination node to find the optimal path and perform wavelength resource allocation.
2. The A-star enhanced ant colony satellite routing and wavelength allocation algorithm according to claim 1, It is characterized in that Before obtaining the routing request from the source node to the destination node, it also includes: Obtain the current satellite network topology and wavelength resource usage; the geographic location of each satellite, the inter-satellite distance and Doppler wavelength drift data; the geographic location of any satellite is obtained by dividing the satellite trajectory into time slots to obtain the corresponding position of each time slot, expressed in X, Y, and Z three-axis coordinates; through the coordinates and satellite constellation characteristics, determine the current inter-satellite distance between each satellite, Doppler wavelength drift value and topology.
3. The A-star enhanced ant colony satellite routing and wavelength allocation algorithm according to claim 2, It is characterized in that Performing an A* algorithm on the source node and the destination node includes: First, set up two sets, open list and close list; Obtain the current satellite network topology and wavelength resource usage; (1) Put the source node into the open list and set the parent node to empty; (2) Determine whether the open list is empty. If it is, the program ends. If it is not, continue with step 3. (3) According to the topology structure, taboo table and wavelength resource constraints, find the neighboring nodes based on the current node and calculate the F value; (4) Process all neighboring nodes; (4.1) If the node is in the open list, determine whether the F value of the new path is lower. If so, update the parent node of the node and update the wavelength resources used by this path; (4.2) If the node is not in the open list, add it to the open list and record the parent node and wavelength resources; (5) Select the node with the smallest F in the open list, remove it, add it to the close list, and make it the current node; (6) Determine whether there is a destination node in the closelist. If so, find the parent node in reverse order from the closelist to obtain the path. If not, go to step 2 to continue execution. (7) The obtained path is judged whether it is greater than the Doppler wavelength drift threshold and the delay threshold. If so, no operation is performed. If not, the pheromone concentration on the path is doubled, and then the program ends.
4. The A-star enhanced ant colony satellite routing and wavelength allocation algorithm according to claim 3, It is characterized in that The A* algorithm grids the satellite topology and replans the calculation method of the cost function. The specific method is as follows: (1) The cost function of the A* algorithm is calculated as F(n) = G(n) + H(n), where n is the node in the path, G(n) is the minimum path cost to the current node, and H(n) is the shortest path cost to the target node. (2) Obtain the current satellite constellation data. The number of satellite orbits is P, and the number of satellites in each orbit is S. The satellites are numbered according to their original numbers and topological positions, and the new coordinates are set to (x, y), where x represents the satellite in the xth orbit and y represents the satellite is the yth satellite in the orbit; (3) Ignore the transmission delay and the difference in intersatellite link distances between different satellites, and set the cost between each pair of satellites to be uniform. At this time, the G(n) value of the current node in the evaluation function of the A* algorithm can be simplified to the parent node G(n) plus one, and the cost H(n) is calculated by coordinate calculation difference. Because the satellite structure is different from that of an ordinary map, the top row in its topological structure is connected to the bottom row, and the leftmost and rightmost rows are the same. Therefore, assume that the coordinates of the current node are (xs, ys) after transformation (2), and the coordinates of the destination node are (xd, yd). H(n) is obtained by the following formula: H(n)=X(n)+Y(n), where: X(n)=max((|xd-xs|),(min(xs-xd)+S–max(xs,xd))); Y(n)=max((|yd-ys|),(min(ys-yd)+P–max(ys,yd))).
5. The A-star enhanced ant colony satellite routing and wavelength allocation algorithm according to claim 3, It is characterized in that The A* algorithm considers the topology and wavelength resources when selecting neighboring nodes: (1) No moving direction is set for the rasterized map, and the neighboring nodes that can be reached are found through the satellite constellation topology structure; (2) For the neighboring nodes obtained in (1), check whether there are wavelength resources available. If yes, no operation is performed; if no, delete the neighboring nodes from the neighboring node set; (3) For the neighboring nodes in (2), find the intersection with the available wavelength resources of the current node and determine whether the intersection is empty. If so, delete it from the neighboring node set; if not, do nothing.
6. The A-star enhanced ant colony satellite routing and wavelength allocation algorithm according to claim 3, It is characterized in that The ant colony algorithm optimizes the global pheromone update, and the specific steps are as follows: (1) Obtain the routing request from the source node to the destination node; (2) Initialize various parameters, obtain the satellite constellation topology and wavelength resources, set the number of ants AntNum, the maximum number of iterations IteNum, the pheromone importance factor α, the heuristic function (cost) importance factor β, the heuristic function (delay) importance factor γ, the pheromone volatility coefficient ρ, and the pheromone increase intensity coefficient Q; (3) The ants start to search for accessible nodes through the taboo table, topology, and wavelength resources; (4) Whether the nodes found by the ant include the destination. If yes, proceed to step 5. If not, select the next hop by roulette and proceed to step 3. (5) After finding the end point, randomly select a wavelength resource and record the path and the selected wavelength resource; (6) Determine whether all ants have finished walking. If so, go to step 7; otherwise, go to step 3. (7) Count all the paths searched by the ants and determine whether the path reaches the end point, whether there is an available wavelength, and whether the Doppler wavelength drift and transmission delay are less than the threshold. If so, increase the pheromone of the path. The increase formula is as follows: Dt k ij =Q / LenRote, Where k is the kth path found by the ant, i is the departure node number, j is the arrival node number, Q is the pheromone increase intensity coefficient, and LenRote is the length of the kth path; If not, then Δτ k ij =0; (8) Update the global pheromone, and the update formula is: τ(t+1)=(1-ρ)*τ+Δτ0<ρ<1; Where τ is the set of all pheromones, ρ is the pheromone evaporation coefficient, and Δτ is all the Δτ counted in step 7. k ij , add it to the corresponding part in τ; (9) Determine whether the maximum number of iterations has been reached. If so, go to step 3. Otherwise, count the feasible optimal paths searched by all ants under all iterations, calculate the optimal path length, output the optimal path, and record the wavelength resources used by it as used on the path.
