Multi-stage relay selection method for laser communication considering switching loss

The selection model established through deep reinforcement learning considers switching loss to make the optimal selection of laser communication relay terminals, solving the problem of failing to maximize channel capacity in the existing technology and achieving higher channel capacity and better Achievability.

CN115664517BActive Publication Date: 2024-08-23CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211311193.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2024-08-23
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

Existing laser communication relay selection methods fail to effectively consider link unavailability when switching between relay terminals, resulting in failure to maximize channel capacity.

Method used

Deep reinforcement learning is used to establish a selection model, and the optimal selection of relay terminals is made through the action network and the target network, switching loss is introduced, and the average channel capacity is calculated to maximize it.

Benefits of technology

It improves channel capacity performance, realizes optimal relay selection, takes into account link unavailability when switching between relay terminals, and has higher achievability and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115664517B
    Figure CN115664517B
Patent Text Reader

Abstract

The present invention provides a laser communication multi-stage relay selection method considering switching loss, which mainly introduces switching loss, uses deep reinforcement learning to establish a selection model, makes the best selection for relay terminals at any time, and maximizes the average channel capacity. The specific steps include: S1, initializing the selection model and system parameters; S2, determining the action number of relay selection based on the action network; S3, mapping the action number to the relay selection result; S4, repeatedly obtaining selection experience; S5, cyclically updating the parameters of the action network and the target network based on the selection experience, and completing the training of the action network; S6, performing relay selection based on the trained action network. Compared with the existing method that does not consider switching loss, the present invention has better channel capacity performance, and at the same time considers the situation that the link is unavailable when switching between different relay terminals, and has higher feasibility and accuracy when facing complex and cumbersome relay selection problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of laser communication technology, and is applied to a laser communication system with a multi-stage relay terminal. The present invention specifically provides a laser communication multi-stage relay selection method taking switching loss into consideration. Background Art

[0002] Free space laser communication has the advantages of large capacity, strong anti-electromagnetic interference ability, and no need for frequency authorization. Due to the quasi-static characteristics of the laser communication channel, it is possible for the transmitter to obtain channel information, so researchers have started to study relay selection. In existing research, maximizing channel capacity or minimizing interruption probability is generally used as a research goal, but the situation where the link is unavailable when switching between different relay terminals is not considered. Therefore, the present invention introduces the loss coefficient when switching between different relay terminals, with the aim of maximizing the average channel capacity. Summary of the invention

[0003] In order to solve the above problems, the present invention provides a laser communication multi-stage relay selection method taking switching loss into consideration. The method mainly introduces switching loss, establishes a selection model using deep reinforcement learning, makes the best selection for the relay terminal at each moment, and maximizes the average channel capacity.

[0004] The invention provides a laser communication multi-stage relay selection method considering switching loss, and its application system includes: P transmitting terminals, P receiving terminals and K-level relays, each level of relays includes N relay terminals, each transmitting terminal selects only one relay terminal in each level of relays for information transmission, and forms P links with the receiving terminal, each link includes K+1 sub-links, wherein P, K, and N are all positive integers not less than 1, and N>P;

[0005] Use deep reinforcement learning to establish a selection model to optimally select the relay terminal at each moment to maximize the average channel capacity;

[0006] The selection model includes an action network, a target network and an experience pool. The action network and the target network have the same structure, which consists of an input layer, a hidden layer, an output preset layer and an output layer.

[0007] The steps for selecting a method are as follows:

[0008] S1. Clear the elements stored in the experience pool and initialize the parameters θ and θ of the action network and the target network. tar , initialize the system's curtain variable i = 1, time slot variable k = 1, set the target network update round number E update and greedy probability ε, total number of training rounds E p ;

[0009] S2. According to the action network, determine the action number N selected by the relay of each link in the kth time slot k , action number N k is determined as follows:

[0010] Generate a random number between 0 and 1. If the random number is less than the greedy probability ε, generate 0, and assign it to action number N k ;

[0011] If the random number is greater than the greedy probability ε, let Among them, φ j (s k |θ) represents the action network with parameter θ when the input is s k When , the jth element of the output layer is represents the index j of the maximum value in the returned set {·};

