Service flow distribution method and device

By automatically obtaining and setting the availability detection information and traffic allocation weights of the network dedicated line, and generating a routing rule list, the automatic distribution of network dedicated line service traffic is realized, the problems of inefficiency and manual dependence in the existing technology are solved, and data transmission is improved Reliability and efficiency.

CN119232674APending Publication Date: 2024-12-31NETSUNION CLEARING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310791159.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, the service traffic allocation of network dedicated lines is inefficient, relies on manual operations, and there is risk of misoperation and high calculation costs. It is impossible to deal with sudden failures in a timely manner, resulting in delays and failures in data transmission.

Method used

By automatically obtaining the availability detection information of multiple network dedicated lines between the business platform and external institutions, setting the traffic allocation weight, and generating a routing rule list, the automatic distribution of business traffic is realized, and manual intervention and manual flow cutting are avoided.

Benefits of technology

It improves the efficiency of network dedicated line service traffic allocation, reduces labor costs, avoids misoperation, promptly handles faults, prioritizes the allocation of local network dedicated line traffic, reduces cross-city access, automatically calculates traffic allocation, and reduces calculation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232674A_ABST
    Figure CN119232674A_ABST
Patent Text Reader

Abstract

The invention discloses a service flow distribution method and device, and the method comprises the steps: obtaining the availability detection information of a plurality of network private lines between a service platform and an external mechanism, the service platform comprises a plurality of machine rooms, and one external mechanism is connected to at least one machine room of the service platform through at least one network private line; based on the availability detection information and description information of the plurality of network private lines, setting traffic allocation weights of the plurality of network private lines, the description information of one network private line including external mechanism information, service type information and accessed machine room information corresponding to the network private line; and generating a routing rule list based on the traffic allocation weights of the plurality of network private lines, so that each machine room of the service platform receives the service traffic sent according to the routing rule list through each network private line. According to the method and the device, the service flow distribution efficiency for the plurality of network private lines can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for allocating service traffic. Background Art

[0002] A dedicated network line refers to a special network line set up for an institution, that is, an independent local area network set up for the institution. The institution can be an enterprise, a bank, a non-bank payment institution, etc. The dedicated network line has good security and high quality of service (QoS). Communicating through a dedicated network line can make data transmission reliable and trustworthy.

[0003] Some important network business platforms often use dedicated network lines to transmit data to ensure data security and transmission quality. For example, as a network payment clearing platform for non-bank payment institutions, China UnionPay Clearing Platform (hereinafter referred to as China UnionPay Platform) generally uses dedicated network lines to communicate with non-bank institutions and banks. Faced with a large number of non-bank institutions and banks, the number of dedicated network lines connected to the China UnionPay Platform is huge, and the number and region of dedicated network lines connected to the China UnionPay Platform by different non-bank institutions and banks may be different. If a dedicated network line has a problem or the operator needs to maintain the dedicated network line, the traffic on the dedicated network line needs to be switched to another dedicated network line.

[0004] At present, the business traffic of the dedicated network lines used by the network business platform is allocated manually, and the allocation efficiency is low and needs to be improved urgently. Summary of the invention

[0005] The embodiments of the present application provide a method and device for allocating business traffic to improve the efficiency of allocating business traffic for a dedicated network line.

[0006] In a first aspect, an embodiment of the present application provides a service traffic distribution method, including:

[0007] Acquire availability detection information of multiple network dedicated lines between the business platform and an external organization, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line;

[0008] Based on the availability detection information and description information of the multiple network dedicated lines, setting the traffic distribution weights of the multiple network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line;

[0009] A routing rule list is generated based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

[0010] In a second aspect, an embodiment of the present application further provides a service flow distribution device, including:

[0011] An information acquisition module, used to acquire availability detection information of multiple network dedicated lines between the business platform and an external organization, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line;

[0012] A weight setting module, configured to set the traffic distribution weights of the plurality of network dedicated lines based on the availability detection information and description information of the plurality of network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line;

[0013] The rule generation module is used to generate a routing rule list based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] At least one of the above-mentioned technical solutions adopted in the embodiments of the present application can automatically obtain the availability detection information of multiple network dedicated lines between the business platform and the external organization, and automatically set the traffic allocation weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines and generate a routing rule list accordingly to automatically distribute the sent business traffic. There is no need to manually confirm the maintenance status of the network dedicated lines, nor is there a need to manually cut the flow during the maintenance of the network dedicated lines. Therefore, the efficiency of business traffic allocation for multiple network dedicated lines can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 It is a schematic diagram of a connection architecture between a computer room of a business platform and an external organization provided in an embodiment of the present application.

[0019] Figure 2 It is a flowchart of a business traffic distribution method in the related technology.

[0020] Figure 3 It is a flow chart of a service flow distribution method provided in an embodiment of the present application.

[0021] Figure 4 yes Figure 3 A detailed flowchart of step 302 in the method shown.

[0022] Figure 5 It is a structural diagram of a business flow distribution device provided in an embodiment of the present application.

[0023] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0025] In order to more clearly understand the solution proposed in this application, some terms involved in this application are first explained.

