Resource management method and system for virtual scene nodes, storage medium, processor and equipment

Through the architecture of the driver layer and control layer, the problem of unified management of heterogeneous nodes is solved, efficient management and calling of heterogeneous nodes are realized, operation efficiency is improved, and the construction and calling of more types of nodes are supported, solving the problems of traditional technology The problem of excessive hardware resource requirements and inability to support a full range of simulations.

CN118567759APending Publication Date: 2024-08-30ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410718765.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional fully virtualized node simulation technology requires too high hardware resources in large-scale networks, cannot support the simulation of a full range of operating systems, and cannot implement some simulation devices through virtualization. It requires access to physical devices and the unification of heterogeneous nodes. Management is difficult to achieve.

Method used

It adopts the architecture of driver layer and control layer, solves the differentiation problem of heterogeneous nodes through driver design mode, provides unified driver development specifications and resource management methods, and realizes efficient management and invocation of heterogeneous nodes. The driver layer automatically discovers heterogeneous nodes and develops targeted drivers through the driver development specifications provided by the control layer. The control layer performs object management and action management to ensure that different nodes are managed and operated through the same interface.

Benefits of technology

It achieves efficient management and invocation of heterogeneous nodes, improves operational efficiency, shields the diversity and complexity of the underlying infrastructure, and supports the construction and invocation of more types of nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567759A
    Figure CN118567759A
Patent Text Reader

Abstract

The invention relates to the technical field of virtual simulation, in particular to a resource management method and system for virtual scene nodes, a storage medium, a processor and equipment. In order to fuse operation of heterogeneous nodes in the same frame system, a driving design mode is adopted in overall architecture design, the heterogeneous difference problem is solved through driving, an overall upper-layer frame is kept consistent, and the overall architecture is divided into two layers, namely a driving layer and a control layer; the driving layer mainly realizes differentiated operation adaptation of each heterogeneous node, and the control layer mainly realizes a standardized asynchronous task framework and a driving registration scheduling service, provides a unified driving development specification, can shield diversity and complexity of a bottom infrastructure, and provides a standard command calling and resource management mode. In this way, it can be ensured that different heterogeneous nodes can be managed and operated through the same interface, and the calling efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual simulation technology, and in particular to a resource management method, system, storage medium, processor and device for virtual scene nodes. Background Art

[0002] With the continuous expansion of the current network scale and the increase in the complexity of network equipment, a single type of node simulation technology can no longer meet the needs of building a training target environment. When the node scale is too large, the problem of high hardware resource requirements of traditional full virtualization node simulation technology becomes prominent; lightweight virtualization node simulation technology cannot support the simulation of a full range of operating systems, and there is a certain degree of environmental distortion, and it cannot complete some of the simulation equipment that cannot be realized through virtualization, and it also needs to be connected to physical devices to achieve simulation.

[0003] The core technology of hybrid node construction simulation support is to solve the unified management of heterogeneous nodes. Since there are obvious differences in the operations supported by heterogeneous nodes and the parameter requirements corresponding to the same operations, it is necessary to study a resource management method, system, storage medium, processor and device for virtual scene nodes to achieve efficient management and call of heterogeneous nodes. Summary of the invention

[0004] In view of the problems in the prior art, the present invention provides a resource management method, system, storage medium, processor and device for virtual scene nodes, which can realize efficient management and calling of heterogeneous nodes. The specific technical solution is as follows:

[0005] A resource management method for a virtual scene node comprises the following steps:

[0006] The driver layer automatically discovers various heterogeneous nodes in the virtual scene and connects the discovered heterogeneous nodes to the driver layer;

[0007] Each heterogeneous node connected to the driver layer uses the driver development specification provided by the control layer to develop drivers for its specific operations; the heterogeneous nodes connected to the driver layer register their own node types and supported operations in the driver layer;

[0008] The control layer performs object management and action management on heterogeneous nodes;

[0009] The control layer receives the node call request from the caller through the communication interface, parses and executes it, and then feeds back to the caller.

[0010] Preferably, the driver layer automatically discovers various heterogeneous nodes in the virtual scene by means of network scanning, configuration file reading, and API integration.

[0011] Preferably, the driver development specification provided by the control layer includes node type information, state machine model, node data structure, and specific action implementation interface.

[0012] Preferably, the control layer receives the node call request from the caller through the communication interface, parses and executes it, and feeds back to the caller specifically including:

