CN113268206B - Network target range resource hot plug implementation method and system - Google Patents

Network target range resource hot plug implementation method and system Download PDF

Info

Publication number
CN113268206B
CN113268206B CN202110810640.9A CN202110810640A CN113268206B CN 113268206 B CN113268206 B CN 113268206B CN 202110810640 A CN202110810640 A CN 202110810640A CN 113268206 B CN113268206 B CN 113268206B
Authority
CN
China
Prior art keywords
resource
disk
resources
network
file
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
CN202110810640.9A
Other languages
Chinese (zh)
Other versions
CN113268206A (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.)
Nanjing Cyber Peace Technology Co Ltd
Original Assignee
Nanjing Cyber Peace Technology 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 Nanjing Cyber Peace Technology Co Ltd filed Critical Nanjing Cyber Peace Technology Co Ltd
Priority to CN202110810640.9A priority Critical patent/CN113268206B/en
Publication of CN113268206A publication Critical patent/CN113268206A/en
Application granted granted Critical
Publication of CN113268206B publication Critical patent/CN113268206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices

Abstract

The invention discloses a method and a system for realizing hot plug of network shooting range resources, wherein the invention designs a structure of a network shooting range resource disk, the resource disk can be generated according to resources selected by a user and resources depended by the selected resources, and partition volume labels of the resource disk adopt uniform names so as to be convenient for a network shooting range platform to identify; monitoring the disk state on the network shooting range platform server, identifying the resource disk through the disk characteristics, after the resource disk is inserted into the server of the network shooting range platform, scanning the resource on the resource disk by the network shooting range platform, and introducing the resource into the platform and starting the resource; after a resource disk is pulled from a server of the network shooting range platform or the resource disk fails, the network shooting range platform deactivates the corresponding resource. The invention can standardize the resource release process, improve the operation and maintenance efficiency of network shooting range products, optimize the resource import process, improve the user experience and reduce the hardware cost.

Description

