The application provides a multi-source detection and
hierarchical routing communication switching method and
system, and relates to the technical field of communication. The method comprises the following steps: a
client pulls encrypted configuration files from multiple CDN nodes in parallel and decrypts to obtain routing configuration information; in the operation gap after the user enters the business channel page and before triggering the business entrance, the background asynchronously detects the availability of the primary and
backup domain names; in response to the triggering of the business entrance,
hierarchical routing decisions are made according to the routing configuration information and the detection results, and the decision priorities are, in turn, full-
line level forced switching, conditional level intelligent switching and IP direct connection bottom line; when the IP direct connection is performed,
certificate fingerprint verification is performed; after the switching, the availability of the primary
domain name is continuously detected, and when the
recovery is performed, the automatic back switching is performed. The corresponding communication switching
system is also provided. Through the multi-level degraded link, the asynchronous detection, the
certificate security
verification and the
closed loop back switching mechanism, the end-to-end
high availability guarantee and the automatic self-healing of the
client business routing are realized.