CN102118293A - Method for compressing and storing communication messages - Google Patents

Method for compressing and storing communication messages Download PDF

Info

Publication number
CN102118293A
CN102118293A CN200910202062XA CN200910202062A CN102118293A CN 102118293 A CN102118293 A CN 102118293A CN 200910202062X A CN200910202062X A CN 200910202062XA CN 200910202062 A CN200910202062 A CN 200910202062A CN 102118293 A CN102118293 A CN 102118293A
Authority
CN
China
Prior art keywords
communication packet
message
data
frame
sign indicating
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
CN200910202062XA
Other languages
Chinese (zh)
Other versions
CN102118293B (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.)
QUZHOU POWER SUPPLY BUREAU
Shanghai Kelu Software Co Ltd
Original Assignee
QUZHOU POWER SUPPLY BUREAU
Shanghai Kelu Software 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 QUZHOU POWER SUPPLY BUREAU, Shanghai Kelu Software Co Ltd filed Critical QUZHOU POWER SUPPLY BUREAU
Priority to CN200910202062.XA priority Critical patent/CN102118293B/en
Publication of CN102118293A publication Critical patent/CN102118293A/en
Application granted granted Critical
Publication of CN102118293B publication Critical patent/CN102118293B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for compressing and storing communication messages, which is characterized in that the characteristics of the communication messages are utilized to eliminate format feature codes for limiting formats of the communication messages or replace the format feature codes for limiting the formats of the communication messages with briefer preset characters when the messages are stored, thus reaching the effect of decreasing redundant information irrelative to the storage in the communication messages; and under the condition that the contents of the communication messages are not damaged, the communication messages are compressed effectively, and less space is used to store equivalent communication messages. In addition, the communication messages are subjected to secondary compression; according to the characteristics of the different types of communication messages, the most proper secondary compression mode is adopted, such as a dictionary compression mode, a delta compression mode, a partial value compression mode and the like, so that the space for storing the contents of the communication messages is further reduced on the basis of eliminating the format feature codes; and by the pertinent use of the secondary compression mode, the best effect of the secondary compression is reached.

Description

