Resource calling method and device, electronic equipment, storage medium and product
By using preset switching modules and protocol-independent mimicking schedulers in the energy information system, the problem of how to improve the system's attack resistance and reliability without modifying the original business logic is solved, and efficient and secure resource calls are achieved.
Patent Information
- Application Number
- CN202411669193.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-11-21
AI Technical Summary
How to ensure the resistance of energy information system resource calls and ensure the high reliability and stability of the system without modifying the business logic of the original energy information system operation.
The preset exchange module obtains the operation data to be executed by the service heterogeneous processing unit in the energy information system, and determines the target operation data through the protocol-independent mimicking scheduler, sends it to an external device to obtain the target data, and finally feeds the target data back to the service heterogeneous processing unit for processing.
It realizes the resistance to offensiveness and high reliability of energy information system resource calls without modifying the original business logic, reduces the maintenance costs caused by the introduction of security, and improves operational efficiency.
Smart Images

Figure CN119520108A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer network security technology, and in particular to a resource calling method, device, electronic equipment, storage medium and product. Background Art
[0002] With the increasing development of information technology, the information services, communication networks and physical entities of energy information systems are gradually deeply integrated, making the perception and control of the energy side more accurate and efficient. However, this deep integration also introduces potential risks of cyber attacks. Energy information systems not only affect the management security and quality of energy enterprises, but also involve the security of customers' own information. Therefore, it is necessary to strengthen the construction of energy information systems and improve their security. Energy information systems need to adopt effective anti-attack technologies and methods to meet these challenges. Among them, reliable intrinsically secure peripheral collaborative resource calling methods are an important research direction. By optimizing and collaboratively calling peripheral resources, the response speed and accuracy of energy information systems can be improved, thereby enhancing their ability to resist cyber attacks. In addition, this method can also improve the automation and intelligence level of energy systems, making them more adaptable to the development needs of modern energy systems.
[0003] Researching the reliable security of anti-attack in energy information systems has important practical significance and application value. Through continuous technological innovation and optimization, the security and reliability of energy information systems can be further improved to ensure the stable operation of energy systems and the information security of customers. However, if the business logic of the energy information system is changed while introducing security, it is necessary to replace the hardware equipment and re-burn the software application, which will not guarantee the continuity and stability of energy supply. Energy supply suspension or energy fluctuation caused by system adjustment or interruption will inevitably lead to failures or accidents. How to ensure the high reliability of the system is crucial to ensure the safe and stable operation of the energy system. During the operation of the energy system, if the system needs to modify the business logic frequently, it will increase the difficulty and cost of maintenance and upgrading. Therefore, how to ensure the anti-attack of the resource call of the energy information system on the basis of not modifying the business logic of the original energy information system operation has become a problem that needs to be solved urgently. Summary of the invention
[0004] The present invention provides a resource calling method, device, electronic device, storage medium and product to ensure the anti-attack capability of the resource calling of the energy information system without modifying the business logic of the original energy information system operation, which has become an urgent problem to be solved.
[0005] According to one aspect of the present invention, a resource calling method is provided, wherein the method comprises:
[0006] Acquire the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two;
[0007] Determining target operation data based on the to-be-executed operation data through a protocol-independent mimetic scheduler, and sending the target operation data to an external device;
[0008] The target data collected by the external device based on the target operation data is acquired, and the target data is fed back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
[0009] According to another aspect of the present invention, a resource calling device is provided, wherein the device comprises:
[0010] A data acquisition module, used for acquiring the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two;
[0011] A data determination module, configured to determine target operation data based on the to-be-executed operation data through a protocol-independent mimetic scheduler, and send the target operation data to an external device;
[0012] The data transmission module is used to obtain the target data collected by the external device based on the target operation data, and feed back the target data to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the resource calling method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource calling method described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the resource calling method of any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention obtains the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two; determines the target operation data based on the to-be-executed operation data through the protocol-independent mimetic scheduler, and sends the target operation data to the external device, thereby improving the accuracy of the target operation data and avoiding the reliability of the to-be-executed operation data being affected by attacks; obtains the target data collected by the external device based on the target operation data, and feeds the target data back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing, without modifying the original business logic code of the business heterogeneous processing unit, and the original business heterogeneous processing unit business can be seamlessly operated and put into the original business work to perform data collection tasks; at the same time, it can ensure the high reliability of the energy information system, significantly reduce the maintenance cost caused by the introduction of security, and improve operational efficiency; at the same time, by adding a preset exchange module, the problem of being unable to access multiple business heterogeneous processing units at the same time can be solved, and it has good scalability, which is convenient for timely obtaining the to-be-executed operation data sent by multiple business heterogeneous processing units.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flowchart of a resource calling method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flowchart of a resource calling method provided according to Embodiment 2 of the present invention;
[0024] Figure 3 This is a schematic diagram of a resource calling system architecture provided according to Embodiment 3 of the present invention;
[0025] Figure 4is a schematic diagram of the structure of a heterogeneous processing unit provided according to Embodiment 3 of the present invention;
[0026] Figure 5 is a structural diagram of a resource calling device provided according to Embodiment 4 of the present invention;
[0027] Figure 6 It is a structural schematic diagram of an electronic device for implementing the resource calling method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 This is a flow chart of a resource calling method provided according to the first embodiment of the present invention. This embodiment is applicable to the case where the energy information system obtains target data. The method can be executed by a resource calling device. The resource calling device can be implemented in the form of hardware and / or software. The resource calling device can be configured in a security defense chip. The security defense chip is installed between the energy information system terminal and the external device. The security defense chip can be installed in an electronic device. Figure 1 As shown, the method includes:
[0032] S110. Obtaining the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on a preset exchange module; wherein the number of the business heterogeneous processing units is at least two.
[0033] Among them, the preset switching module, that is, the preset switch module, can unify the Ethernet interface (ETH), general-purpose input / output port (GPIO) or fiber (FIBER) peripheral interface of all business heterogeneous processing units to manage them, and the switch module will merge the data according to the interface type and send it to the corresponding peripheral interface on the security defense chip. In one embodiment, the preset switching module may include a unified interface module, an intelligent identification configuration module, a dynamic data routing module and a data processing optimization module. Among them, the unified interface module is used to unify different protocol physical interfaces and protocols into specific physical interfaces and communication protocols, support plug-and-play of various types of business heterogeneous processing units and the expansion of additional peripheral interfaces, without the need for additional protocol conversion equipment or software. The intelligent identification configuration module can automatically identify the type, model and transmission protocol of the connected business heterogeneous processing unit, and automatically configure the data transmission parameters of the operation to be executed according to the preset rules or user instructions, and set a data buffer inside it to adapt to the mismatch of data transmission rates of different business heterogeneous processing units. The dynamic data routing module can realize the dynamic data routing function. Specifically, the dynamic data routing module can flexibly select the best data transmission path according to the destination, priority and peripheral status of the operation data to be executed, so as to ensure the efficient and reliable transmission of the operation data to be executed. The data processing optimization module can perform preliminary processing on the collected operation data to be executed, such as format conversion, filtering, compression, etc., to improve the availability and transmission efficiency of the operation data to be executed.
[0034] The energy information system can be understood as a comprehensive system for collecting, processing, analyzing and managing energy-related data. For example, the energy information system can include a power system. In the actual operation process, the energy information system can include external devices, business heterogeneous processing units, and upper-level devices (target devices). The external devices can be connected to the collection device to collect target data, such as voltage, current, etc. The upper-level device (target device) can be a device that requires target data. The business heterogeneous processing unit can report the target data to the target device through an Ethernet interface (ETH) or a fiber optic (FIBER) peripheral interface. The business heterogeneous processing unit refers to a component used to process different types of business data, and the number of business heterogeneous processing units can include multiple. The operation data to be executed can be understood as the parameter information of the execution operation of the required acquisition data generated by each business heterogeneous processing unit. In one embodiment, the operation data to be executed may include the heterogeneous processing core number and the business processing core number in the business heterogeneous processing unit, the type of the peripheral interface of the heterogeneous unit to be executed, the number of the peripheral interface of the heterogeneous unit to be executed, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed and the relevant commands specified by the protocol, the length and format of the target data to be collected, and the transmission time information. Among them, the heterogeneous unit to be executed refers to the business heterogeneous unit from which the operation data to be executed is sourced. Each business heterogeneous processing unit may include at least one heterogeneous unit to be executed. In one embodiment, each heterogeneous unit to be executed may correspond to one business.
[0035] In one embodiment, the operation data to be executed generated by the business heterogeneous processing unit in the energy information system can be collected through a preset exchange module. Generally speaking, the preset exchange module can be connected to different peripheral interfaces of the business heterogeneous processing unit. For example, the preset exchange module can collect the operation data to be executed of the business heterogeneous processing unit through a GPIO interface, an ETH interface, and a FIBER interface.
[0036] S120 . Determine target operation data based on the operation data to be executed through a protocol-independent mimetic scheduler, and send the target operation data to an external device.
[0037] Among them, the protocol-independent mimetic scheduler can be used to judge the operation data to be executed and output the target operation data. In the actual operation process, the protocol-independent mimetic scheduler is protocol-independent, and the operation data to be executed can be pre-encapsulated into a message, such as a User Datagram Protocol (UDP) message to avoid the function modification of the preset mimetic scheduler by the operation data to be executed. In the actual operation process, a preset unified protocol processing module can be set, and a preset byte header is added to the header of the operation data to be executed by the preset unified protocol processing module, and the operation data to be executed is encapsulated and changed into a message to be executed, which is convenient for the judgment of the protocol-independent mimetic scheduler. The target operation data can be understood as the operation data to be executed after the judgment. Generally speaking, the operation data to be executed generated by each heterogeneous business processing unit is the same, and when there is a malicious attack, there may be a situation where the operation data to be executed generated by the heterogeneous business processing unit is different from that of other heterogeneous business processing units due to the attack, and the target operation data can be determined based on the operation data to be executed generated by each heterogeneous business processing unit. The external device refers to a device for collecting target data, and the external device can be used to collect data information outside the energy information system.
[0038] In an embodiment, the operation data to be executed can be input into a protocol-independent mimetic scheduler, and the target operation data can be obtained by the protocol-independent mimetic scheduler. Generally speaking, the operation data to be executed can be encapsulated as a message to be executed. In the actual operation process, the protocol-independent mimetic scheduler can be used to determine whether each operation data to be executed is the same. When each operation data to be executed is the same, the operation data to be executed is determined as the target operation data; when each operation data to be executed is different, the number of times the historical operation data to be executed of the business heterogeneous processing unit to which the different operation data to be executed belongs is inconsistent with the historical operation data to be executed of other business heterogeneous processing units can be determined. When the number of inconsistencies is determined to be greater than or equal to a preset number threshold, the same operation data to be executed is used as the target operation data. If the number of inconsistencies is less than the preset number threshold, the result can be fed back to the business heterogeneous processing unit so that the business heterogeneous processing unit regenerates the operation data to be executed. After the target operation data is determined, the target operation data can be sent to an external device so that the external device obtains the target data based on the target operation data.
[0039] S130. Acquire target data of the external device based on the target operation data, and feed back the target data to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
[0040] The target data refers to the data acquired by the target device according to the target operation data. For example, the target data may include but is not limited to voltage, current, etc. The target device may be understood as a superior device, which is a device that requires target data. In one embodiment, the target data may also be a response to a successful or failed processing.
[0041] In an embodiment, an external device can obtain target data according to target operation data, and a security defense chip can obtain target data collected by an external device, and send the target data to a business heterogeneous processing unit according to the type of the peripheral interface of the to-be-executed heterogeneous unit in the target operation data, the number of the peripheral interface of the to-be-executed heterogeneous unit, the transmission protocol information of the peripheral interface of the to-be-executed heterogeneous unit, and the relevant commands specified by the protocol. After the business heterogeneous processing unit obtains the target data, it can upload the target data to the target device so that the target device can process it. In the actual operation process, a protocol-independent mimetic scheduler can be integrated into the security defense chip, and the security defense chip can copy the target data through the protocol-independent mimetic scheduler and send it to the business heterogeneous processing unit. Since the to-be-executed operation data is pre-encapsulated as a message before entering the protocol-independent mimetic scheduler, the target data can be unpacked and sent to the business heterogeneous processing unit after the protocol-independent mimetic scheduler copies the target data.
[0042] In an embodiment of the present invention, the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system is obtained; wherein the number of the business heterogeneous processing units is at least two; the target operation data is determined based on the to-be-executed operation data by a protocol-independent mimetic scheduler, and the target operation data is sent to an external device, so as to improve the accuracy of the target operation data and avoid the reliability of the to-be-executed operation data being affected by attacks; the target data collected by the external device based on the target operation data is obtained, and the target data is fed back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing, without modifying the original business logic code of the business heterogeneous processing unit, and the original business heterogeneous processing unit business can be seamlessly operated and put into the original business work to perform data collection tasks; at the same time, the high reliability of the energy information system can be guaranteed, the maintenance cost caused by the introduction of security can be significantly reduced, and the operation efficiency can be improved; at the same time, by adding a preset switching module, the problem of being unable to access multiple business heterogeneous processing units at the same time can be solved, and it has good scalability, which is convenient for timely obtaining the to-be-executed operation data sent by multiple business heterogeneous processing units.
[0043] In one embodiment, a service heterogeneous processing unit includes: a heterogeneous processing core, a preset heterogeneous unit peripheral interface, and at least one service processing core;
[0044] Wherein, the preset heterogeneous unit peripheral interface is connected to the preset switching module;
[0045] The preset exchange module is used to collect the number of the peripheral interface of the heterogeneous unit to be executed in the business heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
[0046] Among them, the heterogeneous processing core is usually composed of multiple different types of processors, such as a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), etc. The heterogeneous core architecture in each heterogeneous unit can adopt one of the advanced reduced instruction set machines (ARM), the fifth generation reduced instruction set (RISC Five, RISCV), and the microprocessor without interlocked pipeline stages (Microprocessor without Interlocked Pipeline Stages) MIPS. The preset heterogeneous unit peripheral interface can be understood as an interface for transmitting data. Exemplarily, the preset heterogeneous unit peripheral interface can include but is not limited to a GPIO peripheral interface, an ETH interface, and a FIBER peripheral interface. The business processing core is used to process different businesses, and the business processing core can be XMOS.
[0047] Embodiment 2
[0048] Figure 2 1 is a flow chart of a resource calling method provided according to Embodiment 2 of the present invention. This embodiment is a further description of a resource calling method based on the above embodiment. Figure 2 As shown, the method includes:
[0049] S201. Receive operation data collected by a preset switching module connected to a service heterogeneous processing unit as operation data to be executed.
[0050] The operation data to be executed include: the number of the peripheral interface of the heterogeneous unit to be executed in the business heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
[0051] The heterogeneous processing core number is used to indicate the heterogeneous processing core; the business processing core number is used to indicate the business processing core; the type of the peripheral interface of the heterogeneous unit to be executed may include but is not limited to the GPIO peripheral interface, the ETH interface and the FIBER peripheral interface; the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed may include but is not limited to the Inter-Integrated Circuit (I2C) protocol, the serial peripheral interface (SPI) protocol, etc.; the transmission time information refers to the time synchronization information, which is convenient for synchronization with the target device time, and is used to record logs to facilitate backtracking in abnormal situations.
[0052] In an embodiment, after the service heterogeneous processing unit generates operation data, the operation data can be collected by the preset switching module and used as the operation data to be executed. In the actual operation process, the preset switching module can adaptively identify the type of the service heterogeneous processing unit, determine the operation data from different peripheral interfaces, such as GPIO interface, ETH interface and FIBER interface, and use the received operation data as the operation data to be executed.
[0053] S202: Encapsulate the to-be-executed operation data into a to-be-executed message based on a preset unified protocol processing module.
[0054] The preset unified protocol processing module can be used to add a preset byte header to the head of the operation data to be executed, and encapsulate the operation data to be executed into a message to be executed. In the actual operation process, the message to be executed can be a UDP message.
[0055] In an embodiment, the operation data to be executed may be input into a preset unified protocol processing module, and the preset unified protocol processing module may add information such as a message header to the operation data to be executed, thereby encapsulating the operation data to be executed into a message to be executed.
[0056] S203: Input each to-be-executed message into the protocol-independent virtual scheduler, and determine whether each to-be-executed message is the same based on the protocol-independent virtual scheduler.
[0057] Among them, the protocol-independent mimetic scheduler is used to make decisions on the messages to be executed and determine the target operation data.
[0058] In an embodiment, each message to be executed may be input into the protocol-independent virtual scheduler at the same time, and the protocol-independent virtual scheduler is used to determine whether each message to be executed is the same.
[0059] S204: When it is determined that the messages to be executed are the same, determine the messages to be executed as target operation data.
[0060] In an embodiment, when it is determined that the messages to be executed are the same, the messages to be executed may be used as target operation data.
[0061] S205. When it is determined that the messages to be executed are different, determine the business heterogeneous processing unit to which the different messages to be executed belong as the abnormal heterogeneous processing unit, extract the historical messages to be executed of the abnormal heterogeneous processing unit, and determine the number of times the historical messages to be executed are inconsistent with the historical messages to be executed of other business heterogeneous processing units.
[0062] The historical to-be-executed messages refer to the to-be-executed messages generated historically by the heterogeneous service processing units, and the abnormal heterogeneous service processing units refer to the heterogeneous service processing units to which different to-be-executed messages belong.
[0063] In an embodiment, when it is determined that the messages to be executed are different, the abnormal heterogeneous processing unit of the business heterogeneous processing unit to which the different messages to be executed belong can be determined, and it is determined that the abnormal heterogeneous processing unit has an abnormal situation. The historical messages to be executed of the abnormal heterogeneous processing unit and the historical messages to be executed of other business heterogeneous processing units can be extracted to determine the number of times the historical messages to be executed of the abnormal heterogeneous processing unit are inconsistent with the historical messages to be executed of the other business heterogeneous processing units.
[0064] S206: When it is determined that the number of inconsistencies is greater than or equal to a preset number threshold, the to-be-executed operation data corresponding to the same to-be-executed messages in each to-be-executed message is used as the target operation data.
[0065] When the number of inconsistencies is greater than or equal to the preset number threshold, the to-be-executed operation data corresponding to the same to-be-executed message in each to-be-executed message can be determined and used as the target operation data.
[0066] In one embodiment, before taking the to-be-executed operation data corresponding to the same to-be-executed message in each to-be-executed message as the target operation data, the method further includes:
[0067] Initialize the abnormal heterogeneous processing unit.
[0068] In an embodiment, when it is determined that the number of times that the abnormal heterogeneous processing unit is inconsistent with other heterogeneous processing units is greater than or equal to a preset number threshold, the abnormal heterogeneous processing unit may be converted to a cleaning state, ie, initialized.
[0069] S207: When it is determined that the number of inconsistencies is less than a preset number threshold, feedback is given to the abnormal service heterogeneous processing unit indicating that the to-be-executed messages are different.
[0070] In an embodiment, when the number of inconsistencies is determined to be less than a preset number threshold, response information may be generated and fed back to the abnormal business heterogeneous processing unit so that the abnormal business heterogeneous processing unit determines that an abnormality exists.
[0071] S208: Send the target operation data to an external device.
[0072] S290: Receive data collected by an external device according to the length and format of the target data to be collected in the target operation data based on a preset peripheral interface as target data.
[0073] Among them, the preset peripheral interface can be understood as an interface for transmitting data. Exemplarily, the preset peripheral interface can include but is not limited to a GPIO peripheral interface, an ETH interface and a FIBER peripheral interface.
[0074] In an embodiment, after the external device receives the target operation data, it can collect data according to the target operation data, and then receive the data collected by the external device according to the target operation data as the target data through a preset peripheral interface. In the actual operation process, the external device can parse the target operation data and collect data through information such as the format and length of the target data to be collected in the target operand. After the external device collects the data, it can actively report the data to the security defense chip; or the security defense chip can actively obtain the data collected by the external device.
[0075] S210. Copy the target data through the protocol-independent mimetic scheduler, and transmit the target data to the service heterogeneous processing unit according to the number of the peripheral interface of the to-be-executed heterogeneous unit in the target operation data and the transmission protocol information of the peripheral interface of the to-be-executed heterogeneous unit.
[0076] In an embodiment, after the target data is determined, the target data can be determined through a protocol-independent pseudo-scheduler, and the target business heterogeneous processing unit receiving the target data can be determined through the number of the peripheral interface of the heterogeneous unit to be executed, and the target data can be sent to the business heterogeneous processing unit through the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed. In an embodiment of the present invention, operation data collected by a preset switching module connected to a business heterogeneous processing unit is received as operation data to be executed, the operation data to be executed is encapsulated as a message to be executed based on a preset unified protocol processing module, the operation data to be executed of each message to be executed is input into a preset mimetic scheduler protocol-independent mimetic scheduler, and the mimetic scheduler determines whether the messages to be executed of each operation data to be executed are the same based on the preset mimetic scheduler protocol-independent mimetic scheduler. When it is determined that the messages to be executed are the same, the messages to be executed are determined as target operation data. When it is determined that the messages to be executed are different, the business heterogeneous processing unit to which the different messages to be executed belong is determined as an abnormal heterogeneous processing unit, the historical messages to be executed of the abnormal heterogeneous processing unit are extracted, the number of times the historical messages to be executed are inconsistent with the historical messages to be executed of other business heterogeneous processing units is determined, and when it is determined that they are different, the business heterogeneous processing unit to which the different messages to be executed belong is determined as an abnormal heterogeneous processing unit. When the number of inconsistencies is greater than or equal to the preset number threshold, the to-be-executed operation data corresponding to the same to-be-executed message in each to-be-executed message is used as the target operation data; when it is determined that the number of inconsistencies is less than the preset number threshold, the response information that the to-be-executed message is different is fed back to the abnormal business heterogeneous processing unit, and the target operation data is sent to the external device, and the data collected by the external device according to the length and format of the to-be-collected target data in the target operation data is received based on the preset peripheral interface as the target data, the target data is copied through the protocol-independent pseudo-scheduler, and the target data is transmitted to the business heterogeneous processing unit according to the number of the to-be-executed heterogeneous unit peripheral interface in the target operation data and the transmission protocol information of the to-be-executed heterogeneous unit peripheral interface, so as to realize the collection of target data without directly connecting the business heterogeneous processing unit to the external device, thereby improving the security of collecting target data.
[0077] In one embodiment, after receiving data collected by an external device according to the length and format of the target data to be collected in the target operation data as target data based on a preset peripheral interface, the method further includes:
[0078] Encapsulate the target data into a target message.
[0079] In an embodiment, since the protocol-independent mimetic scheduler is protocol-independent when performing copy distribution and arbitration, after receiving the data collected by the external device according to the length and format of the target data to be collected in the target operation data as the target data based on the preset peripheral interface, the target data can be encapsulated into a target message, wherein the target message can be a UDP message. In the actual operation process, a preset unified protocol processing module can be set in the security defense chip, and the forwarding of the operation data to be executed, the target operation data and the target data can be realized through the preset unified protocol processing module. After receiving the target message, the protocol-independent mimetic scheduler will no longer parse the content, which can speed up the message processing and forwarding speed. At the same time, a configuration interface for the byte header content is reserved in the register to facilitate user modification, so as to realize the protocol-independent characteristics of the protocol-independent mimetic scheduler in processing the message, and avoid a large number of modifications to the functions of the protocol-independent mimetic scheduler. The encapsulation and unpacking of messages are processed by the preset unified protocol processing module to improve the execution efficiency of the protocol-independent mimetic scheduler.
[0080] In one embodiment, before transmitting the target data to the service heterogeneous processing unit according to the number of the peripheral interface of the to-be-executed heterogeneous unit in the target operation data and the transmission protocol information of the peripheral interface of the to-be-executed heterogeneous unit, the method further includes:
[0081] The data contained in the target message is extracted as the target data.
[0082] In an embodiment, before the target data is transmitted to the business heterogeneous processing unit according to the number of the peripheral interface of the heterogeneous unit to be executed in the target operation data and the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, the target operation data and the target data parsing message can be used to facilitate the business heterogeneous processing unit and the external device to read the corresponding data content.
[0083] Embodiment 3
[0084] Figure 3 This is a schematic diagram of a resource call system architecture provided according to the third embodiment of the present invention. This embodiment is based on the above embodiment, taking three heterogeneous processing units as an example, taking the heterogeneous processing units as business heterogeneous processing units, the preset peripheral interfaces include GPIO peripheral interfaces, ETH and FIBER peripheral interfaces for processing message information synchronization, the protocol-independent mimetic scheduler is a protocol-independent mimetic scheduler IP, and the security defense chip includes a preset peripheral interface, a co-processing operating system, a unified protocol processing module, a protocol-independent mimetic scheduler IP and a mimetic strategy module as an example, to further illustrate a resource call method. Figure 3 As shown, the system includes: external devices, security defense chips and heterogeneous processing units.
[0085] Among them, the co-processor runs the operating system for the operation data to be executed, the target operation data and the forwarding of the target data; the protocol-independent mimetic scheduler IP is used to judge the operation data to be executed to obtain the target operation data; and the mimetic strategy module is used to provide the judgment strategy.
[0086] In one embodiment, Figure 4 is a schematic diagram of the structure of a heterogeneous processing unit provided according to Embodiment 3 of the present invention, such as Figure 4 As shown, the heterogeneous processing unit of the energy information system initiates an operation requiring data collection or message transmission at the peripheral interface; the heterogeneous processing unit includes four business processing cores XMOS for processing different businesses, and also includes a heterogeneous processing core. The heterogeneous core architecture in each heterogeneous unit can adopt one of ARM, RISCV, and MIPS. The heterogeneous processing unit also includes a GPIO peripheral interface for external data collection, and ETH and FIBER peripheral interfaces for processing message information synchronization.
[0087] When each business core of a heterogeneous processing unit runs an energy business, it will involve a group of GPIO ports and an ETH interface, etc., and there are multiple business cores in a heterogeneous processing unit to run different business logics, so there are many peripheral interfaces, and it is not very convenient to manage when the mimetic security defense chip sends data messages, and the mimetic security defense chip has limited peripheral interfaces and cannot meet the one-to-one correspondence. In addition, if heterogeneous processing units are added later, it is also impossible to adapt to this change scenario. Therefore, the present invention innovatively designs a switch module to uniformly connect all GPIO, ETH and other interfaces of all heterogeneous processing units to it for management. The switch module uniformly merges the data according to the interface type and sends it to the corresponding peripheral interface on the mimetic security chip. The mimetic security defense module can analyze the peripheral type, number, and the heterogeneous processing unit to which it belongs according to the data reported by the switch module, and then proceed to the next step of processing. This can effectively solve the problem of insufficient number of peripheral interfaces of the mimetic security defense module, and can also adapt to the deployment change problem of the number of heterogeneous processing units after the system, with high flexibility. In one embodiment, the preset switching module may include a unified interface module, an intelligent identification configuration module, a dynamic data routing module, and a data processing optimization module. Among them, the unified interface module is used to unify different protocol physical interfaces and protocols into specific physical interfaces and communication protocols, supporting plug-and-play of various types of business heterogeneous processing units and the expansion of additional peripheral interfaces without the need for additional protocol conversion equipment or software. The intelligent identification configuration module can automatically identify the type, model and transmission protocol of the connected business heterogeneous processing unit, and automatically configure the data transmission parameters of the pending operation according to preset rules or user instructions, and set a data buffer inside it to adapt to the data transmission rate mismatch of different business heterogeneous processing units. The dynamic data routing module can realize the dynamic data routing function. Specifically, the dynamic data routing module can flexibly select the best data transmission path according to the destination, priority and peripheral status of the pending operation data to ensure efficient and reliable transmission of the pending operation data. The data processing optimization module can perform preliminary processing on the collected pending operation data, such as format conversion, filtering, compression, etc., to improve the availability and transmission efficiency of the pending operation data.
[0088] The mimetic security defense chip (i.e., security defense chip) adopts peripheral interface multiplexing technology to obtain the requested operation or data (operation data to be executed) from the GPIO port, ETH port, or Fiber port through the Switch module.
[0089] The preset unified protocol processing module runs the operating system application to encapsulate the operation data to be executed sent by each heterogeneous processor into a UDP message and then send it to the protocol-independent mimetic scheduler IP. Among them, the purpose of encapsulating the message is that the protocol-independent mimetic scheduler IP is protocol-independent, which can avoid functional modifications to the mimetic scheduler IP. The operation data to be executed includes: the heterogeneous processing core number and the business processing core number in the business heterogeneous processing unit, the type of the peripheral interface of the heterogeneous unit to be executed, the number of the peripheral interface of the heterogeneous unit to be executed, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed and the relevant commands specified by the protocol, the length and format of the target data to be collected, the synchronization message information, etc. Among them, the synchronization message information refers to time synchronization information, such as the Network Time Protocol (NTP). It is used to maintain time synchronization among all heterogeneous execution devices and upper-level devices, and to record logs for easy backtracking when problems are discovered. The relevant commands specified in the protocol refer to the commands specified in the protocol transmitted through peripherals, such as the Inter-Integrated Circuit (I2C) protocol (i2c) and the Serial Peripheral Interface (SPI) protocol, which can only be written by GPIO pins.
[0090] The unified protocol processing module can be used to add a preset byte header to the head of the operation data to be executed, and encapsulate the operation data to be executed into a message to be executed. In the actual operation process, the message to be executed can be a UDP message.
[0091] The protocol-independent mimetic scheduler IP judges the UDP messages sent by each heterogeneous processing unit and outputs the result that the scheduler considers correct. The judgment means that the protocol-independent mimetic scheduler IP compares the UDP messages output by the three heterogeneous processing units used for mimetic judgment. If the UDP messages output by the three heterogeneous processing units for mimetic judgment are consistent, the UDP message is used as the target operation data; if there is a heterogeneous processing unit with inconsistent results, and the number of inconsistencies reaches a preset threshold, the heterogeneous processing unit is converted to a cleaning state (restart or initialization), and the UDP message output by the heterogeneous processing unit with consistent results is used as the target operation data.
[0092] The target operation data can be returned to the co-processing module to run the operating system for processing. The co-processing module runs a packet processing task in real time on the operating system. The task is used to process the data interaction between the heterogeneous processing unit, the protocol-independent mimetic scheduler IP and the external device. The messages obtained from the heterogeneous processing unit and the external device are encapsulated into UDP through the unified protocol processing module and sent to the protocol-independent mimetic scheduler IP. The output result of the protocol-independent mimetic scheduler IP is unpacked to obtain the source data and send it to the heterogeneous processing unit or external device. The unpacking here obtains the heterogeneous processing core number and the command word expected to be sent, the type and number of the peripheral interface to be operated, the data to be collected and its length and format, the message information that needs to be synchronized, etc.
[0093] The mimetic security defense chip sends the target operation data to the external device through the reused GPIO port peripheral interface for external data collection, and sends it to the external device through the reused ETH or Fiber port for message information interaction. The downlink business process ends here.
[0094] The external device will collect power energy data such as voltage and current or synchronized message result data as target data, and return the target data to the GPIO, ETH, and FIBER peripheral interfaces connected to the mimetic security defense chip. The preset unified protocol processing module operating system on the mimetic security defense chip obtains the target data through the preset peripheral interface connected. The operating system task running on it will encapsulate the collected data into a UDP message with a header, and select the Gigabit Ethernet (GE) / 10Gigabit Ethernet (XGE) processing flow. The target data finally enters the protocol-independent mimetic scheduler IP. The protocol-independent mimetic scheduler IP copies and distributes the target data to the preset unified protocol processing module to run the operating system for processing according to the distribution, voting, and scheduling mechanism issued by the mimetic strategy module. The copied and distributed messages are sent to the packet processing task for unpacking processing to obtain the operation data that the peripheral can parse. The operation data of the peripheral is sent to each CPU of the heterogeneous processing unit through the ETH or Fiber or GPIO interface directly connected to the heterogeneous processing unit. At this point, the uplink business is also processed, and all the uplink and downlink businesses of the energy information system are also processed.
[0095] The present invention adds a mimetic scheduler security defense chip between the energy system terminal and the external device, converts the energy system terminal into a heterogeneous processing unit, performs mimetic processing on the data to be collected and the messages to be processed by each heterogeneous processing unit, and prevents abnormal heterogeneous processing units from participating in the data collection task, effectively improving the reliability and availability of the energy information system, and at the same time, changes the way the energy system terminal collects data and interacts with messages to the way the energy system terminal collects data from the mimetic security defense module, and then the mimetic security defense module requests data from the external device, and at the same time implements the corresponding preset peripheral interaction interface at both ends, so that the energy system terminal data is safe while still feeling that it is collecting external devices as before, and no changes have been made, realizing the advantage of no modification of business logic. If the data of the energy system terminal is no longer reliable, the abnormal heterogeneous processing unit can be identified through mimetic judgment, and a cleaning recovery mechanism can be applied to it to ensure the rapid recovery and launch of the business, which further enhances the overall security of the product and facilitates the rapid recovery and launch and seamless switching of energy information services.
[0096] Embodiment 4
[0097] Figure 5 Schematic diagram of a resource calling device according to Embodiment 4 of the present invention. Figure 5 As shown, the device includes: a data acquisition module 51, a data determination module 52 and a data transmission module 53.
[0098] The data acquisition module 51 is used to acquire the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two.
[0099] The data determination module 52 is used to determine target operation data based on the to-be-executed operation data through a protocol-independent mimetic scheduler, and send the target operation data to an external device.
[0100] The data transmission module 53 is used to obtain target data collected by the external device based on the target operation data, and feed the target data back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
[0101] In the embodiment of the present invention, the data acquisition module based on the preset exchange module acquires the operation data to be executed sent by the business heterogeneous processing unit in the energy information system; wherein the number of the business heterogeneous processing units is at least two; the data determination module determines the target operation data based on the operation data to be executed through the protocol-independent pseudo-scheduler, and sends the target operation data to the external device, so as to improve the accuracy of the target operation data and avoid the reliability of the operation data to be executed being affected by attacks; the target data collected by the external device based on the target operation data is acquired through the data transmission module, and the target data is fed back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing, without modifying the original business logic code of the business heterogeneous processing unit, and the original business heterogeneous processing unit business can be seamlessly operated and put into the original business work to perform data collection tasks; at the same time, the high reliability of the energy information system can be guaranteed, the maintenance cost caused by the introduction of security can be significantly reduced, and the operation efficiency can be improved; at the same time, by adding the preset exchange module, the problem of being unable to access multiple business heterogeneous processing units at the same time can be solved, and it has good scalability, which is convenient for timely acquisition of the operation data to be executed sent by multiple business heterogeneous processing units.
[0102] Wherein, the service heterogeneous processing unit comprises: a heterogeneous processing core, a preset heterogeneous unit peripheral interface and at least one service processing core;
[0103] Wherein, the preset heterogeneous unit peripheral interface is connected to the preset switching module;
[0104] The preset exchange module is used to collect the number of the peripheral interface of the heterogeneous unit to be executed in the business heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
[0105] In one embodiment, the data acquisition module 51 includes:
[0106] A data acquisition unit, used for receiving operation data collected by a preset switching module connected to the service heterogeneous processing unit as operation data to be executed;
[0107] The operation data to be executed include: the number of the peripheral interface of the heterogeneous unit to be executed in the business heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
[0108] In one embodiment, the data determination module 52 includes:
[0109] A format conversion unit, used for encapsulating the to-be-executed operation data into a to-be-executed message based on a preset unified protocol processing module;
[0110] The data input unit is used to input each to-be-executed message into the protocol-independent mimetic scheduler, and determine whether each to-be-executed message is the same based on the protocol-independent mimetic scheduler; wherein the protocol-independent mimetic scheduler is used to make decisions on the to-be-executed messages and determine target operation data.
[0111] a target data determination unit, configured to determine the to-be-executed message as target operation data when it is determined that the to-be-executed messages are the same;
[0112] A number determination unit is used for, when it is determined that the messages to be executed are different, determining the business heterogeneous processing unit to which the different messages to be executed belong as the abnormal heterogeneous processing unit, extracting the historical messages to be executed of the abnormal heterogeneous processing unit, and determining the number of times that the historical messages to be executed are inconsistent with the historical messages to be executed of other business heterogeneous processing units;
[0113] A first number comparison unit is used to use the to-be-executed operation data corresponding to the same to-be-executed message in each to-be-executed message as the target operation data when it is determined that the number of inconsistencies is greater than or equal to a preset number threshold;
[0114] The second number comparison unit is used to feed back response information that the to-be-executed message is different to the abnormal business heterogeneous processing unit when it is determined that the number of inconsistencies is less than a preset number threshold.
[0115] In one embodiment, the resource calling device further includes:
[0116] The initialization module is used to initialize the abnormal heterogeneous processing unit.
[0117] In one embodiment, the data transmission module 53 includes:
[0118] A target data collection unit, used for receiving data collected by an external device according to the length and format of the target data to be collected in the target operation data as target data based on a preset peripheral interface;
[0119] The data transmission unit is used to copy the target data through the protocol-independent pseudo-scheduler, and transmit the target data to the business heterogeneous processing unit according to the number of the peripheral interface of the to-be-executed heterogeneous unit in the target operation data and the transmission protocol information of the peripheral interface of the to-be-executed heterogeneous unit.
[0120] The resource calling device provided in the embodiment of the present invention can execute the resource calling method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0121] Embodiment 5
[0122] Figure 61 is a schematic diagram of the structure of an electronic device that implements the resource calling method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0123] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0124] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0125] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a resource calling method.
[0126] In some embodiments, the resource calling method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the resource calling method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the resource calling method in any other appropriate manner (e.g., by means of firmware).
[0127] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0128] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0129] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0130] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0131] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0132] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0133] In one embodiment, the embodiment of the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the resource calling method of any embodiment of the present invention when executed by a processor.
[0134] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A resource calling method, characterized in that: include: Acquire the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two; Determining target operation data based on the to-be-executed operation data through a protocol-independent mimetic scheduler, and sending the target operation data to an external device; The target data collected by the external device based on the target operation data is acquired, and the target data is fed back to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
2. The method according to claim 1, characterized in that A service heterogeneous processing unit, comprising: a heterogeneous processing core, a preset heterogeneous unit peripheral interface and at least one service processing core; Wherein, the preset heterogeneous unit peripheral interface is connected to the preset switching module; The preset exchange module is used to collect the serial number of the peripheral interface of the heterogeneous unit to be executed in the service heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
3. The method according to claim 1, characterized in that The method of obtaining the to-be-executed operation data sent by the service heterogeneous processing unit in the energy information system based on the preset exchange module includes: Receiving operation data collected by a preset switching module connected to the service heterogeneous processing unit as operation data to be executed; The operation data to be executed includes: the serial number of the peripheral interface of the heterogeneous unit to be executed in the business heterogeneous processing unit, the transmission protocol information of the peripheral interface of the heterogeneous unit to be executed, and the length and format of the target data to be collected.
4. The method according to claim 1, characterized in that: The determining the target operation data based on the to-be-executed operation data by the protocol-independent mimetic scheduler includes: Encapsulating the to-be-executed operation data into a to-be-executed message based on a preset unified protocol processing module; Input each of the to-be-executed messages into a protocol-independent mimetic scheduler, and determine whether each of the to-be-executed messages is the same based on the protocol-independent mimetic scheduler; wherein the protocol-independent mimetic scheduler is used to make a decision on the to-be-executed messages to determine target operation data; When it is determined that the messages to be executed are the same, determining the messages to be executed as target operation data; When it is determined that the messages to be executed are different, the business heterogeneous processing unit to which the different messages to be executed belong is determined as an abnormal heterogeneous processing unit, the historical messages to be executed of the abnormal heterogeneous processing unit are extracted, and the number of times the historical messages to be executed are inconsistent with the historical messages to be executed of other business heterogeneous processing units is determined; When it is determined that the number of inconsistencies is greater than or equal to a preset number threshold, the to-be-executed operation data corresponding to the same to-be-executed messages among the to-be-executed messages are used as target operation data; When it is determined that the number of inconsistencies is less than a preset number threshold, response information indicating that the to-be-executed messages are different is fed back to the abnormal service heterogeneous processing unit.
5. The method according to claim 4, characterized in that Before taking the to-be-executed operation data corresponding to the same to-be-executed message among the to-be-executed messages as the target operation data, the method further includes: The abnormal heterogeneous processing unit is initialized.
6. The method according to claim 1, characterized in that The acquiring the target data collected by the external device based on the target operation data, and feeding back the target data to the business heterogeneous processing unit according to the target operation data, includes: Receiving, based on a preset peripheral interface, data collected by the external device according to the length and format of the target data to be collected in the target operation data as target data; The target data is copied by the protocol-independent pseudo-scheduler, and the target data is transmitted to the service heterogeneous processing unit according to the number of the peripheral interface of the to-be-executed heterogeneous unit in the target operation data and the transmission protocol information of the peripheral interface of the to-be-executed heterogeneous unit.
7. A resource calling device, characterized in that: include: A data acquisition module, used for acquiring the to-be-executed operation data sent by the business heterogeneous processing unit in the energy information system based on the preset exchange module; wherein the number of the business heterogeneous processing units is at least two; A data determination module, configured to determine target operation data based on the to-be-executed operation data through a protocol-independent mimetic scheduler, and send the target operation data to an external device; The data transmission module is used to obtain the target data collected by the external device based on the target operation data, and feed back the target data to the business heterogeneous processing unit according to the target operation data, so that the business heterogeneous processing unit uploads the target data to the target device for processing.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the resource calling method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource calling method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the resource calling method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data -transfer method and data transfer device
CN103188291A
Weighted decision and random scheduling method based on physical heterogeneous redundancy
CN108134740A
A high-safety mimic microprocessor device and a data processing method
CN109409138A
Mimic switch, network device and system
CN110177080A
Heterogeneity testing device and method based on a DHR architecture mimicry defense platform
CN110445787A