Network message analyzing and recording system and method based on transformer substation monitoring platform

By designing a network message analysis and recording system based on the substation monitoring platform in the smart substation, the problem of real-time and accuracy of equipment status monitoring and abnormal alarms is solved, the disk life is extended, the maintenance cost is reduced, and efficient equipment maintenance is achieved. .

CN118764504APending Publication Date: 2024-10-11SHANDONG LUNENG SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410819980.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing technology cannot effectively implement a large number of equipment status monitoring and abnormal alarms in smart substations. The real-time performance and accuracy are poor. The disk is easily damaged and the storage space is limited, resulting in high maintenance costs.

Method used

Design a network message analysis and recording system based on a substation monitoring platform. By reconstructing the file storage method, sequential storage is used to compress the message data, partition the disk into storage blocks of the same size, and generate index files to manage the storage blocks. Efficient message storage and disk usage.

Benefits of technology

It improves the efficiency of message storage and disk service life, reduces maintenance costs, realizes real-time monitoring of panoramic remote control and remote signaling, and enhances equipment maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764504A_ABST
    Figure CN118764504A_ABST
Patent Text Reader

Abstract

The invention relates to a network message analyzing and recording system and method based on a transformer substation monitoring platform, and the system comprises a message collection module which is used for recording and collecting message data of the whole communication process based on an IEC61850 communication network; reading an original message from the IEC61850 communication network acquisition interface, and storing the original message; the message preprocessing module is used for disassembling the original message; the method comprises the following steps: splitting an original message into frame messages taking a frame as a unit, carrying out PktMng structure packaging processing on the split frame messages, and judging the message type of the packaged frame messages; the disk partitioning module is used for partitioning the disk; the method comprises the following steps: dividing a disk into a plurality of storage partitions, and dividing each storage partition into storage blocks with the same size and continuous space again; generating index file management storage partitions and storage blocks; and the message storage module is used for storing the message and storing the message into a corresponding disk space according to a storage rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of safe storage of electric power data, and relates to a message analysis and recording device for electric power data, in particular to a network message analysis and recording system and method based on a substation monitoring platform. Background Art

[0002] With the continuous improvement of the modernization and industrialization level of cities, smart substations have developed rapidly. Smart grids need to achieve the organic integration of power flow, information flow, and business flow. Therefore, it is imperative to build an information integration platform in smart substations, interconnect systems such as system equipment interoperability, break the system information island, and realize panoramic data collection and data sharing of substations. The rapid advancement of smart station equipment has driven the rapid development of auxiliary monitoring equipment in substations. Network message recording and analysis devices are important secondary auxiliary equipment in smart substations, and can play an important role in debugging, operation and maintenance, and fault handling. In the process of construction and management of smart substations, it is necessary to do a good job in the debugging and maintenance of secondary equipment, adopt scientific debugging and maintenance methods, ensure timely discovery of problems with secondary equipment, improve fault handling efficiency, and avoid further expansion of fault problems.

[0003] Network message analysis and recording is an important means to ensure the stable operation of equipment in the substation and to analyze messages when abnormalities occur during equipment communication and interaction. The single message analysis in the existing technology cannot achieve the status monitoring and abnormal alarm of a large number of equipment in the substation, as well as the real-time monitoring of the panoramic remote control and telesignaling in the substation, and the real-time performance and accuracy are poor. At the same time, there are technical problems such as the disk is easily damaged and the storage space is limited, resulting in high maintenance costs and inconvenience in use. This is the shortcoming of the existing technology.

[0004] In view of this, it is very necessary for the present invention to provide a network message analysis and recording system and method based on a substation monitoring platform to solve the above-mentioned defects in the prior art. Summary of the invention

[0005] The purpose of the present invention is to address the problems existing in the above-mentioned existing technologies, such as the inability to realize status monitoring and abnormal equipment alarms of a large number of substation equipment, as well as real-time monitoring of panoramic remote control and telesignaling in substations, and the poor real-time performance and accuracy. At the same time, there are technical defects such as the disk is easily damaged and the storage space is limited, resulting in high subsequent maintenance costs and inconvenience in use. A network message analysis and recording system and method based on a substation monitoring platform are provided to solve the above technical problems. The file storage in this technical solution reconstructs the file storage method and adopts sequential storage, thereby greatly reducing the frequency of disk head movement and extending the service life of the disk.

