[go: up one dir, main page]

CN103812846A - Header compression method and system - Google Patents

Header compression method and system Download PDF

Info

Publication number
CN103812846A
CN103812846A CN201210459149.7A CN201210459149A CN103812846A CN 103812846 A CN103812846 A CN 103812846A CN 201210459149 A CN201210459149 A CN 201210459149A CN 103812846 A CN103812846 A CN 103812846A
Authority
CN
China
Prior art keywords
rtp
udp message
message stream
header compression
compression algorithm
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.)
Pending
Application number
CN201210459149.7A
Other languages
Chinese (zh)
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.)
Chongqing Cyit Communication Technologies Co Ltd
Original Assignee
Chongqing Cyit Communication Technologies 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 Chongqing Cyit Communication Technologies Co Ltd filed Critical Chongqing Cyit Communication Technologies Co Ltd
Priority to CN201210459149.7A priority Critical patent/CN103812846A/en
Publication of CN103812846A publication Critical patent/CN103812846A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a header compression method and a header compression system. The method comprises the steps of: setting the header compression algorithm of a UDP (User Datagram Protocol) data flow to be a UDP header compression algorithm, and starting header compression to the UDP data flow; performing RTP (Real-time Transport Protocol) recognition to the UDP data flow, if the RTP recognition is successful, modifying the header compression algorithm of the UDP data flow to be a RTP header compression algorithm, and continuing the header compression of the UDP data flow, otherwise, remaining the header compression algorithm of the UDP data flow to be the UDP header compression algorithm unchanged, and continuing the header compression of the UDP data flow. According to the embodiment of the invention, the adaptation and compression efficiency of the header compression algorithm can be improved.

Description

