Access scheduling method, system and storage medium of terminal service point

By receiving traffic load information, computer room scheduling weights and health checks, the terminal access point is dynamically adjusted, solving the problems of resource balancing and communication experience in the existing technology, and achieving efficient communication and system stability between the terminal and the server.

CN116132537BActive Publication Date: 2024-10-01GF SECURITIES CO LTD
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
CN202310143544.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-18
Publication Date
2024-10-01
Estimated Expiration
2043-02-18

AI Technical Summary

Technical Problem

In the dynamic access scheduling scheme of the existing technology, it is difficult to balance the communication experience of the terminal connection and the utilization of server resources, leading to problems of resource overload or insufficient utilization. Moreover, the real-time performance of the algorithm is not high, and the scheduling fluctuation rate is too large, making it difficult to achieve the ideal state.

Method used

Receive traffic load information through the proxy module, calculate room scheduling weights across the chain module, respond to terminal scheduling requests through the core module, dynamically adjust the access point, combine the health check of the detection module and the management of the network console to optimize the network between the terminal and the server communication.

Benefits of technology

It enables terminals to select appropriate service access points, optimize network communication quality, improve user experience, and ensure the stability of the service system. It avoids resource overload or idleness by dynamically balancing resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132537B_ABST
    Figure CN116132537B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet applications, and discloses an access scheduling method, system and storage medium for a terminal service point. The method is applied to the access scheduling system of the terminal service point, and the system includes a proxy module, a cross-chain module, a configuration data module, a decision data module and a core module; the method includes: receiving the traffic load information reported from each computer room through the proxy module; obtaining the configuration data in the configuration data module through the cross-chain module, and calculating the latest scheduling weight of each computer room in each coverage according to the traffic load information and the configuration data, and pushing the latest scheduling weight to the core module; processing and responding to the scheduling request of the terminal through the core module, and outputting the address of the connectable computer room access point to the terminal according to the latest scheduling weight. The above method can select a suitable service access point for the terminal, optimize the network communication quality between the terminal and the server, so that the terminal obtains a good user experience, which is conducive to ensuring the operation stability of the service system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet application technology, and in particular to an access scheduling method, system and storage medium for a terminal service point. Background Art

[0002] In today's society, with the advancement of our science and technology and the continuous development of Internet business, Internet technology is applied to all aspects of production and life, and large-scale Internet applications are emerging in an endless stream. With the increasing number of Internet users and the increasing time that netizens spend online, the traffic to access Internet applications will become larger and larger, and the huge traffic will have a certain impact on the system, affecting the stability of the system and the user experience. In order to support the huge traffic torrent brought about by this, large application vendors usually build multi-center service rooms in multiple locations to carry the business requests of application terminals, and small-scale applications will also use cloud computing vendors to provide service capabilities and deploy their own application services in multiple locations. One problem brought about by multi-center service nodes is how the terminal selects the access point of the computer room.

[0003] The existing technology usually adopts a statically configured access scheduling implementation scheme, which is characterized by allocating a more suitable access point to the terminal through a pre-configured access scheduling strategy. However, the problem with this scheme is that it cannot adapt to changes in complex network environments and server environments to dynamically adjust the strategy. For example, when some service nodes are overloaded, it is impossible to adjust the strategy in real time to make the terminal connection move away from the overloaded service node.

[0004] Another solution is a dynamic access scheduling solution, which is characterized by being able to dynamically adjust the terminal's access selection according to the real-time resource usage or network environment, making the scheduling more reasonable. This type of solution can also be divided into two types. One is based on the terminal's perspective. The purpose of scheduling is to enable the terminal to select a network channel with better communication quality, so that the terminal's request response is more real-time. However, this type of algorithm also has its own shortcomings. First, its access scheduling solution is mainly aimed at improving the terminal access quality, but ignores the resource usage of the server itself, which may eventually cause most terminals to choose nodes with better network communication for access, resulting in service resource overload, while the resources of other nodes are not utilized. Another type of dynamic scheduling solution is based on the resource utilization of service nodes. The purpose is to balance the service node traffic of the system globally, so that resources can be better utilized and prevent the service room from overloading and causing the system to crash. However, the problem with this method is that, first of all, it only considers the balance of services, but ignores the communication experience of terminal connections, which may lead to low-quality communication efficiency caused by heterogeneous network environment communication. Secondly, there may also be problems of insufficient resource utilization. Excessive pursuit of traffic balance leads to low utilization of some high-quality computer rooms. At present, the algorithms of dynamic scheduling solutions generally have problems such as low real-time performance, large scheduling volatility, and uncontrollable algorithms, which result in the scheduling effect ultimately achieving less than ideal. Summary of the invention

[0005] In view of this, an object of the present invention is to overcome the deficiencies in the prior art and to provide an access scheduling method, system and storage medium for a terminal service point.

[0006] The present invention provides the following technical solutions:

[0007] In a first aspect, an access scheduling method for a terminal service point is provided in an embodiment of the present disclosure, and is applied to an access scheduling system for a terminal service point, wherein the system includes a proxy module, a cross-chain module, a configuration data module, a decision data module, and a core module; the method includes:

[0008] Receiving traffic load information reported from each computer room through the proxy module;

[0009] The configuration data in the configuration data module is obtained through the cross-chain module, and the latest scheduling weight of each of the computer rooms in each coverage is calculated according to the traffic load information and the configuration data, and the latest scheduling weight is pushed to the core module;

[0010] The core module processes and responds to the terminal's scheduling request, and outputs the connectable computer room access point address to the terminal according to the latest scheduling weight.

[0011] Furthermore, the system further includes a detection module, and before acquiring the configuration data in the configuration data module through the cross-chain module, it further includes:

[0012] The detection module periodically calls the health check interface of each of the computer rooms to determine whether each of the computer rooms has a fault, and reports the fault result to the configuration data module;

[0013] The fault results of each of the computer rooms in the configuration data module are obtained through the cross-chain module, and the computer rooms whose fault results are unavailable are eliminated.

[0014] Further, the obtaining of the configuration data in the configuration data module through the cross-chain module, and calculating the latest scheduling weight of each of the computer rooms in each of the coverages according to the traffic load information and the configuration data, includes:

[0015] Calculate the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota, and calculate the sum of the expected scheduling weights;

[0016] Based on the traffic load information, obtain the actual traffic load of each of the computer rooms in each of the coverages, and calculate the sum of the actual traffic loads;

[0017] Calculating the expected traffic load of each of the computer rooms in each of the coverages according to the sum of the actual traffic loads and the expected scheduling weight;

[0018] Calculate the difference between the expected traffic load and the actual traffic load of each of the computer rooms in each of the coverages, and calculate the target scheduling weight that needs to be adjusted in each of the computer rooms in each of the coverages according to a preset formula based on the difference;

[0019] The sum of the expected scheduling weight and the target scheduling weight of each computer room in each coverage is taken as the latest scheduling weight.

[0020] Furthermore, before the core module processes and responds to the scheduling request of the terminal, the method further includes:

[0021] After the core module establishes a long connection with the cross-chain module, monitor and receive the latest scheduling weight of each of the computer rooms in each of the coverages reported by the cross-chain module;

[0022] When receiving a scheduling request sent by the terminal, obtaining a source IP address of the terminal;

[0023] The source IP address of the terminal is matched with the IP addresses in the IP address library, and the home location and operator corresponding to the source IP address of the terminal are identified.

[0024] Further, the outputting the connectable computer room access point address to the terminal according to the latest scheduling weight includes:

[0025] According to the location and operator of the source IP address of the terminal, searching for coverage with the same location and operator;

[0026] Obtain the list of computer rooms in the coverage and the latest scheduling weight corresponding to each computer room in the computer room list;

[0027] According to the latest scheduling weight of each of the computer rooms and the preset matching rule, a target computer room is matched from the computer room list, and the computer room access point address of the target computer room is output to the terminal.

[0028] Furthermore, the system further comprises a network console module, and the method further comprises:

[0029] All the configuration data, the traffic load information of each computer room in each coverage and the latest scheduling weight are displayed and managed through the network console module.

[0030] In a second aspect, an access scheduling system for a terminal service point is provided in an embodiment of the present disclosure, the system comprising an agent module, a cross-chain module, a configuration data module, a decision data module and a core module;

[0031] The proxy module is used to receive traffic load information reported by each computer room;

[0032] The cross-chain module is used to obtain the traffic load information in the proxy module and the configuration data in the configuration data module, calculate the latest scheduling weight of each of the computer rooms in each of the coverages, push the latest scheduling weight to the core module, and report the latest scheduling weight of each of the computer rooms in each of the coverages within the period to the decision data module;

[0033] The core module is used to process and respond to the terminal's scheduling request according to the latest scheduling weight calculated by the cross-chain module, and output the address of the connectable computer room access point to the terminal.

[0034] Furthermore, the system also includes a detection module, which is used to periodically call the health check interface of each of the computer rooms, determine whether each of the computer rooms has a fault, and report the fault result to the configuration data module.

[0035] Furthermore, the system also includes a network console module, which is used to display and manage all the configuration data, the traffic load information of each computer room in each coverage, and the latest scheduling weight.

[0036] In a third aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the access scheduling method for the terminal service point described in the first aspect are implemented.

[0037] The embodiments of the present application have the following advantages:

[0038] The access scheduling method of the terminal service point provided in the embodiment of the present application is applied to the access scheduling system of the terminal service point, and the system includes a proxy module, a cross-chain module, a configuration data module, a decision data module and a core module; the method includes: receiving the traffic load information reported from each computer room through the proxy module; obtaining the configuration data in the configuration data module through the cross-chain module, and calculating the latest scheduling weight of each computer room in each coverage according to the traffic load information and the configuration data, and pushing the latest scheduling weight to the core module; processing and responding to the scheduling request of the terminal through the core module, and outputting the connectable computer room access point address to the terminal according to the latest scheduling weight. The above method can select a suitable service access point for the terminal, optimize the network communication quality between the terminal and the server, so that the terminal obtains a good user experience, and is also conducive to ensuring the operation stability of the service system.

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work. In each of the drawings, similar components are numbered similarly.

[0041] Figure 1 A flow chart of an access scheduling method for a terminal service point provided in an embodiment of the present application is shown;

[0042] Figure 2 A flowchart showing another method for access scheduling of a terminal service point provided in an embodiment of the present application is shown;