[0006] To achieve the above object, the present invention provides the following technical solutions: A network message analysis and recording system based on a substation monitoring platform, comprising: Message collection module, used to record and collect message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; The message preprocessing module is used to disassemble the original message; The original message is disassembled into frame messages in frames, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined; Disk partition module, used to process disk partitions; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; The message storage module is used to store messages and store the messages in corresponding disk space according to storage rules; The storage rules include: Before saving the message to disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure (ZipHdr.bZip), and then it will be actually saved to disk. When storing, it is stored in a compressed package (ZIPPACK) as a unit (written to the storage block currently being operated). When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file; a compressed package is not allowed to be stored across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory; When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

[0007] Preferably, in the message collection module, remote control of IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telemotor, the second step: MMS (CMS) communication between the telemotor and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal; the panoramic remote control function of the network division system is based on the analysis conclusions of the network division (remote control events of IEC-60870-5-104 telecontrol protocol, remote signal changes of IEC-60870-5-104 telecontrol protocol, remote control events of mms, remote signal reports of mms, goose changes), which can be based on the configuration (configuration according to the RCD file, that is, the gateway forwarding point table) to effectively integrate this information, or it can be based on time and subscription relationship without relying on the RCD file.

[0008] Preferably, in the message collection module, the telesignaling displacement caused by the position change of the hard telesignaling node is also fully displayed, including goose switch displacement, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when visually displayed, the actually selected telesignaling point is the current telesignaling point (such as the point of the mms telesignaling report), and its leading point is the goose switch displacement (the concept of leading is that the point of the mms telesignaling report appears because the goose switch displacement occurs, so the point of the goose switch displacement is the leading point of the point of the mms telesignaling report), and its subsequent point is the IEC104 telecontrol protocol telesignaling report (the concept of subsequent is that the appearance of the point of the current mms telesignaling report will lead to the IEC104 telecontrol protocol telesignaling report, so the point of the IEC104 telecontrol protocol telesignaling report is the subsequent point). It can be seen that the goose switch displacement has no leading point, only the subsequent point, and the IEC104 telecontrol protocol telesignaling report has no subsequent point, only the leading point. If the values ​​of the current telesignal point, leading point and subsequent points are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignal point is correct.

[0009] Preferably, in the message preprocessing module, the packetized frame message is judged by the message type, and the frame message type is divided into SV (sampling value) message and non-SV message. Classifying the frame message can effectively facilitate the subsequent frame message processing.

[0010] Preferably, in the disk partitioning module, the disk is partitioned, and each storage partition is treated as a large file. If an error occurs in the operation of the storage partition, the hard disk fault state will be set. It is automatically formatted in its own form, so there is no need to mount the storage partition in advance and format it according to a certain file system. The formatting operation in its own form will divide each storage partition into blocks (BLOCK) of the same size (50M) and continuous space, and generate two index files (idx, stored on the system hard disk) to manage these storage partitions and blocks, where the SMV_DATA.idx index file is used to manage SV storage partitions and storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV storage partitions and storage blocks on these storage partitions. The formatting operation is performed only once, unless the program detects that the index file does not exist, or the content of the index file does not match the actual storage partition information. In addition, the formatting operation will restore the original storage information from the storage partition, unless the program input parameter forcibly requires not to restore.

[0011] The present invention also provides a network message analysis and recording method based on a substation monitoring platform, comprising the following steps: Step S1: a message collection step, which records and collects message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; Step S2: a message preprocessing step, in which the original message is disassembled; The original message is disassembled into frame messages in frames, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined; Step S3: a disk partitioning step, in which the disk is partitioned; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; Step S4: a message storage step, in which the message is stored in a corresponding disk space according to a storage rule; The storage rules include: Before saving the message to disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure (ZipHdr.bZip), and then it will be actually saved to disk. When storing, it is stored in a compressed package (ZIPPACK) as a unit (written to the storage block currently being operated). When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file; a compressed package is not allowed to be stored across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory; When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