[0026] A dedicated network line (abbreviated as dedicated line) refers to a dedicated network line set up for a certain institution, that is, an independent local area network set up for the institution. The institution can be an enterprise, bank, non-bank payment institution, etc. The dedicated network line has good security and high quality of service (QoS). Communicating through dedicated network lines can make data transmission reliable and trustworthy.

[0027] Cross-city dedicated lines refer to non-local network dedicated lines that cross cities. Cross-city dedicated lines are compared to intra-city network dedicated lines. At present, intra-city network dedicated lines use optical fibers, which have high communication quality and short communication time. Cross-city dedicated lines require many additional switches. If the number of requests through cross-city dedicated lines is large, it will cause great pressure on the switches, resulting in request failures.

[0028] Traffic refers to the number of messages, such as the number of service requests.

[0029] Routing refers to the logical address corresponding to a dedicated network line, i.e., IP+port, also called URL. For example, a business request needs to access an institution or bank through a dedicated network line. The logical address accessed here is called routing.

[0030] The computer room is the Internet Data Center (IDC). The computer room is the access point of the network dedicated line.

[0031] Figure 1 The figure shows a schematic diagram of the connection architecture between the computer room of the business platform and external organizations. Figure 1 As shown, the business platform may include multiple computer rooms such as computer room 1, computer room 2 and computer room 3. These multiple computer rooms may be located in the same city or in different cities. These multiple computer rooms are connected through a bus 12. External organizations access the computer rooms of the business platform through a dedicated network line 11. For example, external organization 1 accesses computer rooms 1, 2 and 3 of the business platform through three dedicated network lines, and external organization 2 accesses computer rooms 2 and 3 of the business platform through two dedicated network lines. Generally, an external organization accesses the business platform through different dedicated network lines for different business types (generally business categories, and it can be understood that business categories generally include small business categories).

[0032] In the embodiment of the present application, the business platform can be any network business platform connected to an external institution through a dedicated network line, and the external institution is other institutions that have business dealings with the business platform. Taking the business platform as the UnionPay platform as an example, the external institution can be a bank or a non-bank payment institution.

[0033] Figure 2 FIG. 2 shows a service flow distribution scheme in the related art. Figure 2 As shown, the management program includes the following steps:

[0034] Step 200, start.

[0035] Step 201: Receive a message before going out.

[0036] The outbound front-end is a subsystem of the business platform, used to interact with external organizations. The message received by the outbound front-end may be a business request to be sent to the target external organization.

[0037] Step 202: parse the message and store the parsing result in the task queue.

[0038] The task queue may be a storage queue for messages to be sent.

[0039] Step 203: Obtain the service type corresponding to the message from the cache, and store the service type and the message in the task queue in correspondence.

[0040] The outbound preprocessor will periodically obtain the correspondence between the message type and the service type from the database and store it in the cache to periodically update the correspondence in the cache.

[0041] Step 204 , determine whether the target external organization has an available routing rule list corresponding to the business type; if so, execute step 205 ; otherwise, execute step 206 .

[0042] The outbound preprocessor will periodically obtain a list of available routing rules from the database and store them in the cache.

[0043] Step 205 , obtain a list of available routing rules, and then proceed to step 207 .

[0044] Step 206 , obtain a default routing rule list, and then proceed to step 207 .

[0045] The default routing rule list may be a preset fallback routing rule list.

[0046] Step 207: Select the URL of the target network dedicated line according to the traffic distribution weight of each network dedicated line in the routing rule list.

[0047] Step 208: Send the message to the target external organization through the target network dedicated line by accessing the URL, and receive result feedback.

[0048] Step 209: Determine whether the message is sent successfully based on the result feedback; if yes, end this process; otherwise, execute step 210.

[0049] Step 210: Select another dedicated network line and try again.

[0050] That is, the above message is resent through other network dedicated lines.

[0051] Step 211, end.

[0052] pass Figure 2 It can be seen that the relevant technology adopts manual operation and maintenance and the solution of changing the line and retrying when the network dedicated line request fails. The so-called manual operation and maintenance means that if a network dedicated line of an external organization needs to be repaired, personnel need to communicate in advance and allocate the traffic on the network dedicated line to other network dedicated lines of the external organization before maintenance, and then cut back the traffic after the former is repaired. In addition, in order to allow other network dedicated lines to be retried when a certain network dedicated line fails, the current practice is to allocate a certain amount of traffic to the cross-city dedicated line, but the message transmission time allocated to the cross-city dedicated line is high and will cause certain pressure on the cross-city switch.

[0053] Figure 2The scheme shown has at least the following defects: (1) It requires additional labor costs, which is not only inefficient, but also likely to cause misoperation; (2) For network dedicated lines with sudden failures, if the manual process is too late or the failure is not detected, it is necessary to completely rely on retry after the failure. In this way, every message passing through this network dedicated line during the failure period must be retried, which increases the time required to send the message. If the retry network dedicated line also fails, the sending will fail; (3) For each network dedicated line, the amount of traffic to be allocated depends on manual calculation, which has a high calculation cost. In short, the management efficiency of the existing business traffic allocation scheme is low and needs to be improved.

[0054] In order to solve the above problems, the embodiments of the present application provide a method and device for allocating business traffic, which can be executed by an electronic device, which can be a terminal device or a server, or the method and device can be executed by software installed in the electronic device. The terminal device includes but is not limited to any one of smart terminal devices such as a smart phone, a personal computer (PC), a laptop, a tablet computer, an e-reader, an Internet TV, a wearable device, etc.; the server includes but is not limited to a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0055] The following first describes a service traffic distribution method provided in an embodiment of the present application.

[0056] like Figure 3 As shown, a service flow distribution method provided in an embodiment of the present application may include:

[0057] Step 301: Obtain availability detection information of multiple network dedicated lines between the business platform and external organizations.

[0058] The service platform includes multiple computer rooms, and an external organization accesses at least one computer room of the service platform through at least one network dedicated line.

[0059] The availability detection information of a dedicated network line may include the detection result of whether the dedicated network line is available. If a dedicated network line is available, it means that the dedicated network line has no faults and can transmit messages normally. On the contrary, if a dedicated network line is unavailable, it means that the dedicated network line has faults and cannot transmit messages normally.

[0060] In specific implementation, there are many ways to obtain the availability detection information of multiple network dedicated lines between the business platform and external organizations. The following is one method: detect the availability of the preset ports of multiple network dedicated lines between the business platform and external organizations to obtain the availability detection information of the multiple network dedicated lines. Generally speaking, for a network dedicated line, if its preset port is available, it means that the network dedicated line is available, otherwise it is unavailable. Therefore, whether the network dedicated line is available can be determined by detecting whether the preset port is available. Among them, the preset port can include but is not limited to the telnet IP port.

[0061] Step 302: Set traffic distribution weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines.

[0062] The description information of a dedicated network line may include, but is not limited to, the external organization information, business type information, and accessed computer room information corresponding to the dedicated network line, and may also include the identifier of the dedicated network line. In actual applications, the external organization information, business type information, and accessed computer room information corresponding to the dedicated network line can be stored in correspondence with the identifier of the dedicated network line as the description information of the dedicated network line, and the description information of the dedicated network line can also be stored in a database. The business platform's outbound pre-access can periodically read the description information of the dedicated network line from the database and store it in the cache for future use. Among them, the external organization information corresponding to the dedicated network line may include the identifier, name, and other information of the external organization; the business type information corresponding to the dedicated network line may include the identifier of the business type; the computer room information accessed by the dedicated network line may include the computer room identifier (such as the computer room number) and the location of the computer room, and so on.

[0063] The purpose of the above step 203 is to distribute the traffic of the same business type for the same external organization among multiple network dedicated lines for the external organization to access the business platform for the business type, and automatically set the traffic distribution weight of the network dedicated line that is unavailable as detected to 0, automatically distribute the traffic to other available network dedicated lines, and give priority to the available local network dedicated lines. In the case of a local network dedicated line failure, consider allocating it to the available non-local network dedicated lines. Of course, it is not excluded that the traffic of the same business type for the same external organization is distributed to the network dedicated line of the computer room of the external organization to access the business platform for other business types.

[0064] Figure 4 A detailed flow chart of step 302 is shown. Figure 4 As shown, step 302 may include:

[0065] Step 401: for a target external organization, traverse the multiple computer rooms of the business platform according to a preset period, and execute specified steps for the target computer room.

[0066] The target external organization may be any external organization that conducts business with the business platform.

[0067] The designation step includes the following steps 402 and 403 .

[0068] Step 402: determine the number of first dedicated lines and second dedicated lines based on the description information of the multiple network dedicated lines, wherein the first dedicated line is a network dedicated line for the target external organization to access the target computer room, and the second dedicated line is a network dedicated line for the target external organization to access a computer room other than the target computer room among the multiple computer rooms, and both the first dedicated line and the second dedicated line are used to transmit messages of a preset business type.

[0069] In other words, for the target computer room, the first dedicated line may be a local network dedicated line, and the second dedicated line may be a cross-city dedicated line, but the first dedicated line and the second dedicated line are both network dedicated lines established by the target external organization for the same business type (preset business type).

[0070] Since the description information of a network dedicated line includes the external organization information, business type information and accessed computer room information corresponding to the network dedicated line, the description information of multiple network dedicated lines accessing the business platform can be used to determine which of the multiple network dedicated lines are used by the target external organization to access the target computer room, and which are established by the target external organization for preset business types, thereby determining the number of the first dedicated line and the second dedicated line.

[0071] It should be noted that the target external organization may be any external organization that is connected to the service platform.

[0072] Step 403: Set traffic distribution weights of the first dedicated line and the second dedicated line based on the availability detection information and quantity of the first dedicated line and the availability detection information and quantity of the second dedicated line.

[0073] As described above, the traffic for the preset business type of the target external organization is distributed among multiple network dedicated lines in the computer room of the target external organization for accessing the business platform for the business type.

[0074] Specifically, step 403 may include: first determining whether the first dedicated line is available based on the availability detection information of the first dedicated line, determining the traffic distribution weight of the unavailable network dedicated line to 0, and then setting the traffic distribution weights of the first dedicated line and the second dedicated line according to different situations.

[0075] The first case is the first time that the traffic distribution weight is set for the first dedicated line, that is, the first time that multiple computer rooms of the business platform are traversed.

[0076] (1) When setting the traffic allocation weight for the first dedicated line for the first time, the traffic allocation weight of each available first dedicated line is set to an initial weight, and the traffic allocation weight of each second dedicated line is set to 0.

[0077] The sum of the initial weights of all first dedicated lines is equal to 1 (the same below). The initial weights of different first dedicated lines can be the same or different (the same below). When the initial weights of different first dedicated lines are the same, the initial weight of each first dedicated line is 1 / n, where n represents the total number of first dedicated lines.

[0078] For example, assuming that for the preset business type, the target external organization has 2 network dedicated lines (recorded as network dedicated line A1 and network dedicated line A2) connected to the target computer room, that is, the number of first dedicated lines is 2, and there are 4 network dedicated lines (recorded as network dedicated line B1, network dedicated line B2, network dedicated line B3 and network dedicated line B4) connected to other computer rooms, that is, the number of second dedicated lines is 4, and the initial weight of each first dedicated line is equal, then, the traffic distribution weights of network dedicated line A1 and network dedicated line A2 are set to 50% respectively, and the traffic distribution weights of network dedicated line B1, network dedicated line B2, network dedicated line B3 and network dedicated line B4 are set to 0 respectively.

[0079] (2) When setting the traffic allocation weight for the first dedicated line for the first time, if part of the first dedicated line is unavailable, the traffic allocation weight of the unavailable first dedicated line is set to 0, and the traffic allocation weight of the available first dedicated line is set to the initial weight.

[0080] Optionally, if after the traffic allocation weights of each network dedicated line are set, the sum of the traffic allocation weights of each network dedicated line is less than 1, then the remaining traffic allocation weights (i.e., the traffic allocation weights not allocated to the first dedicated line or the second dedicated line, for example, assuming that the sum of the traffic allocation weights of each network dedicated line is 0.8, then the remaining traffic allocation weight is: 1-0.8=0.2) will be redistributed among the available first dedicated line and / or the available second dedicated line. The redistribution may be evenly distributed or not. Assuming that the allocated weight is p, the remaining unallocated weight is 1-p. If the redistribution is evenly distributed, the weight allocated to each available first dedicated line and second dedicated line is (1-P) / (n1+n2), where n1 represents the number of available first dedicated lines, and n2 represents the number of available second dedicated lines.

[0081] For example, assuming that for the preset business type, the target external organization has 2 network dedicated lines (recorded as network dedicated line A1 and network dedicated line A2) connected to the target computer room, that is, the number of first dedicated lines is 2, and there are 4 network dedicated lines (recorded as network dedicated line B1, network dedicated line B2, network dedicated line B3 and network dedicated line B4) connected to other computer rooms, that is, the number of second dedicated lines is 4, and the initial weight of each first dedicated line is equal, but network dedicated line A1 and network dedicated line B1 are unavailable, then the traffic allocation weight of network dedicated line A2 is set to 50% respectively, and then the remaining unallocated 50% is redistributed among network dedicated line A2, network dedicated line B2, network dedicated line B3 and network dedicated line B4, for example, evenly distributed to network dedicated line A2, network dedicated line B2, network dedicated line B3 and network dedicated line B4, so that after the end of this allocation, the weight of network dedicated line A2 is 62.5%, and the weights of network dedicated line B2, network dedicated line B3 and network dedicated line B4 are all 12.5%.

[0082] The second case is the case where the traffic distribution weight is not set for the first dedicated line for the first time, that is, the case where multiple computer rooms of the business platform are traversed for the Nth time, where N is a positive integer greater than 1.

[0083] In the case where it is not the first time to set the traffic allocation weight for the first dedicated line, if part of the first dedicated line is unavailable, the traffic allocation weight of the unavailable first dedicated line is set to 0; if part of the first dedicated line is changed from unavailable to available, the traffic allocation weight of the part of the first dedicated line that is changed to available is set to a preset value, which is greater than zero and less than the initial weight; if part of the first dedicated line is available and the last allocated weight is greater than zero and less than the initial weight, the traffic allocation weight of the part of the first dedicated line is increased according to the preset increase rule, and then the unallocated weight is reallocated among the available first dedicated lines and / or the available second dedicated lines.

[0084] Among them, improving the traffic allocation weight of this part of the first dedicated line according to the preset improvement rules includes: improving the traffic allocation weight of this part of the first dedicated line according to the preset improvement range, wherein the preset improvement range is determined based on the initial weight and the preset number of times, and the preset number of times is the number of times gradually increased from 0 to the initial weight.