A kind of head compression method and system
Technical field
The present invention relates to communication technical field, be specifically related to a kind of head compression method and system.
Background technology
ROHC(Robust Header Compression, robustness compression) be a kind of for compressing the standard in Internet network data packet header, wherein, each header compression algorithm is corresponding to one group of specific network layer, transport layer and application layer protocol combination, such as: RTP(Real-time Transport Protocol, RTP) header compression algorithm can be used for compressed rtp packet (comprising tri-layers of head of RTP/UDP/IP), UDP(User Datagram Protocol, User Datagram Protoco (UDP)) header compression algorithm can be used for compressed udp packet (comprising the two-layer head of UDP/IP) or RTP packet, IP(Internet Protocol, the agreement interconnecting between network) header compression algorithm can be used for compressed IP packet or UDP message bag or RTP packet.
Wherein, IP compression efficiency is less than the compression of UDP head, and UDP compression efficiency is less than the compression of RTP head; For a kind of compression of packet, in the time having multiple header compression algorithms available, the preferential the highest compression algorithm of compression efficiency of selecting, such as a RTP packet, both IP available header compression algorithm, also can use UDP header compression algorithm, can also compress with RTP header compression algorithm, the preferential the highest header compression algorithm of compression efficiency of selecting compresses, to reach maximum compression efficiency.
In prior art, in the time compressing, first according to information such as source IP address, object IP address and port numbers, Internet network packet is divided into different data flow, again the packet head composition in each data flow is analyzed, to determine the header compression algorithm that is applied to this data flow; All can for example, by head special field (the PROTOCOL(agreement of IP head) field for the agreement (as IP, UDP and TCP etc.) of network layer and transport layer) thus identify and determine corresponding header compression algorithm; But for application layer protocol RTP, there is no field is Real-time Transport Protocol for identifying upper-layer protocol.For a packet, if guessed according to the particular value of RTP head specific fields, will there is very large erroneous judgement risk, non-RTP data are compressed with RTP header compression algorithm, the irregular variation of follow-up data bag RTP header fields, will cause the low of a compression performance, if in the packet receiving, when RTP packet is fewer, correct compression performance is caused to great impact, cause the low of head compression adaptability and compression efficiency.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of head compression method and system, for identifying accurately RTP data flow, improves adaptability and the compression efficiency of head compression.
The embodiment of the present invention provides a kind of head compression method, comprising:
The header compression algorithm of UDP message stream is set as to UDP header compression algorithm, and starts the head compression to described UDP message stream;
Described UDP message stream is carried out to RTP identification, if RTP identifies successfully, the header compression algorithm of described UDP message stream is revised as to realtime transmission protocol RTP header compression algorithm, continue the head compression to described UDP message stream, otherwise keeping the header compression algorithm of described UDP message stream is that UDP header compression algorithm is constant, continue the head compression to described UDP message stream.
Accordingly, the embodiment of the present invention also provides an a kind of compressibility, it is characterized in that, comprising:
Setup unit, for being set as UDP header compression algorithm by the header compression algorithm of UDP message stream;
Compression unit, for using the header compression algorithm that described setup unit is set to start the head compression to described UDP message stream;
RTP recognition unit, for carrying out RTP identification to described UDP message stream;
Revise unit, in the time that described RTP recognition unit is identified successfully, the header compression algorithm of described UDP message stream is revised as to RTP header compression algorithm;
Described compression unit, also in the time that described RTP recognition unit is identified successfully, uses described RTP header compression algorithm to continue described UDP message to flow to wardrobe compression;
Described compression unit, also for when the described RTP recognition unit recognition failures, uses UDP header compression algorithm to continue described UDP message to flow to wardrobe compression.
The head compression method providing in the present embodiment of the present invention and system, first with UDP header compression algorithm, it is carried out to head compression for each data flow, whether identify this data flow is RTP data flow simultaneously, in the time that this data flow is RTP data flow, header compression algorithm is revised as to RTP header compression algorithm to reach maximum compression efficiency, otherwise holding head compression algorithm is constant, can improve adaptability and the compression efficiency of header compression algorithm.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of the head compression method that provides of the embodiment of the present invention one;
Fig. 2 is the flow chart of the head compression method that provides of the embodiment of the present invention two;
Fig. 3 is the flow chart of the RTP recognition methods that provides of the embodiment of the present invention three (1);
Fig. 4 is the flow chart of the RTP verification method that provides of the embodiment of the present invention three (2);
Fig. 5 is the block diagram of the compressibility that provides of the embodiment of the present invention four;
Fig. 6 is the block diagram of the compressibility that provides of the embodiment of the present invention five.
Embodiment
Below in conjunction with accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
A kind of head compression method and system are provided in the embodiment of the present invention, can be in UDP message being flow to wardrobe compression, packet in data flow is carried out to RTP identification accurately, in the time judging that data flow is RTP data flow, use the RTP header compression algorithm that compression efficiency is higher to flow to wardrobe compression to data, can improve adaptability and the compression efficiency of head compression.Below be elaborated respectively.
Embodiment mono-:
The invention provides a kind of head compression method, as shown in Figure 1, comprise the following steps:
101, the header compression algorithm of UDP message stream is set as to UDP header compression algorithm, and starts the head compression to above-mentioned UDP message stream;
Because RTP packet is also UDP message bag, therefore can first use UDP header compression algorithm to flow to wardrobe compression to UDP message;
102, above-mentioned UDP message stream is carried out to RTP identification, if RTP identifies successfully, execution step 103, otherwise execution step 104;
It should be noted that, the RTP identification of UDP message stream and head compression are carried out simultaneously;
In the present embodiment, the concrete grammar that above-mentioned UDP message stream is carried out to RTP identification is: the N continuous packet to above-mentioned UDP message stream carries out the identification of RTP head, judge and in an above-mentioned N continuous packet, whether meet RTP data variation rule, if all met, identify successfully, UDP message stream is RTP data flow, otherwise recognition failures, UDP message stream is not RTP data flow; Wherein, the value of N is predefined, and N value at least should be more than or equal to 1, as being arranged between 5-10, N value is larger, and it is more accurate to identify, but in practical operation, also need to consider the factors such as the speed of identification, those of ordinary skills can arrange according to actual conditions;
In the present embodiment, above-mentioned RTP data variation rule at least comprises following RTP header fields rule:
1) RTP version is 2;
2) SSRC(Synchronization source, synchronisation source) be worth constant;
3) SN(Sequence Number, sequence number) the lasting change of value is greatly;
4) TIMESTAMP(timestamp) the lasting change of value is greatly;
Violate above-mentioned any one rule when the header fields of a packet, can judge that this packet does not meet RTP data variation rule;
103, the header compression algorithm of UDP message stream is revised as to RTP header compression algorithm, continues the head compression to above-mentioned UDP message stream; Process ends;
In the present embodiment, if a N continuous packet of UDP message stream all meets RTP data variation rule, can think that UDP message stream is for RTP data flow, the header compression algorithm of UDP message stream can be revised as to the RTP header compression algorithm that compression efficiency is higher;
104, keeping the header compression algorithm of UDP message stream is that UDP header compression algorithm is constant, continues the head compression to above-mentioned UDP message stream;
When any one of the N continuous packet of UDP message stream do not meet RTP data variation rule, can think that it is not RTP data flow that UDP message flows, and therefore keeps UDP header compression algorithm constant.
The header compression algorithm providing in the present embodiment, first with UDP header compression algorithm, it is carried out to head compression for each data flow, whether in carrying out head compression, identify this data flow is RTP data flow, if, header compression algorithm is revised as to RTP header compression algorithm to reach maximum compression efficiency, otherwise holding head compression algorithm is constant, can improve adaptability and the compression efficiency of header compression algorithm.
Embodiment bis-:
The invention provides a kind of head compression method, as shown in Figure 2, comprise the following steps:
201, according to information such as source IP address, object IP address and port numbers, the UDP message bag receiving is divided into different UDP message stream;
202, the header compression algorithm of UDP message stream is set as to UDP header compression algorithm, and starts the head compression to above-mentioned UDP message stream;
Above-mentioned UDP message stream can be any one in the different UDP message stream that in step 201, shunting obtains;
Because RTP packet is also UDP message bag, therefore can first use UDP header compression algorithm to flow to wardrobe compression to UDP message;
203, the number-of-packet M of this identification is initialized as to 0;
204、M=M+1;
Every circulation primary, identification data bag number adds 1;
205, M packet in an above-mentioned UDP message stream N continuous packet carried out to the identification of RTP head, judge whether above-mentioned M packet meets RTP data variation rule, if so, execution step 206, otherwise execution step 208;
In the present embodiment, RTP data variation rule can at least comprise following RTP header fields rule:
RTP version is 2;
SSRC value is constant;
It is large that SN value continues to become;
It is large that TIMESTAMP value continues to become;
Violate above-mentioned any one rule when the header fields of a packet, can judge that this packet is not RTP packet;
206, judge whether M is more than or equal to N, if so, execution step 207, otherwise execution step 204;
In the present embodiment, the value of N is predefined, and N value at least should be more than or equal to 1, as being arranged between 5-10, N value is larger, and it is more accurate to identify, but in practical operation, also need to consider the factors such as the speed of identification, those of ordinary skills can arrange according to actual conditions;
If M is less than N, the packet number of explanation identification does not reach set point, continues next packet to identify; If M is more than or equal to N, the packet number of explanation identification has reached set point, can think that UDP message stream is RTP data flow;
207, the header compression algorithm of UDP message stream is revised as to RTP header compression algorithm, continues the head compression to above-mentioned UDP message stream; Process ends;
208, keeping the header compression algorithm of UDP message stream is that UDP header compression algorithm is constant, continues the head compression to above-mentioned UDP message stream.
The header compression algorithm providing in the present embodiment, first with UDP header compression algorithm, it is carried out to head compression for each data flow, in carrying out head compression, the N continuous of this data flow packet is identified, in the time that a N continuous packet all meets RTP data variation rule, header compression algorithm is revised as to RTP header compression algorithm to reach maximum compression efficiency, otherwise holding head compression algorithm is constant, can improve adaptability and the compression efficiency of header compression algorithm.
Embodiment tri-(1):
The invention provides a RTP recognition methods, its process as shown in Figure 3, comprises the steps:
301-302, UDP message stream is carried out to RTP identification, if RTP identifies successfully, perform step 303, otherwise execution step 304;
It should be noted that, the RTP identification of UDP message stream and head compression are carried out simultaneously;
In this example, the concrete grammar that UDP message stream is carried out to RTP identification is: the N continuous packet to above-mentioned UDP message stream carries out the identification of RTP head, judge whether an above-mentioned N continuous packet all meets RTP data variation rule, if all met, RTP identifies successfully, UDP message stream is RTP data flow, otherwise RTP recognition failures, UDP message stream is not RTP data flow;
In the present embodiment, the value of N is predefined, and N value at least should be more than or equal to 1, as being arranged between 5-10, N value is larger, and it is more accurate to identify, but in practical operation, also need to consider the factors such as the speed of identification, those of ordinary skills can arrange according to actual conditions;
In the present embodiment, wherein RTP data variation rule at least comprises following RTP header fields rule:
1) RTP version is 2;
2) SSRC(Synchronization source, synchronisation source) be worth constant;
3) SN(Sequence Number, sequence number) the lasting change of value is greatly;
4) TIMESTAMP(timestamp) the lasting change of value is greatly;
Violated above-mentioned any one rule when the header fields of a packet, this packet does not meet RTP data variation rule, RTP recognition failures;
303, the header compression algorithm of UDP message stream is revised as to RTP header compression algorithm, uses RTP header compression algorithm to carry out head compression, process ends to this data flow;
304, judge whether to finish the RTP identification to UDP message stream, if finish RTP identification, perform step 305, otherwise execution step 301;
In the present embodiment, judge whether that the concrete grammar that finishes the RTP identification to UDP message stream is: if regard as above-mentioned RTP end of identification while meeting following any one condition, otherwise proceed RTP identification;
1), in RTP identifying, the RTP version field of any one packet is not 2;
2), in RTP identifying, the SSRC value of packet changes;
3) RTP identification number of times is greater than A;
In the present embodiment, the value of A is predefined (being generally not less than 2), and A value is less, identifies strictlyer, but in practical operation, also needs to consider the factors such as network stabilization, and those of ordinary skills can arrange according to actual conditions;
305, keeping the header compression algorithm of UDP message stream is that the compression of UDP head is constant, process ends;
In the present embodiment, UDP message stream is carried out repeatedly to RTP identification (according to the setting to A value), because due to factors such as unstable networks, cause data packet disorder, may cause RTP identification wrong, not identifying UDP message stream is RTP data flow, repeatedly identifies and can reduce the probability that can not identify RTP data flow that data packet disorder causes.
Embodiment tri-(2):
The invention provides a RTP verification method, its process as shown in Figure 4, comprises the steps:
401, judge whether the compression algorithm that UDP message stream uses is RTP header compression algorithm, if it is performs step 403, otherwise execution step 402;
402, keeping the header compression algorithm of UDP message stream is that the compression of UDP head is constant, process ends;
403-404, UDP message stream is carried out to RTP checking, if RTP is proved to be successful, perform step 406, if authentication failed performs step 405;
It should be noted that, the RTP checking of UDP message stream and head compression are carried out simultaneously;
In the present embodiment, concrete RTP verification method is: the packet to UDP message stream is verified, in the time that following any one condition occurs, is judged as RTP authentication failed, is proved to be successful otherwise be judged as RTP:
1) the RTP version field of any one packet is not 2;
2) the SSRC value of packet changes;
3) SN of packet or TIMESTAMP value, does not continue for K time to become large continuously;
In the present embodiment, the value of K is predefined, and K value at least should be more than or equal to 1, as being arranged between 2-5, K value is less, verifies stricter, but in practical operation, also need to consider the factors such as network stabilization, those of ordinary skills can arrange according to actual conditions;
405, the header compression algorithm of UDP message stream is revised back to UDP header compression algorithm, process ends;
406, keeping the header compression algorithm of UDP message stream is that the compression of RTP head is constant, process ends.
The RTP verification method that the present embodiment provides is used in the RTP of UDP message stream is proved to be successful and is adopted after RTP header compression algorithm flows to wardrobe compression to UDP message, and UDP message stream is carried out to RTP checking.
In the present embodiment, header compression algorithm is being revised as after RTP header compression algorithm, carrying out RTP checking is because in RTP identifying, likely there is the situation of erroneous judgement, be identified as RTP data flow by non-RTP data flow, RTP proof procedure can be found this problem in time, and header compression algorithm correction is returned to the compression of UDP head.
Embodiment tetra-:
The present invention also provides an a kind of compressibility, as shown in Figure 5, comprising:
Setup unit 10, for being set as UDP header compression algorithm by the header compression algorithm of UDP message stream;
Because RTP packet is also UDP message bag, therefore can first use UDP header compression algorithm to flow to wardrobe compression to UDP message;
Compression unit 20, for using the UDP header compression algorithm that setup unit 10 is set to start the head compression to above-mentioned UDP message stream;
RTP recognition unit 30, for carrying out RTP identification to above-mentioned UDP message stream; Wherein, RTP recognition unit 30 be at compression unit 20, UDP message is flow to wardrobe compressions in, UDP message stream is identified;
Revise unit 40, in the time that RTP recognition unit 30 is identified successfully to above-mentioned UDP message stream, the header compression algorithm of above-mentioned UDP message stream is revised as to RTP header compression algorithm;
Compression unit 20 also, in the time that RTP recognition unit 30 is identified successfully to above-mentioned UDP message stream, uses above-mentioned RTP header compression algorithm to continue above-mentioned UDP message to flow to wardrobe compression;
Compression unit 20, also in the time that RTP recognition unit 30 flows recognition failures to above-mentioned UDP message, uses above-mentioned UDP header compression algorithm to continue above-mentioned UDP message to flow to wardrobe compression.
It should be noted that, in the present embodiment, RTP recognition unit 30 to the recognition methods of above-mentioned UDP message stream is: the N continuous packet to UDP message stream carries out the identification of RTP head, judge whether an above-mentioned N continuous packet all meets RTP data variation rule, if so, identify successfully, UDP message stream is RTP data flow, otherwise recognition failures, UDP message stream is not RTP data flow.
It should be noted that, in the present embodiment, the value of N is predefined, and N value is larger, and it is more accurate to identify, but in practical operation, also needs to consider the factors such as the speed of identification, and those of ordinary skills can arrange according to actual conditions.
Particularly, RTP data variation rule can at least comprise the Changing Pattern of following RTP header fields:
RTP version is 2;
SSRC value is constant;
It is large that SN and TIMESTAMP value continue to become.
Violate above-mentioned any one rule when the header fields of a packet, can judge that this packet is not RTP packet.
The compressibility providing in the present embodiment, first with UDP header compression algorithm, it is carried out to head compression for each data flow, in carrying out head compression, this data flow is carried out to RTP identification, in the time that RTP identifies successfully, header compression algorithm is revised as to RTP header compression algorithm to reach maximum compression efficiency, otherwise holding head compression algorithm is constant, can improve adaptability and the compression efficiency of header compression algorithm.
Further, provided by the invention compressibility also comprises:
Dividing cell (not shown), for being divided into different data flow according to information such as source IP address, object IP address and port numbers by UDP message bag; Above-mentioned UDP message stream is any one in the different data flow of dividing cell output.
Further, as shown in Figure 6, provided by the invention compressibility also comprises:
RTP authentication unit 50, in the time that above-mentioned RTP recognition unit 30 is identified successfully, continues above-mentioned UDP message stream to carry out RTP checking;
Compression unit 20, also in the time that RTP authentication unit 50 is proved to be successful, uses above-mentioned RTP header compression algorithm to continue above-mentioned UDP message to flow to wardrobe compression;
Revise unit 40 also for when RTP authentication unit 50 authentication failed, the header compression algorithm that above-mentioned UDP message is flowed is revised as UDP header compression algorithm;
Compression unit 20, also in the time that RTP authentication unit checking 50 is failed, uses above-mentioned UDP header compression algorithm to continue above-mentioned UDP message to flow to wardrobe compression.
It should be noted that, the RTP verification method that in the present embodiment, RTP authentication unit 50 adopts is: several packets to UDP message stream are verified, in the time that following any one condition occurs, be judged as RTP authentication failed, otherwise RTP are proved to be successful:
1) the RTP version field of any one packet is not 2;
2) the SSRC value of packet changes;
3) SN of packet or TIMESTAMP value, does not continue for K time to become large continuously.
In the present embodiment, the value of K is predefined, and K value is less, verifies strictlyer, but in practical operation, also needs to consider the factors such as network stabilization, and those of ordinary skills can arrange according to actual conditions.
It should be noted that, in RTP checking, the packet of sampling does not generally comprise the packet of identifying in RTP identifying.
In the present embodiment, header compression algorithm is being revised as after RTP header compression algorithm, carrying out RTP checking is because in the identifying of RTP recognition unit 30, likely there is the situation of erroneous judgement, be identified as RTP data flow by non-RTP data flow, RTP proof procedure can be found this problem in time, and header compression algorithm correction is returned to UDP header compression algorithm.
Further, as shown in Figure 6, provided by the invention compressibility also comprises:
Judging unit 60, for when RTP recognition unit 30 recognition failures, judges whether to finish the RTP identification to UDP message stream;
RTP recognition unit 30, also when being no when the judged result of judging unit 60, continues above-mentioned UDP message stream to carry out RTP identification.
In the present embodiment, judging unit 60 judges whether that the concrete grammar that finishes the RTP identification to UDP message stream is: if regard as above-mentioned RTP end of identification while meeting following any one condition, otherwise proceed RTP identification;
1), in RTP identifying, the RTP version field of any one packet is not 2;
2), in RTP identifying, the SSRC value of packet changes;
3) RTP identification number of times is greater than A;
In the present embodiment, the value of A is predefined (being generally not less than 2), and A value is less, identifies strictlyer, but in practical operation, also needs to consider the factors such as network stabilization, and those of ordinary skills can arrange according to actual conditions.
It should be noted that, in repeatedly RTP identifies, N packet of each sampling generally should not comprise identical packet, to play good recognition effect.
It should be noted that, when the judged result of judging unit 60 is when being, the identifying of UDP message stream is finished, compression unit 20 continues that by above-mentioned uses UDP header compression algorithm above-mentioned UDP message is flow to wardrobe and compresses.
In the present embodiment, UDP message stream is carried out repeatedly to RTP identification, because due to factors such as unstable networks, cause data packet disorder, may cause the identification of recognition unit 30 wrong, not identifying UDP message stream is RTP data flow, repeatedly identifies and can reduce the probability that can not identify RTP data flow that data packet disorder causes.
It should be noted that, above in each embodiment, above-mentioned RTP identification or RTP proof procedure are all to carry out in UDP message being flow to wardrobe compression, if the head compression of UDP message stream is finished, and the RTP identification to this data flow or also corresponding end of RTP checking.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
The head compression method and the system that above the embodiment of the present invention are provided are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a head compression method, is characterized in that, comprising:
The header compression algorithm of User Datagram Protoco (UDP) UDP message stream is set as to UDP header compression algorithm, and starts the head compression to described UDP message stream;
Described UDP message stream is carried out to realtime transmission protocol RTP identification, if RTP identifies successfully, the header compression algorithm of described UDP message stream is revised as to RTP header compression algorithm, continue the head compression to described UDP message stream, otherwise keeping the header compression algorithm of described UDP message stream is that UDP header compression algorithm is constant, continue the head compression to described UDP message stream.
2. method according to claim 1, is characterized in that, is that UDP header compression algorithm is constant at the header compression algorithm of the described UDP message stream of described maintenance, continues after the head compression of described UDP message stream, and described method also comprises:
Judge whether to finish the RTP identification to described UDP message stream, if so, keeping the header compression algorithm of described UDP message stream is that UDP header compression algorithm is constant, continues the head compression to described UDP message stream, otherwise, continue described UDP message stream to carry out RTP identification.
3. method according to claim 2, is characterized in that, described in judge whether that the RTP identification finishing described UDP message stream comprises:
Finish the RTP identification to described UDP message stream if be judged as while meeting following any one condition, otherwise be judged as the RTP identification continuing described UDP message stream:
In described RTP identifying, the RTP version field of any one packet is not 2;
In described RTP identifying, the SSRC value of packet changes;
RTP identification number of times is greater than A; The value of A presets.
4. according to the method described in claim 1-3 any one, it is characterized in that, describedly described UDP message stream is carried out to RTP identification comprise:
A N continuous packet to described UDP message stream carries out the identification of RTP head, judges whether a described N continuous packet all meets RTP data variation rule, if so, identifies successfully, otherwise recognition failures; N value presets.
5. method according to claim 4, is characterized in that, described RTP data variation rule at least comprises following RTP header fields rule:
RTP version is 2;
Synchronisation source SSRC value is constant;
It is large that sequence number SN value continues to become;
It is large that time stamp T IMESTAMP value continues to become.
6. according to the method described in claim 1-3 any one, it is characterized in that, be revised as RTP header compression algorithm at the described header compression algorithm by described UDP message stream, continue after the head compression of described UDP message stream, described method also comprises:
Described UDP message stream is carried out to RTP checking, if be proved to be successful, keeping the header compression algorithm of UDP message stream is RTP header compression algorithm, continue the head compression to described UDP message stream, if authentication failed, revises back UDP header compression algorithm by the header compression algorithm of UDP message stream, continue the head compression to described UDP message stream.
7. method according to claim 6, is characterized in that, describedly described UDP message stream is carried out to RTP checking comprises:
Packet to UDP message stream verifies, below any one condition while occurring, be judged as RTP authentication failed, be proved to be successful otherwise be judged as RTP:
The RTP version field of any one packet is not 2;
The SSRC value of packet changes;
The SN of packet or TIMESTAMP value, do not continue for K time to become large continuously; K value presets.
8. a compressibility, is characterized in that, comprising:
Setup unit, for being set as UDP header compression algorithm by the header compression algorithm of User Datagram Protoco (UDP) UDP message stream;
Compression unit, for using the header compression algorithm that described setup unit is set to start the head compression to described UDP message stream;
RTP recognition unit, for carrying out realtime transmission protocol RTP identification to described UDP message stream;
Revise unit, in the time that described RTP recognition unit is identified successfully, the header compression algorithm of described UDP message stream is revised as to RTP header compression algorithm;
Described compression unit, also in the time that described RTP recognition unit is identified successfully, uses described RTP header compression algorithm to continue described UDP message to flow to wardrobe compression;
Described compression unit, also for when the described RTP recognition unit recognition failures, uses UDP header compression algorithm to continue described UDP message to flow to wardrobe compression.
9. system according to claim 8, is characterized in that, described system also comprises:
Judging unit, for when the described RTP recognition unit recognition failures, judges whether to finish the RTP identification to UDP message stream;
Described RTP recognition unit, also when being no when the judged result of described judging unit, continues described UDP message stream to carry out RTP identification.
10. system according to claim 8 or claim 9, is characterized in that, described system also comprises:
RTP authentication unit, in the time that described RTP recognition unit is identified successfully, carries out RTP checking to described UDP message stream;
Described compression unit, also in the time that described RTP authentication unit is proved to be successful, uses described RTP header compression algorithm to continue described UDP message to flow to wardrobe compression;
Described modification unit, also for when the described RTP authentication unit authentication failed, is revised as UDP header compression algorithm by the header compression algorithm of described UDP message stream;
Described compression unit, also for when the described RTP authentication unit authentication failed, uses described UDP header compression algorithm to continue described UDP message to flow to wardrobe compression.
CN201210459149.7A 2012-11-14 2012-11-14 Header compression method and system Pending CN103812846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210459149.7A CN103812846A (en) 2012-11-14 2012-11-14 Header compression method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210459149.7A CN103812846A (en) 2012-11-14 2012-11-14 Header compression method and system