[0012] Preferably, in step S1, the remote control of the IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telemotor, the second step: MMS (CMS) communication between the telemotor and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal; the panoramic remote control function of the network division system is based on the analysis conclusions of the network division (remote control events of IEC-60870-5-104 telecontrol protocol, remote signal changes of IEC-60870-5-104 telecontrol protocol, remote control events of mms, remote signal reports of mms, goose changes), which can be based on the configuration (configuration according to the RCD file, that is, the gateway forwarding point table) to effectively integrate this information, or it can be based on time and subscription relationship without relying on the RCD file.

[0013] Preferably, in the step S1, the telesignaling displacement caused by the position change of the hard telesignaling node is also displayed in all directions, including goose switch displacement, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when the telesignaling point is displayed visually, the actual selected telesignaling point is the current telesignaling point (such as the point of the mms telesignaling report), and its leading point is the goose switch displacement (the leading concept is that the point of the mms telesignaling report appears because the goose switch displacement occurs, so the point of the goose switch displacement is the leading point of the point of the mms telesignaling report), and its subsequent point is the IEC104 telecontrol protocol telesignaling report (the subsequent concept is that the appearance of the point of the current mms telesignaling report will lead to the IEC104 telecontrol protocol telesignaling report, so the point of the IEC104 telecontrol protocol telesignaling report is the subsequent point). It can be seen that the goose switch displacement has no leading point, only the subsequent point, and the IEC104 telecontrol protocol telesignaling report has no subsequent point, only the leading point. If the values ​​of the current telesignal point, leading point and subsequent points are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignal point is correct.

[0014] Preferably, in step S2, the packetized frame message is judged by message type, and the frame message type is divided into SV (sampled value) message and non-SV message. Classifying the frame message can effectively facilitate the subsequent frame message processing.

[0015] Preferably, in step S3, the disk is partitioned, and each storage partition is treated as a large file. If an error occurs in the operation of the storage partition, the hard disk fault state will be set. The formatting operation of its own form is automatically performed, so there is no need to mount the storage partition in advance and format it according to a certain file system. The formatting operation of its own form will divide each storage partition into blocks (BLOCK) of the same size (50M) and continuous space, and generate two index files (idx, stored on the system hard disk) to manage these storage partitions and blocks, where the SMV_DATA.idx index file is used to manage SV storage partitions and storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV storage partitions and storage blocks on these storage partitions. The formatting operation is performed only once, unless the program detects that the index file does not exist, or the content of the index file does not match the actual storage partition information. In addition, the formatting operation will restore the original storage information from the storage partition, unless the program input parameter forcibly requires not to restore.

[0016] The beneficial effect of the present invention is that, by reconstructing the system file storage method in the technical solution of the present application, the message sequence can be effectively stored, the corresponding record can be searched conveniently and quickly, and the efficiency can be improved; the entire communication message collected can be analyzed, the integrity of the message and the error rate of the message can be effectively judged, and at the same time, the processing method of collecting and storing the message data is changed, a storage model is established, and the flow data is reasonably compressed. Reasonable and maximized utilization of hard disk storage space. It can improve the message storage capacity, improve the reading method, reduce the damage to the disk caused by the movement of the magnetic head, increase the service life, save costs, and can fully visualize the panoramic remote control process in the station, effectively analyze every detail in the remote control process, greatly improve the maintenance efficiency in the station and save costs. In addition, the design principle of the present invention is reliable, the structure is simple, and it has a very broad application prospect.

[0017] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 The invention provides a principle block diagram of a network message analysis and recording system based on a substation monitoring platform.

[0020] Figure 2 The present invention provides a flow chart of a network message analysis and recording method based on a substation monitoring platform.

[0021] Among them, 1-message collection module, 2-message pre-processing module, 3-disk partition module, 4-message storage module. DETAILED DESCRIPTION