[0043] Figure 3 A flowchart of another terminal service point access scheduling method provided in an embodiment of the present application is shown;

[0044] Figure 4A schematic diagram of the structure of an access scheduling system for a terminal service point provided in an embodiment of the present application is shown;

[0045] Figure 5 A schematic diagram showing the structure of another access scheduling system for a terminal service point provided in an embodiment of the present application is shown;

[0046] Figure 6 A schematic diagram of the structure of an access scheduling system for a terminal service point provided in an embodiment of the present application is shown.

[0047] Description of main components symbols:

[0048] 10-agent module; 20-cross-chain module; 30-configuration data module; 40-decision data module; 50-core module; 60-detection module; 70-network console module. DETAILED DESCRIPTION

[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0050] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0051] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0054] Example 1

[0055] like Figure 1 As shown, it is a flow chart of an access scheduling method of a terminal service point in an embodiment of the present application. The access scheduling method of a terminal service point provided in an embodiment of the present application is applied to an access scheduling system of a terminal service point. The system includes an agent module, a cross-chain module, a configuration data module, a decision data module and a core module; the method includes the following steps:

[0056] Step S110: receiving the traffic load information reported from each computer room through the proxy module.

[0057] In this embodiment, the traffic load information reported by each computer room is received through the proxy module. The traffic load information includes the number of all terminal connections in the computer room, the business traffic per unit time, and the overall CPU usage rate of the computer room. Generally, there are multiple servers in each computer room that provide external services together, so each server needs to report its own traffic load information through a script. Finally, the proxy module aggregates and calculates the traffic load information of each server and reports it to the cross-chain module.

[0058] Step S120, obtaining the configuration data in the configuration data module through the cross-chain module, and calculating the latest scheduling weight of each computer room in each coverage according to the traffic load information and the configuration data, and pushing the latest scheduling weight to the core module.

[0059] Specifically, when the cross-chain module is started, it connects to the configuration data module and pulls the configuration data in the configuration data module, including the name of each computer room, access IP address, scheduling quota, network operator where the computer room is located, physical address of the computer room, computer room availability, scheduling coverage list, coverage type, coverage area, computer room list included in the coverage, and other necessary configuration data for the system. At the beginning of the scheduling cycle, the cross-chain module establishes a connection with the proxy module based on the access IP address of each computer room in the obtained configuration data, and obtains the traffic load information of each computer room in an interface manner.

[0060] It should be noted that coverage is a basic scheduling unit in this embodiment. In order to achieve local scheduling, terminal requests are classified according to the network location and network operator, and the terminal requests with the same source location and operator are classified into the same category. Coverage is a list of associated computer rooms that serve the same type of terminal requests. The main attributes of a coverage include: network location, network operator, and its associated computer room list. The computer rooms in the computer room list serve such terminal requests.

[0061] Furthermore, before the calculation starts, the detection module needs to periodically call the health check interface of each computer room to determine whether each computer room has a fault, and report the fault result to the configuration data module as a basis for determining the availability of the computer room. After the cross-chain module obtains the fault result of each computer room in the configuration data module, the computer room with the fault result of unavailable is removed from the calculation scope of this scheduling calculation.

[0062] like Figure 2 As shown, after obtaining the configuration data and the traffic load information of each computer room, the latest scheduling weights of all computer rooms in this scheduling cycle are calculated. The specific calculation steps are as follows:

[0063] Step S121, calculating the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota, and calculating the sum of the expected scheduling weights;

[0064] Step S122, obtaining the actual traffic load of each of the computer rooms in each of the coverages based on the traffic load information, and calculating the sum of the actual traffic loads;

[0065] Step S123, calculating the expected traffic load of each of the computer rooms in each of the coverages according to the sum of the actual traffic loads and the expected scheduling weight;

[0066] Step S124, calculating the difference between the expected traffic load and the actual traffic load of each of the computer rooms in each of the coverages, and calculating the target scheduling weight that needs to be adjusted in each of the computer rooms in each of the coverages according to a preset formula based on the difference;

[0067] Step S125: taking the sum of the expected scheduling weight and the target scheduling weight of each computer room in each coverage as the latest scheduling weight.

[0068] In this embodiment, the quota refers to the reasonable carrying capacity of a computer room, which needs to be preset according to the composition structure and quantity of the computer room. The actual flow can exceed the quota, but if it exceeds the quota, it means that the computer room is already overloaded.

[0069] Specifically, in the first step, based on the preset quota, the expected scheduling weight R of each of the computer rooms in each of the coverages is calculated. i , the calculation formula is:

[0070]

[0071] In formula 1, P i represents the preset quota of computer room i, and n is the number of computer rooms. For example, if the list of computer rooms covering A includes computer room 1, computer room 2, computer room 3, and computer room 4, and the quotas corresponding to the four computer rooms are P1, P2, P3, and P4 respectively, then the expected scheduling weight of computer room 1 in coverage A is R1 = P1 ÷ (P1 + P2 + P3 + P4), the expected scheduling weight of computer room 2 is R2 = P2 ÷ (P1 + P2 + P3 + P4), and so on. Finally, the sum of the expected scheduling weights of each computer room in each coverage is calculated. s .

[0072] The second step is to obtain the actual traffic load U of each computer room in each coverage based on the traffic load information obtained from the proxy module. i , and calculate the actual traffic load sum U s .