[0012] S3, number the action N k Mapped to the relay selection result, the average channel capacity formula considering the switching loss is derived as follows:

[0013]

[0014] Where M represents the total number of time slots. represents the switching loss of any k-th time slot and m-th link; h represents the photoelectric conversion coefficient, represents the channel gain in the j-th sublink of any k-th time slot and m-th link, P t Indicates the transmit power, represents the equivalent noise power between sub-links;

[0015] And calculate the selection benefit r according to the average channel capacity formula k as follows:

[0016]

[0017] S4, storing the relay selection result and selection benefit obtained in S3 as selection experience in the experience pool;

[0018] If the experience pool is not full, repeat S4;

[0019] If the experience pool is full, execute S5;

[0020] S5. Based on the L selected experiences in the experience pool, the action network and the target network are rotated. p train

[0021] S6. Perform relay selection based on the trained action network and repeat the following actions until k = M:

[0022] The direction of the transmitting terminal and the relay terminal in the k-1th time slot and the channel information in the kth time slot are used as the input state s k Input the trained action network and get the optimal action number as

[0023] Preferably, the input layer includes P+N×K+2×P×N+(K-1)×N 2 neurons, and the output layer has neurons, and the output preset layer has The output preset layer is divided into S part and A part. The S part has 1 neuron and the A part has N neurons.

[0024] Preferably, the input state length of the action network is P+N×K+2×P×N+(K-1)×N 2 ,s k The first P+N×K elements of k,1 Indicates that k 2×P×N+(K-1)×N 2 Elements are s k,2 Indicates that s k,1 Reflects the direction of all transmitting terminals and relay terminals in the k-1th time slot, s k,2 Reflects all channel gains in the kth time slot.

[0025] Preferably, action number N k The specific process of mapping to relay selection results is as follows:

[0026] Number the action N k Transform to K bits Binary Sequence Among them, any j-th bit sequence It is a 0 to The numbers between are used to indicate the connection mode of the j-th level sub-link;

[0027] Create rows of For an array with 2 columns, the first column of the array corresponds to 0 to The second column of the array is the ordered arrangement of P numbers in the sequence [1,2,...,N]. In the first column, The sequence in the second column corresponding to the row is the relay terminal number of the link.

[0028] Preferably, the derivation process of the average channel capacity formula considering switching loss is as follows:

[0029] The expression of the channel capacity of the kth time slot and the mth link is as follows:

[0030]

[0031] in, represents the equivalent signal-to-noise ratio of the kth time slot and the mth link;

[0032] Let ρ(m,l,k) represent the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th link, and ρ′(m,l,k) represent the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th (1≤m≤P)-th link at the previous moment, where 1≤m≤P and 0≤l≤K.

[0033] Switching loss of the kth time slot and the mth link The expression is as follows:

[0034]

[0035] Wherein, τ represents the loss coefficient when switching between adjacent relay terminals;

[0036] Based on the above derivation, the formula for the average channel capacity considering switching loss is as follows:

[0037]

[0038] Preferably, the L selected experiences are expressed as Where p represents the number of the selected experience.

[0039] Preferably, obtain L selected experiences in the experience pool Where 1≤L p ≤D,p=1,2,...,L

[0040] For any L p (p=1,2,...,L) experiences, all calculated

[0041] Where γ represents the discount factor, Denote the parameter as θ tar The target network has an input layer of When , the jth element of the output layer;

[0042] The loss function of the action network is calculated as follows:

[0043]

[0044] Update the parameters θ of the action network according to the loss function;

[0045] If i is E updateThe parameter θ of the target network is an integer multiple of tar Update to θ;

[0046] If i is not E update The target network parameter θ is an integer multiple of tar No update;

[0047] If i is equal to E p , end the training.

[0048] Compared with the prior art, the present invention can achieve the following beneficial effects:

[0049] Compared with the existing method that does not consider the switching loss, the present invention has better channel capacity performance, and the average channel capacity value obtained in the experiment is higher. At the same time, it takes into account the situation that the link is unavailable when switching between different relay terminals, and realizes the optimal relay selection.

[0050] The present invention utilizes deep reinforcement learning for relay selection. When faced with complex and tedious relay selection problems, the present invention has higher feasibility and accuracy than existing methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a simplified diagram of relay transmission provided according to an embodiment of the present invention;

[0052] Figure 2 is a schematic diagram of an action network or a target network provided according to an embodiment of the present invention;

[0053] Figure 3 is a flow chart of a method for selecting a laser communication multi-stage relay taking into account switching loss provided by an embodiment of the present invention;

[0054] Figure 4 is a schematic diagram of mapping action numbers to relay selection results according to an embodiment of the present invention;

[0055] Figure 5 is a structural diagram of an application system provided according to an embodiment of the present invention;

[0056] Figure 6 is a performance curve comparison diagram a of the present invention and the greedy algorithm provided according to an embodiment of the present invention;

[0057] Figure 7 Graph b is a performance curve comparison diagram of the present invention and the greedy algorithm provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same modules are represented by the same reference numerals. In the case of the same reference numerals, their names and functions are also the same. Therefore, the detailed description thereof will not be repeated.

[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.

[0060] Figure 1 An application model of relay transmission provided according to an embodiment of the present invention is shown.

[0061] like Figure 1 As shown, the relay transmission application model of the embodiment of the present invention includes:

[0062] P transmitting terminals, which are numbered as transmitting terminal 1, transmitting terminal 2, ..., transmitting terminal P;

[0063] P receiving terminals, which are numbered as receiving terminal 1, receiving terminal 2, ..., receiving terminal P;

[0064] There are K levels of relays, each level of relays includes N relay terminals, which are numbered as relay terminal 1, relay terminal 2, ..., relay terminal N, where N>P. The relay terminals adopt an amplification and forwarding transmission method. Each transmitting terminal selects and only selects one relay terminal in each level of relays to transmit information, and forms a link with the receiving terminal through these relay terminals, for a total of P links. Each link includes K+1 sub-links, where P, K, and N are all positive integers not less than 1, and N>P.

[0065] For any m-th (1≤m≤P) link, there are K+2 terminals, including 1 transmitting terminal, K relay terminals and 1 receiving terminal. Since each link includes K+2 terminals, two adjacent terminals constitute a first-level sub-link. Therefore, for any m-th (1≤m≤P) link, it includes K+1-level sub-links. For any j-th (0≤j≤K)-level sub-link, it is composed of the j-th terminal and the j+1-th terminal. Therefore, in any m-th (1≤m≤P) link, by determining the number of the relay terminal selected at each level in the K-level relay, the selection of all relay terminals in the link can be determined. According to the permutation and combination theory, within K time slots, there are a total of Possible options for relay terminals.

[0066] Figure 2 An action network or a target network provided according to an embodiment of the present invention is shown.

[0067] like Figure 2As shown, the present invention uses deep reinforcement learning to establish a selection model to make the best selection for the relay terminal at each moment to maximize the average channel capacity, and introduces the calculation of switching loss in the process of making the best selection for the relay terminal.

[0068] The selection model established by deep reinforcement learning includes an action network, a target network and an experience pool. The structures of the action network and the target network are the same. Both the action network and the target network are composed of 1 input layer, 1 or more hidden layers, 1 output preset layer and 1 output layer. The input layer has P+N×K+2×P×N+(K-1)×N 2 neurons, and the output layer has neurons, and the output preset layer has The output preset layer can be divided into two parts, namely S part and A part. The S part has 1 neuron and the A part has N neurons. These two parts are fully connected with the previous layer respectively. The activation function of the output preset layer is a linear function, and the activation function of the hidden layer is a Relu function.

[0069] Figure 3 The flowchart of the laser communication multi-stage relay selection method considering switching loss provided by an embodiment of the present invention is shown.

[0070] like Figure 3 As shown, the steps of the selection method of the present invention are as follows:

[0071] S1. Clear the elements stored in the experience pool. The capacity of the experience pool is D and it has a stack form.

[0072] Initialize the parameters θ and θ of the action network and the target network tar , initialize the input state s k,1 ,s k,2 ;

[0073] Initialize the system's curtain variable i=1, time slot variable k=1, and set the target network update round number E update and greedy probability ε;

[0074] S2. Calculate the selection action number N of the relay terminal of each link in the kth time slot according to the action network. k , action number N k is determined as follows:

[0075] Generate a random number between 0 and 1. If the random number is less than the greedy probability ε, generate 0, and assign it to action number N. k ; N k The action number for selecting the relay terminal in the kth time slot, ranging from 0 to

[0076] If the random number is greater than the greedy probability ε, let Among them, φ j (s k |θ) represents the action network with parameter θ when the input is s k When , the jth element of the output layer is Represents the index j of the maximum value in the returned set {·}.

[0077] S3, number the action N k Mapping to the relay selection result, that is, the selection of the relay terminal in the link. The specific process is as follows:

[0078] Number the action N k Transform to K bits Binary Sequence Among them, any j-th (0≤j≤K-1) bit sequence It is a 0 to The numbers between are used to indicate the connection mode of the j-th level sub-link;

[0079] Create rows of For a table with 2 columns, the first column of the array corresponds to 0 to The second column of the table is the ordered arrangement of P numbers in the sequence [1,2,...,N]. In the first column, The sequence in the second column corresponding to the row is the relay terminal number of the link.

[0080] Figure 4 It shows the mapping of action numbers to relay selection results provided according to an embodiment of the present invention.

[0081] like Figure 4 As shown, for action number N k Mapping is the relay selection result. This embodiment combines Table 1 and Figure 4 The following example is given:

[0082] Table 1:

[0083] 0 [1,2] 1 [1,3] 2 [1,4] 3 [2,1] 4 [2,3] 5 [2,4] 6 [3,1] 7 [3,2] 8 [3,4] 9 [4,1] 10 [4,2] 11 [4,3]

[0084] The model parameters are set as: N = 4, K = 2, P = 2; then

[0085] According to the model parameters, the arrangement table can be obtained as shown in Table 1.

[0086] For example Then there is

[0087] when As can be seen from Table 1, the node numbers corresponding to the two sublinks from the transmitting terminal to the first-level relay are [1,3]. Therefore, transmitting terminal 1 selects relay terminal 1 of the first-level relay, and transmitting terminal 2 selects relay terminal 3 of the first-level relay.

[0088] when It can be seen from Table 1 that the node numbers corresponding to the two sublinks from the first-level relay to the second-level relay are [4,1]. Therefore, relay terminal 1 of the first-level relay selects relay terminal 4 of the second-level relay, and relay terminal 3 of the first-level relay selects relay terminal 1 of the second-level relay.

[0089] The formula for the average channel capacity taking into account switching loss is derived as follows:

[0090] Based on the transmitting terminal in the prior art, the channel gains from the transmitting terminal to any relay terminal, from any relay terminal to any relay terminal, and from any relay terminal to the receiving terminal in the current time slot are known. The present invention introduces the loss of the overall channel capacity of the system caused by the terminal switching process, namely the switching loss.

[0091] In P communication links, the information sent by each link is equal, so the total channel capacity of the system is equal to the sum of the channel capacity of each link in P communications. The expression of the channel capacity of the kth time slot and the mth link is as follows:

[0092]

[0093] in, represents the equivalent signal-to-noise ratio of the kth time slot and the mth link; because in each time slot, the link can communicate only when all terminals complete the switching work, so the switching loss of each link is Determined by the maximum switching loss among the K+1 sub-links.

[0094] Assume that ρ(m,l,k) represents the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th link, and ρ′(m,l,k) represents the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th (1≤m≤P)-th link at the previous moment, where 1≤m≤P and 0≤l≤K. Then:

[0095]

[0096] Therefore, the switching loss of the kth time slot and the mth link is The expression is as follows:

[0097]

[0098] Wherein, τ represents the loss coefficient when switching between adjacent relay terminals;

[0099] Based on the above derivation, the formula for the average channel capacity considering switching loss is as follows:

[0100]

[0101] Where M represents the total number of time slots. represents the switching loss of any k-th time slot and m-th link; h represents the photoelectric conversion coefficient, represents the channel gain in the j-th sublink of any k-th time slot and m-th link, P t Indicates the transmit power, Represents the equivalent noise power between sub-links.

[0102] Calculate the selection benefit r based on the average channel capacity formula k as follows:

[0103]

[0104] S4, the relay selection result and selection benefit obtained in S3 are stored in the experience pool as selection experience, that is, (s k ,N k ,r k ,s k+1 ) is stored in the experience pool as a selection experience. If the experience pool is not full, repeat S4; if the experience pool is full, execute S5.

[0105] S5. Perform round-robin on the action network and the target network p Training, the training process is as follows:

[0106] Get L selected experiences from the experience pool Where 1≤L p ≤D,p=1,2,...,L.

[0107] For any L p (p=1,2,...,L) experiences, all calculated

[0108] Where g represents the discount factor, Denote the parameter as θ tar The target network has an input layer of , the jth element of the output layer.

[0109] The loss function of the action network is calculated as follows:

[0110]

[0111] Update the parameters θ of the action network according to the loss function;

[0112] If i is E update The parameter θ of the target network is an integer multiple of tar Update to θ;

[0113] If i is not E update The target network parameter θ is an integer multiple of tar No update;

[0114] At this time, if k is less than M, update the value of k to k+1 and keep the value of the screen variable i unchanged;

[0115] If k is equal to M, then update the value of k to 1 and determine whether the scene variable i is less than E at this time p , if i is less than E p , then update i to i+1 and jump to S2; if i is equal to E p , end the training.

[0116] S6. Perform relay selection based on the trained action network, initialize k=1, and initialize the directions of all transmitting terminals and relay terminals at time 0, and repeat the following actions until k=M:

[0117] The direction of the transmitting terminal and the relay terminal in the k-1th time slot and the channel information in the kth time slot are used as the input state s k Input the trained action network and get the optimal action number as And number the action N k Mapping is the relay selection result.

[0118] When k=M, the multi-stage relay selection of laser communication is completed.

[0119] Figure 5 The structure of the application system provided according to the embodiment of the present invention is shown.

[0120] like Figure 5 As shown, the present invention is applicable to a laser communication system with multiple relay nodes, and the relay nodes adopt a decoding and forwarding method. The superiority and practicality of the present invention are explained through specific experiments.

[0121] Figure 6 A performance curve comparison diagram a of the present invention and the greedy algorithm provided according to an embodiment of the present invention is shown.

[0122] Figure 7 FIG. b shows a performance curve comparison diagram of the present invention and the greedy algorithm provided according to an embodiment of the present invention.

[0123] Figure 6 In the paper, the system parameters are: N=4, K=2, P=2, M=10, τ=0.2.

[0124] Figure 7 In the paper, the system parameters are: N=4, K=3, P=2, M=10, τ=0.2.

[0125] like Figure 6 , Figure 7 As shown, the existing greedy algorithm selects the relay terminal with the best current channel condition without considering the switching loss, while the present invention takes the switching loss into consideration and has better channel capacity performance. Especially with the deepening learning of the action network, when the present invention is used for relay selection, the average channel capacity becomes higher and higher.

[0126] Although the embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. Those skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0127] The above specific implementations of the present invention do not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A laser communication multi-stage relay selection method considering switching loss, and its application system includes: P transmitting terminals, P receiving terminals and K levels of relays, each level of the relays includes N relay terminals, each of the transmitting terminals selects only one of the relay terminals in each level of the relays for information transmission, and forms P links with the receiving terminal, each link includes K+1 sub-links, where P, K, and N are all positive integers not less than 1, and N>P, characterized in that a selection model is established using deep reinforcement learning to optimally select the relay terminal at each moment to maximize the average channel capacity; The selection model includes an action network, a target network and an experience pool. The action network and the target network have the same structure, and both are composed of an input layer, a hidden layer, an output preset layer and an output layer. The steps for selecting a method are as follows: S1. Clear the elements stored in the experience pool and initialize the parameters θ and θ of the action network and the target network. tar , initialize the system's curtain variable i = 1, time slot variable k = 1, set the target network update round number E update and greedy probability ε, total number of training rounds E p ; S2. Determine the action number N of the relay selection for each link in the kth time slot according to the action network. k , action number N k is determined as follows: Generate a random number between 0 and 1. If the random number is less than the greedy probability ε, generate 0, and assign it to action number N k ; If the random number is greater than the greedy probability ε, let Among them, φ j (s k |θ) represents the action network with parameter θ when the input is s k When , the jth element of the output layer, represents the index j of the maximum value in the returned set {·}; S3, number the action N k Mapped to the relay selection result, the average channel capacity formula considering the switching loss is derived as follows: Where M represents the total number of time slots. represents the switching loss of any k-th time slot and m-th link; η represents the photoelectric conversion coefficient, represents the channel gain in the j-th sublink of any k-th time slot and m-th link, P t Indicates the transmit power, Represents the equivalent noise power between sub-links; And calculate the selection benefit r according to the average channel capacity formula k as follows: S4, storing the relay selection result and the selection benefit obtained in S3 as selection experience in the experience pool; If the experience pool is not full, repeat S4; If the experience pool is full, execute S5; S5. Based on the L selected experiences in the experience pool, the action network and the target network are rotated. p train; S6. Perform relay selection based on the trained action network, and repeat the following actions until k=M: The direction of the transmitting terminal and the relay terminal in the k-1th time slot and the channel information of the kth time slot are used as the input state s k Input the trained action network and obtain the optimal action number:

2. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 1, characterized in that: The input layer includes P+N×K+2×P×N+(K-1)×N 2 neurons, the output layer has neurons, the output preset layer has +1 neuron, the output preset layer is divided into an S part and an A part, the S part has 1 neuron, and the A part has N neurons.

3. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 1, characterized in that: The input state s of the action network k The length is P+N×K+2×P×N+(K-1)×N 2 ,s k The first P+N×K elements of k,1 Indicates that k 2×P×N+(K-1)×N 2 Elements are s k,2 Indicates that s k,1 Reflects the direction of all transmitting terminals and relay terminals in the k-1th time slot, s k,2 Reflects all channel gains in the kth time slot.

4. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 1, characterized in that: Action No. N k The specific process of mapping to relay selection results is as follows: Number the action N k Transform to K bits Binary Sequence Among them, any j-th bit sequence It is a 0 to The numbers between are used to indicate the connection mode of the j-th level sub-link; Create rows of For an array with 2 columns, the first column of the array corresponds to 0 to The second column of the array is the ordered arrangement of P numbers in the sequence [1,2,...,N]. In the first column, The sequence in the second column corresponding to the row is the relay terminal number of the link.

5. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 1, characterized in that: The derivation process of the average channel capacity formula considering switching loss is as follows: The expression of the channel capacity of the kth time slot and the mth link is as follows: in, represents the equivalent signal-to-noise ratio of the kth time slot and the mth link; Let ρ(m,l,k) represent the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th link, and ρ′(m,l,k) represent the number of the lower-level terminal pointed to by the l-th level terminal in the k-th time slot and the m-th (1≤m≤P)-th link at the previous moment, where 1≤m≤P and 0≤l≤K. Switching loss of the kth time slot and the mth link The expression is as follows: Wherein, τ represents the loss coefficient when switching between adjacent relay terminals; Based on the above derivation, the formula for the average channel capacity considering switching loss is as follows:

6. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 1, characterized in that: The L selection experiences are expressed as Where p represents the number of the selected experience.

7. The laser communication multi-stage relay selection method considering switching loss as claimed in claim 6, characterized in that: The training process of the action network and the target network is as follows: Get L selected experiences from the experience pool Where 1≤L p ≤D,p=1,2,...,L For any L p (p=1,2,...,L) experiences, all calculated Where γ represents the discount factor, Denote the parameter as θ tar The target network has an input layer of When , the jth element of the output layer; The loss function of the action network is calculated as follows: Update the parameters θ of the action network according to the loss function; If i is E update The parameter θ of the target network is an integer multiple of tar Update to θ; If i is not E update The target network parameter θ is an integer multiple of tar No update; If i equals E p , end the training.