Method and device for improving GOOSE message forwarding efficiency, equipment and medium

By deploying a hybrid real-time operating system in the data collector, dynamically adjusting the operating system deployment method, and forwarding it according to the frequency of GOOSE packets, the implementation of complex business needs of the data collector is solved, and data processing efficiency and real-time performance are improved.

CN119835232APending Publication Date: 2025-04-15ZHEJIANG CHINT INSTR & METER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411904849.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently realize the complex service needs of data collectors, especially when GOOSE packet forwarding efficiency is low, high network load and strict real-time requirements.

Method used

By deploying a non-real-time operating system, a main-verified real-time operating system and a switchable operating system in the data collector, dynamically adjust the deployment method of the operating system, run the main-verified real-time operating system according to the frequency of GOOSE messages, or run the main-verified real-time operating system and a switchable operating system for forwarding, and run the non-real-time operating system to handle non-real-time tasks.

Benefits of technology

It maximizes data processing efficiency and system CPU resources utilization, improves the forwarding efficiency and real-time performance of GOOSE packets, and can efficiently handle complex data acquisition and transmission tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835232A_ABST
    Figure CN119835232A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data collector communication, and discloses a method, device and equipment for improving GOOSE message forwarding efficiency and a medium, and the method comprises the steps: judging whether a network message transmitted between network equipment contains a GOOSE message or not based on a service type; when the network message contains the GOOSE message, running a main verification real-time operation system or simultaneously running the main verification real-time operation system and a switchable operation system to forward the GOOSE message based on the occurrence frequency of the GOOSE message, and running a non-real-time operation system to process a non-real-time task in the network message; and when the network message does not contain the GOOSE message, running a non-real-time operation system to process a non-real-time task in the network message, and running a main verification real-time operation system to monitor the network message. The method supports a hybrid deployment mode of a single-core or dual-core real-time operating system, and maximizes data processing efficiency and utilization of system CPU resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system data collector communication, and in particular to a method, device, equipment and medium for improving GOOSE message forwarding efficiency. Background Art

[0002] With the development and progress of network technology and the transmission of power industry, GOOSE messages are transmitted between devices at the current substation terminal side. They refer to substation events oriented to general objects, which are used to transmit important real-time signals between IEDs (Intelligent Electronic Devices) in substations. GOOSE messages are event-driven, and transmission services are mapped to the 7-layer protocol stack of OSI (Open System Interconnect). On the one hand, there is a delay in confrontation, and on the other hand, based on traditional Ethernet implementation, GOOSE messages themselves do not support message priority and virtual LAN. Therefore, when the network burden is heavy, network congestion will affect the transmission efficiency and real-time of the message, making it difficult to guarantee real-time performance, and the transmission rate is slow.

[0003] GOOSE messages are usually broadcast in a local area network using multicast, which may consume a large amount of network bandwidth under high load. GOOSE messages are sent periodically to keep data updated and reliable, and the transmission rate performance depends on the network configuration. In traditional single-core or symmetric multi-processing systems, the processing and forwarding of GOOSE messages may be limited, affecting the real-time processing capability of data. Although the GOOSE protocol is capable of microsecond-level message delivery, in large-scale systems or when the network load is high, the ability of a single system to process these real-time data may be insufficient, resulting in increased latency or data loss.

[0004] At present, most of the core board configurations of power data acquisition terminals (such as data collectors) belong to a single operating system, which cannot maximize the use of CPU resources. For devices such as data collectors that require high real-time data acquisition and transmission, it is necessary to configure an operating system that can respond to source control terminal event-driven in real time and can efficiently configure the core board internal resource management. Non-real-time operating systems are based on time slice rotation, the CPU cannot be preempted, and low-priority tasks cannot be interrupted immediately after high-priority tasks are ready. Real-time operating systems are based on preemptive kernels and can execute high-priority tasks. High-priority tasks can be executed when they are ready. Traditional single real-time operating systems (Real-Time Operating System, RTOS) or single non-real-time operating systems (Linux) are difficult to take into account data collectors, which have complex data sources that interact in real time and have huge application resources. Summary of the invention

[0005] In view of this, the present invention provides a method, apparatus, device and medium for improving the efficiency of GOOSE message forwarding, so as to solve the problem that it is difficult to efficiently realize the complex business requirements of data collectors with a single operating system deployment.

[0006] In a first aspect, the present invention provides a method for improving the efficiency of GOOSE message forwarding, which is applied to a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed, and the method comprises:

[0007] Get network messages transmitted between network devices;

[0008] Determine whether the network message contains a GOOSE message based on the service type;

[0009] When the network message contains a GOOSE message, the main real-time operating system is run based on the frequency of the GOOSE message, or the main real-time operating system and the switchable operating system are run at the same time to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message;

[0010] When the network message does not contain the GOOSE message, the non-real-time operating system is run to process the non-real-time tasks in the network message, and the main real-time operating system is run to monitor the network message.

[0011] The method for improving the forwarding efficiency of GOOSE messages provided by the present invention obtains network messages transmitted between network devices; determines whether the network message contains the GOOSE message based on the service type; when the network message contains the GOOSE message, runs the main core real-time operating system or runs the main core real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and runs the non-real-time operating system to process the non-real-time tasks in the network message; when the network message does not contain the GOOSE message, runs the non-real-time operating system to process the non-real-time tasks in the network message, and runs the single-core real-time operating system to monitor the network message, adopts the deployment of a hybrid real-time operating system, supports the hybrid deployment of the single-core real-time operating system or the dual-core real-time operating system, achieves the maximum data processing efficiency and the utilization of the system CPU resources, has higher real-time performance, efficiently realizes the complex business requirements of the data collector, and solves the problem that it is difficult to efficiently realize the complex business requirements of the data collector with a single operating system deployment.

[0012] In an optional embodiment, the network message includes a plurality of Ethernet frames;

[0013] Judging whether a network message contains a GOOSE message based on the service type includes:

[0014] Receive each Ethernet frame and monitor the ether_type field of the Ethernet frame. When the value of the ether_type field is 0x88B8, the Ethernet frame is determined to be a GOOSE message, that is, the network message contains a GOOSE message; otherwise, the network message is determined to be a non-real-time task message.

[0015] The method for improving the forwarding efficiency of GOOSE messages provided by the present invention receives each Ethernet frame and monitors the ether_type field of the Ethernet frame, and determines that the Ethernet frame is a GOOSE message when the value of the ether_type field is 0x88B8; otherwise, the network message is determined to be a non-real-time task, so as to accurately obtain the ether_type field and the corresponding value of the Ethernet frame in the network message, so as to judge whether the Ethernet frame is a GOOSE message, and provide conditions for the subsequent hybrid deployment of real-time operating systems.

[0016] In an optional implementation, the method for improving the GOOSE message forwarding efficiency further includes:

[0017] When the Ethernet frame is a GOOSE message, it is verified whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address. If they match, the GOOSE message is determined to be valid; if not, the GOOSE message is determined to be invalid.

[0018] The method for improving the GOOSE message forwarding efficiency provided by the present invention determines whether the GOOSE message is valid by verifying whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address when the Ethernet frame is a GOOSE message, thereby improving the reliability and effectiveness of the GOOSE message and indirectly improving the efficiency of GOOSE message forwarding.

[0019] In an optional implementation, before running the main real-time operating system or running the main real-time operating system and the switchable operating system simultaneously to forward the GOOSE message based on the frequency of the GOOSE message, the method for improving the GOOSE message forwarding efficiency also includes:

[0020] A MAC controller is used to monitor the flow of GOOSE messages, and the frequency of occurrence of GOOSE messages is determined based on the flow of GOOSE messages.

[0021] In an optional implementation, judging the frequency of occurrence of the GOOSE message based on the flow of the GOOSE message includes:

[0022] When the flow of GOOSE messages is lower than the preset network flow threshold and no GOOSE messages are detected within the preset time period, the frequency of GOOSE messages is determined to be low frequency;

[0023] When the receiving frequency of the GOOSE message exceeds the preset frequency, it is determined that the flow of the GOOSE message exceeds the preset network flow threshold. At this time, the frequency of the GOOSE message is high frequency.

[0024] The method for improving the forwarding efficiency of GOOSE messages provided by the present invention adopts a MAC controller to monitor the flow of GOOSE messages, and determines the frequency of occurrence of GOOSE messages based on the flow of GOOSE messages, thereby realizing accurate monitoring of GOOSE messages by the MAC controller.

[0025] In an optional implementation, running the main real-time operating system or running the main real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and running the non-real-time operating system to process the non-real-time tasks in the network message includes:

[0026] When the frequency of GOOSE messages is low, the main real-time operating system is run to forward the GOOSE messages, and the Linux operating system is run to process non-real-time tasks in network messages;

[0027] When the frequency of GOOSE messages appears is high, modify the configuration file of the data collector, configure the switchable operating system as the secondary core real-time operating system, and switch the main core real-time operating system to forward the GOOSE messages. Switch the main core real-time operating system and the secondary core real-time operating system to forward the GOOSE messages simultaneously through shared memory or task message queues, and run the non-real-time operating system at the same time to process the non-real-time tasks in the network messages.

[0028] The method for improving the GOOSE message forwarding efficiency provided by the present invention automatically deploys CPU operating system resources, i.e., a single-core real-time operating system (RTOS) or a dual-core real-time operating system, according to real-time business needs in a hybrid deployment manner, to achieve the effect of transmitting GOOSE messages at the fastest rate, thereby improving the GOOSE data communication speed and reliability within the photovoltaic data acquisition system of the smart grid, while ensuring the normal operation and safety of real-time business and basic business systems, thereby maximizing data processing efficiency and system resource utilization.

[0029] In an optional implementation, switching the primary core real-time operating system to forward the GOOSE message to the primary core real-time operating system and the secondary core real-time operating system to simultaneously forward the GOOSE message through a shared memory or a task message queue includes:

[0030] When the frequency of GOOSE messages is high, the GOOSE messages are stored in the shared memory or task message queue in the order of the reception timestamps of the GOOSE messages;

[0031] The primary core real-time operating system and the secondary core real-time operating system obtain the GOOSE message through the shared memory or task message queue, and forward the GOOSE message in sequence according to the receiving timestamp of the GOOSE message.

[0032] The method for improving the GOOSE message forwarding efficiency provided by the present invention takes into account the service scheduling between cores according to the dynamic core configuration method, establishes a sequential cache mechanism, establishes a message cache queue in the RTOS core, sorts the GOOSE messages according to the received timestamps, ensures the real-time and reliability of the GOOSE message forwarding, and improves the efficiency of the GOOSE message forwarding.

[0033] In a second aspect, the present invention provides a device for improving the efficiency of GOOSE message forwarding, which is applied to a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed, and the device includes:

[0034] A network message acquisition module, used to acquire network messages transmitted between network devices;

[0035] A GOOSE message judgment module is used to judge whether a network message contains a GOOSE message based on the service type;

[0036] A real-time task processing module is used for, when a network message contains a GOOSE message, running the main real-time operating system or running the main real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and running the non-real-time operating system to process the non-real-time tasks in the network message;

[0037] The non-real-time task processing module is used to run the non-real-time operating system to process the non-real-time tasks in the network message when the network message does not contain the GOOSE message, and run the main real-time operating system to monitor the network message.

[0038] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the method for improving the GOOSE message forwarding efficiency of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0039] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for improving the GOOSE message forwarding efficiency of the above-mentioned first aspect or any corresponding embodiment thereof.

[0040] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the method for improving the GOOSE message forwarding efficiency of the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 is a flow chart of a method for improving GOOSE message forwarding efficiency according to an embodiment of the present invention;

[0043] Figure 2 is a flow chart of another method for improving GOOSE message forwarding efficiency according to an embodiment of the present invention; Figure 3 It is a flowchart of another method for improving the GOOSE message forwarding efficiency according to an embodiment of the present invention;

[0044] Figure 4 is a schematic diagram of the hardware architecture of the Ethernet interface system according to an embodiment of the present invention;

[0045] Figure 5 is a schematic diagram of a process of processing network messages by a primary core real-time operating system, a secondary core real-time operating system and a non-real-time operating system according to an embodiment of the present invention;

[0046] Figure 6 is a schematic diagram of the upper and lower level relationship of the data collector according to an embodiment of the present invention;

[0047] Figure 7 is a structural block diagram of a device for improving GOOSE message forwarding efficiency according to an embodiment of the present invention;

[0048] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0050] According to an embodiment of the present invention, a method embodiment for improving the efficiency of GOOSE message forwarding is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0051] In this embodiment, a method for improving the forwarding efficiency of GOOSE messages is provided, which can be used in a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed. Furthermore, as Figure 4 As shown, the non-real-time operating system is a Linux operating system, and the specific hardware architecture of the data collector includes: a CPU, a PHY (Physical Layer) physical layer transceiver (also known as a PHY interface register), an isolation transformer, and an Ethernet interface RJ45 connected in sequence. The Linux operating system, the main core real-time operating system, and the switchable operating system are deployed in the CPU, and tasks are assigned to the Linux operating system, the main core real-time operating system, and the switchable operating system through the CPU's task scheduler. The Ethernet interface RJ45 is deployed in the Socket link layer. The main core real-time operating system is also called the main core RTOS (Real Time Operate System, referred to as RTOS). The PHY (Physical Layer) physical layer transceiver includes a medium-dependent interface MDI (Medium Dependent Interface, referred to as MDI), a sublayer PSC (Physical Coding Sublayer, referred to as PSC) of the data link layer, and a communication interface MDIO (Management Data Input / Output, referred to as MDIO). The medium-dependent interface MDI is connected to the isolation transformer, and the sublayer PSC of the data link layer and the communication interface MDIO are connected to the MAC controller of the CPU.

[0052] To fully utilize the advantages of the hybrid deployment architecture, the core operating system tasks are finely divided, including:

[0053] 1. Core A (Linux operating system):

[0054] Task: Run basic services, such as low-voltage area data collection, power distribution environment detection and other applications.

[0055] Features: Handle complex computing and data processing tasks, support multi-threading and multi-task scheduling.

[0056] 2. Core B (main core RTOS):

[0057] Task: Specialized in monitoring, parsing and forwarding GOOSE messages, as well as other tasks with high real-time requirements.

[0058] Features: High real-time performance and low latency, suitable for handling urgent tasks.

[0059] The inter-core communication mechanism uses shared memory or message queues to achieve data exchange and task collaboration between cores. Lock mechanisms or semaphores are used for synchronization to ensure data consistency and atomicity of operations. When the system needs to pass the GOOSE message parsing results to the upper-layer application, the RTOS core writes the results to the shared memory and notifies the Linux core to read and process them later, ensuring both real-time performance and task collaboration.

[0060] 3. Core C (switchable operating system):

[0061] Task: Alternative RTOS.

[0062] Features: It is initialized to Linux operating system by default and cooperates with core A to provide basic business assistance. Only when the GOOSE message business volume increases, it can be changed and deployed as a secondary core RTOS according to the configuration file to process the GOOSE message business simultaneously with core B.

[0063] Figure 1 is a flow chart of a method for improving GOOSE message forwarding efficiency according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0064] Step S101, obtaining network messages transmitted between network devices.

[0065] Specifically, network messages refer to information transmitted through computer networks on the Internet. For example, the data collector obtains network messages transmitted between network devices in the photovoltaic power station system. Furthermore, the Socket link layer of the data collector uses the Ethernet interface RJ45 to monitor the network messages transmitted between network devices in a blocking listening manner. The network messages are in the form of multiple Ethernet frames.

[0066] Step S102: determining whether the network message includes a GOOSE message based on the service type.

[0067] Specifically, when the Socket link layer of the data collector receives the Ethernet frame of the network message, it first checks the ether_type field and determines whether the network message contains a GOOSE message according to the value of the ether_type field.

[0068] Step S103, when the network message includes a GOOSE message, based on the frequency of the GOOSE message, the main real-time operating system is run or the main real-time operating system and the switchable operating system are run simultaneously to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message.

[0069] Specifically, the data collector dynamically adjusts the core mode through preset network traffic thresholds and monitoring indicators to adapt to the actual network load and sets a load judgment mechanism. The load judgment mechanism relies on the PHY physical layer (PhysicalLayer) transceiver to convert the data of the CPU and MAC controller into signal transmission suitable for transmission.

[0070] The embodiment of the present invention adopts a mixed deployment mode of RTOS and Linux: when a GOOSE message is detected and the GOOSE message is of low frequency, the system will be configured as core A and core B, that is, a single-core RTOS mode, using the main core RTOS to focus on processing the real-time data interaction of the GOOSE message, ensuring the lowest delay and highest efficiency of GOOSE message forwarding. In this mode, core B deploys the RTOSE operating system to synchronously intersperse the processing of GOOSE message monitoring and forwarding without affecting the original protocol stack process. Core A handles non-real-time tasks (such as meter reading and event reporting), and will run at a secondary priority according to priority scheduling. When a GOOSE message is detected and the GOOSE message is of high frequency, the system will be configured as core A, core B and core C to run synchronously, that is, a dual-core RTOS mode, to ensure the efficiency of GOOSE message forwarding, and core A still handles non-real-time tasks (such as meter reading and event reporting).

[0071] Step S104, when the network message does not include the GOOSE message, the non-real-time operating system is run to process the non-real-time tasks in the network message, and the main real-time operating system is run to monitor the network message.

[0072] Specifically, when the data collector system needs to process a new non-real-time task (such as data logging), the task scheduler assigns it to the Linux operating system for processing. At the same time, the main core RTOS continues to focus on monitoring and processing GOOSE messages. The two core operating systems do not interfere with each other and collaborate efficiently. When GOOSE has few business needs and mainly processes non-real-time tasks without urgent real-time requirements, the system is configured in single-core mode, that is, only the main core real-time operating system runs.

[0073] The method for improving the GOOSE message forwarding efficiency provided in this embodiment obtains network messages transmitted between network devices; determines whether the network message contains the GOOSE message based on the service type; when the network message contains the GOOSE message, runs the main core real-time operating system or runs the main core real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and runs the non-real-time operating system to process the non-real-time tasks in the network message; when the network message does not contain the GOOSE message, runs the non-real-time operating system to process the non-real-time tasks in the network message, and runs the single-core real-time operating system to monitor the network message, adopts the deployment of a hybrid real-time operating system, supports the hybrid deployment of a single-core real-time operating system or a dual-core real-time operating system, so as to maximize the data processing efficiency and the utilization of the system CPU resources, with higher real-time performance, and efficiently realizes the complex business requirements of the data collector, solving the problem that it is difficult to efficiently realize the complex business requirements of the data collector with a single operating system deployment.

[0074] In this embodiment, a method for improving the forwarding efficiency of GOOSE messages is provided, which can be used in a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable real-time operating system are deployed, and the non-real-time operating system is a Linux operating system. Figure 2 is a flow chart of a method for improving GOOSE message forwarding efficiency according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0075] Step S201, obtain network messages transmitted between network devices. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0076] Step S202: determining whether the network message includes a GOOSE message based on the service type.

[0077] Specifically, the network message includes multiple Ethernet frames, and the above step S202 includes:

[0078] Step a. Receive each Ethernet frame and monitor the ether_type field of the Ethernet frame. When the value of the ether_type field is 0x88B8, the Ethernet frame is determined to be a GOOSE message, that is, the network message contains a GOOSE message; otherwise, the network message is determined to be a non-real-time task message.

[0079] Specifically, when the Socket link layer of the data collector receives an Ethernet frame, it first checks the ether_type field. If the value of the ether_type field is 0x88B8, the Ethernet frame is determined to be a GOOSE message, and the GOOSE message processing flow of the main core RTOS is immediately triggered (the processing flow is as follows Figure 5 As shown), it skips unnecessary protocol stack processing and directly parses and forwards the message.

[0080] Step S203, when the network message includes a GOOSE message, based on the frequency of the GOOSE message, the main real-time operating system is run or the main real-time operating system and the switchable operating system are run simultaneously to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message.

[0081] Specifically, the above step S203 includes:

[0082] Step S2031, when the frequency of the GOOSE message is low, the main real-time operating system is run to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message.

[0083] Specifically, this embodiment adopts a multi-core task scheduling strategy, specifically: when the data collector needs to process a new non-real-time task (such as data logging), the task scheduler in the CPU assigns the new non-real-time task to the Linux operating system for processing. At the same time, the main core RTOS continues to focus on monitoring and processing GOOSE messages, and the Linux operating system and the main core RTOS do not interfere with each other. The Linux operating system is used to provide basic services such as file systems and network protocol stacks to support the overall operation of the data collector. The main core RTOS gives priority to responding to external interrupts (i.e., real-time processing task GOOSE messages) and high-priority tasks to ensure real-time requirements.

[0084] The task scheduling principle follows dynamic allocation. According to the real-time and priority of the task, it is dynamically allocated to the operating systems of different cores. The main core RTOS and the secondary core RTOS communicate through shared memory to ensure fast data transmission and synchronous communication.

