Joint optimization method and system for multi-stage amplification gain flatness and nonlinear power transfer

By establishing a multi-span optical fiber channel model and DDPG reinforcement learning algorithm in the optical fiber communication system, the power is dynamically adjusted to solve the joint equalization problem of EDFA gain unevenness and SRS nonlinear power transfer, and achieve flat and smooth EDFA gain with different parameters. The dynamic equalization of nonlinear power transfer reduces losses and costs and improves the transmission performance of optical fiber communication systems.

CN116865901BActive Publication Date: 2024-10-11BEIJING INST OF TECH +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310942030.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-29
Publication Date
2024-10-11
Estimated Expiration
2043-07-29

AI Technical Summary

Technical Problem

The joint equalization of EDFA gain unevenness and SRS nonlinear power transfer in existing optical fiber communication systems is difficult to achieve. Commercial gain flattening filters (GFF) have insufficient universality, increased losses and high costs, and cannot be dynamically adjusted to adapt to environmental changes.

Method used

Using a multi-stage amplification joint optimization method for gain flatness and nonlinear power transfer, by establishing a multi-span fiber channel model including EDFA and SRS, and combining it with the DDPG reinforcement learning algorithm, the power is dynamically adjusted to achieve a balance between gain flatness and nonlinear power transfer. , replacing GFF to reduce loss and cost, and achieve EDFA gain flatness for different parameters.

Benefits of technology

It achieves the universality and dynamic equalization of EDFA gain flatness, reduces the complexity and cost of the system structure, and improves the transmission performance and stability of the optical fiber communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116865901B_ABST
    Figure CN116865901B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for joint optimization of multi-stage amplification gain flatness and nonlinear power transfer, and relates to the field of high-speed optical communication technology. The method comprises: establishing a multi-span actual high-speed optical fiber transmission channel model including erbium-doped fiber amplifier EDFA and stimulated Raman SRS nonlinear power transfer effect, simulating the transmission characteristics of polarization-multiplexed high-order orthogonal amplitude modulation QAM signals in dense wavelength division multiplexing DWDM optical transmission systems, establishing a deep deterministic policy gradient DDPG reinforcement learning algorithm model, adding the DWDM optical fiber communication system model and the DDPG algorithm to the reinforcement learning code, debugging the established reinforcement learning model, and jointly regulating the DWDM power with a wavelength selective switch WSS. The present invention helps to achieve dynamic balance under different parameter changes, achieve higher SNR and improve the overall performance of optical transmission trunks, and is more universal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of high-speed optical communication, and in particular to a method and system for jointly optimizing multi-stage amplification gain flatness and nonlinear power transfer. Background Art

[0002] Optical backbone network communication plays a key role in achieving long-distance high-speed information transmission. In order to ensure the reliability and high quality of communication, a high signal-to-noise ratio (SNR) must always be maintained in the transmission trunk line. Multi-stage optical amplification technology in backbone network links can achieve power amplification of wavelength division signals and then achieve ultra-long distance transmission. As the transmission distance increases, in order to reduce the spontaneous emission noise introduced by the multi-stage optical amplifier (EDFA), EDFA gain flattening filtering, and fiber stimulated Raman scattering (SRS) effect, indifferent optical filtering is usually used to obtain high flatness of wavelength division signals, but this method will reduce the SNR and limit the transmission performance of the optical communication system.

[0003] Erbium-doped fiber amplifier (EDFA) is a type of optical amplifier. EDFA has the characteristics of high efficiency and high gain, and can amplify multi-wavelength signals. Therefore, in order to improve the transmission SNR in the optical fiber communication system, EDFA is selected to amplify and transmit the signals of each wavelength in the wavelength division multiplexing (WDM) system. When ordinary EDFA works at a single wavelength, the saturated output power of each wavelength is not much different, but the small signal gain of different wavelengths is very different, so it will cause the problem of uneven gain of EDFA. At the same time, there are nonlinear effects in the optical fiber. Under the action of high-intensity pump light, the optical field in the optical fiber exchanges energy and momentum, that is, stimulated Raman scattering, and nonlinear power transfer occurs during the scattering process. With the development of high-speed dense wavelength division multiplexing (DWDM) systems, the joint balance of EDFA gain unevenness and SRS nonlinear power transfer cannot be ignored.