[0022] The present invention will be described in detail below with reference to the accompanying drawings and through specific embodiments. The following embodiments are explanations of the present invention, but the present invention is not limited to the following implementation modes.

[0023] Embodiment 1: like Figure 1 As shown, this embodiment provides a network message analysis and recording system based on a substation monitoring platform, including: The message collection module 1 is used to record and collect message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; In the message collection module 1, the remote control of the IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telemotor, the second step: MMS (CMS) communication between the telemotor and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal; the panoramic remote control function of the network division system is based on the analysis conclusions of the network division (remote control events of IEC-60870-5-104 telecontrol protocol, remote signal changes of IEC-60870-5-104 telecontrol protocol, remote control events of mms, remote signal reports of mms, goose changes). This information can be effectively integrated based on the configuration (configuration based on the RCD file, that is, the gateway forwarding point table), or it can be intelligently integrated based on time and subscription relationships without relying on the RCD file.

[0024] In the message collection module 1, the telesignaling displacement caused by the position change of the hard telesignaling node is also fully displayed, including goose switch displacement, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when visually displayed, the actually selected telesignaling point is the current telesignaling point (such as the point of the mms telesignaling report), and its leading point is the goose switch displacement (the leading concept is that the point of the mms telesignaling report appears because the goose switch displacement occurs, so the point of the goose switch displacement is the leading point of the point of the mms telesignaling report), and its subsequent point is the IEC104 telecontrol protocol telesignaling report (the subsequent concept is that the appearance of the point of the current mms telesignaling report will lead to the IEC104 telecontrol protocol telesignaling report, so the point of the IEC104 telecontrol protocol telesignaling report is the subsequent point). It can be seen that the goose switch displacement has no leading point, only the subsequent point, and the IEC104 telecontrol protocol telesignaling report has no subsequent point, only the leading point. If the values ​​of the current telesignal point, leading point and subsequent points are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignal point is correct.

[0025] Message preprocessing module 2, used for disassembling the original message; The original message is disassembled into frame messages in frame units, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined.

[0026] In the message preprocessing module 2, the packetized frame message is judged by the message type, and the frame message type is divided into SV (sampling value) message and non-SV message. Classifying the frame message can effectively facilitate the subsequent frame message processing.

[0027] The disk partition module 3 is used to partition the disk; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; In the disk partition module 3, the disk is partitioned, and each storage partition will be treated as a large file. If an error occurs in the operation of the storage partition, the hard disk fault state will be set. It is automatically formatted in its own form, so there is no need to mount the storage partition in advance and format it according to a certain file system. The formatting operation in its own form will divide each storage partition into blocks (BLOCK) of the same size (50M) and continuous space, and generate two index files (idx, stored on the system hard disk) to manage these storage partitions and blocks, where the SMV_DATA.idx index file is used to manage SV storage partitions and storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV storage partitions and storage blocks on these storage partitions. The formatting operation is performed only once, unless the program detects that the index file does not exist, or the content of the index file does not match the actual storage partition information. In addition, the formatting operation will restore the original storage information from the storage partition, unless the program input parameter forcibly requires not to restore.

[0028] The message storage module 4 is used to store the message and store the message in the corresponding disk space according to the storage rules; The storage rules include: Before saving the message to disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure (ZipHdr.bZip), and then it will be actually saved to disk. When storing, it is stored in a compressed package (ZIPPACK) as a unit (written to the storage block currently being operated). When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file; a compressed package is not allowed to be stored across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory; When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

[0029] Embodiment 2: like Figure 2 As shown, this embodiment provides a network message analysis and recording method based on a substation monitoring platform, comprising the following steps: Step S1: a message collection step, which records and collects message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; In the step S1, the remote control of the IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telemotor, the second step: MMS (CMS) communication between the telemotor and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal; the panoramic remote control function of the network division system is based on the analysis conclusions of the network division (remote control events of IEC-60870-5-104 telecontrol protocol, remote signal changes of IEC-60870-5-104 telecontrol protocol, remote control events of mms, remote signal reports of mms, goose changes). This information can be effectively integrated based on the configuration (configuration based on the RCD file, that is, the gateway forwarding point table), or it can be intelligently integrated based on time and subscription relationships without relying on the RCD file.