[0013] The control layer analyzes the overall topology in the caller's node call request and sorts out the network structure and target nodes to be built;

[0014] For each target node, the control layer reads its node type, finds the corresponding driver according to the node type, and compares it with the state machine model provided by the driver;

[0015] If the comparison is correct, the control layer calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

[0016] Preferably, it also includes:

[0017] The control layer allocates initial resources for each node call request, including computing resources, storage resources, and network resources;

[0018] Monitor the resource usage of each node call request, including resource occupancy rate and resource request frequency;

[0019] When the resource demand of a node call request exceeds the preset threshold, the resource expansion mechanism is triggered to allocate more resources to the node call request.

[0020] Preferably, the resource expansion mechanism includes, but is not limited to: increasing the number of computing cores of heterogeneous nodes in the virtual scene, increasing memory capacity, and improving network bandwidth.

[0021] A resource management system for virtual scene nodes, applied to the method described, comprising: a driving layer and a control layer;

[0022] The driver layer includes a node discovery module and a driver development registration module;

[0023] The node discovery module is used to automatically discover various heterogeneous nodes in the virtual scene and access the discovered heterogeneous nodes;

[0024] The driver development registration module is used for each heterogeneous node to develop a driver for its own specific operation using the driver development specification provided by the control layer, and to register its own node type and supported operations;

[0025] The control layer includes an application object manager, an action manager, a communication interface, a parsing module, a comparison module, and an executor; the object manager is used to manage heterogeneous node objects; the action manager is used to manage the actions of heterogeneous nodes;

[0026] The communication interface is used to interact with the caller for data, including receiving the caller's node call request and reporting the execution result to the caller; the parsing module is used to parse the caller's node call request and sort out the network structure and target node to be constructed; the comparison module is used to read the node type of each target node, find the corresponding driver according to the node type, and compare it with the state machine model provided by the driver. If the comparison is correct, the executor calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

[0027] A computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the resource management method of the virtual scene node.

[0028] A processor is used to run a program, wherein the resource management method of a virtual scene node is executed when the program is running.

[0029] An electronic device, comprising: a processor and a storage device;

[0030] The storage is used to store computer programs, and the processor is used to execute the computer programs stored in the storage, so that the electronic device executes the resource management method of the virtual scene node.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] In order to integrate the operations of heterogeneous nodes into the same framework system, the present invention adopts a driver design mode in the overall architecture design, solves the heterogeneous difference problem through driving, and keeps the overall upper framework consistent. The overall architecture is divided into two layers: the driver layer and the control layer. The driver layer mainly realizes the differentiated operation adaptation of each heterogeneous node, and the control layer mainly realizes the standardized asynchronous task framework and driver registration scheduling service. Providing a unified driver development specification can shield the diversity and complexity of the underlying infrastructure and provide a standard command call and resource management method. In this way, it can be ensured that different heterogeneous nodes can be managed and operated through the same interface. The operation includes but is not limited to the allocation, scheduling, monitoring and alarm of computing, storage, network and other resources, thereby improving the efficiency of the call.

[0033] The present invention uses this method to achieve mixed construction of heterogeneous nodes, and can access more types of node construction support by adding drivers, thereby achieving efficient calling of nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0035] Figure 1 The present invention is a flow chart of the method.

[0036] Figure 2 It is a system principle diagram of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0039] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0040] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0041] Embodiment 1:

[0042] like Figure 1 As shown, this embodiment provides a resource management method for a virtual scene node, comprising the following steps:

[0043] The driver layer automatically discovers various heterogeneous nodes in the virtual scene and connects the discovered heterogeneous nodes to the driver layer;

[0044] Each heterogeneous node connected to the driver layer uses the driver development specification provided by the control layer to develop drivers for its specific operations; the heterogeneous nodes connected to the driver layer register their own node types and supported operations in the driver layer;

[0045] The control layer performs object management and action management on heterogeneous nodes;

[0046] The control layer receives the node call request from the caller through the communication interface, parses and executes it, and then feeds back to the caller.

[0047] Specifically, the driver layer uses network scanning, configuration file reading, and API integration to automatically discover various heterogeneous nodes in the virtual scene.

