Method and apparatus for allocating routes, and non-volatile storage medium
By obtaining the multi-dimensional service parameters of the communication system and determining the routing and distribution factor, seamless migration and intelligent routing and distribution are achieved without perception in the external system, solving the problem of unconscious reconstruction during the reconstruction and upgrading of the communication system, and improving the system reconstruction efficiency and verification efficiency.
Patent Information
- Application Number
- CN202211341504.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2042-10-27
AI Technical Summary
The prior art requires cooperation from external systems when reconfiguring and upgrading the communication system, which makes it impossible to reconfigure and upgrade without perception of the external system, affecting the system's reconstruction progress.
By obtaining multiple communication service parameters of the target test system, including the communication signal code, the identification of the communication terminal and the identification of the communication channel, the routing distribution factor is determined, the allocation route is determined based on the routing distribution factor, and the target data is sent to the target test system according to the routing allocation path.
It realizes seamless and smooth migration of business data without the perception of external systems, supports multi-dimensional intelligent routing distribution, verify new system functions, shortens project construction period, and reduces operation and maintenance costs.
Smart Images

Figure CN115695562B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to a method and device for allocating routes, and a non-volatile storage medium. Background Art
[0002] Each application system has its specific life cycle. When it develops to a certain stage, in order to meet the needs of business development, it is necessary to reconstruct and upgrade the application system. In related technologies, after the system as a provider completes the reconstruction and upgrade, it is necessary to coordinate with external systems for modification or configuration adjustment. Therefore, the following problems exist: production simulation verification cannot be performed without the awareness of external systems, business data cannot be shunted without the awareness of upstream and downstream systems, and in the case of insufficient cooperation from external systems, the reconstruction progress of the system will be seriously affected.
[0003] In response to the above problems, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of this application provide a method and device for allocating routes, and a non-volatile storage medium, so as to at least solve the technical problem that when reconstructing and upgrading a communication system in related technologies, the cooperation of external systems is required, resulting in the inability to perform reconstruction and upgrade without the awareness of external systems.
[0005] According to one aspect of the embodiments of this application, a method for allocating routes is provided, including: obtaining a plurality of communication service parameters of a target test system, where the plurality of communication service parameters are communication service parameters of different dimensions, and the communication service parameters include at least one of the following: communication numbers, identifiers of communication terminals, and identifiers of communication channels; determining a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a route; and when it is determined to allocate a route according to the routing distribution factor, sending target data to the target test system according to the allocation path of the route.
[0006] Optionally, determining a routing distribution factor according to the communication service parameters includes: determining a routing allocation policy, where the routing allocation policy is used to determine a plurality of target communication service parameters from the plurality of communication service parameters, and the target communication service parameters are used to implement a target communication service; determining boolean values of the plurality of target communication service parameters according to the routing allocation policy; and determining the routing distribution factor according to the boolean values.
[0007] Optionally, determine a routing allocation policy, including: if the first target communication service parameter and the second target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the first policy; if the first target communication service parameter, the second target communication service parameter, and the third target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the second policy; if the first target communication service parameter, the second target communication service parameter, the third target communication service parameter, and the fourth target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the third policy.
[0008] Optionally, according to the routing allocation policy, determine the boolean values of multiple communication service parameters, including: if the routing allocation policy is the first policy, determine the first boolean value of the first target communication service parameter and the second target communication service parameter through a first preset function; if the routing allocation policy is the second policy, determine the second boolean value of the third target communication service parameter through the first preset function based on the first boolean value; if the routing allocation policy is the third policy, determine the third boolean value of the fourth target communication service parameter through the first preset function based on the second boolean value.
[0009] Optionally, according to the boolean values, determine the routing distribution factor, including: if the routing allocation policy is the first policy, perform an operation on the first boolean value according to a second preset function to obtain a first operation result, and use the first operation result as the routing distribution factor; if the routing allocation policy is the second policy, perform an operation on the second boolean value according to the second preset function to obtain a second operation result, and use the second operation result as the routing distribution factor; if the routing allocation policy is the third policy, perform an operation on the third boolean value according to the second preset function to obtain a third operation result, and use the third operation result as the routing distribution factor.
[0010] Optionally, before determining the allocated route according to the routing distribution factor, determine whether to allocate a route according to the routing distribution factor, including: if the routing distribution factor is a first type of distribution factor, determine to allocate a route, where the first type of distribution factor is a routing distribution factor with a boolean value of a first preset value; if the routing distribution factor is a second type of factor, determine not to allocate a route, where the second type of distribution factor is a routing distribution factor with a boolean value of a second preset value.
[0011] Optionally, before determining the routing distribution factor according to the communication service parameters, the method further includes: obtaining an operator set, where the operator set includes numeric operators and character operators, and the operator set is used to determine the boolean values.
[0012] Optionally, the communication service parameter further includes: a first identifier and a second identifier. Determining the routing allocation policy further includes: if the communication service parameter is the first identifier, determining the routing allocation policy as sending the target data to the target test system according to the allocation path of the route; if the communication service parameter is the second identifier, determining the routing allocation policy as rejecting to send the target data to the target test system according to the allocation path of the route.
[0013] According to another aspect of the embodiments of the present application, there is also provided an apparatus for allocating a route, including: an obtaining module, configured to obtain multiple communication service parameters of a target test system, where the multiple communication service parameters are communication service parameters of different dimensions, and the communication service parameter includes at least one of the following: a communication number, an identifier of a communication terminal, and an identifier of a communication channel; a determining module, configured to determine a routing distribution factor according to the communication service parameter, where the routing distribution factor is used to indicate whether to allocate a route; a sending module, configured to, when it is determined to allocate a route according to the routing distribution factor, send the target data to the target test system according to the allocation path of the route.
[0014] According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium, in which a program is stored, and when the program runs, it controls the device where the non-volatile storage medium is located to execute the above method for allocating a route.
[0015] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory and a processor, where the processor is configured to run the program stored in the memory, and when the program runs, it executes the above method for allocating a route.
[0016] In the embodiments of the present application, by adopting the method of obtaining multiple communication service parameters of a target test system, where the multiple communication service parameters are communication service parameters of different dimensions, and the communication service parameter includes at least one of the following: a communication number, an identifier of a communication terminal, and an identifier of a communication channel; determining a routing distribution factor according to the communication service parameter, where the routing distribution factor is used to indicate whether to allocate a route; and when it is determined to allocate a route according to the routing distribution factor, sending the target data to the target test system according to the allocation path of the route, by defining multiple parameters of multiple service dimensions of the target environment as routing distribution elements, combining and superimposing the above multiple routing distribution elements, and confirming the routing distribution factor through a series of Boolean operations, the purpose of realizing the routing distribution of service data according to the policy is achieved, thereby realizing flexible and intelligent routing distribution of services, and achieving the technical effect of seamlessly and smoothly migrating services from the old system to the new system without the awareness of the external system, and further solving the technical problem that when reconstructing and upgrading a communication system in the related art, the cooperation of the external system is required, resulting in the inability to reconstruct and upgrade without the awareness of the external system. Description of the Drawings
[0017] The accompanying 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 of the present application. In the drawings:
[0018] Figure 1 is a schematic diagram of a method for allocating a route provided according to an embodiment of the present application;
[0019] Figure 2 is a schematic diagram of the interaction between an upstream system and a downstream system in a communication service in the related art;
[0020] Figure 3 is a schematic diagram of an operation operator set provided according to an embodiment of the present application;
[0021] Figure 4 is a structural diagram of a device for allocating a route provided according to an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of a device for applying an allocated route provided according to an embodiment of the present application. Detailed implementation manners
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0025] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0026] Routing: It refers to the process at the network level that determines the end-to-end path when a packet travels from the source to the destination; that is, a router receives a data packet on an interface.
[0027] C (n,m) : The permutation and combination formula, which represents the number of non-repeating combinations of randomly selecting m data from n data for permutation and combination, i.e., {n*(n - 1)*(n - 2)…*(n - m + 1) / m*(m - 1)*(m - 2)…*1}; specifically, in this embodiment, it refers to randomly selecting m target communication service parameters (i.e., target routing distribution elements) from n communication service parameters (i.e., routing distribution elements) for combination.
[0028] Boolean expression: It is a code statement that finally has only two values, true and false.
[0029] In the related art, when the application system develops to a certain stage, to meet the needs of business development, it is necessary to realize the reconstruction and upgrade of the application system through the cooperation of other systems. Therefore, there is a problem that it is impossible to achieve seamless and smooth migration of the system without the awareness of the two upstream and downstream systems, namely the application system to be reconstructed and upgraded and the system cooperating with it. To solve this problem, in the embodiments of the present application, by defining routing distribution elements and performing a series of Boolean operations through the combination of multi-dimensional elements, the routing distribution factor is determined, and the data distribution path is confirmed according to the routing distribution factor, and the data is distributed to the target environment, thus solving the above problem, which will be described in detail below.
[0030] According to the embodiments of the present application, a method embodiment for allocating routes is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0031] Figure 1 is a schematic diagram of a method for allocating routes provided according to the embodiments of the present application, as Figure 1 shown, the method includes the following steps:
[0032] Step S102, obtain multiple communication service parameters of the target test system, where the multiple communication service parameters are communication service parameters of different dimensions, and the communication service parameters include at least one of the following: communication signal number, identifier of the communication terminal, and identifier of the communication channel.
[0033] Figure 2 is a schematic diagram of the interaction between the upstream system and the downstream system in the communication service, as Figure 2As shown, the application system (including the new system and the old system), as the capability provider, receives the business data of external systems (including the upstream system and the downstream system); in step S102, Figure 2 The communication service parameters in the routing device shown in: such as the number (i.e., the communication number), the identifier of the communication terminal: such as the identifier corresponding to the customer, the identifier of the communication channel: such as the identifier corresponding to the channel for accepting the communication service, the work number corresponding to the accepted communication service (i.e., the acceptance work number), or the identifier of the product of the above routing device (i.e., the product identifier), etc., multiple parameters related to the communication service of the target test system are used as the routing distribution elements.
[0034] Step S104, determining a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a route.
[0035] In step S104, multiple routing distribution elements (i.e., communication service parameters) determined in step S102 are used to determine a routing distribution factor according to relevant policies and through calculation, and it is judged whether to allocate the route to the target test system according to the routing factor.
[0036] Step S106, in the case of determining to allocate a route according to the routing distribution factor, sending the target data to the target test system according to the allocation path of the route.
[0037] In step S106, if the routing distribution factor determined in step S104 indicates that the above route is allocated to the target test system, then the target data is distributed (i.e., sent) to the target test system according to the data distribution path (i.e., the allocation path) confirmed by the routing distribution factor.
[0038] Through the above steps, combining and superimposing multi-dimensional service parameters to confirm the routing distribution factor, realizing the routing distribution of business data, it can achieve the docking with the new system without the need to transform the upstream and downstream systems and without the awareness of the upstream and downstream systems, achieving the purpose of verifying the functions of the new system with actual business; supporting multi-dimensional intelligent routing distribution according to multi-dimensional factors such as the order source, customer, and number of communication services, realizing the technical effect of distributing certain specific data in production to the new system and comprehensively migrating according to dimensions such as product and business after verification.
[0039] According to an optional embodiment of the present application, determining a routing distribution factor according to the communication service parameters includes the following steps: determining a routing allocation policy, where the routing allocation policy is used to determine multiple target communication service parameters from multiple communication service parameters, and the target communication service parameters are used to implement the target communication service; determining the Boolean values of the multiple target communication service parameters according to the routing allocation policy; determining the routing distribution factor according to the Boolean values.
[0040] In this embodiment, the method for determining the routing allocation policy according to the actual routing requirements of the target environment (i.e., the target test system) is as follows: Use the communication service parameters determined in step S102 as routing distribution elements, and denote the set of routing distribution elements as X. Among them, x i represents the i-th routing distribution element, where i = 1, 2, 3... n. If the routing requirements of the target test system include two routing distribution elements, namely the product identification and the acceptance work number, the routing distribution policy is as follows: Extract the two routing distribution elements that meet the requirements, namely the product identification (X1) and the acceptance work number (X2), as the target routing distribution elements (i.e., the target communication service parameters). Among them, if the extracted product identification (X1) is the product identification corresponding to the routing device of the target test system, and the extracted acceptance work number (X2) is the work number corresponding to the service of accepting the communication service of the target test system, it is considered that the extracted routing distribution elements meet the requirements; otherwise, it is considered that they do not meet the requirements. If the routing requirements of the target test system include m routing distribution elements, then select m target routing distribution elements (i.e., the target communication service parameters) from the n routing distribution elements and recombine them in C (n,m) combinations.
[0041] After selecting the target routing distribution elements (i.e., the target communication service parameters) according to the routing allocation policy, define the Boolean function F = f(x, y, z), where (x ∈ X, y ∈ Y, z is a condition). Here, z represents the communication service between the application system and the target test system, x represents the target routing distribution element that is extracted from the set of routing distribution elements X and meets the communication service (z) between the application system and the target test system, and y represents the operator selected from the set of operation operators Y. Perform a series of Boolean operations on the target routing distribution elements of the target communication service between the application system and the target test system according to the defined Boolean function F = f(x, y, z), where (x ∈ X, y ∈ Y, z is a condition), to obtain the Boolean value of the target routing distribution elements (i.e., the target communication service parameters), and finally determine the routing distribution factor.
[0042] It should be noted that in the Boolean function defined in the embodiment of the present application, each routing distribution element x in the set of routing distribution elements X is an indivisible communication service parameter (i.e., the routing distribution element). When performing Boolean operations on the communication service parameters (i.e., the routing distribution elements), each communication service parameter (i.e., the routing distribution element) x is calculated at the finest granularity.
[0043] According to some alternative embodiments of the present application, determining a routing allocation policy includes the following methods: If the first target communication service parameter and the second target communication service parameter are determined according to the routing allocation policy, the routing allocation policy is determined as the first policy; If the first target communication service parameter, the second target communication service parameter, and the third target communication service parameter are determined according to the routing allocation policy, the routing allocation policy is determined as the second policy; If the first target communication service parameter, the second target communication service parameter, the third target communication service parameter, and the fourth target communication service parameter are determined according to the routing allocation policy, the routing allocation policy is determined as the third policy.
[0044] In some alternative embodiments of the present application, if the parameters of the communication service that meet the target test system are determined as the first target communication service parameter and the second target communication service parameter according to the routing allocation policy, for example, the product identification X i and the acceptance work number X j These two target routing distribution elements (i.e., target communication service parameters), then determine the routing allocation policy (i.e., the first policy) when the number of target routing distribution elements is 2; If the parameters of the communication service that meet the target test system are determined as the first target communication service parameter, the second target communication service parameter, and the third target communication service parameter according to the routing allocation policy, for example, the product identification X i and the acceptance work number X j and the customer identification (i.e., the communication terminal identification) X g These three target routing distribution elements (i.e., target communication service parameters), then determine the routing allocation policy (i.e., the second policy) when the number of target routing distribution elements is 3; If the parameters of the communication service that meet the target test system are determined as the first target communication service parameter, the second target communication service parameter, the third target communication service parameter, and the fourth target communication service parameter according to the routing allocation policy, for example, the product identification X i and the acceptance work number X j , the customer identification (i.e., the identification of the communication terminal) X g and the identification of the acceptance channel (i.e., the identification of the communication channel) X h These four target routing distribution elements (i.e., target communication service parameters), then determine the routing allocation policy (i.e., the third policy) when the number of target routing distribution elements is 4.
[0045] After determining the routing assignment strategy according to the method of the previous embodiment, according to the routing assignment strategy, determine the Boolean values of multiple communication service parameters, including the following situations: If the routing assignment strategy is the first strategy, determine the first Boolean value of the first target communication service parameter and the second target communication service parameter through the first preset function; If the routing assignment strategy is the second strategy, determine the second Boolean value of the first Boolean value and the third target communication service parameter through the first preset function; If the routing assignment strategy is the third strategy, determine the third Boolean value of the second Boolean value and the fourth target communication service parameter through the first preset function.
[0046] In this embodiment, determining the Boolean values of multiple communication service parameters according to the routing assignment strategy includes the following three situations:
[0047] If the routing assignment strategy determined according to the previous embodiment is the strategy when the number of target routing assignment elements is 2 (i.e., the first strategy), then according to this strategy (the first strategy), calculate the Boolean values (i.e., the first Boolean value) of these two target routing assignment elements, and calculate the logical OR (∨) value of the Boolean values of these two target routing assignment elements. For example, calculate the Boolean value F i of the product identifier X i , the Boolean value F j of the acceptance work number X j , and according to the defined formula (i.e., the first preset function) strategy = (F i ∨F j ), calculate the logical OR (∨) Boolean value (i.e., the first Boolean value) of the Boolean values (F i and F j ) of these two target routing distribution elements.
[0048] If the routing assignment strategy determined according to the previous embodiment is the strategy when the number of target routing assignment elements is 3 (i.e., the second strategy), then according to this strategy (the second strategy), calculate the Boolean values of these three target routing assignment elements, calculate the logical OR (∨) value of the Boolean values of two of the target routing assignment elements, and calculate the logical AND (∧) value of the logical OR (∨) value of the Boolean values of the above two target routing assignment elements and the Boolean value of the remaining one target routing assignment element (i.e., the second Boolean value). For example, calculate the Boolean value F i of the product identifier X i , the Boolean value F j of the acceptance work number X j and the Boolean value F g of the customer identifier (i.e., the communication terminal identifier) X g , and according to the defined formula (i.e., the first preset function) strategy = (F i ∨F j )∧F g, calculate the Boolean value of the logical OR (∨) of the Boolean values (F i and F j ) of two of the target route distribution elements, and calculate the Boolean value of the logical OR (∨) of the Boolean values (F i and F j ) of the above two target route distribution elements (i.e., the first Boolean value) and the Boolean value of the logical AND (∧) of the Boolean value (F g ) of the remaining one target route distribution element.
[0049] If the route allocation policy determined according to the previous embodiment is the policy when the number of target route distribution elements is 4 (i.e., the third policy), then calculate the Boolean values of these four target route distribution elements according to this policy (the third policy), calculate the value of the logical OR (∨) of the Boolean values of two of the target route distribution elements, calculate the value of the logical AND (∧) of the value of the logical OR (∨) of the Boolean values of the above two target route distribution elements and the Boolean value of one of the remaining two target route distribution elements, and calculate the logical AND (∧) of the above result and the Boolean value of the logical NOT value of the last target route distribution element (i.e., the third Boolean value). For example, calculate the Boolean value F i of the product identifier X i , the Boolean value F j of the acceptance work number X j , the Boolean value F g of the customer identifier (i.e., the communication terminal identifier) X g and the Boolean value F h of the identifier of the acceptance channel (i.e., the identifier of the communication channel) X h , and calculate the Boolean value of the logical OR (∨) of the Boolean values (F and F i ) of two of the target route distribution elements according to the defined formula (i.e., the first preset function) policy j , calculate the Boolean value of the logical AND (∧) of the value of the logical OR (∨) of the Boolean values (F i and F j ) of the above two target route distribution elements and the Boolean value of one of the remaining two target route distribution elements (F g ), calculate the logical NOT h value of the Boolean value F of the last target route distribution element and calculate the Boolean value of the logical AND of the above result (i.e., the second Boolean value) and the logical NOT h value of the Boolean value F of the last target route distribution element (i.e., the third Boolean value)
[0050] According to some other alternative embodiments of the present application, the routing distribution factor is determined according to a Boolean value, and the method is as follows: If the routing allocation policy is the first policy, the first Boolean value is operated according to a second preset function to obtain a first operation result, and the first operation result is used as the routing distribution factor; if the routing allocation policy is the second policy, the second Boolean value is operated according to the second preset function to obtain a second operation result, and the second operation result is used as the routing distribution factor; if the routing allocation policy is the third policy, the third Boolean value is operated according to the second preset function to obtain a third operation result, and the third operation result is used as the routing distribution factor.
[0051] In this embodiment, after determining the routing allocation policy according to the above embodiment and calculating the Boolean value of the target routing distribution factor according to the routing allocation policy, the Boolean value is operated by a predefined function (i.e., the second preset function) to determine the routing distribution factor, including the following three cases: If according to the above embodiment, it is determined that the routing distribution policy is the policy with the number of target routing distribution factors being 2 (i.e., the first policy), then the Boolean value (i.e., the first Boolean value) of the logical OR of the Boolean values of these two target routing distribution factors is operated by a predefined function (i.e., the second preset function) B = f(strategy) to obtain an operation result (i.e., the first operation result), and it is used as the routing distribution factor. For example, when the target routing distribution factors are product identifier X i and acceptance work number X j for these two, calculate the Boolean value F i of product identifier X i , the Boolean value F j of acceptance work number X j , according to the policy (strategy) = (F i ∨F j ), calculate the Boolean values (F i and F j) the Boolean value of the logical OR (∨) (i.e., the first Boolean value), and perform an operation on the above first Boolean value according to B = f(strategy) to obtain a result (i.e., the first operation result). Similarly, if according to the above embodiment, it is determined that the routing distribution strategy is a strategy with the number of target routing distribution elements being 3 (i.e., the second strategy), then perform an operation on the logical operation result (i.e., the second Boolean value) of the Boolean values of these three target routing distribution elements through a predefined function (i.e., the second predefined function) B = f(strategy) to obtain a result (i.e., the second operation result), and use it as the routing distribution factor under this strategy (i.e., the second strategy); if according to the above embodiment, it is determined that the routing distribution strategy is a strategy with the number of target routing distribution elements being 4 (i.e., the third strategy), then perform an operation on the logical operation result (i.e., the third Boolean value) of the Boolean values of these four target routing distribution elements through a predefined function (i.e., the second predefined function) B = f(strategy) to obtain a result (i.e., the third operation result) and use it as the routing distribution factor under this strategy (i.e., the third strategy).
[0052] According to an alternative embodiment of the present application, before determining the allocated route according to the routing distribution factor, determining whether to allocate a route according to the routing distribution factor includes: if the routing distribution factor is a first type of distribution factor, determining to allocate a route, where the first type of distribution factor is a routing distribution factor with a Boolean value being a first preset value; if the routing distribution factor is a second type of factor, determining not to allocate a route, where the second type of distribution factor is a routing distribution factor with a Boolean value being a second preset value.
[0053] In the embodiment of the present application, the routing distribution factor includes the following two types: the first type of distribution factor: a routing distribution factor with an operation result being logical 1 (i.e., the first preset value); the second type of distribution factor: a routing distribution factor with an operation result being logical 0 (i.e., the second preset value). According to the Boolean expression, when the logical value is 1, it means that the operation result is true, and at this time, it is considered that the routing allocation requirement is met, and the route is allocated to the target test system; when the logical value is 0, it means that the operation result is false, and at this time, it is considered that the routing allocation requirement is not met, and the route allocation to the target test system is rejected.
[0054] According to another alternative embodiment of the present application, before determining the routing distribution factor according to the communication service parameters, the method further includes: obtaining an operator set, where the operator set includes numeric operators and character operators, and the operator set is used to determine the Boolean value.
[0055] For the Boolean function F = f(x, y, z) (x ∈ X, y ∈ Y, z being a condition) mentioned in the above embodiments, where y represents an operator selected from the set of operation operators Y, it can be seen that the routing distribution element x needs to be calculated before determining the routing distribution factor. Therefore, it is necessary to first determine the set of operation operators (i.e., the operator set). Figure 3 is a schematic diagram of the set of operation operators provided according to an embodiment of the present application, as Figure 3 shown. In the operator set that meets the embodiments of the present application, it includes numeric operators such as: equal (==), greater than (>), less than (<), greater than or equal to (>=), less than or equal to (<=), not equal (!=), etc.; character operators such as: contains (CONTAINS), does not contain (NOT_CONTAINS), case-insensitive string equal (EQUAL_IGNORE_CASE), string equal (STRING_EQUAL), string not equal (NOTSTRING_EQUAL), regular match (MATCHES), regular not match (NOT_MATCHES), etc.
[0056] According to some other preferred embodiments of the present application, the communication service parameter further includes: a first identifier and a second identifier. Determining the routing allocation policy further includes the following method: If the communication service parameter is the first identifier, determine the routing allocation policy as sending the target data to the target test system according to the allocation path of the route; If the communication service parameter is the second identifier, determine the routing allocation policy as refusing to send the target data to the target test system according to the allocation path of the route.
[0057] In some other preferred embodiments of the present application, in addition to the communication service parameters obtained in the above embodiments, such as numbers (i.e., communication numbers), identifiers of communication terminals: such as identifiers corresponding to customers, identifiers of communication channels: such as identifiers corresponding to channels for accepting communication services, work numbers corresponding to accepting communication services (i.e., acceptance work numbers), or product identifiers of the above routing devices (i.e., product identifiers), etc., the communication service parameters further include identifiers of other policies pre-set for routing distribution (including a first identifier and a second identifier). Among them, the priority of the above identifiers (including the first identifier and the second identifier) is the highest priority. If the above identifiers (including the first identifier and the second identifier) are obtained, there is no need to determine the routing distribution factor, but directly determine whether to distribute the target data and routing to the target test system through the above identifiers (including the first identifier and the second identifier); specifically, if the received identifier is an identifier with a policy always being true (such as policy 1 == 1) (i.e., the first identifier), then all target data is allowed to be sent to the target test system along the routing distribution path through the routing; if the received identifier is an identifier with a policy always being false (such as policy 1!= 1) (i.e., the second identifier), then all target data is not allowed to be sent to the target test system.
[0058] Figure 4 is a structural diagram of a routing allocation device provided according to an embodiment of the present application, as Figure 4 shown. The device includes: an acquisition module 40, configured to acquire multiple communication service parameters of a target test system, where the multiple communication service parameters are communication service parameters in different dimensions, and the communication service parameters include at least one of the following: communication numbers, identifiers of communication terminals, and identifiers of communication channels; a determination module 42, configured to determine a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a routing; a sending module 44, configured to, when it is determined to allocate a routing according to the routing distribution factor, send the target data along the routing distribution path to the target test system.
[0059] It should be noted that Figure 4 For the preferred implementation manners of the embodiments shown Figure 1 reference may be made to the relevant descriptions of the embodiments shown
[0060] It should also be noted that each module in the above device may be a program module (for example, a set of program instructions for implementing a specific function), or a hardware module. For the latter, it may be presented in the following forms, but not limited to: each of the above modules is presented as a processor, or the functions of each of the above modules are implemented by a processor.
[0061] Figure 5 is a schematic diagram of applying a routing allocation device, asFigure 5 As shown in the figure, the verification of the new system and the migration of the routing to the new system are divided into the following three stages:
[0062] In the first stage, on the intelligent routing device, set the order drainage of certain specific virtual customers to the new system. The upstream system provides the virtual customer acceptance form to verify whether the listed services are processed normally in the new system. The specific steps of the first stage are as follows: 1) Establish a virtual customer list and store it in the database. Query the list to return the number of rows (cnt) of the incoming customer ID; 2) Define the policy; when the number of rows is greater than zero (cnt>0), call the function F = f(x, y, z) for calculation; 3) Call the function B = f(strategy). According to the result of the function B = f(strategy), allow the data with the result of true to enter the new system.
[0063] In the second stage, on the intelligent routing device, set the order source of a certain city to drain to the new system, so as to achieve the purpose of switching all services of a certain city to the new system. The specific implementation steps of the second stage are as follows: 1) Define the policy of the city ID (cityId) and the service code (actionCode); 2) Call the function F = f(x, y, z) to calculate the city ID (cityId) and the service code (actionCode) to confirm whether the obtained city and service code match the order; 3) Call the function B = f(strategy). When both the city ID (cityId) and the service code (actionCode) match, the data with the calculation result of true enters the new system.
[0064] In the third stage, all services in the province are switched to the new system. Realize the seamless and smooth migration of multiple cities, multiple products, multiple services, multiple external systems, and multiple interfaces from the old system to the cloud network orchestration system.
[0065] In the embodiment of the present application, only need to define a policy that is always true (such as 1 == 1) to forward all services to the new system. According to the method provided by the embodiment of the application, before the new system goes online, the specified orders can be drained to the new system in the production environment to verify the functions of the new system; during the trial operation of the new system, the orders issued by the upstream system are distributed to the new system according to the policy, and at the same time, the backfilled data of the downstream is also distributed to the new system; through routing to distribute business data, realize the seamless and smooth migration between the old and new systems, and gradually migrate the services to the new system as needed; save the input time for building and maintaining the test environments of the upstream and downstream systems, shorten the project duration, efficiently verify the end-to-end process of the business, and reduce the operation and maintenance costs.
[0066] An embodiment of the present application also provides a non-volatile storage medium, in which a program is stored. When the program runs, it controls the device where the non-volatile storage medium is located to execute the above method for allocating routes.
[0067] The above storage medium is used to store program instructions for the following functions: obtaining a plurality of communication service parameters of a target test system, where the plurality of communication service parameters are communication service parameters in different dimensions, and the communication service parameters include at least one of the following: communication numbers, identifiers of communication terminals, and identifiers of communication channels; determining a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a route; and when it is determined to allocate a route according to the routing distribution factor, sending the target data to the target test system according to the allocation path of the route.
[0068] An embodiment of the present application also provides an electronic device, which includes: a memory and a processor. The processor is used to run the program stored in the memory. When the program runs, it executes the above method for allocating routes.
[0069] The above electronic device is used to run a program that executes the following functions: obtaining a plurality of communication service parameters of a target test system, where the plurality of communication service parameters are communication service parameters in different dimensions, and the communication service parameters include at least one of the following: communication numbers, identifiers of communication terminals, and identifiers of communication channels; determining a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a route; and when it is determined to allocate a route according to the routing distribution factor, sending the target data to the target test system according to the allocation path of the route.
[0070] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0071] In the above embodiments of the present application, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0072] In the several embodiments provided by the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the units or modules can be in an electrical or other form.
[0073] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0074] In addition, each functional unit in various embodiments of the present application may be integrated into a processing unit, may exist separately as individual physical units, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0075] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the related technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs, etc., all kinds of media that can store program codes.
[0076] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A method for allocating routes, characterized in that, Including: Obtain multiple communication service parameters of a target test system, where the multiple communication service parameters are communication service parameters in different dimensions, and the communication service parameters include at least one of the following: communication signal numbers, identifiers of communication terminals, and identifiers of communication channels; Determine a routing distribution factor according to the communication service parameters, where the routing distribution factor is used to indicate whether to allocate a route; In the case of determining to allocate the route according to the routing distribution factor, send the target data to the target test system according to the allocation path of the route; Determining a routing distribution factor according to the communication service parameters includes: Determine a routing allocation policy, where the routing allocation policy is used to determine multiple target communication service parameters from the multiple communication service parameters, and the target communication service parameters are used to implement a target communication service; according to the routing allocation policy, determine the boolean values of the multiple target communication service parameters; according to the boolean values, determine the routing distribution factor; Determining the boolean values of the multiple communication service parameters according to the routing allocation policy includes: If the routing allocation policy is the first policy, determine the first boolean value of the first target communication service parameter and the second target communication service parameter through a first preset function; if the routing allocation policy is the second policy, determine the second boolean value of the first boolean value and the third target communication service parameter through the first preset function; if the routing allocation policy is the third policy, determine the third boolean value of the second boolean value and the fourth target communication service parameter through the first preset function; Determining the routing distribution factor according to the boolean values includes: If the routing allocation policy is the first policy, perform an operation on the first boolean value according to a second preset function to obtain a first operation result, and use the first operation result as the routing distribution factor; if the routing allocation policy is the second policy, perform an operation on the second boolean value according to the second preset function to obtain a second operation result, and use the second operation result as the routing distribution factor; if the routing allocation policy is the third policy, perform an operation on the third boolean value according to the second preset function to obtain a third operation result, and use the third operation result as the routing distribution factor.
2. The method according to claim 1, wherein Determining a routing allocation policy includes: If the first target communication service parameter and the second target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the first policy; If the first target communication service parameter, the second target communication service parameter, and the third target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the second policy; If the first target communication service parameter, the second target communication service parameter, the third target communication service parameter, and the fourth target communication service parameter are determined according to the routing allocation policy, determine the routing allocation policy as the third policy.
3. The method according to claim 1, wherein Before determining to allocate the route according to the route distribution factor, the method further includes determining whether to allocate the route by the following method: If the route distribution factor is a first type of distribution factor, determine to allocate the route, where the first type of distribution factor is a route distribution factor with a boolean value of a first preset value; If the route distribution factor is a second type of distribution factor, determine not to allocate the route, where the second type of distribution factor is a route distribution factor with the boolean value of a second preset value.
4. The method according to claim 1, wherein Before determining the route distribution factor according to the communication service parameters, the method further includes: obtaining an operator set, where the operator set includes numeric operators and character operators, and the operator set is used to determine the boolean value.
5. The method according to claim 1, wherein The communication service parameters further include: a first identifier and a second identifier. Determining the route allocation policy further includes: If the communication service parameter is the first identifier, determine that the route allocation policy is to send the target data to the target test system according to the allocation path of the route; If the communication service parameter is the second identifier, determine that the route allocation policy is to reject sending the target data to the target test system according to the allocation path of the route.
6. A device for allocating routes, characterized in that, Includes: An obtaining module, configured to obtain multiple communication service parameters of a target test system, where the multiple communication service parameters are communication service parameters of different dimensions, and the communication service parameters include at least one of the following: a communication number, an identifier of a communication terminal, and an identifier of a communication channel; A determining module, configured to determine a route distribution factor according to the communication service parameters, where the route distribution factor is used to indicate whether to allocate a route; A sending module, configured to, when it is determined to allocate the route according to the route distribution factor, send the target data to the target test system according to the allocation path of the route; Determining the route distribution factor according to the communication service parameters includes: Determining a route allocation policy, where the route allocation policy is used to determine multiple target communication service parameters from the multiple communication service parameters, where the target communication service parameters are used to implement a target communication service; according to the route allocation policy, determining the boolean values of the multiple target communication service parameters; according to the boolean values, determining the route distribution factor; Determining the boolean values of the multiple communication service parameters according to the route allocation policy includes: if the route allocation policy is a first policy, determining a first boolean value of a first target communication service parameter and a second target communication service parameter through a first preset function; if the route allocation policy is a second policy, determining the first boolean value and a second boolean value of a third target communication service parameter through the first preset function; if the route allocation policy is a third policy, determining the second boolean value and a third boolean value of a fourth target communication service parameter through the first preset function; Determining the routing distribution factor according to the Boolean value includes: if the routing allocation policy is the first policy, performing an operation on the first Boolean value according to a second preset function to obtain a first operation result, and using the first operation result as the routing distribution factor; if the routing allocation policy is the second policy, performing an operation on the second Boolean value according to the second preset function to obtain a second operation result, and using the second operation result as the routing distribution factor; if the routing allocation policy is the third policy, performing an operation on the third Boolean value according to the second preset function to obtain a third operation result, and using the third operation result as the routing distribution factor.
7. A non-volatile storage medium, characterized in that, The non-volatile storage medium stores a program, wherein when the program runs, it controls the device where the non-volatile storage medium is located to execute the method for allocating routes according to any one of claims 1 to 5.
8. An electronic device, characterized in that, Including: A memory and a processor, the processor is configured to run the program stored in the memory, wherein when the program runs, it executes the method for allocating routes according to any one of claims 1 to 5.
Citation Information
Patent Citations
Message transmission method and device
CN114610764A