[0004] At present, domestic and foreign researchers have also carried out various studies on the problem of uneven EDFA gain, which can be divided into two categories. One is to improve the erbium fiber gain characteristics by studying the material parameters of erbium-doped fiber (EDF) to make the EDFA gain more efficient and flatter. The other method is to study the structure of EDFA and add specific compensation curves or filters according to the gain characteristics to achieve the purpose of EDFA gain flatness. In response to the problem of SRS nonlinear power transfer, some researchers optimize the power through machine learning evolutionary algorithms and then use wavelength selective switches (WSS) for channel equalization. Others directly establish the mathematical model of SRS and perform different compensations on the models obtained at different modulation frequencies.

[0005] In DWDM optical fiber communication systems, due to channel loss, EDFA is required for multi-span amplification. In actual commercial applications, a gain flattening filter (GFF) is used to achieve gain flattening. However, GFF can only flatten the gain of a specific EDFA and is not universal. Moreover, as the transmission distance increases, GFF will also attenuate the gain, increasing the loss. At the same time, GFF also has the problem of high cost. When solving the problem of SRS nonlinear power transfer, the algorithm's power optimization and the established mathematical model are established under the condition that the fiber length, fiber characteristics, signal power and wavelength are constants. However, in actual situations, these parameters will no longer be constants due to environmental or other changes, so the equalization model needs to be dynamically adjusted to adapt to the actual changing situation.

[0006] Therefore, a multi-stage amplification gain flattening and nonlinear power transfer joint optimization method and system are proposed to solve the problems that the existing GFF is not universal for EDFA gain flattening, increases losses, has a complex structure, is costly, and the SRS cannot dynamically adjust the equalization model. This is a problem that technical personnel in this field urgently need to solve. Summary of the invention

[0007] In view of this, the present invention provides a multi-stage amplification gain flattening and nonlinear power transfer joint optimization method and system, which can achieve a high stability balance effect.

[0008] In order to achieve the above object, the present invention adopts the following technical solution:

[0009] A multi-stage amplification gain flattening and nonlinear power transfer joint optimization method comprises the following steps:

[0010] S1. Establish a multi-span fiber channel model including EDFA and SRS to simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model;

[0011] S2. Establish DDPG reinforcement learning algorithm model;

[0012] S3, adding the DWDM optical fiber communication system model in S1 and the DDPG algorithm model in S2 to the reinforcement learning code;

[0013] S4, debugging the reinforcement learning model established in S2 until the offset of the output spectrum is stabilized within a preset value;

[0014] S5. Use WSS to jointly control DWDM power.

[0015] In the above method, optionally, S1 specifically comprises the following steps:

[0016] S101, establishing a first single-mode optical fiber channel model for signal generation, transmission, optical fiber transmission, reception and data processing;

[0017] S102, adding optical fiber characteristics to the first single-mode optical fiber channel model to obtain a second single-mode optical fiber channel model;

[0018] S103, using the QAM signal to detect whether the second single-mode optical fiber channel model is available, if available, proceeding to S104;

[0019] S104, establishing an EDFA model and an SRS model, and adding the established EDFA model and SRS model to the second single-mode optical fiber channel model available after verification in S103, to obtain a multi-span optical fiber channel model including EDFA and SRS.

[0020] In the above method, optionally, the optical fiber characteristics in S102 include but are not limited to dispersion, nonlinearity, attenuation, birefringence and polarization mode dispersion.

[0021] In the above method, optionally, S2 specifically includes the following steps:

[0022] S201, determining that the agent algorithm is a deep deterministic policy gradient algorithm;

[0023] S202, determine the state and reward: the deep deterministic policy gradient receives the initial state of the environment as the agent and takes action. The DWDM optical fiber communication system model changes its state after receiving the action as the environment and returns a reward.

[0024] In the above method, optionally, the expression of the reward in S202 is as follows:

[0025] Reward=1 / BER+SNR+1 / PDL+1 / Pmean (1)