[0073] The third step is to calculate the sum of the actual traffic loads U s With the expected dispatch weight R i , calculate the expected traffic load E of each of the equipment rooms in each of the coverages i , the calculation formula is:

[0074] E i =U s ×R i (Formula 2)

[0075] In formula 2, U s represents the sum of actual traffic loads, R i Indicates the expected scheduling weight of computer room i. For example, if the computer room list covering A includes computer room 1, computer room 2, computer room 3, and computer room 4, and the quotas corresponding to the four computer rooms are P1, P2, P3, and P4 respectively, then the expected traffic load E1 of computer room 1 in coverage A is U s × R1, expected traffic load E2 of room 2 = U s×R2, and so on.

[0076] The fourth step is to calculate the actual traffic load U of each computer room in each coverage area. i and expected traffic load E i , calculate the difference D between the expected traffic load and the actual traffic load of each of the equipment rooms in each of the coverages i , the calculation formula is:

[0077] D i =U i -E i (Formula 3)

[0078] In formula 3, U i represents the actual traffic load of room i, E i Represents the expected traffic load of computer room i. For example, if the list of computer rooms covering A includes computer room 1, computer room 2, computer room 3, and computer room 4, and the quotas corresponding to the four computer rooms are P1, P2, P3, and P4 respectively, then the difference between the expected traffic load and the actual traffic load of computer room 1 in coverage A is D1=U1-E1, and the difference between the expected traffic load and the actual traffic load of computer room 2 is D2=U2-E2, and so on. Further, based on the difference, the target scheduling weight C that needs to be adjusted in each of the computer rooms in the coverage is calculated according to a preset formula. i , the preset formula is:

[0079] C1=-P×D i ÷U i ×R s (Formula 4)

[0080] In formula 4, D i It represents the difference between the expected traffic load and the actual traffic load of room i, U i represents the actual traffic load of room i, R s Represents the sum of the expected scheduling weights. In order to control the fluctuation of the target scheduling weight that needs to be adjusted each time, this embodiment introduces a fluctuation factor P, through which the amplitude of the target scheduling weight adjusted each time can be controlled. It can be understood that in this embodiment, the value range of P is (0, 1], and the larger the P value, the larger the fluctuation amplitude of the target scheduling weight adjusted each time. The specific value of the fluctuation factor P can be adjusted according to the actual situation during operation, and the embodiment of the present application does not limit this.

[0081] Step 5: The expected scheduling weight R of each computer room in each coverage is i With the target scheduling weight C i The sum of is taken as the latest scheduling weight. From equations 3 and 4, it can be concluded that when the actual traffic load U i Less than expected traffic load Ei When the difference between the two is D i is a negative number, the target scheduling weight C i If it is a positive number, it means that the traffic load of the computer room has not reached the expected level, and the scheduling weight can be increased. i Greater than the expected traffic load E i When the difference between the two is D i is a positive number, the target scheduling weight C i If it is a negative number, it means that the traffic load of the computer room exceeds expectations and the scheduling weight can be reduced. i and expected traffic load E i When the weights are consistent, there is no need to adjust the weights anymore, and the existing weight scheduling will continue. Eventually, through repeated adjustments, the traffic load of the computer room will be in a dynamic balance.

[0082] After dynamically calculating the latest dispatch weight of each computer room in each coverage through the above five-step algorithm, the latest dispatch weight is pushed to the core module, and the data of all dispatch weights is saved in the decision data module.

[0083] The above negative feedback mechanism algorithm can reduce the scheduling weight when the computer room is overloaded, and increase the scheduling weight when the traffic is idle, so as to achieve a dynamic balance with high resource utilization in the computer room. And by presetting quotas, the computer room can operate under the specified resource utilization.

[0084] Step S130, processing and responding to the terminal's scheduling request through the core module, and outputting the connectable computer room access point address to the terminal according to the latest scheduling weight.

[0085] The core module establishes a long connection with the cross-chain module at startup, monitors and receives in real time the latest scheduling weight data of each computer room in each coverage reported by the cross-chain module. In order to prevent the interface from failing due to the lack of scheduling weight data at the initial startup, the core module needs to save the latest scheduling weight data to the local server file each time it receives it, and replace the old scheduling weight data. The local server file needs to be loaded first at each startup to form the initialized scheduling weight data.

[0086] In order to identify the source location and network operator of the scheduling request sent by the terminal, the core module needs to load the local IP address library when it starts. The local IP address library records each IP address and its corresponding location operator. When the core module receives the scheduling request sent by the terminal, it obtains the source IP address of the terminal and matches the source IP address of the terminal with the IP address in the IP address library, thereby identifying the location and operator corresponding to the source IP address of the terminal.

[0087] like Figure 3 As shown, in an optional implementation manner, step S130 further includes:

[0088] Step S131, according to the location and operator of the source IP address of the terminal, searching for coverage with the same location and operator;

[0089] Step S132, obtaining the list of computer rooms in the coverage and the latest scheduling weight corresponding to each computer room in the list of computer rooms;

[0090] Step S133, matching a target computer room from the computer room list according to the latest scheduling weight of each computer room and a preset matching rule, and outputting the computer room access point address of the target computer room to the terminal.

[0091] Furthermore, according to the location and operator corresponding to the source IP address of the terminal, the coverage with the same location and operator is found, and the list of computer rooms in the coverage and the latest scheduling weight corresponding to each computer room in the computer room list are obtained. Since the location and operator of the terminal and the coverage are consistent, the deployment location, operator, and coverage attributes of the computer rooms in the coverage are consistent, and the computer room list in the coverage must meet the principle of nearby access, which can effectively prevent the terminal from connecting to a computer room far away from its location.

[0092] When a suitable computer room list is obtained, the most suitable access computer room is selected in a weighted round-robin manner according to the latest scheduling weight of the computer room list. The computer room with a larger weight will be selected with a greater probability, and finally the selected computer room access point address is returned to the terminal through the interface. After the terminal obtains the computer room access point address returned from the core module, it can connect to the corresponding computer room through the computer room access point address for business communication. It can be seen that the scheduling weight is the main influencing factor affecting the terminal's choice of access computer room, and the calculation of the scheduling weight is based on the feedback of traffic load information. Therefore, the computer room with a larger traffic load has a smaller scheduling weight, and the probability of being selected by the terminal is also smaller, thereby achieving traffic load balancing and dynamic scheduling.

[0093] In an optional implementation manner, the access scheduling method of the terminal service point further includes:

[0094] All the configuration data, the traffic load information of each computer room in each coverage and the latest scheduling weight are displayed and managed through the network console module.

[0095] Specifically, the network console module is used to manage system parameters and display data. The data display mainly includes displaying the current traffic load information of the computer room and its changing trend, the status of the computer room list in the current system, the scheduling weight of each coverage and its changing trend, the list of associated computer rooms of each coverage and its covered attributes, etc. System parameter management mainly includes setting computer room quotas, setting computer room availability status, configuring and adjusting the covered attributes and their associated computer room lists, configuring system user permissions and administrator permissions, and monitoring alarm configuration.

[0096] Through the display and management functions of the network console module, developers and operation and maintenance personnel can intuitively observe the operation status of each computer room and the scheduling decision results through the platform, and grasp the operation status of the system in real time. In the event of an emergency in the system, the operation and maintenance personnel can make emergency manual intervention in the system through the network console module, which not only ensures a good user experience, but also ensures the stability of the service system.

[0097] The access scheduling method of the terminal service point provided in the embodiment of the present application is applied to the access scheduling system of the terminal service point, and the system includes a proxy module, a cross-chain module, a configuration data module, a decision data module and a core module; the method includes: receiving the traffic load information reported from each computer room through the proxy module; obtaining the configuration data in the configuration data module through the cross-chain module, and calculating the latest scheduling weight of each computer room in each coverage according to the traffic load information and the configuration data, and pushing the latest scheduling weight to the core module; processing and responding to the scheduling request of the terminal through the core module, and outputting the connectable computer room access point address to the terminal according to the latest scheduling weight. The above method can select a suitable service access point for the terminal, optimize the network communication quality between the terminal and the server, so that the terminal obtains a good user experience, and is also conducive to ensuring the operation stability of the service system.

[0098] Example 2

[0099] like Figure 4 As shown, it is a schematic diagram of the structure of an access scheduling system for a terminal service point in an embodiment of the present application, wherein the system includes an agent module 10, a cross-chain module 20, a configuration data module 30, a decision data module 40 and a core module 50;

[0100] The proxy module 10 is used to receive traffic load information reported by each computer room, and the traffic load information includes the number of all terminal connections in the computer room, the business traffic per unit time, and the overall CPU usage rate of the computer room. Generally, there are multiple servers in each computer room that provide external services together, so each server needs to report its own traffic load information through a script. Finally, the proxy module 10 aggregates and calculates the traffic load information of each server and reports it to the cross-chain module 20.

[0101] In this embodiment, if Figure 6 As shown, in the deployment mode of the proxy module 10, considering the availability, dual-node deployment is adopted in each computer room as mutual backup. When one of the nodes fails to work normally, the other one can be used as a backup.

[0102] The cross-chain module 20 is used to obtain the traffic load information in the proxy module 10 and the configuration data in the configuration data module 30, regularly calculate the latest scheduling weight of each of the computer rooms in each of the coverages, push the latest scheduling weight to the core module 50, and report the latest scheduling weight of each of the computer rooms in each of the coverages within the period to the decision data module 40;

[0103] The working principle of the cross-chain module 20 is: when the cross-chain module 20 starts, it connects to the configuration data module 30 and pulls the configuration data in the configuration data module 30. At the beginning of the scheduling cycle, the cross-chain module 20 establishes a connection with the proxy module according to the access IP address of each computer room in the obtained configuration data, and obtains the traffic load information of each computer room in an interface manner. After obtaining the configuration data and the traffic load information of each computer room, it starts to calculate the latest scheduling weights of all computer rooms in this scheduling cycle. The specific calculation steps are as follows: (1) Calculate the expected scheduling weight of each computer room in each coverage based on the preset quota, and calculate the sum of the expected scheduling weights; (2) Obtain the actual traffic load of each computer room in each coverage based on the traffic load information, and calculate the sum of the actual traffic loads; (3) Calculate the expected traffic load of each computer room in each coverage based on the sum of the actual traffic loads and the expected scheduling weight; (4) Calculate the difference between the expected traffic load and the actual traffic load of each computer room in each coverage, and calculate the target scheduling weight that needs to be adjusted in each computer room in each coverage based on the difference according to a preset formula; (5) Take the sum of the expected scheduling weight and the target scheduling weight of each computer room in each coverage as the latest scheduling weight.