[0085] It should be noted that shared memory refers to a specific physical memory area divided as shared memory during the initialization phase of the data collector, which is used for data exchange between the main core RTOS and the secondary core RTOS.

[0086] Step S2032, when the frequency of GOOSE messages appears is high, modify the configuration file of the data collector, configure the switchable operating system as the secondary core real-time operating system, and switch the main core real-time operating system to forward the GOOSE messages. Switch the main core real-time operating system and the secondary core real-time operating system to forward the GOOSE messages simultaneously through shared memory or task message queues, and run the non-real-time operating system to process non-real-time tasks in network messages.

[0087] Specifically, when GOOSE messages are high-frequency, it is necessary to improve the processing capacity of real-time tasks. The single-core and dual-core systems detect the network load periodically, and according to the monitoring results, modify the configuration file of the data collector initialization system, configure the switchable operating system as the secondary core real-time operating system, and automatically switch from single-core mode to dual-core mode, that is, switch from running only the main core real-time operating system to process GOOSE messages to the main core real-time operating system and the secondary core real-time operating system to process GOOSE messages simultaneously through shared memory or task message queues. During the switching process, the task message queue is used to ensure the continuity of the task and the consistency of the data, and the transition is smooth to avoid affecting the operation of the data collector.

[0088] like Figure 5 As shown in the figure, when the core board is powered on, it is initialized to single-core RTOS mode according to the default configuration file, that is, only the main core RTOS and Linux operating system are running. When the GOOSE message from the network port is received, the arranged single-core program is used first. When two or more GOOSE messages are received at the same time, the dual cores will be assigned for processing. At this time, the configuration file of the data collector is changed, and the switchable operating system is configured as the secondary core RTOS. The main core RTOS and the secondary core RTOS are run at the same time to process the GOOSE message. This processing method can reduce the time for forwarding the GOOSE message to microseconds.

[0089] In some optional implementations, the above step S2032 includes:

[0090] Step a1, when the frequency of occurrence of the GOOSE message is high frequency, the GOOSE messages are stored in the shared memory or task message queue according to the order of the receiving timestamps of the GOOSE messages.

[0091] Specifically, Figure 5 As shown, in order to ensure the reliable transmission of GOOSE messages under high load, the processing and forwarding of messages are carried out in the order in which they are received. In the RTOS core, a message cache queue, namely the task message queue, is set up to sort the GOOSE messages according to the received timestamp.

[0092] Step a2, the primary core real-time operating system and the secondary core real-time operating system obtain the GOOSE message through the shared memory or task message queue, and forward the GOOSE message in sequence according to the receiving timestamp of the GOOSE message.

[0093] Specifically, Figure 5 As shown in the figure, the task scheduler in the CPU processes and forwards the GOOSE messages in the order in which they are received, avoiding data inconsistency caused by disordered messages. Even under high load conditions, the task of processing GOOSE messages still has the highest priority to ensure that it will not be interrupted by other tasks. High-frequency GOOSE messages, that is, when dual RTOS is deployed, are sorted according to the timestamp and event attributes of the received GOOSE messages. After sorting, they are divided into high and low levels according to the urgency level. The high level is assigned to the main core RTOS for processing and forwarding, and the low level is assigned to the secondary core RTOS for processing and forwarding.

[0094] It should be noted that this embodiment optimizes the GOOSE message forwarding rate from the operating system layer of the entire data collector, such as Figure 6 As shown, the optimization measures adopted are:

[0095] The main core RTOS directly parses the Ethernet frame in the network message transmitted by the source control terminal, skips the redundant protocol layer, saves processing time, and outputs the high-speed TTL serial communication after parsing, and transmits it to the AC-PLC (alternating current powered programmable logic controller), reducing data transmission delay. In the entire data communication, power line carrier communication is used to reduce intermediate links and increase transmission speed.

[0096] The method for improving the efficiency of GOOSE message forwarding provided in this embodiment takes into account the business scheduling between cores according to the dynamic core configuration method, establishes a sequential cache mechanism, establishes a message cache queue in the RTOS core, sorts the GOOSE messages according to the received timestamp, ensures the real-time and reliability of GOOSE message forwarding, and improves the efficiency of GOOSE message forwarding.

[0097] Step S204: When the network message does not contain a GOOSE message, the non-real-time operating system is run to process the non-real-time tasks in the network message, and the main real-time operating system is run to monitor the network message. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0098] The method for improving the GOOSE message forwarding efficiency provided in this embodiment automatically deploys CPU operating system resources, i.e., a single-core real-time operating system (RTOS) or a dual-core real-time operating system, according to real-time business needs in a hybrid deployment manner to achieve the effect of transmitting GOOSE messages at the fastest rate, thereby improving the GOOSE data communication speed and reliability within the smart grid photovoltaic data acquisition and measurement, while ensuring the normal operation and safety of real-time business and basic business systems, thereby maximizing data processing efficiency and system resource utilization.

[0099] In this embodiment, a method for improving the forwarding efficiency of GOOSE messages is provided, which can be used in a data collector. A non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed in the data collector. The non-real-time operating system is a Linux operating system. Figure 3 is a flow chart of a method for improving GOOSE message forwarding efficiency according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0100] Step S301, obtain network messages transmitted between network devices. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.

[0101] Step S302: Determine whether the network message contains a GOOSE message based on the service type. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.

[0102] Step S303, when the Ethernet frame is a GOOSE message, verify whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address, if so, determine that the GOOSE message is valid, if not, determine that the GOOSE message is invalid.

[0103] Specifically, the preset GOOSE message communication address refers to the communication address when the network device sends the GOOSE message. When the Ethernet frame is a GOOSE message, it further verifies whether the target MAC address of the message matches the preset GOOSE communication address to ensure the validity of the GOOSE message. Fast parsing of the data area: After confirming the GOOSE message type, directly parse the specific identifier (such as `0xAB`) in the data area to speed up the understanding and processing of the GOOSE message content.

[0104] Step S304: Use the MAC controller to monitor the flow of the GOOSE message, and determine the frequency of the GOOSE message based on the flow of the GOOSE message.

[0105] Specifically, the CPU also includes an MCA controller, and the MAC controller usually has some hardware filtering and statistics functions, which can monitor specific traffic. The hardware support of the MAC layer is responsible for processing Ethernet frames at the data link layer, which belongs to the first layer of processing after the data enters the PHY. Many MAC controllers have a frame counting function, which can count the number of frames and bytes received that meet the filtering conditions (0x88B8). By counting these data, the number of GOOSE messages and the total data volume within a period of time can be known, thereby calculating the GOOSE message traffic. Configure the MAC controller to trigger an interrupt when receiving a GOOSE message of a specified type, and notify the CPU for further processing. Combine scheduled tasks with cache cleaning, set scheduled tasks, read and clean statistical data at fixed intervals, provide real-time traffic monitoring, and prevent statistical data from growing infinitely in memory. Use a ring cache to save the received GOOSE messages to ensure that the latest monitoring data is always available. If the cache is full, the new message will overwrite the oldest message to ensure that the system will not run out of memory due to monitoring. The use of the hardware filtering and counting functions of the MAC layer combined with the statistics of the software layer can realize the monitoring of GOOSE message traffic.

[0106] In some optional implementations, the above step S304 includes:

[0107] Step S3041, when the flow of the GOOSE message is lower than the preset network flow threshold and no GOOSE message is detected within a preset time period, it is determined that the frequency of occurrence of the GOOSE message is low frequency.

[0108] Specifically, the preset network traffic threshold and the preset time period are set according to the actual situation and are not specifically limited here. In this embodiment, the preset network traffic threshold is represented by M%, and the preset time period is represented by T0. When the traffic of the GOOSE message is lower than M%, and no GOOSE message is detected within the recent T0s, the frequency of the GOOSE message is determined to be low frequency.

[0109] Step S3042: When the reception frequency of the GOOSE message exceeds the preset frequency, it is determined that the flow of the GOOSE message exceeds the preset network flow threshold. At this time, the frequency of the GOOSE message is high frequency.

[0110] Specifically, the preset frequency is set according to actual conditions and is not specifically limited here. In this embodiment, the preset frequency is 5 times per second.

[0111] When the reception frequency of the GOOSE message of the PHY interface register is detected to be more than 5 times per second in the time period T1s, it is a high-frequency GOOSE message. At this time, the network load is high and the network traffic exceeds M%.

[0112] Step S305: When the network message contains a GOOSE message, the main real-time operating system or the main real-time operating system and the switchable operating system are run based on the frequency of the GOOSE message to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message. Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.

[0113] Step S306: When the network message does not contain a GOOSE message, the non-real-time operating system is run to process the non-real-time tasks in the network message, and the main real-time operating system is run to monitor the network message. Figure 2 Step S204 of the illustrated embodiment will not be described in detail here.

[0114] The method for improving the forwarding efficiency of GOOSE messages provided in this embodiment, when the Ethernet frame is a GOOSE message, determines whether the GOOSE message is valid by verifying whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address, thereby improving the reliability and effectiveness of the GOOSE message and indirectly improving the efficiency of GOOSE message forwarding. The MAC controller is used to monitor the flow of the GOOSE message, and the frequency of the GOOSE message is determined based on the flow of the GOOSE message, so that the MAC controller can accurately monitor the GOOSE message.

[0115] As one or more specific application embodiments of the present invention, Figure 5 The method for improving the GOOSE message forwarding efficiency provided by the present invention is further described in detail as follows:

[0116] 1. Adopt blocking listening at the data collector Socket link layer. When receiving an Ethernet frame, first check the `ether_type` field. If `0x88B8` is found, the GOOSE message processing flow of the RTOS core is immediately triggered, skipping unnecessary protocol stack processing, and directly parsing and forwarding the message. The specific operations are as follows:

[0117] a) Ethernet type field detection: At the Socket link layer, monitor the `ether_type` field of the Ethernet frame. When the `ether_type` value is `0x88B8`, it indicates that the frame is a GOOSE message.

[0118] b) Target MAC communication address verification: further verify whether the target MAC communication address of the message matches the preset GOOSE message communication address to ensure the validity of the message.

[0119] c) Fast parsing of the data area: After confirming the message type, directly parse the specific identifier (such as `0xAB`) in the data area to speed up the understanding and processing of the GOOSE message content.

[0120] 2. When the core board is powered on, it is initialized to run in single-core RTOS mode according to the default configuration file. When receiving the GOOSE message from the Ethernet interface, it will give priority to using the deployed single-core program to run, that is, running the main core RTOS. When two or more GOOSE messages are received at the same time, dual cores will be allocated for processing, that is, running the main core RTOS and the secondary core RTOS. This processing method can reduce the time for GOOSE message forwarding signals to microseconds.

[0121] An efficient resource management strategy is adopted. The specific solution is to run an embedded Linux operating system on one core to run standard APP programs, such as low-voltage area collection, power distribution environment monitoring, and other complex but not real-time-sensitive services. The other two cores are deployed and run RTOS systems based on the GOOSE message traffic volume to process high-time tasks such as GOOSE to reduce message processing delays and enhance the system's ability to respond to real-time events. The ability of the CPU in the data collector to process GOOSE messages is improved, and the hardware Ethernet interface MAC high-speed serial port line is used to reduce message transmission delays. Hardware circuits such as Figure 4 As shown), enhance the data collector's ability to respond to real-time events.

[0122] like Figure 6 As shown, from Figure 6 The upper and lower level relationships of the data collector deployment scheme can be described. The GOOSE message forwarding rate implemented based on the method provided by the present invention can reach less than 1ms, that is, the time from the source control terminal sending the GOOSE message command to the data collector to the time when the data collector sends the forwarding message from the serial port (data takes about 0.5ms to pass through the 115200bps serial port). The time it takes to reach the photovoltaic inverter through the carrier can be controlled to be less than 4ms. This embodiment greatly improves the operating efficiency and resource utilization of the data collector by optimizing task allocation and collaboration between cores to meet performance requirements under high load conditions.

[0123] The optimization points of this embodiment are applicable to the on-site scheduling and operation of GOOSE message services of various frequencies, and automatically identify and optimize the resource requirements of the core board of the data collector operating system at different stages. For example, when the photovoltaic power station is started in the morning, the network load is low, and the data collector runs in single-core mode, that is, running the main core RTOS. As solar radiation increases, the photovoltaic inverter begins to send data frequently, the amount of GOOSE messages increases, and the digital collector automatically switches to dual-core RTOS mode to process high-frequency real-time data. When the business volume decreases in the later period, the system configuration of the core board of the data collector operating system can be automatically switched according to the traffic situation detected by the PHY (Physical Layer) physical layer transceiver, and the switching between core boards follows the forwarding order.

[0124] In this embodiment, a device for improving the efficiency of GOOSE message forwarding is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0125] This embodiment provides a device for improving the efficiency of GOOSE message forwarding, which is applied to a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed, such as Figure 7 As shown, including:

[0126] The network message acquisition module 701 is used to acquire network messages transmitted between network devices.

[0127] A GOOSE message determination module 702, used to determine whether a network message includes a GOOSE message based on a service type;

[0128] The real-time task processing module 703 is used for, when the network message includes a GOOSE message, running the main real-time operating system or running the main real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and running the non-real-time operating system to process the non-real-time task in the network message;

[0129] The non-real-time task processing module 704 is used to run the non-real-time operating system to process the non-real-time tasks in the network message when the network message does not contain the GOOSE message, and to run the main real-time operating system to monitor the network message.

[0130] In some optional implementations, the network message includes multiple Ethernet frames, and the GOOSE message determination module 702 includes:

[0131] The GOOSE message judgment unit is used to receive each Ethernet frame and monitor the ether_type field of the Ethernet frame. When the value of the ether_type field is 0x88B8, the Ethernet frame is judged to be a GOOSE message, that is, the network message contains a GOOSE message; otherwise, the network message is judged to be a non-real-time task.

[0132] In some optional implementations, the real-time task processing module 703 includes:

[0133] The single-core operating system forwarding unit is used to run the main core real-time operating system to forward the GOOSE message when the frequency of the GOOSE message is low, and run the non-real-time operating system to process the non-real-time tasks in the network message.

[0134] The dual-core operating system forwarding unit is used to modify the configuration file of the data collector when the frequency of GOOSE messages appears is high, configure the switchable operating system as the secondary core real-time operating system, and switch the main core real-time operating system to forward the GOOSE messages so that the main core real-time operating system and the secondary core real-time operating system forward the GOOSE messages simultaneously through shared memory or task message queues, and run the non-real-time operating system to process non-real-time tasks in network messages.

[0135] In some optional implementations, the dual-core operating system forwarding unit includes:

[0136] The cache subunit is used to store the GOOSE messages in the shared memory or the task message queue in the order of the reception timestamps of the GOOSE messages when the GOOSE messages appear at a high frequency.

[0137] The GOOSE message forwarding subunit is used to obtain the GOOSE message through the shared memory or task message queue using the primary core real-time operating system and the secondary core real-time operating system, and forward the GOOSE message in sequence according to the receiving timestamp of the GOOSE message.

[0138] In some optional implementations, the device for improving the GOOSE message forwarding efficiency further includes:

[0139] The GOOSE message validity verification module is used to verify whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address when the Ethernet frame is a GOOSE message. If they match, the GOOSE message is determined to be valid; if not, the GOOSE message is determined to be invalid.

[0140] The GOOSE message frequency judgment module is used to monitor the flow of GOOSE messages using a MAC controller, and judge the frequency of GOOSE messages based on the flow of GOOSE messages.

[0141] In some optional implementations, the GOOSE message frequency determination module includes:

[0142] The low frequency judgment unit is used to judge that the frequency of occurrence of the GOOSE message is low frequency when the flow of the GOOSE message is lower than the preset network flow threshold and no GOOSE message is detected within a preset time period.

[0143] The high frequency judgment unit is used to determine that the flow of the GOOSE message exceeds the preset network flow threshold when the reception frequency of the GOOSE message exceeds the preset frequency. At this time, the frequency of the GOOSE message is high frequency.

[0144] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0145] The device for improving the GOOSE message forwarding efficiency in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0146] The embodiment of the present invention also provides a computer device having the above Figure 7 The device shown is for improving the GOOSE message forwarding efficiency.

[0147] See also Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0148] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0149] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0150] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0152] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0153] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0154] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0155] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0156] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for improving GOOSE message forwarding efficiency, characterized in that: Applied to a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed, the method comprises: Get network messages transmitted between network devices; Determine whether the network message contains a GOOSE message based on the service type; When the network message contains a GOOSE message, the main real-time operating system is run based on the frequency of the GOOSE message, or the main real-time operating system and the switchable operating system are run at the same time to forward the GOOSE message, and the non-real-time operating system is run to process the non-real-time tasks in the network message; When the network message does not contain the GOOSE message, the non-real-time operating system is run to process the non-real-time tasks in the network message, and the main real-time operating system is run to monitor the network message.

2. The method for improving GOOSE message forwarding efficiency according to claim 1, characterized in that: The network message includes a plurality of Ethernet frames; The determining whether the network message includes a GOOSE message based on the service type includes: Receive each Ethernet frame and monitor the ether_type field of the Ethernet frame. When the value of the ether_type field is 0x88B8, the Ethernet frame is determined to be a GOOSE message, that is, the network message contains a GOOSE message; otherwise, the network message is determined to be a non-real-time task message.

3. The method for improving GOOSE message forwarding efficiency according to claim 2, characterized in that: The method further comprises: When the Ethernet frame is a GOOSE message, it is verified whether the target MAC address of the GOOSE message matches the preset GOOSE message communication address. If they match, the GOOSE message is determined to be valid; if not, the GOOSE message is determined to be invalid.

4. The method for improving GOOSE message forwarding efficiency according to claim 1, characterized in that: Before running the main real-time operating system or running the main real-time operating system and the switchable operating system simultaneously to forward the GOOSE message based on the frequency of occurrence of the GOOSE message, the method further includes: A MAC controller is used to monitor the flow of the GOOSE message, and the frequency of occurrence of the GOOSE message is determined based on the flow of the GOOSE message.

5. The method for improving GOOSE message forwarding efficiency according to claim 4, characterized in that: The frequency of occurrence of the GOOSE message based on the flow of the GOOSE message includes: When the flow of GOOSE messages is lower than the preset network flow threshold and no GOOSE messages are detected within the preset time period, the frequency of GOOSE messages is determined to be low frequency; When the receiving frequency of the GOOSE message exceeds the preset frequency, it is determined that the flow of the GOOSE message exceeds the preset network flow threshold. At this time, the frequency of the GOOSE message is high frequency.

6. The method for improving GOOSE message forwarding efficiency according to claim 1, characterized in that: The method of running the main real-time operating system based on the frequency of occurrence of the GOOSE message or running the main real-time operating system and the switchable operating system at the same time to forward the GOOSE message, and running the non-real-time operating system to process the non-real-time tasks in the network message includes: When the frequency of GOOSE messages is low, the main real-time operating system is run to forward the GOOSE messages, and the non-real-time operating system is run to process the non-real-time tasks in the network messages; When the frequency of GOOSE messages appears is high, modify the configuration file of the data collector, configure the switchable operating system as the secondary core real-time operating system, and switch the main core real-time operating system to forward the GOOSE messages. Switch the main core real-time operating system and the secondary core real-time operating system to forward the GOOSE messages simultaneously through shared memory or task message queues, and run the non-real-time operating system at the same time to process the non-real-time tasks in the network messages.

7. The method for improving GOOSE message forwarding efficiency according to claim 6, characterized in that: The switching of forwarding the GOOSE message from the primary core real-time operating system to the primary core real-time operating system and the secondary core real-time operating system forwarding the GOOSE message simultaneously through a shared memory or a task message queue comprises: When the frequency of GOOSE messages is high, the GOOSE messages are stored in the shared memory or task message queue in the order of the reception timestamps of the GOOSE messages; The primary core real-time operating system and the secondary core real-time operating system obtain the GOOSE message through a shared memory or a task message queue, and forward the GOOSE message in sequence according to the receiving timestamp of the GOOSE message.

8. A device for improving GOOSE message forwarding efficiency, characterized in that: Applied to a data collector, in which a non-real-time operating system, a main core real-time operating system and a switchable operating system are deployed, the device comprises: A network message acquisition module, used to acquire network messages transmitted between network devices; A GOOSE message judgment module is used to judge whether a network message contains a GOOSE message based on the service type; A real-time task processing module is used for, when a network message contains a GOOSE message, running the main real-time operating system or running the main real-time operating system and the switchable operating system at the same time to forward the GOOSE message based on the frequency of the GOOSE message, and running the non-real-time operating system to process the non-real-time tasks in the network message; The non-real-time task processing module is used to run the non-real-time operating system to process the non-real-time tasks in the network message when the network message does not contain the GOOSE message, and run the main real-time operating system to monitor the network message.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for improving the GOOSE message forwarding efficiency according to any one of claims 1 to 7 by executing the computer instructions.

10. 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 computer to execute the method for improving GOOSE message forwarding efficiency according to any one of claims 1 to 7.