CN114629800B - Visual generation method, device, terminal and storage medium for industrial control network target range - Google Patents

Visual generation method, device, terminal and storage medium for industrial control network target range Download PDF

Info

Publication number
CN114629800B
CN114629800B CN202210122571.7A CN202210122571A CN114629800B CN 114629800 B CN114629800 B CN 114629800B CN 202210122571 A CN202210122571 A CN 202210122571A CN 114629800 B CN114629800 B CN 114629800B
Authority
CN
China
Prior art keywords
target
component
control network
industrial control
connection relation
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
CN202210122571.7A
Other languages
Chinese (zh)
Other versions
CN114629800A (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.)
Fengtai Technology Beijing Co ltd
Original Assignee
Fengtai Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fengtai Technology Beijing Co ltd filed Critical Fengtai Technology Beijing Co ltd
Priority to CN202210122571.7A priority Critical patent/CN114629800B/en
Publication of CN114629800A publication Critical patent/CN114629800A/en
Application granted granted Critical
Publication of CN114629800B publication Critical patent/CN114629800B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application is applicable to the technical field of network information, and provides a visual generation method, device, terminal and storage medium of an industrial control network target range, wherein the method comprises the following steps: acquiring operation input of a user to a visual edited industrial control network component; responding to the operation input, and constructing a component topological structure comprising a target component selected by the operation input and a wiring harness connection relation between the target component; calling a corresponding asset virtualization interface according to attribute information of each target assembly in the assembly topological structure to generate a virtualized industrial control network asset; according to the wiring harness connection relation between target components in the component topological structure, calling a network connection relation virtualization interface corresponding to each wiring harness connection relation, and constructing network connection relation between virtualized control network assets; and obtaining the industrial control network target range. The scheme can realize personalized configuration of the industrial control network target range and meet the actual demands of users.

Description

Visual generation method, device, terminal and storage medium for industrial control network target range
Technical Field
The application belongs to the technical field of network information, and particularly relates to a visual generation method, device, terminal and storage medium of an industrial control network target range.
Background
The network target range is a technology or product for simulating and reproducing the running states and running environments of network architecture, system equipment and business processes in a real network space based on a virtualization technology so as to more effectively realize the behaviors of learning, researching, checking, competing, exercising and the like related to network safety, thereby improving the network safety countermeasure level of personnel and institutions.
With the explosion of internet scale, network security problems are also coming to the end, and in order to cope with these problems, the coping ability of practitioners to cope with sudden security events is improved by building a network target range. However, because the network target range is longer in construction time and higher in construction cost, the commonly used network target range is usually a target range model prepared by a developer, and the process cannot be configured individually according to actual requirements, so that the error correction cost is higher and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a visual generation method, device, terminal and storage medium of an industrial control network target range, which are used for solving the problems that the network target range commonly used in the prior art is a target range model prepared by a developer, personalized configuration cannot be carried out according to actual requirements, error correction cost is high and user experience is poor.
A first aspect of an embodiment of the present application provides a method for generating a visualization of an industrial control network target range, including:
acquiring operation input of a user on visual edited industrial control network components, wherein each industrial control network component corresponds to one industrial control network asset;
responding to the operation input, and constructing a component topological structure comprising a target component selected by the operation input and a wiring harness connection relation between the target component;
calling a corresponding asset virtualization interface according to the attribute information of each target assembly in the assembly topological structure to generate a virtualization control network asset;
according to the wire harness connection relations among the target components in the component topological structure, a network connection relation virtualization interface corresponding to each wire harness connection relation is called, and network connection relations among the virtualized control network assets are constructed;
and obtaining the industrial control network target range containing the virtual industrial control network assets and the network connection relations.
A second aspect of the embodiments of the present application provides a visualization generating device for an industrial control network target range, including:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the operation input of a user on visual edited industrial control network components, and each industrial control network component corresponds to one industrial control network asset;
the construction module is used for responding to the operation input and constructing a component topological structure comprising a target component selected by the operation input and a wire harness connection relation between the target component;
the generation module is used for calling a corresponding asset virtualization interface according to the attribute information of each target assembly in the assembly topological structure to generate a virtualized control network asset; according to the wire harness connection relations among the target components in the component topological structure, a network connection relation virtualization interface corresponding to each wire harness connection relation is called, and network connection relations among the virtualized control network assets are constructed; obtaining the industrial control network target range containing the virtualized industrial control network assets and the network connection relations
A third aspect of the embodiments of the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
A fifth aspect of the present application provides a computer program product for causing a terminal to carry out the steps of the method of the first aspect described above when the computer program product is run on the terminal.
From the above, in the embodiment of the present application, in a visual editing manner, a user realizes the customization of a network target range logic structure through operation input, so as to generate a network topology and a simulated industrial control network target range matched with the user-defined network target range logic structure according to the user-defined network target range logic structure in a subsequent process, thereby realizing the personalized configuration of the industrial control network target range, meeting the actual requirements of the user, and improving the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart one of a method for generating a visualization of an industrial control network target range according to an embodiment of the present application;
fig. 2 is a flowchart two of a visual generation method of an industrial control network shooting range provided in an embodiment of the present application;
fig. 3 is a block diagram of a visual generating device of an industrial control network shooting range provided in an embodiment of the present application;
fig. 4 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad). It should also be appreciated that in some embodiments, the device is not a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touch pad).
In the following discussion, a terminal including a display and a touch sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, website creation applications, disk burning applications, spreadsheet applications, gaming applications, telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications, and/or digital video player applications.
Various applications that may be executed on the terminal may use at least one common physical user interface device such as a touch sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within the corresponding applications. In this way, the common physical architecture (e.g., touch-sensitive surface) of the terminal may support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that the sequence number of each step in this embodiment does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a flowchart one of a method for generating a visualization of an industrial control network target range according to an embodiment of the present application. As shown in fig. 1, a visual generation method of an industrial control network target range includes the following steps:
step 101, obtaining operation input of a user on the visual edited industrial control network component.
In particular, the implementation of the visual editing function may be by means of a visual editor (VisualEditor, VE). The visual editor is used for adding elements such as characters, pictures and videos at the front end of the user, and can support a custom module and a style, so that the 'what you see is what you get' is realized, and the requirements of the user on personalized configuration and adjustment according to actual requirements are met.
The industrial control network component is an operable control provided in the visual editing page. Wherein each industrial control network component corresponds to an industrial control network asset.
Specifically, the industrial control network asset is, for example, an analog router, an analog switch, a virtual machine configured with different services or functions, and the like.
The operation input of the user is, for example, an icon drag operation on the industrial control network component, a click operation on a selection key, a selection operation triggered by sound or a preset gesture, and the like.
And 102, responding to the operation input, and constructing a component topological structure comprising the target component selected by the operation input and the wiring harness connection relation between the target component.
The operation input comprises selection of target components and configuration of connection relations among the target components.
The process of constructing the component topology may be implemented using canvas technology. canvas is an HTML element that can use scripts (typically JavaScript) to draw graphics. For example, it can be used to draw charts, make photo compositions, or animate. And further realizing the construction processing process of the component topology structure corresponding to the target component selected by the operation input and the wiring harness connection relation between the target components.
And step 103, calling a corresponding asset virtualization interface according to the attribute information of each target component in the component topology structure, and generating a virtualized industrial control network asset.
The attribute information is, for example, a location of the target component in the component topology, a component characteristic, an industrial control network asset attribute corresponding to the target component, and the like.
Each target component corresponds to a corresponding asset virtualization interface that enables virtualized generation of its corresponding industrial control network asset based on the target component.
For example, if the industrial control network asset corresponding to the target component is a simulated router, based on the attribute information of the target component, correct matching of an asset virtualization interface is performed to realize calling of the asset virtualization interface, at this time, the asset virtualization interface is specifically a creation interface of the simulated router, the interface corresponds to a creation code of the simulated router, and when the asset virtualization interface is called, execution of the creation code is triggered to generate the virtual industrial control network asset corresponding to the target component.
And 104, calling a network connection relation virtualization interface corresponding to each line connection relation according to the line connection relation among the target components in the component topological structure, and constructing the network connection relation among the virtualized control network assets.
When the corresponding network connection relation virtualization interface is called based on the wire harness connection relation among the target components, the attribute information of two target components connected by the wire harness connection relation together with the information such as the reason why the wire harness connection relation is connected and the like are required to be combined to determine which network connection relation virtualization interface corresponding to the wire harness connection relation among the current two target components.
Specifically, for example, the wire harness connection relationship includes information that the connection relationship is gateway connection or network bridge connection, a port to which the wire harness connection relationship is connected, and the like, the information is correctly matched with a network connection relationship virtualization interface matched with the current wire harness connection relationship, and the network connection relationship between the virtualized control network assets is constructed by calling the network connection relationship virtualization interface and utilizing the information of the connection relationship, the access port and the like.
Step 105, obtaining the industrial control network target range containing the virtualized industrial control network assets and the network connection relations.
Finally, the industrial control network target range is obtained, and visual generation of the industrial control network target range is realized.
Further, in an alternative embodiment, after constructing the component topology including the target component selected by the operation input and the wire harness connection relationship between the target components in response to the operation input, the method further includes:
acquiring attribute information of each target component and configuration information of the target component in a component topological structure;
and storing the attribute information and the configuration information locally.
Here, the related information of the target component needs to be locally stored, so that the convenience of data calling in the visual generation process of the industrial control network target range is ensured, and the robustness in the use of the data is improved.
Specifically, when the attribute information and the configuration information are stored locally, the acquired attribute information of the target component and the configuration information of the target component in the component topology structure can be firstly subjected to data validity verification, and after the verification is passed, the attribute information of the target component and the configuration information of the target component in the component topology structure are stored in a target component data table by matching the attribute information of the target component and the configuration information of the target component in a corresponding target component data table from a database according to the attribute information of the current target component.
The configuration information specifically comprises information such as a wiring harness connection relation between the position of the target component in the component topological structure and other target components, a custom name obtained by customizing the target component, an icon size, an icon shape, an icon color and the like.
The determination of the configuration information needs to be determined according to the actual configuration operation of the target component by the user, which is not limited to this.
Further, as an optional implementation manner, after storing the attribute information and the configuration information locally, the method further includes:
acquiring a page refreshing instruction triggered by a user in a visual editing page; responding to a page refreshing instruction, and locally retrieving attribute information and configuration information; based on the attribute information and the configuration information, outputting the component topological structure to the visual editing page.
In the process, the response to the page refreshing instruction triggered in the visual editing page is realized through the convenient and fast call to the local storage data, so that a convenient and timely page refreshing function is provided for a user, and the user experience is improved.
In the embodiment of the application, the user can customize the network target range logic structure through operation input in a visual editing mode, so that the network topology and the simulated industrial control network target range matched with the user can be generated according to the user-defined network target range logic structure in the subsequent process, personalized configuration of the industrial control network target range is realized, actual demands of the user are met, and user experience is improved.
Different implementation manners of the visual generation method of the industrial control network shooting range are also provided in the embodiment of the application.
Referring to fig. 2, fig. 2 is a flowchart two of a method for generating a visualization of an industrial control network target range according to an embodiment of the present application. As shown in fig. 2, a visual generation method of an industrial control network target range includes the following steps:
step 201, obtaining operation input of a user on the visual edited industrial control network component.
Wherein each industrial control network component corresponds to an industrial control network asset.
The implementation process of this step is the same as that of step 101 in the foregoing embodiment, and will not be described here again.
The operation input comprises a drag operation on a target component in the industrial control network component list and a configuration operation on a wire harness connection relation between the target components.
Step 202, arranging the target component in the canvas based on the drag operation.
This step provides the user with the ability to drag the target component into the canvas in a drag-and-drop fashion for component topology configuration.
Wherein, in the implementation process, the target component is arranged in the canvas based on the drag operation, which comprises the following steps:
setting a canvas corresponding to the initial size area; acquiring a target component and a target placement point coordinate selected by a drag operation; and arranging the target component in the canvas according to the position relation between the coordinates of the target placement points and the initial size area of the canvas.
Here, the size of the canvas has an automatic adjustment function.
The target placement point coordinates selected by the dragging operation are specifically position point coordinates when the user mouse stops moving in the process of dragging the target component and the mouse releases the dragged target component.
In the implementation process, the arranging the target component in the canvas according to the position relation between the coordinates of the target placement point and the initial size area of the canvas comprises the following steps:
when the coordinates of the target placement points are outside the initial size area, expanding the initial size area to a target size area containing the target placement points; the target components are arranged in a canvas corresponding to the target size area.
The position of the target placement point coordinate is compared with that of the initial size region, and the size of the canvas is automatically adjusted based on the comparison result, so that the target component is arranged in the canvas, and the construction of the component topological structure is conveniently realized subsequently.
And in contrast, when the target placement point coordinates are within the initial size region, the target component is directly placed in the canvas corresponding to the initial size region at the position corresponding to the target placement point coordinates.
In the processing process, a canvas with automatically adjustable size can be defined through canvas technology, for example, an initial size area is set to 800 pixels by 1200 pixels, if the coordinates of the target placement points corresponding to the target components exceed the boundary of the canvas, the canvas can automatically expand the size of the canvas, the coordinates of the target placement points corresponding to the target components are ensured to be in the canvas with expanded size, and convenience and intelligence in visual operation of a user are improved.
And 203, constructing a connecting line between target components arranged in the canvas based on the configuration operation to obtain a component topological structure.
The components are connected in a point-pull mode, so that the configuration of the connection relation between the target components in the component topological structure is realized.
Step 204, calling a corresponding asset virtualization interface according to the attribute information of each target component in the component topology structure, and generating a virtualized industrial control network asset.
The implementation process of this step is the same as that of step 103 in the foregoing embodiment, and will not be described here again.
And step 205, calling a network connection relation virtualization interface corresponding to each line connection relation according to the line connection relation among target components in the component topological structure, and constructing the network connection relation among virtualized control network assets.
The implementation process of this step is the same as that of step 104 in the foregoing embodiment, and will not be described here again.
Step 206, obtaining the industrial control network target range containing the virtualized industrial control network assets and the network connection relations.
The implementation procedure of this step is the same as that of step 105 in the foregoing embodiment, and will not be described here again.
In the embodiment of the application, the canvas capable of automatically adjusting the size is provided in a visual editing mode, so that a user can customize the network target range logic structure through operation input, network topology matched with the network target range logic structure and an artificial industrial control network target range can be generated according to the user-defined network target range logic structure in a subsequent process, personalized configuration of the industrial control network target range is realized, actual demands of the user are met, and user experience is improved.
Referring to fig. 3, fig. 3 is a block diagram of a visualization generating device for an industrial control network shooting range provided in an embodiment of the present application, and for convenience of explanation, only a portion relevant to the embodiment of the present application is shown.
The visualization generating device 300 for industrial control network shooting range includes:
an obtaining module 301, configured to obtain an operation input of a user to a visually edited industrial control network component, where each of the industrial control network components corresponds to an industrial control network asset;
a construction module 302, configured to construct a component topology structure including a target component selected by the operation input and a harness connection relationship between the target component in response to the operation input;
a generating module 303, configured to invoke a corresponding asset virtualization interface according to attribute information of each target component in the component topology structure, to generate a virtualized control network asset; according to the wire harness connection relations among the target components in the component topological structure, a network connection relation virtualization interface corresponding to each wire harness connection relation is called, and network connection relations among the virtualized control network assets are constructed; and obtaining the industrial control network target range containing the virtual industrial control network assets and the network connection relations.
The operation input comprises a drag operation on the target components in the industrial control network component list and a configuration operation on the wire harness connection relation between the target components; the construction module 302 is specifically configured to:
based on the drag operation, arranging the target component in a canvas;
and constructing a connection line between the target components arranged in the canvas based on the configuration operation to obtain the component topological structure.
Wherein, the construction module 302 is more specifically configured to:
setting a canvas corresponding to the initial size area;
acquiring coordinates of the target component and the target placement point selected by the drag operation;
and arranging the target component in the canvas according to the position relation between the target placement point coordinates and the initial size area of the canvas.
Wherein, the construction module 302 is further specifically configured to:
expanding the initial size region to a target size region containing the target placement point when the target placement point coordinates are outside the initial size region;
the target component is arranged in the canvas corresponding to the target size area.
Wherein the apparatus further comprises:
the storage module is used for acquiring attribute information of each target component and configuration information of the target component in the component topological structure; and storing the attribute information and the configuration information locally.
Wherein the apparatus further comprises:
the page refreshing module is used for acquiring a page refreshing instruction triggered by a user in the visual editing page;
responding to the page refreshing instruction, and locally calling the attribute information and the configuration information;
and outputting the component topological structure to the visual editing page based on the attribute information and the configuration information.
The visualization generation device for the industrial control network target range provided by the embodiment of the application can realize each process of the embodiment of the visualization generation method for the industrial control network target range, and can achieve the same technical effect, so that repetition is avoided, and repeated description is omitted.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 (only one is shown in fig. 4), a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various method embodiments described above when executing the computer program 42.
The terminal 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal 4 and is not limiting of the terminal 4, and may include more or fewer components than shown, or may combine some components, or different components, e.g., the terminal may further include input and output devices, network access devices, buses, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The present application may implement all or part of the procedures in the methods of the above embodiments, and may also be implemented by a computer program product, which when run on a terminal causes the terminal to implement steps in the embodiments of the methods described above.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The visual generation method of the industrial control network target range is characterized by comprising the following steps of:
acquiring operation input of a user on visual edited industrial control network components, wherein each industrial control network component corresponds to one industrial control network asset; the industrial control network component is an operable control provided in the visual editing page; the operation input is used for realizing the self-definition of the industrial control network target range logic structure; the operation input comprises a drag operation on a target component in an industrial control network component list and a configuration operation on a wire harness connection relation between the target components;
responding to the operation input, and constructing a component topological structure comprising the target component selected by the operation input and the wiring harness connection relation between the target component;
calling a corresponding asset virtualization interface according to the attribute information of each target assembly in the assembly topological structure to generate a virtualization control network asset; the attribute information comprises the position of the target component in the component topological structure, component characteristics or industrial control network asset attributes corresponding to the target component; the asset virtualization interface corresponds to creation codes, and when the asset virtualization interface is called, execution of the creation codes is triggered to generate the virtualized control network asset corresponding to the target component;
according to the wire harness connection relations among the target components in the component topological structure, a network connection relation virtualization interface corresponding to each wire harness connection relation is called, and network connection relations among the virtualized control network assets are constructed; the network connection relation virtualization interface corresponding to the wire harness connection relation between the two current target components is determined by combining the attribute information of the two target components connected by the wire harness connection relation and the connection relation information of the wire harness connection relation;
and obtaining the industrial control network target range comprising the virtual industrial control network asset and the network connection relation, wherein the industrial control network target range corresponds to the industrial control network target range logic structure customized by a user.
2. The method of claim 1, wherein constructing, in response to the operation input, a component topology including a target component selected by the operation input and a wiring harness connection relationship between the target component, comprises:
based on the drag operation, arranging the target component in a canvas;
and constructing a connection line between the target components arranged in the canvas based on the configuration operation to obtain the component topological structure.
3. The method of claim 2, wherein the arranging the target component in the canvas based on the drag operation comprises:
setting a canvas corresponding to the initial size area;
acquiring coordinates of the target component and the target placement point selected by the drag operation;
and arranging the target component in the canvas according to the position relation between the target placement point coordinates and the initial size area of the canvas.
4. The method of claim 3, wherein the disposing the target component in the canvas according to the positional relationship between the target placement point coordinates and the initially sized region of the canvas comprises:
expanding the initial size region to a target size region containing the target placement point when the target placement point coordinates are outside the initial size region;
the target component is arranged in the canvas corresponding to the target size area.
5. The method according to claim 1, wherein after constructing a component topology including a target component selected by the operation input and a wire harness connection relationship between the target component in response to the operation input, further comprising:
acquiring attribute information of each target component and configuration information of the target component in the component topological structure;
and storing the attribute information and the configuration information locally.
6. The method of claim 5, wherein after storing the attribute information and the configuration information locally, further comprising:
acquiring a page refreshing instruction triggered by a user in a visual editing page;
responding to the page refreshing instruction, and locally calling the attribute information and the configuration information;
and outputting the component topological structure to the visual editing page based on the attribute information and the configuration information.
7. The utility model provides a visual generating device of industrial control network shooting range which characterized in that includes:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring the operation input of a user on visual edited industrial control network components, and each industrial control network component corresponds to one industrial control network asset; the industrial control network component is an operable control provided in the visual editing page; the operation input is used for realizing the self-definition of the industrial control network target range logic structure; the operation input comprises a drag operation on a target component in an industrial control network component list and a configuration operation on a wire harness connection relation between the target components;
the construction module is used for responding to the operation input and constructing a component topological structure containing the target component selected by the operation input and the wiring harness connection relation between the target component;
the generation module is used for calling a corresponding asset virtualization interface according to the attribute information of each target assembly in the assembly topological structure to generate a virtualized control network asset; according to the wire harness connection relations among the target components in the component topological structure, a network connection relation virtualization interface corresponding to each wire harness connection relation is called, and network connection relations among the virtualized control network assets are constructed; obtaining an industrial control network target range comprising the virtual industrial control network asset and the network connection relation, wherein the industrial control network target range corresponds to the customized industrial control network target range logic structure;
the attribute information comprises the position of the target component in the component topological structure, component characteristics or industrial control network asset attributes corresponding to the target component; the asset virtualization interface corresponds to creation codes, and when the asset virtualization interface is called, execution of the creation codes is triggered to generate the virtualized control network asset corresponding to the target component; and determining the network connection relation virtualization interface corresponding to the wire harness connection relation between the current two target components by combining the attribute information of the two target components connected by the wire harness connection relation and the connection relation information of the wire harness connection relation.
8. The apparatus according to claim 7, wherein the construction module is specifically configured to:
based on the drag operation, arranging the target component in a canvas;
and constructing a connection line between the target components arranged in the canvas based on the configuration operation to obtain the component topological structure.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202210122571.7A 2022-02-09 2022-02-09 Visual generation method, device, terminal and storage medium for industrial control network target range Active CN114629800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122571.7A CN114629800B (en) 2022-02-09 2022-02-09 Visual generation method, device, terminal and storage medium for industrial control network target range

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122571.7A CN114629800B (en) 2022-02-09 2022-02-09 Visual generation method, device, terminal and storage medium for industrial control network target range

Publications (2)

Publication Number Publication Date
CN114629800A CN114629800A (en) 2022-06-14
CN114629800B true CN114629800B (en) 2024-03-15

Family

ID=81898959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122571.7A Active CN114629800B (en) 2022-02-09 2022-02-09 Visual generation method, device, terminal and storage medium for industrial control network target range

Country Status (1)

Country Link
CN (1) CN114629800B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334698B (en) * 2022-07-20 2023-05-23 烽台科技(北京)有限公司 Construction method, device, terminal and medium of target 5G safety network of target range

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802852A (en) * 2018-12-13 2019-05-24 烽台科技(北京)有限公司 The construction method and system of network simulation topology applied to network target range
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
CN112333011A (en) * 2020-10-23 2021-02-05 苏州浪潮智能科技有限公司 Network topological graph generation method and device, electronic equipment and storage medium
CN112929218A (en) * 2021-02-04 2021-06-08 西安热工研究院有限公司 System and device for automatically generating virtual and real environments of industrial control target range
CN113037545A (en) * 2021-02-26 2021-06-25 中电数据服务有限公司 Network simulation method, device, equipment and storage medium
CN113359511A (en) * 2021-06-23 2021-09-07 陕西工大锐迪信息技术有限公司 Construction method and device of industrial control simulation network, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802852A (en) * 2018-12-13 2019-05-24 烽台科技(北京)有限公司 The construction method and system of network simulation topology applied to network target range
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
CN112333011A (en) * 2020-10-23 2021-02-05 苏州浪潮智能科技有限公司 Network topological graph generation method and device, electronic equipment and storage medium
CN112929218A (en) * 2021-02-04 2021-06-08 西安热工研究院有限公司 System and device for automatically generating virtual and real environments of industrial control target range
CN113037545A (en) * 2021-02-26 2021-06-25 中电数据服务有限公司 Network simulation method, device, equipment and storage medium
CN113359511A (en) * 2021-06-23 2021-09-07 陕西工大锐迪信息技术有限公司 Construction method and device of industrial control simulation network, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
工控网络仿真靶场的虚拟化场景构建研究;孙健;《中国优秀硕士学位论文全文数据库》;全文 *
虚拟化工控网络靶场的设计与自动化部署;陈吉龙;翟健宏;;智能计算机与应用(第05期);全文 *

