CN100393077C - Compression of command messages between boards - Google Patents
Compression of command messages between boards Download PDFInfo
- Publication number
- CN100393077C CN100393077C CNB2004100967603A CN200410096760A CN100393077C CN 100393077 C CN100393077 C CN 100393077C CN B2004100967603 A CNB2004100967603 A CN B2004100967603A CN 200410096760 A CN200410096760 A CN 200410096760A CN 100393077 C CN100393077 C CN 100393077C
- Authority
- CN
- China
- Prior art keywords
- message
- information unit
- ieg
- described step
- information
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The present invention discloses a method for compressing signaling messages between boards. Firstly, the encoding structure of each protocol message is collocated in a system and comprises an IEG contained in a message, an identifier and an information part contained in the identifier of each IEG and an original IE contained in the information part of each IEG. After a signaling message is received by a decoder, for the IEG contained in the message encoding structure, the number of information parts contained in the IEG is filled in a head, and the original IE is filled in a corresponding information part. After each IEG is filled, each IEG and message heads are transmitted to a decoder of another unit, and the decoder successively reads each IEG in messages according to the encoding structure of each message and decodes the information of the original IE contained by the IEG according to the format of the IEG. Messages on a receiving end are far smaller than messages on a sending end before the messages are processed, and the messages are easy to understand; the method for compressing signaling messages between boards is especially suitable for the conditions with large messages among boards, high requirements for the self processing ability of single plates and insufficient physical memory.
Description
Technical field
The present invention relates to a kind of compression method of protocol message, relate in particular to communication field wireless protocols signaling process between plate, send before and the method that receives reprocessing.
Background technology
The size of message of signaling message is big, and the organized formats level of data is very dark.For the bigger situation of single plate message, can adopt transmitting terminal to send preceding compression usually, receiving terminal receives the method that decompresses in the back.
Signaling message is handled the plurality of units comprise as shown in Figure 1 between traditional plate, and message sink unit 1 is used for receiving the message that the upper strata sends over and stores pending message.Message coding unit 2 is used for message is carried out encoding process, sends to source codec unit 4 through the message after the encoding process by inter-board interface 3 and carries out source codec.The data of process source codec re-send to message processing unit 5 and handle.
For signaling message, use the mode of ANS.1 compression method or byte stream to carry out at present mostly.ANS.1 is the processing mode of present comparative maturity, and the benefit of this method is the algorithm comparative maturity, but compression ratio is lower.Byte stream mode also is a kind of method relatively more commonly used during signaling message transmission between plate, and this method can make message between different boards become the compactest.
Use the ANS.1 mode, the message-length before message-length after receiving terminal message sink, decompression and the transmitting terminal compression is duplicate.Usually, redundancy in the signaling message and garbage have accounted for very most of, have caused message itself very big, and often useful information only accounts for below 10% of message length overall.For the relatively more nervous situation of receiving terminal internal memory, often can't meet the demands.In addition, the efficient of ANS.1 compression method compression and decompression is lower, has brought very heavy load to veneer for the slow veneer of processor.
Use byte stream mode, though the message-length of receiving terminal reduces greatly, but its maximum shortcoming is: message itself causes message in the unusual trouble of filling in of transmitting terminal and receiving terminal owing to be the mode of byte stream, and transmission course and receiving terminal message back are toward indigestion.Particularly in debug phase of veneer because byte stream indigestion and debug difficulties, and transmitting terminal and receiving terminal often need to arrange its meaning with the byte mode, is difficult to expansion and change flexibly.
Therefore, be badly in need of providing a kind of and can have overcome the new compression method of these two kinds of method shortcomings simultaneously again in conjunction with the advantage of signaling between ANS.1 and byte stream mode disposable plates.
Summary of the invention
The technical problem to be solved in the present invention provides the compression method of signaling message between a kind of plate, and size of message is significantly reduced, simultaneously easy to understand.
In order to solve the problems of the technologies described above, the invention provides the compression method of signaling message between a kind of plate, may further comprise the steps:
(a) coding structure of every protocol message of configuration in system comprises: the combination of the information unit that comprises in the message, the sign of each information unit combination and the message part that comprises thereof, and the raw information unit that comprises of the information portion branch of information unit combination;
(b) encoder is received needs behind the signaling message that transmits between plate, to the information unit combination that comprises in this message coding structure, the actual number of its message part that comprises is filled in the head that this information unit makes up, the raw information unit is filled into the message part of corresponding information unit combination;
(c) finish the filling of the information unit combination in a piece of news after, add that message header sends to decoder on another unit by inter-board interface;
(d) after described decoder receives the signaling message of coding form, read each information unit combination in this message successively, and solve the information of its raw information unit that comprises according to the form of the information unit combination of reading according to the coding structure of message.
Further, above-mentioned compression method can comprise following characteristics: during the coding structure of described step (a) configuration messages, the information unit kind that comprises in the message and put in order and be set to fix, in the described step (b), when the information that the message part that the information unit combination comprises is represented does not exist, the number in the head of this information unit combination is filled to " 0 ".
Further, above-mentioned compression method can comprise following characteristics: during the coding structure of described step (a) configuration messages, be will be in the message contiguous raw information unit combination together, the message part of each information unit combination comprises 4~5 class raw information unit.
Further, above-mentioned compression method can comprise following characteristics: during the coding structure of described step (a) configuration messages, and the equal in length of each message part in the information unit combination.
Further, above-mentioned compression method can comprise following characteristics: in the described step (b), also the sign of information unit is filled into the head of this information unit in the coded message.
Further, above-mentioned compression method can comprise following characteristics: in the described step (b), also the length of the message part that information unit is made up is filled into the head of this information unit in the coded message.
Further, above-mentioned compression method can comprise following characteristics: in the described step (d), the decoding that information unit is made up further may further comprise the steps:
(d1) determine its message part is copied the counter structure of employed this locality;
(d2) read the number of the message part in the information unit headgear combination, decision is to the copy number of times of message part;
(d3) successively all message parts in this information unit combination are copied in the counter structure of internal memory, directly obtain having the decoded information that signaling message is handled desired structure.
Further, above-mentioned compression method can comprise following characteristics: during the coding structure of described step (a) configuration messages, and the information unit kind that comprises in the message and put in order and be set to fix; And, in the described step (d1) kind of learning the information unit combination according to pre-configured message coding structure, determine its message part is copied the counter structure of this locality of use;
Further, above-mentioned compression method can comprise following characteristics: the head that also sign of information unit is filled into this information unit in the coded message in the described step (b); And, be the counter structure of determining message is copied employed this locality according to the sign of information unit in the described step (d1).
Further, above-mentioned compression method can comprise following characteristics: in the described step (b), also the length of the message part that information unit is made up is filled into the head of this information unit in the coded message; And, the preceding step that also comprises of described step (d2): read the length information in the information unit headgear combination, the size of the message part of decision copy.
As from the foregoing, the useful information of the present invention in transmitting terminal extraction message formed message between different boards by the mode of IEG (information unit combination), and receiving terminal directly carries out thaumatropy to the IEG in the message after receiving message.Therefore, the message of receiving terminal of the present invention is significantly smaller than the message before transmitting terminal is handled, but message itself is understandable mode to be organized, thereby realized compression to message between different boards with a kind of simple method, reduced the size of message that needs transmission and handle, improve the efficient of processor processing message, finally the cost that reduces processor has been had very large help.It is bigger that the inventive method is particularly useful for message between different boards, and the disposal ability of veneer itself is had relatively high expectations, the situation that physical memory is nervous.
Description of drawings
Fig. 1 is the functional block diagram that signaling message is handled between the prior art plate.
Fig. 2 is the structural representation of message after the present invention encodes.
Fig. 3 is the functional block diagram that signaling message is handled between embodiment of the invention plate.
Embodiment
First embodiment
In the present invention, same message can send to different processors simultaneously, and still, the message content that sends on each processor can be different.Present embodiment has been realized the compression of message with a kind of new code encoding/decoding mode, and the message structure behind the coding is a kind of linear structure of serial as shown in Figure 2.This structure is divided into three layers, wherein:
Minimum one deck is IE (information unit), just the cell of the lowermost layer that comprises in interface protocol message, i.e. each information field.A plurality of original I E combine an IEG_INFO (message part of information unit combination), and the IE composition is fixed among each IEG_INFO, and promptly the field that each IEG_INFO comprised is all fixed, and equal in length.
When IE is combined into IEG_INFO, need consider they are combined for IE contiguous in the message.In addition, the size of IEG_INFO need be taken all factors into consideration, and is unfavorable for too greatly reusing, and too little meeting causes the kind of IEG_INFO too many, IEG_HEAD is increased and wastes field information.In the present embodiment, each IEG_INFO contains the different IE of 4 to 5 classes.
The second layer is IEG (information unit combination), adds that by IEG_HEAD (head of information unit combination) several IEG_INFO form, and promptly a plurality of IEG_INFO can share an IEG_HEAD, are combined into one type IEG.In the present embodiment, IEG_HEAD and IEG_INFO are defined as independent structure, with convenient read-write to the message section content.Wherein, IEG head comprises following content:
IEG Length (IEG length) refers to the length of IEG_INFO, and unit is a byte;
IEG ID (IEG sign) needs unified coding the (as its sign) and is configured in the system of receiving-transmitting sides, and each sign is uniquely corresponding to one type IEG;
IEG_INFO Number (IEG_INFO number) as the case may be, can be one or more, also can be zero.
Among each IEG, IEG HEAD is unduplicated, and the IEG_INFO that arranges to comprise can have a plurality of, if but the information that all IEG_INFO represent among this IEG do not exist, then IEG Num is set to 0, and the head of this IEG also needs to keep.Because if the also non-existent words of IEG HEAD, the kind of the IEG of this message the inside is uncertain so, so just need the head of each IEG be compared.Receiving terminal can directly obtain the number of times that copies according to IEG_INFO Number, otherwise just needs reading of data and judge whether IEG finishes, and finishes just can copy.
For the benefit of a message header of IEG specialize is, know the number of IEG_INFO at the very start, know the message part among the IEG is forced to be converted to needed which structure of Signaling Processing Unit, also know and open up great internal memory.
One deck of going up most is exactly the Message (message) that stipulates in the agreement, adds that by message header IEG (information unit combination) one by one is formed by connecting.Consider the length requirement of message, need the message of stipulating in the agreement be split that split into multiple messages, message identifier needs both sides' Unified coding.To the read-write of message section content, in the present embodiment, the IEG that comprises which type in a piece of news fixes, and need prevent the nested of IEG, and in the present embodiment, putting in order of various types of IEG also fixed in the message for convenience.
Present embodiment is realized the method for signaling compression between plate, and promptly decoding method may further comprise the steps:
Step 4, decoder is decoded according to IEG after receiving the signaling message of coding form, reads each IEG successively according to the IEG form of message, and solve the field information of its original I E that comprises according to the IEG form that reads, present embodiment further may further comprise the steps the decoding of IEG:
1) reads IEG ID among the IEG Head,, use local counter structure (structure when referring to signaling process) that its message part is copied according to IEG ID;
2) read IEG Length among the IEG Head, adopt this length to decide the size of the message part of copy;
3) read IEG_INFO Num among the IEG Head, with the copy number of times of decision to IEG_INFO;
4) successively all IEG_INFO among this IEG are copied in the counter structure in the internal memory, directly obtain having the decoded information that signaling message is handled desired structure.
From as can be seen last, if the signaling of transmitting between plate directly adopts the structure of stipulating in the agreement, just do not know the size of message, change for message is also cumbersome, after adopting the IEG coded system, the field of each IEG_INFO the inside is all fixed, like this, when receiving message, can adopt the mode of direct memory copying.
Fig. 3 shows a kind of system that adopts signaling compression method between plate of the present invention, and first module 20 comprises among the figure: message sink unit 201, message sending unit 202, IEG coding unit 203 and IEG decoding unit 204; And comprise IEG decoding unit 301, IEG coding unit 302 and Signaling Processing Unit 303 by inter-board interface 30 connected second unit 40.
At down direction, the signaling message that the message sink unit 201 of first module 20 is used for higher layer entities 10 is received carries out buffer memory, sends to IEG coding unit 203 then and carries out the IEG coding.Data behind the coding are carried out the IEG decoding by the IEG decoding unit 401 that inter-board interface 30 sends to second unit 40, and decoded data send to Signaling Processing Unit 403 and carry out final processing.
At up direction, the IEG coding unit 402 that sends to second unit 40 through the data after Signaling Processing Unit 403 processing carries out the IEG coding, data behind the coding send to IEG decoding unit 204 by inter-board interface 30 and carry out the IEG decoding, and decoded data re-send to message sending unit 202 and send to higher layer entities 10.
What need supplementary notes is, the first module 20 and second unit 40 are entities of equity among the figure, and both all carry out interacting message by the IEG decoding method, all are the signaling message processing units.Only show used each functional unit under above-mentioned this Signalling exchange situation among the figure.
In sum, the useful information of the present invention in transmitting terminal extraction message formed message between different boards by the mode of IEG (information unit combination), and receiving terminal receives message and directly the IEG in the message carried out thaumatropy.Therefore, the message of receiving terminal of the present invention is significantly smaller than the message before transmitting terminal is handled, but message itself is understandable mode to be organized, thereby realized compression to message between different boards with a kind of simple method, reduced the size of message that needs transmission and handle, improved the efficient of processor processing message, finally very large help has been arranged for the cost that reduces processor.It is bigger that the inventive method is particularly useful for message between different boards, and the disposal ability of veneer itself is had relatively high expectations, the situation that physical memory is nervous.
Second embodiment
The technical scheme of the present embodiment and first embodiment is basic identical, the difference only be following some:
Have only an IEG_INFO Num among the IEG HEAD of present embodiment, the IEG_INFO quantity that this field comprises, also can determine two borders between the IEG in indication IEG according to it.Because the IEG kind and the fixed order that comprise in message, therefore, receiving terminal can be learnt the kind of this IEG according to pre-configured message coding structure when IEG is decoded, thereby determines the counter structure of this locality of use; Because the length of IEG_INFO is fixing, receiving terminal can be by the size of pre-configured length information decision copies data; The copy number of times is then determined by the IEG_INFO Num that reads among the IEG HEAD equally.
IEG ID among first embodiment and IEG Length can play check and correction and prevent the effect that makes mistakes.And present embodiment method IEG HEAD occupation space is few.
The 3rd embodiment
The technical scheme of the present embodiment and first embodiment is basic identical, also includes IEG_ID at the IEG head, and difference is that the kind of the IEG that comprises in the message and order can not fix, also this IEG not when the message part of IEG does not exist.After receiving terminal is discerned the IEG ID of each IEG head, the decision counter structure that will be transformed into again.The processing of this method receiving terminal is comparatively complicated.
Claims (10)
1. the compression method of signaling message between a plate may further comprise the steps:
(a) coding structure of every protocol message of configuration in system comprises: the combination of the information unit that comprises in the message, the sign of each information unit combination and the message part that comprises thereof, and the raw information unit that comprises of the information portion branch of information unit combination;
(b) encoder is received needs behind the signaling message that transmits between plate, to the information unit combination that comprises in this message coding structure, the actual number of its message part that comprises is filled in the head that this information unit makes up, the raw information unit is filled into the message part of corresponding information unit combination;
(c) finish the filling of the information unit combination in a piece of news after, add that message header sends to decoder on another unit by inter-board interface;
(d) after described decoder receives the signaling message of coding form, read each information unit combination in this message successively, and solve the information of its raw information unit that comprises according to the form of the information unit combination of reading according to the coding structure of message.
2. compression method as claimed in claim 1, it is characterized in that, during the coding structure of described step (a) configuration messages, the information unit kind that comprises in the message and put in order and be set to fix, in the described step (b), when the information that the message part that the information unit combination comprises is represented does not exist, the number in the head of this information unit combination is filled to " 0 ".
3. compression method as claimed in claim 1, it is characterized in that, during the coding structure of described step (a) configuration messages, be will be in the message contiguous raw information unit combination together, the message part of each information unit combination comprises 4~5 class raw information unit.
4. compression method as claimed in claim 1 is characterized in that, during the coding structure of described step (a) configuration messages, and the equal in length of each message part in the information unit combination.
5. compression method as claimed in claim 1 or 2 is characterized in that, in the described step (b), also the sign of information unit is filled into the head of this information unit in the coded message.
6. compression method as claimed in claim 1 or 2 is characterized in that, in the described step (b), also the length of the message part that information unit is made up is filled into the head of this information unit in the coded message.
7. compression method as claimed in claim 1 is characterized in that, in the described step (d), the decoding that information unit is made up further may further comprise the steps:
(d1) determine its message part is copied the counter structure of employed this locality;
(d2) read the number of the message part in the information unit headgear combination, decision is to the copy number of times of message part;
(d3) successively all message parts in this information unit combination are copied in the counter structure of internal memory, directly obtain having the decoded information that signaling message is handled desired structure.
8. compression method as claimed in claim 7 is characterized in that, during the coding structure of described step (a) configuration messages, and the information unit kind that comprises in the message and put in order and be set to fix; And, in the described step (d1) kind of learning the information unit combination according to pre-configured message coding structure, determine its message part is copied the counter structure of this locality of use.
9. compression method as claimed in claim 7 is characterized in that, also the sign of information unit is filled into the head of this information unit in the coded message in the described step (b); And, be the counter structure of determining message is copied employed this locality according to the sign of information unit in the described step (d1).
10. compression method as claimed in claim 7 is characterized in that, in the described step (b), also the length of the message part that information unit is made up is filled into the head of this information unit in the coded message; And, the preceding step that also comprises of described step (d2): read the length information in the information unit headgear combination, the size of the message part of decision copy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100967603A CN100393077C (en) | 2004-12-06 | 2004-12-06 | Compression of command messages between boards |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100967603A CN100393077C (en) | 2004-12-06 | 2004-12-06 | Compression of command messages between boards |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1614969A CN1614969A (en) | 2005-05-11 |
CN100393077C true CN100393077C (en) | 2008-06-04 |
Family
ID=34766535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100967603A Expired - Fee Related CN100393077C (en) | 2004-12-06 | 2004-12-06 | Compression of command messages between boards |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100393077C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0513433D0 (en) * | 2005-06-30 | 2005-08-10 | Nokia Corp | Signal message compressor |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0992146A2 (en) * | 1997-06-26 | 2000-04-12 | Siemens Aktiengesellschaft | Method and computer system for coding a digital message, for transmitting said message from a first computer unit to a second computer unit and for decoding the message |
JP2004173091A (en) * | 2002-11-21 | 2004-06-17 | Sony Corp | Information processing system and method, information processing apparatus and method, recording medium, program, and data structure |
CN1525714A (en) * | 2003-02-25 | 2004-09-01 | 华为技术有限公司 | An ASN.1 protocol processor |
-
2004
- 2004-12-06 CN CNB2004100967603A patent/CN100393077C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0992146A2 (en) * | 1997-06-26 | 2000-04-12 | Siemens Aktiengesellschaft | Method and computer system for coding a digital message, for transmitting said message from a first computer unit to a second computer unit and for decoding the message |
JP2004173091A (en) * | 2002-11-21 | 2004-06-17 | Sony Corp | Information processing system and method, information processing apparatus and method, recording medium, program, and data structure |
CN1525714A (en) * | 2003-02-25 | 2004-09-01 | 华为技术有限公司 | An ASN.1 protocol processor |
Also Published As
Publication number | Publication date |
---|---|
CN1614969A (en) | 2005-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104685889B (en) | The decoding of video sequence image and coding | |
US6993196B2 (en) | Digital image storage method | |
CN103416003B (en) | Improved NAL unit header | |
CN100399824C (en) | Generic adaptation layer for JVT video | |
US20100161692A1 (en) | Scalable video coding (svc) file format | |
US8683320B2 (en) | Processing module, a device, and a method for processing of XML data | |
CN103843341A (en) | Decoders and methods thereof for managing pictures in video decoding process | |
CN101185333A (en) | Method of transmitting picture information when encoding video signal and method of using the same when decoding video signal | |
CN104937949A (en) | Obtaining a version of an item of content | |
CN101438592B (en) | Method and apparatus for re-constructing media from a media representation | |
CA2275840A1 (en) | Generalized messaging construct | |
WO2013159705A1 (en) | Encoding/decoding method, video sequence stream encoding/decoding method, and device corresponding thereto | |
JP2004536481A (en) | Encoding and decoding method of path in tree structure of structured document | |
CN100393077C (en) | Compression of command messages between boards | |
JPH10164374A (en) | Pattern coding system and decoding system and coder and decoder employing the system | |
CN114501070B (en) | Encoding and decoding method, processing method and system for video conference synchronous extra information | |
JP2000134618A (en) | Methods and devices for encoding and decoding image signal and storage medium recording the same methods | |
CN103597448A (en) | Method and apparatuses for interchanging data | |
CN1254973C (en) | Command frame and its connection method | |
CN112449213A (en) | HLS slicing service scheme realized based on FFmpeg | |
CN110784620A (en) | Equipment data intercommunication method | |
JP2007516514A (en) | Structured document compression and decompression methods | |
JP2002084429A (en) | Image storage device, image storage method and storage medium | |
CN114268834B (en) | Image transmission system | |
US20030138104A1 (en) | Method for transmission of data including compressed fax and image 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080604 Termination date: 20141206 |
|
EXPY | Termination of patent right or utility model |