CN109729008B - Routing method and device and computer equipment - Google Patents

Routing method and device and computer equipment Download PDF

Info

Publication number
CN109729008B
CN109729008B CN201810455312.XA CN201810455312A CN109729008B CN 109729008 B CN109729008 B CN 109729008B CN 201810455312 A CN201810455312 A CN 201810455312A CN 109729008 B CN109729008 B CN 109729008B
Authority
CN
China
Prior art keywords
route
parameters
parameter
routes
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.)
Active
Application number
CN201810455312.XA
Other languages
Chinese (zh)
Other versions
CN109729008A (en
Inventor
李仲夷
张驰
卓世兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN201810455312.XA priority Critical patent/CN109729008B/en
Publication of CN109729008A publication Critical patent/CN109729008A/en
Application granted granted Critical
Publication of CN109729008B publication Critical patent/CN109729008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a route selection method, a device and computer equipment, wherein the method comprises the steps of determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and weight values of the parameters corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule. The invention can realize the shunting of transaction data, effectively improve the message transmission efficiency, reduce the data processing capacity of the online clearing platform with a distributed architecture and improve the overall stability of the platform.

Description

Routing method and device and computer equipment
Technical Field
The present invention relates to the field of clearing technologies, and in particular, to a routing method, an apparatus, and a computer device.
Background
In the related art, the internet clearing platform with a distributed architecture has a poor message transmission effect when transmitting transaction data of the internet clearing platform.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a routing method, which can implement shunting of transaction data, effectively improve message transmission efficiency, reduce data processing load of a network clearing platform with a distributed architecture, and improve overall stability of the platform.
Another object of the present invention is to provide a routing device.
It is another object of the invention to propose a non-transitory computer-readable storage medium.
It is a further object of the invention to propose a computer program product.
Another object of the invention is to propose a computer device.
To achieve the above object, an embodiment of the first aspect of the present invention provides a routing method, including: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
In the routing method provided in the first aspect of the present invention, at least one parameter in a packet to be transmitted is determined, a plurality of routes and a weight value of a parameter corresponding to each route are obtained, a routing rule is generated according to the parameter and the weight value, and a route for transmitting the packet to be transmitted is selected according to the routing rule.
In order to achieve the above object, a routing device according to an embodiment of a second aspect of the present invention includes: the determining module is used for determining at least one parameter in the message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; a generating module, configured to generate a routing rule according to the parameter and the weight value; and the selection module is used for selecting the route for transmitting the message to be transmitted according to the route selection rule.
The routing device provided in the embodiment of the second aspect of the present invention determines at least one parameter in a packet to be transmitted, obtains multiple routes and a weight value of the parameter corresponding to each route, generates a routing rule according to the parameters and the weight values, and selects a route for transmitting the packet to be transmitted according to the routing rule.
To achieve the above object, a non-transitory computer-readable storage medium according to a third embodiment of the present invention is a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a routing method, the method including: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
The non-transitory computer-readable storage medium according to the third aspect of the present invention determines at least one parameter in a packet to be transmitted, obtains multiple routes and a weight value of a parameter corresponding to each route, generates a routing rule according to the parameters and the weight values, and selects a route for transmitting the packet to be transmitted according to the routing rule, where the selected route is an optimized route based on the weight values, so as to implement shunting of transaction data, thereby effectively improving packet transmission efficiency, reducing a data processing load of a network clearing platform having a distributed architecture, and improving overall stability of the platform.
To achieve the above object, a computer program product according to a fourth aspect of the present invention is provided, wherein when instructions of the computer program product are executed by a processor, a routing method is performed, and the method includes: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
In the computer program product provided in the fourth aspect of the present invention, by determining at least one parameter in a packet to be transmitted, obtaining multiple routes and a weight value of a parameter corresponding to each route, generating a routing rule according to the parameters and the weight values, and selecting a route used for transmitting the packet to be transmitted according to the routing rule, because the selected route is an optimized route based on the weight values, splitting transaction data is implemented, and therefore, packet transmission efficiency can be effectively improved, a data processing load of a network alliance clearing platform with a distributed architecture is reduced, and overall stability of the platform is improved.
The fifth aspect of the present invention further provides a computer device, which includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
The computer device provided by the embodiment of the fifth aspect of the present invention determines at least one parameter in a packet to be transmitted, obtains multiple routes and a weight value of the parameter corresponding to each route, generates a routing rule according to the parameter and the weight value, and selects a route for transmitting the packet to be transmitted according to the routing rule.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a routing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a routing method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a routing device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a routing device according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a routing method according to an embodiment of the present invention.
The routing method in the embodiment of the invention can be particularly applied to a network connection clearing platform. The present embodiment is exemplified in a case where the routing method is configured as a routing apparatus.
The routing device may be disposed in the server, or may also be disposed in the electronic device, which is not limited in this embodiment of the present invention.
The routing method in the embodiment of the invention is used for routing based on the message information for sending the transaction data when the transaction data of the online clearing platform needs to be transmitted.
Further, the routing method in the embodiment of the present invention is applied to an online clearing platform with a distributed architecture, wherein the routing method includes a plurality of distributed nodes, and transaction data is sent to a service side customized by a bank or the online clearing platform via the plurality of distributed nodes.
It should be noted that, the execution main body in the embodiment of the present invention may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a background management service in the server or the electronic device in terms of software, which is not limited to this.
The embodiment of the invention is exemplified by the routing device being arranged in the electronic equipment.
Referring to fig. 1, the method includes:
s101: at least one parameter in the message to be transmitted is determined, and a plurality of routes and the weight value of the parameter corresponding to each route are obtained.
The message to be transmitted is a message for transmitting transaction data.
Wherein the at least one parameter is at least one of:
data center number, organization number, message number, account type.
In the specific execution process, the embodiment of the invention can call an Application Program Interface (API) to capture the message for transmitting the transaction data, and analyze the fields in the message to obtain the parameter information included in the message.
The embodiment of the invention selects one route from the existing routes in the online clearing platform with the distributed architecture for transmission based on the condition of parameters contained in the actual message to be transmitted, and realizes the shunting of transaction data because the selected route is an optimized route based on the weighted value, so that the message transmission efficiency can be effectively improved, the data processing capacity of the online clearing platform with the distributed architecture is reduced, and the overall stability of the platform is improved.
Wherein, the parameter corresponding to each route may also be at least one of the following:
data center number IDC, organization number, message number and account type.
The weighted value corresponding to each parameter may be used to mark the probability of the route matched with the parameter, for example, the route a includes a parameter data center number, a mechanism number, and a packet number, where the data center number, the mechanism number, and the packet number all have one corresponding weighted value, that is, the weighted value corresponding to the data center number is a, the weighted value corresponding to the mechanism number is b, and the weighted value corresponding to the packet number is c, and then, a specific value may be used to represent the probability of the route a matched with the parameter data center number in a plurality of routes, and b and c are understood based on the same method.
In the embodiment of the present invention, in the process of one routing, the weight value of the parameter corresponding to each route may be updated after the last routing process, that is, the weight value may be updated after the route is selected, and the updated weight value is stored in the database, corresponding to each routing.
Through the in-process at routing each time, update the weighted value, can guarantee that routing each time all possesses the optimal routing effect for it more possesses the practicality to carry out routing through the weighted value, promotes platform overall stability from another dimension.
Specifically, referring to table 1, table 1 is a schematic table of weight values of parameters corresponding to each route stored in the database, where table 1 includes three routes, route 1, route 2, route 3, and each route corresponds to a corresponding parameter and a weight value of the corresponding parameter.
TABLE 1
Figure BDA0001659500830000061
The weighted value in table 1, the route numbered 1, and the hit probability is 60/(60+30+10) ═ 60%, that is, 100 times of packet requests for transmitting transaction data, 60 times of routing policy using the route number 1, 30 times of routing policy using the route number 2, and 10 times of routing policy using the route number 3.
S102: and generating a routing rule according to the parameters and the weight values.
Optionally, in some embodiments, referring to fig. 2, generating a routing rule according to the parameters and the weight values includes:
s201: if the at least one parameter comprises: and selecting corresponding parameters from the plurality of routes and simultaneously including the following parameters: and taking the data center number, the mechanism number, the message number and the account type route as a first route.
S202: and determining the route with the largest weight value from the first routes as the selected route.
In the specific execution process of the embodiment of the present invention, the routes meeting the conditions may be preferentially queried according to the data center number, the organization number, the message number, and the account type, that is, selecting corresponding parameters from the multiple routes includes: and taking the data center number, the mechanism number, the message number and the route of the account type as a first route, if the first route exists and the number of the first route is at least two, selecting one first route according to the configured weight value, and if the first route does not exist, triggering to execute S203.
By preferentially inquiring according to the data center number, the mechanism number, the message number and the account type, the screening from a plurality of parameters can be avoided, and at least one parameter simultaneously comprises: the data center number, the mechanism number, the message number and the account type are directly selected from a plurality of routes, and the route selection efficiency can be effectively improved.
Further, in the embodiment of the present invention, if the at least one parameter includes: the data center number, the organization number, the message number, and the account type, however, each of the plurality of routes includes, when the parameters corresponding to each of the plurality of routes are different: when the data center number, the mechanism number, the message number and the account type are used, the abnormal prompt information can be generated to prompt the abnormality, so that the negative influence of the routing matching error on the load capacity of the online clearing platform with the distributed architecture can be effectively avoided, and the prompt can be timely given to the user to assist the user to find other solutions in time.
S203: if the at least one parameter comprises: and selecting corresponding parameters from the plurality of routes and simultaneously comprising any three parameters of the data center number, the mechanism number, the message number and the account type: and taking the route with any three parameters and the parameters except the any three parameters as null values as a third route.
S204: and determining the route with the largest weight value from the third routes as the selected route.
In the specific implementation process of the embodiment of the present invention, routes meeting the conditions may be queried according to any three parameters of the data center number, the organization number, the message number, and the account type, that is, a route having corresponding parameters including the foregoing three parameters is selected from the multiple routes, and a route having a null value as a parameter other than the foregoing three parameters is used as a third route, if the third route exists and the number of the third route is at least two, a third route is selected according to a configured weight value, and if the third route does not exist, S205 is triggered.
In the embodiment of the invention, the corresponding parameters are selected from the multiple routes and simultaneously comprise the routes of any three parameters, and the route of which one parameter except the any three parameters is a null value is used as the third route, so that the technical problem that in some scenes, for example, if a message number is definitely configured as a matching condition but a front-end input (query) condition cannot match a result, if no limiting condition that the message number is null exists, an incorrect routing strategy can be matched can be solved. Optionally, in some embodiments, referring to fig. 2, generating a routing rule according to the parameters and the weight values includes:
s205: if the at least one parameter comprises: selecting any two parameters of the data center number, the mechanism number, the message number and the account type from the plurality of routes, wherein the selecting of the corresponding parameters simultaneously comprises the following steps: and taking any two parameters and taking the route of which the parameters except any two parameters are null values as a second route in the corresponding parameters.
S206: and determining the route with the largest weight value from the second routes as the selected route.
In the specific implementation process of the embodiment of the present invention, a routing meeting the conditions may be queried according to any two parameters in a data center number, an organization number, a message number, and an account type, that is, a routing having the corresponding parameters including the two parameters is selected from multiple routes, and a routing having a null value is selected as the second routing except the two parameters, if the second routing exists and the number of the second routing is at least two, a second routing is selected according to a configured weighted value, and if the second routing does not exist, an exception prompt message is generated to prompt an exception.
Optionally, in some embodiments, referring to fig. 2, generating a routing rule according to the parameters and the weight values includes:
s103: and selecting the route for transmitting the message to be transmitted according to the route selection rule.
In the embodiment of the invention, the selected route is an optimized route based on the weighted value, so that the message transmission efficiency can be effectively improved.
In this embodiment, by determining at least one parameter in a packet to be transmitted, obtaining a plurality of routes and a weight value of a parameter corresponding to each route, generating a routing rule according to the parameters and the weight values, and selecting a route for transmitting the packet to be transmitted according to the routing rule, because the selected route is an optimized route based on the weight values, the transaction data is shunted, and therefore, the packet transmission efficiency can be effectively improved, the data processing capacity of the internet connection clearing platform with a distributed architecture is reduced, and the overall stability of the platform is improved.
Fig. 3 is a schematic structural diagram of a routing device according to an embodiment of the present invention.
Referring to fig. 3, the apparatus 300 includes: a determination module 301, a generation module 302, and a selection module 303, wherein,
the determining module 301 is configured to determine at least one parameter in a packet to be transmitted, and obtain multiple routes and weight values of the parameters corresponding to each route.
A generating module 302, configured to generate a routing rule according to the parameter and the weight value.
The selecting module 303 is configured to select a route for transmitting the packet to be transmitted according to a routing rule.
Optionally, in some embodiments, the at least one parameter is at least one of:
data center number, organization number, message number, account type.
Optionally, in some embodiments, the generating module 302 is specifically configured to:
if the at least one parameter comprises: and selecting corresponding parameters from the plurality of routes and simultaneously including the following parameters: the data center number, the mechanism number, the message number and the route of the account type are used as a first route;
and determining the route with the largest weight value from the first routes as the selected route.
Optionally, in some embodiments, the generating module 302 is further specifically configured to:
if the at least one parameter comprises: selecting any two parameters of the data center number, the mechanism number, the message number and the account type from the plurality of routes, wherein the selecting of the corresponding parameters simultaneously comprises the following steps: any two parameters, and in the corresponding parameters, the route of which the parameters except any two parameters are null values is used as a second route;
and determining the route with the largest weight value from the second routes as the selected route.
Optionally, in some embodiments, the generating module 302 is further specifically configured to:
if the at least one parameter comprises: and selecting corresponding parameters from the plurality of routes and simultaneously comprising any three parameters of the data center number, the mechanism number, the message number and the account type: taking any three parameters, and taking the route of which the parameters except any three parameters are null values as a third route in the corresponding parameters;
and determining the route with the largest weight value from the third routes as the selected route.
Optionally, in some embodiments, referring to fig. 4, further comprising:
and the prompting module 304 is configured to generate an exception prompting message to prompt for an exception when there is no route with a null parameter.
It should be noted that the explanation of the embodiment of the routing method in the foregoing embodiments of fig. 1-2 also applies to the routing apparatus 300 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, by determining at least one parameter in a packet to be transmitted, obtaining a plurality of routes and a weight value of a parameter corresponding to each route, generating a routing rule according to the parameters and the weight values, and selecting a route for transmitting the packet to be transmitted according to the routing rule, because the selected route is an optimized route based on the weight values, the transaction data is shunted, and therefore, the packet transmission efficiency can be effectively improved, the data processing capacity of the internet connection clearing platform with a distributed architecture is reduced, and the overall stability of the platform is improved.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
The computer device may be a mobile phone, a tablet computer, etc.
Referring to fig. 5, the computer apparatus 50 of the present embodiment includes: the electronic device comprises a shell 501, a processor 502, a memory 503, a circuit board 504 and a power supply circuit 505, wherein the circuit board 504 is arranged inside a space enclosed by the shell 501, and the processor 502 and the memory 503 are arranged on the circuit board 504; a power supply circuit 505 for supplying power to each circuit or device of the computer apparatus 50; the memory 503 is used to store executable program code; the processor 502 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503, so as to execute:
determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route;
generating a routing rule according to the parameters and the weight values;
and selecting the route for transmitting the message to be transmitted according to the route selection rule.
It should be noted that the foregoing explanation on the embodiment of the routing method in fig. 1-fig. 2 also applies to the computer device 50 in this embodiment, and the implementation principle is similar and is not described herein again.
In the computer device in this embodiment, by determining at least one parameter in a packet to be transmitted, obtaining multiple routes and a weight value of a parameter corresponding to each route, generating a routing rule according to the parameters and the weight values, and selecting a route for transmitting the packet to be transmitted according to the routing rule, because the selected route is an optimized route based on the weight values, splitting of transaction data is realized, and therefore, packet transmission efficiency can be effectively improved, data processing capacity of a network connection clearing platform with a distributed architecture is reduced, and overall stability of the platform is improved.
To achieve the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium, which when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform a routing method, the method comprising: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
In the non-transitory computer-readable storage medium in this embodiment, at least one parameter in the packet to be transmitted is determined, a plurality of routes and a weight value of the parameter corresponding to each route are obtained, a routing rule is generated according to the parameter and the weight value, and a route for transmitting the packet to be transmitted is selected according to the routing rule.
To implement the above embodiments, the present invention further provides a computer program product, wherein when instructions in the computer program product are executed by a processor, the computer program product performs a routing method, and the method includes: determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route; generating a routing rule according to the parameters and the weight values; and selecting the route for transmitting the message to be transmitted according to the route selection rule.
In the computer program product in this embodiment, by determining at least one parameter in a packet to be transmitted, obtaining multiple routes and a weight value of a parameter corresponding to each route, generating a routing rule according to the parameters and the weight values, and selecting a route for transmitting the packet to be transmitted according to the routing rule, because the selected route is an optimized route based on the weight values, splitting of transaction data is realized, and therefore, packet transmission efficiency can be effectively improved, data processing capacity of a network connection clearing platform with a distributed architecture is reduced, and overall stability of the platform is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (6)

1. A routing method, comprising the steps of:
determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route;
generating a routing rule according to the parameters and the weight values;
selecting a route for transmitting the message to be transmitted according to the route selection rule;
wherein generating a routing rule according to the parameter and the weight value comprises:
selecting a routing meeting the condition from the plurality of routes according to the condition of the at least one parameter, and determining a routing with the largest weight value from the routing meeting the condition as the selected routing;
wherein the at least one parameter is at least one of: data center number, organization number, message number and account type;
the selecting a eligible route from the plurality of routes according to the condition of the at least one parameter, and determining a route with a largest weight value as the selected route from the eligible routes, including:
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and the account type, selecting the corresponding parameter from the plurality of routes simultaneously includes: the data center number, the mechanism number, the message number and the route of the account type are used as a first route; determining a route with the largest weight value from the first routes as a selected route;
if the at least one parameter comprises: and selecting any two parameters of the data center number, the mechanism number, the message number and the account type from the plurality of routes, wherein the corresponding parameters simultaneously comprise: taking the route with the parameters except the any two parameters being null values as a second route in the corresponding parameters; determining a route with the largest weight value from the second routes as a selected route;
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and any three parameters in the account type, selecting the corresponding parameters from the plurality of routes simultaneously includes: taking the route with the parameters except the arbitrary three parameters being null values as a third route in the corresponding parameters; and determining the route with the largest weight value from the third routes as the selected route.
2. The routing method of claim 1, wherein if there is no route for which the parameter is null, the method further comprises:
and generating abnormity prompting information to prompt abnormity.
3. A routing device, comprising:
the determining module is used for determining at least one parameter in the message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route;
a generating module, configured to generate a routing rule according to the parameter and the weight value;
the selection module is used for selecting a route for transmitting the message to be transmitted according to the route selection rule;
the generation module is further to:
selecting a routing meeting the condition from the plurality of routes according to the condition of the at least one parameter, and determining a routing with the largest weight value from the routing meeting the condition as the selected routing;
wherein the at least one parameter is at least one of: data center number, organization number, message number and account type;
the generation module is specifically configured to:
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and the account type, selecting the corresponding parameter from the plurality of routes simultaneously includes: the data center number, the mechanism number, the message number and the route of the account type are used as a first route;
determining a route with the largest weight value from the first routes as a selected route;
the generating module is further specifically configured to:
if the at least one parameter comprises: and selecting any two parameters of the data center number, the mechanism number, the message number and the account type from the plurality of routes, wherein the corresponding parameters simultaneously comprise: taking the route with the parameters except the any two parameters being null values as a second route in the corresponding parameters;
determining a route with the largest weight value from the second routes as a selected route;
the generating module is further specifically configured to:
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and any three parameters in the account type, selecting the corresponding parameters from the plurality of routes simultaneously includes: taking the route with the parameters except the arbitrary three parameters being null values as a third route in the corresponding parameters;
and determining the route with the largest weight value from the third routes as the selected route.
4. The routing device of claim 3, further comprising:
and the prompting module is used for generating abnormal prompting information to prompt the abnormality when the route with the parameter being the null value does not exist.
5. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the routing method of claim 1 or 2.
6. A computer device comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
determining at least one parameter in a message to be transmitted, and acquiring a plurality of routes and the weight value of the parameter corresponding to each route;
generating a routing rule according to the parameters and the weight values;
selecting a route for transmitting the message to be transmitted according to the route selection rule;
wherein generating a routing rule according to the parameter and the weight value comprises:
selecting a routing meeting the condition from the plurality of routes according to the condition of the at least one parameter, and determining a routing with the largest weight value from the routing meeting the condition as the selected routing;
wherein the at least one parameter is at least one of: data center number, organization number, message number and account type;
the selecting a eligible route from the plurality of routes according to the condition of the at least one parameter, and determining a route with a largest weight value as the selected route from the eligible routes, including:
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and the account type, selecting the corresponding parameter from the plurality of routes simultaneously includes: the data center number, the mechanism number, the message number and the route of the account type are used as a first route; determining a route with the largest weight value from the first routes as a selected route;
if the at least one parameter comprises: and selecting any two parameters of the data center number, the mechanism number, the message number and the account type from the plurality of routes, wherein the corresponding parameters simultaneously comprise: taking the route with the parameters except the any two parameters being null values as a second route in the corresponding parameters; determining a route with the largest weight value from the second routes as a selected route;
if the at least one parameter comprises: the data center number, the mechanism number, the message number, and any three parameters in the account type, selecting the corresponding parameters from the plurality of routes simultaneously includes: taking the route with the parameters except the arbitrary three parameters being null values as a third route in the corresponding parameters; and determining the route with the largest weight value from the third routes as the selected route.
CN201810455312.XA 2018-05-14 2018-05-14 Routing method and device and computer equipment Active CN109729008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810455312.XA CN109729008B (en) 2018-05-14 2018-05-14 Routing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810455312.XA CN109729008B (en) 2018-05-14 2018-05-14 Routing method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN109729008A CN109729008A (en) 2019-05-07
CN109729008B true CN109729008B (en) 2021-08-27

Family

ID=66293765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810455312.XA Active CN109729008B (en) 2018-05-14 2018-05-14 Routing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN109729008B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443593B (en) * 2019-08-07 2023-11-21 网联清算有限公司 Transaction processing method and device, transaction processing system and computer system
CN111144854A (en) * 2019-12-06 2020-05-12 北京中交兴路信息科技有限公司 Distributed intelligent payment routing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1336824A1 (en) * 2002-02-15 2003-08-20 Ford Global Technologies, Inc., A subsidiary of Ford Motor Company Weight monitoring system for a motor vehicle
CN101610562A (en) * 2009-07-14 2009-12-23 中控科技集团有限公司 The method for routing of wireless sensor network, wireless sensor node and system
CN106535276A (en) * 2016-12-02 2017-03-22 上海谱翱数据科技有限公司 Route selection method and device and gateway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9065677B2 (en) * 2012-07-25 2015-06-23 Qualcomm Incorporated Forwarding tables for hybrid communication networks
CN106936705B (en) * 2017-03-06 2020-06-02 重庆邮电大学 Software defined network routing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1336824A1 (en) * 2002-02-15 2003-08-20 Ford Global Technologies, Inc., A subsidiary of Ford Motor Company Weight monitoring system for a motor vehicle
CN101610562A (en) * 2009-07-14 2009-12-23 中控科技集团有限公司 The method for routing of wireless sensor network, wireless sensor node and system
CN106535276A (en) * 2016-12-02 2017-03-22 上海谱翱数据科技有限公司 Route selection method and device and gateway

Also Published As

Publication number Publication date
CN109729008A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109117429B (en) Database query method and device and electronic equipment
US8856250B2 (en) Community notification based on profile update
CN105229591A (en) Overall situation polymerization NameSpace is created in order to storage administration
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN111191080B (en) Data processing method and device
CN109729008B (en) Routing method and device and computer equipment
CN112685175B (en) Construction method and device of service topological graph and computer readable storage medium
WO2012114889A1 (en) Application construction and arrangement system, application construction and arrangement method, and program
CN104580428A (en) Data routing method, data management device and distributed storage system
CN109658187A (en) Recommend method, apparatus, storage medium and the electronic equipment of cloud service provider
CN110930253B (en) Method and device for generating main key inside intelligent contract, computer equipment and storage medium
CN112836093A (en) Data query method and device, electronic equipment and storage medium
US20230283534A1 (en) Availability SLO-Aware Network Optimization
CN111444074A (en) Data monitoring method and device, electronic equipment and readable storage medium
CN115563160A (en) Data processing method, data processing device, computer equipment and computer readable storage medium
CN115361332A (en) Processing method and device for fault-tolerant routing, processor and electronic equipment
JP2023511999A (en) Social Account Recommendations and Electronic Devices
CN113609349A (en) Rental vehicle inventory detection method, apparatus and medium
US10043522B2 (en) Method, apparatus, and system for processing numerical value in sending message using sound waves
CN113177212B (en) Joint prediction method and device
CN116436978B (en) Cloud computing-oriented memory allocation method, memory acquisition method, device and equipment
US20160132837A1 (en) Action encouragement method, apparatus, and program for encouraging user to move to facility suitable for schedule or task
CN111132121B (en) Information processing method and network warehouse function NRF network element
CN111596975B (en) Event calling method and device, electronic equipment and storage medium
CN109031041B (en) Distribution network voltage monitoring device point distribution method and system

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