CN114448867B - Route visualization method, device, equipment and storage medium - Google Patents

Route visualization method, device, equipment and storage medium Download PDF

Info

Publication number
CN114448867B
CN114448867B CN202210169143.XA CN202210169143A CN114448867B CN 114448867 B CN114448867 B CN 114448867B CN 202210169143 A CN202210169143 A CN 202210169143A CN 114448867 B CN114448867 B CN 114448867B
Authority
CN
China
Prior art keywords
node
information
instance
called party
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210169143.XA
Other languages
Chinese (zh)
Other versions
CN114448867A (en
Inventor
李婷玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202210169143.XA priority Critical patent/CN114448867B/en
Publication of CN114448867A publication Critical patent/CN114448867A/en
Application granted granted Critical
Publication of CN114448867B publication Critical patent/CN114448867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing 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 route visualization method, device, equipment and storage medium. According to the technical scheme provided by the embodiment of the application, the position information, the called party information and the calling parameters provided by the test end are acquired, the called party instance list is acquired according to the called party information, the called target instance node is determined from the called party instance list based on the calling parameters, the node detection information is sent to the target instance node based on the position information, after the node feedback information fed back by the target instance node is received, the detection result is sent to the test end, the test end displays the detection result, 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 recovery strategy is reduced, and service personnel intuitively grasp the real-time effect of each routing strategy.

Description

Route visualization method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a route visualization method, a device, equipment and a storage medium.
Background
For services with wide user distribution, services generally adopt distributed deployment of multiple areas and multiple machine rooms based on index consideration of low time delay, high availability and the like. When called, the service will generally select an appropriate routing policy in combination with its own scenario. To avoid duplication of traffic layers, the underlying framework tends to provide multiple standardized alternative routing policies in the large-room-instance dimensions. For example, a large area dimension provides a default to a large area, a machine room dimension provides a priority to a machine room, a consistency hash to select a machine room, and so on, and an instance dimension provides a load balancing routing policy of polling, consistency hash, and so on.
However, as the routing policies are continuously increased, the effects of the various routing policies in the actual use situations are not the same, so that the service user has difficulty in grasping the actual effect of the selected routing policy in the actual environment.
Disclosure of Invention
The embodiment of the application provides a route visualization method, device, equipment and storage medium, which are used for solving the technical problem that a service user in the related technology is difficult to master the actual effect of a selected route strategy in a real environment, and effectively reducing the operation and maintenance cost and complexity by reflecting the actual effect of the route 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 test 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;
transmitting 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 responding to the node feedback information fed back by the target instance node, and feeding back a detection result to the test end so that the test end displays the detection result.
In a second aspect, an embodiment of the present application provides a route visualization device, 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 end;
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 that the target instance node returns node feedback information based on the node detection information;
the result feedback module is used for responding to the node feedback information fed back by the target instance node and feeding back a detection result to the test end so that the test end displays the detection result.
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 is used for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of route visualization as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium storing computer executable instructions that when executed by a computer processor are for performing the route visualization method as described in the first aspect.
According to the embodiment of the application, the position information, the called party information and the calling parameters provided by the testing end are acquired, the called party instance list is acquired according to the called party information, the called target instance node is determined from the called party instance list based on the calling parameters, the node detection information is sent to the target instance node based on the position information, after the node feedback information fed back by the target instance node is received, the detection result is sent to the testing end, the testing end displays the detection result, 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 recovery strategy is reduced, and service personnel intuitively grasp 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 flow chart of another route visualization method provided by an embodiment of the present application;
FIG. 3 is a schematic workflow diagram of a routing visualization system provided in an embodiment of the present application;
FIG. 4 is a schematic workflow diagram of a routing visualization apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a routing visualization device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a routing visualization device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The above-described process may be terminated when its operations are completed, but may have additional steps not included in the drawings. The processes described above may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 shows a flowchart of a route visualization method provided by an embodiment of the present application, where the route visualization method provided by the embodiment of the present application may be performed by a route visualization device, and the route visualization device may be implemented by using hardware and/or software and integrated in a route visualization device (e.g. a server).
The following describes an example of a route visualizing method performed by the route visualizing apparatus. 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 test terminal.
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 terminal itself or may be a location other than the test terminal, and determined according to the location where the 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, the call parameter may be used to indicate a policy of an instance node corresponding to an instance called according to the location information and service selection, where the instance node is distributed in different areas (regions) and machine rooms, and the instance node may provide one or more services.
In one embodiment, the test end may be a wed front end that communicates with the route visualization device based on the HTTP protocol and provides an input configuration interface for location information, called party information, and call parameters on an interactive interface of the web front end. When the calling party is required to simulate the routing effect of the calling party on the corresponding position based on the routing strategy, corresponding position information is determined according to the actual position required to be simulated, called party information is determined according to the service required to be called (the called party provides the corresponding service in the form of an example), corresponding calling parameters are determined according to the routing strategy required to be tested, the determined position information, the called party information and the calling parameters are input on the testing end, and the testing end sends the position information, the called party information and the calling parameters to the routing visualization device so as to send a routing strategy testing request to the routing visualization device.
For example, after receiving the location information, the called party information and the calling parameters provided by the test end, the location of the calling party is simulated, and a corresponding target instance node is selected for detection based on the calling parameters 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.
For example, after receiving the location information, the called party information and the call parameters provided by the test end, determining the service to be called according to the called party information, and obtaining a called party instance list capable of providing the corresponding service. One or more instance nodes that can provide the service that needs to be invoked are recorded in the called party instance list, wherein different instance nodes come from different areas or machine rooms.
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 instance nodes provided by the called party instance list according to a 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.
After determining the target instance node corresponding to the service to be called at this time, the set node detection information is sent to the target instance node based on the position information provided by the test terminal. After receiving the node detection information, the target instance node returns set node feedback information to the route visualization device.
S104: and responding to the node feedback information fed back by the target instance node, and feeding back the detection result to the test end so that the test end displays the detection result.
After receiving node feedback information returned by the target instance node, determining the current position information, the called party information and a detection result corresponding to the calling parameter, and feeding back the detection result to the testing end. After receiving the detection result, the testing end performs visual display on the detection result, for example, displays a target instance node corresponding to the service called at this time on the interactive interface.
In the related art, in order to realize call route visualization among distributed services, a scheme of testing in a simulation environment is generally adopted, a batch of simulation service instances are required to be distributed and deployed by the simulation service, and meanwhile, a real request of a calling party is adopted to test a route strategy, so that unnecessary operation and maintenance cost is increased, and a route effect consistent with an online 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 information of the called party and the calling parameters, the route visualization device executes the route strategy corresponding to the calling parameters to determine a target instance node, and node detection information is sent to the target instance node based on the position information of the node position of the simulation calling party. If the node position corresponding to the position information can be communicated with the target instance node normally or the target instance node can provide service normally, the route visualization device receives node feedback information returned by the target instance node and sends a detection result to the test end. And a developer 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 detection result by the test end.
In one embodiment, when node feedback information returned by the target instance node is not received within a set period of time (for example, an abnormality occurs in a routing policy, an abnormality occurs in communication with the target instance node, or an abnormality occurs in the target instance node), the routing visualization device sends routing abnormality information to the test end according to an abnormality cause, so as to prompt the routing policy to test the abnormality and a corresponding abnormality cause.
According to the method, the device and the system, the position information, the called party information and the calling parameters 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 parameters, the node detection information is sent to the target instance node based on the position information, after the node feedback information fed back by the target instance node is received, the detection result is sent to the testing end, the testing end displays the detection result, 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 recovery strategy is reduced, and service personnel intuitively grasp the real-time effect of each routing strategy.
On the basis of the above embodiment, fig. 2 shows a flowchart of another route visualization method provided in the embodiment of the present application, where the route visualization method is a specific implementation of the 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 test terminal.
In one embodiment, the location information includes the area information and the room information where the caller to be emulated is located (e.g., the caller's area and room are represented in the form of an area-room). The called party information comprises a service name corresponding to the service required to be called by the calling party and a corresponding service system. The invocation parameters include a routing policy for indicating a selection policy for selecting the invoked target instance node from the plurality of instance nodes.
In one embodiment, the routing policy includes one or more of a combination of a large area selection policy, a machine room selection policy, a routing policy and a hash key, where the large area selection policy may be understood as a selection policy of a large area to which the invoked service belongs, the machine room selection policy may be understood as a selection policy of a machine room to which the invoked service belongs, for example, the large area selection policy preferentially selects an instance node of the same large area as or a designated large area as the caller, the machine room selection policy preferentially selects an instance node of the same machine room as or a designated machine room as the caller, the routing policy may be understood as a selection policy of determining a route to a destination node of the caller from a plurality of provided instance nodes, and the hash key is used to identify a preconfigured routing policy, that is, the preconfigured routing policy is recorded by means of the hash key, and the routing policy to be invoked may be quickly determined based on the hash key.
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, the service name and the 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 that a called party instance list is obtained from the service system according to the service name. The called party instance list records instance nodes capable of providing service corresponding to the service names and node information corresponding to the instance nodes, and distribution of the instance nodes capable of providing the service corresponding to the service names can be determined according to the called party instance list.
In one embodiment, the list of called party instances may be provided by the service system, i.e. the service system determines corresponding instance nodes based on the service names provided by the route visualization device and generates the list of corresponding called party instances from these instance nodes. The list of called party instances may also be generated by the route visualization device from instance nodes fed back by the service system based on service names.
The service system records service names corresponding to services provided by a plurality of instance nodes (called parties) and corresponding node information (such as area information, machine room information, port information and the like corresponding to the instance nodes). For example, when an instance node (called party) is on-line 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 (called party) and corresponding node information. Wherein, the service system is configured with a plurality of service systems, and different service systems record service names and node information corresponding to different instance nodes (calling parties). When the service system receives a node distribution information acquisition request sent by the route visualization device, determining a corresponding instance node according to a service name carried by the node distribution information acquisition request, and returning a corresponding instance node or a regulated party instance list to the route 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 parameters.
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 the routing strategy required in the calling parameters under the position information (including the area information and the machine room information) provided by the test end. According to the scheme, the target instance node is selected through the routing strategy determined by the specified position information of the test terminal and the calling parameters, so that the effect that the calling party requests the routing strategy at the geographic position (large area-machine room) indicated by the position information is achieved, and the routing allocation strategy for calling the service by the calling party under the actual use scene can be correctly reflected.
S204: and simulating the calling party node according to the position information, and sending node detection information to the target instance node based on the calling party node so that the target instance node returns node feedback information based on the node detection information.
Illustratively, the caller node is simulated according to the area information and the machine room information in the location information, and node detection information is sent to the target instance node based on the simulated caller node. 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 one embodiment, the node detection 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 service generally includes interface information of the called party, an interface name of a set prefix is agreed to the corresponding instance node of the set service (for example, a common application), and each instance node may directly return the node feedback information after receiving the node detection information of the corresponding interface name.
For example, after determining the target instance node, sending PING information to the target instance node as node detection information based on the interface name of the set prefix, and after receiving the PING information, the target instance node returns a PONG message to the route visualization device as node feedback information.
In the related art, since the caller can be deployed in any large area or machine room, in order to simulate the real situation, all the machine rooms of all the large areas need to be deployed in a simulator in a peer-to-peer manner, resulting in increased operation and maintenance costs and complexity. The scheme simulates the node deployment position based on the position information provided by the test end, achieves the effect of simulating the calling party in any large area or machine room, simulates the geographic position of the calling party in a low-cost mode, and achieves the routing effect of different routing strategies in different node positions.
S205: and responding to the node feedback information fed back by the target instance node, and feeding back the detection result to the test end so that the test end displays the detection result.
In one possible embodiment, the detection result includes a combination of one or more of the 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 the node feedback information returned by the target instance node, the test terminal sends a feedback detection result carrying the large area information, the machine room information and the port information to the test terminal, the test terminal can display the large area information, the machine room information and the port information, a developer can determine the target instance node determined by executing the routing strategy under the currently input position information, the information of the called party and the calling parameters, the actual effect of the routing strategy in the real environment is intuitively known, and a batch of simulation service instances do not need to be distributed and deployed or the real request of the calling party is adopted to test the routing strategy, so that the operation and maintenance cost and complexity are effectively reduced. Alternatively, the PORT information may be a node identification (e.g., IP: PORT) corresponding to the target instance node.
In one possible embodiment, the detection result further includes node information (including a combination of one or more of area information, machine room information, and port information corresponding to each instance node) of each instance node in the called party instance list. Based on this, when the test end displays the detection result, it includes: the testing terminal displays each instance node in a hierarchical mode according to the node information, and marks target instance nodes in a plurality of instance nodes.
The test end receives the detection result, and then displays the instance nodes in a hierarchical mode on the interactive interface according to the node information of the instance nodes (including the target instance node) indicated in the detection result. For example, each instance node is displayed in three levels of the area-machine room-instance.
Further, a target instance node is marked in the instance nodes displayed in the hierarchy, and a call route graph is formed by the instance nodes displayed in the hierarchy and the marked target instance nodes. According to the scheme, the distribution condition of each instance node can be more intuitively displayed through the hierarchical display of each instance node, and the target instance node is highlighted through the labeling of the target instance node, so that the routing strategy result and the distribution position of the target node are more intuitively displayed.
Fig. 3 is a schematic workflow diagram of a route visualization system provided in an embodiment of the present application, where, as shown in fig. 3, the route visualization system provided in this embodiment includes a test end, a route visualization device and a called party, where the test 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) that provide services based on a set communication protocol.
When a developer needs to test the routing policy to determine the routing effect of the routing policy in the real on-line environment, simulation parameters (including location information, called party information and calling parameters) can be input on the test end, and the simulation parameters can be sent to the 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 testing end, and according to the corresponding regional information, the machine room information, the service name, the service system and the route strategy of the calling party required to be simulated, which are indicated by the simulation parameters, the route visualization device selects a target instance node corresponding to the target instance called at the time and sends PING information to the target instance node as node detection information. And after receiving the PING information, the target instance node sends the PONG information to the route visualization device as node feedback information.
And the route visualization device outputs a detection result to the test end after receiving node feedback information returned by the target instance node. The detection result includes the area information, the machine room information and the port information corresponding to the target instance node (which can reflect the called instance corresponding to the current simulation caller), and the node information of each instance node in the called instance list (i.e. the instance distribution corresponding to the current simulation caller). After receiving the detection result, the testing end displays each instance node in a hierarchical manner on the web page according to the hierarchical relationship of the region, the machine room and the instance, marks the target instance node in the instance nodes according to the region information, the machine room information and the port information corresponding to the target instance node, forms a calling route graph, and a developer can intuitively know the route result of the corresponding route strategy under the currently input simulation parameters. The visualization of the real-time calling route is realized with lower operation and maintenance cost, the understanding difficulty of the route disaster recovery strategy is reduced, and the developer can intuitively grasp the real-time effect of each route strategy.
Fig. 4 is a schematic workflow diagram of a routing visualization device provided in an embodiment of the present application, where 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 of configuring a position simulator, a detection transmitter and a service adapter in a routing visualization device, after receiving simulation parameters provided by a test end, inputting position information (area information and machine room information of a calling party) in the simulation parameters into the position simulator, inputting calling parameters (area selection strategy, machine room selection strategy, routing strategy, hash key value and the like) in the simulation parameters into the detection transmitter, and inputting called party information (service name and service system) in the simulation parameters 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 information of the called party, determines an instance node for providing the corresponding service, and acquires a corresponding example list of the called party. In one embodiment, SDKs (software development kits) of different service systems may be integrated in the service adapter, and according to the called party information in the input parameters, the corresponding service system is requested to obtain the distribution information of the called party instance node. In the related art, services of a distributed system may belong to a plurality of service systems, route visualization of the service systems is realized by a plurality of simulators mounted under a single service system, operation and maintenance are complicated, and a cross-service route cannot be simulated.
The detection transmitter requests the position simulator to determine the region and the machine room of the calling party according to the position information, and simulate the geographic position of the calling party based on the region and the machine room of the calling party. Meanwhile, the detection transmitter acquires a 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 called party determined as the target instance node based on the simulated geographic location. And after receiving the PING information, the target instance node sends the PONG information to the route visualization device as node feedback information. According to the scheme, the simulator sends the PING information with transparent protocol to the called party, the visualization of real-time routing is realized, the node position is simulated by the position simulator, the simulation effect on the geographic position of the calling party is realized in a low-cost mode, the simulator deployed in the real environment is utilized, the routing detection is completed according to the simulation information input by the service, the detection result of the target instance node selected at the time is returned, and the effect of the routing strategy in the real online scene is effectively reflected.
According to the method, the device and the system, the position information, the called party information and the calling parameters 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 parameters, the node detection information is sent to the target instance node based on the position information, after the node feedback information fed back by the target instance node is received, the detection result is sent to the testing end, the testing end displays the detection result, 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 recovery strategy is reduced, and service personnel intuitively grasp 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 the services in the whole distributed system is supported, and the multi-service instance query mechanism is integrated, so that the universality is stronger. Meanwhile, through hierarchical display of instance nodes and labeling of target instance nodes, route policy results and distribution positions of the target nodes are displayed more intuitively, and a developer can master the real-time effect of each route policy more intuitively.
Fig. 5 is a schematic structural diagram of a routing visualization device according to an embodiment of the present application. Referring to fig. 5, the route visualization device includes a call response module 51, a node determination module 52, a node detection module 53, and a result feedback module 54.
The call response module 51 is configured to obtain location information, called party information and call parameters provided by the test end; 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 call parameter; the node detection module 53 is 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 the node feedback information fed back by the target instance node, feed back the detection result to the test end, so that the test end displays the detection result.
According to the method, the device and the system, the position information, the called party information and the calling parameters 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 parameters, the node detection information is sent to the target instance node based on the position information, after the node feedback information fed back by the target instance node is received, the detection result is sent to the testing end, the testing end displays the detection result, 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 recovery strategy is reduced, and service personnel intuitively grasp the real-time effect of each routing strategy.
The embodiment of the application also provides a route visualization device which can integrate the route visualization device provided by the embodiment of the application. Fig. 6 is a schematic structural diagram of a routing 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 by the above embodiments. The route visualization device, the route visualization equipment and the route visualization computer provided by the embodiment can be used for executing the route visualization method provided by any embodiment, and have corresponding functions and beneficial effects.
The present embodiments also provide a storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform a route visualization method as provided by the above embodiments. Of course, the storage medium storing the 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 the relevant operations in the route visualization method provided in any embodiment of the present application. The route visualization device, the device and the storage medium provided in the foregoing embodiments may perform the route visualization method provided in any embodiment of the present application, and technical details not described in detail in the foregoing embodiments may be referred to the route visualization method provided in any embodiment of the present application.

Claims (11)

1. A method of route visualization, comprising:
acquiring position information, called party information and calling parameters provided by a test end, wherein the position information is used for reflecting a position required to be subjected to simulation test, the called party information is used for reflecting a service required to be provided by a called party, and the calling parameters are used for indicating a strategy of an instance node corresponding to an instance selected to be called according to the position information and the service, wherein the instance node is distributed in different areas and machine rooms, and the instance node can provide one or more services;
determining a service to be called according to the called party information, acquiring a called party instance list capable of providing the service, and selecting a target instance node corresponding to the service from instance nodes provided by the called party instance list according to a selection strategy of instance nodes indicated by the calling parameters, wherein the called party instance list records one or more instance nodes capable of providing the service to be called;
transmitting 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 responding to the node feedback information fed back by the target instance node, and feeding back a detection result to the test end 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, the determining a service to be called according to the called party information, and obtaining a called party instance list that can provide the service, 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 call parameter includes a routing policy, and the selecting, according to a selection policy of an instance node indicated by the call parameter, a target instance node corresponding to the service from instance nodes provided by the called party instance list includes:
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. A route visualization method as recited in claim 3, wherein the routing policies comprise a combination of one or more of a large area 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 of claim 1, wherein the probe result comprises a combination of one or more of area information, room information, and port information of the target instance node.
7. The route visualization method of claim 6, wherein the probe result further comprises node information for each instance node in the list of tuned instances.
8. The route visualization method according to claim 7, wherein the testing terminal displays the detection result, including:
and the testing end displays each instance node in a hierarchical mode according to the node information, and marks the target instance node in a plurality of instance nodes.
9. The 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 position information, called party information and calling parameters provided by a testing end, wherein the position information is used for reflecting a position required to be subjected to simulation test, the called party information is used for reflecting a service required to be provided by a called party, and the calling parameters are used for indicating a strategy of an instance node corresponding to an instance called according to the position information and the service selection, wherein the instance node is distributed in different areas and machine rooms, and the instance node can provide one or more services;
the node determining module is used for determining the service to be called according to the called party information, acquiring a called party instance list capable of providing the service, and selecting a target instance node corresponding to the service from instance nodes provided by the called party instance list according to a selection strategy of the instance nodes indicated by the calling parameters, wherein the called party instance list records one or more instance nodes capable of providing the service to be called;
the node detection module is used for 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;
the result feedback module is used for responding to the node feedback information fed back by the target instance node and feeding back a detection result to the test end so that the test end displays the detection result.
10. A route visualization device, comprising: a memory and one or more processors;
the memory is used for storing one or more programs;
the 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 which, when executed by a computer processor, are for performing the route visualization method of any of claims 1-8.
CN202210169143.XA 2022-02-23 2022-02-23 Route visualization method, device, equipment and storage medium Active CN114448867B (en)

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 CN114448867A (en) 2022-05-06
CN114448867B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN117749615B (en) * 2024-02-19 2024-06-07 成都九洲电子信息系统股份有限公司 Method, system and device for constructing mining management and control communication link based on object combination

Citations (12)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8508719B2 (en) * 2011-11-09 2013-08-13 Cheng Uei Precision Industry Co., Ltd. Method for measuring the heights of components based on laser ranging

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
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)

* Cited by examiner, † Cited by third party
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.2015,全文. *
基于信任域的环形网络介质访问时延控制仿真;常国锋;;计算机仿真(第03期);全文 *

Also Published As

Publication number Publication date
CN114448867A (en) 2022-05-06

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
CN110290189A (en) A kind of container cluster management method, apparatus and system
CN111262759B (en) Internet of things platform testing method, device, equipment and storage medium
CN106034051B (en) Network monitoring data processing method and network monitoring data processing unit
CN111163150A (en) Distributed calling tracking system
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
CN111858083B (en) Remote service calling method and device, electronic equipment and storage medium
CN114791846A (en) Method for realizing observability aiming at cloud native chaos engineering experiment
CN110018956A (en) Using adjustment method and relevant apparatus
US20230044850A1 (en) Tracing and exposing data used for generating analytics
CN112367684A (en) Flow control method, flow control device, storage medium and computer equipment
CN114745295A (en) Data acquisition method, device, equipment and readable storage medium
US9178952B2 (en) Systems and methods for service assurance using virtualized federated presence infrastructure
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN110380936A (en) Test method and device
CN109547430A (en) A kind of exploitation service gateway system and exploitation gateway
CN104639351A (en) Processing system and method for constructing network structure deployment diagram
CN111526028B (en) Data processing method, device and equipment
KR20040051876A (en) Web service tester and method of testing web service
CN111669290B (en) Network element management method, management server and storage medium
CN112084247B (en) Method and device for expanding application program service
CN110555201B (en) Knowledge document generation method, device, electronic equipment and storage medium
CN114327823A (en) Method, system, terminal and storage medium for calling resources of micro-service cluster
JP6614624B1 (en) Communication analysis device, communication analysis system, communication analysis method, and communication analysis program

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