Traffic scheduling method and apparatus, electronic device, and storage medium

By using the global scheduling server and routing model in the active-active data center, the egress link and failover strategy are dynamically adjusted, which solves the problems of business interruption and low resource utilization in the active-active data center when the network fails, and achieves a better Efficient traffic scheduling and business continuity.

WO2024179146A1PCT designated stage expired Publication Date: 2024-09-06CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
PCT/CN2023/140292
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-27
Filing Date
2023-12-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult for active-active data centers to quickly switch between active and backup centers when a network failure occurs, resulting in prolonged business interruption, low resource utilization, and high operation and maintenance costs.

Method used

Using a global scheduling server and a pre-trained routing model, the egress link is dynamically adjusted based on the current link configuration data and link quality data to ensure that business access requests are returned to users through the optimal route, and rapid failover is achieved in the event of network failure.

Benefits of technology

It improves system processing efficiency, shortens user waiting time, reduces operation and maintenance costs, and ensures business continuity and efficient use of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023140292_06092024_PF_FP
    Figure CN2023140292_06092024_PF_FP
Patent Text Reader

Abstract

The present application provides a traffic scheduling method and apparatus, an electronic device, and a storage medium, and relates to the technical field of traffic scheduling. In embodiments of the present invention, an optimal egress link of a first data center can be determined according to a pre-trained routing model, so that response traffic of a first service server for a service access request is returned to a user. In the embodiments of the present invention, machine learning is used to iteratively adjust a routing policy to determine an optimal egress link from a plurality of egress links according to current link configuration data and current link quality data, so as to dynamically adjust the egress link to provide an optimal access route for the user. The processing efficiency of a system can be integrally improved, and the waiting time of the user is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Traffic scheduling method, device, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 27, 2023, with application number 202310170635.5, and application name “Traffic Scheduling Method, Device, Electronic Device and Storage Medium”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the technical field of traffic scheduling, and in particular to a traffic scheduling method, device, electronic device, and storage medium. Background Art

[0004] With the advancement of information technology, data centers have become the hubs for data processing and service provision for governments, businesses, and financial institutions. Data integrity, consistency, and service continuity and reliability have become crucial factors in determining economic success and improving national well-being and livelihoods. A single data center presents the operational risk of a single point of failure. If a single data center experiences force majeure events such as infrastructure, power outages, or natural disasters, services will inevitably be impacted, making short-term recovery difficult. Consequently, requirements for dual data centers or three data centers in two locations have emerged. Ensuring that a data center can continue to provide services even in the event of a major disaster is a key technical consideration in data center construction, and all technical selection and architectural design must be centered around reliability and continuity.

[0005] In related fields, disaster recovery is often considered, with two or more data centers typically constructed, with the primary and backup data centers mirrored. The primary data center provides user services, while the backup data center backs up the primary data center's services, configurations, data, and so on. When a problem occurs in the primary data center, the backup data center takes over and continues to provide services. As can be seen, the backup data center is usually idle, resulting in wasted resources and increased operational costs. Active-active data centers can effectively address this issue. Active-active data centers involve two data centers providing services simultaneously and backing up each other. Even in the absence of a fault, individual services can be distributed across different data centers, avoiding the waste caused by an idle data center. This also expands service provision capabilities and generates greater economic benefits.

[0006] However, active-active data centers can lead to more complex network architecture and policy design. Traffic is distributed across two data centers, complicating traffic models. Different services located in different data centers can lead to diverse traffic scheduling. Fixed, single data center egress policies can impact user experience when network quality fluctuates. Accurately locating network failures and rapidly switching between primary and backup centers to minimize service interruption are also major challenges for active-active data centers.

[0007] Summary of the Invention

[0008] The embodiments of the present application provide a traffic scheduling method, device, electronic device, and storage medium to at least partially solve the problems existing in the related art.

[0009] A first aspect of an embodiment of the present application provides a traffic scheduling method, which is applied to a global scheduling server in an active-active data center traffic scheduling system. The active-active data center traffic scheduling system includes: a global scheduling server, a first data center, and a second data center. Each data center includes: at least one application server. The method includes:

[0010] Receive service access requests sent by users;

[0011] Forwarding the service access request to a first application server in the first data center to process the service access request, where the first application server in the first data center is determined based on the service access request and a load balancing policy;

[0012] Determine the optimal egress link of the first data center based on a pre-trained routing model. The optimal egress link is used to return the response traffic of the first service server to the service access request to the user.

