CN113490249B - Transmission path determining method and device - Google Patents
Transmission path determining method and device Download PDFInfo
- Publication number
- CN113490249B CN113490249B CN202110662913.XA CN202110662913A CN113490249B CN 113490249 B CN113490249 B CN 113490249B CN 202110662913 A CN202110662913 A CN 202110662913A CN 113490249 B CN113490249 B CN 113490249B
- Authority
- CN
- China
- Prior art keywords
- node
- service
- link
- nodes
- transmission path
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 83
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000004044 response Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 239000000306 component Substances 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 239000000835 fiber Substances 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention provides a method and a device for determining a transmission path, which relate to the technical field of computers, can accurately and reasonably determine a data transmission path corresponding to a target service, and improve the transmission efficiency of service data. The method comprises the following steps: acquiring configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node; determining a plurality of links corresponding to a target service based on first link information of links corresponding to the plurality of nodes and service types of services corresponding to the plurality of nodes, wherein the target service is one of the plurality of services; and adding the identification of the target service in the first link information of the links to obtain the second link information of the links.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining a transmission path.
Background
At present, a connection relationship between each node in a plurality of nodes may be stored in a management device for data transmission, and when service data of a service needs to be transmitted, the management device may select at least two target nodes from the plurality of nodes based on the connection relationship, that is, transmit the service data from a path formed by the at least two target nodes.
However, in the above method, the management device may not reasonably and effectively determine which services need to be transmitted through which target nodes, so that the transmission efficiency of the service data may be affected, and the user experience may be reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining a transmission path, which can accurately and reasonably determine a data transmission path corresponding to a target service and improve the transmission efficiency of service data.
In a first aspect, an embodiment of the present invention provides a method for determining a transmission path, including: acquiring configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node; determining a plurality of links corresponding to a target service based on first link information of links corresponding to the plurality of nodes and service types of services corresponding to the plurality of nodes, wherein the target service is one of the plurality of services; and adding the identification of the target service in the first link information of the links to obtain the second link information of the links.
In a second aspect, an embodiment of the present invention provides a transmission path determining apparatus, including: the device comprises an acquisition module, a determination module and an identification adding module; the acquiring module is used for acquiring configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node; the determining module is configured to determine a plurality of links corresponding to a target service based on first link information of links corresponding to the plurality of nodes and service types of services corresponding to the plurality of nodes, where the target service is one of the plurality of services; the identifier adding module is configured to add the identifier of the target service to the first link information of the multiple links, so as to obtain second link information of the multiple links.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, a bus, and a communication interface; the memory is used for storing computer-executable instructions, and the processor is connected with the memory through a bus, when the electronic device runs, the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the transmission path determining method provided in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, including a computer program, which when run on a computer causes the computer to perform a method for determining a transmission path provided in the first aspect.
In a fifth aspect, embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of determining a transmission path of the first aspect and any one of its implementations.
The method and the device for determining the transmission path provided by the embodiment of the invention acquire configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node, the electronic device determines a plurality of links corresponding to a target service based on the first link information of the links corresponding to the plurality of nodes and the service type of the service corresponding to the plurality of nodes, and adds an identifier of the target service in the first link information of the plurality of links to obtain second link information of the plurality of links. In the embodiment of the invention, the electronic equipment can add the identifiers of the corresponding services for the links corresponding to the nodes based on the configuration information of the nodes, and further, when the electronic equipment responds to the query instruction (or acquires the query request), the data transmission path corresponding to the target service can be determined based on the identifiers of the target service included in the query instruction, so that the data transmission path corresponding to the target service can be accurately and reasonably determined, and the transmission efficiency of service data is improved.
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.
Fig. 1 is a network architecture schematic diagram of a transmission path determining system according to an embodiment of the present invention;
fig. 2 is a schematic hardware diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a method for determining a transmission path according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another method for determining a transmission path according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another method for determining a transmission path according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a transmission path determining device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another transmission path determining apparatus according to an embodiment of the present invention.
Detailed Description
The method and apparatus for determining a transmission path according to the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The terms "first" and "second" and the like in the description and in the drawings of the present application are used for distinguishing between different objects and not for describing a particular sequential order of objects, e.g., a first node and a second node, etc. are used for distinguishing between different nodes and not for describing a particular sequential order of nodes.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment of the present invention is not to be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The term "and/or" as used herein includes the use of either or both of these methods.
In the description of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
Based on the problems existing in the background technology, the embodiment of the invention provides a method and a device for determining a transmission path, and electronic equipment acquires configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node, the electronic equipment determines a plurality of links corresponding to a target service based on the first link information of the links corresponding to the plurality of nodes and the service type of the service corresponding to the nodes, and adds an identifier of the target service in the first link information of the plurality of links to obtain second link information of the plurality of links. In the embodiment of the invention, the electronic equipment can add the identifiers of the corresponding services for the links corresponding to the nodes based on the configuration information of the nodes, and further, when the electronic equipment responds to the query instruction (or acquires the query request), the data transmission path corresponding to the target service can be determined based on the identifiers of the target service included in the query instruction, so that the data transmission path corresponding to the target service can be accurately and reasonably determined, and the transmission efficiency of service data is improved.
The method and the device for determining the transmission path provided by the embodiment of the invention can be applied to a transmission path determining system, as shown in fig. 1, wherein the transmission path determining system comprises an electronic device 101, a node 102, a node 103, a node 104, a node 105, a node 106, a node 107, a node 108 and a node 109. In general, in practical applications, the connection between the above-mentioned devices or service functions may be a wireless connection, and for convenience and intuitiveness, the connection relationship between the devices is schematically shown by a solid line in fig. 1.
The electronic device 101 is configured to obtain configuration information of a plurality of nodes (including node 102, node 103, node 104, node 105, node 106, node 107, node 108, and node 109). Illustratively, the electronic device 101 may obtain first link information of the link (1) (i.e., the link between the node 102 and the node 103) and a traffic type of at least one traffic corresponding to the node 102, and so on.
Illustratively, node 103 may receive traffic data transmitted by node 102 and transmit the traffic data to node 104.
It should be noted that, the electronic device for executing the method for determining a transmission path provided in the embodiment of the present invention may be a device that may be used for installing and using a content community application, such as a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a PDA (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, and the like, and the present invention is not limited to a specific form of the electronic device. The system can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment and the like.
Fig. 2 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 2, the electronic device 20 includes a processor 201, a memory 202, a network interface 203, and the like.
The processor 201 is a core component of the electronic device 20, and the processor 201 is configured to run an operating system of the electronic device 20 and application programs (including a system application program and a third party application program) on the electronic device 20, so as to implement a method for determining a transmission path of the electronic device 20.
In an embodiment of the present invention, the processor 201 may be a central processing unit (central processing unit, CPU), microprocessor, digital signal processor (digital signal processor, DSP), application-specific integrated circuit (application-specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic device, transistor logic device, hardware components, or any combination thereof, capable of implementing or executing the various exemplary logic blocks, modules and circuits described in connection with the disclosure of embodiments of the present invention; a processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
Optionally, the processor 201 of the electronic device 20 includes one or more CPUs, either single-core or multi-core.
Alternatively, the processor 201 implements the method for determining a transmission path in the embodiment of the present invention by reading the instruction stored in the memory 202, or the processor 201 implements the method for determining a transmission path provided in the embodiment of the present invention by an instruction stored internally. In the case where the processor 201 implements the transmission path determination method provided by the embodiment of the present invention by reading the instruction stored in the memory to implement the transmission path determination method provided by the embodiment of the present invention.
The network interface 203 is a wired interface such as a fiber optic distributed data interface (fiber distributed data interface, FDDI), gigabit Ethernet (GE) interface. Alternatively, the network interface 203 is a wireless interface. The network interface 203 is used for the electronic device 20 to communicate with other devices.
The memory 202 is used to store configuration information of a plurality of nodes. The at least one processor 201 further performs the methods described in embodiments of the present invention based on configuration information of the plurality of nodes stored in the memory 202. For more details on the implementation of the above-described functions by the processor 201, reference is made to the description of the various method embodiments described below.
Optionally, the electronic device 20 further comprises a bus, and the processor 201 and the memory 202 are connected to each other via a bus 204 or connected to each other in other manners.
Optionally, the electronic device 20 further includes an input/output interface 205, where the input/output interface 205 is configured to connect with an input device, and receive a transmission path query request input by a user through the input device. Input devices include, but are not limited to, a keyboard, touch screen, microphone, and the like. The input/output interface 205 is further configured to be connected to an output device, and output a query result (i.e., determine a data transmission path corresponding to the target service) of the processor 201. Output devices include, but are not limited to, displays, printers, and the like.
As shown in fig. 3, the method for determining a transmission path according to the embodiment of the present invention may include S101 to S103.
S101, the electronic equipment acquires configuration information of a plurality of nodes.
The configuration information of a node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node.
It should be appreciated that a node may correspond to at least one link, and that the first link information for a link may include an identification of a source node and an identification of a destination node, where the source node and the destination node are used to characterize the direction of data transmission in the link. A node may correspond to at least one service that needs to be transmitted (or processed) through the node.
Optionally, the configuration information of a node may further include identification information of the node, which may be embodied in the form of an internet protocol (internet protocol, IP) address and/or hostname of the node.
In the embodiment of the invention, the first link information of at least one link corresponding to each node and the service type of at least one service corresponding to each node can be configured in each node, so that the electronic equipment can acquire the configuration information of the plurality of nodes.
In one implementation manner of the embodiment of the present invention, the electronic device may acquire the configuration information of the plurality of nodes in a manner of calling a certain application, for example, may scan and acquire the configuration information of the plurality of nodes in a manner of calling a scan application.
In another implementation manner of the embodiment of the present invention, the plurality of nodes may also actively report their respective configuration information to the electronic device, so that the electronic device may obtain the configuration information of the plurality of nodes.
Alternatively, the electronic device may periodically obtain the configuration information of the plurality of nodes, for example, may obtain the configuration information of the plurality of nodes at intervals of 24h (hours); the electronic device may also obtain configuration information of the plurality of nodes after different batches of the application program are put into production.
It should be noted that, the service type of the at least one service may be understood as at least one transaction type of banking services, for example, a withdrawal transaction, a deposit transaction, or a transfer transaction, and the service type of the at least one service is not specifically limited in the embodiments of the present invention.
For example, in the transmission path determining system shown in fig. 1, the electronic device 101 may obtain first link information of the link (1), the link (2), the link (3), the link (4), the link (5), the link (6), the link (7), and the link (8), and service types of at least one service corresponding to each of the node 102, the node 103, the node 104, the node 105, the node 106, the node 107, the node 108, and the node 109, and table 1 below is one example of service types of the service corresponding to each of the plurality of nodes.
TABLE 1
Node | |
Node | |
102 | Service 1, service 2, service 3, service 4, service 5 |
|
Service 1, service 5 |
|
Service 1 |
|
Service 2 |
|
Service 2 |
|
Service 3 |
|
Service 3, service 5 |
|
Service 4 |
It will be appreciated that the electronic device may obtain the first link information of the same link from configuration information of two different nodes, which are two nodes on the link, specifically, two end nodes of the link. For example, in connection with fig. 1, the electronic device 101 may obtain the first link information of the link (1) from the configuration information of the node 102, or may obtain the first link information of the link (1) from the configuration information of the node 103.
S102, the electronic equipment determines a plurality of links corresponding to the target service based on first link information of links corresponding to the nodes and service types of services corresponding to the nodes.
Wherein the target service is one of a plurality of services.
It should be understood that the plurality of services is all services corresponding to the plurality of nodes.
Referring to fig. 3, as shown in fig. 4, in an implementation manner of the embodiment of the present invention, the first link information of one link corresponding to the first node includes an identifier of the first node and an identifier of a second node, where the first node is one of the plurality of nodes, and the second node is a node other than the first node in the plurality of nodes, and the S102 may specifically include S1021-S1022.
S1021, the electronic device determines that at least one service corresponding to the first node comprises a target service, and at least one service corresponding to the second node comprises the target service.
It will be appreciated that the inclusion of the identity of the first node and the identity of the second node in the first link information of a link indicates that a communication connection exists between the first node and the second node, and in particular that the first node and the second node communicate via the link. In the embodiment of the invention, the electronic device can have communication connection, and two nodes of the same service are included in the corresponding service, so that the communication node corresponding to the service, namely, the service data of the service needs to be transmitted through the two nodes.
S1022, the electronic device determines that the target link is a link corresponding to the target service.
The target link is a link corresponding to both the first node and the second node.
In combination with the above example in table 1, assuming that the first node is node 103 and the target service is service 1, the electronic device determines that the second node may be node 102 and node 104, and further, the electronic device determines that the target link is link (1) and link (2), that is, the link corresponding to service 1 includes link (1) and link (2).
Optionally, the first link information of the above-mentioned one link may further include port information of the source node and port information of the destination port, that is, the electronic device may determine through which two ports the source node and the destination node respectively perform communication interaction.
S103, the electronic equipment adds the identification of the target service in the first link information of the links corresponding to the target service to obtain the second link information of the links.
It should be understood that the second link information of the links corresponding to the target service includes an identifier of the target service.
The electronic device may determine the links corresponding to the multiple services, and add the same identifier (i.e. the identifier of the target service) to different links corresponding to a certain service (e.g. the target service), or add different identifiers to the same link, i.e. the same link may be used to transmit service data of different services.
In an implementation manner of the embodiment of the present invention, the electronic device may introduce, through the scanning application, the obtained configuration information of the plurality of nodes, the identifiers of the plurality of services, and the second link information of all links to which the identifiers are added into the graphics database on the basis of the open-source graphics database, so that the electronic device may determine a data transmission path corresponding to a certain service (for example, a target service) based on the identifier of the target service.
According to the method for determining the transmission path, the electronic equipment acquires configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node, the electronic equipment determines a plurality of links corresponding to a target service based on the first link information of the links corresponding to the plurality of nodes and the service type of the service corresponding to the plurality of nodes, and adds identification of the target service in the first link information of the plurality of links to obtain second link information of the plurality of links. In the embodiment of the invention, the electronic equipment can add the identifiers of the corresponding services for the links corresponding to the nodes based on the configuration information of the nodes, and further, when the electronic equipment responds to the query instruction (or acquires the query request), the data transmission path corresponding to the target service can be determined based on the identifiers of the target service included in the query instruction, so that the data transmission path corresponding to the target service can be accurately and reasonably determined, and the transmission efficiency of service data is improved.
Referring to fig. 3, as shown in fig. 5, in an implementation manner of the embodiment of the present invention, after S103, the method for determining a transmission path provided in the embodiment of the present invention may further include S104 to S105.
S104, the electronic equipment responds to the query instruction to determine a data transmission path corresponding to the target service.
The query instruction includes the identifier of the target service.
In one implementation manner of the embodiment of the present invention, the step S104 may specifically include step a-step B.
And step A, the electronic equipment responds to the query instruction to determine a plurality of links corresponding to the target service.
In connection with the above description of the embodiments, it should be understood that the electronic device may obtain the second link information of all links corresponding to the above-mentioned nodes. Specifically, the second link information of one link may include a service identifier of at least one service, and the electronic device may select, from all the links, a link including the service identifier of the target service in the second link information according to the service identifier of the target service, and determine the link as a link corresponding to the target service.
Illustratively, table 2 below is one example of the service identities included in the second link information of each of the 8 links shown in fig. 1.
TABLE 2
Link | Service identification included in the second link information |
Link (1) | aa、ff |
Link (2) | aa |
Link (3) | bb |
Link (4) | bb |
Link (5) | cc |
Link (6) | cc |
Link (7) | ff |
Link (8) | dd |
Assuming that the service identifier of the target service is aa, the electronic device determines that the target service corresponds to a plurality of links including a link (1) and a link (2).
And B, the electronic equipment determines a path formed by a plurality of links corresponding to the target service as a data transmission path.
In combination with the example in the step a, the electronic device determines the path formed by the link (1) and the link (2) as the data transmission path corresponding to the target service.
S105, the electronic equipment displays a plurality of links and a plurality of target nodes corresponding to the target service.
The plurality of target nodes are nodes included in the data transmission paths corresponding to the target service.
In connection with the example in step B above, the electronic device determines that the plurality of target nodes includes node 102, node 103, and node 104.
It can be appreciated that the electronic device may display the links and the target nodes, and further, in a case where an abnormality occurs in the target service, for example, when an error occurs in data transmission of the target service, the specific location where the problem occurs (i.e., in which link or in which node the abnormality occurs in particular) may be determined based on the links and the target nodes, so as to improve efficiency of exception handling.
The embodiment of the invention can divide the functional modules of the electronic equipment and the like according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present invention, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
In the case of dividing the respective functional modules with the respective functions, fig. 6 shows one possible configuration diagram of the determination device of the transmission path involved in the above-described embodiment, and as shown in fig. 6, the determination device 30 of the transmission path may include: an acquisition module 301, a determination module 302 and an identification adding module 303.
The obtaining module 301 is configured to obtain configuration information of a plurality of nodes, where the configuration information of a node includes first link information of at least one link corresponding to the node and a service type of at least one service corresponding to the node.
A determining module 302, configured to determine, based on the first link information of the links corresponding to each of the plurality of nodes and the service types of the services corresponding to each of the plurality of nodes, a plurality of links corresponding to a target service, where the target service is one of the plurality of services.
The identifier adding module 303 is configured to add the identifier of the target service to the first link information of the multiple links, so as to obtain second link information of the multiple links.
Optionally, the first link information of one link corresponding to the first node includes an identifier of the first node and an identifier of a second node, where the first node is one of the plurality of nodes, and the second node is a node other than the first node in the plurality of nodes.
The determining module 302 is specifically configured to determine that the at least one service corresponding to the first node includes the target service, and that the at least one service corresponding to the second node includes the target service.
The determining module 302 is specifically further configured to determine that the target link is a link corresponding to the target service, where the target link is a link corresponding to both the first node and the second node.
Optionally, the determining module 302 is further configured to determine a data transmission path corresponding to the target service in response to a query instruction, where the query instruction includes an identifier of the target service.
Optionally, the determining module 302 is specifically configured to determine, in response to the query instruction, a plurality of links corresponding to the target service.
The determining module 302 is specifically further configured to determine a path formed by the multiple links as the data transmission path.
Optionally, the determining device 30 of the transmission path may further include a display module 304.
And a display module 304, configured to display the links and the target nodes, where the target nodes are nodes included in the data transmission path.
In the case of an integrated unit, fig. 7 shows a possible structural diagram of the transmission path determination device according to the above-described embodiment. As shown in fig. 7, the transmission path determining device 40 may include: a processing module 401 and a communication module 402. The processing module 401 may be used for controlling and managing the actions of the determining means 40 of the transmission path. The communication module 402 may be used to support communication of the transmission path determination device 40 with other entities. Alternatively, as shown in fig. 7, the determining device 40 of the transmission path may further include a storage module 403 for storing program codes and data of the determining device 40 of the transmission path.
The processing module 401 may be a processor or a controller (e.g., may be the processor 201 shown in fig. 2 and described above). The communication module 402 may be a transceiver, a transceiver circuit, a communication interface, or the like (e.g., may be the network interface 203 described above and shown in fig. 2). The memory module 403 may be a memory (e.g., may be the memory 202 described above and shown in fig. 2).
When the processing module 401 is a processor, the communication module 402 is a transceiver, and the storage module 403 is a memory, the processor, the transceiver, and the memory may be connected through a bus. The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. 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.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber terminal line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. A transmission path determining method, applied to an electronic device, characterized by comprising:
acquiring configuration information of a plurality of nodes, wherein the configuration information of one node comprises first link information of at least one link corresponding to the node and service type of at least one service corresponding to the node;
determining a plurality of links corresponding to a target service based on first link information of links corresponding to the plurality of nodes and service types of services corresponding to the plurality of nodes, wherein the target service is one of the plurality of services;
adding the identification of the target service in the first link information of the links to obtain the second link information of the links;
the determining, based on the first link information of the links corresponding to the plurality of nodes and the service types of the services corresponding to the plurality of nodes, a plurality of links corresponding to the target service includes:
determining that at least one service corresponding to a first node comprises the target service, at least one service corresponding to a second node comprises the target service, and first link information of one link corresponding to the first node comprises an identifier of the first node and an identifier of the second node, wherein the first node is one of the plurality of nodes, and the second node is a node other than the first node;
and determining a target link as a link corresponding to the target service, wherein the target link is a link corresponding to both the first node and the second node.
2. The transmission path determination method according to claim 1, wherein after the second link information of the plurality of links is obtained, the method further comprises:
and responding to a query instruction, determining a data transmission path corresponding to the target service, wherein the query instruction comprises the identification of the target service.
3. The method for determining a transmission path according to claim 2, wherein the acquiring the data transmission path corresponding to the target service includes:
responding to the query instruction, and determining a plurality of links corresponding to the target service;
and determining a path formed by the plurality of links as the data transmission path.
4. A transmission path determination method according to claim 3, characterized in that the method further comprises:
and displaying the links and a plurality of target nodes, wherein the plurality of target nodes are nodes included in the data transmission path.
5. A transmission path determining apparatus, comprising: the device comprises an acquisition module, a determination module and an identification adding module;
the acquiring module is configured to acquire configuration information of a plurality of nodes, where the configuration information of one node includes first link information of at least one link corresponding to the node and a service type of at least one service corresponding to the node;
the determining module is configured to determine a plurality of links corresponding to a target service based on first link information of links corresponding to the plurality of nodes and service types of services corresponding to the plurality of nodes, where the target service is one of the plurality of services;
the identification adding module is used for adding the identification of the target service to the first link information of the links to obtain the second link information of the links;
the determining module is specifically configured to determine that the at least one service corresponding to the first node includes the target service, and the at least one service corresponding to the second node includes the target service, where the first link information of the one link corresponding to the first node includes an identifier of the first node and an identifier of the second node, the first node is one of the plurality of nodes, and the second node is a node other than the first node among the plurality of nodes;
the determining module is specifically further configured to determine that a target link is a link corresponding to the target service, where the target link is a link corresponding to both the first node and the second node.
6. The transmission path determining apparatus according to claim 5, wherein,
the determining module is further configured to determine a data transmission path corresponding to the target service in response to a query instruction, where the query instruction includes an identifier of the target service.
7. The apparatus for determining a transmission path according to claim 6, wherein,
the determining module is specifically configured to determine a plurality of links corresponding to the target service in response to the query instruction;
the determining module is specifically further configured to determine a path formed by the multiple links as the data transmission path.
8. The transmission path determination apparatus according to claim 7, wherein the determination apparatus further comprises a display module;
the display module is configured to display the links and the target nodes, where the target nodes are nodes included in the data transmission path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110662913.XA CN113490249B (en) | 2021-06-15 | 2021-06-15 | Transmission path determining method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110662913.XA CN113490249B (en) | 2021-06-15 | 2021-06-15 | Transmission path determining method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113490249A CN113490249A (en) | 2021-10-08 |
CN113490249B true CN113490249B (en) | 2023-06-23 |
Family
ID=77934986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110662913.XA Active CN113490249B (en) | 2021-06-15 | 2021-06-15 | Transmission path determining method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113490249B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114584621B (en) * | 2022-04-18 | 2024-06-07 | 中国农业银行股份有限公司 | Data transmission method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1984020A (en) * | 2006-06-08 | 2007-06-20 | 华为技术有限公司 | Method and device for transmitting data |
US8149717B2 (en) * | 2009-05-29 | 2012-04-03 | Motorola Solutions, Inc. | System and method to provide differentiated routing in multi-hop multi-radio wireless networks |
CN109561028B (en) * | 2019-01-07 | 2023-04-07 | 中国联合网络通信集团有限公司 | Method and equipment for selecting transmission path based on traffic engineering |
CN110442641B (en) * | 2019-08-06 | 2022-07-12 | 中国工商银行股份有限公司 | Link topology graph display method and device, storage medium and equipment |
-
2021
- 2021-06-15 CN CN202110662913.XA patent/CN113490249B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113490249A (en) | 2021-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111866162B (en) | A service distribution method and device | |
CN109495524B (en) | A method, device and system for subscribing to Internet of Things resources | |
CN114024876B (en) | Network dial testing method, device, equipment and storage medium | |
CN114189525B (en) | Service request method and device and electronic equipment | |
MX2014009070A (en) | Characteristic information acquisition method, device and network equipment. | |
CN109309735B (en) | Connection processing method, server, system and storage medium | |
CN109299173A (en) | Data transmission method, device and storage medium | |
CN113490249B (en) | Transmission path determining method and device | |
CN116415246A (en) | Training method of anomaly detection model, anomaly detection method and anomaly detection device | |
CN115037653A (en) | Service flow monitoring method and device, electronic equipment and storage medium | |
CN114125812A (en) | A data synchronization method, device, server and storage medium | |
CN114244694A (en) | Intelligent management method, system and equipment for network port and readable storage medium | |
CN106161075A (en) | Method for processing business, Apparatus and system | |
CN116681234A (en) | A work order processing method, device, electronic device and storage medium | |
CN116739560A (en) | A fault work order generation method, device, electronic equipment and storage medium | |
CN116662499A (en) | A data acquisition method, device, electronic equipment and storage medium | |
CN114124404B (en) | A data processing method, device, server and storage medium | |
CN106709060B (en) | Data sharing method and system | |
CN112511980B (en) | A communication system, method and device | |
CN108900575B (en) | Long connection hierarchical communication method and system based on mobile terminal | |
CN112256706A (en) | Method and device for determining handle reference state | |
CN118433577B (en) | Data processing method and related equipment based on optical fiber network | |
CN116233251B (en) | Information prompt method, device, electronic device and storage medium | |
CN109961261A (en) | A kind of collaborative management method and system of the unified cooperation office of intelligence | |
CN111163088B (en) | Message processing method, system and device and electronic equipment |
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 |