Network target range resource hot plug implementation method and system
Technical Field
The invention relates to a method and a system for realizing hot plug of network shooting range resources, belonging to the technical field of networks.
Background
The network target range is a technology or a product for simulating a real network space based on a virtualization technology, and is used for performing behaviors related to network security, such as learning, research, exercise and the like. In the process of using the network shooting range, a lot of pre-made content resources (resources for short) are needed, including: virtual node images, topology maps, network traffic packets, software packets, course textbooks, course videos, course exercises, and the like.
When a network shooting range manufacturer develops shooting range software, a large amount of resources are also produced and released along with the software; and according to the contract agreement, the manufacturer issues updated resources including revisions to the original resources and newly added resources to the client in a subsequent period.
Generally, the resources are edited and tested on a resource production platform. And then according to the product planning or the customer requirements, the specified resources are exported and stored on a single disk. And then the disk is taken to a client site, and the import operation is executed on a network shooting range platform. The import operation is to copy various resources on the disk into the network shooting range platform by each module. These resources can then be seen and used on the network shooting range platform. The existing operation mode has the following problems:
1. the storage space occupied by the resources is large, and is usually more than 1T byte. The conventional import operation is mainly a copy operation, and has very long execution time and low efficiency.
2. In order to ensure the safety of resources and to be able to tolerate certain hardware failures, it is often necessary to use redundant disks in the shooting range platform at the customer site. If redundant disks are not used for reducing the cost, because each imported resource is dynamically scheduled to a certain disk, it is difficult to analyze which affected resources are after the certain disk is damaged, and thus it is difficult to restore the no-redundant shooting range environment to a normal state.
Disclosure of Invention
The purpose of the invention is as follows: aiming at the problems in the prior art, the invention aims to provide a method and a system for realizing hot plug of network shooting range resources, which design the structure of a resource disk by analyzing the dependency relationship among the resources, optimize the resource import, improve the operation and maintenance efficiency of products and reduce the hardware cost.
The technical scheme is as follows: in order to achieve the above object, the present invention provides a method for implementing hot plug of network shooting range resource, which comprises the following steps:
generating a resource disk according to resources selected by a user and resources on which the selected resources depend, wherein partition volume labels of the resource disk adopt uniform names and are used for identifying the resource disk by a network shooting range platform, the generated original resource disk has a unique number, and the number of a copy of the resource disk is the same as that of the resource disk; the data on the resource disks are complete, and resource dependency does not exist among the resource disks with different numbers;
monitoring the disk state on the network target range platform server, checking the disk characteristics when a disk is inserted, if the disk is identified to be inserted as a resource disk, scanning the resources on the resource disk, warehousing or re-starting the database type resources, and registering the file type resources; when the mounted resource disk is pulled out or fails, the database type resource is stopped, and the registered file type resource is cleared.
Further, the database type resources comprise course teaching materials, course exercises and topological graphs, and the dependency relationship between the database type resources and the dependency relationship of the database type resources on the file type resources are recorded through a database table.
Further, the file-type resources include virtual node images, software packages, network traffic packages and course videos, and the dependency relationship among the file-type resources is recorded through a database table or metadata files of the resources.
Further, the resources in the resource disk include one or more of virtual node images, topological graphs, network traffic packages, software packages, course teaching materials, course videos and course problems, and the dependency relationship among the resources includes one or more of dependency of the course teaching materials on the course videos, dependency of the course teaching materials on the course problems, dependency of the course teaching materials on the topological graphs, dependency of the topological graphs on the virtual node images, dependency of the topological graphs on the network traffic packages, dependency among the virtual node images, dependency of the virtual node images on the software packages and dependency among the software packages.
Preferably, when the resource disk is inserted, the file-type resource is registered by recording its path or soft link; for the database type resources, importing the resources into a network target range platform database, simultaneously recording the unique number of the resource disk, and modifying the resource batch related to the resource disk number into an available state when the same resource disk number is recorded in the platform database; when the resource disk is pulled out or fails, clearing the path or soft link of the corresponding file resource for the file type resource; and for the database type resources, modifying the resource batch related to the resource disk number in the database into an unavailable state according to the unique number of the resource disk.
Preferably, when the resource disk is generated, the target disk is reinitialized, only one partition is created, and the resources in the partition are stored in different directories according to the categories.
Preferably, when the resource disk is generated, calculating summary information of each stored resource file, outputting the summary information and the file information to a summary file, and finally signing the summary file to generate a signature file; when the network shooting range platform server is inserted into the resource disk, signature verification is firstly carried out, and the resource file is read after the verification is successful.
Based on the same invention concept, the invention provides a network target range resource hot plug implementation system, which comprises a resource making and exporting module, a resource disk copy making module, a network target range resource disk monitoring module and a network target range resource management module;
the resource making and exporting module is used for generating a resource disk according to resources selected by a user and resources depended by the selected resources, the partition volume labels of the resource disk adopt uniform names and are used for the network shooting range platform to identify the resource disk, and the generated original resource disk has a unique number; the data on the resource disks are complete, and resource dependency does not exist among the resource disks with different numbers;
the resource disk copy making module is used for copying the resource disk into the same copy, and the number of the copy of the resource disk is the same as that of the resource disk;
the network target yard resource disk monitoring module is used for monitoring the disk state of the network target yard server, checking the disk characteristics when a disk is inserted, and informing the network target yard resource management module to import resources if the inserted disk is a resource disk; when the mounted resource disk is pulled out or fails, informing the network shooting range resource management module to stop the resource;
the network target range resource management module is used for scanning resources on the resource disk when the resource disk is inserted, warehousing or re-starting the database type resources and registering the file type resources; when the mounted resource disk is pulled out or fails, the database type resource is stopped, and the registered file type resource is cleared.
Preferably, the network target site resource management module registers file-type resources by recording the path or soft link of the file-type resources when the resource disk is inserted; for the database type resources, importing the resources into a network target range platform database, simultaneously recording the unique number of the resource disk, and modifying the resource batch related to the resource disk number into an available state when the same resource disk number is recorded in the platform database; when the resource disk is pulled out or fails, clearing the path or soft link of the corresponding file resource for the file type resource; and for the database type resources, modifying the resource batch related to the resource disk number in the database into an unavailable state according to the unique number of the resource disk.
Based on the same inventive concept, the present invention provides a server system of a network shooting range platform, comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program when loaded into the processor implements the following steps:
monitoring the disk state of the server;
checking the disk characteristics when a disk is inserted, if the inserted disk is a resource disk, scanning the resources on the resource disk, warehousing or restarting the database type resources, and registering the file type resources;
when the mounted resource disk is pulled out or fails, the database type resources are stopped, the registered file type resources are removed, after the resource disk is inserted into the server, the resources on the resource disk are scanned, and the resources are guided into the platform and started;
the resource disk is a resource disk generated according to resources selected by a user and resources on which the selected resources depend, or a copy of the resource disk; the partition volume labels of the resource disks adopt uniform names and are used for identifying the resource disks by the network shooting range platform, the generated original resource disks have unique numbers, and the copies of the resource disks are the same as the numbers of the resource disks; the data on the resource disks are complete, and no resource dependency relationship exists among the resource disks with different numbers.
Has the advantages that: the method for realizing hot plug of network shooting range resources provided by the invention designs the resource disk carrying special identification, and the resource disk can be automatically identified by a network shooting range platform. And the resource disks carry unique numbers, and resource disks with the same numbers can be replaced. The network shooting range platform can automatically sense the change of the resource disk and automatically import or update the resource state. Compared with the prior art, the invention has the following advantages:
1. by designing the structure of the resource disk, the standardization of the resource release process is realized, and the operation and maintenance efficiency of network shooting range products is improved.
2. The resource import process is optimized, the file type resources do not need to be copied during import, the subsequent resource use process is directly accessed through the resource path, the import time is greatly shortened, and the user experience is improved.
3. Under the premise of ensuring the recovery after the failure of the resource disk, the disk redundancy is removed, thereby reducing the hardware cost.
Drawings
FIG. 1 is a flow chart of a method according to an embodiment of the present invention.
FIG. 2 is an entity-relationship (E-R) diagram of a course-related resource in an embodiment of the invention.
Fig. 3 is a schematic view of an application scenario according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and specific embodiments.
In order to solve the problems in the distribution and use processes of the existing network shooting range resources, as shown in fig. 1, a method for implementing hot plug of the network shooting range resources provided by the embodiment of the invention includes the steps of firstly generating a resource disk according to resources selected by a user and resources depending on the selected resources, wherein the resource disk is specially used for storing the resources of the network shooting range and can be identified by a network shooting range platform to be further processed by carrying a special identifier; after the resource disks are inserted onto the servers of the network shooting range platform, the network shooting range platform scans the resources on the resource disks, and brings the resources into the platform and enables the resources in a time-consuming mode; and after the resource disk is pulled out from the server of the network shooting range platform or the resource disk fails, automatically disabling the corresponding resource. After the resource disk is damaged, the manufacturer can replace the damaged resource disk on the server of the network shooting range platform by providing a copy of the resource disk, and immediately recover the platform.
In the embodiment of the invention, the partition volume labels of the resource disks adopt uniform names and are used for identifying the resource disks by the network shooting range platform, the generated original resource disks have unique numbers, and the copies of the resource disks are the same as the numbers of the resource disks. The data on the resource disks are complete, and no resource dependency relationship exists among the resource disks with different numbers; for example, a virtual machine node image used by any topological graph on a disk is on the disk; for example, the software packages and topology required for any course on the disk are also on this disk. The disks are independent, and the normal use of resources on other disks cannot be influenced by adding, deleting or damaging one disk.
When the resources are imported, the file type resources are registered by recording the paths or soft links of the file type resources; for the database type resources, importing the resources into a network target range platform database, simultaneously recording the unique number of the resource disk, and modifying the resource batch related to the resource disk number into an available state when the same resource disk number is recorded in the platform database; when the resources are stopped, clearing the path or soft link of the corresponding file resources for the file type resources; and for the database type resources, modifying the resource batch related to the resource disk number in the database into an unavailable state according to the unique number of the resource disk.
The database resources mainly comprise course teaching materials, course exercises and topological graphs, and the dependency relationship between the database resources and the dependency relationship of the database resources on the file type resources are recorded through a database table; the file type resources mainly comprise virtual node images, software packages, network flow packages and course videos, and the dependency relationship among the file type resources is recorded through a database table or metadata files of the resources. In order to improve data security, when a resource disk is generated, summary information is calculated for each stored resource file and is output to the summary file together with file information, and finally the summary file is signed to generate a signature file; when the network shooting range platform server is inserted into the resource disk, signature verification is firstly carried out, and the resource file is read after the verification is successful.
Based on the same inventive concept, the system for realizing hot plug of network shooting range resources provided by the embodiment of the invention comprises a resource making and exporting module, a resource disk copy making module, a network shooting range resource disk monitoring module and a network shooting range resource management module. The resource making and exporting module is used for generating a resource disk according to the resources selected by the user and the resources on which the selected resources depend; the resource disk copy making module is used for copying the resource disk into the same copy, and the number of the copy of the resource disk is the same as that of the resource disk; the network target yard resource disk monitoring module is used for monitoring the disk state of the network target yard server, checking the disk characteristics when a disk is inserted, and informing the network target yard resource management module to import resources if the inserted disk is a resource disk; when the mounted resource disk is pulled out or fails, informing the network shooting range resource management module to stop the resource; the network target range resource management module is used for scanning resources on the resource disk when the resource disk is inserted, warehousing or re-starting the database type resources and registering the file type resources; when the mounted resource disk is pulled out or fails, the database type resource is stopped, and the registered file type resource is cleared.
The detailed implementation steps of the embodiments of the present invention are further described below with reference to specific applications.
1. A resource production export module: responsible for generating the original resource disks from user input. The method comprises the following steps:
a. receiving manually input resource selection range (such as a course list), and automatically calculating other resources on which the selected resource depends; as shown in fig. 2, the resource categories mainly include virtual node images, topology maps, network traffic packages, software packages, course materials, course videos, course exercises, and the like; the dependency relationship among the resources mainly comprises the dependency of the course teaching materials on the course video, the dependency of the course teaching materials on the course problems, the dependency of the course teaching materials on the topological graph, the dependency of the topological graph on the virtual node mirror image, the dependency of the topological graph on the network traffic packet, the dependency among the virtual node mirror images (the dynamically constructed mirror image depends on the static mirror image), the dependency of the virtual node mirror image on the software packet, the dependency among the software packets and the like. The specific dependency relationship of each resource is stored in a database table or a resource file. For example, the course problem resource table describes the course materials associated with the problem via the foreign key field, while the software package resources describe the other software packages on which it depends via the metadata file of the software package.
b. And calculating the size of the disk space occupied by the selected resource and the dependent resource.
c. And receiving a manually input target disk, and checking whether the disk capacity is enough to accommodate the resources.
d. The disk is reinitialized and only one partition is created. The volume label of the partition adopts a uniform name (such as CRSRC, an abbreviation of Cyber Range Resource in English) and is used for a network shooting Range platform to preliminarily identify the content of the disk so as to decide whether to try to mount the disk to a directory and further detect the disk.
e. And mounting the partitions to a temporary directory, and respectively storing the resources to different directories according to the types of the resources (such as mirror image storage to images directory and network flow package storage to packets directory).
f. Generating the abstract information of all the resources and the unique serial number of the resource disk, and signing. And traversing the files in the resource directories, calculating the summary information of the single file by using an MD5, SHA1 or SHA256 algorithm for each file, and outputting the summary information together with the path of the file to a total summary file. And finally, signing the summary file through an RSA or DSA secret key to generate a signature file. The signature file, the digest file, and the resource are stored together in a resource disk.
2. A resource disk copy making module: and the system is responsible for copying the original resource disk into a plurality of identical copies according to the needs of users (besides the identical content, the unique number of the resource disk copy also needs to be identical to the number of the original resource disk). As shown in fig. 3, the resource disk copy is used for different project delivery on one hand and for post-assurance of each project on the other hand. The bottom layer of the resource disk copy making module is realized, and can call Linux file operation commands and also adopt special disk copying equipment.
3. Network shooting range resource disk monitoring module: the system is used for monitoring the state of the disk, sensing the change of the resource disk and informing the network target range resource management module in time.
a. When a disk is found to be inserted into the network backing plate server, an attempt is made to read the volume label of its first partition. If the tag is the desired predefined name (CRSRC as described above), a directory is created and the partition is mounted to the directory. Further, the abstract information of the resource disk and the unique serial number of the resource disk are read, and the signature is verified. If the signature is normal, the directory structure is scanned and the resource management module is notified to read the resource.
b. When the disk is found to be pulled out, the resource management module is informed to modify the resource state to be unavailable (i.e. to be deactivated).
c. A disk test procedure is run. This process periodically reads the resource disks. If the resource disk is found to be damaged, an alarm in the form of mail or a popup on the main interface is required, and then the resource management module is informed to disable the relevant resource (similar to pulling out the disk).
The resource disk monitoring module can detect the insertion and extraction of the disk by using a Linux udev frame and can also realize the detection by adopting an active round training mode.
4. The network target range resource management module: and the system is responsible for the operations of importing, modifying, deleting and the like of the resources. According to the storage mode of resources in the network shooting range platform, the method is divided into two types:
a. file type resources:
file type resources generally occupy more disk space, such as virtual node image files, software packages, network traffic packages, course videos, and the like. Such resources are not directly copied into the network shooting range platform but are registered by recording their paths or soft links. When the resource disk is pulled out or fails, only whether the file path corresponding to the resource is readable or not needs to be detected. If it is not readable, the path or soft link of these file resources is cleared (a single program can be designed to periodically scan all file-type resource directories, and for automatic clearing that is not readable, the relevant path or soft link can be cleared according to the unique number of the resource disk). After the resource disk copy is inserted again, forming keywords according to the unique number of the resource disk and the unique number or the unique name of the resource, re-registering the file type resource, covering the original invalid path or soft link, and enabling the network shooting range platform to access the resource on the resource disk copy instead.
b. Database type resource:
the database type generally needs to be imported into a database, but the data volume is small and the time consumption is low. Such as topological graphs, lesson exercises, and the like. When such resources are put in storage, the unique serial number of the resource disk needs to be recorded at the same time. If a resource needs to be deactivated, only the status field of the resource needs to be modified in the database. When a resource disk is unplugged or otherwise fails, the resource disk need not be read, although such resources are already fully present in the database. But it is likely that the file-type resource it depends on is not available and therefore can be considered to be deactivated altogether. The specific method is that all the resources imported from the resource disk in the database are required to be modified into the unavailable state according to the unique number of the resource disk. After the copy of the resource disk is inserted, under the condition that the file type resource is ensured to be completely imported, the unique number of the resource disk is read, and all resources related to the number in the database are modified into an available state in batches. Thus, the file resource path or soft link which has failed originally is updated to be the effective path or soft link, and the database type resource in the unavailable state is updated to be the available state. Therefore, the resources that become abnormal due to the original resource disk being pulled out or failing can be completely recovered.
Based on the same inventive concept, an embodiment of the present invention provides a server system of a network shooting range platform, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program implements the following steps when being loaded into the processor: monitoring the disk state of the server; checking the disk characteristics when a disk is inserted, if the inserted disk is a resource disk, scanning the resources on the resource disk, warehousing or restarting the database type resources, and registering the file type resources; when the mounted resource disk is pulled out or fails, the database type resources are stopped, the registered file type resources are removed, after the resource disk is inserted into the server, the resources on the resource disk are scanned, and the resources are guided into the platform and started; the resource disk is a resource disk generated according to the resources selected by the user and the resources on which the selected resources depend, or a copy of the resource disk; for details, reference is made to the foregoing embodiments, which are not repeated herein.