[0013] The input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

[0014] Optionally, the method further comprises:

[0015] Collecting link quality configuration data of each egress link of the first data center;

[0016] Determine the link price value of each export link according to the current user's location;

[0017] Determine the user weight value of each egress link according to the current user;

[0018] Determine current link configuration data based on link quality configuration data, link price value, and user weight value;

[0019] The current packet loss rate and / or delay rate of each egress link of the first data center is collected to determine the current link quality data.

[0020] Optionally, each data center further includes: at least one application load balancing server; forwarding the service access request to the first application server of the first data center includes:

[0021] Determine the corresponding first data center based on the domain name carried in the service access request, forward the service access request to the first data center, and the first data center forwards the service access request to the application load balancing server in the first data center. The application load balancing server is used to determine the first application server based on the configuration and load balancing policy of each application server in the first data center;

[0022] The service access request is forwarded to the first application server.

[0023] Optionally, each data center further includes: at least one application load balancing server, and the application load balancing servers arranged in different data centers form a load balancing cluster; forwarding the service access request to the first application server of the first data center includes:

[0024] The first data center is determined based on the domain name carried in the service access request. The first data center forwards the service access request to the load balancing cluster. The load balancing cluster is used to determine the first application server based on the configuration and load balancing policy of each application server in the first and second data centers.

[0025] Forwards the service access request to the application server.

[0026] Optionally, the method further comprises:

[0027] Periodically sends probe messages to detect the reachability of target objects, including data center egress links, application load servers, data center interconnect links, and data center intranet links.

[0028] If any target object is unreachable, an alarm message is generated.

[0029] Optionally, the method further comprises:

[0030] In the event that the application load balancing server of the first data center fails, the business access request to the first data center will be forwarded to the application load balancing server of the second data center. The application load balancing server of the second data center is used to forward the business access request to the application server of the first data center according to the configuration and load balancing strategy of each application server in the first data center.

[0031] Optionally, the method further comprises:

[0032] In the event that the egress link of the first data center fails, the access domain name carried in the service access request is resolved to the address of the second data center, and the service access request is processed by the application server deployed in the second data center.

[0033] Optionally, the method further comprises:

[0034] In the event of a failure in the interconnection link between data centers, all domain names carried in the service access request are resolved to the address of the first data center, and the first data center becomes the primary data center.

[0035] A second aspect of an embodiment of the present application provides a traffic scheduling device, which is applied to a global scheduling server in an active-active data center traffic scheduling system. The active-active data center traffic scheduling system includes: a global scheduling server, a first data center, and a second data center. Each data center includes: at least one application server. The device includes:

[0036] Receiving module, used to receive service access requests sent by users;

[0037] a forwarding module, configured to forward the service access request to a first application server in the first data center to process the service access request, wherein the first application server in the first data center is determined based on the service access request and a load balancing policy;

[0038] A determination module, configured to determine an optimal egress link of the first data center based on a pre-trained routing model, wherein the optimal egress link is used to return the response traffic of the first service server to the service access request to the user;

[0039] The input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

[0040] Optionally, the device further comprises:

[0041] A collection module, configured to collect link quality configuration data of each egress link of the first data center;

[0042] A link price value determination module, configured to determine the link price value of each egress link according to the current user's location;

[0043] A user weighted value determination module is used to determine the user weighted value of each egress link according to the current user;

[0044] A link configuration data determination module, configured to determine current link configuration data based on link quality configuration data, link price value, and user weight value;

[0045] The link quality data determination module is used to collect the current packet loss rate and / or delay rate of each egress link of the first data center to determine the current link quality data.

[0046] Optionally, each data center further includes: at least one application load balancing server; and a forwarding module specifically configured to:

[0047] Determine the corresponding first data center based on the domain name carried in the service access request, forward the service access request to the first data center, and the first data center forwards the service access request to the application load balancing server in the first data center. The application load balancing server is used to determine the first application server based on the configuration and load balancing policy of each application server in the first data center;

[0048] The service access request is forwarded to the first application server.

[0049] Optionally, each data center further includes: at least one application load balancing server, where application load balancing servers arranged in different data centers form a load balancing cluster; and a forwarding module specifically configured to:

[0050] The first data center is determined based on the domain name carried in the service access request. The first data center forwards the service access request to the load balancing cluster. The load balancing cluster is used to determine the first application server based on the configuration and load balancing policy of each application server in the first and second data centers.

[0051] Forwards the service access request to the application server.

[0052] Optionally, the device further comprises:

[0053] The sending module is used to periodically send detection messages to detect the reachability of target objects, including: data center egress links, application load servers, data center interconnection links, and data center intranet links;

[0054] The generation module is used to generate alarm information when any target object is unreachable.

[0055] Optionally, the device further comprises:

[0056] The first fault handling module is used to forward the business access request to the first data center to the application load balancing server of the second data center when the application load balancing server of the first data center fails. The application load balancing server of the second data center is used to forward the business access request to the application server provider server of the first data center according to the configuration and load balancing policy of each application server of the first data center.

[0057] Optionally, the device further comprises:

[0058] The second fault processing module is used to resolve the access domain name carried in the service access request into the address of the second data center when a fault occurs in the first data center egress link, and the application server deployed in the second data center processes the service access request.

[0059] Optionally, the device further comprises:

[0060] The third fault processing module is used to resolve all domain names carried in the service access request into the address of the first data center when the interconnection link between the data centers fails. The first data center is the primary data center.

[0061] A third aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method of the first aspect of the present application.

[0062] The fourth aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, which, when executed by the processor, implements the steps in the method of the first aspect of the present application.

[0063] In this embodiment of the present application, the optimal egress link of the first data center can be determined based on a pre-trained routing model to return the response traffic of the first service server to the service access request to the user. In this embodiment of the present application, machine learning is used to iteratively adjust the routing strategy to determine the optimal egress link from multiple egress links based on current link configuration data and current link quality data. The egress link is then dynamically adjusted to provide the user with the optimal access route. This can improve the overall system processing efficiency and shorten user waiting time. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0065] FIG1 is a flow chart of a traffic scheduling method according to an embodiment of the present application;

[0066] FIG2 is a flow chart of another traffic scheduling method according to an embodiment of the present application;

[0067] FIG3 is a flow chart of another traffic scheduling method according to an embodiment of the present application;

[0068] FIG4 is a structural block diagram of a traffic scheduling device according to an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0070] 1 , a flow chart of a traffic scheduling method according to an embodiment of the present application is shown. The traffic scheduling method provided in the embodiment of the present application is applied to a global scheduling server in an active-active data center traffic scheduling system. The active-active data center traffic scheduling system includes: a global scheduling server, a first data center, and a second data center. Each data center includes: at least one application server. The traffic scheduling method provided in the embodiment of the present application may include the following steps:

[0071] S101: Receive a service access request sent by a user.

[0072] In the embodiment of the present application, the global scheduling server can connect to all data centers in the active-active data center traffic scheduling system and schedule service access requests from users to the corresponding first data center.

[0073] In the embodiment of the present application, the service access request sent by the user may carry user information, and the user information includes at least: user identification and user location.

[0074] S102: Forward the service access request to a first application server in a first data center to process the service access request. The first application server in the first data center is determined according to the service access request and a load balancing policy.

[0075] In an embodiment of the present application, the global scheduling server can forward the service access request to the first application server of the first data center corresponding to the service access request and complying with the load balancing policy based on the service access request and the load balancing policy, so that the first application server processes the service access request.

[0076] In an embodiment of the present application, the application servers deployed in the first data center and the second data center can be used to process different business services respectively, or multiple application servers can be configured to process the same business service. When multiple application servers are configured to process the same business service, their respective priorities can be configured.

[0077] In the embodiment of the present application, the load balancing strategy refers to balancing the traffic load of multiple business servers deployed in a data center that process the same business service.

[0078] S103: Determine the optimal egress link of the first data center based on the pre-trained routing model. The optimal egress link is used to return the response traffic of the first service server to the service access request to the user.

[0079] In the embodiment of the present application, the input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

[0080] In the embodiment of the present application, current link configuration data refers to fixed values ​​configured by the user or system administrator based on the link configuration, as well as configuration data of each link determined based on current user information. Current link quality data refers to the real-time network quality status of each link.

[0081] In an embodiment of the present application, the preset training model is a support vector machine (SVM) model, which takes link quality data sample values ​​and link configuration data sample values ​​as input, and takes sample routing results (i.e., optimal exit links) as output. The input and output are input as training vectors into the SVM model for training to obtain a trained model, i.e., a routing model.

[0082] In the embodiment of the present application, the sample routing result is an optimal egress link manually determined based on the link quality data sample value and the link configuration data sample value.