[0048] The driver development specifications provided by the control layer include node type information, state machine model, node data structure, and specific action implementation interface. Providing a unified driver development specification can shield the diversity and complexity of the underlying infrastructure and provide standard command calls and resource management methods. This ensures that different heterogeneous nodes can be managed and operated through the same interface, including but not limited to the allocation, scheduling, monitoring, and alarming of computing, storage, network, and other resources, thereby improving the efficiency of calls.

[0049] The control layer receives the node call request from the caller through the communication interface, parses and executes it, and feeds back to the caller the following information:

[0050] The control layer analyzes the overall topology in the caller's node call request and sorts out the network structure and target nodes to be built;

[0051] For each target node, the control layer reads its node type, finds the corresponding driver according to the node type, and compares it with the state machine model provided by the driver;

[0052] If the comparison is correct, the control layer calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

[0053] The operations of the control layer also include:

[0054] The control layer allocates initial resources for each node call request, including computing resources, storage resources, and network resources;

[0055] Monitor the resource usage of each node call request, including resource occupancy rate and resource request frequency;

[0056] When the resource demand of a node call request exceeds the preset threshold, the resource expansion mechanism is triggered to allocate more resources to the node call request. The resource expansion mechanism includes but is not limited to: increasing the number of computing cores of heterogeneous nodes in the virtual scene, increasing memory capacity, and improving network bandwidth.

[0057] In order to integrate the operations of heterogeneous nodes into the same framework system, the present invention adopts a driver design mode in the overall architecture design, solves the heterogeneous difference problem through driving, and keeps the overall upper framework consistent. The overall architecture is divided into two layers: the driver layer and the control layer. The driver layer mainly realizes the differentiated operation adaptation of each heterogeneous node, and the control layer mainly realizes the standardized asynchronous task framework and driver registration scheduling service. Providing a unified driver development specification can shield the diversity and complexity of the underlying infrastructure and provide a standard command call and resource management method. In this way, it can be ensured that different heterogeneous nodes can be managed and operated through the same interface. The operation includes but is not limited to the allocation, scheduling, monitoring and alarm of computing, storage, network and other resources, thereby improving the efficiency of the call.

[0058] The present invention uses this method to achieve mixed construction of heterogeneous nodes, and can access more types of node construction support by adding drivers, thereby achieving efficient calling of nodes.

[0059] Embodiment 2:

[0060] like Figure 2 As shown, based on the same inventive concept as the first embodiment, this embodiment provides a resource management system for virtual scene nodes, which is applied to the method described, and includes: a driving layer and a control layer;

[0061] The driver layer includes a node discovery module and a driver development registration module;

[0062] The node discovery module is used to automatically discover various heterogeneous nodes in the virtual scene and access the discovered heterogeneous nodes;

[0063] The driver development registration module is used for each heterogeneous node to develop a driver for its own specific operation using the driver development specification provided by the control layer, and to register its own node type and supported operations;

[0064] The control layer includes an application object manager, an action manager, a communication interface, a parsing module, a comparison module, and an executor; the object manager is used to manage heterogeneous node objects; the action manager is used to manage the actions of heterogeneous nodes;

[0065] The communication interface is used to interact with the caller for data, including receiving the caller's node call request and reporting the execution result to the caller; the parsing module is used to parse the caller's node call request and sort out the network structure and target node to be constructed; the comparison module is used to read the node type of each target node, find the corresponding driver according to the node type, and compare it with the state machine model provided by the driver. If the comparison is correct, the executor calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

[0066] The node discovery module is connected to the driver development registration module, the comparison module is connected to the driver development registration module, the object manager, the action manager, and the executor respectively, the object manager and the action manager are connected to the parsing module respectively, and the communication interface is connected to the parsing module, the executor, and the caller respectively.

[0067] The system principle of the present invention is:

[0068] The node discovery module automatically discovers various heterogeneous nodes in the virtual scene and connects to the discovered heterogeneous nodes; the driver development registration module is used for each heterogeneous node to develop a driver for its own specific operation using the driver development specification provided by the comparison module, and to register its own node type and supported operations to the comparison module; the parsing module receives the caller's node call request through the communication interface, and parses the caller's node call request to sort out the network structure and target node to be built; the comparison module reads the node type of each target node, finds the corresponding driver according to the node type, and compares it with the state machine model provided by the driver. If the comparison is correct, the executor calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

[0069] Embodiment three:

[0070] Based on the same inventive concept as that of Embodiment 1, this embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the resource management method of the virtual scene node.