[0026] Among them, Reward represents reward, BER represents the bit error rate of the optical fiber system, SNR represents signal-to-noise ratio, PDL represents polarization-dependent loss, and Pmean represents the mean output power of each wavelength.

[0027] In the above method, optionally, the offset of the output spectrum in S4 is stabilized within 2 dB.

[0028] The above method is optional. In S5, WSS is used to implement power control of different wavelengths of the DWDM system, replacing GFF to achieve wavelength flatness. The specific value is obtained from the training result Action in S4.

[0029] A multi-stage amplification gain flattening and nonlinear power transfer joint optimization system, applying any of the multi-stage amplification gain flattening and nonlinear power transfer joint optimization methods described above, comprising a multi-span fiber channel model establishment module, a reinforcement learning model establishment module, a parameter input module, a debugging module, and a power control module connected in sequence;

[0030] Multi-span fiber channel model module, used to establish a multi-span fiber channel model including EDFA and SRS, and simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model;

[0031] Establish a reinforcement learning model module to build the DDPG reinforcement learning algorithm model;

[0032] A parameter input module is used to add the DWDM optical fiber communication system model in S1 and the DDPG algorithm model in S2 into the reinforcement learning code;

[0033] A debugging module, used to debug the reinforcement learning model in the reinforcement learning model establishment module until the offset of the output spectrum is stabilized within a preset value;

[0034] The power control module is used to jointly control the DWDM power using WSS.

[0035] It can be seen from the above technical solutions that, compared with the prior art, the present invention provides a method and system for joint optimization of multi-stage amplification gain flattening and nonlinear power transfer, which has the following beneficial effects: 1) The present invention replaces the commercial GFF, can perform gain flattening on EDFAs with different parameters, has universality, optimizes the system structure, and reduces costs; 2) The present invention targets the parameters in the SRS that change with the environment, directly modifies them in the model, makes power selection through the DDPG algorithm, and achieves the purpose of dynamic balancing; 3) The present invention realizes the joint balancing of multi-stage amplification gain flattening and nonlinear power transfer in the DWDM optical fiber communication system, and improves the balancing efficiency through the reinforcement learning algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0037] Figure 1 A flow chart of a multi-stage amplification gain flattening and nonlinear power transfer joint optimization method disclosed in the present invention;

[0038] Figure 2A schematic diagram of a multi-stage amplification gain flattening and nonlinear power transfer joint optimization method disclosed in this embodiment;

[0039] Figure 3 The present invention discloses a structural block diagram of a multi-stage amplification gain flattening and nonlinear power transfer joint optimization system. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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 device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0042] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0043] This method uses the DDPG algorithm in reinforcement learning, which can efficiently learn on continuous actions. The multi-span fiber channel model including EDFA and SRS is used as the environment in reinforcement learning. DDPG is used as the agent in reinforcement learning to achieve the optimal reward through learning strategies during the interaction process. DDPG replaces GFF to make decisions and dynamically adjusts the balance model to achieve the joint balance of EDFA and SRS.

[0044] Reference Figure 1 As shown, the present invention discloses a multi-stage amplification gain flattening and nonlinear power transfer joint optimization method, comprising the following steps:

[0045] S1. Establish a multi-span fiber channel model including EDFA and SRS to simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model;

[0046] S2. Establish DDPG reinforcement learning algorithm model;

[0047] S3, adding the DWDM optical fiber communication system model in S1 and the DDPG algorithm model in S2 to the reinforcement learning code;

[0048] S4, debugging the reinforcement learning model established in S2 until the offset of the output spectrum is stabilized within a preset value;

[0049] S5. Use WSS to jointly control DWDM power.

[0050] Furthermore, S1 specifically includes the following steps:

[0051] S101, establishing a first single-mode optical fiber channel model for signal generation, transmission, optical fiber transmission, reception and data processing;

[0052] S102, adding optical fiber characteristics to the first single-mode optical fiber channel model to obtain a second single-mode optical fiber channel model;

[0053] S103, using the QAM signal to detect whether the second single-mode optical fiber channel model is available, if available, proceeding to S104;