Publications (1)

Publication Number Publication Date
CN103812846A true CN103812846A (en) 2014-05-21

Family

ID=50709051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210459149.7A Pending CN103812846A (en) 2012-11-14 2012-11-14 Header compression method and system

Country Status (1)

Country Link
CN (1) CN103812846A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717209A (en) * 2015-02-10 2015-06-17 京信通信技术(广州)有限公司 RTP message recognition method and device thereof
CN106941697A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 A kind of method and apparatus for sending, receiving timestamp information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030147372A1 (en) * 2002-02-01 2003-08-07 Pattavina Jeffrey S. Method and system for encapsulating time division multiplex data into individual packets of a packet based network
CN1988543A (en) * 2006-12-07 2007-06-27 华为技术有限公司 Message type identifying method and device, message header compressing method and system
CN101366261A (en) * 2006-01-06 2009-02-11 高通股份有限公司 Method and apparatus for enhancing robust header compression performance when silent suppression is encountered
CN101453463A (en) * 2007-11-28 2009-06-10 中兴通讯股份有限公司 Data packet packing, transmitting and receiving method for mobile multimedia broadcast system
CN102413506A (en) * 2010-09-20 2012-04-11 华为技术有限公司 Compression method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030147372A1 (en) * 2002-02-01 2003-08-07 Pattavina Jeffrey S. Method and system for encapsulating time division multiplex data into individual packets of a packet based network
CN101366261A (en) * 2006-01-06 2009-02-11 高通股份有限公司 Method and apparatus for enhancing robust header compression performance when silent suppression is encountered
CN1988543A (en) * 2006-12-07 2007-06-27 华为技术有限公司 Message type identifying method and device, message header compressing method and system
CN101453463A (en) * 2007-11-28 2009-06-10 中兴通讯股份有限公司 Data packet packing, transmitting and receiving method for mobile multimedia broadcast system
CN102413506A (en) * 2010-09-20 2012-04-11 华为技术有限公司 Compression method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717209A (en) * 2015-02-10 2015-06-17 京信通信技术(广州)有限公司 RTP message recognition method and device thereof
CN106941697A (en) * 2016-01-04 2017-07-11 中兴通讯股份有限公司 A kind of method and apparatus for sending, receiving timestamp information