[0104] The cross-chain module 20 is a scheduling weight calculation module and is the "brain" of the system. Its function is to calculate the latest scheduling weight of each computer room in each coverage through a dynamic algorithm of a negative feedback mechanism, thereby determining the access selection of the terminal. Through the above calculation method, the scheduling weight can be reduced when the computer room is overloaded, and the scheduling weight can be increased when the traffic is idle, so as to achieve a dynamic balance in the computer room with a high resource utilization rate. And by presetting quotas, the computer room can operate under the specified resource utilization rate.

[0105] In this embodiment, if Figure 6As shown, in the deployment mode of the cross-chain module 20, considering the high availability and disaster tolerance of the system, the cross-chain module 20 adopts the remote deployment of the master and backup nodes. The master node serves as a regular working node, and the backup node serves as a backup when the master node fails. All other modules in this application are based on the scheduling weight data of the master node of the cross-chain module 20, and report the data to the master node. The scheduling weight data of the backup node is used only when the master node fails.

[0106] The core module 50 is used to process and respond to the terminal's scheduling request according to the latest scheduling weight calculated by the cross-chain module 20, and output the address of the connectable computer room access point to the terminal.

[0107] The working principle of the core module 50 is as follows: establish a long connection with the cross-chain module 20 at startup, monitor and receive in real time the latest scheduling weight data of each computer room in each coverage reported by the cross-chain module 20, and use the data of the master node of the cross-chain module 20 as the scheduling basis. When the master node data cannot be received for a long time, the backup node data is used for reference. Each time the core module 50 receives the latest scheduling weight data, it needs to be saved in the local server file and replace the old scheduling weight data. Each time it starts, it needs to load the local server file first to form the initialized scheduling weight data.

[0108] When the core module 50 is started, the local IP address library is loaded, and each IP address and its corresponding home operator are recorded in the local IP address library. When the core module 50 receives a scheduling request sent by a terminal, it obtains the source IP address of the terminal, and matches the source IP address of the terminal with the IP address in the IP address library, thereby identifying the home and operator corresponding to the source IP address of the terminal.

[0109] Furthermore, according to the location and operator corresponding to the source IP address of the terminal, the coverage with the same location and operator is found, and the list of computer rooms in the coverage and the latest scheduling weights corresponding to each computer room in the computer room list are obtained. When a suitable computer room list is obtained, the most suitable access computer room is selected in a weighted polling manner according to the latest scheduling weight of the computer room list. The computer room with a larger weight will be selected with a greater probability, and finally the selected computer room access point address is returned to the terminal through the interface. After the terminal obtains the computer room access point address returned from the core module, it can connect to the corresponding computer room through the computer room access point address for business communication.

[0110] As can be seen from the above, the scheduling weight is the main factor affecting the terminal's choice of access room, and the scheduling weight is calculated based on the traffic load information feedback. Therefore, the larger the traffic load, the smaller the scheduling weight of the room, and the smaller the probability of being selected by the terminal, thereby achieving traffic load balance and dynamic scheduling.

[0111] In this embodiment, if Figure 6 As shown, the core module 50 provides interface services to the terminal, and the terminal has a large number of concurrent scheduling requests. Therefore, in order to support high availability, the core module 50 needs to be deployed in multiple nodes in different locations, and each node can provide external services and does not rely on other nodes. Multiple instances are deployed on each node, and the front end uses a load balancing component to evenly distribute scheduling requests to each instance.

[0112] The configuration data module 30 uses mysql (relational database management system) as a storage component to store the configuration data required for the weight scheduling of this application, including the name of each computer room, access IP address, scheduling quota, network operator where the computer room is located, physical address of the computer room, computer room availability, scheduling coverage list, coverage type, coverage area, list of computer rooms included in the coverage, and other necessary configuration data for the system. mysql ensures data reliability in a master-slave manner. When configuring the coverage-associated computer room list, the appropriate computer room should be configured for coverage based on the physical deployment area of ​​the computer room and the attributes of the computer room export operator. In this embodiment, if Figure 6 As shown, the configuration data module 30 is deployed in a centralized manner, and the master and standby nodes of other modules obtain the required data from the configuration data module 30 .

[0113] The decision data module 40 uses influxdb (an open source time series database) as a storage component to store the machine room traffic load data and scheduling weight data for each cycle. Figure 6 As shown, in the deployment method of the decision data module 40, in order to distinguish the scheduling weight data output by the master and standby nodes of the cross-chain module 20, the decision data module 40 is deployed in the same master and standby nodes as the cross-chain module 20, and its master node stores the scheduling weight data generated by the master node of the cross-chain module 20, and the backup node stores the scheduling weight data generated by the standby node of the cross-chain module 20.

[0114] Alternatively, if Figure 5 As shown, the access scheduling system of the terminal service point further includes a detection module 60 , which is used to periodically call the health check interface of each of the computer rooms to determine whether each of the computer rooms has a fault, and report the fault result to the configuration data module 30 .

[0115] The function of the detection module 60 is to determine whether the computer room is available, so as to avoid including the faulty computer room in the calculation of the scheduling cycle. Figure 6As shown, the detection module 60 is deployed as a separate module, and the health check interface of each computer room is called regularly. Finally, the availability status of each computer room is saved to the local cache, and finally reported to the configuration data module 30 for storage. The cross-chain module 20 accesses the configuration data module 30 at the beginning of the scheduling cycle to obtain the availability status of all computer rooms. In order to avoid errors in the detection results, the detection module 60 sends three rounds of health check requests to each computer room each time, and three requests are sent in each round. If the results of the three rounds of requests are found to be unavailable at the same time, it can be determined that the computer room is unavailable, and the same method is used to detect whether the computer room has recovered and is available.

[0116] Alternatively, if Figure 5 As shown, the access scheduling system of the terminal service point further includes a network console module 70, and the network console module 70 is used to display and manage all the configuration data, the traffic load information of each computer room in each coverage, and the latest scheduling weight.

[0117] The network console module 70 is mainly used for system parameter management and data display. The data display mainly includes displaying the current traffic load information of the computer room and its changing trend, the current computer room list in the system, the status of the machine room, the scheduling weight of each coverage and its scheduling weight changing trend, the list of associated computer rooms of each coverage and its covered attributes, etc. The system parameter management mainly includes setting the computer room quota, setting the computer room availability status, configuring and adjusting the covered attributes and their associated computer room list, configuring system user rights and administrator rights, monitoring alarm configuration, etc. The method of automatic detection using the detection module 60 is sometimes inevitable to have inaccurate situations. When manual observation of misjudgment is made, the computer room availability status can also be manually set through the network console module 70.

[0118] In this embodiment, if Figure 6 As shown, considering the high availability of the system, the entire system deploys two instances of the network console module 70, one of which is used as the main node and the other as the backup node. When one of them cannot be used, the backup node is used. In addition, the network service address of the proxy module 10 of each computer room can be configured on the network console module 70, and the server in the computer room reports the load information to the proxy module 10 of the computer room by pulling the network service address of the configured proxy module 10. The configuration data module 30 implements the http interface and provides an interface to the network console module 70 to add, delete, query and modify the configuration data. The decision data module 40 implements the http interface and provides an interface to the network console module 70 to obtain data for page display and to implement monitoring alarms.

[0119] The access scheduling system for terminal service points provided in the embodiment of the present application can select a suitable service access point for the terminal, optimize the network communication quality between the terminal and the server, enable the terminal to obtain a good user experience, and also help to ensure the operational stability of the service system.

[0120] In an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the access scheduling method for a terminal service point described in Embodiment 1 are implemented.

[0121] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the methods, systems and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0122] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0123] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0124] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for scheduling access to a terminal service point, It is characterized in that An access scheduling system applied to a terminal service point, the system comprising an agent module, a cross-chain module, a configuration data module, a decision data module and a core module; the method comprising: Receiving traffic load information reported from each computer room through the proxy module; The configuration data in the configuration data module is obtained through the cross-chain module, and the latest scheduling weight of each computer room in each coverage is calculated according to the traffic load information and the configuration data, and the latest scheduling weight is pushed to the core module, wherein the configuration data includes the name of each computer room, the access IP address, the scheduling quota, the network operator where the computer room is located, the physical address of the computer room, the availability status of the computer room, the scheduling coverage list, the coverage type, the coverage area, the list of computer rooms included in the coverage, and other necessary data for the system, wherein the coverage is a list of associated computer rooms serving requests of the same type of terminals, and the main attributes of a coverage include: network location, network operator, and its associated computer room list, wherein the same type of terminal is a terminal with the same location and operator; Processing and responding to the terminal's scheduling request through the core module, and outputting the address of a connectable computer room access point to the terminal according to the latest scheduling weight; The acquiring of the configuration data in the configuration data module through the cross-chain module, and the calculation of the latest scheduling weight of each of the computer rooms in each of the coverages according to the traffic load information and the configuration data, includes: Calculate the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota, and calculate the sum of the expected scheduling weights; Based on the traffic load information, obtain the actual traffic load of each of the computer rooms in each of the coverages, and calculate the sum of the actual traffic loads; Calculating the expected traffic load of each of the computer rooms in each of the coverages according to the sum of the actual traffic loads and the expected scheduling weight; Calculate the difference between the expected traffic load and the actual traffic load of each of the computer rooms in each of the coverages, and calculate the target scheduling weight that needs to be adjusted in each of the computer rooms in each of the coverages according to a preset formula based on the difference; Taking the sum of the expected scheduling weight and the target scheduling weight of each computer room in each coverage as the latest scheduling weight; The calculation formula for calculating the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota is: In the formula, R i represents the expected scheduling weight of computer room i in each coverage, P i represents the preset quota of computer room i, and n is the number of computer rooms; Wherein, the target scheduling weight C that needs to be adjusted in each of the computer rooms in the coverage is calculated based on the difference according to a preset formula. i , the preset formula is: C i =-P×D i ÷U i ×R s In the formula, C i represents the target scheduling weight that needs to be adjusted in computer room i, D i It represents the difference between the expected traffic load and the actual traffic load of room i, U i represents the actual traffic load of room i, R s It represents the sum of the expected scheduling weights, and P represents the preset fluctuation factor, which is used to control the amplitude of the target scheduling weight adjusted each time. The larger the P value, the greater the fluctuation amplitude of the target scheduling weight adjusted each time.