A kind of communication packet compression and storage method
Technical field
The present invention relates to a kind of communication packet compression memory technology.
Background technology
In recent years; along with microelectronics and fast development of information technology; microcomputer protecting device and Computerized monitor system begin to popularize and popularization in occasions such as transformer station, power plant, mining sites; also promoted simultaneously with the microprocessor be the smart machine (IED) of core in application on power system, the datumization technology begins to popularize in the comprehensive automation system of transformer substation engineering.Digital transformer substation has solved between the primary equipment, secondary device, once and the information exchange between the secondary device, interoperability, information share, and analog signal traditionally will be replaced by data-signal.
In order to ensure the fail safe of electric power system, there is the functional unit that is not monitored in the digital transformer substation hardly, the collection of equipment state amount (performance and quantification) does not have the blind area.Because power equipment digitlization, adopt no longer reality of traditional equipment periodic inspection mode, but, carry out repair based on condition of component, trouble shoot and the analysis of equipment by the digital communication process of all functions unit in the whole digital transformer substation is all enrolled.For the equipment health status is assessed, we need understand equipment whole service process, and communication packet is the best foundation of equipment operation situation, so we need record ripple to the whole message process of equipment, carries out retrospective analysis in order to equipment state overhauling.
Under the normal condition, system periodically gathers and preserves message with Fixed Time Interval.In producing age at failure, the relative normal condition of message information amount that needs to preserve can sharply increase.Specifically, when breaking down, need to accident point for the previous period with accident point after all communication packets in a period of time preserve.The length of this time period may influence the correctness of accident analysis, accident point may factor can not correct analysis according to preserving not exclusively, so the time period that communication packet is preserved can not be too short, if but the time period of preserving communication packet is oversize, can cause the amount of information of preserving excessive again, take too much memory space.
In digital transformer substation system, required in the face of the data message amount is unlimited, and the memory space that we use is limited, the little hundreds of platform smart machine that then comprises of digital transformer substation, thousands of at most.The communication packet amount of information of required storage is into equal difference as time passes and increases, and may increase in the geometric ratio mode in the time period amount of information that breaks down, so big again disk size is also limited.And for communication packet being can't harm preservation, be beneficial to the reset condition of fast quick-recovery message, in existing communication system, all only message carried out 1: 1 compression, directly preserve the ecosystem of communication packet, but the result who does like this causes the data volume of needs preservation very big.
In order to reduce the shared memory space of communication packet, adopt following several modes usually:
1, increases the cycle in communication packet sampling interval.As once being reduced to 1 minute or 5 minutes once by receiving and dispatching message 1 original second.Can reduce the input variable of original message so in a large number, preserve a little packets as much as possible less to reach.Adopting the drawback of the method is that the message of being stored can only have partial continuous, but is not the continuity of complete message, can not truly reflect the whole communication process of equipment.Some fault point of equipment just might be stored between twice message, increases the communication packet sampling time interval, loses that the probability of fault message is also corresponding to be improved greatly, especially for the analysis of those failure wave-recording messages, and worthless especially method.
2, reduce the accident point recorded message time period.If yet that the time period is provided with is too short, accident point may factor can not correct analysis according to preserving not exclusively.
3, only write down out-of-limit or displacement message information (limit value or displacement are preserved) constantly.Promptly when finding out-of-limit parameter (surpassing pre-set limit) or displacement parameter in the communication packet, system preserves the communication packet of this moment.Limit value displacement preservation method is when whole system is normally moved, and existing hardly needs to preserve communication packet, and the message compression factor is infinitely great.Even when a small amount of limit value amount or displacement information occurring, the memory space of communication packet also is very little, only accounts for the very small scale of all communication packets.But in period occurred frequently that out-of-limit information occurs or when frequently sending displacement information, whole communication packet compression preservation ratio still will be near 1: 1.And limit value or displacement preservation method are equivalent to just the peak value of a communication packet be preserved, and do not preserve the process of whole communication packet in fact, do not have successional communication packet, can't analyze whole communication packet fault progression trend.In addition, this kind mode is not preserved the communication packet error code, and in the communication error code period occurred frequently, we can't analyze current communication packet error rate reason occurred frequently by original message.
4, adopt existing compress mode that communication packet is compressed.Because the structure of communication packet has its particularity, adopts existing compress mode that communication packet is compressed, resulting compression ratio approaches 1, and compression effectiveness is not obvious.
This shows that a kind of effective compression and storage method at communication packet is very important for existing digitalized electrical system.
Summary of the invention
The technical problem that the present invention mainly solves provides a kind of communication packet compression and storage method, makes it under the situation of not damaging the communication packet content, effectively compresses communication packet, uses less space memory communicating message.
In order to solve the problems of the technologies described above, the invention provides a kind of communication packet compression and storage method, comprise following steps:
A preserves the form of all kinds of communication packet correspondences in each stipulations, and described form is made of the format character sign indicating number of correspondence, for every class communication packet in described each stipulations is provided with a corresponding class indications;
B determines stipulations and message classification that this communication packet is affiliated when obtaining the communication packet that needs storage;
C finds the format character sign indicating number of this classification message in these stipulations from this communication packet, remove or replace described format character sign indicating number, and adds the corresponding class indications in this communication packet;
D stores the described communication packet that comprises the classification indications.
As improvement of the technical scheme, in the described steps A, also preserve the operation of the format character sign indicating number correspondence of every class communication packet in each stipulations, described operation comprises: remove the specified format condition code or preset characters is replaced the format character sign indicating number of appointment;
Among the described step C,, the format character sign indicating number of described communication packet is removed or replacement operation according to the operation of described preservation.
As improvement of the technical scheme, described format character sign indicating number comprises all kinds of characters that are used to limit message format and indicates, and comprises one of following at least or its combination in any:
Synchronization character, byte length, check code, end mark, request indicate, reply and confirm that sign, errored response indicate.
As improvement of the technical scheme, after the described step C, also comprise following steps:
Part except that the format character sign indicating number in the described communication packet is carried out second-compressed;
Among the described step D, the communication packet after the preservation second-compressed.
As improvement of the technical scheme, described second-compressed mode is:
Preserve the data content that may duplicate in the described communication packet in advance,, form data dictionary for the corresponding call number of each data content;
When carrying out second-compressed, search described data dictionary, corresponding data content in the described communication packet is replaced with corresponding call number.
As improvement of the technical scheme, described second-compressed mode is:
The data content of this frame communication packet is compared with the data content of preceding frame communication packet;
Only preserve distinguishing partial data and the position of described data in communication packet.
As improvement of the technical scheme, described second-compressed mode is:
The data content of this frame communication packet is compared with the standard message data content, obtain the unsteady difference of each data in this frame communication packet;
Preserve the unsteady difference of each data in this frame communication packet;
Described standard message data content is the preceding continuous data content of receiving certain frame communication packet, or is default fixed data content, or is the data content by the most approaching current communication packet data that preceding continuous communication packet analysis is obtained.
As improvement of the technical scheme, the communication packet classification that described each stipulations comprise comprises one of following or its combination in any: request message frame, data message frame, reply confirmation message frame, errored response message frame, error code message frame;
Described error code message frame does not comprise the format character sign indicating number, among the described step C, directly adds the classification logotype symbol of corresponding error code message in described error code message frame.
As improvement of the technical scheme, among the described step D, the communication packet under the same stipulations is kept in the file, corresponding stipulations indicate.
As improvement of the technical scheme, when needs recover described communication packet, according to the classification indications in the message of being stored, determine stipulations and message classification that this message is affiliated, remove the classification indications in the described message, according to the message format of being preserved, in described message, add or replace the format character sign indicating number of correspondence, revert to original communication packet.
Embodiment of the present invention compared with prior art, the main distinction and effect thereof are: the characteristic of utilizing communication packet, when stored messages, to be used to limit the format character sign indicating number removal of communication packet form or replace with more brief preset characters, reach the effect that reduces the redundant information that has nothing to do with storage in the communication packet, under the situation of not damaging the communication packet content, effectively compress communication packet, use the communication packet of less space storage equal number.
Communication packet is carried out second-compressed, characteristic according to different classes of communication packet, adopt only second-compressed mode, comprise dictionary compression, difference compression, inclined to one side value compression etc., on the basis of removing the format character sign indicating number, further dwindle the shared memory space of communication packet data content, by using the second-compressed mode targetedly, make the effect of second-compressed reach best.
Description of drawings
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Fig. 1 is the communication packet compression and storage method flow chart of the present invention's one better embodiment.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiments of the present invention are described in further detail below in conjunction with accompanying drawing.
The present invention's one better embodiment relates to a kind of communication packet compression and storage method.
Generally speaking, several classes such as communication packet comprises request message, data message, replys confirmation message, errored response message, error code message, every class message has its corresponding form.The classification of the communication packet under the different stipulations may be different, and the form of communication packet also has nothing in common with each other.In the present embodiment, need preserve the form of all kinds of communication packets in all kinds of stipulations in advance, its form is made of the format character sign indicating number of correspondence, comprises synchronization character, byte length, check code, end mark, request sign, replys and confirm sign, errored response sign etc.Data message 68 92 00 92 00 68 C4 01 35 64 00 02 FC E8 27 101,001 48 15 17 09 09 00 00 57 00 00 00 00 57 00 00 00 00 00 48 41 48 15 17 01BE 16 with the power industry standard DL/T of the People's Republic of China (PRC) 698.41 (acquiring electric energy information management system part) are example, wherein 68 92 00 92 00 68 is heading, " 68 " are synchronization character in the heading, totally 2 synchronization characters; 92 00 is byte length, repeats once; C4 01 35 64 00 02 FC E8 27 101,001 48 15 17 09 09 00 00 57 00 00 00 00 57 00 00 00 00 00 48 41 48 15 17 01 are the data area; BE is a check code; 16 is end mark.As seen, the form of DL/T 698.41 data messages is: " 68+ byte length+68+ data area+check code+16 ".Special format character storehouse can be set in the present embodiment, preserve the form of various communication packets in all kinds of stipulations, and for each format character sign indicating number is provided with corresponding operation, to carry out the compression storage of message.As when compression is stored, removing this format character sign indicating number, perhaps with default this format character sign indicating number of character replacement or the like.In above-mentioned example, the operation of format character sign indicating number 68,16 correspondences can be " deletion ".In addition, the communication packet that also is required to be each classification is provided with a classification indications, the corresponding different classification indications of different classes of communication packet in the same stipulations.Communication packet classification indications in the different stipulations can repeat or not repeat, specifically by whether the stipulations sign being set, and the mode of storage is determined.As the communication packet of receiving from same communication apparatus (meeting same stipulations) can being kept at the file, in this document, preserve beacon information that should stipulations, adopt this kind mode to preserve, then the classification indications of different stipulations can repeat.
Concrete communication packet compression and storage method as shown in Figure 1.
In step 101, system obtains communication packet, generally communication apparatus is carried out the message communication acquisition, carries out message at collection terminal and grasps.Other method is that communication packet is intercepted, and promptly carries out both sides' communication packet and intercept in communication link.
In step 102, determine the stipulations that this communication packet is affiliated, and analyze its message classification.
In step 103, according to the message format of stipulations under this communication packet and message classification correspondence, from this communication packet, extract the format character sign indicating number, according to the operation that sets in advance, remove or replace its format character sign indicating number, and in the indications of interpolation corresponding class foremost of this communication packet.
Data message 68 92 00 92 00 68 C4 01 35 64 00 02 FC E8 2,710 10 01 48 15 17 09 09 00 00 57 00 00 00 00 57 00 00 00 00 00 48 41 48 15 1701 BE 16 with DL/T 698.41 are example, after obtaining this message, analyze and definite its affiliated stipulations and message classification, to determine its message format " 68+ byte length+68+ data area+check code+16 ", according to predetermined operations deletion format character sign indicating number 68 (synchronization character) and 16 (end marks) wherein, and add the corresponding class indications foremost at its message, the classification indications is generally a byte or two byte lengths.By deletion or replacement format character sign indicating number, can reduce a large amount of message memory spaces, the format character sign indicating number is necessary for the message in the transmission, but is redundant for the message under the store status, by these redundant informations are removed, can realize the lossless compress of communication packet.
Supposing a per message of receiving and dispatching one group of DL/T 698 2 seconds of communication apparatus, is under 0 the condition in all communication packet error rates, is benchmark with the capacity of one day transmitting-receiving message, and message packed byte sum computing formula is as follows:
Figure G200910202062XD00091
Figure G200910202062XD00092
Can learn by the calculating of following message packed byte sum message can be reduce 432000 bytes in, be about 422kb.
For request message, reply the communication packet of classifications such as confirmation message, errored response message because message integral body all is to be made of the format character sign indicating number basically, so compression factor is higher.As for replying confirmation message, can directly it be replied and confirm to indicate deletion, only in message, keep the classification indications that affirmation is replied in an expression, compression factor is near 90%
For example: the link-layer acknowledgment frame message in DL/T 698 stipulations, its form is: heading+control word+address field+check code+end mark, suppose to receive two such other messages, message one: 681,A00,1A0,068 80 01356400001A 16, message two: 681A001A0068 C10135640000 5B 16.
Message one Message two
Heading 681A001A0068 681A001A0068
Control word 80 C1
Address field 0135640000 0135640000
Check code 1A 5B
End mark 16 16
According to DL/T 698 stipulations, heading and end mark in this classification message are constant, so the operation of heading and end mark correspondence can be set to deletion, promptly when preserving it are deleted; Owing to the communication packet of receiving from same communication apparatus can be kept at the file, thereby the address field of all messages is identical in file, therefore only need preserve primary address information in this document and get final product, the operation of address field correspondence also can be set to deletion; Because the computational methods of check code are identical from the communication packet that same equipment is received, therefore also do not need to preserve this check code, when needs carry out the message recovery, only need recomputate the corresponding check sign indicating number and get final product, thereby the operation of check code correspondence can also be set to deletion according to the check code account form.By the way, as seen finally can be with two bytes of this classification message boil down to, identifier+control word.The classification indications of supposing link-layer acknowledgment frame message is 0A, and then compression back message one is 0A80, and message two is 0AC1.As seen, compress storage by the way, can save nearly 90% memory space.
Equally, because the computational methods of check code are identical from the communication packet that same equipment is received, as long as therefore will be kept at from the message that same communication apparatus is received the file, and indicated, can be deletion with the operation setting of check code (format character sign indicating number), to delete unnecessary check code.This mode has compression effectiveness preferably for the message that can repeatedly repeat check code.For example: the circulating telemechanical stipulations of part (CDT stipulations), according to its stipulation structure characteristic, each frame CDT message all is by the control byte of the synchronization character of one group of 6 byte (as: EB 90 EB, 90 EB 90 or D7 09 D7 09 D7 09), one group of 6 byte, organizes 6 bytes of user data information more.Every group of information last byte except that synchronization character is check code.The CDT communication packet that it is 60bit that supposing the system grasps one group of total byte behind the form of confirming this classification message, can be rejected the check code of synchronization character, every group of information according to predetermined operations from message.Because the CDT stipulations are one group of information code by 6 bytes, byte length also can be rejected.Final packed byte number=synchronous number of words+(total message length-synchronous number of words)/6+ byte length=16.Whole compression factor about 27%.
When needs recover this communication packet, only need according to the classification indications in the message, determine stipulations and message classification that it is affiliated, thereby determine the original message form of this message, according to its form, corresponding format character sign indicating number is added in position in correspondence, or with the preset characters in the correct format character sign indicating number replacement message, recovers this message.
Need to prove, because the error code message frame in the communication packet does not comprise the format character sign indicating number, therefore in this step, need not to carry out the replacement or the deletion of format character sign indicating number, the classification logotype symbol that directly adds expression error code message in this error code message frame gets final product.
In step 104, the communication packet behind the extraction format character sign indicating number is further carried out second-compressed, can be that different classes of communication packet is selected different second-compressed modes according to the classification of message.Can also can after being analyzed, message select the proper compression mode in advance for every class communication packet is provided with corresponding compress mode.In general, the compress mode of extracting the format character sign indicating number comprises the communication packet of fix information for those, as replys confirmation message, errored response message etc., compression effectiveness is very obvious, and,, make compression effectiveness relatively poor relatively because the data area content in the message is different for data message.For this situation, present embodiment adopts the mode of second-compressed, comes further it to be compressed, to guarantee no matter be the message of which kind of classification, all can obtain compression effectiveness preferably.
The mode that comprises following three kinds of second-compressed in the present embodiment is respectively at duplicate message, difference message be worth message partially.
Specifically, in all communication packets, all can there be repeated message in any communication protocol.According to this type of message characteristic, for might existing the message data content of repeatability, institute sets up public data dictionary in advance, message call number of each message data content correspondence.When the communication packet second-compressed, its message call number is replaced corresponding message data content, when message decompresses recovery, only need to give its original message data content for change and get final product by the message call number.
For the difference message, be that difference between each message frame is little, have only the fraction content to change in the data field in the message, for this type of message, can preserve a frame communication packet of receiving at first, the subsequent packet and the first frame message are compared, only its data value that changes and this data position are marked, all the other identical data values then no longer keep.Recover original message as need, can be with reference to the first frame message content and the data value that changes and its delta data of location restore thereof of preserving.
For example: 100 data values are arranged in the communication packet that obtains, the feature of the first frame message of this message and preservation is analyzed, find that just wherein variation has taken place 10 data, then only keep this 10 data, and the location mark of each data, when message recovers, only need the data value that indicates and change according to Data Position, on the basis of the first frame message, 10 data that change are replaced get final product.Saved the message memory space greatly.This mode is fit to message and changes little situation, but as the difference of the message of receiving and before message exceed 50%, then be not suitable for the method.
For inclined to one side value message, the variation that promptly fluctuates on the basis of general certain the message data value in front of the data value in the subsequent packet, or in the variation that fluctuates of certain fixed value.For this type of message, can preserve certain message as standard, perhaps preserve a fixed value as standard, subsequent packet and this standard message are compared, extract the changing value of each data value, when reality is preserved, only keep its changing value.The benefit of Bao Cuning is the data that can need a plurality of byte statements originally like this, changes by 1 byte or its variation difference of 2 byte representations, to reach the purpose of data compression.After preserving in such mode, the compression factor of data generally can reach 25%~50%.
For example: the data value that sets in advance standard message is 1000,2000,3000, actually receive that the first frame communication packet data value is 1278,2450,3453, the second frame communication packet data value is that 1280,2400,3455, the three frame communication packet data values are 1275,2401,3454.Contrast the first frame message data boil down to, 278,450,453, the second frame message data boil down tos, 280,400,455, the three frame message data boil down tos 275,401,454, the data of compression 25% by data area with standard message.
Because in actual applications, frame communication packet compression storage one frame is received by system, and the message of might buffer memory receiving in a period of time, unified then compression storage, in this case, can to this section in the period such message analyze, determine best standard message, on the basis of this standard message, be worth compression partially and preserve.With above-mentioned example is example, when carrying out comparing the first time, institute's accepted standard message data (being immediate message data) is 1000,2000,3000, after the feature extraction of value is compressed partially for the first time, all messages become 3 bit data by 4 bit data, first frame 278,450,453; Second frame 280,400,455; The 3rd frame 275,401,454.On this basis deviate message after extracting characteristic value is carried out secondary analysis, determine that for the first time the standard message data value of this three frames message of value compression back is 200,400,400 partially.Carry out the second time of value compression partially according to this standard message, obtaining the first frame data value is that 78,50,53, the second frame data values are that 80,0,55, the three frame data values are 75,1,54.Pass through secondary analysis, can determine that the standard message data value near these communication packets is 1200,2400,3400, through secondary analysis and partially value compression, making needs the message data preserved to become 1 bit data or 2 bit data by original 4, and compression factor can reach 50%~75%.
By carrying out second-compressed, on the basis of removing the format character sign indicating number, further dwindle the shared memory space of communication packet data content, because characteristic according to different classes of communication packet, adopt only second-compressed mode pointedly, comprise dictionary compression, difference compression, inclined to one side value compression etc., make the effect of second-compressed reach best.
In step 105, store above-mentioned communication packet through extraction of format character sign indicating number and second-compressed.
Though pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (10)

1. a communication packet compression and storage method is characterized in that, comprises following steps:
A preserves the form of all kinds of communication packet correspondences in each stipulations, and described form is made of the format character sign indicating number of correspondence, for every class communication packet in described each stipulations is provided with a corresponding class indications;
B determines stipulations and message classification that this communication packet is affiliated when obtaining the communication packet that needs storage;
C finds the format character sign indicating number of this classification message in these stipulations from this communication packet, remove or replace described format character sign indicating number, and adds the corresponding class indications in this communication packet;
D stores the described communication packet that comprises the classification indications.
2. communication packet compression and storage method according to claim 1, it is characterized in that, in the described steps A, also preserve the operation of the format character sign indicating number correspondence of every class communication packet in each stipulations, described operation comprises: remove the specified format condition code or preset characters is replaced the format character sign indicating number of appointment;
Among the described step C,, the format character sign indicating number of described communication packet is removed or replacement operation according to the operation of described preservation.
3. communication packet compression and storage method according to claim 1 is characterized in that, described format character sign indicating number comprises all kinds of characters that are used to limit message format and indicates, and comprises one of following at least or its combination in any:
Synchronization character, byte length, check code, end mark, request indicate, reply and confirm that sign, errored response indicate.
4. communication packet compression and storage method according to claim 1 is characterized in that, after the described step C, also comprises following steps:
Part except that the format character sign indicating number in the described communication packet is carried out second-compressed;
Among the described step D, the communication packet after the preservation second-compressed.
5. communication packet compression and storage method according to claim 4 is characterized in that, described second-compressed mode is:
Preserve the data content that may duplicate in the described communication packet in advance,, form data dictionary for the corresponding call number of each data content;
When carrying out second-compressed, search described data dictionary, corresponding data content in the described communication packet is replaced with corresponding call number.
6. communication packet compression and storage method according to claim 4 is characterized in that, described second-compressed mode is:
The data content of this frame communication packet is compared with the data content of preceding frame communication packet;
Only preserve distinguishing partial data and the position of described data in communication packet.
7. communication packet compression and storage method according to claim 4 is characterized in that, described second-compressed mode is:
The data content of this frame communication packet is compared with the standard message data content, obtain the unsteady difference of each data in this frame communication packet;
Preserve the unsteady difference of each data in this frame communication packet;
Described standard message data content is the preceding continuous data content of receiving certain frame communication packet, or is default fixed data content, or is the data content by the most approaching current communication packet data that preceding continuous communication packet analysis is obtained.
8. communication packet compression and storage method according to claim 1, it is characterized in that the communication packet classification that described each stipulations comprise comprises one of following or its combination in any: request message frame, data message frame, reply confirmation message frame, errored response message frame, error code message frame;
Described error code message frame does not comprise the format character sign indicating number, among the described step C, directly adds the classification logotype symbol of corresponding error code message in described error code message frame.
9. communication packet compression and storage method according to claim 1 is characterized in that, among the described step D, the communication packet under the same stipulations is kept in the file, and corresponding stipulations indicate.
10. according to any described communication packet compression and storage method in the claim 1 to 9, it is characterized in that,
When needs recover described communication packet, according to the classification indications in the message of being stored, determine stipulations and message classification that this message is affiliated, remove the classification indications in the described message, according to the message format of being preserved, in described message, add or replace the format character sign indicating number of correspondence, revert to original communication packet.
CN200910202062.XA 2009-12-30 2009-12-30 Method for compressing and storing communication messages Expired - Fee Related CN102118293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910202062.XA CN102118293B (en) 2009-12-30 2009-12-30 Method for compressing and storing communication messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910202062.XA CN102118293B (en) 2009-12-30 2009-12-30 Method for compressing and storing communication messages