[0083] In actual application, the current link configuration data and the current link quality data are input into the trained routing model to obtain a routing result, namely, the optimal exit link corresponding to the user. Dynamic link adjustment is then performed based on the optimal exit link, so that the response traffic of the first service server to the service access request is returned to the user via the optimal exit link. In the embodiment of the present application, during the application process, the model can also be iteratively trained by continuously using real-time link configuration data and link quality data as input and the optimal exit link as output, thereby adaptively determining a more reliable exit link based on the network quality status.

[0084] In an embodiment of the present application, the operator of the user IP carried in the service access request sent by the user can select the exit link to enter the data center (for example: China Unicom users select exit link A, and China Telecom users select exit link B). Then, based on the current link configuration data and the current link quality data, the optimal exit link can be determined from multiple exit links to dynamically adjust the exit link to provide the user with the optimal access route.

[0085] Referring to Figure 2, a flow chart of a traffic scheduling method according to an embodiment of the present application is shown. The traffic scheduling method provided by the embodiment of the present application is applied to a global scheduling server in an active-active data center traffic scheduling system. The active-active data center traffic scheduling system includes: a global scheduling server, a first data center, and a second data center. Each data center includes: at least one application server and at least one application load balancing server. Specifically, the traffic scheduling method may include the following steps:

[0086] S201: Receive a service access request sent by a user.

[0087] Step S201 is similar to the above-mentioned step S101 and will not be described in detail in this embodiment of the present application.

[0088] S202: Forward the service access request to a first application server in a first data center to process the service access request. The first application server in the first data center is determined according to the service access request and a load balancing policy.

[0089] In the embodiment of the present application, at least one application load balancing server is deployed in each data center. Specifically, step S202 includes the following sub-steps:

[0090] S2021A, determines the corresponding first data center based on the domain name carried in the business access request, forwards the business access request to the first data center, and the first data center forwards the business access request to the application load balancing server in the first data center. The application load balancing server is used to determine the first application server based on the configuration and load balancing strategy of each application server in the first data center.

[0091] S2022A: Forward the service access request to the first application server.

[0092] In an embodiment of the present application, when a user accesses a service in a data center, the global scheduling server will resolve the domain name carried in the service access request into the exit service IP address of the data center closest to the user, and map the public network service IP to the private network IP address of the application load balancing server. The application load balancing server is associated with the application server and uses load balancing technology to dispatch traffic to the corresponding application server to provide services.

[0093] In the embodiment of the present application, the application load balancing servers arranged in different data centers can form a load balancing cluster. Specifically, the application load balancing servers in the data center are all deployed in a cluster and connected to the aggregation switch.

[0094] In this embodiment, the load balancing cluster uses a virtual service IP to proxy the actual IP address of the application system. The virtual IP address of the application load balancing server in the first data center and the virtual IP address of the application load balancing server in the second data center are set to the same node pool of the application system or database server. By setting priorities for the application system or database nodes, the same application can be deployed and deployed in both data centers for disaster recovery.

[0095] In an embodiment of the present application, the active-active data center traffic scheduling system has an active-active solution at the business layer: the user access address is globally scheduled by the global load server, and is resolved back to the application system server of the first data center or the second data center through DNS recursive resolution, and the service is provided by the application system server of the data center.

[0096] The active-active solution at the application layer is: the application load balancing servers of the first data center and the second data center can jointly provide application layer proxy services to the outside world. For each application group, the load balancing cluster provides different proxy IPs to Internet users. The global load balancing technology sets the same domain name pointing and different weight priorities for the two IPs to achieve load balancing of user business flows and backup of application systems.

[0097] The active-active solution at the database layer is to deploy the database in a distributed manner in the first and second data centers, using a master-slave structure. Some application systems use the first data center as the master database and the second data center as the slave database, while some application systems use the second data center as the master database and the first data center as the slave database. When the master database of the application system in a data center fails, the slave database of the same application system in another data center becomes the master database to take over the business.

[0098] In this case, step S202 includes the following sub-steps:

[0099] S2021B, determines the corresponding first data center based on the domain name carried in the business access request, and the first data center forwards the business access request to the load balancing cluster. The load balancing cluster is used to determine the first application server based on the configuration and load balancing strategy of each application server in the first data center and the second data center.

[0100] S2022B: Forward the service access request to the application server.