2. The access scheduling method of the terminal service point according to claim 1, It is characterized in that The system further includes a detection module, and before obtaining the configuration data in the configuration data module through the cross-chain module, it also includes: The detection module periodically calls the health check interface of each of the computer rooms to determine whether each of the computer rooms has a fault, and reports the fault result to the configuration data module; The fault results of each of the computer rooms in the configuration data module are obtained through the cross-chain module, and the computer rooms whose fault results are unavailable are eliminated.

3. The access scheduling method of a terminal service point according to claim 1, It is characterized in that Before the core module processes and responds to the scheduling request of the terminal, the method further includes: After the core module establishes a long connection with the cross-chain module, monitor and receive the latest scheduling weight of each of the computer rooms in each of the coverages reported by the cross-chain module; When receiving a scheduling request sent by the terminal, obtaining a source IP address of the terminal; The source IP address of the terminal is matched with the IP addresses in the IP address library, and the home location and operator corresponding to the source IP address of the terminal are identified.

4. The access scheduling method of the terminal service point according to claim 3, It is characterized in that The step of outputting the connectable computer room access point address to the terminal according to the latest scheduling weight includes: According to the location and operator of the source IP address of the terminal, searching for coverage with the same location and operator; Obtain the list of computer rooms in the coverage and the latest scheduling weight corresponding to each computer room in the computer room list; According to the latest scheduling weight of each of the computer rooms and the preset matching rule, a target computer room is matched from the computer room list, and the computer room access point address of the target computer room is output to the terminal.

5. The access scheduling method of a terminal service point according to claim 1, It is characterized in that The system further comprises a network console module, and the method further comprises: All the configuration data, the traffic load information of each computer room in each coverage and the latest scheduling weight are displayed and managed through the network console module.

6. An access dispatching system for a terminal service point, It is characterized in that The system includes an agent module, a cross-chain module, a configuration data module, a decision data module and a core module; The proxy module is used to receive traffic load information reported by each computer room; The cross-chain module is used to obtain the traffic load information in the proxy module and the configuration data in the configuration data module, calculate the latest scheduling weight of each computer room in each coverage, push the latest scheduling weight to the core module, and report the latest scheduling weight of each computer room in each coverage within the period to the decision data module, wherein the configuration data includes the name of each computer room, access IP address, scheduling quota, network operator where the computer room is located, physical address of the computer room, available status of the computer room, scheduling coverage list, coverage type, coverage area, list of computer rooms included in the coverage, and other necessary data for the system, the coverage is a list of associated computer rooms serving requests of the same type of terminals, and the main attributes of a coverage include: network location, network operator, and its associated computer room list, wherein the same type of terminal is a terminal with the same location and operator; The core module is used to process and respond to the terminal's scheduling request according to the latest scheduling weight calculated by the cross-chain module, and output the address of the connectable computer room access point to the terminal; The cross-chain module is used to obtain the traffic load information in the proxy module and the configuration data in the configuration data module, and calculate the latest scheduling weight of each of the computer rooms in each coverage, including: Calculate the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota, and calculate the sum of the expected scheduling weights; Based on the traffic load information, obtain the actual traffic load of each of the computer rooms in each of the coverages, and calculate the sum of the actual traffic loads; Calculating the expected traffic load of each of the computer rooms in each of the coverages according to the sum of the actual traffic loads and the expected scheduling weight; Calculate the difference between the expected traffic load and the actual traffic load of each of the computer rooms in each of the coverages, and calculate the target scheduling weight that needs to be adjusted in each of the computer rooms in each of the coverages according to a preset formula based on the difference; Taking the sum of the expected scheduling weight and the target scheduling weight of each computer room in each coverage as the latest scheduling weight; The calculation formula for calculating the expected scheduling weight of each of the computer rooms in each of the coverages based on the preset quota is: In the formula, R i represents the expected scheduling weight of computer room i in each coverage, P i represents the preset quota of computer room i, and n is the number of computer rooms; Wherein, the target scheduling weight C that needs to be adjusted in each of the computer rooms in the coverage is calculated based on the difference according to a preset formula. i , the preset formula is: C i =-P×D i ÷U i ×R s In the formula, C i represents the target scheduling weight that needs to be adjusted in computer room i, D i It represents the difference between the expected traffic load and the actual traffic load of room i, U i represents the actual traffic load of room i, R s It represents the sum of the expected scheduling weights, and P represents the preset fluctuation factor, which is used to control the amplitude of the target scheduling weight adjusted each time. The larger the P value, the greater the fluctuation amplitude of the target scheduling weight adjusted each time.

7. The access scheduling system for a terminal service point according to claim 6, It is characterized in that The system further comprises a detection module, which is used to periodically call the health check interface of each of the computer rooms, determine whether each of the computer rooms has a fault, and report the fault result to the configuration data module.

8. The access scheduling system for a terminal service point according to claim 6, It is characterized in that The system further comprises a network console module, which is used to display and manage all the configuration data, the traffic load information of each computer room in each coverage, and the latest scheduling weight.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the access scheduling method for a terminal service point according to any one of claims 1 to 5 are implemented.