Publications (2)

Publication Number Publication Date
CN102118293A true CN102118293A (en) 2011-07-06
CN102118293B CN102118293B (en) 2015-04-29

Family

ID=44216897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910202062.XA Expired - Fee Related CN102118293B (en) 2009-12-30 2009-12-30 Method for compressing and storing communication messages

Country Status (1)

Country Link
CN (1) CN102118293B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891683A (en) * 2011-07-21 2013-01-23 南京航天银山电气有限公司 Method and device for compressing data frames of substation
WO2015021614A1 (en) * 2013-08-14 2015-02-19 Mediatek Singapore Pte. Ltd. An efficient differential coding method for dlt in 3dvc
WO2015100932A1 (en) * 2013-12-30 2015-07-09 优视科技有限公司 Network data transmission method, device and system
CN107607803A (en) * 2016-07-11 2018-01-19 株洲中车时代电气股份有限公司 Converter system failure logging method, apparatus and system
CN109088851A (en) * 2018-06-22 2018-12-25 杭州海兴电力科技股份有限公司 The data compression method of power information acquisition
CN109361613A (en) * 2018-09-04 2019-02-19 国网宁夏电力有限公司电力科学研究院 A kind of communication means and server of substation
CN110311757A (en) * 2019-07-16 2019-10-08 浙江天禹信息科技有限公司 A method of realizing hydrological telemetering message big data
CN110636071A (en) * 2019-09-26 2019-12-31 光大兴陇信托有限责任公司 Interface docking method
CN110995753A (en) * 2019-12-19 2020-04-10 中国电力科学研究院有限公司 Combined compression method for remote communication message in electricity consumption information acquisition system
CN111078652A (en) * 2019-11-28 2020-04-28 江苏苏宁物流有限公司 Filing and compressing method and device for logistics box codes
CN112702340A (en) * 2020-12-23 2021-04-23 深圳供电局有限公司 Historical message compression method and system, computing device and storage medium
CN114064140A (en) * 2021-10-15 2022-02-18 南京南瑞继保电气有限公司 Fault recording data storage and access method and device and storage medium
CN115225725A (en) * 2022-05-25 2022-10-21 广州汽车集团股份有限公司 Data compression storage method and device, vehicle and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237419A (en) * 2008-03-07 2008-08-06 北京航管科技有限公司 Packet header compression method in air-space communication of aviation telecommunication network
CN101415003B (en) * 2008-11-21 2012-06-20 华为技术有限公司 Method, apparatus and communication system for transmission of compression message
CN101568144B (en) * 2009-03-18 2010-12-01 中国人民解放军理工大学 Header compression method applicable to wireless ad hoc network

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891683A (en) * 2011-07-21 2013-01-23 南京航天银山电气有限公司 Method and device for compressing data frames of substation
WO2015021614A1 (en) * 2013-08-14 2015-02-19 Mediatek Singapore Pte. Ltd. An efficient differential coding method for dlt in 3dvc
WO2015100932A1 (en) * 2013-12-30 2015-07-09 优视科技有限公司 Network data transmission method, device and system
CN103731424B (en) * 2013-12-30 2017-09-15 优视科技有限公司 A kind of transmission method of network data, apparatus and system
US10122803B2 (en) 2013-12-30 2018-11-06 Uc Mobile Co., Ltd. Network data transmission method, device and system
CN107607803A (en) * 2016-07-11 2018-01-19 株洲中车时代电气股份有限公司 Converter system failure logging method, apparatus and system
CN109088851A (en) * 2018-06-22 2018-12-25 杭州海兴电力科技股份有限公司 The data compression method of power information acquisition
CN109088851B (en) * 2018-06-22 2021-08-13 杭州海兴电力科技股份有限公司 Data compression method for power utilization information acquisition
CN109361613A (en) * 2018-09-04 2019-02-19 国网宁夏电力有限公司电力科学研究院 A kind of communication means and server of substation
CN110311757A (en) * 2019-07-16 2019-10-08 浙江天禹信息科技有限公司 A method of realizing hydrological telemetering message big data
CN110636071A (en) * 2019-09-26 2019-12-31 光大兴陇信托有限责任公司 Interface docking method
CN110636071B (en) * 2019-09-26 2020-07-07 光大兴陇信托有限责任公司 Interface docking method
CN111078652A (en) * 2019-11-28 2020-04-28 江苏苏宁物流有限公司 Filing and compressing method and device for logistics box codes
CN110995753A (en) * 2019-12-19 2020-04-10 中国电力科学研究院有限公司 Combined compression method for remote communication message in electricity consumption information acquisition system
CN112702340A (en) * 2020-12-23 2021-04-23 深圳供电局有限公司 Historical message compression method and system, computing device and storage medium
CN112702340B (en) * 2020-12-23 2023-12-19 深圳供电局有限公司 Historical message compression method and system, computing equipment and storage medium thereof
CN114064140A (en) * 2021-10-15 2022-02-18 南京南瑞继保电气有限公司 Fault recording data storage and access method and device and storage medium
CN114064140B (en) * 2021-10-15 2024-03-15 南京南瑞继保电气有限公司 Fault recording data storage and access method and device and storage medium
CN115225725A (en) * 2022-05-25 2022-10-21 广州汽车集团股份有限公司 Data compression storage method and device, vehicle and storage medium
CN115225725B (en) * 2022-05-25 2023-08-15 广州汽车集团股份有限公司 Data compression storage method, device, vehicle and storage medium

Also Published As

Publication number Publication date
CN102118293B (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN102118293B (en) Method for compressing and storing communication messages
CN102571966B (en) Network transmission method for large extensible markup language (XML) document
CN102937926B (en) Method and device for recovering deleted sqlite files on mobile terminal
CN109391629B (en) Data processing method of rail transit comprehensive monitoring system
CN103379136A (en) Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data
CN101350858B (en) Method for decoding short message and user terminal
CN112073473B (en) Internet of things equipment heartbeat packet data acquisition method
CN114449018B (en) Automatic log file uploading method and system for power acquisition terminal
CN113365233B (en) Cloud service method for short message communication of Beidou communication application system
CN104215853A (en) Data acquiring method of power quality monitoring system
CN114138861A (en) Multi-source heterogeneous data processing method, device and system
CN103778772A (en) Framing and interconnection transmitting method in electricity utilization information collecting system
CN111405600A (en) Intranet server monitoring system, method and medium based on short message cat
CN105045676A (en) Device and method for recovering lost data based on SQLite database
CN102801548A (en) Intelligent early warning method, device and information system
CN101127640B (en) A method for improving data synchronization efficiency via the incremental mode
CN104601374A (en) Network fault processing method and device for numerical control machine tool
CN109525370B (en) Data packet sending method based on zigbee
CN107659629A (en) A kind of efficient electrical power archives synchronous method suitable for power information acquisition system
CN101984702A (en) Mobile data service quality monitoring and early warning method and device thereof
CN112614331B (en) Method for reading electric energy meter event and electric energy meter event reading system
CN101599264B (en) Method and relevant device for displaying characters on mobile terminal
CN102341784B (en) Method for quick map recovery in case of error in moca
CN112751567B (en) Compression method for transient wave recording interaction data of power system
CN111313907B (en) Method and device for compressing massive power data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Sun Fanglei

Document name: Notification of Passing Examination on Formalities

DD01 Delivery of document by public notice
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150429

Termination date: 20191230

CF01 Termination of patent right due to non-payment of annual fee