[0085] For example, if it is detected that a first dedicated line has changed from unavailable to available during a traversal process, the first dedicated line will be marked as available, and the traffic allocation weight of the first dedicated line will be set to a preset value, which is generally a preset percentage of the initial weight, such as 5% of the initial weight (i.e., 1 / 20 of the original weight); during the next traversal (for example, traversal every 5 minutes), if it is detected that the first dedicated line is still available, the traffic allocation weight of the first dedicated line will be increased by 5% (preset range), and if it is detected that the first dedicated line has become unavailable again, the traffic allocation weight of the first dedicated line will be set to 0 again. It can be understood that for the first dedicated line, if it is unavailable once, it will take at least 100 minutes (5*20) to restore to the initial weight.

[0086] Optionally, if after the traffic allocation weights of each network dedicated line are set, the sum of the traffic allocation weights of each network dedicated line is less than 1, the remaining traffic allocation weights will be redistributed among the available first dedicated line and / or the available second dedicated line, and the specific allocation method is the same as above.

[0087] It is not difficult to see that through the above step 302, the network allocation weight of each network dedicated line can be automatically determined according to the availability of the network dedicated line on a periodic basis, and the traffic allocation weight of the unavailable network dedicated line can be automatically set to 0, and the remaining traffic allocation weight can be automatically allocated to other available local network dedicated lines and / or cross-city dedicated lines. There is no need for manual flow switching, which greatly improves the management efficiency of the network dedicated line.

[0088] It should be noted that, in actual applications, the availability detection of multiple network dedicated lines of the business platform and the determination of traffic allocation weights are both performed on a periodic basis. Generally speaking, the periods of the two are consistent, that is, the availability of the multiple network dedicated lines is detected once, and the traffic allocation weights are determined once.

[0089] Step 303: Generate a routing rule list based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

[0090] After the traffic distribution weights of the multiple network dedicated lines are set, the routing rule list of the multiple network dedicated lines can be easily determined. Generally speaking, a routing rule list can be generated in combination with the traffic distribution weights and description information of the multiple network dedicated lines, and the routing rule list contains at least one routing rule, and a routing rule generally corresponds to a description of a network dedicated line. For example, a routing rule often includes a network dedicated line identifier, an identifier of the computer room to which the network dedicated line is connected, a service type corresponding to the network dedicated line, a route of the network dedicated line, and a correspondence between the traffic distribution weight of the network dedicated line, wherein the route is the logical address of the network dedicated line, and the traffic distribution weight is used to determine how much traffic is allocated to the network dedicated line.

[0091] As an example, the routing rule list is specifically used by the message processing side to determine a target network dedicated line for a received message.

[0092] Among them, the message processing side belongs to the business platform and is responsible for the distribution of messages. After having a routing rule list, if the message processing side receives a message to be sent (such as a business request), it will first parse the message to determine the target external organization to be sent to and the business type corresponding to the message, and then search and determine at least one available network dedicated line from the routing rule list, and then select a network dedicated line from the at least one network dedicated line according to the traffic distribution weight of the at least one network dedicated line as the target network dedicated line.

[0093] In practical applications, the routing rule list generated in step 303 may be first stored in a database, and the message processing side may read the routing rule list from the database when the routing rule list is needed. In order to speed up the acquisition of the routing rule list, the message processing side may also periodically read the routing rule list from the database and store it in a cache. The routing rule list may also be directly fed back to the message processing side, so that the message processing side determines a dedicated transmission network line for the received message according to the routing rule list.

[0094] A business traffic distribution method proposed in an embodiment of the present application can automatically obtain the availability detection information of multiple network dedicated lines between a business platform and an external organization, and automatically set the traffic distribution weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines and generate a routing rule list accordingly to automatically distribute the sent business traffic. There is no need to manually confirm the maintenance status of the network dedicated lines, nor is there any need to manually cut the flow during the maintenance of the network dedicated lines. Therefore, the business traffic distribution efficiency for multiple network dedicated lines can be improved.

[0095] In addition, a service flow distribution method proposed in the embodiment of the present application can overcome Figure 2The defects of the business traffic allocation scheme in the related technology shown in the figure are solved, and at least one of the following beneficial effects is achieved: (1) No additional labor cost is required, which not only improves management efficiency but also avoids manual errors; (2) For network dedicated lines with sudden failures, because they can be automatically detected and their traffic allocation weights can be set to 0, it is possible to avoid allocating traffic to the faulty network dedicated lines in time, solving the problem of increased time consumption and request failure caused by still using this network dedicated line to provide services when the network dedicated line has a failure; (3) Traffic is allocated to local network dedicated lines first. Only when the local network dedicated line fails can traffic be allocated to the cross-city dedicated line, thus solving the problem of cross-city access when the local network dedicated line is not faulty; (4) For each network dedicated line, the amount of traffic to be allocated is automatically calculated, and the calculation cost is low.

[0096] It should be noted that in a service traffic distribution method provided in an embodiment of the present application, the execution subjects of each step may be the same or different, that is, step 301, step 302 and step 303 may be executed by the same subject or by different subjects.

[0097] A service flow distribution method provided in an embodiment of the present application is described above. Corresponding to the above method embodiment, an embodiment of the present application also provides a service flow distribution device, which is introduced below.

[0098] like Figure 5 As shown, a service flow distribution device 500 provided in an embodiment of the present application may include an information acquisition module 501 , a weight setting module 502 and a rule generation module 503 .

