CN111147377B - Method, device, equipment and medium for determining service channel - Google Patents

Method, device, equipment and medium for determining service channel Download PDF

Info

Publication number
CN111147377B
CN111147377B CN201911234813.6A CN201911234813A CN111147377B CN 111147377 B CN111147377 B CN 111147377B CN 201911234813 A CN201911234813 A CN 201911234813A CN 111147377 B CN111147377 B CN 111147377B
Authority
CN
China
Prior art keywords
service
channel
data
filtering
attribute
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
CN201911234813.6A
Other languages
Chinese (zh)
Other versions
CN111147377A (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.)
Lianlian Yintong Electronic Payment Co ltd
Original Assignee
Lianlian Yintong Electronic Payment Co ltd
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 Lianlian Yintong Electronic Payment Co ltd filed Critical Lianlian Yintong Electronic Payment Co ltd
Priority to CN201911234813.6A priority Critical patent/CN111147377B/en
Publication of CN111147377A publication Critical patent/CN111147377A/en
Application granted granted Critical
Publication of CN111147377B publication Critical patent/CN111147377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Special provisions for routing multiclass traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/30Special provisions for routing multiclass traffic
    • H04L45/308Route determination based on user's profile, e.g. premium users

Abstract

The invention discloses a method, a device, equipment and a medium for determining a service channel, wherein the method comprises the steps of obtaining service attributes, screening a service data tree constructed by data in a system to obtain an initial target service routing channel matched with the service attributes, further filtering according to a routing filter chain constructed by data outside the system to obtain a target service routing channel, and carrying out service processing based on the target service routing channel. The invention performs the matching of the service attributes through the traversal of the service data tree, can reduce a plurality of useless branch judgments by means of the tree structure, and improves the efficiency of obtaining the service channel. And rules of different levels and types are distributed into tree nodes and filter chain nodes, so that the codes are more cohesive, and the codes are higher in readability and expandability. The invention also realizes the self-assembly algorithm of the rule tree and the filter chain, so that the configuration is simpler and the use is more convenient. And can support hot loading of the configuration, which can take effect without shutdown.

Description

Method, device, equipment and medium for determining service channel
Technical Field
The present invention relates to the field of channel routing, and in particular, to a method, an apparatus, a device, and a medium for determining a service channel.
Background
In the backend system, since service requests of multiple clients may need to be processed, and each service request needs to be processed by allocating an idle routing channel, there is a problem of routing that a channel can be selected, that is, an optimal channel or channels are selected according to service demand conditions in a current service scenario and according to attributes of current routing channels. In the prior art, the solution is to traverse all the routing channels in the system, determine the attributes of each routing channel based on the service scenario of the demand, and select all the routing channels that satisfy the conditions. The scheme in the prior art is simple to implement, but the attributes of each routing channel need to be compared, so that the operation efficiency is not high, the code structure is not clear, and reading and maintenance are not facilitated.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for determining a service channel, which improve the efficiency of determining the service channel and improve the readability and the expandability of codes.
In one aspect, the present invention provides a method for determining a service channel, where the method includes:
acquiring a service attribute;
traversing a service data tree constructed based on service data in the system according to the service attribute, and searching at least one initial target service routing channel on the service data tree, wherein the rule in the system is data called through an internal database of the system where the service channel is located;
and filtering the at least one initial target service routing channel based on a preset routing filtering chain to obtain a target service routing channel, wherein the filtering chain is determined based on external data of the system, and the external data of the system is data for calling an external interface.
Another aspect provides an apparatus for determining a traffic channel, the apparatus comprising: the system comprises a service attribute acquisition module, an initial service channel acquisition module and a target service channel acquisition module:
the service attribute acquisition module is used for acquiring service attributes;
the initial service channel acquisition module is used for traversing a service data tree constructed based on service data in the system according to the service attribute, searching at least one initial target service routing channel on the service data tree, and the rule in the system is data called through an internal database of the system where the service channel is located;
the target service channel obtaining module is used for filtering the initial target service routing channel based on a preset routing filtering chain to obtain a target service routing channel, the filtering chain is determined based on external data, and the external data is data for calling an external interface.
Another aspect provides an apparatus, which includes a processor and a memory, where at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a traffic channel as described above.
Another aspect provides a storage medium, where the storage medium includes a processor and a memory, where the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a traffic channel described above.
The method comprises the steps of obtaining service attributes, screening through a service data tree constructed by data in a system to obtain an initial target service routing channel matched with the service attributes, further filtering according to a routing filter chain constructed by data outside the system to obtain a target service routing channel, and carrying out service processing based on the target service routing channel. The invention performs the matching of the service attributes through the traversal of the service data tree, can reduce a plurality of useless branch judgments by means of the tree structure, and improves the efficiency of obtaining the service channel. And rules of different levels and types are distributed into tree nodes and filter chain nodes, so that the codes are more cohesive, and the codes are higher in readability and expandability. The invention also realizes the self-assembly algorithm of the rule tree and the filter chain, so that the configuration is simpler and the use is more convenient. And can support hot loading of the configuration, which can take effect without shutdown.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for determining a service channel according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining a service channel according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for searching for at least one initial target service routing channel in a service data tree in a method for determining a service channel according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for searching for at least one initial target service routing channel in a service data tree through a key attribute in a method for determining a service channel according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a route filter chain in a method for determining a service channel according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for constructing a service data tree through data in a system in a method for determining a service channel according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a service data tree in a method for determining a service channel according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for constructing a filter chain through system-external data in a method for determining a service channel according to an embodiment of the present invention;
fig. 9 is a schematic diagram of obtaining topology ranking by an inbound table algorithm in the method for determining a service channel according to the embodiment of the present invention;
fig. 10 is a flowchart of a method for acquiring a filter node in a method for determining a service channel according to an embodiment of the present invention;
fig. 11 is a flowchart of a method for setting a priority in a routing filter chain in a method for determining a traffic channel according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a device for determining a traffic channel according to an embodiment of the present invention;
fig. 13 is a schematic hardware structure diagram of an apparatus for implementing the method provided in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Moreover, the terms "first," "second," and the like, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Please refer to fig. 1, which shows an application scenario diagram of a method for determining a service channel according to an embodiment of the present invention, where the application scenario includes a user terminal 110 and a server 120, where the user terminal 110 inputs a service attribute to the server 120, and after the server 120 obtains the service attribute, the service attribute is matched in a service data tree and a routing filter chain according to the service attribute to determine a target service routing channel.
In the embodiment of the present invention, the user terminal 110 includes a physical device of a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, a smart wearable device, and the like, and may also include software running in the physical device, such as an application program and the like. The operating system running on the network node in the embodiment of the present application may include, but is not limited to, an android system, an IOS system, linux, Unix, windows, and the like. The User terminal 110 includes a UI (User Interface) layer, and the User terminal 110 transmits a service request including service attributes to the server 120 based on an API (Application Programming Interface).
In the embodiment of the present invention, the server 120 may include a server running independently, or a distributed server, or a server cluster composed of a plurality of servers. The server 120 may include a network communication unit, a processor, a memory, and the like. Specifically, the server 120 may obtain the target service routing channel through the service data tree and the filter chain based on the input service attribute. Through the target traffic routing channel, the server 120 processes the traffic required by the user terminal 110.
Referring to fig. 2, a method for determining a traffic channel is shown, which can be applied to a server side, and the method includes:
s210, acquiring a service attribute;
specifically, the service attribute is input service scenario information, the service attribute includes two transaction parties, a transaction type, transaction time, a transaction channel, and the like, and for example, the user a and the user B perform a transfer service at seven morning points through a network bank of the bank a. And selecting a proper channel according to the service attribute required to be processed, and processing the service.
S220, traversing a service data tree constructed based on service data in the system according to the service attribute, and searching at least one initial target service routing channel on the service data tree, wherein the rule in the system is data called through an internal database of the system where the service channel is located;
further, referring to fig. 3, traversing the service data tree constructed based on the service data in the system according to the service attribute, and searching for at least one initial target service routing channel on the service data tree includes:
s310, acquiring a node service attribute of an initial target service routing channel in the service data tree;
s320, comparing the node service attribute with the service attribute, and determining that the service routing channel matched with the service attribute is an initial target service routing channel.
Specifically, when searching for an initial target service routing channel, the service routing channel, that is, a tree node of a service data tree, may first select a breadth-first traversal method to traverse the entire service data tree, directly compare the node service attribute of each service routing channel in the service data with the service attribute, and determine a matched node service attribute. And positioning the initial target service routing channel according to the matched node service attribute. For example, the input service attribute is the transfer service from the user A to the user B at seven morning points through the first bank, the service attribute is matched with the node service attribute of the service routing channel on the service data tree, and the initial target service routing channel which can execute the transfer operation at seven morning points of the corresponding first bank is determined. And subsequently, judging whether the initial target service routing channel is available or not through a routing filter chain.
And an initial target service routing channel is obtained by screening the service data tree, and a plurality of useless branch judgments are reduced by traversing the tree structure. Meanwhile, the codes are more cohesive by distributing the rule data with different levels and different types into each tree node. Readability and expandability are higher.
Further, referring to fig. 4, traversing the service data tree constructed based on the service data in the system according to the service attribute, and searching for at least one initial target service routing channel on the service data tree includes:
s410, determining key attributes in the service attributes;
s420, searching a service routing channel matched with the key attribute in the service data tree;
s430, acquiring the node service attribute of the service routing channel matched with the key attribute;
s440, comparing the node service attribute with the service attribute, and determining that the service routing channel matched with the service attribute is an initial target service routing channel.
Specifically, when the service routing channel, i.e., a tree node of the service data tree, is searched for an initial target service routing channel, a key attribute in the service attribute may also be obtained, a range of the initial target service routing channel is determined according to the key attribute, and then, based on the node service attribute of the service routing channel in the range, the range is compared with all information of the service attribute. The method can maintain a search map of the service routing channel in the node, set key as the key attribute of the service routing channel, set value as the service routing channel list under the attribute, quickly locate the consistent service routing channel list value by directly using the key attribute during the process, and then only make lower layer judgment in the consistent service routing channel list value. For example, the input service attribute is transfer service from the user a to the user B through the first bank at seven morning, the key attribute in the service attribute is determined to be the first bank, the service routing channel list with the node service attribute being the first bank is found, in the service routing channel list with the node service attribute being the first bank, the comparison between time and specific service is further performed, a matched service routing channel is obtained, and the initial target service routing channel is determined.
And an initial target service routing channel is obtained by screening the service data tree, and a plurality of useless branch judgments are reduced by traversing the tree structure. Meanwhile, the codes are more cohesive by distributing the rule data with different levels and different types into each tree node. Readability and expandability are higher. The tree node list is determined through the key attributes, and the specific service attributes and the node attributes are compared in the determined tree node list, so that the comparison time can be shortened, and the comparison efficiency can be accelerated.
And S220, filtering the at least one initial target service routing channel based on a preset routing filtering chain to obtain a target service routing channel, wherein the filtering chain is determined based on external data, and the external data is data for calling an external interface.
Specifically, referring to fig. 5, the routing filter chain is composed of a plurality of filter nodes, and the filter chain is used for determining, based on data outside the system, such as a commission fee judgment of a channel, a channel judgment being occupied, and the like, that both parties of a transaction outside the system or a third party organization performing charging, and therefore, it is necessary to call corresponding rule data outside the system through an interface between the system and the outside to further filter the initial target service routing channel. And each filtering node filters the initial target routing channel until the available initial target routing channel is output and used as a target routing channel for service processing. For example, after obtaining initial target service routing channels that correspond to an first bank and can perform transfer operations at seven morning, it is necessary to further determine whether the initial target service routing channels are occupied, and information such as corresponding service procedure costs, and at this time, since the occupied channels relate to the traffic of both parties of the service, the occupied channels cannot be determined by data in the system, and can only be determined by data outside the system, that is, the final target service routing channels are determined by a routing filter chain formed by data outside the system. And after the target service routing channel is determined, processing the corresponding service through the target service routing channel.
The initial target service routing channel is filtered through the routing filtering chain, and the codes are more cohesive by distributing the rule data of different levels and different types into the filtering chain nodes. Readability and expandability are higher.
In a specific embodiment, multi-channel routing of the payment system is taken as an example. The system needs to select the most appropriate channel for payment according to the conditions of the input bank card type, the bank where the bank is located, the amount, the current time, whether the channel is available, the channel commission fee and the like.
The bank card type, the bank where the bank card is located, the amount of money and the service time can be classified into data in the system, and the data are divided into two levels according to the relation of business attributes. The first layer records the node service attribute of the route channel, and the main attribute is the code of the channel, including the service time of the channel and the limit of the channel. And the second layer records the node service attribute of the channel supported bank, and the main attribute is the code of the bank to which the channel supports, including the service time, the quota and the supported card type of the routing channel supported bank. Because the number of banks supported by each routing channel is large, in order to improve efficiency, an index map is maintained in the node service attribute of the routing channel of the first layer, and the bank code is taken as a key attribute to obtain a node list of the routing channel supporting banks of the bank. When the jump from the first layer node service attribute to the second layer node service attribute is executed, the jump is directly carried out to a second layer node list of a specific bank according to the input bank where the first layer node service attribute is located, and then attribute judgment of the second layer node is respectively carried out. And when the specific operation is judged, according to the input payment condition, the initial target routing channel can be obtained through traversing of the first-layer node and the second-layer node.
After the initial target routing channel is obtained, whether the channel is available or not is judged, channel commission is judged, the channel can be classified into data outside the system, the channel service is required to be called respectively, and a commission system obtains a result. Wherein the commission judgment, the channel for selecting the minimum commission is the preferred condition, not the compulsory filtering condition. Therefore, priority ranking filtering nodes can be added to form a routing filtering chain for selecting the optimal channel. The dependency relationship in the nodes is set as follows: the channel commission determines whether to prioritize or not the channels are available. And configuring the set dependency relationship in a configuration file. Running filter chain self-assembly, and using a schedule algorithm to obtain one of available topological rankings, for example: the determination of whether a channel is available is greater than the channel commission determination, which is greater than the priority ranking of the filter nodes. In the judgment of the channel fee, the priority is reversely obtained according to the fee calculated by each channel, that is, the priority is lower and higher for the subsequent priority ranking node.
And taking the initial target routing channel output by the service data tree as an input parameter of the filtering chain, and obtaining the optimal channel through layer-by-layer filtering.
Further, referring to fig. 6, before acquiring the service attribute, the method further includes:
s610, dividing preset service data in the system into channel sub data tables corresponding to different levels based on preset levels, wherein the channel sub data tables are sub data tables without transmission dependency relationship;
s620, according to the channel sub data tables of different levels, determining node service attributes of the levels corresponding to the channel sub data tables;
s630, establishing a service routing channel corresponding to a preset level;
and S640, associating the node service attribute to a service routing channel of a corresponding hierarchy according to a preset hierarchy to form a service data tree.
Specifically, referring to fig. 7, fig. 7 shows a possible structure of a service data tree. The data in the system is an intra-system rule, can be stored in a system database, does not need to depend on an external interface, and consists of a fixed number of fields. And dividing the fields of the rules in the system into a plurality of channel sub-rule tables without transfer dependency relationship, namely channel sub-data tables, which correspond to a plurality of hierarchies and are used for storing the service attributes of the hierarchy according to the third paradigm requirement of the database. The third paradigm requires that one database table does not contain non-primary key information already contained in other tables, and that attributes are not dependent on other non-primary attributes. And establishing a service routing channel class of each layer according to the multiple channel sub-rule tables, and internally maintaining the service attribute of the service routing channel of the layer, wherein the service attribute corresponds to the inner field of the data table of the layer. For example, according to the service attributes of different service objects, namely different banks, a first layer of service routing channels are established, and a second layer of service routing channels are established for the attribute information of each channel to which the different service objects belong, so as to construct a service data tree.
The method comprises the steps of configuring a business data tree according to data in a system, such as rules in the system, configuring the rules on each level, enabling rule configuration to be clear and simple, and hot loading the rule tree according to the configuration without program restart.
Further, referring to fig. 8, before filtering the initial target traffic routing channel based on the preset routing filter chain, the method further includes:
s810, acquiring a filtering node according to a preset filtering algorithm and external system data;
s820, acquiring a filtering directed acyclic graph of the filtering nodes according to the dependency relationship among the data outside the system;
s830, acquiring the topological ordering of the filtering directed acyclic graph according to an entry table algorithm;
and S840, taking the topological sequence as a route filtering chain.
Specifically, the filtering chain node classes are sequentially generated from the data outside the system. And judging whether the channels are available or not according to the dependency relationship, such as the channel commission charge and the priority ordering, so as to obtain the filtering directed acyclic graph of the filtering nodes. Dependencies between nodes may be maintained using configuration files. Referring to fig. 9, the number of edges pointing to a certain point in the directed acyclic graph of the in-degree finger. According to an introductivity table algorithm, selecting a vertex without predecessors in a filtering directed acyclic graph and outputting the vertex and all arcs taking the vertex as a tail in the graph, namely deleting all edges related to the vertex, repeating the two steps until all the vertices are output or no predecessor-free vertex exists in a current graph, namely a point with an introductivity of 0 exists, and if the predecessor-free vertex exists, the filtering directed graph is looped to obtain a final topological sorting. And taking the topological sequence as a route filtering chain, and filtering the initial target route channel to obtain a target route channel. As shown in fig. 9, of the A, B, C, D, E, F, G, H, I ten filter nodes, the degree of entry of the a node is 0, the degree of entry of the B node is 0, the degree of entry of the C node is 1, the degree of entry of the D node is 3, the degree of entry of the E node is 0, the degree of entry of the F node is 1, the degree of entry of the G node is 2, the degree of entry of the H node is 1, and the degree of entry of the I node is 0, and a possible topological order obtained by generating a directed acyclic graph and performing an entry table algorithm is from the a node to the B node, from the B node to the C node, from the C node to the E node, from the E node to the I node, from the I node to the D node, from the D node to the F node, from the F node to the H node, and from the H node to the G node. And filtering the input initial target routing channel through the routing filter chain to obtain the target routing channel.
The configuration of the routing filter chain is carried out through the external data of the system, namely the external rule of the system, so that the self-assembly algorithm of the filter chain is realized, the configuration is simpler, and the use is more convenient. And can support hot loading of filter chain configurations, which can take effect without shutdown.
Further, referring to fig. 10, the acquiring the filter node according to the preset filter algorithm and the external data includes:
s1010, acquiring a list of to-be-selected filtering nodes based on a preset filtering algorithm;
and S1020, determining a filtering node from the list of the filtering nodes to be selected based on the data outside the system.
Specifically, according to a preset filtering method, a list of filtering nodes to be selected is input, rule data outside the system is called inside the system, and the filtering nodes to be selected meeting the conditions are determined. And if the list of the filtering nodes to be selected is empty, directly quitting the operation.
Further, referring to fig. 11, after acquiring the filtering node according to the preset filtering algorithm and the external data, the method further includes:
s1110, determining a priority filter based on a pre-configured priority;
and S1120, taking the priority filter as the last filtering node of the generated route filtering chain.
Specifically, if an optimal channel needs to be selected, a priority filter may be provided, and the filtering nodes are sorted and selected according to the pre-configured priority. For performance reasons, the priority filter needs to be placed at the end of the route filter chain.
The embodiment of the invention provides a method for determining a service channel, which comprises the steps of obtaining service attributes, screening a service data tree constructed by data in a system to obtain an initial target service routing channel matched with the service attributes, further filtering according to a routing filter chain constructed by data outside the system to obtain a target service routing channel, and processing services based on the target service routing channel. The invention performs the matching of the service attributes through the traversal of the service data tree, and can reduce a plurality of useless branch judgments by means of the tree structure. And rules of different levels and types are distributed into tree nodes and filter chain nodes, so that the codes are more cohesive, and the codes are higher in readability and expandability. The invention also realizes the self-assembly algorithm of the rule tree and the filter chain, so that the configuration is simpler and the use is more convenient. And can support hot loading of the configuration, which can take effect without shutdown.
An embodiment of the present invention further provides a device for determining a service channel, please refer to fig. 12, where the device includes: a service attribute obtaining module 1210, an initial service channel obtaining module 1220 and a target service channel obtaining module 1230:
the service attribute obtaining module 1210 is configured to obtain a service attribute;
the initial service channel obtaining module 1220 is configured to traverse a service data tree constructed based on service data in a system according to the service attribute, and search for at least one initial target service routing channel in the service data tree, where the rule in the system is data called through an internal database of the system where the service channel is located;
the target service channel obtaining module 1230 is configured to filter the initial target service routing channel based on a preset routing filter chain to obtain a target service routing channel, where the filter chain is determined based on external system data, and the external system data is data for calling an external interface.
Furthermore, the device also comprises a service data tree construction module and a filter chain construction module;
the business data tree construction module is used for constructing a business data tree based on data in the system;
the filter chain construction module is used for constructing a filter chain based on data outside the system.
The device provided in the above embodiments can execute the method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For details of the service channel, reference may be made to a method for determining a service channel according to any embodiment of the present invention.
The present embodiment also provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are loaded by a processor and execute the method for determining a service channel according to the present embodiment.
The present embodiment also provides an apparatus, which includes a processor and a memory, where the memory stores a computer program, and the computer program is adapted to be loaded by the processor and execute a method for determining a traffic channel according to the present embodiment described above.
The device may be a computer terminal, a mobile terminal or a server, and the device may also participate in forming the apparatus or system provided by the embodiments of the present invention. As shown in fig. 13, the computer terminal 13 (or mobile terminal 13 or server 13) may include one or more (shown with 1302a, 1302b, … …, 1302 n) processors 1302 (the processors 1302 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1304 for storing data, and a transmission device 1306 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration and is not intended to limit the structure of the electronic device. For example, computer terminal 13 may also include more or fewer components than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
It should be noted that the one or more processors 1302 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Furthermore, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 13 (or mobile terminal). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 1304 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the method described in the embodiment of the present invention, and the processor 1302 executes various functional applications and data processing by running the software programs and modules stored in the memory 1304, that is, implementing one of the above-described methods for generating a self-attention-network-based time-series behavior capture block. The memory 1304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1304 may further include memory remotely located from the processor 1302, which may be connected to the computer terminal 13 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 1306 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 13. In one example, the transmission device 1306 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmitting device 1306 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 13 (or mobile terminal).
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The steps and sequences recited in the embodiments are but one manner of performing the steps in a multitude of sequences and do not represent a unique order of performance. In the actual system or interrupted product execution, it may be performed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The configurations shown in the present embodiment are only partial configurations related to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a specific device may include more or less components than those shown, or combine some components, or have an arrangement of different components. It should be understood that the methods, apparatuses, and the like disclosed in the embodiments may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a division of one logic function, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or unit modules.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for determining a traffic channel, the method comprising:
acquiring a service attribute;
traversing a service data tree constructed based on service data in a system according to the service attribute, and searching at least one initial target service routing channel on the service data tree, wherein the service data in the system is data called through an internal database of the system where the service channel is located, and the service data tree representation is used for carrying out hierarchical division on the service data in the system, and then associating the node service attribute corresponding to the hierarchy to a tree structure formed in the service routing channel corresponding to the hierarchy;
filtering the at least one initial target service routing channel based on a preset routing filtering chain to obtain a target service routing channel, wherein the filtering chain is determined based on external system data, and the external system data is data for calling an external interface;
the filtering the initial target service routing channel based on the preset routing filtering chain further comprises, before obtaining the target service routing channel:
acquiring a filtering node according to a preset filtering algorithm and external system data;
acquiring a filtering directed acyclic graph of the filtering nodes according to the dependency relationship between the data outside the system;
according to an income table algorithm, acquiring the topological order of the filtering directed acyclic graph;
and ordering the topology as a route filtering chain.
2. The method of claim 1, wherein the traversing a service data tree constructed based on service data in a system according to the service attribute for finding at least one initial target service routing path on the service data tree comprises:
acquiring node service attributes of service routing channels in the service data tree;
and comparing the node service attribute with the service attribute, and determining that the service routing channel matched with the service attribute is an initial target service routing channel.
3. The method of claim 1, wherein the traversing a service data tree constructed based on service data in a system according to the service attribute for finding at least one initial target service routing path on the service data tree comprises:
determining key attributes in the service attributes;
searching a service routing channel matched with the key attribute in the service data tree;
acquiring the node service attribute of the service routing channel matched with the key attribute;
and comparing the node service attribute with the service attribute, and determining that the service routing channel matched with the service attribute is an initial target service routing channel.
4. The method for determining a service channel according to claim 1, wherein before the obtaining the service attribute, the method further comprises:
dividing preset service data in the system into channel sub data tables corresponding to different levels based on a preset level, wherein the channel sub data tables are sub data tables without transmission dependency relationship;
determining the node service attribute of the corresponding level of the channel sub data table according to the channel sub data tables of different levels;
establishing a service routing channel corresponding to a preset level;
and according to a preset hierarchy, associating the node service attribute to a service routing channel of a corresponding hierarchy to form a service data tree.
5. The method of claim 1, wherein the obtaining a filter node according to a preset filter algorithm and system-external data comprises:
acquiring a list of to-be-selected filtering nodes based on a preset filtering algorithm;
and determining the filtering nodes from the list of the filtering nodes to be selected based on the rule outside the system.
6. The method for determining a traffic channel according to claim 1, wherein after obtaining the filtering node according to a preset filtering algorithm and the external data, the method further comprises:
determining a priority filter based on a preconfigured priority;
and taking the priority filter as the last filtering node of the generated route filtering chain.
7. An apparatus for determining a traffic channel, the apparatus comprising: the system comprises a service attribute acquisition module, an initial service channel acquisition module and a target service channel acquisition module:
the service attribute acquisition module is used for acquiring service attributes;
the initial service channel acquisition module is used for traversing a service data tree constructed based on service data in a system according to the service attribute, searching at least one initial target service routing channel on the service data tree, wherein the service data in the system is data called through an internal database of the system where the service channel is located, and after hierarchy division is carried out on the service data in the system through the service data tree representation, the node service attribute corresponding to the hierarchy is associated to a tree structure formed in the service routing channel corresponding to the hierarchy;
the target service channel acquisition module is used for filtering the initial target service routing channel based on a preset routing filter chain to obtain a target service routing channel, wherein the filter chain is determined based on external system data, and the external system data is data for calling an external interface; the target service channel acquisition module is also used for acquiring a filtering node according to a preset filtering algorithm and the external data of the system; acquiring a filtering directed acyclic graph of the filtering nodes according to the dependency relationship between the data outside the system; according to an income table algorithm, acquiring the topological order of the filtering directed acyclic graph; and ordering the topology as a route filtering chain.
8. An apparatus comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and wherein the at least one instruction or the at least one program is loaded into and executed by the processor to implement a method of traffic channel determination as claimed in any one of claims 1 to 6.
9. A storage medium comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a traffic channel according to any one of claims 1-6.
CN201911234813.6A 2019-12-05 2019-12-05 Method, device, equipment and medium for determining service channel Active CN111147377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911234813.6A CN111147377B (en) 2019-12-05 2019-12-05 Method, device, equipment and medium for determining service channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911234813.6A CN111147377B (en) 2019-12-05 2019-12-05 Method, device, equipment and medium for determining service channel

Publications (2)

Publication Number Publication Date
CN111147377A CN111147377A (en) 2020-05-12
CN111147377B true CN111147377B (en) 2020-09-11

Family

ID=70517717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911234813.6A Active CN111147377B (en) 2019-12-05 2019-12-05 Method, device, equipment and medium for determining service channel

Country Status (1)

Country Link
CN (1) CN111147377B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588921A (en) * 2004-09-17 2005-03-02 杭州恒生电子股份有限公司 Data processing system and data processing method based on multilayer structure
CN101079878A (en) * 2006-05-22 2007-11-28 华为技术有限公司 A method and device for network route optimization
CN102394810A (en) * 2011-10-14 2012-03-28 烽火通信科技股份有限公司 Method for realizing dynamic association between pseudo-wire services and channels in PTN (Packet Transport Network) network
CN105357059A (en) * 2015-12-08 2016-02-24 中国建设银行股份有限公司 Business event processing method and apparatus
CN105704018A (en) * 2016-01-19 2016-06-22 温州银企互联信息技术有限公司 Intelligent route management method based on order-receiving operation platform
CN108011925A (en) * 2017-11-01 2018-05-08 北京神州绿盟信息安全科技股份有限公司 A kind of operating audit system and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127698B (en) * 2006-09-07 2010-11-03 中兴通讯股份有限公司 System and method for realizing service-based routing selection in packet domain
US7747777B2 (en) * 2007-11-30 2010-06-29 Cisco Technology, Inc. Optimizing network resources usage within an administrative boundary
CN101640824B (en) * 2009-09-07 2012-07-18 中兴通讯股份有限公司 Frame device for establishing end-to-end business and use method thereof
CN102487355B (en) * 2010-12-03 2015-08-12 中兴通讯股份有限公司 Method for searching route and device
CN103874157B (en) * 2012-12-12 2017-07-07 华为技术有限公司 Routing forwarding, the method and its device of setting up routing table and acquisition content
US9166903B2 (en) * 2012-12-18 2015-10-20 Alcatel Lucent System, method and apparatus to resolve RPF-vector attribute conflicts
CN103581317B (en) * 2013-10-31 2016-08-17 工业和信息化部电信传输研究所 A kind of method of network resources locating
CN111865653A (en) * 2016-08-24 2020-10-30 华为技术有限公司 Service arranging method and device and service distributing method and device
CN108347377B (en) * 2017-01-25 2020-09-11 华为技术有限公司 Data forwarding method and device
CN108765138B (en) * 2018-05-31 2021-09-21 创新先进技术有限公司 Object and fund transfer method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588921A (en) * 2004-09-17 2005-03-02 杭州恒生电子股份有限公司 Data processing system and data processing method based on multilayer structure
CN101079878A (en) * 2006-05-22 2007-11-28 华为技术有限公司 A method and device for network route optimization
CN102394810A (en) * 2011-10-14 2012-03-28 烽火通信科技股份有限公司 Method for realizing dynamic association between pseudo-wire services and channels in PTN (Packet Transport Network) network
CN105357059A (en) * 2015-12-08 2016-02-24 中国建设银行股份有限公司 Business event processing method and apparatus
CN105704018A (en) * 2016-01-19 2016-06-22 温州银企互联信息技术有限公司 Intelligent route management method based on order-receiving operation platform
CN108011925A (en) * 2017-11-01 2018-05-08 北京神州绿盟信息安全科技股份有限公司 A kind of operating audit system and method

Also Published As

Publication number Publication date
CN111147377A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
US9294988B2 (en) Creating a preferred PLMN list for faster service acquisition
CN105103506B (en) For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing
CN101840418A (en) User word library synchronous update method, update server and input method system
CN107465687B (en) Method, device and terminal for realizing permission configuration
CN106055630A (en) Log storage method and device
CN107180109A (en) Location-based Condom recommends method and system
CN109240899A (en) Information acquisition method and device
CN105989457A (en) Information query method and apparatus thereof
CN111258740A (en) Method and device for starting application program and electronic equipment
CN111147377B (en) Method, device, equipment and medium for determining service channel
CN108810130B (en) Method and device for planning distribution request
CN111935306B (en) Node scheduling method and device
CN109672907B (en) Material display processing method, device and equipment
CN110390493B (en) Task management method and device, storage medium and electronic equipment
CN110795446A (en) List updating method and device, readable medium and electronic equipment
CN109002355B (en) Distribution method, device and equipment for processing requests
CN104240016A (en) Management method and device for users in virtual place
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN114490083A (en) CPU resource binding method and device, storage medium and electronic device
CN112650710A (en) Data migration sending method and device, storage medium and electronic device
CN113761298A (en) Information sorting method and device, electronic equipment and computer readable medium
CN113344706A (en) Product quota control method, device, electronic equipment and computer readable medium
CN113986996A (en) Annotation-based customized return response method, device, equipment and storage medium
CN110751204A (en) Data fusion method and device, storage medium and electronic device
CN113127550A (en) Information processing method, information processing device, electronic equipment and storage medium

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