Also Published As

Publication number Publication date
CN114629800A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN111815755B (en) Method and device for determining blocked area of virtual object and terminal equipment
EP3074863B1 (en) System and method for testing data representation for different mobile devices
CN104115143B (en) Multiple tabss stack user interface
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
US20100271398A1 (en) System and method for manipulating digital images on a computer display
CN112558824A (en) Page display method and device and computer storage medium
CN106557237B (en) method and terminal for selecting copy text information
CN111767554A (en) Screen sharing method and device, storage medium and electronic equipment
CN112817790A (en) Method for simulating user behavior
CN114489648A (en) Page generation method, system, terminal and medium
CN114629800B (en) Visual generation method, device, terminal and storage medium for industrial control network target range
CN113282214A (en) Stroke rendering method, device, storage medium and terminal
US11567635B2 (en) Online collaborative document processing method and device
CN109213668B (en) Operation recording method and device and terminal
CN109718554B (en) Real-time rendering method and device and terminal
CN107704188A (en) Input keyboard provider method and device, terminal and computer-readable recording medium
CN112130951A (en) AI-based RPA flow generation end flow generation method, equipment and storage medium
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
CN116301785A (en) Method and device for realizing custom text editor component
CN114629682B (en) Industrial control network target range allocation method, device, terminal and storage medium
US20220237365A1 (en) Method and system for providing mini-map in chatroom
CN115334698B (en) Construction method, device, terminal and medium of target 5G safety network of target range
US9274703B2 (en) Method for inputting instruction and portable electronic device and computer readable recording medium
CN110875875B (en) Electronic red packet message detection method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant