A routing method, comprising: receiving, by a controller, a path measurement message, wherein the path measurement message comprises path measurement results of at least two paths between a first customer-premises equipment and a second customer-premises equipment; determining (S 104), by the controller, a path score of each of the at least two paths based on a preset rule and the path measurement results; determining, by the controller, a routing policy of the first customer-premises equipment based on the path score of each of the at least two paths; and sending, by the controller, the routing policy to the first customer-premises equipment, so that the first customer-premises equipment selects, from the at least two paths according to the routing policy, a path for transmitting a data packet; wherein the method further comprises: for each of the at least two paths, obtaining, by the controller, historical path scores of the path at at least two historical moments before a current time point; predicting a score change trend of the path based on the obtained historical path scores; and determining a future path score of the path at a future moment after the current time point based on the score change trend of the path; and the determining, by the controller based on a preset rule and the path measurement results, a path score of each of the at least two paths corresponding to the first customer-premises equipment comprises: for each of the at least two paths, calculating, by the controller, the path score of the path based on a path measurement result, the historical path scores, and the future path score of the path and according to the preset rule. receiving, by a controller, a path measurement message, wherein the path measurement message comprises path measurement results of at least two paths between a first customer-premises equipment and a second customer-premises equipment; determining (S 104), by the controller, a path score of each of the at least two paths based on a preset rule and the path measurement results; determining, by the controller, a routing policy of the first customer-premises equipment based on the path score of each of the at least two paths; and sending, by the controller, the routing policy to the first customer-premises equipment, so that the first customer-premises equipment selects, from the at least two paths according to the routing policy, a path for transmitting a data packet; wherein the method further comprises: for each of the at least two paths, obtaining, by the controller, historical path scores of the path at at least two historical moments before a current time point; predicting a score change trend of the path based on the obtained historical path scores; and determining a future path score of the path at a future moment after the current time point based on the score change trend of the path; and the determining, by the controller based on a preset rule and the path measurement results, a path score of each of the at least two paths corresponding to the first customer-premises equipment comprises: for each of the at least two paths, calculating, by the controller, the path score of the path based on a path measurement result, the historical path scores, and the future path score of the path and according to the preset rule. for each of the at least two paths, obtaining, by the controller, historical path scores of the path at at least two historical moments before a current time point; predicting a score change trend of the path based on the obtained historical path scores; and determining a future path score of the path at a future moment after the current time point based on the score change trend of the path; and the determining, by the controller based on a preset rule and the path measurement results, a path score of each of the at least two paths corresponding to the first customer-premises equipment comprises: for each of the at least two paths, calculating, by the controller, the path score of the path based on a path measurement result, the historical path scores, and the future path score of the path and according to the preset rule.