Claims (10)

1. A network shooting range resource hot plug implementation method is characterized by comprising the following steps:
generating a resource disk according to resources selected by a user and resources on which the selected resources depend, wherein partition volume labels of the resource disk adopt uniform names and are used for identifying the resource disk by a network shooting range platform, the generated original resource disk has a unique number, and the number of a copy of the resource disk is the same as that of the resource disk; the data on the resource disks are complete, and resource dependency does not exist among the resource disks with different numbers;
monitoring the disk state on the network target range platform server, checking the disk characteristics when a disk is inserted, if the disk is identified to be inserted as a resource disk, scanning the resources on the resource disk, warehousing or re-starting the database type resources, and registering the file type resources in a way of recording the path or soft link of the resources; when the mounted resource disk is pulled out or fails, the database type resource is stopped, and the registered file type resource is cleared.
2. The method for hot plug of network shooting range resource as claimed in claim 1, wherein said database type resource comprises course teaching materials, course exercises and topology maps, and the dependency relationship between database type resources and database type resources on file type resources is recorded by database tables.
3. The method for implementing hot plug of network shooting range resource of claim 1, wherein the file type resource comprises virtual node mirror image, software package, network flow package and course video, and the dependency relationship between the file type resources is recorded by a database table or a metadata file of the resource.
4. The method for implementing hot plug of network shooting range resource of claim 1, wherein the resource in the resource disk comprises one or more of virtual node image, topology map, network traffic package, software package, course materials, course video, course problem, and the dependency relationship between resources comprises one or more of dependency of course materials on the course video, dependency of course materials on the course problem, dependency of course materials on the topology map, dependency of the topology map on the virtual node image, dependency of the topology map on the network traffic package, dependency between virtual node images, dependency of virtual node images on the software package, and dependency between software packages.
5. A method for implementing hot plug of network shooting range resource according to claim 1, wherein when inserting the resource disk, the file type resource is registered by recording its path or soft link; for the database type resources, importing the resources into a network target range platform database, simultaneously recording the unique number of the resource disk, and modifying the resource batch related to the resource disk number into an available state when the same resource disk number is recorded in the platform database; when the resource disk is pulled out or fails, clearing the path or soft link of the corresponding file resource for the file type resource; and for the database type resources, modifying the resource batch related to the resource disk number in the database into an unavailable state according to the unique number of the resource disk.
6. The method for hot plug of network shooting range resource of claim 1, wherein when the resource disk is generated, the target disk is reinitialized, only one partition is created, and the resources are stored in different directories according to categories.
7. The method for implementing hot plug of network target range resource according to claim 1, wherein when the resource disk is generated, summary information is calculated for each stored resource file and output to the summary file together with file information, and finally the summary file is signed to generate a signature file; when the network shooting range platform server is inserted into the resource disk, signature verification is firstly carried out, and the resource file is read after the verification is successful.
8. A network target range resource hot plug implementation system is characterized by comprising a resource making and exporting module, a resource disk copy making module, a network target range resource disk monitoring module and a network target range resource management module;
the resource making and exporting module is used for generating a resource disk according to resources selected by a user and resources depended by the selected resources, the partition volume labels of the resource disk adopt uniform names and are used for the network shooting range platform to identify the resource disk, and the generated original resource disk has a unique number; the data on the resource disks are complete, and resource dependency does not exist among the resource disks with different numbers;
the resource disk copy making module is used for copying the resource disk into the same copy, and the number of the copy of the resource disk is the same as that of the resource disk;
the network target yard resource disk monitoring module is used for monitoring the disk state of the network target yard server, checking the disk characteristics when a disk is inserted, and informing the network target yard resource management module to import resources if the inserted disk is a resource disk; when the mounted resource disk is pulled out or fails, informing the network shooting range resource management module to stop the resource;
the network target range resource management module is used for scanning resources on the resource disk when the resource disk is inserted, warehousing or re-starting the database type resources, and registering the file type resources in a way of recording the path or soft link of the file type resources; when the mounted resource disk is pulled out or fails, the database type resource is stopped, and the registered file type resource is cleared.
9. The system of claim 8, wherein the network shooting range resource management module, when inserting a resource disk, registers a file-type resource by recording its path or soft link; for the database type resources, importing the resources into a network target range platform database, simultaneously recording the unique number of the resource disk, and modifying the resource batch related to the resource disk number into an available state when the same resource disk number is recorded in the platform database; when the resource disk is pulled out or fails, clearing the path or soft link of the corresponding file resource for the file type resource; and for the database type resources, modifying the resource batch related to the resource disk number in the database into an unavailable state according to the unique number of the resource disk.
10. A server system for a network range platform, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program when loaded into the processor implements the steps of:
monitoring the disk state of the server;
checking the disk characteristics when a disk is inserted, if the inserted disk is a resource disk, scanning resources on the resource disk, warehousing or re-starting database resources, and registering file-type resources in a way of recording the path or soft link of the resources;
when the mounted resource disk is pulled out or fails, the database type resources are stopped, the registered file type resources are removed, after the resource disk is inserted into the server, the resources on the resource disk are scanned, and the resources are guided into the platform and started;
the resource disk is a resource disk generated according to resources selected by a user and resources on which the selected resources depend, or a copy of the resource disk; the partition volume labels of the resource disks adopt uniform names and are used for identifying the resource disks by the network shooting range platform, the generated original resource disks have unique numbers, and the copies of the resource disks are the same as the numbers of the resource disks; the data on the resource disks are complete, and no resource dependency relationship exists among the resource disks with different numbers.
CN202110810640.9A 2021-07-19 2021-07-19 Network target range resource hot plug implementation method and system Active CN113268206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110810640.9A CN113268206B (en) 2021-07-19 2021-07-19 Network target range resource hot plug implementation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110810640.9A CN113268206B (en) 2021-07-19 2021-07-19 Network target range resource hot plug implementation method and system

