CN115695562A - Method and device for distributing route, and nonvolatile storage medium - Google Patents
Method and device for distributing route, and nonvolatile storage medium Download PDFInfo
- Publication number
- CN115695562A CN115695562A CN202211341504.0A CN202211341504A CN115695562A CN 115695562 A CN115695562 A CN 115695562A CN 202211341504 A CN202211341504 A CN 202211341504A CN 115695562 A CN115695562 A CN 115695562A
- Authority
- CN
- China
- Prior art keywords
- communication service
- route
- strategy
- target
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种分配路由的方法及装置、非易失性存储介质。其中,该方法包括:获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。本申请解决了由于相关技术对通信系统进行重构和升级时需要外系统的配合,造成的不能在外系统无感知情况下进行重构升级的技术问题。
The application discloses a method and device for assigning routes, and a non-volatile storage medium. Wherein, the method includes: obtaining a plurality of communication service parameters of the target test system, wherein 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 number, communication terminal identification and communication The identification of the channel; determine the route distribution factor according to the communication service parameters, wherein the route distribution factor is used to indicate whether to distribute the route; in the case of determining the distribution route according to the route distribution factor, send the target data to the target test according to the distribution path of the route system. This application solves the technical problem that the external system cannot be reconfigured and upgraded without the perception of the external system due to the need for the cooperation of the external system when the related technology reconstructs and upgrades the communication system.
Description
技术领域technical field
本申请涉及计算机技术领域,具体而言,涉及一种分配路由的方法及装置、非易失性存储介质。The present application relates to the field of computer technology, in particular, to a method and device for assigning routes, and a non-volatile storage medium.
背景技术Background technique
每一套应用系统都有其特定的生命周期,当发展到一定阶段时,为适应业务发展需要,需对应用系统进行重构升级,相关技术中,对作为提供者的系统完成重构升级后需要协调外系统配合改造或调整配置,因此,存在如下的问题:不能在外系统无感知情况下进行生产仿真验证,不能在上游和下游系统无感知情况下对业务数据分流,在外系统配合力度不足的情况下,将严重影响系统的重构进度。Each application system has its specific life cycle. When it develops to a certain stage, in order to meet the needs of business development, the application system needs to be restructured and upgraded. In related technologies, after the system as a provider is restructured and upgraded It is necessary to coordinate the external system to cooperate with the transformation or adjust the configuration. Therefore, there are the following problems: the production simulation verification cannot be carried out without the awareness of the external system, the business data cannot be shunted without the awareness of the upstream and downstream systems, and the cooperation of the external system is insufficient. Under such circumstances, the progress of system reconstruction will be seriously affected.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容Contents of the invention
本申请实施例提供了一种分配路由的方法及装置、非易失性存储介质,以至少解决由于相关技术对通信系统进行重构和升级时需要外系统的配合,造成的不能在外系统无感知情况下进行重构升级的技术问题。The embodiment of the present application provides a method and device for allocating routes, and a non-volatile storage medium, so as to at least solve the problem that the external system cannot be unaware due to the cooperation of the external system when the related technology reconstructs and upgrades the communication system. The technical problem of refactoring and upgrading under the circumstances.
根据本申请实施例的一个方面,提供了一种分配路由的方法,包括:获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。According to an aspect of an embodiment of the present application, a method for allocating routes is provided, including: obtaining multiple communication service parameters of the target test system, wherein 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 identification of a communication terminal and an identification of a communication channel; determine a route distribution factor according to communication service parameters, wherein the route distribution factor is used to indicate whether to distribute a route; in the case of determining the distribution route according to the route distribution factor , send the target data to the target test system according to the distribution path of the route.
可选地,根据通信业务参数确定路由分发因子,包括:确定路由分配策略,其中,路由分配策略用于从多个通信业务参数中,确定多个目标通信业务参数,其中,目标通信业务参数用于实现目标通信业务;根据路由分配策略,确定多个目标通信业务参数的布尔值;根据布尔值,确定路由分发因子。Optionally, determining the route distribution factor according to the communication service parameters includes: determining a route distribution strategy, wherein the route distribution strategy is used to determine a plurality of target communication service parameters from a plurality of communication service parameters, wherein the target communication service parameter is used To realize the target communication service; determine the Boolean values of multiple target communication service parameters according to the route distribution strategy; determine the route distribution factor according to the Boolean value.
可选地,确定路由分配策略,包括:如果根据路由分配策略确定第一目标通信业务参数和第二目标通信业务参数,将路由分配策略确定为第一策略;如果根据路由分配策略确定第一目标通信业务参数,第二目标通信业务参数和第三目标通信业务参数,将路由分配策略确定为第二策略;如果根据路由分配策略确定第一目标通信业务参数,第二目标通信业务参数,第三目标通信业务参数和第四目标通信业务参数,将路由分配策略确定为第三策略。Optionally, determining the route distribution strategy includes: if the first target communication service parameter and the second target communication service parameter are determined according to the route distribution strategy, determining the route distribution strategy as the first strategy; if the first target communication service parameter is determined according to the route distribution strategy The communication service parameter, the second target communication service parameter and the third target communication service parameter determine the routing allocation strategy as the second strategy; if the first target communication service parameter is determined according to the routing allocation strategy, the second target communication service parameter, the third The target communication service parameter and the fourth target communication service parameter determine the routing allocation strategy as the third strategy.
可选地,根据路由分配策略,确定多个通信业务参数的布尔值,包括:如果路由分配策略为第一策略,通过第一预设函数确定第一目标通信业务参数和第二目标通信业务参数的第一布尔值;如果路由分配策略为第二策略,通过第一预设函数确定第一布尔值与第三目标通信业务参数的第二布尔值;如果路由分配策略为第三策略,通过第一预设函数确定第二布尔值与第四目标通信业务参数的第三布尔值。Optionally, determining the Boolean values of a plurality of communication service parameters according to the route assignment strategy includes: if the route assignment strategy is the first strategy, determining the first target communication service parameter and the second target communication service parameter through a first preset function the first Boolean value; if the routing assignment strategy is the second strategy, the first Boolean value and the second Boolean value of the third target communication service parameter are determined by the first preset function; if the routing assignment strategy is the third strategy, the first Boolean value is determined by the first preset function A predetermined function determines the second Boolean value and the third Boolean value of the fourth target communication service parameter.
可选地,根据布尔值,确定路由分发因子,包括:如果路由分配策略为第一策略,根据第二预设函数对第一布尔值进行运算,得到第一运算结果,将第一运算结果作为路由分发因子;如果路由分配策略为第二策略,根据第二预设函数对第二布尔值进行运算,得到第二运算结果,将第二运算结果作为路由分发因子;如果路由分配策略为第三策略,根据第二预设函数对第三布尔值进行运算,得到第三运算结果,将第三运算结果作为路由分发因子。Optionally, determining the routing distribution factor according to the Boolean value includes: if the routing distribution strategy is the first strategy, performing operations on the first Boolean value according to the second preset function to obtain the first computing result, and using the first computing result as Routing distribution factor; if the routing distribution strategy is the second strategy, operate on the second Boolean value according to the second preset function to obtain the second computing result, and use the second computing result as the routing distribution factor; if the routing distribution strategy is the third The strategy is to 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.
可选地,在根据路由分发因子确定分配路由之前,根据路由分发因子确定是否分配路由,包括:如果路由分发因子为第一类分发因子,确定分配路由,其中,第一类分发因子为布尔值为第一预设值的路由分发因子;如果路由分发因子为第二类因子,确定不分配路由,其中,第二类分发因子为布尔值为第二预设值的路由分发因子。Optionally, before determining to allocate a route according to the route distribution factor, determining whether to allocate a route according to the route distribution factor includes: if the route distribution factor is a first-type distribution factor, determining to allocate a route, wherein the first-type distribution factor is a Boolean value The route distribution factor is a first preset value; if the route distribution factor is a second-type factor, it is determined not to distribute a route, wherein the second-type distribution factor is a route distribution factor with a Boolean value of a second preset value.
可选地,在根据通信业务参数确定路由分发因子之前,方法还包括:获取运算符集合,其中,运算符集合包括数字型运算符和字符型运算符,运算符集合用于确定布尔值。Optionally, before determining the routing distribution factor according to the communication service parameters, the method further includes: obtaining an operator set, wherein the operator set includes numeric operators and character operators, and the operator set is used to determine Boolean values.
可选地,通信业务参数还包括:第一标识和第二标识,确定路由分配策略,还包括:如果通信业务参数为第一标识,确定路由分配策略为将目标数据按照路由的分配路径,发送到目标测试系统;如果通信业务参数为第二标识,确定路由分配策略为拒绝将目标数据按照路由的分配路径,发送到目标测试系统。Optionally, the communication service parameters further include: the first identification and the second identification, determining the routing allocation strategy, and further including: if the communication service parameter is the first identification, determining the routing allocation strategy is to send the target data according to the routing allocation path to the target test system; if the communication service parameter is the second identifier, determine that the route distribution strategy is to refuse to send the target data to the target test system according to the route distribution path.
根据本申请实施例的另一方面,还提供了一种分配路由的装置,包括:获取模块,用于获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;确定模块,用于根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;发送模块,用于在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。According to another aspect of the embodiment of the present application, there is also provided a device for allocating routes, including: an acquisition module, configured to acquire multiple communication service parameters of the target test system, wherein the multiple communication service parameters are communications of different dimensions Service parameters, communication service parameters include at least one of the following: communication number, identification of communication terminal and identification of communication channel; determination module, used to determine route distribution factor according to communication service parameters, wherein, route distribution factor is used to indicate whether to distribute route ; A sending module, configured to send the target data to the target test system according to the distribution path of the route when the distribution route is determined according to the route distribution factor.
根据本申请实施例的另一方面,还提供了一种非易失性存储介质,该非易失性存储介质中存储有程序,其中,在程序运行时控制非易失性存储介质所在设备执行上述的分配路由的方法。According to another aspect of the embodiment of the present application, there is also provided a non-volatile storage medium, the non-volatile storage medium stores a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute The above method of assigning routes.
根据本申请实施例的另一方面,还提供了一种电子设备,该电子设备包括:存储器和处理器,该处理器用于运行存储在存储器中的程序,其中,程序运行时执行上述的分配路由的方法。According to another aspect of the embodiment of the present application, there is also provided an electronic device, the electronic device includes: a memory and a processor, the processor is used to run a program stored in the memory, wherein, when the program is running, the above-mentioned distribution route is executed Methods.
在本申请实施例中,采用获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统的方式,通过将目标环境的多种业务维度的多个参数定义为路由分发要素,对上述多个路由分发要素组合叠加,经过一系列的布尔运算确认路由分发因子,达到了依据策略实现业务数据的路由分发的目的,从而实现了业务灵活智能路由分发,并在外系统无感知的情况下把业务从旧系统无缝平滑地迁移至新系统的技术效果,进而解决了由于相关技术对通信系统进行重构和升级时需要外系统的配合,造成的不能在外系统无感知情况下进行重构升级技术问题。In the embodiment of the present application, multiple communication service parameters of the target test system are obtained, wherein 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 number, identification of the communication terminal and the identification of the communication channel; determine the route distribution factor according to the communication service parameters, wherein the route distribution factor is used to indicate whether to distribute the route; in the case of determining the distribution route according to the route distribution factor, send the target data to the In the way of target test system, by defining multiple parameters of various business dimensions of the target environment as routing distribution elements, combining and superimposing the above multiple routing distribution elements, and confirming the routing distribution factors through a series of Boolean operations, the basis strategy is achieved. Realize the purpose of routing distribution of business data, thereby realizing flexible and intelligent routing distribution of business, and the technical effect of seamlessly and smoothly migrating business from the old system to the new system without the perception of the external system, and then solving the problem caused by related technologies When the communication system is reconfigured and upgraded, the cooperation of the external system is required, resulting in the technical problem that the reconfiguration and upgrade cannot be performed without the perception of the external system.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1是根据本申请实施例提供的一种分配路由的方法的示意图;FIG. 1 is a schematic diagram of a method for allocating routes according to an embodiment of the present application;
图2是相关技术中通信业务中上游系统和下游系统进行交互的示意图;FIG. 2 is a schematic diagram of interaction between an upstream system and a downstream system in a communication service in the related art;
图3是根据本申请实施例提供的操作运算符集合的示意图;Fig. 3 is a schematic diagram of a set of operation operators provided according to an embodiment of the present application;
图4是根据本申请实施例提供的一种分配路由的装置的结构图;FIG. 4 is a structural diagram of a device for allocating routes according to an embodiment of the present application;
图5是根据本申请实施例提供的应用分配路由的装置的示意图。Fig. 5 is a schematic diagram of an apparatus for assigning routes by an application according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
为了更好地理解本申请实施例,以下将本申请实施例中涉及的技术术语解释如下: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:
路由(routing):是指分组从源到目的地时,决定端到端路径的网络范围的进程;是路由器从一个接口上收到数据包。Routing: Refers to the network-wide process of determining the end-to-end path of a packet as it travels from source to destination; a router receives a packet from an interface.
C(n,m):排列组合公式,表示在n个数据中随机抽取m个数据进行排列组合,有{n*(n-1)*(n-2)…*(n-m+1)/m*(m-1)*(m-2)…*1}中不重复组合;具体的。在本实施例中指代在n个通信业务参数(即路由分发要素)中抽取m个目标通信业务参数(即目标路由分发要素)进行组合。C (n,m) : Permutation and combination formula, which means that m data are randomly selected from n data for permutation and combination. There are {n*(n-1)*(n-2)…*(n-m+1) /m*(m-1)*(m-2)…*1} does not repeat the combination; specific. In this embodiment, it refers to extracting and combining m target communication service parameters (ie, target route distribution elements) from n communication service parameters (ie, route distribution elements).
布尔表达式(Boolean expression):是一段代码声明,最终只有真(ture)和假(false)两个取值。Boolean expression (Boolean expression): is a piece of code statement, and ultimately only true (true) and false (false) two values.
在相关技术中,当应用系统发展到一定阶段时,为适应业务发展需要,需通过其它系统的配合实现应用系统的重构升级,因此,存在无法在,进行重构升级的应用系统和与其配合的系统,这两个上下游系统都无感知的情况下,实现系统的无缝平滑迁移的问题;为了解决该问题,本申请实施例中通过定义路由分发要素,以多维度的要素进行组合进行一系列的布尔运算,从而确定路由分发因子,依据路由分发因子确认数据分发路径,把数据分发到目标环境从而可以解决上述问题,以下详细说明。In related technologies, when the application system develops to a certain stage, in order to meet the needs of business development, the application system needs to be reconstructed and upgraded through the cooperation of other systems. Therefore, there are application systems that cannot be reconstructed and upgraded and their cooperation In the system, the problem of seamless and smooth migration of the system is realized when the two upstream and downstream systems are not aware; in order to solve this problem, in the embodiment of this application, the routing distribution elements are defined and combined with multi-dimensional elements A series of Boolean operations determine the routing distribution factor, confirm the data distribution path according to the routing distribution factor, and distribute the data to the target environment so as to solve the above problems, which will be described in detail below.
根据本申请实施例,提供了一种分配路由的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, an embodiment of a method for allocating routes is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although A logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.
图1是根据本申请实施例提供的一种分配路由的方法的示意图,如图1所示,该方法包括如下步骤:Fig. 1 is a schematic diagram of a method for allocating routes according to an embodiment of the present application. As shown in Fig. 1, the method includes the following steps:
步骤S102,获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识。Step S102, obtaining a plurality of communication service parameters of the target test system, wherein 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 number, identification of communication terminal and identification of communication channel .
图2是通信业务中上游系统和下游系统进行交互的示意图,如图2所示,应用系统(包括新系统和旧系统)作为能力提供者接收外系统(包括上游系统和下游系统)的业务数据;在步骤S102中,将图2中所示的路由装置中的通信业务参数:如号码(即通信号码),通信终端的标识:如客户对应的标识,通信渠道的标识:如受理通信业务的渠道对应的标识,与受理通信业务对应的工号(即受理工号),或者上述路由装置的产品的标识(即产品标识)等多个与目标测试系统的通信业务相关的参数作为路由分发要素。Figure 2 is a schematic diagram of the interaction between the upstream system and the downstream system in the communication business. As shown in Figure 2, the application system (including the new system and the old system) acts as a capability provider to receive the business data of the external system (including the upstream system and the downstream system) ; In step S102, the communication service parameter in the routing device shown in Fig. 2: as number (being communication number), the identification of communication terminal: as the corresponding identification of client, the identification of communication channel: as accepting communication service The identification corresponding to the channel, the employee number corresponding to the acceptance of the communication service (i.e. the acceptance number), or the identification of the product of the above-mentioned routing device (i.e. the product identification) and other parameters related to the communication service of the target test system are used as routing distribution elements .
步骤S104,根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由。Step S104, determining a route distribution factor according to the communication service parameter, wherein the route distribution factor is used to indicate whether to distribute a route.
在步骤S104中,将步骤S102中确定的多个路由分发要素(即通信业务参数)依据相关策略,并经过计算,确定路由分发因子,根据路由因子判断是否将路由分配到目标测试系统。In step S104, a plurality of route distribution elements (ie, communication service parameters) determined in step S102 are calculated according to relevant strategies to determine route distribution factors, and judge whether to distribute routes to the target test system according to the route factors.
步骤S106,在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。Step S106, when the distribution route is determined according to the route distribution factor, the target data is sent to the target test system according to the distribution path of the route.
在步骤S106中,如果根据步骤S104中确定的路由分发因子指示将上述路由分配到目标测试系统,则将目标数据按照路由分发因子确认的数据分发路径(即分配路径)分发(即发送)到目标测试系统。In step S106, if the above-mentioned route is assigned to the target test system according to the route distribution factor determined in step S104, then the target data is distributed (i.e. sent) to the target according to the data distribution path (i.e. distribution path) confirmed by the route distribution factor test system.
通过上述步骤,组合叠加多维度业务参数确认路由分发因子,实现业务数据的路由分发,可以实现在无需改造上下游系统的基础上,在上下游系统无感知的情况下实现与新系统的对接,达到了以实际业务验证新系统功能的目的;支持根据通信业务的订单来源、客户和号码等多维度因素进行多维度智能路由分发,实现了把生产某些特定的数据分发到新系统,在验证无误后按产品、业务等维度全面迁移的技术效果。Through the above steps, combine and superimpose multi-dimensional business parameters to confirm the routing distribution factor, and realize the routing distribution of business data. On the basis of no need to transform the upstream and downstream systems, the connection with the new system can be realized without the upstream and downstream systems being aware. The purpose of verifying the functions of the new system with actual business is achieved; it supports multi-dimensional intelligent routing distribution based on multi-dimensional factors such as communication business order sources, customers and numbers, and realizes the distribution of certain production data to the new system. After correcting the technical effect of comprehensive migration according to product, business and other dimensions.
根据本申请一个可选的实施例,根据通信业务参数确定路由分发因子,包括以下步骤:确定路由分配策略,其中,路由分配策略用于从多个通信业务参数中,确定多个目标通信业务参数,其中,目标通信业务参数用于实现目标通信业务;根据路由分配策略,确定多个目标通信业务参数的布尔值;根据布尔值,确定路由分发因子。According to an optional embodiment of the present application, determining the route distribution factor according to the communication service parameters includes the following steps: determining a route distribution strategy, wherein the route distribution strategy is used to determine a plurality of target communication service parameters from a plurality of communication service parameters , wherein the target communication service parameters are used to realize the target communication service; according to the routing distribution strategy, determine the Boolean values of multiple target communication service parameters; according to the Boolean values, determine the routing distribution factor.
在本实施例中,根据目标环境(即目标测试系统)的实际路由需求确定路由分配策略的方法如下:将在步骤S102中确定的通信业务参数作为路由分发要素,将路由分发要素集合记为X,其中,xi表示第i个路由分发要素,i=1,2,3……n。如果目标测试系统的路由需求产品标识和受理工号这两个路由分发要素,则路由分发策略为:抽取满足要求的产品标识(X1)和受理工号(X2)这两个路由分发要素作为目标路由分发要素(即目标通信业务参数);其中,如果抽取的产品标识(X1)为与目标测试系统的路由装置对应的产品标识,抽取的受理工号(X2)为与受理目标测试系统的通信业务这一业务对应的工号,则视为抽取的路由分发要素满足要求;否则视为不满足要求。如果目标测试系统的路由需求m个路由分发要素,则在n个路由分发要素中选取m个目标路由分发要素(即目标通信业务参数)按照C(n,m)种组合方式重新组合。In this embodiment, the method for determining the routing distribution strategy according to the actual routing requirements of the target environment (i.e., the target test system) is as follows: the communication service parameters determined in step S102 are used as routing distribution elements, and the routing distribution element set is denoted as X ,in, x i represents the i-th routing distribution element, i=1, 2, 3...n. If the routing requirements of the target test system are the two routing distribution elements of product identification and acceptance number, the routing distribution strategy is: extract the two routing distribution elements that meet the requirements: product identification (X1) and acceptance number (X2) as the target Routing distribution elements (that is, target communication service parameters); wherein, if the extracted product identification (X1) is the product identification corresponding to the routing device of the target test system, the extracted acceptance number (X2) is the communication with the acceptance target test system If the job number corresponding to the business is the business, it is considered that the extracted routing distribution elements meet the requirements; otherwise, it is considered not to meet the requirements. If the routing of the target test system requires m routing distribution elements, select m target routing distribution elements (that is, target communication service parameters) from the n routing distribution elements and recombine them in C (n, m) combinations.
在根据路由分配策略选定目标路由分发要素(即目标通信业务参数)后,定义布尔函数F=f(x,y,z),(x∈X,y∈Y,z为条件),其中,z表示应用系统与目标测试系统之间的通信业务,x表示从路由分发要素集合X中抽取的,满足应用系统与目标测试系统之间的通信业务(z)的目标路由分发要素,y表示从操作运算符集合Y中选取的运算符;根据上述定义的布尔函数F=f(x,y,z),(x∈X,y∈Y,z为条件)对应用系统与目标测试系统之间的,目标通信业务的目标路由分发要素进行一系列的布尔运算,得到目标路由分发要素(即目标通信业务参数)的布尔值,最终确定路由分发因子。After selecting the target routing distribution elements (i.e. target communication service parameters) according to the routing distribution strategy, define the Boolean function F=f(x, y, z), (x ∈ X, y ∈ Y, z is the condition), where, z represents the communication service between the application system and the target test system, x represents the target route distribution element extracted from the routing distribution element set X, which satisfies the communication service (z) between the application system and the target test system, and y represents the distribution element from The operator selected from the operation operator set Y; according to the Boolean function F=f(x, y, z) defined above, (x∈X, y∈Y, z is the condition) for the relationship between the application system and the target test system Yes, the target routing distribution element of the target communication service performs a series of Boolean operations to obtain the Boolean value of the target routing distribution element (that is, the target communication service parameter), and finally determines the routing distribution factor.
需要说明的是,在本申请实施例定义的布尔函数中,路由分发要素集合X中的每个路由分忧分发要素x,均为不可拆分的通信业务参数(即路由分发要素),在对通信业务参数(即路由分发要素)进行布尔运算时,将每个通信业务参数(即路由分发要素)x作为最细粒度进行计算。It should be noted that, in the Boolean function defined in the embodiment of the present application, each routing distribution element x in the routing distribution element set X is an indivisible communication service parameter (ie, a routing distribution element). When Boolean operations are performed on business parameters (ie, route distribution elements), each communication service parameter (ie, route distribution elements) x is calculated as the finest granularity.
根据本申请一些可选的实施例,确定路由分配策略,包括以下的方法:如果根据路由分配策略确定第一目标通信业务参数和第二目标通信业务参数,将路由分配策略确定为第一策略;如果根据路由分配策略确定第一目标通信业务参数,第二目标通信业务参数和第三目标通信业务参数,将路由分配策略确定为第二策略;如果根据路由分配策略确定第一目标通信业务参数,第二目标通信业务参数,第三目标通信业务参数和第四目标通信业务参数,将路由分配策略确定为第三策略。According to some optional embodiments of the present application, determining the route assignment strategy includes the following method: if the first target communication service parameter and the second target communication service parameter are determined according to the route assignment strategy, determine the route assignment strategy as the first strategy; 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 assignment strategy, the routing assignment strategy is determined as the second strategy; if the first target communication service parameter is determined according to the routing assignment strategy, The second target communication service parameter, the third target communication service parameter and the fourth target communication service parameter determine the routing allocation strategy as the third strategy.
在本申请一些可选的实施例中,如果根据路由分配策略确定满足目标测试系统的通信业务的参数为第一目标通信业务参数和第二目标通信业务参数,如,为产品标识Xi和受理工号Xj这两个目标路由分发要素(即目标通信业务参数),则确定在目标路由分发要素的数量为2时的路由分配策略(即第一策略);如果根据路由分配策略确定满足目标测试系统的通信业务的参数为第一目标通信业务参数和第二目标通信业务参数和第三目标通信业务参数,如,为产品标识Xi和受理工号Xj和客户标识(即通信终端标识)Xg这三个目标路由分发要素(即目标通信业务参数),则确定在目标路由分发要素的数量为3时的路由分配策略(即第二策略);如果根据路由分配策略确定满足目标测试系统的通信业务的参数为第一目标通信业务参数和第二目标通信业务参数,第三目标通信业务参数和第四目标通信业务参数,如,为产品标识Xi和受理工号Xj,客户标识(即通信终端的标识)Xg和受理渠道的标识(即通信渠道的标识)Xh这四个目标路由分发要素(即目标通信业务参数),则确定在目标路由分发要素的数量为4时的路由分配策略(即第三策略)。In some optional embodiments of the present application, if it is determined according to the routing allocation strategy that the parameters of the communication services satisfying the target test system are the first target communication service parameters and the second target communication service parameters, for example, the product identifier X i and acceptance Work number X j these two target routing distribution elements (i.e. target communication business parameters), then determine the routing distribution strategy (i.e. the first strategy) when the quantity of target routing distribution elements is 2; The parameter of the communication business of test system is the first target communication business parameter and the second target communication business parameter and the 3rd target communication business parameter, as, be product identification X i and acceptance work number X j and customer identification (being communication terminal identification ) x g these three target routing distribution elements (i.e. the target communication service parameters), then determine the routing distribution strategy (i.e. the second strategy) when the quantity of the target routing distribution elements is 3; if it is determined to meet the target test according to the routing distribution strategy The parameters of the communication service of the system are the first target communication service parameter and the second target communication service parameter, the third target communication service parameter and the fourth target communication service parameter, for example, it is the product identification X i and the acceptance number X j , the customer The 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. the target communication business parameters), then determine that the number of distribution elements in the target routing is 4 The routing allocation strategy (that is, the third strategy) at the time.
在根据上一实施例的方法确定路由分配策略之后,根据路由分配策略,确定多个通信业务参数的布尔值,包括以下情况:如果路由分配策略为第一策略,通过第一预设函数确定第一目标通信业务参数和第二目标通信业务参数的第一布尔值;如果路由分配策略为第二策略,通过第一预设函数确定第一布尔值与第三目标通信业务参数的第二布尔值;如果路由分配策略为第三策略,通过第一预设函数确定第二布尔值与第四目标通信业务参数的第三布尔值。After the routing allocation strategy is determined according to the method of the previous embodiment, the Boolean values of multiple communication service parameters are determined according to the routing allocation strategy, including the following situations: if the routing allocation strategy is the first strategy, the first preset function is used to determine the first strategy. A target communication service parameter and the first Boolean value of the second target communication service parameter; if the routing allocation strategy is the second strategy, the first Boolean value and the second Boolean value of the third target communication service parameter are determined by the first preset function ; If the routing allocation strategy is the third strategy, determine the second Boolean value and the third Boolean value of the fourth target communication service parameter through the first preset function.
在本实施例中,根据路由分配策略确定多个通信业务参数的布尔值包括以下三种情况:In this embodiment, determining the Boolean values of multiple communication service parameters according to the routing allocation strategy includes the following three situations:
如果根据上一实施例确定的路由分配策略为目标路由分配要素的数量为2时的策略(即第一策略),则根据该策略(第一策略)计算这两个目标路由分配要素的布尔值(即第一布尔值),并计算这两个目标路由分配要素的布尔值的逻辑或(∨)的值。例如,计算产品标识Xi的布尔值Fi,受理工号Xj的布尔值Fj,并根据定义的公式(即第一预设函数)策略(strategy)=(Fi∨Fj),计算这两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值(即第一布尔值)。If the routing allocation strategy determined according to the previous embodiment is the strategy (i.e. the first strategy) when the number of target routing distribution elements is 2, then calculate the Boolean values of these two target routing distribution elements according to the strategy (first strategy) (i.e. the first Boolean value), and computes the logical OR (∨) of the Boolean values of these two destination routing assignment elements. For example, calculate the Boolean value F i of the product identifier Xi, accept the Boolean value F j of the worker number X j , and according to the defined formula (namely the first preset function) strategy (strategy)=(F i ∨ F j ), Calculate the Boolean value of the logical OR (∨) of the Boolean values (F i and F j ) of these two target route distribution elements (ie the first Boolean value).
如果根据上一实施例确定的路由分配策略为目标路由分配要素的数量为3时的策略(即第二策略),则根据该策略(第二策略)计算这三个目标路由分配要素的布尔值,计算第其中两个目标路由分配要素的布尔值的逻辑或(∨)的值,并计算上述两个目标路由分配要素的布尔值的逻辑或(∨)的值与剩余一个目标路由分配要素的布尔值的逻辑与(∧)的值(即第二布尔值)。例如,计算产品标识Xi的布尔值Fi,受理工号Xj的布尔值Fj和客户标识(即通信终端标识)Xg的布尔值Fg,并根据定义的公式(即第一预设函数)策略(strategy)=(Fi∨Fj)∧Fg,计算其中两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值,并计算上述两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值(即第一布尔值)与剩余一个目标路由分发要素的布尔值(Fg)的逻辑与(∧)的布尔值(即第二布尔值)。If the routing assignment strategy determined according to the previous embodiment is the strategy (i.e. the second strategy) when the number of target routing assignment elements is 3, then calculate the Boolean values of these three target routing assignment elements according to the strategy (second strategy) , calculate the value of the logical OR (∨) of the Boolean values of the first two destination routing assignment elements, and calculate the value of the logical OR (∨) of the Boolean values of the above two destination routing assignment elements and the value of the remaining one destination routing assignment element The value of the logical AND (∧) of the Boolean value (ie, the second Boolean value). For example, calculate the Boolean value F i of the product identification Xi, the Boolean value F j of the acceptance number X j and the Boolean value F g of the customer identification (i.e. communication terminal identification) X g , and according to the defined formula (i.e. the first preset Let function) strategy (strategy)=(F i ∨ F j )∧F g , calculate the logical OR (∨) Boolean value of the Boolean values (F i and F j ) of the two target route distribution elements, and calculate the above Logical AND ( ∧) (i.e. the second boolean value).
如果根据上一实施例确定的路由分配策略为目标路由分配要素的数量为4时的策略(即第三策略),则根据该策略(第三策略)计算这四个目标路由分配要素的布尔值,计算第其中两个目标路由分配要素的布尔值的逻辑或(∨)的值,计算上述两个目标路由分配要素的布尔值的逻辑或(∨)的值与剩余两个中的一个目标路由分配要素的布尔值的逻辑与(∧)的值,并计算上述结果与最后一个目标路由分配要素的布尔值的逻辑非值的逻辑与(∧)的布尔值(即第三布尔值)。例如,计算产品标识Xi的布尔值Fi,受理工号Xj的布尔值Fj,客户标识(即通信终端标识)Xg的布尔值Fg和受理渠道的标识(即通信渠道的标识)Xh的布尔值Fh,并根据定义的公式(即第一预设函数)策略计算其中两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值,计算上述两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值与剩余两个中的一个目标路由分发要素的布尔值(Fg)的逻辑与(∧)的布尔值,计算最后一个目标路由分发要素的布尔值Fh的逻辑非值并计算上述结果(即第二布尔值)与最后一个目标路由分发要素的布尔值Fh的逻辑非值的逻辑与的布尔值(即第三布尔值)If the routing allocation strategy determined according to the previous embodiment is the strategy (i.e. the third strategy) when the quantity of the target routing distribution elements is 4, then calculate the Boolean values of these four target routing distribution elements according to the strategy (the third strategy) , calculate the value of the logical OR (∨) of the Boolean values of the first two target route assignment elements, calculate the value of the logical OR (∨) of the Boolean values of the above two target route assignment elements and one of the remaining two target routes The value of the logical AND (∧) of the Boolean value of the assigned element, and calculates the logical NOT of the above result and the Boolean value of the last destination route assigned element The logical AND (∧) of the value's Boolean value (i.e. the third Boolean value). For example, calculate the Boolean value F i of the product identification Xi, the Boolean value F j of the acceptance worker number X j , the Boolean value F g of the customer identification (i.e. communication terminal identification) X g and the identification of the acceptance channel (i.e. the identification of the communication channel )X h Boolean value F h , and according to the defined formula (namely the first preset function) strategy Calculate the Boolean value of the logical OR (∨) of the two target routing distribution elements (F i and F j ), and calculate the logical OR of the above two target routing distribution elements (F i and F j ) ( ∨) and the Boolean value (∧) of the Boolean value (F g ) of one of the remaining two target routing distribution elements, and calculate the logical NOT of the Boolean value F h of the last target routing distribution element value And calculate the logical NOT of the above result (i.e. the second Boolean value) and the Boolean value F h of the last target routing distribution element The Boolean value of the logical AND of the values (i.e. the third Boolean value)
根据本申请另一些可选的实施例,根据布尔值确定路由分发因子,方法如下:如果路由分配策略为第一策略,根据第二预设函数对第一布尔值进行运算,得到第一运算结果,将第一运算结果作为路由分发因子;如果路由分配策略为第二策略,根据第二预设函数对第二布尔值进行运算,得到第二运算结果,将第二运算结果作为路由分发因子;如果路由分配策略为第三策略,根据第二预设函数对第三布尔值进行运算,得到第三运算结果,将第三运算结果作为路由分发因子。According to some other optional embodiments of the present application, the route distribution factor is determined according to the Boolean value, the method is as follows: if the route allocation strategy is the first strategy, the first Boolean value is calculated according to the second preset function to obtain the first calculation result , using the first calculation result as the routing distribution factor; if the routing distribution strategy is the second strategy, performing operations on the second Boolean value according to the second preset function to obtain the second computing result, and using the second computing result as the routing distribution factor; If the route allocation strategy is the third strategy, the third Boolean value is calculated according to the second preset function to obtain a third calculation result, and the third calculation result is used as the route distribution factor.
在本实施例中,在根据上述实施例确定路由分配策略,并根据路由分配策略计算了目标路由分发要素的布尔值之后,通过预先定义的函数(即第二预设函数)对上述布尔值进行运算确定路由分发因子,包括以下三种情况:如果根据上述实施例,确定路由分发策略为目标路由分发要素的数量为2的策略(即第一策略),则通过预先定义的函数(即第二预设函数)B=f(strategy)对这两个目标路由分发要素的布尔值的逻辑或的布尔值(即第一布尔值)进行运算,得到运算结果(即第一运算结果),并将其作为路由分发因子,例如,当目标路由分发因素为产品标识Xi和受理工号Xj这两个时,计算产品标识Xi的布尔值Fi,受理工号Xj的布尔值Fj,根据策略(strategy)=(Fi∨Fj),计算这两个目标路由分发要素的布尔值(Fi和Fj)的逻辑或(∨)的布尔值(即第一布尔值),并根据B=f(strategy)对上述第一布尔值进行运算,得到结果(即第一运算结果)。同样地,如果根据上述实施例,确定路由分发策略为目标路由分发要素的数量为3的策略(即第二策略),则通过预先定义的函数(即第二预设函数)B=f(strategy)对这三个目标路由分发要素的布尔值的逻辑运算结果(即第二布尔值)进行运算,得到结果(即第二运算结果),并将作为该策略(即第二策略)下的其作为路由分发因子;如果根据上述实施例,确定路由分发策略为目标路由分发要素的数量为4的策略(即第三策略),则通过预先定义的函数(即第二预设函数)B=f(strategy)对这四个目标路由分发要素的布尔值的逻辑运算结果(即第三布尔值)进行运算,得到结果(即第三运算结果)并将其作为该策略(即第三策略)下的路由分发因子。In this embodiment, after the routing distribution strategy is determined according to the above-mentioned embodiment, and the Boolean value of the target routing distribution element is calculated according to the routing distribution strategy, the above-mentioned Boolean value is processed by a predefined function (ie, a second preset function). The operation determines the routing distribution factor, including the following three situations: if according to the above-mentioned embodiment, it is determined that the routing distribution strategy is a strategy (i.e. the first strategy) in which the quantity of the target routing distribution elements is 2, then by a predefined function (i.e. the second Preset function) B=f(strategy) operates on the Boolean value (i.e. the first Boolean value) of the logical OR of the Boolean values of the two target routing distribution elements to obtain the operation result (i.e. the first operation result), and It is used as a route distribution factor. For example, when the target route distribution factor is the product identification Xi and the acceptance number X j , calculate the Boolean value F i of the product identification Xi and the Boolean value F j of the acceptance number X j , according to the strategy (strategy)=(F i ∨ F j ), calculate the Boolean value (namely the first Boolean value) of the logical OR (∨) of the Boolean values (F i and F j ) of these two target route distribution elements, And according to B=f(strategy), the above-mentioned first Boolean value is operated to obtain a result (ie, the first operation result). Similarly, if according to the above-mentioned embodiment, it is determined that the route distribution strategy is a strategy (i.e. the second strategy) in which the quantity of the target route distribution elements is 3, then by the pre-defined function (i.e. the second preset function) B=f(strategy ) operate on the logical operation results (i.e. the second Boolean value) of the Boolean values of the three target route distribution elements to obtain the result (i.e. the second operation result), and use it as the other strategy (i.e. the second strategy) As the routing distribution factor; if according to the above-described embodiment, it is determined that the routing distribution strategy is a strategy (i.e. the third strategy) in which the quantity of the target routing distribution elements is 4, then by a predefined function (i.e. the second preset function) B=f (strategy) operate on the logical operation results (ie the third Boolean value) of the Boolean values of the four target route distribution elements, obtain the result (ie the third operation result) and use it as the strategy (ie the third strategy) routing distribution factor.
根据本申请一个可选的实施例,在根据路由分发因子确定分配路由之前,根据路由分发因子确定是否分配路由,包括:如果路由分发因子为第一类分发因子,确定分配路由,其中,第一类分发因子为布尔值为第一预设值的路由分发因子;如果路由分发因子为第二类因子,确定不分配路由,其中,第二类分发因子为布尔值为第二预设值的路由分发因子。According to an optional embodiment of the present application, before determining to allocate a route according to the route distribution factor, determining whether to allocate a route according to the route distribution factor includes: if the route distribution factor is a first-type distribution factor, determining to allocate a route, wherein the first The class distribution factor is a route distribution factor whose Boolean value is the first preset value; if the route distribution factor is the second class factor, it is determined not to distribute the route, wherein the second class distribution factor is a route whose Boolean value is the second preset value distribution factor.
在本申请实施例中,路由分发因子包括如下两类:第一类分发因子:运算结果为逻辑1(即第一预设值)的路由分发因子;第二类分发因子:运算结果为逻辑0(即第二预设值)的路由分发因子。根据布尔表达式,当逻辑值为1时,表示运算结果为真(ture),此时认为满足路由分配要求,将路由分配到目标测试系统;当逻辑值为0时,表示运算结果为假(false),此时认为不满足路由分配要求,拒绝将路由分配到目标测试系统。In the embodiment of the present application, the routing distribution factors include the following two types: the first type of distribution factor: the routing distribution factor whose operation result is logic 1 (ie, the first preset value); the second type of distribution factor: the operation result is logic 0 (that is, the second preset value) of the routing distribution factor. According to the Boolean expression, when the logic value is 1, it means that the operation result is true (true), at this time, it is considered that the routing assignment requirements are met, and the routing is assigned to the target test system; when the logic value is 0, it means that the operation result is false ( false), at this time, it is considered that the route distribution requirements are not met, and the route distribution to the target test system is refused.
根据本申请另一个可选的实施例,在根据通信业务参数确定路由分发因子之前,方法还包括:获取运算符集合,其中,运算符集合包括数字型运算符和字符型运算符,运算符集合用于确定布尔值。According to another optional 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 Used to determine boolean values.
如上述实施例提到的布尔函数F=f(x,y,z),(x∈X,y∈Y,z为条件),其中,y表示从操作运算符集合Y中选取的运算符,可知在确定路由分发因子前需要对路由分发要素x进行运算,因此,需要首先确定操作运算符集合(即运算符集合);图3是根据本申请实施例提供的操作运算符集合的示意图,如图3所示,满足本申请实施例的运算符集合中,包括数字型运算符,如:等于(==),大于(>),小于(<),大于等于(>=)小于等于(<=),不等于(!=)等;字符型运算符,如:包含(CONTAINS),不包含(NOT_CONTAINS),不区分大小写的字符串等于(EQUAL_IGNORE_CASE),字符串相等(STRING_EQUAL),字符串不等(NOTSTRING_EQUAL),正则匹配(MATCHES),正则不匹配(NOT_MATCHES)等。Boolean function F=f(x, y, z) as mentioned in the above-mentioned embodiment, (x ∈ X, y ∈ Y, z is a condition), wherein, y represents the operator selected from the operation operator set Y, It can be seen that the routing distribution element x needs to be calculated before the routing distribution factor is determined. Therefore, it is necessary to first determine the operation operator set (ie, the operator set); Fig. 3 is a schematic diagram of the operation operator set provided according to the embodiment of the present application, such as As shown in FIG. 3 , the set of operators satisfying the embodiment of the present application includes numerical operators, such as: equal to (==), greater than (>), less than (<), greater than or equal to (>=), less than or equal to (< =), not equal to (!=), etc.; character operators, such as: contains (CONTAINS), does not contain (NOT_CONTAINS), case-insensitive string is equal to (EQUAL_IGNORE_CASE), string is equal to (STRING_EQUAL), string Not equal (NOTSTRING_EQUAL), regular match (MATCHES), regular mismatch (NOT_MATCHES), etc.
根据本申请另一些优选的实施例,通信业务参数还包括:第一标识和第二标识,确定路由分配策略,还包括以下方法:如果通信业务参数为第一标识,确定路由分配策略为将目标数据按照路由的分配路径,发送到目标测试系统;如果通信业务参数为第二标识,确定路由分配策略为拒绝将目标数据按照路由的分配路径,发送到目标测试系统。According to some other preferred embodiments of the present application, the communication service parameters also include: the first identification and the second identification, and determining the routing allocation strategy also includes the following method: if the communication service parameter is the first identification, determine the routing allocation strategy as the target The data is sent to the target test system according to the routing distribution path; if the communication service parameter is the second identifier, the routing distribution strategy is determined as rejecting the sending of the target data to the target testing system according to the routing distribution path.
在本申请另一些优选的实施例中,获取的通信业务参数中除上述实施例中提及的如号码(即通信号码),通信终端的标识:如客户对应的标识,通信渠道的标识:如受理通信业务的渠道对应的标识,与受理通信业务对应的工号(即受理工号),或者上述路由装置的产品的标识(即产品标识)等通信业务参数之外,还包括针对路由分发预先设置的其它策略的标识(包括第一标识和第二标识),其中,上述标识(包括第一标识和第二标识)的优先级为最高优先级,如果获取到上述标识(包括第一标识和第二标识),无需再确定路由分发因,而是直接通过上述标识(包括第一标识和第二标识)确定是否将目标数据和路由分发到目标测试系统;具体的,如果接收到的标识为策略恒为真(ture)(如策略1==1)的标识(即第一标识),则允许将所有的目标数据按照路由的分配路径,通过路由发送到目标测试系统;如果接收到的标识为策略恒为假(false)(如策略1!=1)的标识(即第二标识),则所有的目标数据均不被允许发送到目标测试系统。In some other preferred embodiments of the present application, in addition to the number (i.e. communication number) mentioned in the above-mentioned embodiments, the identification of the communication terminal: such as the corresponding identification of the customer, the identification of the communication channel: such as In addition to the communication service parameters such as the identification corresponding to the channel that accepts the communication service, the employee number corresponding to the acceptance communication service (i.e. the acceptance work number), or the identification of the product of the above-mentioned routing device (i.e. the product identification), it also includes pre-installed information for routing distribution. The identification of other policies (including the first identification and the second identification) set, wherein the priority of the above identification (including the first identification and the second identification) is the highest priority, if the above identification (including the first identification and the second identification) is obtained second identification), no need to determine the route distribution cause, but directly determine whether to distribute the target data and the route to the target test system through the above identification (including the first identification and the second identification); specifically, if the received identification is The strategy is always true (true) (such as
图4是根据本申请实施例提供的一种分配路由的装置的结构图,如图4所示,该装置包括:获取模块40,用于获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;确定模块42,用于根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;发送模块44,用于在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。FIG. 4 is a structural diagram of a device for allocating routes according to an embodiment of the present application. As shown in FIG. 4 , the device includes: an acquisition module 40 configured to acquire multiple communication service parameters of the target test system, wherein multiple A communication service parameter is a communication service parameter of different dimensions, and the communication service parameter includes at least one of the following: a communication number, an identification of a communication terminal and an identification of a communication channel; a determination module 42 is used to determine a routing distribution factor according to the communication service parameter, wherein , the route distribution factor is used to indicate whether to distribute the route; the sending module 44 is configured to send the target data to the target test system according to the distribution path of the route when the distribution route is determined according to the route distribution factor.
需要说明的是,图4所示实施例的优选实施方式可以参见图1所示实施例的相关描述,此处不再赘述。It should be noted that, for preferred implementation manners of the embodiment shown in FIG. 4 , reference may be made to relevant descriptions of the embodiment shown in FIG. 1 , and details are not repeated here.
还需要说明的是,上述装置中的各个模块可以是程序模块(例如是实现某种特定功能的程序指令集合),也可以是硬件模块,对于后者,其可以表现为以下形式,但不限于此:上述各个模块的表现形式均为一个处理器,或者,上述各个模块的功能通过一个处理器实现。It should also be noted that each module in the above-mentioned device may be a program module (such as a set of program instructions to realize a certain function), or a hardware module. For the latter, it may be expressed in the following forms, but not limited to Here: each of the above-mentioned modules is represented by one processor, or the functions of the above-mentioned modules are realized by one processor.
图5是应用分配路由的装置的示意图,如图5所示,对新系统验证和将路由迁移到新系统分为以下三个阶段:Fig. 5 is a schematic diagram of a device for applying distributed routing. As shown in Fig. 5, the verification of the new system and the migration of the routing to the new system are divided into the following three stages:
在第一阶段,在智能路由装置上设定某些特定虚拟客户的订单引流到新系统,由上游系统提供虚拟客户受理单,来验证列举的业务在新系统处理是否正常,第一阶段的具体步骤如下:1)建立虚拟客户清单入库,通过清单查询返回传入客户ID的行数(cnt);2)定义策略;行数大于零(cnt>0),调动函数F=f(x,y,z)进行运算;3)调用函数B=f(strategy),根据函数B=f(strategy)的结果,允许结果为真(true)的数据进入新系统。In the first stage, the intelligent routing device is set to guide the orders of some specific virtual customers to the new system, and the upstream system provides virtual customer acceptance orders to verify whether the enumerated business is processed normally in the new system. The specific details of the first stage The steps are as follows: 1) Create a list of virtual customers for storage, and return the number of lines (cnt) of the incoming customer ID through list query; 2) Define a strategy; the number of lines is greater than zero (cnt>0), and the transfer function F=f(x, y, z) to perform calculations; 3) call the function B=f(strategy), and according to the result of the function B=f(strategy), allow the data whose result is true (true) to enter the new system.
在第二阶段,在智能路由装置上设定为订单来源为某个地市的订单引流新系统,从而达到将某个地市的全量业务切换到新系统的运行的目的;第二阶段的具体实现步骤如下:1)定义地市ID(cityId)与业务编码(actionCode)的策略,2)调动函数F=f(x,y,z)运算地市ID(cityId)和业务编码(actionCode),确认获取地市和业务编码是否与订单匹配;3)调用函数B=f(strategy),在地市ID(cityId)和业务编码(actionCode)都匹配时,运算结果为true的数据进入新系统。In the second stage, set the order source on the intelligent routing device as a new system for order drainage in a certain city, so as to achieve the purpose of switching the full amount of business in a certain city to the operation of the new system; the specific details of the second stage The implementation steps are as follows: 1) define the strategy of city ID (cityId) and business code (actionCode), 2) mobilize function F=f(x, y, z) to calculate city ID (cityId) and business code (actionCode), Confirm whether the obtained city and business codes match the order; 3) call function B=f(strategy), when the city ID (cityId) and business code (actionCode) both match, the data whose operation result is true enters the new system.
第三阶段,全省全业务切换到新系统。实现多个地市,多个产品,多个业务,多个外部系统,以及多个接口从旧服开系统无缝平滑迁移到云网编排系统。In the third stage, all businesses in the province are switched to the new system. Realize the seamless and smooth migration of multiple cities, multiple products, multiple businesses, multiple external systems, and multiple interfaces from the old service development system to the cloud network orchestration system.
在本申请实施例中,只需要定义一个永远为真(true)的策略,如1==1即可把所有业务都转发到新系统,根据申请实施例提供的方法,能够在新系统上线前,在生产环境引流指定的单到新系统,以验证新系统的功能;在新系统试运行期间,将上游系统下发的订单根据策略分发到新系统,同时也将下游的回填的数据分发到新系统中;通过路由分发业务数据,实现新旧系统的无缝平滑迁移,按需把业务逐步迁移到新系统;节省了上下游系统测试环境的搭建和维护的投入时间,缩短了项目工期,高效验证业务端到端流程,降低了运维成本。In the embodiment of this application, it is only necessary to define a strategy that is always true (true), such as 1==1, all services can be forwarded to the new system. According to the method provided in the embodiment of the application, it is possible to , drain the specified order to the new system in the production environment to verify the function of the new system; during the trial run of the new system, distribute the orders issued by the upstream system to the new system according to the strategy, and also distribute the downstream backfilled data to In the new system; distribute business data through routing, realize seamless and smooth migration of the old and new systems, and gradually migrate the business to the new system as needed; save the investment time in the establishment and maintenance of the upstream and downstream system test environments, shorten the project duration, and be efficient Verify the end-to-end business process, reducing operation and maintenance costs.
本申请实施例还提供了一种非易失性存储介质,该非易失性存储介质中存储有程序,其中,在程序运行时控制非易失性存储介质所在设备执行以上的分配路由的方法。The embodiment of the present application also provides a non-volatile storage medium, the non-volatile storage medium stores a program, wherein, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the above distribution routing method .
上述存储介质用于存储以下功能的程序指令:获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。The above-mentioned storage medium is used to store program instructions for the following functions: obtaining multiple communication service parameters of the target test system, wherein 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 number, The identification of the communication terminal and the identification of the communication channel; determine the route distribution factor according to the communication service parameters, wherein the route distribution factor is used to indicate whether to distribute the route; in the case of determining the distribution route according to the route distribution factor, distribute the target data according to the distribution of the route path, sent to the target test system.
本申请实施例还提供了一种电子设备,该电子设备包括:存储器和处理器,该处理器用于运行存储在存储器中的程序,其中,程序运行时执行以上的分配路由的方法。An embodiment of the present application also provides an electronic device, which includes: a memory and a processor, where the processor is configured to run a program stored in the memory, wherein the above method for allocating routes is executed when the program is running.
上述电子设备用于运行执行以下功能的程序:获取目标测试系统的多个通信业务参数,其中,多个通信业务参数为不同维度的通信业务参数,通信业务参数包括至少以下之一:通信号码,通信终端的标识和通信渠道的标识;根据通信业务参数确定路由分发因子,其中,路由分发因子用于指示是否分配路由;在根据路由分发因子确定分配路由的情况下,将目标数据按照路由的分配路径,发送到目标测试系统。The above-mentioned electronic device is used to run a program that performs the following functions: obtain multiple communication service parameters of the target test system, wherein 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 number, The identification of the communication terminal and the identification of the communication channel; determine the route distribution factor according to the communication service parameters, wherein the route distribution factor is used to indicate whether to distribute the route; in the case of determining the distribution route according to the route distribution factor, distribute the target data according to the distribution of the route path, sent to the target test system.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be realized in other ways. Wherein, the device embodiments described above are only illustrative. For example, the division of the units may be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of this application 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, and the computer software product is stored in a storage medium. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only the preferred embodiment of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, some improvements and modifications can also be made. These improvements and modifications are also It should be regarded as the protection scope of this application.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211341504.0A CN115695562B (en) | 2022-10-27 | 2022-10-27 | Method and device for distributing route and nonvolatile storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211341504.0A CN115695562B (en) | 2022-10-27 | 2022-10-27 | Method and device for distributing route and nonvolatile storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115695562A true CN115695562A (en) | 2023-02-03 |
| CN115695562B CN115695562B (en) | 2025-07-18 |
Family
ID=85046134
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211341504.0A Active CN115695562B (en) | 2022-10-27 | 2022-10-27 | Method and device for distributing route and nonvolatile storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115695562B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011023122A1 (en) * | 2009-08-28 | 2011-03-03 | 华为技术有限公司 | Method, device and system for routing service |
| CN110765024A (en) * | 2019-10-29 | 2020-02-07 | 百度在线网络技术(北京)有限公司 | Simulation test method, simulation test device, electronic equipment and computer-readable storage medium |
| CN114610764A (en) * | 2022-03-11 | 2022-06-10 | 中国农业银行股份有限公司 | Message transmission method and device |
| CN115222124A (en) * | 2022-07-15 | 2022-10-21 | 中国电信股份有限公司 | Optimal dispatch path matching method, device, electronic equipment and storage medium |
-
2022
- 2022-10-27 CN CN202211341504.0A patent/CN115695562B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011023122A1 (en) * | 2009-08-28 | 2011-03-03 | 华为技术有限公司 | Method, device and system for routing service |
| CN110765024A (en) * | 2019-10-29 | 2020-02-07 | 百度在线网络技术(北京)有限公司 | Simulation test method, simulation test device, electronic equipment and computer-readable storage medium |
| CN114610764A (en) * | 2022-03-11 | 2022-06-10 | 中国农业银行股份有限公司 | Message transmission method and device |
| CN115222124A (en) * | 2022-07-15 | 2022-10-21 | 中国电信股份有限公司 | Optimal dispatch path matching method, device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115695562B (en) | 2025-07-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107070705A (en) | A kind of method of combination of cloud resource | |
| CN106487537A (en) | Business chain implementation method and policy control platform | |
| CN103440136A (en) | Distributed authoring and versioning method and system | |
| CN110471718A (en) | A kind of task processing method and equipment | |
| CN110636394A (en) | Virtual optical network mapping method, device, equipment and medium | |
| CN109510834B (en) | Security policy issuing method and device | |
| CN108537534A (en) | A kind of universal payment method and system device of adaptation multiple terminals | |
| EP1523151A3 (en) | Method, application server, computer program and corresponding product for automatic creation and configuration of license models and policies | |
| US11552853B2 (en) | Service chain accomodation apparatus and service chain accommodation method | |
| CN114124794B (en) | Service domain bearing planning method and device based on multi-area optical network system | |
| CN104869011A (en) | Circuit dispatching method and circuit dispatching device | |
| CN115695562A (en) | Method and device for distributing route, and nonvolatile storage medium | |
| CN115190076A (en) | Traffic splitting method, apparatus, computer-readable storage medium, and electronic device | |
| CN112395024B (en) | Interface calling method and related device | |
| CN110798538B (en) | NAT address allocation method and device | |
| CN106815221B (en) | Telecommunication service relation judging method and device | |
| CN107741994A (en) | A kind of data-updating method and device | |
| ATE460791T1 (en) | NETWORK MANAGEMENT SYSTEM AND METHOD FOR PROVIDING COMMUNICATION SERVICES | |
| CN111309801A (en) | Method and device for fragmenting alliance chain | |
| CN109962812B (en) | Electrical layer discrete service back calculation method and system | |
| CN107404675B (en) | Optical path self-configuration method | |
| CN112035849B (en) | Data processing method and device and electronic equipment | |
| CN109150577B (en) | Service management method and network management system | |
| CN110830316B (en) | A method, apparatus and electronic device for configuring network resources based on service level | |
| CN111466134A (en) | Method and arrangement for allocating communication resources in a communication network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |