Mirror image-based topological node batch arrangement method and system in network target range

Through the mirror-based topological node batch orchestration method in the network shooting range, the problem of batch generation and configuration of nodes with the same mirror in the prior art is solved, and the efficiency of rapidly generating and configuring nodes is improved and user experience improvement is achieved.

CN119995967APending Publication Date: 2025-05-13BEIJING SAINING NETWORK SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510108317.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing network shooting range topology orchestration system lacks a mirror-based node batch processing method, and cannot batch generation and configuration of nodes with the same mirror, resulting in inefficiency and error-prone problems.

Method used

Through a mirror-based topological node batch orchestration method in a network shooting range, it includes obtaining the mirror type of the target node, querying and displaying all target nodes with the mirror type, providing an orchestration table for node queue orchestration and layout configuration, and finally generating and drawing an array of node drawing data.

Benefits of technology

It realizes rapid generation and configuration of multiple nodes with the same mirror, improves orchestration efficiency and user experience, and avoids repeated labor and configuration errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119995967A_ABST
    Figure CN119995967A_ABST
Patent Text Reader

Abstract

The invention discloses a mirror image-based topological node batch arrangement method and system in a network target range, and the method comprises the steps: obtaining a mirror image type of a current target node when a user drags the target node into a canvas, querying and displaying all target nodes with the mirror image type, and providing an adding button, therefore, the user can add a new target node; adding the current target node and a new target node added by the user into a node queue, and providing a layout table for the user to display and modify the basic attributes and the number of the nodes; synchronously updating the configuration data into the node data array; obtaining a layout type and a reference coordinate set by a user, and storing the layout type and the reference coordinate into a layout variable; generating a node drawing data array according to the node data array and the layout variable; and traversing the node drawing data array, and drawing the target nodes on the canvas one by one. According to the invention, a plurality of nodes with the same mirror image can be quickly generated and configured according to requirements, and the arrangement efficiency and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and system for batch arrangement of topological nodes based on mirroring in a network target range, belonging to the technical field of network security. Background Art

[0002] A cyber range is a technology or product that simulates and reproduces the network architecture, system equipment, operating status and operating environment of business processes in real cyberspace, as well as the behaviors and data interactions in this environment based on parallel simulation technology. It mainly uses virtualization, software-defined networking, and the combination of virtual and real technologies to simulate networks, equipment, traffic, attacks, etc., and build a simulation experiment platform.

[0003] At the same time, with the continuous development of network range simulation technology, the need for rapid construction of network topology is also growing. Usually, when creating a network topology, it is often necessary to build and verify targets with the same image but different configurations. The existing operation method is to configure each target separately, which is inefficient and prone to errors. Summary of the invention

[0004] Purpose of the invention: In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method and system for batch orchestration of topological nodes based on mirroring in a network target range, which can quickly generate and configure multiple nodes with the same mirroring according to needs, and can customize the layout of nodes to improve orchestration efficiency and user experience.

[0005] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution:

[0006] A method for batch orchestration of topological nodes based on mirroring in a network range comprises the following steps:

[0007] When the user drags the target node to the canvas, the mirror type of the current target node is obtained;

[0008] According to the image type, query and display all target nodes with the image type, and provide an add button so that the user can add a new target node;

[0009] Add the current target node and the new target node added by the user to the node queue, and provide the arrangement table to the user to display and modify the basic attributes and node quantity of the target node in the node queue; synchronously update the configuration data of the arrangement table to the node data array;

[0010] Get the layout type and reference coordinates set by the user and store them in the layout variables;

[0011] Generate a node drawing data array according to the node data array and the layout variables, including basic data, a unique identifier and a coordinate position of each target node;

[0012] Traverse the node drawing data array and draw the target nodes one by one on the canvas.

[0013] Furthermore, the coordinate position of the target node in the node drawing data array is calculated based on the total number of nodes, layout type and reference coordinates.

[0014] Furthermore, the arrangement table supports users to sort different target nodes.

[0015] Furthermore, a node drawing data array is generated according to the node data array and the layout variables, including: traversing the node data array, for each item in the array, performing a nested traversal according to the number of nodes of the item as the number of loops, generating a unique identifier for each item during the nested traversal, and packaging the basic data, unique identifier and node coordinate position of the item into a new object and adding it to the node drawing data array; wherein the node coordinate position is generated by a position generation function according to the position sequence number of the current node in all nodes.

[0016] Furthermore, the calculation method of the position generation function includes: obtaining the layout type and the reference coordinates in the layout variables; and calculating the position of the node using the calculation method corresponding to the layout type according to the position sequence number, the layout type and the reference coordinates.

[0017] Furthermore, the layout types include ring layout, grid layout and random layout.

[0018] A mirror-based topology node batch orchestration system in a network range, comprising:

[0019] The monitoring module is used to obtain the mirror type of the current target node when the user drags the target node to the canvas;

[0020] The node queue arrangement module is used to query and display all target nodes with the image type according to the image type, and provide an add button so that the user can add a new target node; add the current target node and the new target node added by the user to the node queue, and provide an arrangement table to the user to display and modify the basic attributes and node quantity of the target nodes in the node queue; synchronize and update the configuration data of the arrangement table to the node data array;

[0021] The layout configuration module is used to obtain the layout type and reference coordinates set by the user and store them in the layout variables;

[0022] And a drawing module, which is used to generate a node drawing data array according to the node data array and the layout variables, including basic data, unique identification and coordinate position of each target node; traverse the node drawing data array, and draw the target nodes one by one on the canvas.

[0023] A computer system comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of batch arrangement of topological nodes based on mirroring in a network range are implemented.

[0024] A computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the steps of batch orchestration of topological nodes based on mirroring in a network range.

[0025] Beneficial effects: Compared with the prior art, the present invention has the following advantages: 1. The present invention can significantly reduce duplication of work and improve the efficiency of editing by batch creating and configuring targets with the same image into the canvas. 2. The present invention can customize the layout of the newly created target nodes. Through a unified layout method, the configured topology structure is clearer and the user experience is better. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention.

[0027] Figure 2 This is an example diagram of the node queue arrangement interface in an embodiment of the present invention.

[0028] Figure 3 This is an example diagram of a node layout configuration interface in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments.

[0030] In view of the problem that the existing network range topology orchestration system lacks a node batch processing method based on mirroring and is unable to batch generate and configure nodes with the same mirror, an embodiment of the present invention discloses a method for batch orchestration of topology nodes based on mirroring in a network range. In the process of network topology orchestration, multiple nodes with different attribute configurations can be generated in batches based on mirroring and the newly created nodes can be flexibly customized in layout.

[0031] like Figure 1 As shown, the method for batch orchestration of topological nodes based on mirroring in a network target range described in this embodiment mainly includes the following steps:

[0032] N1: The user drags the target node into the canvas, listens to the drag event on the canvas, and records the image type of the current node (each target has a unique image, and all target node types can be displayed in a list on the left side of the canvas for users to choose. When the user is detected dragging the target node into the canvas, the following node queue arrangement steps are executed immediately).

[0033] N2: Node queue arrangement: Add a new array Nodes to store the node queue data created later. Query all targets with the image type recorded by N1 (including the targets dragged by N1), and display the queried target data in a table, such as Figure 2 As shown, the operation column of the table has an "Add" button, which can be clicked to add the target to the node queue (can be added repeatedly), and the added node queue data is synchronously displayed in another arrangement table. In the arrangement table, basic properties (such as name, memory size, etc.) of each row of target items can be modified, node quantity configuration, deletion, etc., and drag-and-drop sorting of table rows is supported. Finally, the configuration data of the arrangement table is synchronously updated to the array Nodes.

[0034] N3: Configure the overall layout rules of the nodes: Figure 3 , set the layout type (for example: ring layout, grid layout, random layout, etc.) and the base coordinates of the layout (the layout will be performed with this coordinate as the origin), and store these configuration data in the variable Layout.

[0035] N4: Add a new array DrawingNodes to store drawing data. Create complete node drawing data based on the array Nodes generated by N2 and the variable Layout configured by N3. The drawing data includes basic data such as the node name and the corresponding coordinate position in the canvas. The operation of creating complete drawing data is as follows:

[0036] Traverse Nodes and perform the following operations on each item: perform nested traversal based on the number of nodes of the item (i.e. the number of nodes configured for each target in the arrangement table) as the number of loops, generate a unique id value for each item during the nested traversal, and package the basic data, id value and node coordinate position of the item into a new object and push it to the array DrawingNodes. The node coordinate position is calculated by the function calculateCoordinate(index), and index is passed in as the position number of the current node among all nodes. After traversal, the DrawingNodes array has all the node data to be added.

[0037] The processing flow of calculateCoordinate(index) function is as follows:

[0038] Take out the layout type and layout reference coordinates in the layout variable L; calculate the position of the node using the calculation method corresponding to the current layout type according to the index value, layout type and layout reference coordinates. For example, for a ring layout, the reference coordinate value can be used as the coordinate of the first node in the array; calculate the arc value between two nodes according to the total number of nodes; calculate the coordinate value of the current node according to the index value, the arc value between nodes and the trigonometric function algorithm formula.

[0039] N5: Traverse the array DrawingNodes assembled in step N4, execute the method of drawing nodes on the canvas, and draw the nodes one by one on the canvas.

[0040] The embodiment of the present invention also discloses a topological node batch arrangement system based on mirroring in a network range, including: a monitoring module, which is used to obtain the mirroring type of the current target node when the user drags the target node to the canvas; a node queue arrangement module, which is used to query and display all target nodes with the mirroring type according to the mirroring type, and provide an add button so that the user can add a new target node; add the current target node and the new target node added by the user to the node queue, and provide an arrangement table to the user to display and modify the basic attributes and node quantity of the target node in the node queue; synchronize and update the configuration data of the arrangement table to the node data array; a layout configuration module, which is used to obtain the layout type and reference coordinates set by the user, and store them in the layout variables; and a drawing module, which is used to generate a node drawing data array according to the node data array and the layout variables, including the basic data, unique identifier and coordinate position of each target node; traverse the node drawing data array, and draw the target nodes one by one on the canvas. The specific implementation details of each module refer to the above method embodiment, which will not be repeated.

[0041] An embodiment of the present invention also discloses a computer system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of batch orchestration of topological nodes based on mirroring in a network target range are implemented.

[0042] An embodiment of the present invention also discloses a computer program product, including a computer program, which, when executed by a processor, implements the steps of batch orchestration of topological nodes based on mirroring in a network range.

Claims

1. A method for batch arrangement of topological nodes based on mirroring in a network range, characterized in that: The following steps are involved: When the user drags the target node to the canvas, the mirror type of the current target node is obtained; According to the image type, query and display all target nodes with the image type, and provide an add button so that the user can add a new target node; Add the current target node and the new target node added by the user to the node queue, and provide the arrangement table to the user to display and modify the basic attributes and node quantity of the target node in the node queue; synchronously update the configuration data of the arrangement table to the node data array; Get the layout type and reference coordinates set by the user and store them in the layout variables; Generate a node drawing data array according to the node data array and the layout variables, including basic data, a unique identifier and a coordinate position of each target node; Traverse the node drawing data array and draw the target nodes one by one on the canvas.

2. According to a method for batch arrangement of topological nodes based on mirroring in a network range according to claim 1, it is characterized in that: The coordinate position of the target node in the node drawing data array is calculated based on the total number of nodes, layout type and reference coordinates.

3. According to a method for batch arrangement of topological nodes based on mirroring in a network range according to claim 1, it is characterized in that: The arrangement table supports the user to sort different target nodes.

4. According to a method for batch arrangement of topological nodes based on mirroring in a network range according to claim 1, it is characterized in that: Generate a node drawing data array according to the node data array and the layout variables, including: traversing the node data array, for each item in the array, performing nested traversal according to the number of nodes of the item as the number of loops, generating a unique identifier for each item during the nested traversal, and packaging the basic data, unique identifier and node coordinate position of the item into a new object and adding it to the node drawing data array; wherein the node coordinate position is generated by a position generation function according to the position sequence number of the current node in all nodes.

5. According to claim 4, a method for batch arrangement of topological nodes based on mirroring in a network range is characterized in that: The calculation method of the position generation function includes: obtaining the layout type and the reference coordinates in the layout variables; and calculating the position of the node using the calculation method corresponding to the layout type according to the position sequence number, the layout type and the reference coordinates.

6. According to a method for batch arrangement of topological nodes based on mirroring in a network range in claim 1, it is characterized in that: The layout types include ring layout, grid layout and random layout.

7. A mirror-based topology node batch orchestration system in a network range, characterized in that: include: The monitoring module is used to obtain the mirror type of the current target node when the user drags the target node to the canvas; The node queue arrangement module is used to query and display all target nodes with the image type according to the image type, and provide an add button so that the user can add a new target node; add the current target node and the new target node added by the user to the node queue, and provide an arrangement table to the user to display and modify the basic attributes and node quantity of the target nodes in the node queue; synchronize and update the configuration data of the arrangement table to the node data array; The layout configuration module is used to obtain the layout type and reference coordinates set by the user and store them in the layout variables; and a drawing module, for generating a node drawing data array according to the node data array and the layout variables, including basic data, a unique identifier and a coordinate position of each target node; Traverse the node drawing data array and draw the target nodes one by one on the canvas.

8. According to the mirror-based topology node batch arrangement system in a network range according to claim 7, it is characterized in that: Generate a node drawing data array according to the node data array and the layout variables, including: traversing the node data array, for each item in the array, performing nested traversal according to the number of nodes of the item as the number of loops, generating a unique identifier for each item during the nested traversal, and packaging the basic data, unique identifier and node coordinate position of the item into a new object and adding it to the node drawing data array; wherein the node coordinate position is generated by a position generation function according to the position sequence number of the current node in all nodes.

9. A computer system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by a processor, the steps of batch orchestration of topological nodes based on mirroring in a network range according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of batch orchestration of topological nodes based on mirroring in a network range according to any one of claims 1 to 6 are implemented.