CN104750598A - A storage method for IEC61850 log service - Google Patents

A storage method for IEC61850 log service Download PDF

Info

Publication number
CN104750598A
CN104750598A CN201310732820.5A CN201310732820A CN104750598A CN 104750598 A CN104750598 A CN 104750598A CN 201310732820 A CN201310732820 A CN 201310732820A CN 104750598 A CN104750598 A CN 104750598A
Authority
CN
China
Prior art keywords
power down
lost
capacity
speed
daily record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310732820.5A
Other languages
Chinese (zh)
Other versions
CN104750598B (en
Inventor
陈春华
李广华
徐东方
王自成
周强
文继锋
冯亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN201310732820.5A priority Critical patent/CN104750598B/en
Publication of CN104750598A publication Critical patent/CN104750598A/en
Application granted granted Critical
Publication of CN104750598B publication Critical patent/CN104750598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a storage method for IEC61850 log service, comprising the following steps: storing the log generated by a device in a high-speed small-capacity memory where the log will not be lost when the power is down in real time; entirely copying all logs to a high-speed large-capacity memory, where the logs will be lost when the power is down, to cache if the logs cached in the high-speed small-capacity memory where the log will not be lost reaches to the set log uploading capacity; adopting low-speed service to monitor whether the logs in the high-speed large-capacity memory, where the logs will be lost when the power is down are updated; entirely copying the newly increased logs to a low-speed large-capacity memory where the log will not be lost when the power is down by using the service with low priority if there is updating; updating the log information in the high-speed large-capacity memory, where the logs will not be lost when the power is down and the high-speed large-capacity memory, where the logs will be lost when the power is down after recording the newly increased logs in the low-speed large-capacity memory where the log will not be lost when the power is down via the service with low priority. The storage method can be used for realizing high-speed large-capacity storage of the IEC61850 log service and the condition that the logs will not be lost when the power is down.

Description

A kind of storage means of IEC61850 log services
Technical field
The present invention relates to a kind of storage means of IEC61850 log services.
Background technology
IEC61850 log services is one of critical services in IEC61850 consensus standard, is also the important evidence that fault information in electric power system is recollected simultaneously.Log services is different from other IEC61850 and serves, and this service request and communication state have nothing to do, and still will carry out event information record when network or communication failure, and has the characteristic that power down do not lose.Because log services needs a large amount of storage spaces usually, such as electrical primary equipment on-line monitoring equipment, require daily record to store for up to 1 year, and counting of each periodic recording is many, huge to daily record capacity requirement; In addition when the system failure, the function of supported data change records daily record may produce a large amount of log informations in the short time, can not record in time for avoiding burst log event to cause too much, system log (SYSLOG) daily record is proposed to the demand of high real-time.
Adopt the high speed small-capacity memory (such as NVRAM) do not lost of power down to store, the requirement of the high speed real-time storage when daily record burst produces can be met, and there is data power down do not lose function; But this memory span is very little, the Limited Number of storing daily record, cannot meet the requirement of massive store.If the low speed mass storage (such as NANDFLASH) directly adopting power down not lose carries out daily record storage, although the requirement that capacity and power down are not lost can be met, but because its storage speed is comparatively slow, cannot preserve in time when a large amount of daily record burst produces, real-time does not meet the demands.The high-speed large capacity memory (such as DRAM) lost according to power down carries out daily record storage, although can meet the demands on capacity and speed, but can not meet the requirement that daily record power down do not lose.
The IEC61850 daily record storage scheme of current employing is generally the storage mode using DRAM and NANDFLASH to combine.Device generates daily record, first high-speed cache is carried out stored in DRAM, after arriving certain capacity, again the daily record in DRAM is copied in NANDFLASH, although this scheme can reach at a high speed, the requirement that Large Copacity and certain power down are lost, but a part of up-to-date journal entries be kept in DRAM may be lost under power-down conditions, have much room for improvement.
Summary of the invention
Object of the present invention, is the storage means providing a kind of IEC61850 log services, and it can realize the storage that the high speed of IEC61850 log services, Large Copacity and power down are not lost.
In order to reach above-mentioned purpose, solution of the present invention is:
A storage means for IEC61850 log services, comprises the steps:
(1) in the high speed small-capacity memory that the daily record that device generates is not lost stored in power down in real time;
(2) in the high speed small-capacity memory do not lost when aforementioned power down, the daily record of buffer memory reaches the daily record unloading capacity of setting, its all log entry is copied to the high-capacity and high-speed storer that power down loses and carries out buffer memory;
(3) in the high-capacity and high-speed storer adopting the power down of low speed task monitors to lose, whether daily record upgrades, in have renewal then newly-increased daily record to be used the task of low priority entirety to be copied to low speed mass storage that power down do not lose;
(4), after in the low speed mass storage do not lost to power down by newly-increased log recording of the task of aforementioned low priority, log information corresponding in high speed small-capacity memory that power down do not lose and the high-capacity and high-speed storer that power down is lost is upgraded.
The particular content of above-mentioned steps (1) is: when device inside produces daily record, and the daily record of generation is according to sequencing, and stored in the high speed small-capacity memory that power down is not lost, in this storer, the counter of journal entries increases by 1.
The particular content of above-mentioned steps (2) is: when in the high speed small-capacity memory that power down is not lost, the daily record of buffer memory reaches the daily record unloading capacity m of setting, before in the high speed small-capacity memory that this power down is not lost m bar log entry be copied to power down lose high-capacity and high-speed storer carry out buffer memory, and arrange described power down lose high-capacity and high-speed storer in daily record upgrade mark be set to TRUE.
The particular content of above-mentioned steps (3) is: the task of low priority continues the daily record detected in the high-capacity and high-speed storer of power down loss and upgrades mark, and when being masked as TRUE, in daily record newly-increased in the high-capacity and high-speed storer that power down is lost use the task of low priority entirety to be copied to low speed mass storage that power down do not lose.
The particular content of above-mentioned steps (4) is: after in the low speed mass storage that newly-increased log recording is not lost to power down by the task of low priority, m bar daily record corresponding in high speed small-capacity memory power down do not lost is removed, the counter of journal entries in the high speed small-capacity memory that accurate this power down of renewal is not simultaneously lost, and the daily record renewal mark in high-capacity and high-speed storer power down lost is set to FALSE.
After adopting such scheme, the high speed small-capacity memory (as NVRAM) that the present invention adopts power down not lose and the low speed mass storage (as NANDFLASH) that power down is not lost combine and carry out the storage of IEC61850 daily record, and the high-speed large capacity memory using power down to lose (as DRAM) is as intermediate buffer, carry out the copy of daily record data between high speed small-capacity memory that power down do not lose and the low speed mass storage that power down is not lost, achieve the memory function of IEC61850 daily record, taken into account the high speed needed for daily record storage simultaneously, the characteristic that Large Copacity and power down are not lost.
Accompanying drawing explanation
Fig. 1 is fundamental diagram of the present invention.
Embodiment
Below with reference to accompanying drawing, technical scheme of the present invention is described in detail.
As shown in Figure 1, the invention provides a kind of storage means of IEC61850 log services, focus on adopting the high speed small-capacity memory A(that do not lose of power down to adopt NVRAM) and the low speed mass storage C(that do not lose of power down can adopt NANDFLASH) combine, and by power down lose high-speed large capacity memory B(as DRAM) realize unloading, wherein, A is as high-speed memory, and B is as intermediate buffer, C is as mass storage, and described method comprises the steps:
(1) after device inside produces new daily record, newly-generated daily record according to sequencing, in the low capacity high-speed memory A first do not lost stored in power down, the corresponding increase of counter n of journal entries in record A, i.e. n++;
(2) when the counter of journal entries in A reaches daily record unloading capacity m(and n>=m of setting), and when in the high-speed large capacity memory B that power down is lost, daily record upgrades and is masked as FALSE, m bar log entry before in A is copied in B by system carries out buffer memory, and the daily record arranged in B upgrades mark is set to TRUE;
(3) watchdog routine of low priority is used, judge whether have renewal in B, mark is upgraded by not stopping the daily record detected in B, discovery indicates renewal when being masked as TRUE, then the journal entries increased newly in B entirety is copied in the low speed mass storage C that power down do not lose, after this m bar log content corresponding in A is removed, accurately upgrade the entry count device remaining daily record in A simultaneously, i.e. (n=n-m), and by the daily record of B upgrade traffic sign placement be FALSE;
(4) IEC61850 client carry out log searching with on recruit journal entries time system need carry out the operation of two parts content: the high speed small-capacity memory part A that power down is not lost and the low speed mass storage part B that power down is not lost.The message content of acknowledged client end need jointly extract corresponding log information and reply from A and B.
Above embodiment is only and technological thought of the present invention is described, can not limit protection scope of the present invention with this, and every technological thought proposed according to the present invention, any change that technical scheme basis is done, all falls within scope.

Claims (5)

1. a storage means for IEC61850 log services, is characterized in that comprising the steps:
(1) in the high speed small-capacity memory that the daily record that device generates is not lost stored in power down in real time;
(2) in the high speed small-capacity memory do not lost when aforementioned power down, the daily record of buffer memory reaches the daily record unloading capacity of setting, its all log entry is copied to the high-capacity and high-speed storer that power down loses and carries out buffer memory;
(3) in the high-capacity and high-speed storer adopting the power down of low speed task monitors to lose, whether daily record upgrades, in have renewal to be then copied to by newly-increased log entry low speed mass storage that power down do not lose;
(4), after in the low speed mass storage do not lost to power down by newly-increased log recording of the task of aforementioned low priority, log information corresponding in high speed small-capacity memory that power down do not lose and the high-capacity and high-speed storer that power down is lost is upgraded.
2. the storage means of a kind of IEC61850 log services as claimed in claim 1, it is characterized in that: the particular content of described step (1) is: when device inside produces daily record, the daily record generated is according to sequencing, stored in the high speed small-capacity memory that power down is not lost, in this storer, the counter of journal entries increases by 1.
3. the storage means of a kind of IEC61850 log services as claimed in claim 2, it is characterized in that: the particular content of described step (2) is: when in the high speed small-capacity memory that power down is not lost, the daily record of buffer memory reaches the daily record unloading capacity m of setting, before in the high speed small-capacity memory that this power down is not lost m bar log entry be copied to power down lose high-capacity and high-speed storer carry out buffer memory, and arrange described power down lose high-capacity and high-speed storer in daily record upgrade mark be set to TRUE.
4. the storage means of a kind of IEC61850 log services as claimed in claim 3, it is characterized in that: the particular content of described step (3) is: the task of low priority continues the daily record detected in the high-capacity and high-speed storer of power down loss and upgrades mark, and when being masked as TRUE, in daily record newly-increased in the high-capacity and high-speed storer that power down is lost use the task of low priority entirety to be copied to low speed mass storage that power down do not lose.
5. the storage means of a kind of IEC61850 log services as claimed in claim 4, it is characterized in that: the particular content of described step (4) is: after in the low speed mass storage that newly-increased log recording is not lost to power down by the task of low priority, m bar daily record corresponding in high speed small-capacity memory power down do not lost is removed, the counter of journal entries in the high speed small-capacity memory that accurate this power down of renewal is not simultaneously lost, and the daily record renewal mark in high-capacity and high-speed storer power down lost is set to FALSE.
CN201310732820.5A 2013-12-26 2013-12-26 A kind of storage method of IEC61850 log services Active CN104750598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310732820.5A CN104750598B (en) 2013-12-26 2013-12-26 A kind of storage method of IEC61850 log services

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310732820.5A CN104750598B (en) 2013-12-26 2013-12-26 A kind of storage method of IEC61850 log services

Publications (2)

Publication Number Publication Date
CN104750598A true CN104750598A (en) 2015-07-01
CN104750598B CN104750598B (en) 2017-11-24

Family

ID=53590333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310732820.5A Active CN104750598B (en) 2013-12-26 2013-12-26 A kind of storage method of IEC61850 log services

Country Status (1)

Country Link
CN (1) CN104750598B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183868A (en) * 2015-09-15 2015-12-23 浪潮(北京)电子信息产业有限公司 Storage method and device for logs of file system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256269A (en) * 2002-02-27 2003-09-10 Matsushita Electric Ind Co Ltd Control method for nonvolatile storage device, and memory device
CN1477822A (en) * 2003-07-31 2004-02-25 北京港湾网络有限公司 Extension storage method of journal information
US20040128470A1 (en) * 2002-12-27 2004-07-01 Hetzler Steven Robert Log-structured write cache for data storage devices and systems
CN1536788A (en) * 2003-04-11 2004-10-13 华为技术有限公司 Journal remaining system and method
CN102385535A (en) * 2010-08-31 2012-03-21 苹果公司 Handling errors during device bootup from a non-volatile memory
CN102567146A (en) * 2011-12-29 2012-07-11 北京握奇数据系统有限公司 Log backup method and device and smart card

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256269A (en) * 2002-02-27 2003-09-10 Matsushita Electric Ind Co Ltd Control method for nonvolatile storage device, and memory device
US20040128470A1 (en) * 2002-12-27 2004-07-01 Hetzler Steven Robert Log-structured write cache for data storage devices and systems
CN1536788A (en) * 2003-04-11 2004-10-13 华为技术有限公司 Journal remaining system and method
CN1477822A (en) * 2003-07-31 2004-02-25 北京港湾网络有限公司 Extension storage method of journal information
CN102385535A (en) * 2010-08-31 2012-03-21 苹果公司 Handling errors during device bootup from a non-volatile memory
CN102567146A (en) * 2011-12-29 2012-07-11 北京握奇数据系统有限公司 Log backup method and device and smart card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183868A (en) * 2015-09-15 2015-12-23 浪潮(北京)电子信息产业有限公司 Storage method and device for logs of file system

Also Published As

Publication number Publication date
CN104750598B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
US10296435B2 (en) Storage of mass data for monitoring
US8418003B2 (en) Log collecting apparatus, program, method, and system
CN103117879B (en) A kind of computer hardware operational factor network monitoring system
CN104362757B (en) Transformer substation on-line monitoring system based on IEC61850
CN104317800A (en) Hybrid storage system and method for mass intelligent power utilization data
CN105007294B (en) Power transmission and transformation equipment state monitoring big data quickly receives and dissemination system
CN102521269A (en) Index-based computer continuous data protection method
CN106909641B (en) Real-time data memory
EP2723017A1 (en) Method, apparatus and system for implementing distributed auto-incrementing counting
CN109801399A (en) New energy vehicle failure Realtime Alerts method and system
CN102158550B (en) IEC61850-based power quality transient data transmission method
CN107153644A (en) A kind of method of data synchronization and device
CN107302569A (en) A kind of security monitoring Data acquisition and storage method of facing cloud platform
CN107607814A (en) A kind of electric energy quality monitoring system and its monitoring method of distributed power source access
CN102340437B (en) A kind of method and apparatus of network fault tolerance
CN114154035A (en) Data processing system for dynamic loop monitoring
CN104202349A (en) Method, device and system of scheduling of distributed cache resources
CN105577756A (en) Distributed database log collection and load regulation system adopting cross backup and method thereof
CN202431441U (en) State monitoring system of wind turbine
CN104750598A (en) A storage method for IEC61850 log service
CN108647124A (en) A kind of method and its device of storage skip signal
CN104679905A (en) High-speed storage system based on cloud storage
CN105138278A (en) Method for storing network messages of intelligent substation in bare disk
CN114697353B (en) Distributed storage cluster power grid data storage control method
KR101425699B1 (en) Remote Communication Method for Digital Protective Relay

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant