CN114448867A - Route visualization method, device, equipment and storage medium - Google Patents
Route visualization method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114448867A CN114448867A CN202210169143.XA CN202210169143A CN114448867A CN 114448867 A CN114448867 A CN 114448867A CN 202210169143 A CN202210169143 A CN 202210169143A CN 114448867 A CN114448867 A CN 114448867A
- Authority
- CN
- China
- Prior art keywords
- node
- information
- called party
- instance
- target instance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007794 visualization technique Methods 0.000 title claims description 33
- 238000001514 detection method Methods 0.000 claims abstract description 76
- 238000012360 testing method Methods 0.000 claims abstract description 76
- 238000012800 visualization Methods 0.000 claims abstract description 57
- 238000000034 method Methods 0.000 claims abstract description 13
- 230000004044 response Effects 0.000 claims description 11
- 239000000523 sample Substances 0.000 claims description 9
- 230000000694 effects Effects 0.000 abstract description 27
- 238000012423 maintenance Methods 0.000 abstract description 11
- 238000004088 simulation Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the application provides a method, a device, equipment and a storage medium for route visualization. According to the technical scheme provided by the embodiment of the application, the position information, the called party information and the calling parameter provided by the testing end are obtained, the called party instance list is obtained according to the called party information, the called target instance node is determined from the called party instance list based on the calling parameter, the node detection information is sent to the target instance node based on the position information, the detection result is sent to the testing end after the node feedback information fed back by the target instance node is received, the detection result is displayed by the testing end, the actual effect of the routing strategy is visually displayed, the operation and maintenance cost and complexity are effectively reduced, the understanding difficulty of the routing disaster tolerance strategy is reduced, and a service worker can visually master the real-time effect of each routing strategy.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a route visualization method, a route visualization device, route visualization equipment and a storage medium.
Background
For services widely distributed by users, the services are generally distributed and deployed in multiple areas and multiple machine rooms based on index considerations such as low time delay and high availability. When the service is called, an appropriate routing strategy is usually selected by combining with the self scene. In order to avoid the repeated construction of the service level, the bottom framework often provides a plurality of standardized selectable routing strategies in the dimensions of large areas, machine rooms, instances and the like. For example, the large-area dimension provides a default same-large area, the machine room dimension provides a priority same-machine room, a consistency hash selects a machine room and the like, and the example dimension provides a polling, consistency hash and other load balancing routing strategies.
However, with the increasing of routing strategies, the effects of various routing strategies in actual use scenarios are different, which makes it difficult for a service user to grasp the actual effects of the selected routing strategies in a real environment.
Disclosure of Invention
The embodiment of the application provides a route visualization method, a route visualization device, a route visualization equipment and a storage medium, so as to solve the technical problem that a service user is difficult to master the actual effect of a selected routing strategy in a real environment in the related art, and effectively reduce the operation and maintenance cost and complexity by reflecting the actual effect of the routing strategy in the real environment.
In a first aspect, an embodiment of the present application provides a route visualization method, including:
acquiring position information, called party information and calling parameters provided by a testing end;
acquiring a called party instance list according to the called party information, and determining a target instance node from the called party instance list based on the calling parameter;
sending node detection information to the target instance node based on the position information so that the target instance node returns node feedback information based on the node detection information;
and feeding back a detection result to the test end in response to receiving the node feedback information fed back by the target instance node, so that the test end displays the detection result.
In a second aspect, an embodiment of the present application provides a route visualization apparatus, including a call response module, a node determination module, a node detection module, and a result feedback module, where:
the calling response module is used for acquiring the position information, the called party information and the calling parameters provided by the test terminal;
the node determining module is used for acquiring a called party instance list according to the called party information and determining a target instance node from the called party instance list based on the calling parameter;
the node detection module is used for sending node detection information to the target instance node based on the position information so as to enable the target instance node to return node feedback information based on the node detection information;
and the result feedback module is used for responding to the received node feedback information fed back by the target instance node and feeding back a detection result to the test end so as to display the detection result by the test end.
In a third aspect, an embodiment of the present application provides a route visualization device, including: a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the route visualization method of the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer-executable instructions for performing the route visualization method according to the first aspect when executed by a computer processor.
According to the embodiment of the application, the position information, the called party information and the calling parameter provided by the testing terminal are obtained, the called party instance list is obtained according to the called party information, the called target instance node is determined from the called party instance list based on the calling parameter, the node detection information is sent to the target instance node based on the position information, the detection result is sent to the testing terminal after the node feedback information fed back by the target instance node is received, and the testing terminal displays the detection result, so that the visual display of the actual effect of the routing strategy is realized, the operation and maintenance cost and complexity are effectively reduced, the understanding difficulty of the routing disaster tolerance strategy is reduced, and a service worker can intuitively master the real-time effect of each routing strategy.
Drawings
Fig. 1 is a flowchart of a route visualization method provided in an embodiment of the present application;
fig. 2 is a flowchart of another route visualization method provided in an embodiment of the present application;
fig. 3 is a schematic workflow diagram of a route visualization system provided in an embodiment of the present application;
fig. 4 is a schematic workflow diagram of a route visualization apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a route visualization device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a route visualization device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The above process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a route visualization method provided in an embodiment of the present application, where the route visualization method provided in an embodiment of the present application may be executed by a route visualization apparatus, which may be implemented by hardware and/or software and integrated in a route visualization device (e.g., a server).
The following description will be given by taking an example in which the route visualization apparatus performs the route visualization method. Referring to fig. 1, the route visualization method includes:
s101: and acquiring the position information, the called party information and the calling parameters provided by the testing end.
The location information may be used to reflect a location where a simulation test needs to be performed (may be a location of the test end itself, or may be a location outside the test end, and is determined according to the location where the simulation test needs to be performed), the called party information may be used to reflect a service that needs to be provided by the called party, and the call parameter may be used to indicate a policy for selecting an instance node corresponding to a called instance according to the location information and the service, where the instance node is distributed in different large areas (regions) and machine rooms, and the instance node may provide one or more services.
In one embodiment, the testing end may be wed front end communicating with the route visualization device based on the HTTP protocol and providing an input configuration interface of location information, called party information and calling parameters on an interactive interface of the web front end. When a caller needs to simulate the routing effect of a routing strategy on a corresponding position, corresponding position information is determined according to the actual position needing to be simulated, called party information is determined according to the service needing to be called (the called party provides the corresponding service in an example form), a corresponding calling parameter is determined according to the routing strategy needing to be tested, the determined position information, the called party information and the calling parameter are input on a testing end, and the testing end sends the position information, the called party information and the calling parameter to a routing visualization device so as to send a routing strategy testing request to the routing visualization device.
Illustratively, after receiving the position information, the called party information and the calling parameter provided by the testing end, the position of the calling party is simulated, and the corresponding target instance node is selected for detection based on the calling parameter and the called party information.
S102: and acquiring a called party instance list according to the called party information, and determining a target instance node from the called party instance list based on the calling parameter.
Illustratively, after receiving the location information, the called party information and the calling parameters provided by the test terminal, determining the service to be called according to the called party information, and acquiring a called party instance list capable of providing the corresponding service. One or more instance nodes which can provide the service required to be called are recorded in the called instance list, wherein different instance nodes come from different large areas or computer rooms.
And after the called party instance list is obtained, selecting a target instance node corresponding to the service needing to be called at this time from the instance nodes provided by the called party instance list according to the selection strategy of the instance nodes indicated by the calling parameters.
S103: and sending node detection information to the target instance node based on the position information so that the target instance node returns node feedback information based on the node detection information.
Illustratively, after determining a target instance node corresponding to a service that needs to be called at this time, sending set node probe information to the target instance node based on location information provided by the test terminal. And after receiving the node detection information, the target instance node returns set node feedback information to the route visualization device.
S104: and feeding back the detection result to the test end in response to receiving the node feedback information fed back by the target instance node, so that the test end displays the detection result.
Illustratively, after node feedback information returned by the target instance node is received, the detection results corresponding to the current position information, the called party information and the calling parameters are determined, and the detection results are fed back to the test end. And after receiving the detection result, the test end visually displays the detection result, for example, displays a target instance node corresponding to the called service on an interactive interface.
In the related art, in order to realize the visualization of the call route among the distributed services, a scheme of testing in a simulation environment is usually adopted, a batch of simulation service instances are required to be deployed in the simulation service distribution, and meanwhile, a real request of a calling party is adopted to test a routing strategy, so that the unnecessary operation and maintenance cost is increased, and the routing effect consistent with the on-line real-time environment cannot be obtained. According to the route visualization method provided by the scheme, after a developer sends a route strategy test request to the route visualization device based on the position information, the called party information and the calling parameter, the route visualization device executes a route strategy corresponding to the calling parameter to determine a target instance node, and simulates the node position of the calling party based on the position information to send node detection information to the target instance node. If the node position corresponding to the position information can be normally communicated with the target instance node or the target instance node can normally provide service, the route visualization device receives node feedback information returned by the target instance node and sends a detection result to the test end. And developers can determine the actual routing effect of the routing strategy corresponding to the calling parameter in the real environment according to the display of the testing end on the detection result.
In an embodiment, when node feedback information returned by a target instance node is not received within a set time length (for example, a routing policy is abnormal, communication with the target instance node is abnormal, or the target instance node is abnormal), the routing visualization device sends routing abnormal information to the test terminal according to the reason of the abnormality, so as to prompt the routing policy test abnormality and the corresponding reason of the abnormality.
The method includes the steps of obtaining position information, called party information and calling parameters provided by a testing terminal, obtaining a called party instance list according to the called party information, determining a called target instance node from the called party instance list based on the calling parameters, sending node detection information to the target instance node based on the position information, sending a detection result to the testing terminal after receiving node feedback information fed back by the target instance node, and displaying the detection result by the testing terminal, so that visual display of the actual effect of the routing strategy is achieved, the operation and maintenance cost and complexity are effectively reduced, the understanding difficulty of the routing disaster tolerance strategy is reduced, and business personnel can intuitively master the real-time effect of each routing strategy.
On the basis of the foregoing embodiment, fig. 2 is a flowchart of another route visualization method provided in an embodiment of the present application, which is an embodiment of the foregoing route visualization method. Referring to fig. 2, the route visualization method includes:
s201: and acquiring the position information, the called party information and the calling parameters provided by the testing end.
In one embodiment, the location information includes the home information and the room information where the caller needs to be simulated (e.g., home and room representing the caller in a home-room format). The called party information comprises a service name corresponding to the service which the calling party needs to call and a corresponding service system. The invocation parameter includes a routing policy indicating a selection policy for selecting the invoked target instance node from the plurality of instance nodes.
In one embodiment, the routing policies include a combination of one or more of a large area selection policy, a machine room selection policy, a routing policy, and a hash key, wherein the district selection policy may be understood as a selection policy for a district to which the invoked service belongs, the room selection policy may be understood as a selection policy for a room in which the invoked service is located, for example, the large area selection policy preferentially selects an instance node of a large area or a designated large area which is the same as a calling party, the machine room selection policy preferentially selects an instance node of a machine room or a designated machine room which is the same as the calling party, the routing policy can be understood as a selection policy for determining a route to a target node of the calling party from a plurality of provided instance nodes, the hash key value is used for identifying a preconfigured routing policy, the routing strategy is configured in advance, recording is carried out through a hash key value mode, and the routing strategy required to be called can be quickly determined based on the hash key value.
S202: and determining a service system in the called party information, and acquiring a called party instance list from the service system according to the service name in the called party information.
Illustratively, a service name and a service system in the called party information are determined, and node distribution information of the called party is requested to the service system according to the service name so as to obtain a called party instance list from the service system according to the service name. The called party instance list records instance nodes capable of providing services corresponding to the service names and node information corresponding to the instance nodes, and the distribution of the instance nodes capable of providing the services corresponding to the service names can be determined according to the called party instance list.
In one embodiment, the called party instance list may be provided by the service system, that is, the service system determines corresponding instance nodes based on the service names provided by the route visualization device, and generates the corresponding called party instance list according to the instance nodes. The called party instance list can also be generated by the route visualization device according to the instance nodes fed back by the service system based on the service names.
The service system records service names corresponding to services provided by a plurality of instance nodes (called parties) and corresponding node information (for example, large area information, machine room information, port information, and the like corresponding to the instance nodes). For example, when an instance node (called party) is online or updates a service, registration is initiated to the service system based on a corresponding service name, and the service system records the service name corresponding to the service provided by the instance node (called party) and corresponding node information. The service systems are configured in multiple numbers, and different service systems record service names and node information corresponding to different instance nodes (callers). When receiving a node distribution information acquisition request sent by a routing visualization device, a service system determines a corresponding instance node according to a service name carried by the node distribution information acquisition request, and returns a corresponding instance node or a called party instance list to the routing visualization device.
S203: and determining a target instance node from the called party instance list based on the position information according to the routing strategy in the calling parameter.
Illustratively, after obtaining the called party instance list, determining a target instance node selected from the instance nodes provided by the called party instance list according to a routing policy required in the invocation parameter under the position information (including the large area information and the machine room information) provided by the testing end. According to the scheme, the target instance node is selected through the routing strategy determined by the specified position information and the calling parameter of the test terminal, the effect that the calling party requests the routing strategy at the geographical position (large area-machine room) indicated by the position information is achieved, and the routing distribution strategy for calling the service to the calling party under the real use scene can be correctly reflected.
S204: and simulating the caller node according to the position information, and sending node detection information to the target instance node based on the caller node so that the target instance node returns node feedback information based on the node detection information.
Illustratively, a caller node is simulated according to the large area information and the machine room information in the position information, and node detection information is sent to a target instance node based on the simulated caller node. And after receiving the node detection information, the target instance node directly feeds back information to the node set by the sender of the route visualization device.
In an embodiment, the node probe information sent to the target instance node and the node feedback information returned by the target instance node may be information unrelated to the invoked application protocol, for example, the request for the service generally includes interface information of the called party, an interface name with a set prefix is agreed for the instance node corresponding to the set service (for example, common application), and each instance node may directly return the node feedback information after receiving the node probe information corresponding to the interface name.
For example, after the target instance node is determined, PING information is sent to the target instance node as node detection information based on the interface name with the preset prefix, and the target instance node returns PING information to the route visualization device as node feedback information after receiving the PING information.
In the related art, since the calling party may be deployed in any large area or machine room, in order to simulate the real situation, all machine rooms of all large areas need to be deployed in the simulator in a peer-to-peer manner, which results in increased operation and maintenance cost and complexity. According to the scheme, the effect of simulating the deployment position of the calling party in any large area or machine room is achieved based on the scheme of simulating the node deployment position by the position information provided by the test end, the geographical position of the calling party can be simulated in a low-cost mode, and the routing effect of different routing strategies in different node positions is achieved.
S205: and feeding back a detection result to the test end in response to receiving node feedback information fed back by the target instance node, so that the test end displays the detection result.
In one possible embodiment, the detection result includes one or more of the combination of the large area information, the machine room information and the port information corresponding to the target instance node. Taking the combination of the large area information, the machine room information and the port information as an example, after receiving node feedback information returned by the target instance node, sending a feedback detection result carrying the large area information, the machine room information and the port information to the test end, wherein the test end can display the large area information, the machine room information and the port information, and developers can execute the target instance node determined by the routing strategy under the currently input position information, the currently input called party information and the currently input calling parameters, so that the actual effect of the routing strategy in the real environment can be intuitively known, a batch of simulation service instances do not need to be distributed or a real request of a calling party is not used for testing the routing strategy, and the operation and maintenance cost and the complexity are effectively reduced. Optionally, the PORT information may be a node identifier (e.g., IP: PORT) corresponding to the target instance node.
In a possible embodiment, the probe result further includes node information (including one or more combinations of large area information, machine room information, and port information corresponding to each instance node) of each instance node in the called instance list. Based on this, when the test end displays the detection result, it includes: and the test end displays each example node in a hierarchical mode according to the node information, and marks a target example node in the plurality of example nodes.
Illustratively, after receiving the probing result, the testing end displays each instance node hierarchically on the interactive interface according to the node information of each instance node (including the target instance node) indicated in the probing result. For example, each instance node is displayed in three levels of large area-machine room-instance.
Furthermore, target instance nodes are marked in the instance nodes displayed in the hierarchy, and the instance nodes displayed in the hierarchy and the marked target instance nodes form a call routing graph. According to the scheme, each instance node is displayed in a hierarchical mode, the distribution condition of each instance node can be displayed more visually, the target instance node is highlighted through marking of the target instance node, and the routing strategy result and the distribution position of the target node are displayed more visually.
Fig. 3 is a schematic workflow diagram of a route visualization system according to an embodiment of the present application, and as shown in fig. 3, the route visualization system according to the present solution includes a testing end, a route visualization device, and a called party, where the testing end implements interaction with a developer and interaction with the route visualization device through a web page, and the route visualization device communicates with a plurality of called parties (instance nodes) providing services based on a set communication protocol.
When a developer needs to test a routing policy to determine the routing effect of the routing policy in a real online environment, simulation parameters (including location information, called party information and calling parameters) can be input on a test end, and the simulation parameters are sent to a routing visualization device to initiate a routing policy test request.
The route visualization device is used as a simulator to receive simulation parameters provided by the test end, selects a target instance node corresponding to a target instance called this time according to the large area information, the machine room information, the service name, the service system and the route strategy corresponding to the calling party needing to be simulated and indicated by the simulation parameters, and sends PING information to the target instance node to serve as node detection information. And after receiving the PING information, the target instance node sends PONG information to the route visualization device as node feedback information.
And the route visualization device outputs the detection result to the test end after receiving the node feedback information returned by the target instance node. The detection result includes the large area information, the machine room information, the port information (which may reflect the called instance corresponding to the simulation caller of this time), and the node information of each instance node in the called instance list (i.e., the instance distribution corresponding to the simulation caller of this time). After receiving the detection result, the testing end displays each instance node hierarchically on a web page according to the hierarchical relationship of the large area, the machine room and the instances, marks target instance nodes in the instance nodes according to the large area information, the machine room information and the port information corresponding to the target instance nodes to form a calling routing graph, and developers can intuitively know the routing result corresponding to the routing strategy under the currently input simulation parameters. The visualization of real-time calling of the routing is realized at lower operation and maintenance cost, the difficulty in understanding the route disaster recovery strategy is reduced, and developers can more intuitively master the real-time effect of each routing strategy.
Fig. 4 is a schematic workflow diagram of a route visualization apparatus according to an embodiment of the present application, and as shown in fig. 4, when each instance node (called party) is online or updates a service, registration is initiated to a service system based on a corresponding service name, and the service system records the service name corresponding to the service provided by the instance node and corresponding node information. The method comprises the steps that a position simulator, a detection transmitter and a service adapter are configured in a route visualization device, after a simulation parameter provided by a testing end is received by the route visualization device, position information (calling party's large area information and machine room information) in the simulation parameter is input into the position simulator, calling parameters (large area selection strategy, machine room selection strategy, routing strategy, hash key value and the like) in the simulation parameter are input into the detection transmitter, and called party information (service name and service system) in the simulation parameter is input into the service adapter.
The service adapter searches the corresponding service name in the corresponding service system according to the service name and the service system in the called party information, determines the instance node providing the corresponding service, and acquires the corresponding called party instance list. In one embodiment, SDKs (software development kits) of different service systems may be integrated in the service adapter, and based on the called party information in the input parameters, the corresponding service system may be requested to obtain the distribution information of the called party instance node. In the related technology, the services of the distributed system may belong to multiple sets of service systems, the route visualization of the services needs to be realized by multiple simulators mounted under a single service system, the operation and maintenance are tedious, and the cross-service routing cannot be simulated.
And the detection transmitter requests the position simulator to determine the large area and the machine room of the calling party according to the position information, and simulates the geographical position of the calling party based on the large area and the machine room of the calling party. And meanwhile, the detection transmitter acquires the called party instance list from the service adapter, and determines a target instance node corresponding to the called instance from the called party instance list according to the position information and the calling parameter. The probe transmitter transmits PING information as node probe information to the callee determined to be the target instance node based on the simulated geographic location. And after receiving the PING information, the target instance node sends PONG information to the route visualization device as node feedback information. According to the scheme, the transparent PING information of the protocol is sent to the called party through the simulator, the visualization of real-time routing is achieved, the node position is simulated through the position simulator, the simulation effect on the geographic position of the calling party is achieved in a low-cost mode, the simulator deployed in a real environment is utilized, routing selection detection is completed according to simulation information input by a service, the detection result of the selected target instance node is returned, and the effect of the routing strategy in a real online scene is effectively reflected.
The method includes the steps of obtaining position information, called party information and calling parameters provided by a testing terminal, obtaining a called party instance list according to the called party information, determining a called target instance node from the called party instance list based on the calling parameters, sending node detection information to the target instance node based on the position information, sending a detection result to the testing terminal after receiving node feedback information fed back by the target instance node, and displaying the detection result by the testing terminal, so that visual display of the actual effect of the routing strategy is achieved, the operation and maintenance cost and complexity are effectively reduced, the understanding difficulty of the routing disaster tolerance strategy is reduced, and business personnel can intuitively master the real-time effect of each routing strategy. And based on the service name and the instance node adaptation of the service system, the routing effect of all services in the whole distributed system is supported, a multi-service instance query mechanism is integrated, and the universality is stronger. Meanwhile, the routing strategy results and the distribution positions of the target nodes are displayed more intuitively by displaying the instance nodes in a hierarchical manner and marking the target instance nodes, so that developers can master the real-time effect of each routing strategy more intuitively.
Fig. 5 is a schematic structural diagram of a route visualization device according to an embodiment of the present application. Referring to fig. 5, the route visualization apparatus includes a call response module 51, a node determination module 52, a node detection module 53, and a result feedback module 54.
The calling response module 51 is configured to obtain location information, called party information, and calling parameters provided by the test terminal; the node determining module 52 is configured to obtain a called party instance list according to the called party information, and determine a target instance node from the called party instance list based on the calling parameter; a node detection module 53, configured to send node detection information to the target instance node based on the location information, so that the target instance node returns node feedback information based on the node detection information; and the result feedback module 54 is configured to, in response to receiving node feedback information fed back by the target instance node, feed back a detection result to the test end, so that the test end displays the detection result.
The method includes the steps of obtaining position information, called party information and calling parameters provided by a testing terminal, obtaining a called party instance list according to the called party information, determining a called target instance node from the called party instance list based on the calling parameters, sending node detection information to the target instance node based on the position information, sending a detection result to the testing terminal after receiving node feedback information fed back by the target instance node, and displaying the detection result by the testing terminal, so that visual display of the actual effect of the routing strategy is achieved, the operation and maintenance cost and complexity are effectively reduced, the understanding difficulty of the routing disaster tolerance strategy is reduced, and business personnel can intuitively master the real-time effect of each routing strategy.
The embodiment of the application also provides a route visualization device, and the route visualization device can be integrated with the route visualization device provided by the embodiment of the application. Fig. 6 is a schematic structural diagram of a route visualization device according to an embodiment of the present application. Referring to fig. 6, the route visualization device includes: an input device 63, an output device 64, a memory 62, and one or more processors 61; a memory 62 for storing one or more programs; the one or more programs, when executed by the one or more processors 61, cause the one or more processors 61 to implement the route visualization method as provided in the embodiments described above. The route visualization device, the equipment and the computer provided by the above can be used for executing the route visualization method provided by any of the above embodiments, and have corresponding functions and beneficial effects.
Embodiments of the present application also provide a storage medium storing computer-executable instructions, which when executed by a computer processor, are used to perform the route visualization method provided in the above embodiments. Of course, the storage medium storing computer-executable instructions provided in the embodiments of the present application is not limited to the route visualization method provided above, and may also perform related operations in the route visualization method provided in any embodiment of the present application. The route visualization device, the apparatus, and the storage medium provided in the foregoing embodiments may execute the route visualization method provided in any embodiment of the present application, and reference may be made to the route visualization method provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
Claims (11)
1. A method for route visualization, comprising:
acquiring position information, called party information and calling parameters provided by a testing end;
acquiring a called party instance list according to the called party information, and determining a target instance node from the called party instance list based on the calling parameter;
sending node detection information to the target instance node based on the position information so that the target instance node returns node feedback information based on the node detection information;
and feeding back a detection result to the test end in response to receiving the node feedback information fed back by the target instance node, so that the test end displays the detection result.
2. The route visualization method according to claim 1, wherein the called party information includes a service name and a corresponding service system, and the obtaining the called party instance list according to the called party information includes:
and determining a service system in the called party information, and acquiring a called party instance list from the service system according to the service name in the called party information.
3. The route visualization method according to claim 1, wherein the invocation parameter comprises a routing policy, and wherein the determining a target instance node from the callee instance list based on the invocation parameter comprises:
and determining a target instance node from the called party instance list based on the position information according to the routing strategy in the calling parameter.
4. The route visualization method according to claim 3, wherein the routing policy comprises one or more of a district selection policy, a machine room selection policy, a routing policy, and a hash key.
5. The route visualization method according to claim 1, wherein the sending node probe information to the target instance node based on the location information comprises:
and simulating a calling party node according to the position information, and sending node detection information to the target instance node based on the calling party node.
6. The route visualization method according to claim 1, wherein the probe result comprises one or more combinations of large area information, machine room information, and port information of the target instance node.
7. The route visualization method according to claim 6, wherein the probe result further includes node information of each instance node in the callee instance list.
8. The route visualization method according to claim 7, wherein the displaying the detection result by the testing end comprises:
and the test end displays each instance node in a hierarchical mode according to the node information, and marks the target instance node in the multiple instance nodes.
9. A route visualization device is characterized by comprising a call response module, a node determination module, a node detection module and a result feedback module, wherein:
the calling response module is used for acquiring the position information, the called party information and the calling parameters provided by the test terminal;
the node determining module is used for acquiring a called party instance list according to the called party information and determining a target instance node from the called party instance list based on the calling parameter;
the node detection module is used for sending node detection information to the target instance node based on the position information so as to enable the target instance node to return node feedback information based on the node detection information;
and the result feedback module is used for responding to the received node feedback information fed back by the target instance node and feeding back a detection result to the test end so as to display the detection result by the test end.
10. A route visualization device, comprising: a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the route visualization method of any of claims 1-8.
11. A storage medium storing computer-executable instructions for performing the route visualization method of any one of claims 1-8 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210169143.XA CN114448867B (en) | 2022-02-23 | 2022-02-23 | Route visualization method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210169143.XA CN114448867B (en) | 2022-02-23 | 2022-02-23 | Route visualization method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114448867A true CN114448867A (en) | 2022-05-06 |
CN114448867B CN114448867B (en) | 2024-04-09 |
Family
ID=81373220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210169143.XA Active CN114448867B (en) | 2022-02-23 | 2022-02-23 | Route visualization method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114448867B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118652A (en) * | 2022-07-18 | 2022-09-27 | 中信百信银行股份有限公司 | Route distribution method, device and equipment and storage medium |
CN117749615A (en) * | 2024-02-19 | 2024-03-22 | 成都九洲电子信息***股份有限公司 | Method, system and device for constructing mining management and control communication link based on object combination |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100791913B1 (en) * | 2006-07-05 | 2008-01-04 | 주식회사 맥스포 | Tester for node module of ubiquitous sensor network system, test method for node module and remote monitoring apparatus for ubiquitous sensor network system |
US20130114065A1 (en) * | 2011-11-09 | 2013-05-09 | Cheng Uei Precision Industry Co., Ltd. | Method for measuring the heights of components based on laser ranging |
CN105068926A (en) * | 2015-08-04 | 2015-11-18 | 腾讯科技(深圳)有限公司 | Program test method and device thereof |
CN110719199A (en) * | 2019-09-30 | 2020-01-21 | 深圳市元征科技股份有限公司 | Network automatic test and fault positioning method and device |
CN111181760A (en) * | 2019-09-02 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Network fault detection method and device, computer readable medium and electronic equipment |
CN112242938A (en) * | 2020-10-14 | 2021-01-19 | 亚信科技(中国)有限公司 | Detection method, detection device, electronic equipment and computer-readable storage medium |
CN113051094A (en) * | 2021-03-22 | 2021-06-29 | 中国工商银行股份有限公司 | Supervision data submission testing method and device |
CN113254331A (en) * | 2021-05-12 | 2021-08-13 | 深圳前海微众银行股份有限公司 | Model test method, device, storage medium and program product |
CN113377654A (en) * | 2021-06-15 | 2021-09-10 | 中国工商银行股份有限公司 | Concurrent test system, method and device for software product |
CN113453229A (en) * | 2021-08-27 | 2021-09-28 | 杭州海康威视数字技术股份有限公司 | Remote wireless safety automatic test method, device and equipment |
CN113516883A (en) * | 2021-07-09 | 2021-10-19 | 中国人民解放军海军工程大学 | Submarine cable route detection simulation training system and method |
CN113535539A (en) * | 2020-04-22 | 2021-10-22 | 网易(杭州)网络有限公司 | Debugging method, device, equipment and storage medium in game editing |
CN113822134A (en) * | 2021-07-19 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Instance tracking method, device, equipment and storage medium based on video |
-
2022
- 2022-02-23 CN CN202210169143.XA patent/CN114448867B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100791913B1 (en) * | 2006-07-05 | 2008-01-04 | 주식회사 맥스포 | Tester for node module of ubiquitous sensor network system, test method for node module and remote monitoring apparatus for ubiquitous sensor network system |
US20130114065A1 (en) * | 2011-11-09 | 2013-05-09 | Cheng Uei Precision Industry Co., Ltd. | Method for measuring the heights of components based on laser ranging |
CN105068926A (en) * | 2015-08-04 | 2015-11-18 | 腾讯科技(深圳)有限公司 | Program test method and device thereof |
CN111181760A (en) * | 2019-09-02 | 2020-05-19 | 腾讯科技(深圳)有限公司 | Network fault detection method and device, computer readable medium and electronic equipment |
CN110719199A (en) * | 2019-09-30 | 2020-01-21 | 深圳市元征科技股份有限公司 | Network automatic test and fault positioning method and device |
CN113535539A (en) * | 2020-04-22 | 2021-10-22 | 网易(杭州)网络有限公司 | Debugging method, device, equipment and storage medium in game editing |
CN112242938A (en) * | 2020-10-14 | 2021-01-19 | 亚信科技(中国)有限公司 | Detection method, detection device, electronic equipment and computer-readable storage medium |
CN113051094A (en) * | 2021-03-22 | 2021-06-29 | 中国工商银行股份有限公司 | Supervision data submission testing method and device |
CN113254331A (en) * | 2021-05-12 | 2021-08-13 | 深圳前海微众银行股份有限公司 | Model test method, device, storage medium and program product |
CN113377654A (en) * | 2021-06-15 | 2021-09-10 | 中国工商银行股份有限公司 | Concurrent test system, method and device for software product |
CN113516883A (en) * | 2021-07-09 | 2021-10-19 | 中国人民解放军海军工程大学 | Submarine cable route detection simulation training system and method |
CN113822134A (en) * | 2021-07-19 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Instance tracking method, device, equipment and storage medium based on video |
CN113453229A (en) * | 2021-08-27 | 2021-09-28 | 杭州海康威视数字技术股份有限公司 | Remote wireless safety automatic test method, device and equipment |
Non-Patent Citations (2)
Title |
---|
CHIARA BURATTI; ANDREA STAJKIC; GORDANA GARDASEVIC; SEBASTIANO MILARDO; M. DANILO ABRIGNANI; STEFAN MIJOVIC; GIACOMO MORABITO;: "Testing Protocols for the Internet of Things on the EuWIn Platform", IEEE * |
常国锋;: "基于信任域的环形网络介质访问时延控制仿真", 计算机仿真, no. 03 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118652A (en) * | 2022-07-18 | 2022-09-27 | 中信百信银行股份有限公司 | Route distribution method, device and equipment and storage medium |
CN117749615A (en) * | 2024-02-19 | 2024-03-22 | 成都九洲电子信息***股份有限公司 | Method, system and device for constructing mining management and control communication link based on object combination |
CN117749615B (en) * | 2024-02-19 | 2024-06-07 | 成都九洲电子信息***股份有限公司 | Method, system and device for constructing mining management and control communication link based on object combination |
Also Published As
Publication number | Publication date |
---|---|
CN114448867B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114448867B (en) | Route visualization method, device, equipment and storage medium | |
KR101008050B1 (en) | A system and method for creating, performing and mapping service | |
US20140365196A1 (en) | Infrastructure Model Generation System And Method | |
CN111934922B (en) | Method, device, equipment and storage medium for constructing network topology | |
CN109040343A (en) | Domain name analytic method, device, computer readable storage medium and electronic equipment | |
CN108540674B (en) | Automatic testing method and device, computer equipment and storage medium | |
CN112367684B (en) | Flow control method, device, storage medium and computer equipment | |
JP2010512126A (en) | Apparatus and method for providing and providing an indication of communication events on a map | |
US11362912B2 (en) | Support ticket platform for improving network infrastructures | |
US20230044850A1 (en) | Tracing and exposing data used for generating analytics | |
CN110018956A (en) | Using adjustment method and relevant apparatus | |
CN114791846A (en) | Method for realizing observability aiming at cloud native chaos engineering experiment | |
US9178952B2 (en) | Systems and methods for service assurance using virtualized federated presence infrastructure | |
CN114745295A (en) | Data acquisition method, device, equipment and readable storage medium | |
CN111966556A (en) | Performance pressure measurement method and device, server and computer readable storage medium | |
CN103605610A (en) | System and method for software testing based on Hadoop | |
US20220014415A1 (en) | Deriving network device and host connection | |
US20050204029A1 (en) | User connectivity process management system | |
KR20040051876A (en) | Web service tester and method of testing web service | |
CN110719325A (en) | Method and device for responding to user request | |
CN112084247B (en) | Method and device for expanding application program service | |
CN114327823A (en) | Method, system, terminal and storage medium for calling resources of micro-service cluster | |
CN111669290B (en) | Network element management method, management server and storage medium | |
CN110555201B (en) | Knowledge document generation method, device, electronic equipment and storage medium | |
CN111506507B (en) | Business service state detection method and 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 |