[0030] In the step S1, the telesignaling displacement caused by the position change of the hard telesignaling node is also displayed in all directions, including goose switch displacement, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when the telesignaling point is displayed visually, the actual selected telesignaling point is the current telesignaling point (such as the point of the mms telesignaling report), and its leading point is the goose switch displacement (the leading concept is that the point of the mms telesignaling report appears because the goose switch displacement occurs, so the point of the goose switch displacement is the leading point of the point of the mms telesignaling report), and its subsequent point is the IEC104 telecontrol protocol telesignaling report (the subsequent concept is that the appearance of the point of the current mms telesignaling report will lead to the IEC104 telecontrol protocol telesignaling report, so the point of the IEC104 telecontrol protocol telesignaling report is the subsequent point). It can be seen that the goose switch displacement has no leading point, only the subsequent point, and the IEC104 telecontrol protocol telesignaling report has no subsequent point, only the leading point. If the values ​​of the current telesignal point, leading point and subsequent points are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignal point is correct.

[0031] Step S2: a message preprocessing step, in which the original message is disassembled; The original message is disassembled into frame messages in frames, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined; In the step S2, the packetized frame message is judged by message type, and the frame message type is divided into SV (sampled value) message and non-SV message. Classifying the frame message can effectively facilitate the subsequent frame message processing.

[0032] Step S3: a disk partitioning step, in which the disk is partitioned; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; In the step S3, the disk is partitioned, and each storage partition is treated as a large file. If an error occurs in the operation of the storage partition, the hard disk fault state will be set. It is automatically formatted in its own form, so there is no need to mount the storage partition in advance and format it according to a certain file system. The formatting operation in its own form will divide each storage partition into blocks (BLOCK) of the same size (50M) and continuous space, and generate two index files (idx, stored on the system hard disk) to manage these storage partitions and blocks, where the SMV_DATA.idx index file is used to manage SV storage partitions and storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV storage partitions and storage blocks on these storage partitions. The formatting operation is performed only once, unless the program detects that the index file does not exist, or the content of the index file does not match the actual storage partition information. In addition, the formatting operation will restore the original storage information from the storage partition, unless the program input parameter forcibly requires not to restore.

[0033] Step S4: a message storage step, in which the message is stored in a corresponding disk space according to a storage rule; The storage rules include: Before saving the message to disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure (ZipHdr.bZip), and then it will be actually saved to disk. When storing, it is stored in a compressed package (ZIPPACK) as a unit (written to the storage block currently being operated). When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file; a compressed package is not allowed to be stored across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory; When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

[0034] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. As for the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0035] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0036] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0037] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0038] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit.

[0039] Similarly, each processing unit in each embodiment of the present invention may be integrated into one functional module, or each processing unit may exist physically, or two or more processing units may be integrated into one functional module.

[0040] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0041] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0042] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A network message analysis and recording system based on a substation monitoring platform, characterized in that: include: Message collection module, used to record and collect message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; The message preprocessing module is used to disassemble the original message; The original message is disassembled into frame messages in frames, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined; Disk partition module, used to process disk partitions; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; The message storage module is used to store messages and store the messages in corresponding disk space according to storage rules; The storage rules include: Before storing the message in disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure before actually storing it in disk. When storing, it is stored in units of one compressed package. When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file. It is not allowed to store a compressed package across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory. When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

2. According to claim 1, a network message analysis and recording system based on a substation monitoring platform is characterized in that: In the message collection module, the remote control of the IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telecontrol machine, the second step: MMS (CMS) communication between the telecontrol machine and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal.

3. A network message analysis and recording system based on a substation monitoring platform according to claim 2, characterized in that: In the message collection module, the telesignaling position change caused by the position change of the hard telesignaling node is also fully displayed, including goose switch position change, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when the visual display is performed, the actually selected telesignaling point is the current telesignaling point, its leading point is the goose switch position change, and its subsequent point is the IEC104 telecontrol protocol telesignaling report. If the values ​​of the current telesignaling point, the leading point and the subsequent point are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignaling point is correct.