[0099] The information acquisition module 501 is used to obtain availability detection information of multiple network dedicated lines between the business platform and external organizations, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line.

[0100] The service platform includes multiple computer rooms, and an external organization accesses at least one computer room of the service platform through at least one network dedicated line.

[0101] The availability detection information of a dedicated network line may include the detection result of whether the dedicated network line is available. If a dedicated network line is available, it means that the dedicated network line has no faults and can transmit messages normally. On the contrary, if a dedicated network line is unavailable, it means that the dedicated network line has faults and cannot transmit messages normally.

[0102] In specific implementation, there are many ways to obtain the availability detection information of multiple network dedicated lines between the business platform and external organizations. The following is one method: detect the availability of the preset ports of multiple network dedicated lines between the business platform and external organizations to obtain the availability detection information of the multiple network dedicated lines. Generally speaking, for a network dedicated line, if its preset port is available, it means that the network dedicated line is available, otherwise it is unavailable. Therefore, whether the network dedicated line is available can be determined by detecting whether the preset port is available. Among them, the preset port can include but is not limited to the telnet IP port.

[0103] The weight setting module 502 is used to set the traffic distribution weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, business type information and accessed computer room information corresponding to the network dedicated line.

[0104] The description information of a dedicated network line may include, but is not limited to, the external organization information, business type information, and accessed computer room information corresponding to the dedicated network line, and may also include the identifier of the dedicated network line. In actual applications, the external organization information, business type information, and accessed computer room information corresponding to the dedicated network line can be stored in correspondence with the identifier of the dedicated network line as the description information of the dedicated network line, and the description information of the dedicated network line can also be stored in a database. The business platform's outbound pre-access can periodically read the description information of the dedicated network line from the database and store it in the cache for future use. Among them, the external organization information corresponding to the dedicated network line may include the identifier, name, and other information of the external organization; the business type information corresponding to the dedicated network line may include the identifier of the business type; the computer room information accessed by the dedicated network line may include the computer room identifier (such as the computer room number) and the location of the computer room, and so on.

[0105] The weight setting module 502 can be specifically used to: distribute the traffic of the same business type for the same external organization among multiple network dedicated lines for the external organization to access the business platform for the business type, and automatically set the traffic distribution weight of the network dedicated line that is unavailable as detected to 0, automatically distribute the traffic to other available network dedicated lines, and give priority to the available local network dedicated lines, and consider allocating to available non-local network dedicated lines when the local network dedicated line fails. Of course, it is not excluded that the traffic of the same business type for the same external organization is distributed to the network dedicated line of the computer room of the external organization to access the business platform for other business types.

[0106] More specifically, the weight setting module 502 can be used to: for a target external organization, traverse the multiple computer rooms of the business platform according to a preset period, and perform specified steps for the target computer room. The specified steps include: determining the number of the first dedicated line and the second dedicated line based on the description information of the multiple network dedicated lines, wherein the first dedicated line is the network dedicated line for the target external organization to access the target computer room, and the second dedicated line is the network dedicated line for the target external organization to access computer rooms other than the target computer room among the multiple computer rooms, and the first dedicated line and the second dedicated line are both used to transmit messages of a preset business type; based on the availability detection information and quantity of the first dedicated line and the availability detection information and quantity of the second dedicated line, setting the traffic distribution weights of the first dedicated line and the second dedicated line.

[0107] Specifically, first determine whether the first dedicated line is available based on the availability detection information of the first dedicated line, determine the traffic allocation weight of the unavailable network dedicated line to 0, and then set the traffic allocation weights of the first dedicated line and the second dedicated line according to different situations.

[0108] The first case is the first time that the traffic distribution weight is set for the first dedicated line, that is, the first time that multiple computer rooms of the business platform are traversed.

[0109] (1) When setting the traffic allocation weight for the first dedicated line for the first time, the traffic allocation weight of each available first dedicated line is set to an initial weight, and the traffic allocation weight of each second dedicated line is set to 0.

[0110] The sum of the initial weights of all first dedicated lines is equal to 1 (the same below). The initial weights of different first dedicated lines can be the same or different (the same below). When the initial weights of different first dedicated lines are the same, the initial weight of each first dedicated line is 1 / n, where n represents the total number of first dedicated lines.

[0111] (2) When setting the traffic allocation weight for the first dedicated line for the first time, if part of the first dedicated line is unavailable, the traffic allocation weight of the unavailable first dedicated line is set to 0, and the traffic allocation weight of the available first dedicated line is set to the initial weight.

[0112] Optionally, if the sum of the traffic allocation weights of each network dedicated line is less than 1 after the traffic allocation weights of each network dedicated line are set, the remaining traffic allocation weights are redistributed among the available first dedicated lines and / or available second dedicated lines. The redistribution may be evenly distributed or not. Assuming that the allocated weight is p, the remaining unallocated weight is 1-p. If the redistribution is evenly distributed, the weight allocated to each available first dedicated line and second dedicated line is (1-P) / (n1+n2), where n1 represents the number of available first dedicated lines and n2 represents the number of available second dedicated lines.

[0113] The second case is the case where the traffic distribution weight is not set for the first dedicated line for the first time, that is, the case where multiple computer rooms of the business platform are traversed for the Nth time, where N is a positive integer greater than 1.

[0114] In the case where it is not the first time to set the traffic allocation weight for the first dedicated line, if part of the first dedicated line is unavailable, the traffic allocation weight of the unavailable first dedicated line is set to 0; if part of the first dedicated line is changed from unavailable to available, the traffic allocation weight of the part of the first dedicated line that is changed to available is set to a preset value, which is greater than zero and less than the initial weight; if part of the first dedicated line is available and the last allocated weight is greater than zero and less than the initial weight, the traffic allocation weight of the part of the first dedicated line is increased according to the preset increase rule, and then the unallocated weight is reallocated among the available first dedicated lines and / or the available second dedicated lines.

[0115] Among them, improving the traffic allocation weight of this part of the first dedicated line according to the preset improvement rules includes: improving the traffic allocation weight of this part of the first dedicated line according to the preset improvement range, wherein the preset improvement range is determined based on the initial weight and the preset number of times, and the preset number of times is the number of times gradually increased from 0 to the initial weight.

[0116] Optionally, if after the traffic allocation weights of each network dedicated line are set, the sum of the traffic allocation weights of each network dedicated line is less than 1, the remaining traffic allocation weights are redistributed among the available first dedicated line and / or the available second dedicated line.

[0117] The rule generation module 503 is used to generate a routing rule list based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

[0118] After the traffic distribution weights of the multiple network dedicated lines are set, the routing rule list of the multiple network dedicated lines can be easily determined. Generally speaking, a routing rule list can be generated in combination with the traffic distribution weights and description information of the multiple network dedicated lines, and the routing rule list contains at least one routing rule, and a routing rule generally corresponds to a description of a network dedicated line. For example, a routing rule often includes a network dedicated line identifier, an identifier of the computer room to which the network dedicated line is connected, a service type corresponding to the network dedicated line, a route of the network dedicated line, and a correspondence between the traffic distribution weight of the network dedicated line, wherein the route is the logical address of the network dedicated line, and the traffic distribution weight is used to determine how much traffic is allocated to the network dedicated line.

[0119] As an example, the routing rule list is used by the message processing side to determine a target network dedicated line for a received message.

[0120] Among them, the message processing side belongs to the business platform and is responsible for the distribution of messages. After having a routing rule list, if the message processing side receives a message to be sent (such as a business request), it will first parse the message to determine the target external organization to be sent to and the business type corresponding to the message, and then search and determine at least one available network dedicated line from the routing rule list, and then select a network dedicated line from the at least one network dedicated line according to the traffic distribution weight of the at least one network dedicated line as the target network dedicated line.

[0121] In actual application, the rule generation module 503 may store the generated routing rule list in a database first, and the message processing side reads the routing rule list from the database when it is needed. In order to speed up the acquisition of the routing rule list, the message processing side may also read the routing rule list from the database regularly and store it in a cache. The routing rule list may also be directly fed back to the message processing side, so that the message processing side determines the transmission network dedicated line for the received message according to the routing rule list.

[0122] A business traffic distribution device provided in an embodiment of the present application can automatically obtain availability detection information of multiple network dedicated lines between a business platform and an external organization, and automatically set traffic distribution weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines and generate a routing rule list accordingly to automatically distribute the sent business traffic. There is no need to manually confirm the maintenance status of the network dedicated lines, nor is there any need to manually cut the flow during the maintenance of the network dedicated lines. Therefore, the business traffic distribution efficiency for multiple network dedicated lines can be improved.

[0123] In addition, a service flow distribution device proposed in the embodiment of the present application can overcome the Figure 2 The defects of the business traffic allocation scheme in the related technology shown in the figure are solved, and at least one of the following beneficial effects is achieved: (1) No additional labor cost is required, which not only improves management efficiency but also avoids manual errors; (2) For network dedicated lines with sudden failures, because they can be automatically detected and their traffic allocation weights can be set to 0, it is possible to avoid allocating traffic to the faulty network dedicated lines in time, solving the problem of increased time consumption and request failure caused by still using this network dedicated line to provide services when the network dedicated line has a failure; (3) Traffic is allocated to local network dedicated lines first. Only when the local network dedicated line fails can traffic be allocated to the cross-city dedicated line, thus solving the problem of cross-city access when the local network dedicated line is not faulty; (4) For each network dedicated line, the amount of traffic to be allocated is automatically calculated, and the calculation cost is low.

[0124] It should be noted that Figure 5 The embodiment shown provides a service flow distribution device, which can realize Figure 3 A business traffic distribution method is shown, and can achieve the same technical effect, which will not be repeated here.

[0125] It should be noted that, since the content executed by the device embodiment corresponds to the method embodiment, the description of the device embodiment part in this document is relatively brief, and please refer to the method embodiment part for relevant details.

[0126] Figure 6 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0127] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0128] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0129] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a service flow distribution device at the logical level. The processor executes the program stored in the memory and is specifically used to execute the service flow distribution method provided in the embodiment of the present application.