Publications (2)

Publication Number Publication Date
CN113268206A CN113268206A (en) 2021-08-17
CN113268206B true CN113268206B (en) 2021-10-19

Family

ID=77236699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110810640.9A Active CN113268206B (en) 2021-07-19 2021-07-19 Network target range resource hot plug implementation method and system

Country Status (1)

Country Link
CN (1) CN113268206B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117112234B (en) * 2023-10-19 2024-02-09 南京赛宁信息技术有限公司 Reliable resource pre-allocation method and system in network target range

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743293A (en) * 2018-12-13 2019-05-10 烽台科技(北京)有限公司 The access method and network target range system, computer storage medium in network target range
CN111741134A (en) * 2020-08-18 2020-10-02 南京赛宁信息技术有限公司 System and method for quickly constructing virtual machine in large-scale scene of network shooting range

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10672289B2 (en) * 2015-09-24 2020-06-02 Circadence Corporation System for dynamically provisioning cyber training environments
US9894036B2 (en) * 2015-11-17 2018-02-13 Cyber Adapt, Inc. Cyber threat attenuation using multi-source threat data analysis
US11138312B2 (en) * 2018-12-19 2021-10-05 Accenture Global Solutions Limited Cyber range integrating technical and non-technical participants, participant substitution with AI bots, and AI bot training
CN110750334B (en) * 2019-10-25 2024-02-02 北京计算机技术及应用研究所 Ceph-based network target range rear end storage system design method
CN111555913A (en) * 2020-04-24 2020-08-18 北京安码科技有限公司 Simulation method, system, electronic device and storage medium for simulating real network environment based on virtualization
CN111708612B (en) * 2020-08-18 2020-12-01 南京赛宁信息技术有限公司 Network shooting range cloud platform data disk management system and method
CN112055026B (en) * 2020-09-11 2022-06-10 湖南泛联新安信息科技有限公司 Network target range physical environment construction method and system
CN112150122A (en) * 2020-10-16 2020-12-29 贵州电网有限责任公司 Agile network resource positioning and decision-making system
CN112202624B (en) * 2020-12-07 2021-03-12 南京赛宁信息技术有限公司 Real equipment fast access system and method for network target range scene arrangement
CN112311816B (en) * 2020-12-30 2021-03-30 博智安全科技股份有限公司 Initialization method and reset method for virtual and real combined network target range environment
CN112416469B (en) * 2020-12-30 2021-12-17 博智安全科技股份有限公司 Initialization method and reset method of virtualized network target range environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743293A (en) * 2018-12-13 2019-05-10 烽台科技(北京)有限公司 The access method and network target range system, computer storage medium in network target range
CN111741134A (en) * 2020-08-18 2020-10-02 南京赛宁信息技术有限公司 System and method for quickly constructing virtual machine in large-scale scene of network shooting range