Similar Documents

Publication Publication Date Title
US8897144B2 (en) Quality of user experience testing for video transmissions
US8355433B2 (en) Encoding video streams for adaptive video streaming
EP2849384B1 (en) Approximate matching method and related device, and communication system
US8989215B2 (en) Method, apparatus, and system for data transmission
CN110035016B (en) A data transmission method and device
CN103379360B (en) Assessment method and device for video quality
CN107124444A (en) A kind of method and apparatus of block chain data syn-chronization
CN109962878B (en) Registration method and device of IMS (IP multimedia subsystem) user
KR20150031287A (en) Method and apparatus for evaluating quality of audio stream
CN112118442A (en) AI video call quality analysis method, device, computer equipment and storage medium
CN109302603A (en) A method and device for evaluating video call quality
KR20170057030A (en) Method and apparatus for detecting attaks and generating attack signatures based on signature merging
CN106464581A (en) Data transmission method and system and data receiving device
WO2015081693A1 (en) Network sharing user identification method and apparatus
CN108243146A (en) A kind of efficient information submits method
US20130138445A1 (en) Apparatus and method for determining bit rate for audio content
CN103812846A (en) Header compression method and system
CN110401658A (en) A kind of data interactive method and interaction platform
CN102714652B (en) Monitoring Data network comprises the conversational communication of multiple data flow
CN103856370B (en) Application flow recognition method and system
CN105959308A (en) Internal network IP data packet management method and system, and devices
CN114866827B (en) Audio and video synchronization detection method and device, storage medium and electronic equipment
CN103957070B (en) The localization method of a kind of Frame and device
CN112954255B (en) Video conference code stream transmission method, device, computer equipment and storage medium
CN116614481A (en) A multimedia data transmission method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140521

RJ01 Rejection of invention patent application after publication