[0130] The above application Figure 5The method performed by the service flow distribution device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0131] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 5 The method executed by the service flow distribution device in the illustrated embodiment is specifically used to execute the service flow distribution method provided in the embodiment of the present application.

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

[0133] The present application is described with reference to the flowcharts and / or block diagrams of the methods, 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 data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0136] It should be noted that the various embodiments in this application are described in a related manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, 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.

[0137] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0138] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A service flow distribution method, characterized in that: The method comprises: Acquire availability detection information of multiple network dedicated lines between the business platform and an external organization, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line; Based on the availability detection information and description information of the multiple network dedicated lines, setting the traffic distribution weights of the multiple network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line; A routing rule list is generated based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

2. The method according to claim 1, characterized in that The step of setting the traffic distribution weights of the multiple network dedicated lines based on the availability detection information and description information of the multiple network dedicated lines includes: For the target external organization, the multiple computer rooms of the business platform are traversed according to a preset period, and a specified step is performed for the traversed target computer room, wherein the specified step includes: Determine the number of first dedicated lines and second dedicated lines based on the description information of the multiple network dedicated lines, wherein the first dedicated line is a network dedicated line for the target external organization to access the target computer room, and the second dedicated line is a network dedicated line for the target external organization to access a computer room other than the target computer room among the multiple computer rooms; Based on the availability detection information and quantity of the first dedicated line and the availability detection information and quantity of the second dedicated line, the traffic distribution weights of the first dedicated line and the second dedicated line are set.

3. The method according to claim 2, characterized in that The setting of the traffic distribution weights of the first dedicated line and the second dedicated line based on the availability detection information and quantity of the first dedicated line and the availability detection information and quantity of the second dedicated line includes: Set the traffic distribution weight of the unavailable network dedicated line to 0; and, When setting the traffic allocation weight for the first dedicated line for the first time, the traffic allocation weight of each available first dedicated line is set to the initial weight, and the traffic allocation weight of each second dedicated line is set to 0; if after setting the traffic allocation weights of each network dedicated line, the sum of the traffic allocation weights of each network dedicated line is less than 1, the remaining traffic allocation weight is redistributed among the available first dedicated lines and / or the available second dedicated lines; In the case where it is not the first time to set the traffic allocation weight for the first dedicated line, if part of the first dedicated line becomes available from unavailable, the traffic allocation weight of the first dedicated line that has become available is set to a preset value, which is greater than zero and less than the initial weight; if part of the first dedicated line is available and the weight allocated last time is greater than zero and less than the initial weight, the traffic allocation weight of the part of the first dedicated line is increased according to the preset increase rule; if after the traffic allocation weight of each network dedicated line is set, the sum of the traffic allocation weights of each network dedicated line is less than 1, the remaining traffic allocation weight is redistributed among the available first dedicated line and / or the available second dedicated line; The sum of the initial weights of all first dedicated lines is equal to 1.

4. The method according to claim 3, characterized in that: The step of increasing the traffic distribution weight of the first dedicated line according to a preset increase rule includes: The traffic allocation weight of the first dedicated line of this part is increased by a preset increase, wherein the preset increase is determined based on the initial weight and a preset number of times, and the preset number of times is the number of times the initial weight is gradually increased from 0.

5. The method according to claim 3 or 4, characterized in that: The initial weights of the first dedicated lines are the same; Alternatively, the initial weights of different first dedicated lines are different.

6. The method according to claim 1, characterized in that The obtaining of availability detection information of multiple network dedicated lines between the business platform and the external organization includes: The availability of preset ports of multiple network dedicated lines between the business platform and the external organization is detected to obtain availability detection information of the multiple network dedicated lines.

7. The method according to claim 6, characterized in that The preset port includes a telnet IP port.

8. A service flow distribution device, characterized in that: The device comprises: An information acquisition module, used to acquire availability detection information of multiple network dedicated lines between the business platform and an external organization, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line; A weight setting module, configured to set the traffic distribution weights of the plurality of network dedicated lines based on the availability detection information and description information of the plurality of network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line; The rule generation module is used to generate a routing rule list based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

9. An electronic device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Acquire availability detection information of multiple network dedicated lines between the business platform and an external organization, wherein the business platform includes multiple computer rooms, and an external organization accesses at least one computer room of the business platform through at least one network dedicated line; Based on the availability detection information and description information of the multiple network dedicated lines, setting the traffic distribution weights of the multiple network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line; A routing rule list is generated based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.

10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to perform the following operations: Obtain availability detection information of multiple network dedicated lines between the business platform and external organizations, including: The service platform includes multiple computer rooms, and an external organization accesses at least one computer room of the service platform through at least one dedicated network line; Based on the availability detection information and description information of the multiple network dedicated lines, setting the traffic distribution weights of the multiple network dedicated lines, wherein the description information of a network dedicated line includes the external organization information, service type information and accessed computer room information corresponding to the network dedicated line; A routing rule list is generated based on the traffic distribution weights of the multiple network dedicated lines, so that each computer room of the business platform receives the business traffic sent according to the routing rule list through each network dedicated line.