4. A network message analysis and recording system based on a substation monitoring platform according to claim 3, characterized in that: In the message preprocessing module, the packetized frame message is judged according to the message type, and the frame message type is divided into SV class message and non-SV class message.

5. A network message analysis and recording system based on a substation monitoring platform according to claim 4, characterized in that: In the disk partition module, two index files SMV_DATA.idx index file and OTH_DATA.idx index file are generated to manage these storage partitions and storage blocks, wherein the SMV_DATA.idx index file is used to manage SV class storage partitions and the storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV class storage partitions and the storage blocks on these storage partitions.

6. A network message analysis and recording method based on a substation monitoring platform, characterized in that: The following steps are involved: Step S1: a message collection step, which records and collects message data of the entire communication process based on the IEC61850 communication network; Read the original message from the IEC61850 communication network acquisition interface and store the original message in the CapturePacket::m_aRawdata array; Step S2: a message preprocessing step, in which the original message is disassembled; The original message is disassembled into frame messages in frames, the disassembled frame messages are packaged in PktMng structure, and the message type of the packaged frame messages is determined; Step S3: a disk partitioning step, in which the disk is partitioned; Divide the disk into several storage partitions, and divide each storage partition into storage blocks of the same size and continuous space; and generate index files to manage storage partitions and storage blocks; Step S4: a message storage step, in which the message is stored in a corresponding disk space according to a storage rule; The storage rules include: Before storing the message in disk, you need to try to compress the message first. The success or failure of compression will be marked in the ZipInfo structure before actually storing it in disk. When storing, it is stored in units of one compressed package. When the storage block is full, the information of the storage block is updated to the tail of the storage block and the index file. The block information of the same storage block is consistent in the tail of the storage block and the index file. It is not allowed to store a compressed package across two storage blocks. Each time a compressed package is stored, the header information of the compressed package will be used to update the block information corresponding to the storage block in the memory. When a storage block is full, the block information corresponding to the storage block in the memory is first stored at the end of the storage block on the partition, and then stored in the index file, and finally the MoveToNextBlk function is called to switch to a new storage block.

7. A network message analysis and recording method based on a substation monitoring platform according to claim 6, characterized in that: In the step S1, the remote control of the IEC104 telecontrol protocol message communication is completed in the following three steps: The first step: IEC104 telecontrol protocol communication between the dispatching master station and the telecontrol machine, the second step: MMS (CMS) communication between the telecontrol machine and the measurement and control, the third step: GOOSE communication between the measurement and control and the intelligent terminal.

8. A network message analysis and recording method based on a substation monitoring platform according to claim 7, characterized in that: In the step S1, the telesignaling position change caused by the position change of the hard telesignaling node is also fully displayed, including goose switch position change, mms telesignaling report, and IEC104 telecontrol protocol telesignaling report; when the visual display is performed, the actually selected telesignaling point is the current telesignaling point, its leading point is the goose switch position change, and its subsequent point is the IEC104 telecontrol protocol telesignaling report. If the values ​​of the current telesignaling point, the leading point, and the subsequent point are consistent and there is an obvious time sequence relationship, it means that the forwarding configuration of the telesignaling point is correct.

9. A network message analysis and recording method based on a substation monitoring platform according to claim 8, characterized in that: In the step S2, the packetized frame message is judged according to the message type, and the frame message type is divided into SV message and non-SV message.

10. A network message analysis and recording method based on a substation monitoring platform according to claim 9, characterized in that: In step S3, two index files SMV_DATA.idx index file and OTH_DATA.idx index file are generated to manage these storage partitions and storage blocks, wherein the SMV_DATA.idx index file is used to manage SV class storage partitions and the storage blocks on these storage partitions, and the OTH_DATA.idx index file is used to manage non-SV class storage partitions and the storage blocks on these storage partitions.