The invention provides a Q-learning
algorithm-based adaptive fault-tolerant routing
planning method for a faulty on-
chip optical network. The method comprises the following steps: S1, constructing a
network model according to the state of an
optical router in the network and a
network topology structure, and defining a network path
reward value evaluation model; s2, calculating a corresponding path
reward value from a current node to an adjacent node according to the network path
reward value evaluation model, determining an optimal next node from the path reward value, updating a Q table, and enabling the node to be the current node; s3, if the current node is a target node, ending the calculation of this round, and obtaining a planned path and a reward value of the path; if the current node is located in the fault domain, ending the calculation; if not, repeating the steps S2-S3; and S4, obtaining a plurality of planned paths according to a preset learning round, and determining an optimal path from the planned paths. According to the method provided by the invention, the optimal path is selected from the paths which are prevented from passing through the fault domain through the Q-learning
algorithm, so that the
network performance can be effectively improved.