[0054] S104, establishing an EDFA model and an SRS model, and adding the established EDFA model and SRS model to the second single-mode optical fiber channel model available after verification in S103, to obtain a multi-span optical fiber channel model including EDFA and SRS.

[0055] Furthermore, the optical fiber characteristics in S102 include but are not limited to dispersion, nonlinearity, attenuation, birefringence and polarization mode dispersion.

[0056] Specifically, the nonlinear Schrödinger equation (NLSE) is solved by using the split-step Fourier algorithm (SSFM). Over a very short transmission distance, the nonlinearity and dispersion are processed in two steps, and one term is set to zero in each step to solve the other term. The obtained dispersion and nonlinear expressions are implemented through Python code, and the influence of the attenuation, birefringence and polarization mode dispersion of the optical fiber on the signal during the transmission process is added to complete the basic modeling of the single-mode optical fiber channel.

[0057] Further, the specific content of S103 is: randomly generate a binary sequence, perform QAM encoding on it, upsample it and modulate it onto different optical carriers. Send it into the first single-mode optical fiber channel model, perform coherent reception, matched filtering and downsampling on the output signal, and then add some digital signal processing (DSP) algorithms, including dispersion compensation, nonlinear compensation, polarization mode dispersion compensation, polarization demultiplexing, carrier phase recovery and phase estimation, to check whether the bit error rate meets the requirements, so as to verify whether the first single-mode optical fiber channel model is available.

[0058] Furthermore, the EDFA model in S104 has different amplification factors for signals of different wavelengths, and the nonlinear power transfer of the SRS model is related to the power of the transmission signal.

[0059] Furthermore, S2 specifically includes the following steps:

[0060] S201, determining that the agent algorithm is a deep deterministic policy gradient algorithm;

[0061] S202, determine the state and reward: the deep deterministic policy gradient receives the initial state of the environment as the agent and takes action. The DWDM optical fiber communication system model changes its state after receiving the action as the environment and returns a reward.

[0062] Furthermore, the expression of the reward in S202 is as follows:

[0063] Reward=1 / BER+SNR+1 / PDL+1 / Pmean (1)

[0064] Among them, Reward represents reward, BER represents the bit error rate of the optical fiber system, SNR represents signal-to-noise ratio, PDL represents polarization-dependent loss, and Pmean represents the mean output power of each wavelength.

[0065] Furthermore, the deep deterministic policy gradient algorithm in S201 is a combination of the actor-critic algorithm, the deep Q network (DQN) and the policy gradient. It has the ability to learn on continuous actions and is suitable for continuously changing power signals in DWDM optical fiber communication systems. DDPG adds a layer of policy network on the basis of DQN to output action values. It needs to learn the Q network while learning the policy network, which improves the stability and convergence of the algorithm.

[0066] Further, in the reinforcement learning algorithm in S202, DDPG receives the initial state of the environment as an agent and takes an action, and the DWDM optical fiber communication system model as the environment changes its state after receiving the action and returns a reward. Determining the input power of signals of different wavelengths is the action of the agent, and the bit error rate (BER), signal-to-noise ratio (SNR), polarization-dependent loss (PDL) and output power mean (Pmean) of each wavelength of the optical fiber communication system are the states given by the environment.

[0067] Furthermore, the specific content of S3 is: In this process, the choice of input power of signals of different wavelengths by the intelligent agent will make the power mean of the output signal smaller and smaller, and the signal gain will gradually become flat. It replaces the gain compensation of the GFF filter for EDFA, reduces losses, optimizes the structure, saves costs, and can achieve gain flatness for EDFAs with different parameters, which is more universal. There is no need to establish a mathematical model with fixed parameters of SRS nonlinear power transfer. Only through the reward of environmental feedback in reinforcement learning and the DDPG optimization strategy network, the purpose of dynamic balance can be achieved. Through the interaction between the established DWDM optical fiber communication system model and DDPG, multi-stage amplification gain flatness and nonlinear power transfer joint balance can be achieved.

[0068] Furthermore, the offset of the output spectrum in S4 is stabilized within 2 dB.

[0069] Furthermore, in S5, WSS is used to implement power control of different wavelengths of the DWDM system, replacing GFF to achieve wavelength flatness. The specific value is obtained from the training result Action in S4.

[0070] See also Figure 2 As shown, the present invention discloses a schematic diagram of a joint optimization method for multi-stage gain flattening and nonlinear power transfer. The left side is the basic structure of reinforcement learning (RL), which is mainly divided into two parts: agent and environment (Env). Through the continuous interaction between the two, the agent gets reward feedback from Env and changes the action selection. After Env receives the action, the state changes and the reward is fed back to the agent. Using the DWDM optical fiber communication system as Env, through signal sending, transmission, reception and DSP, some required results can be obtained as rewards to be fed back to DDPG.

[0071] Using DDPG as an agent to select an action, replacing GFF to flatten the EDFA gain, reducing loss and cost, and can flatten the gain of EDFAs with different parameters, which is universal and does not require the establishment of a mathematical model with fixed parameters to compensate for SRS nonlinear power transfer, and is more suitable for dynamic equalization. This embodiment discloses a joint optimization method for multi-stage amplification gain flattening and nonlinear power transfer, and the specific method is as follows:

[0072] Step 1. Establish a DWDM optical fiber communication system model including EDFA gain unevenness and SRS nonlinear power transfer. Use Python to implement binary signal generation, 16QAM encoding, upsampling shaping filtering, DWDM Mach-Zehnder modulation, optical fiber channel transmission, low-pass filtering (LP), matched filter downsampling, DSP, and calculate the required results.

[0073] Step 2: Establish a reinforcement learning model, select the DDPG algorithm suitable for continuous actions as the Agent, optimize the strategy, select a suitable Action as the input power of different wavelength signals of the DWDM optical fiber communication system in Step 1, and use the BER, SNR, PDL, and Pmean obtained in Step 1 as the required reference State. In order to obtain obvious changes, the Reward expression of Env feedback is Reward = 100*(1 / BER+SNR+1 / PDL+1 / Pmean).

[0074] Step 3: Add the DWDM optical fiber communication system established in step 1 and the DDPG algorithm in step 2 to the reinforcement learning model. By optimizing the strategy through DDPG, the appropriate signal transmission power is adjusted to achieve the joint balance of EDFA gain unevenness and SRS nonlinear power transfer. The EDFA and SRS in different situations can be adjusted in real time to achieve the purpose of dynamic balance.

[0075] Step 4: Debug the code of the established reinforcement learning model. DDPG combines the Actor-Critic algorithm, DQN, and Policy Gradient network, so there is sufficient exploration in the selection of actions. It can also achieve the maximum reward through the function approximation method, so that the system can better jointly balance the uneven effects of the two links.

[0076] Step 5: After the ideal reward is obtained through reinforcement learning training and the output power is stable, the DDPG action is used as the input power of different wavelengths to achieve precise control of the DWDM system power using WSS, replacing GFF to achieve the purpose of output wavelength flatness.

[0077] and Figure 1Corresponding to the method described above, an embodiment of the present invention further provides a multi-stage amplification gain flattening and nonlinear power transfer joint optimization system for Figure 1 In the specific implementation of the method, a multi-stage amplification gain flattening and nonlinear power transfer joint optimization system provided by the embodiment of the present invention can be applied to computer terminals or various mobile devices, and its structural schematic diagram is shown in FIG. Figure 3 As shown, it specifically includes a module for establishing a multi-span fiber channel model, a module for establishing a reinforcement learning model, a parameter input module, a debugging module, and a power control module connected in sequence; wherein,

[0078] Multi-span fiber channel model module, used to establish a multi-span fiber channel model including EDFA and SRS, and simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model;

[0079] Establish a reinforcement learning model module to build the DDPG reinforcement learning algorithm model;

[0080] A parameter input module is used to add the DWDM optical fiber communication system model in S1 and the DDPG algorithm model in S2 into the reinforcement learning code;

[0081] A debugging module, used to debug the reinforcement learning model in the reinforcement learning model establishment module until the offset of the output spectrum is stabilized within a preset value;

[0082] The power control module is used to jointly control the DWDM power using WSS.

[0083] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0084] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.

[0085] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0086] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A joint optimization method for multi-stage amplification gain flattening and nonlinear power transfer, characterized in that: The following steps are involved: S1. Establish a multi-span fiber channel model including EDFA and SRS to simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model; S2. Establish DDPG reinforcement learning algorithm model; S3, adding the DWDM optical fiber communication system model in S1 and the DDPG reinforcement learning algorithm model in S2 to the reinforcement learning code; S4, debugging the reinforcement learning model established in S2 until the offset of the output spectrum is stabilized within a preset value; S5, use WSS to jointly control DWDM power; S2 specifically includes the following steps: S201, determining that the agent algorithm is a deep deterministic policy gradient algorithm; S202, determine the state and reward: the deep deterministic policy gradient receives the initial state of the environment as the agent and takes action. The DWDM optical fiber communication system model changes its state after receiving the action as the environment and returns a reward.

2. A multi-stage amplification gain flattening and nonlinear power transfer joint optimization method according to claim 1, characterized in that: S1 specifically includes the following steps: S101, establishing a first single-mode optical fiber channel model for signal generation, transmission, optical fiber transmission, reception and data processing; S102, adding optical fiber characteristics to the first single-mode optical fiber channel model to obtain a second single-mode optical fiber channel model; S103, using the QAM signal to detect whether the second single-mode optical fiber channel model is available, if available, proceeding to S104; S104, establishing an EDFA model and an SRS model, and adding the established EDFA model and SRS model to the second single-mode optical fiber channel model available after verification in S103, to obtain a multi-span optical fiber channel model including EDFA and SRS.

3. A multi-stage amplification gain flattening and nonlinear power transfer joint optimization method according to claim 2, characterized in that: The optical fiber characteristics in S102 include but are not limited to dispersion, nonlinearity, attenuation, birefringence and polarization mode dispersion.

4. The method for joint optimization of multi-stage gain flattening and nonlinear power transfer according to claim 1, characterized in that: The expression of reward in S202 is as follows: Reward=1 / BER+SNR+1 / PDL+1 / Pmean (1) Among them, Reward represents reward, BER represents the bit error rate of the optical fiber system, SNR represents signal-to-noise ratio, PDL represents polarization-dependent loss, and Pmean represents the mean output power of each wavelength.

5. The method for joint optimization of multi-stage gain flattening and nonlinear power transfer according to claim 1, characterized in that: The output spectrum offset in S4 is stable within 2dB.

6. A multi-stage amplification gain flattening and nonlinear power transfer joint optimization method according to claim 1, characterized in that: In S5, WSS is used to control the power of different wavelengths in the DWDM system, replacing GFF to achieve wavelength flatness. The specific value is obtained from the training result Action in S4.

7. A multi-stage amplification gain flattening and nonlinear power transfer joint optimization system, characterized in that: A method for joint optimization of multi-stage amplification gain flatness and nonlinear power transfer as described in any one of claims 1 to 6 is applied, comprising a module for establishing a multi-span optical fiber channel model, a module for establishing a reinforcement learning model, a parameter input module, a debugging module, and a power control module connected in sequence; Multi-span fiber channel model module, used to establish a multi-span fiber channel model including EDFA and SRS, and simulate the transmission characteristics of QAM signals in the DWDM fiber communication system model; Establish a reinforcement learning model module to build the DDPG reinforcement learning algorithm model; Parameter input module, used to add the DWDM optical fiber communication system model and DDPG reinforcement learning algorithm model into the reinforcement learning code; A debugging module, used to debug the reinforcement learning model in the reinforcement learning model establishment module until the offset of the output spectrum is stabilized within a preset value; Power control module, used to jointly control DWDM power using WSS; The establishment of reinforcement learning model modules specifically includes: Determine the agent algorithm as a deep deterministic policy gradient algorithm; Determine the state and reward: The deep deterministic policy gradient receives the initial state of the environment as the agent and takes an action. The DWDM optical fiber communication system model changes the state after the environment receives the action and returns a reward.