Also Published As

Publication number Publication date
CN113268206A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN111031096B (en) Distributed storage system construction method based on mimicry defense
CN104679534B (en) System application installation package loading processing method, apparatus and terminal
US8245217B2 (en) Management of software and operating system updates required for the process of creating a virtual machine facsimile of an existing physical or virtual machine
CN109885316B (en) Hdfs-hbase deployment method and device based on kubernetes
CN102736978B (en) A kind of method and device detecting the installment state of application program
US8910172B2 (en) Application resource switchover systems and methods
CN107026760B (en) Fault repairing method and monitoring node
JP5684946B2 (en) Method and system for supporting analysis of root cause of event
US9864793B2 (en) Language tag management on international data storage
JP4722944B2 (en) System, method and software for distributed loading of databases
US20080275973A1 (en) Dynamic cli mapping for clustered software entities
JP2017201470A (en) Setting support program, setting support method, and setting support device
CN110178121A (en) A kind of detection method and its terminal of database
CN105022678A (en) Data backup method and apparatus for virtual machine
CN105354102B (en) A kind of method and apparatus of file system maintenance and reparation
CN111813495A (en) Node testing method and device, storage medium and electronic device
CN113268206B (en) Network target range resource hot plug implementation method and system
US11044096B2 (en) Blockchain based digital identity generation and verification
CN106529281A (en) Executable file processing method and device
CN109933351A (en) A kind of method and apparatus of reparation and upgrading linux system
CN114996955A (en) Target range environment construction method and device for cloud-originated chaotic engineering experiment
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN110493326B (en) Zookeeper-based cluster configuration file management system and method
KR102256894B1 (en) Method, Server and Computer Program for Crash Report Grouping
CN114924742A (en) Hot patch making and applying method and device for virtual machine simulation software

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