Power grid physical asset data protection method and system based on G-AES algorithm
By using the G-AES algorithm and containerization technology in the power grid physical assets business system, we build a G-AES data exchange pool and match the data encryption mode with the business container pool, which solves the problem of insufficient security isolation of power grid physical asset data and realizes data Efficient security protection and simplified resource management.
Patent Information
- Application Number
- CN202410769224.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-14
AI Technical Summary
The data of the power grid physical assets business system is saved in plain text and is isolated through system security partitions. The data security isolation measures are not perfect enough to effectively protect the data.
Adopt a data protection method based on the G-AES algorithm to containerize different types of interactive operations in the power grid physical assets business system, build a G-AES data exchange pool, match multiple data encryption modes and business container pools, and perform operations based on user operations The instructions perform data encryption and decryption to ensure data security during the interaction process.
It achieves effective security protection of power grid physical asset business system data, prevents unauthorized access, leakage and tampering, simplifies resource management and deployment, and ensures data security at all stages.
Smart Images

Figure CN118869237A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital information technology, and in particular to a method and system for protecting physical asset data of a power grid based on a G-AES algorithm. Background Art
[0002] As the scale of my country's digital construction increases year by year, while supporting the rapid development of society, it also faces more and more security challenges. Among them, data security is the core issue of digital construction. First, the means of data attacks are becoming more and more diverse. Various data attack methods such as virus invasion, Trojan horse implantation, network extortion, web phishing, etc. occur from time to time, resulting in serious consequences such as data loss and tampering. Second, there are widespread security vulnerabilities in native systems. The current digital construction relies on componentized modules. These components are often exposed to security vulnerabilities because of their wide use. In particular, open source components are more likely to be discovered by hackers, posing a serious threat to the data security of the system. Third, social engineering attacks caused by human factors are difficult to prevent. Common situations such as brute force password cracking to sneak into the system to tamper with data, internal personnel data leakage, and data storage devices being stolen directly threaten the core data security.
[0003] The data security of the power grid is a vital task, because the power system is one of the key infrastructures related to the national economy, national defense and public life. Data security risks such as data leakage, hacker attacks and data abuse are widespread, and enterprises need to further improve data security protection measures. At present, the data of the physical asset business system of the power grid is stored in plain text on the file system, database and cloud container. The business systems are isolated through system security partitions, making it difficult to effectively protect the data. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects in the prior art that the data of the power grid physical asset business system is stored in plain text on the file system, database and cloud container, and the various business systems are isolated through system security partitions, and the data security isolation measures are not perfect. A method and system for protecting power grid physical asset data based on the G-AES algorithm are provided.
[0005] In a first aspect, the present invention provides a method for protecting physical asset data of a power grid based on a G-AES algorithm, comprising:
[0006] Containerize different types of interactive operation services in the power grid physical asset business system to obtain multiple different types of business container pools;
[0007] Building a G-AES data exchange pool based on the G-AES algorithm, associating and matching multiple different data encryption modes in the G-AES data exchange pool with multiple business container pools, and any business container pool at least associates and matches one of the data encryption modes;
[0008] Obtaining user operation instructions through the power grid physical asset business system;
[0009] Generate a call instruction according to the user operation instruction, and call a target service container pool of a corresponding type and an associated target data encryption mode in response to the call instruction;
[0010] The target service container pool executes the corresponding type of interactive operation service in response to the user operation instruction, and performs data security protection on the target service container pool during the interactive operation service execution according to the target data encryption mode.
[0011] In some embodiments, the power grid physical asset business system includes: an ERP management system, a PMS management system, a TMS management system, a SCADA transaction system, and an ENS analysis system.
[0012] In some embodiments, the interactive operation service includes a database operation service, a file system operation service, a device perception data interaction service, and a cloud resource data interaction service;
[0013] The containerization of different types of interactive operation services in the power grid physical asset service system to obtain multiple different types of service container pools includes the following steps:
[0014] Packing the operating software and software configuration in the database operation business into an independent container image to form a database container pool;
[0015] Packaging storage services and access services in the file system operation business into independent container images to form a file system container pool;
[0016] The driver and driver service in the device-aware data interaction service are packaged into an independent container image, and integrated into a preset container operating environment to form a device-aware container pool;
[0017] The application program interface and development toolkit in the cloud resource data interaction service are packaged into an independent container image to form a cloud resource container pool.
[0018] In some embodiments, the constructing of a G-AES data exchange pool based on the G-AES algorithm and associating and matching a plurality of different data encryption modes in the G-AES data exchange pool with a plurality of the business container pools comprises the following steps:
[0019] Building a G-AES data exchange pool based on the G-AES algorithm, wherein the G-AES data exchange pool includes a plurality of different data encryption modes, wherein the data encryption modes include an AES-GCM data encryption mode, an AES-CBC data encryption mode, and an AES-CTR data encryption mode;
[0020] Associating and matching the database container pool with the AES-GCM data encryption mode;
[0021] Associating and matching the file system container pool with the AES-CBC data encryption mode;
[0022] The device perception container pool and the cloud resource container pool are both associated and matched with the AES-CTR data encryption mode.
[0023] In some embodiments, the executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps:
[0024] When the target service container pool is the database container pool, executing the database operation service based on the database container pool in response to the user operation instruction;
[0025] generating a first encryption request during the execution of the database operation service;
[0026] extracting to-be-encrypted database data from the database operation service in response to the first encryption request;
[0027] generating a first initial counter value by combining a database number of a database to which the to-be-encrypted database data belongs and a request generation time of the first encryption request;
[0028] Based on the first initial counter value and using the AES-GCM data encryption mode, a first data encryption step is performed on the database data to be encrypted to obtain encrypted database data;
[0029] Writing the encrypted database data into the database container pool;
[0030] The first data encryption step comprises the following steps:
[0031] The database data to be encrypted is split into N database data blocks according to the numerical length of the first initial counter value; N-1 first counter values are generated based on the first initial counter value and incremented according to a preset numerical increment; the first initial counter value and N-1 first counter values are encrypted by the AES algorithm to generate N first key blocks; the N database data blocks are XOR-encrypted with the N first key blocks to obtain N database ciphertext data blocks, and all the database ciphertext data blocks are merged.
[0032] In some embodiments, the executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps:
[0033] When the target service container pool is the file system container pool, executing the file system operation service in response to the user operation instruction based on the database container pool;
[0034] generating a second encryption request during the execution of the file system operation service;
[0035] extracting the file data to be encrypted from the file system operation service in response to the second encryption request;
[0036] generating a second initial counter value by combining the folder number of the folder to which the to-be-encrypted file data belongs and the request generation time of the second encryption request;
[0037] Based on the second initial counter value and using the AES-CBC data encryption mode, a second data encryption step is performed on the file data to be encrypted to obtain encrypted file data;
[0038] Writing the encrypted file data into the file system container pool;
[0039] The second data encryption step comprises the following steps:
[0040] The file data to be encrypted is split into M file data blocks according to the numerical length of the second initial counter value; the M file data blocks are sorted according to the generation time, and the first file data block is selected as the target file data block according to the sorting result; the target file data block is subjected to an XOR encryption operation with the second initial counter value to generate a file ciphertext data block; the next file data block is selected in sequence as the target file data block according to the sorting result, and the target file data block is subjected to the XOR encryption operation with the most recently generated file ciphertext data block, until all the file data blocks have undergone the XOR encryption operation once, M file ciphertext data blocks are obtained, and all the file ciphertext data blocks are merged.
[0041] In some embodiments, the executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps:
[0042] When the target service container pool is the device perception container pool or the cloud resource container pool, executing the device perception data interaction service or the cloud resource data interaction service based on the device perception container pool or the cloud resource container pool and in response to the user operation instruction;
[0043] Generating a third encryption request during the execution of the device perception data interaction service or the cloud resource data interaction service;
[0044] extracting the device interaction data to be encrypted from the device perception data interaction service, or extracting the cloud resource data to be encrypted from the cloud resource data interaction service in response to the third encryption request;
[0045] If the device interaction data to be encrypted is extracted, a third initial counter value is generated by combining the device number of the device to which the device interaction data to be encrypted belongs and the request generation time of the third encryption request;
[0046] Based on the third initial counter value and using the AES-CTR data encryption mode, a third data encryption step is performed on the device interaction data to be encrypted to obtain encrypted device interaction data, and the encrypted device interaction data is written into the device perception container pool;
[0047] If the cloud resource data to be encrypted is extracted, a third initial counter value is generated in combination with the server number of the cloud service end to which the cloud resource data to be encrypted belongs and the request generation time of the third encryption request;
[0048] Based on the third initial counter value and using the AES-CTR data encryption mode, the third data encryption step is performed on the cloud resource data to be encrypted to obtain encrypted cloud resource interaction data, and the encrypted cloud resource interaction data is written into the cloud resource container pool;
[0049] The third data encryption step comprises the following steps:
[0050] According to the numerical length of the third initial counter value, the device interaction data to be encrypted or the cloud resource data to be encrypted is split into L data blocks to be encrypted; the third initial counter value is encrypted by AES algorithm to generate a key stream block; the key stream block is XOR-encrypted with the L data blocks to be encrypted in sequence to obtain L encrypted data blocks, and all the encrypted data blocks are merged.
[0051] In a second aspect, an embodiment of the present invention provides a power grid physical asset data protection system based on the G-AES algorithm, including:
[0052] A containerization module is used to containerize different types of interactive operation services in the power grid physical asset service system to obtain multiple different types of service container pools;
[0053] An encryption mode construction module, used to construct multiple different data encryption modes based on the G-AES algorithm, and associate and match the multiple data encryption modes with the multiple business container pools, and any one of the business container pools is associated and matched with at least one data encryption mode;
[0054] An instruction acquisition module, used to acquire user operation instructions through the power grid physical asset business system;
[0055] A calling module, configured to generate a calling instruction according to the user operation instruction, and call a target service container pool of a corresponding type and an associated target data encryption mode in response to the calling instruction;
[0056] The interactive operation module is used to execute the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and to perform data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode.
[0057] In a third aspect, an embodiment of the present invention provides a power grid physical asset data protection device based on the G-AES algorithm, comprising a memory and a processor, wherein the memory is used to store computer program code and transmit the computer program code to the processor; the processor is used to execute any of the above-mentioned power grid physical asset data protection methods based on the G-AES algorithm according to instructions in the computer program code.
[0058] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for protecting physical asset data of a power grid based on the G-AES algorithm.
[0059] Compared with the prior art, the present invention has the following beneficial effects:
[0060] In a power grid physical asset data protection method based on the G-AES algorithm of the present invention, database software and configuration, file system storage and access services, device-aware drivers and services, and cloud resources are packaged into independent container images, respectively, and deployed and managed through container orchestration technology to obtain corresponding database container pools, file system container pools, device-aware container pools, and cloud resource container pools. Different data encryption modes are constructed based on the G-AES algorithm. The power grid physical asset business system executes database operations, file read and write operations, device-aware data interactions, and cloud resource data interactions according to user instructions and corresponding encryption modes. During the execution of interactive operations, personalized encryption methods are customized for different businesses based on the G-AES encryption algorithm to ensure that the data interaction process of each business can be effectively and securely protected. At the same time, the power grid physical asset business system includes five subsystems: ERP management system, PMS management system, TMS management system, SCADA transaction system, and ENS analysis system. The power grid physical asset business system spans power grid asset management, equipment management, operation and maintenance plan management and other businesses, and packages the database software and configuration, file storage and access services, device-aware drivers and services, and cloud resources of the above-mentioned multiple subsystems into four independent container pools: database access container pool, file system container pool, device-aware container pool, and cloud resource container pool. This simplifies and optimizes resource management, deployment, and maintenance, and data will not be lost due to the closure of some subsystems. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is a flow chart of a method for protecting physical asset data of a power grid based on the G-AES algorithm provided in an embodiment of the present invention.
[0062] Figure 2 It is a flowchart of containerizing the database, file system, device perception, and cloud resources of a power grid physical asset business system, provided by an embodiment of the present invention.
[0063] Figure 3 It is a structural diagram of a power grid physical asset business system, a G-AES data exchange pool, and a container pool provided in an embodiment of the present invention.
[0064] Figure 4It is a structural diagram of data security management provided by an embodiment of the present invention.
[0065] Figure 5 It is a schematic diagram of a method for bidirectional encryption, decryption, and file authorization using G-AES technology provided in an embodiment of the present invention.
[0066] Figure 6 It is a schematic diagram of a method for encryption using the G-AES technology provided in an embodiment of the present invention.
[0067] Figure 7 It is a structural diagram of a power grid physical asset data protection system based on the G-AES algorithm provided in an embodiment of the present invention.
[0068] Figure 8 It is a structural diagram of a power grid physical asset data protection device based on the G-AES algorithm provided in an embodiment of the present invention. Specific embodiments
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0070] like Figure 1 As shown, the method for protecting physical assets data of a power grid based on the G-AES algorithm disclosed in the present invention specifically includes the following steps:
[0071] S101. Containerize different types of interactive operation services in a power grid physical asset service system to obtain a plurality of different types of service container pools.
[0072] S102: construct a G-AES data exchange pool based on the G-AES algorithm, and associate and match multiple different data encryption modes in the G-AES data exchange pool with multiple business container pools, wherein any business container pool is associated and matched with at least one data encryption mode.
[0073] S103, obtaining user operation instructions through the power grid physical asset business system, wherein the user operation instructions are obtained through a preset user interface (such as a Web interface, an API interface, etc.).
[0074] S104. Generate a call instruction according to the user operation instruction, and call the corresponding type of target business container pool and the associated target data encryption mode in response to the call instruction. The user's operation instruction is received through a user interface (such as a Web interface, an API interface, a mobile application, etc.), and the user operation instruction is parsed. This step requires a parser to identify the type of user instruction, such as database operation, file operation, device interaction, or cloud resource interaction. Then, standardized call instructions are generated based on the parsing results. These call instructions are used internally in the system and are usually predefined strings or identifiers. The call instruction should be clear and unique, and can be directly mapped to a specific business container pool and encryption mode.
[0075] Select the corresponding business container pool according to the calling instruction, and use the business scheduling mechanism (such as routing table, service registration center, etc.) to manage and select the appropriate business container pool. At the same time, according to the type of business container pool, select the encryption mode that matches the business container pool from the G-AES data exchange pool. Each business container pool is associated with at least one data encryption mode. The selection of encryption mode should be based on the security requirements of the business type. For example, database operations may require the high-security AES-GCM mode, while file operations may use the AES-CBC mode.
[0076] Through the above steps, it is possible to generate a call instruction according to the user operation instruction, and respond to the call instruction to call the corresponding type of target business container pool and the associated target data encryption mode. The whole process requires a complete system architecture, including the user interface layer, instruction parsing layer, business scheduling layer, encryption service layer and business container pool. Each layer works closely together to ensure the efficiency and security of the system.
[0077] S105: executing the corresponding type of the interactive operation service based on the target service container pool in response to the user operation instruction, and performing data security protection on the target service container pool during the execution of the interactive operation service according to the corresponding target data encryption mode.
[0078] Through the above steps, first, identify different types of interactive operation services in the power grid physical asset business system, including database operations, file reading and writing, device data interaction, and cloud resource interaction. Use containerization technology (such as Docker) to encapsulate each business type into independent containers, which contain business logic, dependency libraries, and operating environments. Organize business containers of the same type into a business container pool, and each business container pool can contain multiple instances to improve the availability and scalability of the system. Through containerization, each business system can be effectively isolated to prevent data loss due to the closure of some subsystems.
[0079] Secondly, by using the G-AES data exchange pool, the physical asset business system can be isolated from the external system, and based on the G-AES encryption algorithm, the data can be stored in ciphertext form. Even if a data attack occurs in the external system, it will not affect the data security of the physical assets.
[0080] Finally, when accessing the content of the power grid physical asset business system, the power grid physical asset business system establishes a connection with the container pool through the G-AES data exchange pool and performs data interaction. In this way, during the operation of the system, it can generate a call instruction according to the user's operation instruction, and respond to the call instruction to call the corresponding type of target business container pool and the associated target data encryption mode. This design ensures the flexibility and security of the system, and can effectively handle various interactive operation businesses in the power grid physical asset business system, thereby protecting data security in real time and preventing unauthorized access and data leakage, tampering, loss and other problems.
[0081] Therefore, the power grid physical asset business system provided in this embodiment can solve the problem in related technologies that it is difficult to protect data without shutting down the system, and ensure the data security of the system at all stages of the data life cycle.
[0082] In some embodiments, the physical asset business system of the power grid may include subsystems such as an ERP management system, a PMS management system, a TMS management system, a SCADA transaction system, and an EMS analysis system. Among them, the ERP management system refers to the power enterprise resource planning system, which integrates advanced information technology and comprehensively integrates and optimizes the management of various resources of the power enterprise, including but not limited to material resources (such as equipment, materials, energy, etc.), human resources, financial resources, and information resources; the PMS management system refers to the power asset and production management system, which is mainly used for the management and maintenance of equipment and facilities in the power industry to ensure the safe and stable operation of the power grid; the TMS management system refers to a system for managing and monitoring the power communication network, which is mainly used to manage and maintain the communication infrastructure of the power system to ensure the reliable transmission of power business data and the stable operation of communication services; the SCADA transaction system refers to an automation system for remote monitoring and data acquisition, which is mainly used to obtain and control various parameters and equipment status in the operation of the power grid in real time; the EMS analysis system refers to an energy management and analysis system, which is used to realize energy management and data analysis of the power system to improve the energy efficiency and operation efficiency of the power system.
[0083] In this embodiment, the name, system type, data production method, and data maintenance unit of each subsystem of the power grid physical asset business system are as shown in the following table:
[0084]
[0085]
[0086] It should be noted that the power grid physical asset business system provided in this embodiment is not limited to the ERP management system, PMS management system, TMS management system, SCADA transaction system, and ENS analysis system subsystems mentioned in the above embodiments, but may also include other systems related to the operation and maintenance of power companies, such as distribution management systems, metering and billing systems, etc., which are not specifically limited here.
[0087] Power grid enterprises are asset-intensive and technology-intensive enterprises. Physical assets represented by power grid equipment account for more than 80%. The equipment is large in scale and diverse in types, and the construction and operation and maintenance management are relatively complex. At present, power grid enterprises have established multiple information systems including the above-mentioned ERP management system, PMS management system, TMS management system, SCADA transaction system, and ENS analysis system subsystem to assist in equipment asset management, and have saved a large amount of basic data on equipment assets, including:
[0088] (1) Equipment ledger, including equipment registration, asset classification, asset coding, asset attributes, and data protection and application of asset status information. Record basic information of each physical asset, including name, model, manufacturer, purchase date, purchase price, etc. Classify assets for better organization and management. Assign unique identifiers or codes to easily identify and retrieve assets. Record asset attributes such as size, weight, capacity, etc. Track the current status of assets, including status in the warehouse, issued, and under maintenance.
[0089] (2) Geographic information, including data protection and application of geographic location records, geographic analysis, and geographic visualization data. Associate physical assets with geographic locations and use geographic information systems (GIS) or GPS to record the precise location of assets. Use geographic information to perform spatial analysis, such as determining the optimal asset layout and route planning. Visualize assets on maps to better understand and manage their distribution and relevance.
[0090] (3) Operational maintenance, including maintenance plans, fault reports, maintenance history, material and spare parts management data protection and application. Develop and manage maintenance plans, including scheduled maintenance, emergency repairs, and preventive maintenance. Record asset failures and problems and track repair progress. Maintenance history records include information such as repair date, repair personnel, and repair costs. Manage the inventory of parts, materials, and spare parts required for maintenance.
[0091] (4) Identification information, including physical ID, RFID tags, identification information association, and data protection and application of identification scanning. Use technologies such as tags, QR codes, or RFID to add a unique identification to each asset. Associate asset identification information with equipment records and geographic information to enhance the accuracy and traceability of asset management. Use mobile devices or scanning devices to scan asset identification to obtain detailed information about the asset.
[0092] (5) Operation and maintenance operations, including work order management, task tracking, operation and maintenance planning, and data protection and application of resource allocation. Create and assign operation and maintenance work orders, specify tasks, responsible persons, and deadlines. Track the progress of operation and maintenance work and record task completion. Develop planned operation and maintenance operations to ensure equipment reliability and performance. Allocate the required manpower, equipment, and materials to perform operation and maintenance operations.
[0093] (6) Data protection and application for analysis and evaluation, performance analysis, cost analysis, decision support, and risk assessment. Analyze asset performance indicators, such as utilization, efficiency, and availability. Calculate the total cost of ownership of assets, including purchase, maintenance, and operating costs. Provide data and reports to help management make decisions on repairing, upgrading, replacing, or disposing of assets.
[0094] Among the relevant technologies, the main data security risks of the power grid physical asset business system are as follows:
[0095] (1) Data theft: Data theft refers to the unauthorized or malicious access, copying, transmission or use of sensitive data. Data theft may lead to corporate privacy leakage, exposure of confidential information, economic losses and reputation damage. Physical asset data is related to the core asset information of the power grid, especially the technical specifications and geographical location of power transmission and transformation equipment. Once the data is stolen, the entire power grid will be exposed to security risks and threaten the physical security of the power grid.
[0096] (2) Data tampering: Data tampering refers to malicious, unauthorized modification or manipulation of data in order to obtain improper benefits, deceive others, or damage the system. Data tampering may occur in various situations, including computer security, database management, network communications, and information transmission. Tampering with physical asset data may cause unstable operation of the power system and undermine the reliable supply of electricity. Tampering will cause the loss of important asset information of the enterprise and pose a serious threat to the life and safety of power equipment.
[0097] (3) Information leakage: Information leakage refers to the disclosure of sensitive, private or confidential information to unauthorized individuals, organizations or the public without authorization or consent. The information leaked by physical assets may include operation and maintenance guidelines, emergency plans and operating procedures. If this information falls into the hands of malicious parties, they can use it to interfere with the normal operation of the power system or even cause accidents.
[0098] In order to meet the requirements of data security of physical assets in modern power grids, this invention provides a complete data security solution for structured data and unstructured data application scenarios for physical asset business systems based on governance concepts such as classification and grading, role authorization, scenario security, and operation optimization. The core of this solution is the G-AES algorithm, which can meet the requirements of data security protection, sensitive data management, data security flow, and legal use. At the same time, by introducing the design of data exchange pools and container pools, the data security issues of the system at all stages of the data life cycle are solved.
[0099] In order to effectively isolate each business system and prevent data loss due to system shutdown, containerization technology can be used. Specifically, the interactive operation business includes database operation business, file system operation business, device perception data interaction business and cloud resource data interaction business. Step S101 containerizes different types of interactive operation business in the power grid physical asset business system to obtain multiple different types of business container pools, which specifically includes the following steps:
[0100] S201. Package the operating software and software configuration in the database operating business into an independent container image to form a database container pool.
[0101] In this embodiment, container technology, such as Docker, can be used to package the operating software and software configuration in the database operation business into an independent container image. This can achieve rapid deployment, upgrade and migration of the database, and isolate different databases from each other, thereby improving the elasticity and scalability of the system.
[0102] Docker is an open source containerization platform that helps developers package applications and their dependencies into independent containers for rapid deployment and portability. Docker's core components include the Docker engine, Docker images, Docker containers, and Docker repositories. Docker uses containerization technology to provide a convenient and efficient way to package and deploy applications, allowing developers to develop, test, and deploy applications more easily.
[0103] S202: Pack storage services and access services in the file system operation business into independent container images to form a file system container pool.
[0104] In this embodiment, by packaging the storage service and access service in the file system operation business into an independent container image, the file system can be flexibly managed and isolated, and the security and availability of file data can be improved. At the same time, the file data can be persistently stored through the container volume technology to achieve data persistence.
[0105] S203: Package the driver and driver service in the device-aware data interaction service into an independent container image, and integrate them into a preset container operating environment to form a device-aware container pool.
[0106] In this embodiment, by packaging the device-aware driver and driver service into a container image, access and management of the actual device can be achieved, and device resources can be isolated from other containers to ensure the security and performance of the device.
[0107] S204: Pack the application program interface and development toolkit in the cloud resource data interaction service into an independent container image to form a cloud resource container pool.
[0108] In this embodiment, a container management platform such as Kubernetes can be used to package cloud resources such as virtual machines and container instances into container images, and deploy and manage them through container orchestration technology. This can achieve flexible allocation and management of cloud resources and improve the elasticity and availability of the system.
[0109] Kubernetes (often referred to as K8s) is an open source container orchestration platform that is used to automatically deploy, schedule, and manage containerized applications. The goal of Kubernetes is to simplify the deployment and management of containerized applications and provide features such as high availability, elastic expansion, and automatic scaling. Kubernetes provides a rich set of command-line tools and management interfaces for managing and monitoring resources in the cluster. It can run in public, private, and hybrid cloud environments, and provides a highly scalable architecture suitable for large-scale application deployment. By using Kubernetes, developers can more easily manage and run containerized applications and improve the reliability, scalability, and maintainability of applications.
[0110] In summary, by containerizing interactive operation services including database operation services, file system operation services, device-aware data interaction services, and cloud resource data interaction services to obtain corresponding container pools, resource isolation and management can be achieved through containerization, and each business system can be effectively isolated to prevent data loss due to the closure of some subsystems. At the same time, containerization technology can provide a lightweight, portable, and scalable resource environment, simplify deployment and management operations, and improve system efficiency and security. In addition, the container pool can also realize elastic scheduling, automatic expansion, and fault recovery of resources, improving the reliability and availability of the practical asset business system.
[0111] In some embodiments, a G-AES data exchange pool is established, which can isolate the physical asset business system from the external system, including: data encryption, decryption, and file authorization.
[0112] Specifically, the G-AES data exchange pool can encrypt, decrypt, and authorize files for sensitive data in the physical asset business system, where the sensitive data includes at least one of the following: data in a database, content in a file. The G-AES data exchange pool can use different encryption modes of the G-AES algorithm for two-way encryption, decryption, and file authorization.
[0113] The following functions can also be achieved using the G-AES data exchange pool:
[0114] Access control protects data access rights through access control mechanisms, so that external systems need to be authenticated and authorized to access the data of the physical asset business system. For example, you can use authentication mechanisms such as usernames and passwords, API keys, etc. to verify the identity of external systems; at the same time, you can set access policies to control the read and write permissions of external systems to data.
[0115] Secure communication: In the process of data exchange between the physical asset business system and the external system, a secure communication protocol is used. For example, the secure communication protocol used can be HTTPS, RPC, etc. Through encrypted communication protocols, the confidentiality and integrity of data during transmission are ensured to prevent data from being tampered with or stolen.
[0116] Data isolation, using containerization technology to isolate the physical asset business system from different components and services of external systems. For example, the physical asset business system and external systems can be deployed in different network environments to ensure their physical and logical isolation to improve security and stability.
[0117] Monitoring and auditing: Monitor the data exchange process between the physical asset business system and the external system, record user access logs and behavior data, and audit data exchange behavior.
[0118] In summary, based on the G-AES data exchange pool, the isolation of the practical asset business system from the external system is achieved through data encryption, decryption, file authorization, access control, secure communication, data isolation, monitoring and auditing. These measures can protect the confidentiality, integrity and availability of data and ensure the security of data exchange.
[0119] In some embodiments, the G-AES data exchange pool includes: a database link unit, a file system access unit, a device perception unit, and a cloud resource unit. Figure 3 As shown, Figure 3 This is a structural diagram of the power grid physical asset business system, G-AES data exchange pool, and container pool provided by an embodiment of the present invention. When the target business container pool is the database container pool, step S105 specifically includes the following steps:
[0120] Executing the database operation service in response to the user operation instruction based on the database container pool;
[0121] generating a first encryption request during the execution of the database operation service;
[0122] extracting to-be-encrypted database data from the database operation service in response to the first encryption request;
[0123] generating a first initial counter value by combining a database number of a database to which the to-be-encrypted database data belongs and a request generation time of the first encryption request;
[0124] Based on the first initial counter value and using the AES-GCM data encryption mode, a first data encryption step is performed on the database data to be encrypted to obtain encrypted database data;
[0125] Writing the encrypted database data into the database container pool;
[0126] The first data encryption step comprises the following steps:
[0127] The database data to be encrypted is split into N database data blocks according to the numerical length of the first initial counter value; N-1 first counter values are generated based on the first initial counter value and incremented according to a preset numerical increment; the first initial counter value and N-1 first counter values are encrypted by the AES algorithm to generate N first key blocks; the N database data blocks are XOR-encrypted with the N first key blocks to obtain N database ciphertext data blocks, and all the database ciphertext data blocks are merged.
[0128] In this embodiment, the power grid physical asset business system establishes a connection with the database container pool through the database link unit and performs data interaction. The power grid physical asset business system establishes a connection with the database container pool through the database link unit and performs data interaction, including the following steps:
[0129] Configure database link unit: In the power grid physical asset business system, configure the parameters of the database link unit, including the database connection address, user name, password, etc. These parameters are used to establish a connection with the database container pool.
[0130] Establish a connection: Use the interface or method provided by the database link unit to establish a connection with the database container pool through the specified parameters. This can be a public connection, or you can create multiple connections as needed.
[0131] Execute data operations: After establishing a connection with the database container pool, the power grid physical asset business system can use the interface or method provided by the database link unit to perform database operations such as query, insert, modify, delete, etc.
[0132] For example, if the power grid physical asset business system needs to query the relevant information of a certain device, you can set it up according to the following steps:
[0133] Configure the database link unit: Add the configuration parameters of the database link unit in the configuration file of the power grid physical asset business system, such as the database connection address is "local host:3306", the user name is "user", and the password is "password".
[0134] Establish a connection: In the code of the power grid physical asset business system, use the method provided by the database link unit to establish a connection with the database container pool. For example, call the function connect(database_address, username, password) to establish a connection.
[0135] Execute query operation: After establishing a connection with the database container pool, the power grid physical asset business system can use the interface provided by the database link unit to execute query operations. For example, call the function: query("SELECT*FROMdevices WHEREid='123'") to query the device information with the device number "123".
[0136] Through the above settings, the power grid physical asset business system can establish a connection with the database container pool through the database link unit and perform data query operations.
[0137] In this embodiment, the data decryption process corresponding to the first data encryption step is specifically as follows:
[0138] Reading encrypted data: The power grid physical asset business system calls the database link unit to read the encrypted data from the database container pool.
[0139] Decryption request: A decryption request is sent to the database link unit through the power grid physical asset business system.
[0140] Key acquisition: Obtain the key required for decryption from the key management service through the database link unit.
[0141] Data decryption: Use the G-AES algorithm and the obtained key to decrypt the encrypted data and restore the original data.
[0142] Data processing: The physical asset business system of the power grid processes the decrypted data as needed. For example, the decrypted data can be queried, inserted, modified, deleted, etc., as data that needs to be encrypted again.
[0143] In this embodiment, the database operation interface is set as follows:
[0144] Interface design: In response to preset parameters, a database operation interface is established, which provides encryption and decryption functions, as well as traditional database operations (such as query, insert, modify, delete, etc.).
[0145] Parameter verification: Before executing database operations, this interface is used to verify the legitimacy of the incoming data and requests.
[0146] Call encryption / decryption: Depending on the operation type (write or read), the corresponding encryption or decryption service is called through this interface.
[0147] In some embodiments, when the target service container pool is the file system container pool, step S105 specifically includes the following steps:
[0148] Executing the file system operation service in response to the user operation instruction based on the database container pool;
[0149] generating a second encryption request during the execution of the file system operation service;
[0150] extracting the file data to be encrypted from the file system operation service in response to the second encryption request;
[0151] generating a second initial counter value by combining the folder number of the folder to which the to-be-encrypted file data belongs and the request generation time of the second encryption request;
[0152] Based on the second initial counter value and using the AES-CBC data encryption mode, a second data encryption step is performed on the file data to be encrypted to obtain encrypted file data;
[0153] Writing the encrypted file data into the file system container pool;
[0154] The second data encryption step comprises the following steps:
[0155] The file data to be encrypted is split into M file data blocks according to the numerical length of the second initial counter value; the M file data blocks are sorted according to the generation time, and the first file data block is selected as the target file data block according to the sorting result; the target file data block is subjected to an XOR encryption operation with the second initial counter value to generate a file ciphertext data block; the next file data block is selected in sequence as the target file data block according to the sorting result, and the target file data block is subjected to the XOR encryption operation with the most recently generated file ciphertext data block, until all the file data blocks have undergone the XOR encryption operation once, M file ciphertext data blocks are obtained, and all the file ciphertext data blocks are merged.
[0156] In this embodiment, the power grid physical asset business system establishes a connection with the file system container pool through the file system access unit and performs data exchange. The power grid physical asset business system establishes a connection with the file system container pool through the file system access unit and performs data exchange, including the following steps:
[0157] File system access unit: In response to input parameters, in the power grid physical asset business system, file system access parameters are configured, including file system type, path, access rights, file creation, data writing, file content reading, etc. These parameters are used to establish a connection with the file system container pool.
[0158] Configure file system access parameters: In response to the input parameters, configure the file in the power grid physical asset business system.
[0159] Establish connection: Based on the configured file system access parameters, establish a connection between the power grid physical asset business system and the file system container pool. This can be a common connection, or multiple connections can be created as needed. For example, use the file system access unit as a medium, and use the interface provided by the file system access unit as a bridge to achieve data transmission between the power grid physical asset business system and the file system container pool through the interface.
[0160] Perform data read and write operations: After establishing a connection with the file system container pool, the power grid physical asset business system can use the interface or method provided by the file system access unit to perform file read and write operations, such as creating files, writing data, reading file contents, etc.
[0161] For example, the power grid physical asset business system needs to store the relevant information of the device in the file system and then read it. You can set it up by following the steps below:
[0162] Configure the file system access unit: Add the configuration parameters of the file system access unit in the configuration file of the power grid physical asset business system, such as the file system type is "local", the file path is " / path / to / files", and the access rights are read and write.
[0163] Establishing a connection: In the code of the power grid physical asset business system, use the method provided by the file system access unit to establish a connection with the file system container pool. For example, call the function: connect(file_system_type, file_path, access_permissions) to establish a connection.
[0164] Perform data read and write operations: After establishing a connection with the file system container pool, the power grid physical asset business system can use the interface provided by the file system access unit to perform data read and write operations. For example, call the function: write_file("device_info.txt","Device information") to write device information to the file, and call the function read_file("device_info.txt") to read the content in the file.
[0165] Through the above settings, the power grid physical asset business system can establish a connection with the file system container pool through the file system access unit and perform data storage and reading operations.
[0166] In this embodiment, the data decryption process corresponding to the second data encryption step is as follows:
[0167] Reading encrypted files: Reading encrypted file data from the file system container pool based on the file system access unit through the power grid physical asset business system.
[0168] Decryption request: A decryption request is sent to the file system access unit through the power grid physical asset business system.
[0169] Key acquisition: The file system access unit obtains the key required for decryption from the key management service.
[0170] Data decryption: Use the G-AES algorithm and the obtained key to decrypt the encrypted file data and restore the original data.
[0171] Data processing: The decrypted data is subsequently processed by the power grid physical asset business system based on preset parameters. For example, for the decrypted original data, the power grid physical asset business system redefines the file system type, path, access rights, file creation, data writing, file content reading, etc., so that the redefined data is used as the data to be encrypted again.
[0172] In this embodiment, the design of the file system access unit interface is as follows:
[0173] Interface definition: In response to the input parameters, define the interface of the file system access unit, including encryption, decryption, and file creation, writing, reading and other operations.
[0174] Parameter verification: Use this interface to verify the incoming parameters before executing the operation to ensure security and data correctness.
[0175] Logging: Logs of all file operations, including encryption and decryption, are recorded to facilitate auditing and monitoring.
[0176] In some embodiments, when the target service container pool is the device perception container pool or the cloud resource container pool, step S105 specifically includes the following steps:
[0177] Executing the device-aware data interaction service or the cloud resource data interaction service based on the device-aware container pool or the cloud resource container pool and in response to the user operation instruction;
[0178] Generating a third encryption request during the execution of the device perception data interaction service or the cloud resource data interaction service;
[0179] extracting the device interaction data to be encrypted from the device perception data interaction service, or extracting the cloud resource data to be encrypted from the cloud resource data interaction service in response to the third encryption request;
[0180] If the device interaction data to be encrypted is extracted, a third initial counter value is generated by combining the device number of the device to which the device interaction data to be encrypted belongs and the request generation time of the third encryption request;
[0181] Based on the third initial counter value and using the AES-CTR data encryption mode, a third data encryption step is performed on the device interaction data to be encrypted to obtain encrypted device interaction data, and the encrypted device interaction data is written into the device perception container pool;
[0182] If the cloud resource data to be encrypted is extracted, a third initial counter value is generated in combination with the server number of the cloud service end to which the cloud resource data to be encrypted belongs and the request generation time of the third encryption request;
[0183] Based on the third initial counter value and using the AES-CTR data encryption mode, the third data encryption step is performed on the cloud resource data to be encrypted to obtain encrypted cloud resource interaction data, and the encrypted cloud resource interaction data is written into the cloud resource container pool;
[0184] The third data encryption step comprises the following steps:
[0185] According to the numerical length of the third initial counter value, the device interaction data to be encrypted or the cloud resource data to be encrypted is split into L data blocks to be encrypted; the third initial counter value is encrypted by AES algorithm to generate a key stream block; the key stream block is XOR-encrypted with the L data blocks to be encrypted in sequence to obtain L encrypted data blocks, and all the encrypted data blocks are merged.
[0186] Traditional initial counter value generation methods usually rely on global counters or simple incrementing modes, which may be effective in a single system, but are prone to conflicts, performance bottlenecks and management difficulties in a complex multi-service environment. In this embodiment, the method of generating initial counter values by combining specific business-related numbers (such as database numbers, folder numbers, device numbers, server numbers) is more suitable for systems that require high reliability and high performance. On the one hand, generating initial counter values in combination with business numbers can ensure uniqueness and avoid conflicts. Each business operation has its own unique number, which means that the generated counter value is unique between different business operations, avoiding duplication and coverage problems. This uniqueness greatly reduces the risk of counter conflicts and improves the stability of the system. On the other hand, this method provides good business isolation. Each business operation has its own independent counter value generation method to ensure that the counter values of different business operations will not interfere with each other. This isolation not only improves the stability and reliability of the system, but also simplifies management and maintenance. For example, if a problem occurs in a business operation, the specific business number and operation type can be quickly located, which is convenient for troubleshooting and system maintenance. Thirdly, the counter value generated by combining the business number also has strong traceability. Through the business number, the source of the counter value can be easily tracked and managed. If a counter value is abnormal, the specific business number and operation type can be quickly located, which is convenient for troubleshooting and system maintenance. This traceability is particularly important for the management and maintenance of complex systems. In summary, this counter value generation method is particularly suitable for complex multi-business operation scenarios. The method of generating the initial counter value by combining the specific business-related number significantly improves the stability, reliability and performance of the system by enhancing uniqueness, isolation, traceability, scalability and distributed support.
[0187] In this embodiment, if the target service container pool is a device perception container pool, the power grid physical asset service system establishes a connection with the device perception container pool through the device perception unit and performs data exchange. The power grid physical asset service system establishes a connection with the device perception container pool through the device perception unit and performs data exchange, including the following steps:
[0188] Configure the device perception unit: In the power grid physical asset business system, configure the parameters of the device perception unit, including device type, communication protocol, connection mode, etc. These parameters are used to establish a connection with the device perception container pool.
[0189] Establish a connection: Use the functions or interfaces provided by the device awareness unit to establish a connection with the device awareness container pool according to the configured parameters. This may involve using information such as device ID or network address to identify the device. The connection can be direct (such as through a physical interface) or indirect (such as through a network protocol).
[0190] Data interaction operations: After establishing a connection with the device perception container pool, the power grid physical asset business system can use the interface or method provided by the device perception unit to perform data interaction operations, such as sending instructions, receiving sensor data, etc.
[0191] For example, the power grid physical asset business system needs to interact with the temperature sensor device and obtain temperature data in real time. You can set it up by following the steps below:
[0192] Configure the device sensing unit: Add the configuration parameters of the device sensing unit in the configuration file of the power grid physical asset business system, such as the device type is "Temperature Sensor", the communication protocol is "Modbus TCP", and the connection method is Ethernet. In addition, you can also specify the device's IP address and port information.
[0193] Establish a connection: In the code of the power grid physical asset business system, use the function or interface provided by the device perception unit to establish a connection with the device perception container pool according to the configured parameters. For example, call the function: connect(device_type,communication_protocol,connection_params) to perform a connection operation.
[0194] Data interaction operation: After establishing a connection with the device perception container pool, the power grid physical asset business system can use the interface provided by the device perception unit to perform data interaction operations. For example, call the function: send_command("ReadTemperature", device_id) to send a temperature reading instruction to the device, and call the function: get_sensor_data(device_id,"Temperature") to obtain the real-time data of the temperature sensor.
[0195] Through the above settings, the power grid physical asset business system can establish a connection with the device perception container pool through the device perception unit and perform data interaction operations.
[0196] In this embodiment, in order to realize that the power grid physical asset business system establishes a connection with the device perception container pool through the device perception unit and performs data interaction, the following method can be used:
[0197] Parameter configuration: In response to the input parameters, the device perception parameters are configured in the power grid physical asset business system, including the device type, communication protocol, connection method, etc., to obtain an encryption request.
[0198] Connection establishment: Based on the device perception parameters, a connection is established between the power grid physical asset business system and the device perception container pool. For example, the device perception unit is used as a medium, and the interface provided by the device perception unit is used as a bridge to transmit the device perception parameters between the power grid physical asset business system and the device perception container pool through the interface.
[0199] Data reception: The power grid physical asset business system receives monitoring data from sensors based on the device sensing unit.
[0200] Data preprocessing: Perform necessary preprocessing on the received raw data, such as formatting, denoising, etc.
[0201] In this embodiment, the data decryption process corresponding to the third data encryption step is as follows:
[0202] Decryption request: A decryption request is sent to the device sensing unit through the power grid physical asset business system.
[0203] Key acquisition: The key required for decryption is obtained from the key management service through the device perception unit.
[0204] Data decryption: Use the G-AES algorithm and the obtained key to decrypt the encrypted data and restore the original device perception data. Alternatively, for the decrypted original device perception data, modify the device type, communication protocol, connection method, etc. of the decrypted original device perception data through the power grid physical asset business system to use the modified device perception data as the data to be encrypted again.
[0205] In this embodiment, the device perception unit interface design is as follows:
[0206] Interface definition: Based on preset parameters, define the interface of the device perception unit, including data encryption, decryption, and reception and transmission of device perception data.
[0207] Parameter verification: This interface verifies the parameters passed in before executing the operation to ensure security and data correctness.
[0208] In this embodiment, if the target service container pool is a cloud resource container pool, the power grid physical asset service system establishes a connection with the cloud resource container pool through the cloud resource unit and performs data exchange. The power grid physical asset service system establishes a connection with the cloud resource container pool through the cloud resource unit and performs data exchange, including the following steps:
[0209] Configure cloud resource units: In the power grid physical asset business system, configure the parameters of the cloud resource unit, including cloud platform information, authorization credentials, network settings, etc. These parameters are used to establish a connection with the cloud resource container pool.
[0210] Establish a connection: Use the functions or interfaces provided by the cloud resource unit to establish a connection with the cloud resource container pool according to the configured parameters. This may involve the use of authentication information such as access tokens and authentication keys. The connection method can be based on the cloud platform API call, message queue, WebSocket, etc.
[0211] Data interaction operations: After establishing a connection with the cloud resource container pool, the power grid physical asset business system can use the interface or method provided by the cloud resource unit to perform data interaction operations, such as uploading data, downloading data, calling cloud services, etc.
[0212] For example, the power grid physical asset business system needs to upload sensor data to the database on the cloud platform and be able to extract data from the database on the cloud platform. You can set it up by following the steps below:
[0213] Configure cloud resource unit: Add the configuration parameters of the cloud resource unit in the configuration file of the power grid physical asset business system, such as the cloud platform is "AWS", the authorization credentials are the access key and password, and the network configuration is to use the HTTPS protocol. In addition, you can also specify information such as the database name and table name on the cloud platform.
[0214] Establish a connection: In the code of the power grid physical asset business system, use the functions or interfaces provided by the cloud resource unit to establish a connection with the cloud resource container pool according to the configured parameters. For example, call the function: connect(cloud_platform, access_key, secret_key, endpoint) to perform a connection operation.
[0215] Data interaction operation: After establishing a connection with the cloud resource container pool, the power grid physical asset business system can use the interface provided by the cloud resource unit to perform data interaction operations. For example, call the function: upload_data(sensor_data,database,table) to upload sensor data to the specified database and data table on the cloud platform, and call the function: query_data(database,table,query_condition) to extract data from the database on the cloud platform according to conditions.
[0216] Through the above settings, the power grid physical asset business system can establish a connection with the cloud resource container pool through the cloud resource unit and perform data interaction operations.
[0217] In this embodiment, in order to realize that the power grid physical asset business system establishes a connection with the cloud resource container pool through the cloud resource unit and performs data interaction, the following method can be used:
[0218] Parameter configuration: In response to the input parameters, cloud resource parameters are configured in the power grid physical asset business system, including cloud platform information, authorization credentials, network settings, etc.
[0219] Connection establishment: Establish a connection between the power grid physical asset business system and the cloud resource container pool according to the configured cloud resource parameters. For example, use the cloud resource unit as a medium and the interface provided by the cloud resource unit as a bridge to transmit the cloud resource parameters between the power grid physical asset business system and the cloud resource container pool through the interface.
[0220] Data preparation: In response to the input parameters, confirm the data that needs to be uploaded to or downloaded from the cloud or call the cloud service to obtain the encryption request.
[0221] Upload data: Use the interface provided by the cloud resource unit to upload data to the cloud platform.
[0222] Download data: Use the interface provided by the cloud resource unit to download data from the cloud platform.
[0223] Call cloud services: Call various services on the cloud platform through cloud resource units.
[0224] In this embodiment, the data decryption process corresponding to the third data encryption step is as follows:
[0225] Decryption request: After the data is downloaded, a decryption request is sent to the cloud resource unit through the power grid physical resource business system.
[0226] Data decryption: Use the G-AES algorithm and the obtained key to decrypt the encrypted data and restore the original data. Alternatively, for the original data, modify the cloud platform information, authorization credentials, network settings, upload data, download data, call cloud services, etc. of the original data through the power grid physical resource business system to use the modified data as the data to be encrypted again.
[0227] In this embodiment, the cloud resource unit can reconstruct the API and SDK as follows:
[0228] API Refactoring: Refactor the API provided by the cloud resource unit to support encryption and decryption operations, ensuring that all data transmitted through the API is encrypted.
[0229] SDK reconstruction: Reconstruct the SDK provided by the cloud resource unit and integrate encryption and decryption functions so that developers can easily encrypt and decrypt data when using the SDK.
[0230] In some embodiments, the G-AES Data Exchange Pool is a system for securely exchanging data in a network. It is based on the G-AES encryption algorithm, which is a variant of the Advanced Encryption Standard. The G-AES algorithm is an organic combination of a data encryption algorithm and a data signature algorithm. The algorithm can simultaneously implement two functions, data encryption and data compression, and utilize the data signature process to ensure data integrity and reduce the workload of the data encryption process. Therefore, the algorithm includes two parts: a data encryption part and a signature part. The data encryption part is used to implement the conversion process from plaintext to ciphertext, and the signature part is before the data encryption part to hash the plaintext data. The two parts each have their own inverse algorithm, which can restore the ciphertext to plaintext.
[0231] The G-AES data exchange pool protects the confidentiality, integrity and availability of data during data transmission by encrypting and decrypting data using keys and adopting secure communication protocols. It can be used to protect sensitive information, such as personal identity information, financial transaction data, etc., by encrypting this information during data exchange to prevent unauthorized access or tampering.
[0232] like Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of data security management provided by an embodiment of the present invention. The G-AES data exchange pool plays a key protective role in network communications to ensure the secure transmission of data. It can be applied to various scenarios, including internal corporate communications, e-commerce transactions, cloud computing data transmission, etc. By using the G-AES data exchange pool, users can exchange sensitive data with confidence while protecting the confidentiality and integrity of the data.
[0233] Specifically, to ensure data security, for containerized databases and containerized file systems: When storing data, the G-AES algorithm is applied to containerized databases and file systems to encrypt sensitive data. When the data is accessed, the G-AES algorithm is used to decrypt the data for business processing in the physical asset business system.
[0234] For containerized device perception and containerized cloud resources: The G-AES algorithm performs encryption and decryption calculations on device perception and cloud resources in the container to ensure the security of data during the interaction with device perception and cloud resources.
[0235] Based on the G-AES algorithm, the G-AES data exchange pool securely isolates the business system from the external system and accesses the database, files, device perception, and cloud resources through containerization. In this solution, all data is stored in the system in ciphertext.
[0236] In another embodiment, the G-AES data exchange pool performs bidirectional encryption, decryption, and file authorization based on G-AES technology. Figure 5 is a schematic diagram of a method for bidirectional encryption, decryption, and file authorization using the G-AES technology provided by an embodiment of the present invention, Figure 6 is a schematic diagram of a method for encryption using the G-AES technology provided in an embodiment of the present invention, such as Figure 5 , Figure 6 As shown in the figure, G-AES is implemented with DES structure and Rijndael algorithm as the core. DES is a block cipher algorithm. It uses a 56-bit key to encrypt and decrypt data packets in units of 64 bits. The length of ciphertext and plaintext is the same, both 64 bits. DES is a symmetric cryptographic system. Encryption and decryption use the same key. At the same time, DES encryption and decryption also use the same algorithm. The security of DES depends on the key. Each different transformation in G-AES operates on an intermediate result called a state. The state is an intermediate cryptographic result. It can be represented by a matrix of bytes with 4 rows and the number of columns is Nb. Nb is equal to the block length divided by 32. The block length specified in the G-AES specification is 128 bits, and its Rijndael algorithm supports blocks of lengths of 128 bits, 192 bits, and 256 bits. Therefore, depending on the block length, the number of columns of the matrix will be Nb=4, Nb=6, and Nb=8 respectively. G-AES also uses the Feistel structure. Unlike many cryptographic algorithms, the number of G-AES rounds varies with the key length. The number of G-AES rounds is denoted as Nr.
[0237] G-AES is a key-iterative block cipher that involves repeated application of rounds to the state. The number of rounds is Nr, which depends on the block length and key length. The encryption process consists of an initial key addition, denoted AddRoundkey, followed by Nr-1 rounds of transformations Round, and finally a round transformation FinalRound. The initial key addition and each round transformation take the state State and a round key as input. The key of the i-th round is denoted ExpandedKey[i], and the input of the initial key addition is denoted Expandedkey[0]. The process of deriving the ExpandedKey from the CipherKey is denoted KeyExpansion.
[0238] The step SubBytes is the only nonlinear transformation in the G-AES cipher. It is a Bricklayer permutation that contains an S-Box acting on the state byte. SRD is used to represent the specific S-Box used in G-AES. The design criteria of SRD require that when designing SRD, the criteria to be followed are in order of importance:
[0239] (1) Nonlinearity: The maximum correlation amplitude between input and output must be as small as possible, and the maximum value of the differential propagation probability must be as small as possible.
[0240] (2) Numerical complexity: It should have a complex algebraic expression in GF(28).
[0241] In this embodiment, the G-AES data exchange pool is encapsulated in a Jar package and can be applied in various business systems through the adapter mode to replace the traditional database JDBC connection. The system adopts a lightweight Java EE (Java Platform, Enterprise Edition) B / S architecture design, and the underlying JDAP (Java Data Application Platform) framework is used for support. Specifically, the G-AES data exchange pool can achieve easy deployment, client-free installation, and convenient upgrade and maintenance. The above solution has low requirements on the software and hardware environment and high development efficiency.
[0242] In summary, the embodiment of the present invention provides a method for protecting the data of physical assets of a power grid based on the G-AES algorithm. The method uses containerization technology to simplify and optimize resource management, deployment, and maintenance of databases, files, cloud resources, and equipment management through containerization technology. At the same time, the method reconstructs a comprehensive platform for the management of physical assets of a power grid based on the G-AES data exchange pool. While providing highly secure data, the platform spans the services of power grid asset management, equipment management, and operation and maintenance plan management, achieving the following technical effects:
[0243] (1) Database management: Containers can be used to deploy and manage various database systems, such as MySQL, PostgreSQL, and MongoDB. Set database configuration parameters in the container, including user name, password, database name, etc. Use G-AES to encrypt and store the database so that data is not lost after the container is restarted.
[0244] (2) File management: File management can be achieved through containers, such as using distributed file systems such as NFS, GlusterFS, or Ceph, or uploading files to cloud storage services. G-AES bidirectional encryption and decryption and file authentication are used at both the transport layer and the file layer to prevent files from being tampered with.
[0245] (3) Cloud resource management: Managing cloud resources (such as virtual machines, storage buckets, database services, etc.) requires the cloud provider's API and SDK. G-AES will be used to reconstruct the API and SDK to achieve two-way encryption and decryption.
[0246] (4) Device management: Device management can use containers to monitor, control and manage various devices, including Internet of Things (IoT) devices, network devices, etc., with the same encryption method as cloud resources.
[0247] According to the method described in the above embodiment, this embodiment will be further described from the perspective of the power grid physical asset data protection system based on the G-AES algorithm. Specifically, Figure 7 As shown, a structural diagram of a power grid physical asset data protection system based on the G-AES algorithm provided by an embodiment of the present invention, the system includes:
[0248] The containerization module is used to containerize different types of interactive operation services in the power grid physical asset business system to obtain multiple different types of business container pools. The power grid physical asset business system includes: ERP management system, PMS management system, TMS management system, SCADA transaction system, EMS analysis system, and the interactive operation business includes database operation business, file system operation business, device perception data interaction business and cloud resource data interaction business.
[0249] The containerization module is specifically used to: package the operating software and software configuration in the database operation business into an independent container image to form a database container pool; package the storage service and access service in the file system operation business into an independent container image to form a file system container pool; package the driver and driver service in the device perception data interaction business into an independent container image, and integrate them into a preset container operating environment to form a device perception container pool; package the application program interface and development toolkit in the cloud resource data interaction business into an independent container image to form a cloud resource container pool.
[0250] The encryption mode construction module is used to construct multiple different data encryption modes based on the G-AES algorithm, and associate and match the multiple data encryption modes with the multiple business container pools, and any one of the business container pools is associated and matched with at least one data encryption mode.
[0251] The encryption mode construction module is specifically used to: based on the G-AES algorithm, construct a G-AES data exchange pool including the AES-GCM data encryption mode, the AES-CBC data encryption mode and the AES-CTR data encryption mode, associate and match the database container pool with the AES-GCM data encryption mode, associate and match the file system container pool with the AES-CBC data encryption mode, and associate and match the device perception container pool and the cloud resource container pool with the AES-CTR data encryption mode.
[0252] The instruction acquisition module is used to acquire user operation instructions through the power grid physical asset business system.
[0253] The calling module is used to generate a calling instruction according to the user operation instruction, and call a target business container pool of a corresponding type and an associated target data encryption mode in response to the calling instruction.
[0254] The interactive operation module is used to execute the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and to perform data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode.
[0255] When the target business container pool is the database container pool, the interactive operation module is used to:
[0256] Executing the database operation service in response to the user operation instruction based on the database container pool;
[0257] A first encryption request is generated during the execution of the database operation business; in response to the first encryption request, database data to be encrypted is extracted from the database operation business; a first initial counter value is generated in combination with a database number of a database to which the database data to be encrypted belongs and a request generation time of the first encryption request; based on the first initial counter value and using the AES-GCM data encryption mode, a first data encryption step is performed on the database data to be encrypted to obtain encrypted database data; and the encrypted database data is written into the database container pool.
[0258] The first data encryption step includes the following steps: splitting the database data to be encrypted into N database data blocks according to the numerical length of the first initial counter value; generating N-1 first counter values based on the first initial counter value and incrementally according to a preset numerical increment; encrypting the first initial counter value and N-1 first counter values using the AES algorithm to generate N first key blocks; performing an XOR encryption operation on the N database data blocks and the N first key blocks to obtain N database ciphertext data blocks, and merging all the database ciphertext data blocks.
[0259] When the target service container pool is the file system container pool, the interactive operation module is used to:
[0260] The method comprises: executing the file system operation service in response to the user operation instruction based on the database container pool; generating a second encryption request during the execution of the file system operation service; extracting the file data to be encrypted from the file system operation service in response to the second encryption request; generating a second initial counter value in combination with the folder number of the folder to which the file data to be encrypted belongs and the request generation time of the second encryption request; performing a second data encryption step on the file data to be encrypted based on the second initial counter value and using the AES-CBC data encryption mode to obtain encrypted file data; and writing the encrypted file data into the file system container pool.
[0261] The second data encryption step includes the following steps: splitting the file data to be encrypted into M file data blocks according to the numerical length of the second initial counter value; sorting the M file data blocks according to the generation time, and selecting the first file data block as the target file data block according to the sorting result; performing an XOR encryption operation on the target file data block and the second initial counter value to generate a file ciphertext data block; selecting the next file data block as the target file data block in turn according to the sorting result, and performing the XOR encryption operation on the target file data block and the most recently generated file ciphertext data block, until all the file data blocks have undergone the XOR encryption operation once, obtaining M file ciphertext data blocks, and merging all the file ciphertext data blocks.
[0262] When the target service container pool is the device perception container pool or the cloud resource container pool, the interactive operation module is used to:
[0263] Based on the device perception container pool or the cloud resource container pool and in response to the user operation instruction, the device perception data interaction service or the cloud resource data interaction service is executed: a third encryption request is generated during the execution of the device perception data interaction service or the cloud resource data interaction service; in response to the third encryption request, the device interaction data to be encrypted is extracted from the device perception data interaction service, or the cloud resource data to be encrypted is extracted from the cloud resource data interaction service; if the device interaction data to be encrypted is extracted, a third initial counter value is generated in combination with the device number of the device to which the device interaction data to be encrypted belongs and the request generation time of the third encryption request; based on the third initial The third data encryption step is performed on the device interaction data to be encrypted using the AES-CTR data encryption mode to obtain encrypted device interaction data, and the encrypted device interaction data is written into the device perception container pool; if the cloud resource data to be encrypted is extracted, a third initial counter value is generated in combination with the server number of the cloud service end to which the cloud resource data to be encrypted belongs and the request generation time of the third encryption request; based on the third initial counter value and using the AES-CTR data encryption mode, the third data encryption step is performed on the cloud resource data to be encrypted to obtain encrypted cloud resource interaction data, and the encrypted cloud resource interaction data is written into the cloud resource container pool.
[0264] The third data encryption step includes the following steps: splitting the device interaction data to be encrypted or the cloud resource data to be encrypted into L data blocks to be encrypted according to the numerical length of the third initial counter value; encrypting the third initial counter value with the AES algorithm to generate a key stream block; performing XOR encryption operations on the key stream block and the L data blocks to be encrypted in turn to obtain L encrypted data blocks, and merging all the encrypted data blocks.
[0265] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.
[0266] in addition, Figure 8 FIG. 1 is a schematic diagram of a structure of a power grid physical asset data protection device based on the G-AES algorithm provided by an embodiment of the present invention. Figure 8 As shown, an embodiment of the present invention further provides a power grid physical asset data protection device based on the G-AES algorithm, the protection device 400 includes: a processor 401 and a memory 402, the memory 402 stores a computer program, and the processor 401 is configured to run the computer program to execute the steps in any of the above method embodiments.
[0267] In some embodiments, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0268] An embodiment of the present invention provides a storage medium storing a plurality of instructions, which can implement any step of the above-mentioned method for protecting physical asset data of power grid based on G-AES algorithm when executed by a processor.
[0269] In this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
Claims
1. A method for protecting physical assets data of a power grid based on the G-AES algorithm, characterized in that: include: Containerize different types of interactive operation services in the power grid physical asset business system to obtain multiple different types of business container pools; Building a G-AES data exchange pool based on the G-AES algorithm, associating and matching multiple different data encryption modes in the G-AES data exchange pool with multiple business container pools, and any business container pool at least associates and matches one of the data encryption modes; Obtaining user operation instructions through the power grid physical asset business system; Generate a call instruction according to the user operation instruction, and call a target service container pool of a corresponding type and an associated target data encryption mode in response to the call instruction; The target service container pool executes the corresponding type of the interactive operation service in response to the user operation instruction, and performs data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode.
2. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 1, characterized in that: The power grid physical asset business system includes: ERP management system, PMS management system, TMS management system, SCADA transaction system, and EMS analysis system.
3. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 1, characterized in that: The interactive operation services include database operation services, file system operation services, device perception data interaction services and cloud resource data interaction services; The containerization of different types of interactive operation services in the power grid physical asset service system to obtain multiple different types of service container pools includes the following steps: Packing the operating software and software configuration in the database operation business into an independent container image to form a database container pool; Packaging storage services and access services in the file system operation business into independent container images to form a file system container pool; The driver and driver service in the device-aware data interaction service are packaged into an independent container image, and integrated into a preset container operating environment to form a device-aware container pool; The application program interface and development toolkit in the cloud resource data interaction service are packaged into an independent container image to form a cloud resource container pool.
4. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 3 is characterized in that: The step of constructing a G-AES data exchange pool based on the G-AES algorithm and associating and matching a plurality of different data encryption modes in the G-AES data exchange pool with a plurality of the business container pools comprises the following steps: Building a G-AES data exchange pool based on the G-AES algorithm, wherein the G-AES data exchange pool includes a plurality of different data encryption modes, wherein the data encryption modes include an AES-GCM data encryption mode, an AES-CBC data encryption mode, and an AES-CTR data encryption mode; Associating and matching the database container pool with the AES-GCM data encryption mode; Associating and matching the file system container pool with the AES-CBC data encryption mode; The device perception container pool and the cloud resource container pool are both associated and matched with the AES-CTR data encryption mode.
5. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 4 is characterized in that: The step of executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps: When the target service container pool is the database container pool, executing the database operation service based on the database container pool in response to the user operation instruction; generating a first encryption request during the execution of the database operation service; extracting to-be-encrypted database data from the database operation service in response to the first encryption request; generating a first initial counter value by combining a database number of a database to which the to-be-encrypted database data belongs and a request generation time of the first encryption request; Based on the first initial counter value and using the AES-GCM data encryption mode, a first data encryption step is performed on the database data to be encrypted to obtain encrypted database data; Writing the encrypted database data into the database container pool; The first data encryption step comprises the following steps: Splitting the to-be-encrypted database data into N database data blocks according to the numerical length of the first initial counter value; Based on the first initial counter value and according to a preset numerical increment, N-1 first counter values are generated incrementally; Encrypt the first initial counter value and N-1 first counter values using an AES algorithm to generate N first key blocks; Perform an XOR encryption operation on the N database data blocks and the N first key blocks to obtain N database ciphertext data blocks, and merge all the database ciphertext data blocks.
6. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 4 is characterized in that: The step of executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps: When the target service container pool is the file system container pool, executing the file system operation service in response to the user operation instruction based on the database container pool; generating a second encryption request during the execution of the file system operation service; extracting the file data to be encrypted from the file system operation service in response to the second encryption request; generating a second initial counter value by combining the folder number of the folder to which the to-be-encrypted file data belongs and the request generation time of the second encryption request; Based on the second initial counter value and using the AES-CBC data encryption mode, a second data encryption step is performed on the file data to be encrypted to obtain encrypted file data; Writing the encrypted file data into the file system container pool; The second data encryption step comprises the following steps: Splitting the to-be-encrypted file data into M file data blocks according to the numerical length of the second initial counter value; Sorting the M file data blocks according to the generation time, and selecting the first file data block as the target file data block according to the sorting result; Performing an XOR encryption operation on the target file data block and the second initial counter value to generate a file ciphertext data block; According to the sorting result, the next file data block is selected in turn as the target file data block, and the target file data block and the newly generated file ciphertext data block are subjected to the XOR encryption operation until all the file data blocks have undergone the XOR encryption operation once, M file ciphertext data blocks are obtained, and all the file ciphertext data blocks are merged.
7. The method for protecting physical assets data of a power grid based on the G-AES algorithm according to claim 4 is characterized in that: The step of executing the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction and performing data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode comprises the following steps: When the target service container pool is the device perception container pool or the cloud resource container pool, executing the device perception data interaction service or the cloud resource data interaction service based on the device perception container pool or the cloud resource container pool and in response to the user operation instruction; Generating a third encryption request during the execution of the device perception data interaction service or the cloud resource data interaction service; extracting the device interaction data to be encrypted from the device perception data interaction service, or extracting the cloud resource data to be encrypted from the cloud resource data interaction service in response to the third encryption request; If the device interaction data to be encrypted is extracted, a third initial counter value is generated by combining the device number of the device to which the device interaction data to be encrypted belongs and the request generation time of the third encryption request; Based on the third initial counter value and using the AES-CTR data encryption mode, a third data encryption step is performed on the device interaction data to be encrypted to obtain encrypted device interaction data, and the encrypted device interaction data is written into the device perception container pool; If the cloud resource data to be encrypted is extracted, a third initial counter value is generated in combination with the server number of the cloud service end to which the cloud resource data to be encrypted belongs and the request generation time of the third encryption request; Based on the third initial counter value and using the AES-CTR data encryption mode, the third data encryption step is performed on the cloud resource data to be encrypted to obtain encrypted cloud resource interaction data, and the encrypted cloud resource interaction data is written into the cloud resource container pool; The third data encryption step comprises the following steps: Splitting the to-be-encrypted device interaction data or the to-be-encrypted cloud resource data into L to-be-encrypted data blocks according to the numerical length of the third initial counter value; Encrypting the third initial counter value using the AES algorithm to generate a key stream block; The key stream block is subjected to XOR encryption operation with the L data blocks to be encrypted in sequence to obtain L encrypted data blocks, and all the encrypted data blocks are merged.
8. The power grid physical asset data protection system based on the G-AES algorithm is characterized by: include: A containerization module is used to containerize different types of interactive operation services in the power grid physical asset business system to obtain multiple different types of business container pools; An encryption mode construction module, used to construct multiple different data encryption modes based on the G-AES algorithm, and associate and match the multiple data encryption modes with the multiple business container pools, and any one of the business container pools is associated and matched with at least one data encryption mode; An instruction acquisition module, used to acquire user operation instructions through the power grid physical asset business system; A calling module, configured to generate a calling instruction according to the user operation instruction, and call a target service container pool of a corresponding type and an associated target data encryption mode in response to the calling instruction; The interactive operation module is used to execute the interactive operation service of the corresponding type based on the target service container pool in response to the user operation instruction, and to perform data security protection on the target service container pool during the execution of the interactive operation service according to the target data encryption mode.
9. A power grid physical asset data protection device based on the G-AES algorithm, characterized in that: Including memory and processor: The memory is used to store computer program code and transmit the computer program code to the processor; The processor is used to execute the power grid physical asset data protection method based on the G-AES algorithm as described in any one of claims 1 to 7 according to the instructions in the computer program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for protecting data of physical assets of a power grid based on the G-AES algorithm described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Interaction encryption method of grid system server and client
CN108809940A
Service data backup and extraction method and computer readable medium
CN110830571A
Container backup restoration method and device and medium thereof
CN114328007A
Multi-service data hierarchical management and control method and system based on regulation and control cloud platform
CN116760631A
Multi-service-system-oriented security isolation method and device for fusion type terminal
CN117240564A
Cited By
Data security access system and method and electronic device
CN119814356A