[0071] Embodiment 4:

[0072] Based on the same inventive concept as that of the first embodiment, this embodiment provides a processor, which is used to run a program, wherein the resource management method of the virtual scene node is executed when the program is running.

[0073] Embodiment five:

[0074] Based on the same inventive concept as that of the first embodiment, this embodiment provides an electronic device, including: a processor and a storage;

[0075] The storage is used to store computer programs, and the processor is used to execute the computer programs stored in the storage, so that the electronic device executes the resource management method of the virtual scene node.

[0076] Those of ordinary skill in the art will appreciate that the modules of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0077] In the embodiments provided by the present invention, it should be understood that the division of modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules can be combined into one module, one module can be split into multiple modules, or some features can be ignored, etc.

[0078] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0079] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A resource management method for a virtual scene node, characterized in that: The following steps are involved: The driver layer automatically discovers various heterogeneous nodes in the virtual scene and connects the discovered heterogeneous nodes to the driver layer; Each heterogeneous node connected to the driver layer uses the driver development specifications provided by the control layer to develop drivers for its specific operations; The heterogeneous nodes connected to the driver layer register their node types and supported operations in the driver layer; The control layer performs object management and action management on heterogeneous nodes; The control layer receives the node call request from the caller through the communication interface, parses and executes it, and then feeds back to the caller.

2. A method for managing virtual scene node resources according to claim 1, characterized in that: The driver layer uses network scanning, configuration file reading, and API integration to automatically discover various heterogeneous nodes in the virtual scene.

3. A method for managing resources of virtual scene nodes according to claim 1, characterized in that: The driver development specifications provided by the control layer include node type information, state machine model, node data structure, and specific action implementation interface.

4. A resource management method for virtual scene nodes according to claim 3, characterized in that: The control layer receives the node call request from the caller through the communication interface, parses and executes it, and feeds back to the caller the following information: The control layer analyzes the overall topology in the caller's node call request and sorts out the network structure and target nodes to be built; For each target node, the control layer reads its node type, finds the corresponding driver according to the node type, and compares it with the state machine model provided by the driver; If the comparison is correct, the control layer calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

5. A method for managing virtual scene node resources according to claim 4, characterized in that: Also includes: The control layer allocates initial resources for each node call request, including computing resources, storage resources, and network resources; Monitor the resource usage of each node call request, including resource occupancy rate and resource request frequency; When the resource demand of a node call request exceeds the preset threshold, the resource expansion mechanism is triggered to allocate more resources to the node call request.

6. A method for managing resources of virtual scene nodes according to claim 5, characterized in that: The resource expansion mechanism includes, but is not limited to: increasing the number of computing cores of heterogeneous nodes in the virtual scene, increasing memory capacity, and improving network bandwidth.

7. A resource management system for virtual scene nodes, characterized in that: The method applied to any one of claims 1 to 6, comprising: a driving layer and a control layer; The driver layer includes a node discovery module and a driver development registration module; The node discovery module is used to automatically discover various heterogeneous nodes in the virtual scene and access the discovered heterogeneous nodes; The driver development registration module is used for each heterogeneous node to develop a driver for its own specific operation using the driver development specification provided by the control layer, and to register its own node type and supported operations; The control layer includes an application object manager, an action manager, a communication interface, a parsing module, a comparison module, and an executor; The object manager is used to manage heterogeneous node objects; the action manager is used to manage the actions of heterogeneous nodes; The communication interface is used to interact with the caller for data, including receiving the caller's node call request and reporting the execution result to the caller; the parsing module is used to parse the caller's node call request and sort out the network structure and target node to be constructed; the comparison module is used to read the node type of each target node, find the corresponding driver according to the node type, and compare it with the state machine model provided by the driver. If the comparison is correct, the executor calls the execution method provided by the driver to execute the action, and finally reports the execution result to the caller through the communication interface.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the resource management method for virtual scene nodes according to any one of claims 1 to 6.

9. A processor, characterized in that: The processor is used to run a program, wherein the program executes the resource management method for a virtual scene node according to any one of claims 1 to 6 when running.

10. An electronic device, characterized in that: include: processor and storage; The storage is used to store a computer program, and the processor is used to execute the computer program stored in the storage, so that the electronic device executes the resource management method for a virtual scene node according to any one of claims 1 to 6.