[0101] In the embodiment of the present application, the load balancing cluster can be used to perform unified traffic scheduling on the business servers deployed in the two data centers based on the configuration of the application server and the load balancing strategy.

[0102] S203, collecting link quality configuration data of each egress link of the first data center; determining a link price value of each egress link according to the current user's location; and determining a user weighted value of each egress link according to the current user.

[0103] In this embodiment of the present application, the link quality configuration data for each egress link is a pre-configured fixed value, such as a value between 1 and 100, representing the quality of the link. The link price value of each egress link refers to the distance of each link from the user, and the user weighted value of each egress link refers to the user's link demand for that egress link.

[0104] S204: Determine current link configuration data according to the link quality configuration data, the link price value, and the user weight value.

[0105] S205 , collecting the current packet loss rate and / or delay rate of each egress link of the first data center to determine current link quality data.

[0106] In the embodiment of the present application, the link quality data is the detection traffic information of each egress link, including delay rate, packet loss rate, etc.

[0107] S206: Determine the optimal egress link of the first data center based on the pre-trained routing model. The optimal egress link is used to return the response traffic of the first service server to the service access request to the user.

[0108] In the embodiment of the present application, an optimal exit link may be determined from multiple exit links to dynamically adjust the exit link and provide the user with an optimal access route.

[0109] 3 , a flow chart of a traffic scheduling method according to an embodiment of the present application is shown. The traffic scheduling method provided by the embodiment of the present application may specifically include the following steps:

[0110] S301: Receive a service access request sent by a user.

[0111] S302: Forward the service access request to the first application server of the first data center to process the service access request. The first application server of the first data center is determined according to the service access request and the load balancing policy.

[0112] S303: Determine the optimal egress link of the first data center based on the pre-trained routing model. The optimal egress link is used to return the response traffic of the first service server to the service access request to the user.

[0113] Steps S301 to S303 are similar to the above-mentioned steps S101 to S103 and will not be described in detail in this embodiment of the present application.

[0114] S304 , periodically sending a detection message to detect the reachability of a target object, the target object including: a data center egress link, an application load server, a data center interconnection link, and a data center intranet link.

[0115] S305: Generate an alarm message when any target object is unreachable.

[0116] In an embodiment of the present application, the global scheduling server can periodically send detection messages to detect the reachability of the target object, specifically to detect the network connectivity and network quality at a specific location, and generate interruption information for feedback when a network failure occurs; and then perform traffic scheduling in a timely manner according to the fault handling strategy set in advance based on the network interruption situation.

[0117] In the embodiment of the present application, the following fault handling strategies are proposed for the case where the target object is unreachable:

[0118] 1. Application load balancing server failure: When the application load balancing server in the first data center fails, the business access request to the first data center will be forwarded to the application load balancing server in the second data center. The application load balancing server in the second data center is used to forward the business access request to the application server in the first data center according to the configuration and load balancing policy of each application server in the first data center.

[0119] In the embodiment of the present application, each data center is equipped with at least one application load balancing server to form a cluster. When an application load balancing server fails, it can be preferentially switched to another application load balancing server in the data center to take over all services. At this time, traffic scheduling does not change.

[0120] In the event that all application load balancing servers in the first data center fail, the application load balancing servers in the second data center can be preferentially switched to take over all services.

[0121] In an embodiment of the present application, when all application load balancing servers in the first data center fail, the user's access traffic will be dispatched to the application load balancing servers in the second data center. At this time, the virtual service of the second data center can still dispatch traffic to the application server of the first data center through the data center interconnection link. Only when the application server route of the first data center is unreachable, the virtual service will dispatch the application server of the second data center.

[0122] 2. Failure of the first data center egress link: In the event of a failure of the first data center egress link, the access domain name carried in the service access request is resolved to the address of the second data center, and the service access request is processed by the application server deployed in the second data center.

[0123] In the embodiment of the present application, although the application server and database of the first data center are not faulty, since the default routes of the first data center all point to the exit of this data center, a failure in the exit link can only enable the second data center to host the business.

[0124] Taking the first data center as the main center of a certain application system and the second data center as the backup center as an example, when the upstream switch or egress firewall of the main center fails, the global load server uses the link health check mechanism and scheduling mechanism, and the user's business access request is resolved to the IP address of the backup center. At the same time, the priority of the server node pool in the main data center can be downgraded, allowing the backup center to take over the business service.

[0125] 3. Interconnection link failure between data centers: In the event of an interconnection link failure between data centers, all domain names carried in service access requests are resolved to the address of the first data center, and the first data center becomes the primary data center.

[0126] Specifically, consider the case where the first data center serves as the primary center for an application system, and the second data center serves as the backup center. Under normal circumstances, users in northern Taiwan are dispatched to the first data center to access the primary database, while users in southern Taiwan are dispatched to the second data center and access the primary database via a dedicated line. If the data center interconnection link fails, the global load balancing function resolves the user's domain name to the first data center to access the primary database.

[0127] 4. Data center intranet link failure: In the event of a failure in the intranet link of the first data center, the business access request to the first data center will be forwarded to the application load balancing server of the first data center. The application load balancing server of the first data center is used to lower the priority configuration of each application server in the first data center and forward the business access request to the application server of the second data center according to the load balancing strategy.

[0128] In this embodiment, a data center intranet link failure occurs when the network port between the application load balancing server and the application server becomes unreachable. In this case, user requests can reach the virtual IP address of the application load balancing server in the first data center, but the node actually providing the service is unreachable. Service access requests must be forwarded to the application server provider in the second data center. Therefore, the intranet link failure in the first data center does not affect normal service access.

[0129] For example, consider a scenario where the first data center serves as the primary center for an application system, and the second data center serves as the backup center. When the first data center's intranet link fails, services are interrupted. The first data center's application load balancing server lowers the priority of its own application servers, routing traffic to the second data center's application servers via the data center interconnect link. Simultaneously, the second data center's application load balancing server raises the priority of its own application servers, routing traffic to them, ensuring that all users can access the service normally.

[0130] In an embodiment of the present application, the specific path information accessed by the user (for example, it may include: the physical location of important nodes in the path, IP address and other information) can also be collected and the front-end interface of the active-active data center traffic scheduling system can be displayed; in an embodiment of the present application, the configuration and description information of all business servers can also be stored, including the business name, domain name, public network IP providing the service, the computer room to which the IP belongs, the IP address of the public network mapping the intranet, the list of service providing nodes, the computer room to which each node belongs, the node priority, whether the node is on or off, etc., and an interface is provided for other modules or management personnel to query and call.

[0131] Therefore, in the embodiment of the present application, when the export link of the data center fails, the global load will resolve the accessed domain name to the address of another data center, so that the user is unaware of the service. When the application load balancing server fails, the global load server will work together with the application load balancing server to direct the traffic to the application load balancing server of another data center. When the interconnection link of the data center fails, the global load server will resolve all the domain names accessed by users to the main data center business IP address, and the traffic will be dispatched to the main center. When the intranet of the data center fails, the network from the application load to the application node is interrupted. At this time, the priority of the node of another data center is increased, and the traffic goes to the node of another data center through the interconnection dedicated line.

[0132] This embodiment of the present application ensures that user traffic is distributed across two data centers, significantly improving resource utilization. Machine learning is also used to iteratively adjust routing strategies to provide optimal egress links. Furthermore, network failures can be quickly detected and responded to in different scenarios, restoring services and locating fault points in a short period of time, reducing operational costs and pressure. Finally, service configurations and user access path information can be packaged for network administrators, significantly improving operational efficiency.

[0133] Based on the same inventive concept, an embodiment of the present application provides a traffic scheduling device. Referring to FIG4 , FIG4 is a schematic diagram of the traffic scheduling device provided in an embodiment of the present application. The device is applied to a global scheduling server in an active-active data center traffic scheduling system. The active-active data center traffic scheduling system includes: a global scheduling server, a first data center, and a second data center. Each data center includes: at least one application server. The device includes:

[0134] Receiving module 401, used to receive a service access request sent by a user;

[0135] Forwarding module 402, configured to forward the service access request to a first application server in a first data center to process the service access request, where the first application server in the first data center is determined based on the service access request and a load balancing policy;

[0136] Determination module 403, configured to determine an optimal egress link of the first data center based on a pre-trained routing model, where the optimal egress link is used to return the response traffic of the first service server to the service access request to the user;

[0137] The input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

[0138] Optionally, the device further comprises:

[0139] A collection module, configured to collect link quality configuration data of each egress link of the first data center;

[0140] A link price value determination module, configured to determine the link price value of each egress link according to the current user's location;

[0141] A user weighted value determination module is used to determine the user weighted value of each egress link according to the current user;

[0142] A link configuration data determination module, configured to determine current link configuration data based on link quality configuration data, link price value, and user weight value;

[0143] The link quality data determination module is used to collect the current packet loss rate and / or delay rate of each egress link of the first data center to determine the current link quality data.

[0144] Optionally, each data center further includes: at least one application load balancing server; and a forwarding module 402 specifically configured to:

[0145] Determine the corresponding first data center based on the domain name carried in the service access request, forward the service access request to the first data center, and the first data center forwards the service access request to the application load balancing server in the first data center. The application load balancing server is used to determine the first application server based on the configuration and load balancing policy of each application server in the first data center;

[0146] The service access request is forwarded to the first application server.

[0147] Optionally, each data center further includes: at least one application load balancing server, and application load balancing servers arranged in different data centers form a load balancing cluster; a forwarding module 402, specifically configured to:

[0148] The first data center is determined based on the domain name carried in the service access request. The first data center forwards the service access request to the load balancing cluster. The load balancing cluster is used to determine the first application server based on the configuration and load balancing policy of each application server in the first and second data centers.

[0149] Forwards the service access request to the application server.

[0150] Optionally, the device further comprises:

[0151] The sending module is used to periodically send detection messages to detect the reachability of target objects, including: data center egress links, application load servers, data center interconnection links, and data center intranet links;

[0152] The generation module is used to generate alarm information when any target object is unreachable.

[0153] Optionally, the device further comprises:

[0154] The first fault handling module is used to forward the business access request to the first data center to the application load balancing server of the second data center when the application load balancing server of the first data center fails. The application load balancing server of the second data center is used to forward the business access request to the application server provider server of the first data center according to the configuration and load balancing policy of each application server of the first data center.

[0155] Optionally, the device further comprises:

[0156] The second fault processing module is used to resolve the access domain name carried in the service access request into the address of the second data center when a fault occurs in the first data center egress link, and the application server deployed in the second data center processes the service access request.

[0157] Optionally, the device further comprises:

[0158] The third fault processing module is used to resolve all domain names carried in the service access request into the address of the first data center when the interconnection link between the data centers fails. The first data center is the primary data center.

[0159] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0160] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the traffic scheduling method of any of the above embodiments are implemented.

[0161] Based on the same inventive concept, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the steps in the traffic scheduling method of any of the above embodiments are implemented.

[0162] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0163] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0164] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable traffic scheduling terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable traffic scheduling terminal device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0165] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable traffic scheduling terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0166] These computer program instructions can also be loaded onto a computer or other programmable traffic scheduling terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0167] Although preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic inventive concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0168] Finally, it should be noted that, in this document, 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 actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0169] The above is a detailed introduction to the traffic scheduling method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A traffic scheduling method, characterized in that: A global scheduling server applied to a dual-active data center traffic scheduling system, the dual-active data center traffic scheduling system comprising: a global scheduling server, a first data center, and a second data center, each data center comprising: at least one application server, the method comprising: Receive business access requests sent by users; forwarding the service access request to a first application server in a first data center to process the service access request, where the first application server in the first data center is determined according to the service access request and a load balancing policy; Determine, according to a pre-trained routing model, an optimal egress link of the first data center, wherein the optimal egress link is used to return the response traffic of the first service server to the service access request to the user; The input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

2. The traffic scheduling method according to claim 1, characterized in that: The method further comprises: Collecting link quality configuration data of each egress link of the first data center; Determine the link price value of each export link according to the current user's location; Determine the user weight value of each egress link according to the current user; Determine current link configuration data according to link quality configuration data, link price value and user weight value; The current packet loss rate and / or delay rate of each egress link of the first data center is collected to determine the current link quality data.

3. The flow scheduling method according to claim 1, characterized in that: Each data center further includes: at least one application load balancing server; forwarding the service access request to the first application server of the first data center, including: Determine the corresponding first data center according to the domain name carried in the service access request, forward the service access request to the first data center, the first data center forwards the service access request to an application load balancing server in the first data center, and the application load balancing server is used to determine the first application server according to the configuration and load balancing strategy of each application server in the first data center; The service access request is forwarded to the first application server.

4. The flow scheduling method according to claim 1, characterized in that: Each data center further includes: at least one application load balancing server, and the application load balancing servers arranged in different data centers form a load balancing cluster; forwarding the service access request to the first application server of the first data center, including: Determine the corresponding first data center according to the domain name carried in the service access request, the first data center forwards the service access request to the load balancing cluster, and the load balancing cluster is used to determine the first application server according to the configuration and load balancing strategy of each application server in the first data center and the second data center; The service access request is forwarded to the application server.

5. The flow scheduling method according to claim 4, characterized in that: The method further comprises: Periodically send detection messages to detect the reachability of target objects, including: data center egress links, application load servers, data center interconnection links, and data center intranet links; If any target object is unreachable, an alarm message is generated.

6. The flow scheduling method according to claim 5, characterized in that: The method further comprises: In the event that the application load balancing server of the first data center fails, the business access request to the first data center will be forwarded to the application load balancing server of the second data center. The application load balancing server of the second data center is used to forward the business access request to the application server providing server of the first data center according to the configuration and load balancing strategy of each application server of the first data center.

7. The flow scheduling method according to claim 5, characterized in that: The method further comprises: In the event that an egress link of the first data center fails, the access domain name carried in the service access request is resolved to the address of the second data center, and the service access request is processed by an application server arranged in the second data center.

8. The flow scheduling method according to claim 5, characterized in that: The method further comprises: In the event of a failure of an interconnection link between data centers, all domain names carried in the service access request are resolved to the address of the first data center, which is the primary data center.

9. A flow scheduling device, characterized in that: A global scheduling server applied to a dual-active data center traffic scheduling system, the dual-active data center traffic scheduling system comprising: a global scheduling server, a first data center, and a second data center, each data center comprising: at least one application server, the device comprising: A receiving module, used for receiving a service access request sent by a user; a forwarding module, configured to forward the service access request to a first application server in a first data center to process the service access request, wherein the first application server in the first data center is determined according to the service access request and a load balancing strategy; A determination module, used to determine an optimal egress link of the first data center according to a pre-trained routing model, wherein the optimal egress link is used to return the response traffic of the first service server to the service access request to the user; The input of the routing model is the current link configuration data and the current link quality data, and the output is the optimal egress link.

10. The flow scheduling device according to claim 9, characterized in that: The device also includes: A collection module, used to collect link quality configuration data of each egress link of the first data center; A link price value determination module, used to determine the link price value of each export link according to the current user's location; A user weighted value determination module, used to determine the user weighted value of each egress link according to the current user; A link configuration data determination module, used to determine current link configuration data according to link quality configuration data, link price value and user weight value; The link quality data determination module is used to collect the current packet loss rate and / or delay rate of each egress link of the first data center to determine the current link quality data.

11. The flow scheduling device according to claim 10, characterized in that: Each data center also includes: at least one application load balancing server; the forwarding module is specifically used to: Determine the corresponding first data center according to the domain name carried in the service access request, forward the service access request to the first data center, the first data center forwards the service access request to an application load balancing server in the first data center, and the application load balancing server is used to determine the first application server according to the configuration and load balancing strategy of each application server in the first data center; The service access request is forwarded to the first application server.

12. The flow scheduling device according to claim 10, characterized in that: Each data center further includes: at least one application load balancing server, and the application load balancing servers arranged in different data centers form a load balancing cluster; the forwarding module is specifically used to: Determine the corresponding first data center according to the domain name carried in the service access request, the first data center forwards the service access request to the load balancing cluster, and the load balancing cluster is used to determine the first application server according to the configuration and load balancing strategy of each application server in the first data center and the second data center; The service access request is forwarded to the application server.

13. The flow scheduling device according to claim 9, characterized in that: The device also includes: A sending module, used to periodically send detection messages to detect the reachability of target objects, wherein the target objects include: data center egress links, application load servers, data center interconnection links, and data center intranet links; The generation module is used to generate alarm information when any target object is unreachable.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the traffic scheduling method described in any one of claims 1-8 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the traffic scheduling method described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Multi-place multi-center data center dual-enabling method and system

    CN106506588A

  • Global load balance method and system based on active-active architecture and scheduling server

    CN107465721A

  • Adaptive routing method, device and equipment for cloud private line and readable storage medium

    CN114465954A

  • Traffic scheduling method and device, electronic equipment and storage medium

    CN115865932A

  • Data centre system and method for a data centre to provide service

    US20140258496A1

Cited By

  • Anti-abrasion and anti-explosion intelligent real-time monitoring system and method for boiler

    CN119472508A

  • Financial load balancing method and system based on cooperation of application layer and network layer

    CN122027567A