Summary of the invention
In view of above-mentioned technical problem, the present invention provides the method, apparatus, terminal and access device of a kind of data processing, with
Reduce the consumption of Internet resources.
According to one aspect of the present invention, a kind of method of data processing is provided, which comprises according to setting in advance
Fixed high frequency field determines the one or more compressions for needing to compress from the first payload of the first data to be sent
Field;According to the mapping relations of the packed field corresponding high frequency field and field number, determine that packed field is corresponding one by one
Field number;According to position in the first payload of first payload, each packed field and the field
It is encoded to obtain the second data, second data obtained by coded treatment is sent to receiving end.
Optionally, the packed field packed field consistent or described with preset high frequency field is to set in advance
The substring of fixed high frequency field.
Optionally, second data include: the first packet header and the second payload, wherein first number
According to package header include: the first instruction information, the length of the second payload, the number of the packed field and/or with each pressure
The sub- header of contracting field one-to-one first, wherein it includes compression word that the first instruction information, which is used to indicate current data packet,
Section;It include the reserved field not being replaced in first payload in second payload;The first sub- header
It include: the position and/or the field number of second indication information, corresponding packed field in first payload;
The second indication information is compressed for identifying corresponding packed field.
Optionally, the position according to first payload, packed field in the first payload and described
Field number is encoded to obtain the second data, comprising:
When the corresponding high frequency field of the packed field and the corresponding field number of the high frequency field have been sent to reception
When end, the second payload is determined according to reserved field to be replaced is not required in first payload;
Determine the position and described of the number, each packed field of the packed field in first payload
The length of two payload;
According to position in first payload of second indication information, packed field and/or the field number,
The determining and sub- header of each packed field one-to-one first;
According to the first instruction information, the length of second payload, the number of the packed field and/or one or
Multiple first sub- headers, determine the first packet header;
According to first packet header and second payload, coding obtains the second data.
Optionally, second data include: the second packet header and third payload, wherein second number
It include: the 4th instruction information, the length of third payload, the number of the packed field and/or the second son mark according to package header
Head, wherein the 4th instruction information is used to indicate in current data packet comprising packed field;In the third payload
Field is identical as the field in first payload;The second sub- header includes: third instruction information, corresponding compression
Position of the field in first payload, the corresponding high frequency field of the packed field length and/or the field
Number, the third instruction message identification correspond to packed field and correspond to for original field, for establishing packed field in receiving end
High frequency field and field number mapping relations.
Optionally, the position according to first payload, each packed field in the first payload and
The field number is encoded to obtain the second data, comprising:
When the corresponding high frequency field of the packed field and the corresponding field number of the high frequency field are not yet sent to and connect
When receiving end, determine that the length of third payload, the number of the packed field, each packed field are effectively carried described first
The length of position and each packed field in lotus;
Position in first payload of information, each packed field, each packed field are indicated according to third
Length and/or the field number, it is determining with the sub- header of each packed field one-to-one second;
According to the 4th instruction information, the length of second payload, the number of the packed field and/or one or
Multiple second sub- headers, determine the second packet header;
According to second packet header and the third payload, coding obtains the second data.
Optionally, the first packed field and the second packed field are included at least in the multiple packed field;
Second data include: third packet header and the 4th payload, and the third packet header includes:
5th instruction information, the length of the 4th payload, the packed field the sub- header of number, third and/or the 4th sub- header,
Wherein, the 5th instruction information is used to indicate in current data packet comprising packed field;Include: in 4th payload
Reserved field in first payload in addition to the second packed field;The sub- header of third includes: to identify corresponding packed field to be
The 6th of original field, mapping relations for establishing the corresponding high frequency field of the first packed field and field number in receiving end
Indicate position in first payload of information, first packed field, the packed field length and/or with
The corresponding field number of first packed field;The 4th sub- header includes: to identify corresponding packed field compressed the
Seven positions of the instruction information, second packed field in first payload, second packed field length
And/or the field number corresponding with the second packed field.
Optionally, the position according to first payload, packed field in the first payload and described
Field number is encoded to obtain the second data, comprising:
When the corresponding high frequency field of first packed field and the corresponding field number of the high frequency field are not yet sent
When to receiving end, the 4th payload and its length, the number of packed field, the first packed field and the second packed field are determined
The length of the length and the second packed field of position in first payload and the first packed field respectively;
According to the 6th position of the instruction information, the first packed field in first payload, the first packed field
Length and/or field number corresponding with the first packed field, determine corresponding with the first packed field header of third;
According to the 7th position of the instruction information, the second packed field in first payload, the second packed field
Length and/or field number corresponding with the second packed field, determine corresponding with the second packed field the 4th sub- header;
According to the 5th instruction information, the length of the 4th payload, the number of the packed field, third
Header and/or the 4th sub- header, determine third packet header;
According to the third packet header and the 4th payload, coding obtains the second data.
Optionally, the method also includes:
Indicate that decompression dictionary is established in the receiving end by the message of control plane, the message of the control plane includes high frequency word
Section and field number corresponding with the high frequency field.
Optionally, the method also includes:
Compressed capability is reported to the receiving end;
The relevant information for the compression algorithm that the receiving end returns is received, the relevant information of the compression algorithm is connect by described
Receiving end is obtained according to the selection of compressed capability and self-ability and configuration that report.
Optionally, before reporting compressed capability to the receiving end, the method also includes:
Receive the compressed capability query messages that the transmitting terminal is sent.
According to another aspect of the invention, a kind of method of data processing is additionally provided, which comprises receive hair
Sending end send the second data, second data by transmitting terminal according to preset high frequency field, to be sent first
The one or more packed fields for needing to compress are determined in first payload of data;By transmitting terminal according to the compression word
The mapping relations of section corresponding high frequency field and field number, determine the corresponding field number of the packed field one by one;Then
By transmitting terminal according to position in the first payload of first payload, each packed field and the field number
It is encoded to obtain.
Optionally, the method also includes:
The corresponding high frequency field of the packed field and the height are taken out from the second payload of second data
The mapping relations of the high frequency field and the field number are charged to decompression dictionary by the corresponding field number of frequency field.
Optionally, the method also includes:
Decompression dictionary is inquired, the corresponding data of each sub- header in second data is successively decompressed, is obtained after decompression original
Data.
Optionally, the method also includes:
Receive transmitting terminal send control plane message, the message of the control plane include high frequency field and with the high frequency
The corresponding field number of field;
Decompression dictionary is established according to the message of the control plane.
Optionally, the method also includes:
Receive the compressed capability that the transmitting terminal reports;
The selection of the ability of the compressed capability reported according to the transmitting terminal and receiving end itself and configuration compression algorithm, and will
The relevant information of the compression algorithm feeds back to the transmitting terminal.
Optionally, before receiving the compressed capability that the transmitting terminal reports, the method also includes:
Compressed capability query messages are sent to the transmitting terminal.
Optionally, second data include: the first packet header and the second payload, wherein first data
Package header include: the first instruction information, the length of the second payload, the number of the packed field and/or with each compression
The sub- header of field one-to-one first, wherein it includes packed field that the first instruction information, which is used to indicate current data packet,;
It include the reserved field not being replaced in first payload in second payload;The first sub- header packet
It includes: the position and/or the field number of second indication information, the packed field in first payload;It is described
Second indication information is compressed for identifying corresponding packed field.
Optionally, second data include: the second packet header and third payload, wherein second number
It include: the 4th instruction information, the length of third payload, the number of the packed field and/or the second son mark according to package header
Head, wherein the 4th instruction information is used to indicate in current data packet comprising packed field;In the third payload
Field is identical as the field in first payload;The second sub- header includes: third instruction information, the compression word
Position of the section in first payload, the length of the corresponding high frequency field of the packed field and/or the field are compiled
Number, third instruction message identification correspond to packed field as original field, corresponding for establishing packed field in receiving end
The mapping relations of high frequency field and field number.
Optionally, the first packed field and the second packed field are included at least in the multiple packed field;
Second data include: third packet header and the 4th payload, and the third packet header includes:
5th instruction information, the length of the 4th payload, the packed field the sub- header of number, third and/or the 4th sub- header,
Wherein, the 5th instruction information is used to indicate in current data packet comprising packed field;Include: in 4th payload
Reserved field in first payload in addition to the second packed field;The sub- header of third includes: to identify corresponding packed field to be
The 6th of original field, mapping relations for establishing the corresponding high frequency field of the first packed field and field number in receiving end
Indicate position in first payload of information, first packed field, the packed field length and/or with
The corresponding field number of first packed field;The 4th sub- header includes: to identify corresponding packed field compressed the
Seven positions of the instruction information, second packed field in first payload, second packed field length
And/or the field number corresponding with the second packed field.
Another aspect according to the present invention, additionally provides a kind of device of data processing, and described device includes:
Field determining module, for according to preset high frequency field, first from the first data to be sent to be effective
The one or more packed fields for needing to compress are determined in load;
Number determining module, for the mapping relations according to the packed field corresponding high frequency field and field number,
The corresponding field number of packed field is determined one by one;
Coding module, for according to position in the first payload of first payload, packed field and institute
It states field number to be encoded to obtain the second data, second data obtained by coded treatment is sent to receiving end.
Optionally, consistent or described packed field is preparatory to the packed field with preset high frequency field
The substring of the high frequency field of setting.
Optionally, second data include: the first packet header and the second payload, wherein first data
Package header include: the first instruction information, the length of the second payload, the number of the packed field and/or with each compression
The sub- header of field one-to-one first, wherein it includes packed field that the first instruction information, which is used to indicate current data packet,;
It include the reserved field not being replaced in first payload in second payload;The first sub- header packet
It includes: the position and/or the field number of second indication information, the packed field in first payload;It is described
Second indication information is compressed for identifying corresponding packed field.
Optionally, the coding module is further used for: when the corresponding high frequency field of the packed field and the high frequency
When the corresponding field number of field has been sent to receiving end, reserved word to be replaced is not required to according in first payload
Section determines the second payload;The number that determines the packed field, each packed field are in first payload
The length of position and second payload;According to second indication information, each packed field in first payload
In position and the field number, it is determining with the sub- header of each packed field one-to-one first;According to the first instruction letter
Breath, the length of second payload, the number of the packed field and one or more first sub- headers, determine the first number
According to package header;According to first packet header and second payload, coding obtains the second data.
Optionally, second data include: the second packet header and third payload, wherein second number
It include: the 4th instruction information, the length of third payload, the number of the packed field and/or the second son mark according to package header
Head, wherein the 4th instruction information is used to indicate in current data packet comprising packed field;In the third payload
Field is identical as the field in first payload;The second sub- header includes: third instruction information, the compression word
Position of the section in first payload, the length of the corresponding high frequency field of the packed field and/or the field are compiled
Number, third instruction message identification correspond to packed field as original field, corresponding for establishing packed field in receiving end
The mapping relations of high frequency field and field number.
Optionally, the coding module is further used for: when the corresponding high frequency field of the packed field and the high frequency
When the corresponding field number of field is not yet sent to receiving end, the length of third payload, of the packed field are determined
The length of position and/or each packed field of several, each packed field in first payload;It is indicated according to third
Position in first payload of information, each packed field, the length of each packed field and/or the word
Segment number, the determining and sub- header of each packed field one-to-one second;It is effectively carried according to the 4th instruction information, described second
The length of lotus, the number of the packed field and/or one or more second sub- headers, determine the second packet header;According to
Second packet header and the third payload, coding obtain the second data.
Optionally, the first packed field and the second packed field are included at least in the multiple packed field;
Second data include: third packet header and the 4th payload, and the third packet header includes:
5th instruction information, the length of the 4th payload, the packed field the sub- header of number, third and/or the 4th sub- header,
Wherein, the 5th instruction information is used to indicate in current data packet comprising packed field;Include: in 4th payload
Reserved field to be replaced is not required in high frequency field corresponding with the first packed field and first payload;Third
Header includes: that the corresponding packed field of mark is original field, for establishing the corresponding high frequency word of the first packed field in receiving end
Section indicates the position of information, first packed field in first payload with the 6th of the mapping relations of field number
It sets, the length of the packed field and field number corresponding with first packed field;The 4th sub- header includes: mark
Know the position of corresponding packed field compressed 7th instruction information, second packed field in first payload
It sets, the length/of second packed field or and the field number corresponding with the second packed field.
Optionally, the coding module is further used for: when the corresponding high frequency field of first packed field is corresponding
When field number is not yet sent to receiving end, the 4th payload and its length, the number of packed field, the first compression word are determined
Section and the second packed field length and/or second of the position in first payload and the first packed field respectively
The length of packed field;According to the 6th position of the instruction information, the first packed field in first payload, the first pressure
The length of contracting field and/or field number corresponding with the first packed field determine third corresponding with the first packed field
Header;According to the 7th position of the instruction information, the second packed field in first payload, the length of the second packed field
Degree and/or field number corresponding with the second packed field determine the 4th sub- header corresponding with the second packed field;According to
Five instruction information, the length of the 4th payload, the number of the packed field, the sub- header of the third and/or described
4th sub- header determines third packet header;According to the third packet header and the 4th payload, encode
To the second data.
Another aspect according to the present invention, additionally providing described device includes:
Receiving module, for receiving the second data of transmitting terminal transmission, second data are by transmitting terminal according to setting in advance
Fixed high frequency field determines the one or more compressions for needing to compress from the first payload of the first data to be sent
Field;By transmitting terminal according to the mapping relations of the packed field corresponding high frequency field and field number, one by one determine described in
The corresponding field number of packed field;Then had according to first payload, each packed field first by transmitting terminal
Position and the field number in effect load are encoded to obtain.
Optionally, described device further include:
Logging modle, for taking out the corresponding high frequency of the packed field from the second payload of second data
The mapping relations of the high frequency field and the field number are charged to solution by field and the corresponding field number of the high frequency field
Press dictionary.
Optionally, described device further include:
Decompression module successively decompresses the corresponding data of each sub- header in second data, solution for inquiring decompression dictionary
Initial data is obtained after pressure.
Another aspect according to the present invention additionally provides a kind of terminal, comprising: the dress of data processing as described above
It sets, or the device including data processing as described above.
Another aspect according to the present invention additionally provides a kind of access device, comprising: data processing as described above
Device, or the device including data processing as described above.
The beneficial effects of the present invention are: when carrying out data compression, first according to preset high frequency field, from pending
The one or more packed fields for needing to compress are determined in first payload of the first data sent;According to packed field pair
The mapping relations of the high frequency field and field number answered determine the corresponding field number of packed field;Then effectively according to first
Load and field number are encoded to obtain the second data, and the second data obtained by coded treatment are sent to receiving end,
To realize before transmitting terminal and receiving end carry out data transmission, first to high frequency field (or the high frequency in data to be transmitted
The substring of field) it is compressed, to reduce the data volume of data to be sent, reduce the consumption of Internet resources.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The executing subject of embodiment of the method for the invention can be terminal, be also possible to access device, when transmitting terminal is eventually
When end, corresponding receiving end is access device;When transmitting terminal is access device, corresponding receiving end is terminal.Terminal (UE)
It can be mobile phone (or mobile phone) or other equipment that can send or receive wireless signal, including user equipment is (eventually
End), it is personal digital assistant (PDA), radio modem, wireless communication device, hand-held device, laptop computer, wireless
Phone, wireless local loop (WLL) stand, movable signal can be converted to CPE (the Customer Premise of WiFi signal
Equipment, customer terminal equipment) or intelligent movable hot spot, intelligent appliance or other obstructed remarkable operations can it is spontaneous with
The equipment etc. of mobile communications network communication.Access device can be base station, it is of course possible to which understanding, the form of above-mentioned base station is not
Limit can be macro base station (Macro Base Station), micro-base station (Pico Base Station), Node B (the mobile base of 3G
The address stood), enhanced base station (eNB), family's enhanced base station (FemtoeNB or Home eNode B or Home eNB or
HeNB), relay station, access point, RRU (Remote Radio Unit, far-end RF module), RRH (Remote Radio
Head, remote radio head) etc..
First embodiment
Referring to Fig. 1, a kind of method of data processing is shown in figure, the specific steps are as follows:
Step S101, according to preset high frequency field, from the first payload of the first data to be sent really
Make the one or more packed fields for needing to compress;
Above-mentioned high frequency field corresponds to the field that some high frequencies occur, such as source IP address, target ip address in IP packet,
Source port number and destination slogan in TCP packet, user send the duplicate contents etc. in message.
Optionally, record has preset high frequency field corresponding with the high frequency field in the high frequency dictionary in transmitting terminal
Then field number can determine in the first payload whether there is packed field according to the high frequency dictionary.
It should be noted that packed field can be with the consistent or packed field of preset high frequency field
It is the substring of preset high frequency field, such as: the first payload is " abcdefgh ", it is assumed that high frequency field is
" bcdefg " can determine that the packed field in the first payload is " bcdefg ";Another example is: the first payload is
" abcdefai ", it is assumed that high frequency field is " bcdefg ", can determine that packed field is high frequency field in the first payload
Front substring " bcdef ";Again for example: the first payload is " abcdefgiabcdei ", it is assumed that high frequency field is
" bcdefg " can determine that two packed fields are respectively " bcdefg " and " bcde ", wherein " bcde " is high frequency field
The front substring of " bcdefg ".
Step S102, according to the mapping relations of packed field corresponding high frequency field and field number, compression is determined one by one
The corresponding field number of field, wherein the field length of packed field is greater than the field length of field number;
Optionally, field corresponding with the high frequency field can be generated when high frequency field is charged to high frequency dictionary by transmitting terminal
Number, to establish the mapping relations of high frequency field and field number, above-mentioned field number can be corresponding with high frequency field
Index value (index), certainly it should be noted that not limiting the concrete form of the field number in the present embodiment.
Step S103, the position according to the first payload, each packed field in the first payload and field are compiled
It number is encoded to obtain the second data, the second data obtained by coded treatment is sent to receiving end.
It should be noted that position of the packed field in the first payload can be the packed field first effectively
Initial position in load.
It should be noted that receiving end can carry out decompression processing to the second data according to decompression dictionary, or can also be with
High frequency field and the corresponding field number of high frequency field are charged in decompression dictionary from the second data, decompression dictionary record has
High frequency field and field number corresponding with the high frequency field.
In the present embodiment, it can be realized before transmitting terminal and receiving end carry out data transmission, first in data to be transmitted
High frequency field (or substring of high frequency field) compressed, to reduce the data volume of data to be sent.
Second embodiment
It is described in this embodiment be the corresponding high frequency field of packed field field number corresponding with the high frequency field still
It is not sent to receiving end when data compression process, i.e. the establishment process of decompression dictionary.Referring to fig. 2, a kind of number is illustrated in figure
According to the method for processing, the specific steps are as follows:
Step S201, according to preset high frequency field, from the first payload of the first data to be sent really
The one or more packed fields for needing to compress are made, subsequently into step S202;
It should be noted that the packed field determined in step S201 can be as high frequency field for establishing decompression word
Allusion quotation in the present embodiment can't compress determining packed field.
It should be noted that packed field is consistent with preset high frequency field.
Step S202, according to the mapping relations of packed field corresponding high frequency field and field number, compression is determined one by one
The corresponding field number of field, the field length of packed field is greater than the field length of field number, subsequently into step S203;
In the present embodiment, above-mentioned field number can be index value (index) corresponding with high frequency field, need certainly
Illustrate, the concrete form of the field number is not limited in the present embodiment.
Step S203, when the corresponding high frequency field of packed field field number corresponding with the high frequency field is not yet sent to
When receiving end, determine the length of third payload, the number of packed field, each packed field in the first payload
The length of position and each packed field, the field in the third payload is identical as the field in the first payload, so
After enter step S204;
It should be noted that the number of packed field can be 1,2 or multiple.
Step S204, the length of position in the first payload of information, packed field, packed field is indicated according to third
Degree and/or field number, the determining and sub- header of each packed field one-to-one second, subsequently into step S205;
It should be noted that the corresponding sub- header of each packed field can be generated respectively when there is multiple packed fields.
Step S205, according to the 4th instruction information, the length of the second payload, the number of packed field and/or one
Or multiple second sub- headers, the second packet header is determined, subsequently into step S206;
Equally, it should be noted that when there is multiple packed fields, each compression word can be determined in step S204
Then the corresponding sub- header of section can go to determine the second data by above- mentioned information and multiple second sub- headers in step S205
Package header.
Step S206, according to the second packet header and the second payload, coding obtains the second data, subsequently into step
Rapid S207.
Step S207, the second data obtained by coded treatment are sent to receiving end.
Above-mentioned second data include: the second packet header and third payload, wherein the second packet header packet
It includes: the 4th instruction information, the length of third payload, the number of the packed field and/or the second sub- header, wherein institute
The 4th instruction information is stated to be used to indicate in current data packet comprising packed field;Field in the third payload with it is described
Field in first payload is identical;The second sub- header includes: third instruction information, the packed field described the
The length and/or the field number of the corresponding high frequency field in position, the packed field in one payload, the third
It is original field, for establishing the corresponding high frequency field of packed field and word in receiving end that instruction message identification, which corresponds to packed field,
The mapping relations of segment number.
After receiving end receives the second data packet, receiving end takes out packed field from third payload and is logged into decompression word
Allusion quotation, and the corresponding field number of the packed field is recorded in decompression dictionary.
Below with a packed field, and the corresponding high frequency field of packed field field corresponding with the high frequency field is compiled
It number is not yet sent to for receiving end and is introduced.
Assuming that the corresponding field number (index) of high frequency field " bcdefg " is " 5 ".Referring to Fig. 3, the first payload
" abcdefgh " needs to notify solution pressure side, by above-mentioned pressure wherein " bcdefg " in the first payload is determined as packed field
Contracting field " bcdefg " is used to establish decompression dictionary as high frequency field, in the present embodiment can't be to packed field
" bcdefg " is compressed.
Referring to fig. 4, the information in the sub- header (Subheader) in figure is as follows: dictionary establishes mark (Dict Setup
Domain), value 0, identifying corresponding packed field is original field, is used to indicate receiving end and is built according to high frequency field and field number
Vertical decompression dictionary;Position (Offset domain) of the packed field in the first payload, value 1, instruction high frequency field are located at
After 1st byte (i.e. " a ") of the first payload;The length (Length) of the corresponding high frequency field of packed field, value
It is 6, indicates that the high frequency field length is 6byte;Field number (Index), value 5 indicate the corresponding word of high frequency field
Segment number is 5.
With continued reference to Fig. 4, " T " (domain Type) in figure: including packed field in instruction current data packet;"L"
(domain Packet Length): the total length of instruction third payload, 8byte;Number " N " (Number of of packed field
The domain Compress subheader): value 1.
In the present embodiment, by establishing decompression dictionary, so that can be in transmitting terminal and reception in follow-up data transmission process
Before end carries out data transmission, first the high frequency field (or substring of high frequency field) in data to be transmitted is compressed, with
Reduce the data volume of data to be sent.
3rd embodiment
The present embodiment describes transmitting terminal and the corresponding high frequency field of packed field and field number is sent to reception
The mapping relations of high frequency field and field number are logged in decompression dictionary by end, receiving end, and transmitting terminal is when sending data
The data compression process when packed field is determined again.Referring to Fig. 5, a kind of method of data processing is illustrated in figure,
Specific step is as follows:
Step S501, according to preset high frequency field, from the first payload of the first data to be sent really
The one or more packed fields for needing to compress are made, subsequently into step S502;
It should be noted that in the present embodiment, packed field is consistent with preset high frequency field.
Step S502, according to the mapping relations of packed field corresponding high frequency field and field number, compression is determined one by one
The corresponding field number of field, the field length of packed field is greater than the field length of field number, subsequently into step S503;
In the present embodiment, above-mentioned field number can be index value (index) corresponding with high frequency field, need certainly
Illustrate, the concrete form of the field number is not limited in the present embodiment.
Step S503, it is connect when the corresponding high frequency field of packed field field number corresponding with the high frequency field has been sent to
When receiving end, the second payload is determined according to reserved field to be replaced is not required in the first payload, subsequently into step
S504;
Step S504, determine that the position and second of the number, packed field of packed field in the first payload are effective
The length of load, subsequently into step S505;
It should be noted that needing to determine each packed field first respectively when the number of packed field is multiple
Position in payload.
It should be noted that preferably, position of the packed field in the first payload can be the packed field and exist
Initial position in first payload, is also not limited to this certainly.
Step S505, the position according to second indication information, packed field in the first payload and/or packed field
Field number corresponding to corresponding high frequency field determines the first sub- header corresponding with packed field, the second indication information
It is compressed for identifying corresponding packed field, subsequently into step S506;
Explanation is also needed, when there are multiple packed fields, each compression can be determined by step S505 respectively
The corresponding first sub- header of field.
Step S506, according to the first instruction information, the length of the second payload, the number of packed field and/or each the
One sub- header, determines the first packet header, and it includes packed field which, which is used to indicate current data packet, then
Enter step S507;
Step S507, according to the first packet header and the second payload, coding obtains the second data, subsequently into step
Rapid S508.
In the present embodiment, the second data include: the first packet header and the second payload, wherein the first data packet
Header includes: the first instruction information, the length of the second payload, the number of packed field and/or corresponding with packed field
First sub- header, the first sub- header include: the position and/or word of second indication information, packed field in the first payload
Segment number.
Step S508, the second data obtained by coded treatment are sent to receiving end.
Below to determine a packed field, and transmitting terminal compiles the corresponding high frequency field of the packed field and field
It number is sent to for receiving end and is illustrated.
High frequency field field number corresponding with the high frequency field receiving end is sent to before transmitting terminal, receiving end is
It charges in decompression dictionary, if including the high frequency field or including the height in the payload (Payload) that transmitting terminal is sent
It, can be using the compression process in the present embodiment when the front substring of frequency field.
Assuming that high frequency field " bcdefg " has been sent to receiving end and has charged to decompression dictionary, the corresponding index of high frequency field
Being worth (index) is " 5 ".Referring to Fig. 6, the first payload " abcdefgi " determines that " bcdefg " in the first payload is
Packed field can be compressed.
Referring to Fig. 7, being not required to reserved field to be replaced is " ai ", is that " ai " determines that second has according to above-mentioned reserved field
Imitate load.The information in sub- header (Subheader) in Fig. 7 is as follows: the domain Dict Setup, value 1, identifies corresponding compression
Field is compressed;Position (Offset domain) of the packed field in the first payload, value 1, instruction high frequency field are located at
After 1st byte (i.e. " a ") of the first payload;Index, value 5 indicate the corresponding field number of high frequency field
It is 5.Optionally, which can also include: the length (Length) of high frequency field, and value 6 indicates that the high frequency field is long
Degree is 6byte.
With continued reference to Fig. 7, " T " (domain Type) in figure: including packed field in instruction current data packet;"L"
(domain Packet Length): the total length of the second payload of instruction, 2byte;"N"(Number of Compress
The domain subheader), indicate the number of packed field: value 1.
After receiving end receives the second data, pressure can be learnt according to the decompression dictionary at field number inquire-receive end
Contracting field is " bcdefg ", obtains initial data as shown in Figure 8 after decompression.
It is illustrated for determining two packed fields below.After decompression dictionary is written in high frequency field, if hair
Sending end sends high frequency field again, can star the compression process of the present embodiment;Assuming that high frequency field " bcdefg " has charged to solution
Dictionary is pressed, corresponding index is 5.
Referring to Fig. 9, the first payload " abcdefgiabcdei " of transmitting terminal the first data pending, wherein
" bcdefg " and " bcde " is determining the first packed field and the second packed field, can be compressed.
Referring to Figure 10, transmitting terminal data are encoded after the second data, have information that
T (domain Type): instruction current data includes packed field;
L (domain Packet Length): the total length of the second payload of the second data of instruction, 4byte;
The number N (domain Number of Compress subheader): value 2 of packed field;
Information is as follows in sub- header (Subheader1) corresponding with the first packed field:
The domain Dict Setup: 1, it identifies corresponding packed field and is compressed;
The domain Offset: 1, indicate that high frequency field corresponding with the first packed field is located at the 1st of the first payload
After byte (i.e. " a ");
Length:6 indicates the preceding 6byte of high frequency field corresponding with the first packed field;
Index:5;The corresponding field number of instruction high frequency field corresponding with the first packed field is 5.
Information is as follows in sub- header (Subheader2) corresponding with the second packed field:
The domain Dict Setup: 1, it identifies corresponding packed field and is compressed;
The domain Offset: " 9 " indicate that high frequency field corresponding with the second packed field is located at the 9th of the first payload
After byte (i.e. " a ");
Length: " 4 ", instruction correspond to the preceding 4byte of high frequency field with the second packed field;
Index: " 5 ", the corresponding field number of instruction high frequency field corresponding with the second packed field are 5.
Decompression dictionary is inquired in receiving end, successively decompresses the corresponding data of each subheader, obtains after decompression original shown in Figure 11
Data.
In the present embodiment, it can be realized before transmitting terminal and receiving end carry out data transmission, first in data to be transmitted
High frequency field compressed, to reduce the data volume of data to be sent.
Fourth embodiment
Packed field is consistent with preset high frequency field in above-mentioned 3rd embodiment.It is described below and works as packed field
Compression process when being the substring of preset high frequency field.
After high frequency field has been written into the decompression dictionary of receiving end, if it includes high frequency word in payload that transmitting terminal, which is sent,
The front substring of section, can star the compression process of the present embodiment.Assuming that high frequency field " bcdefg " has charged to decompression dictionary, it is right
The index answered is " 5 ".
Referring to Figure 12, the first payload of transmitting terminal the first data pending is " abcdefai ", wherein " bcdef " is
The front substring of high frequency field " bcdefg ", can be compressed.
The second data after transmitting terminal encodes data, including following content: T are shown referring to Figure 13, in figure
(domain Type): instruction current data includes packed field;L (domain Packet Length): second effectively in the second data of instruction
The length of load, 3byte;The number N (domain Number of Compress subheader): value 1 of packed field;Son mark
Information is as follows in head (Subheader): the domain Dict Setup: 1, it identifies corresponding packed field and is compressed;The domain Offset: 1, instruction
High frequency field is located at after the 1st byte (i.e. " a ") of the first payload;The length Length:5 of packed field, instruction pressure
Contracting field corresponds to 5byte before high frequency field;Index:5;Indicate that the corresponding field number of high frequency field is 5.
Decompression dictionary is inquired in receiving end, learns that packed field is " bcdef ", obtains original number shown in Figure 14 after decompression
According to.
In the present embodiment, it can be realized before transmitting terminal and receiving end carry out data transmission, first in data to be transmitted
The substring of high frequency field compressed, to reduce the data volume of data to be sent.
5th embodiment
The scene of the present embodiment description is to determine the first packed field and the second packed field, when the first packed field pair
The high frequency field and the corresponding field number of high frequency field answered not yet are sent to data compression process when receiving end.Referring to figure
15, a kind of method of data processing is shown in figure, the specific steps are as follows:
Step S1501, according to preset high frequency field, from the first payload of the first data to be sent really
The first packed field and the second packed field for needing to compress are made, subsequently into step S1502;
It should be noted that the first packed field and the second packed field are consistent with preset high frequency field, or
The first packed field of person and the second packed field are the substring of preset high frequency field, such as front substring.
Step S1502, according to the mapping relations of packed field corresponding high frequency field and field number, the first compression is determined
Field and the corresponding field number of the second packed field, subsequently into step S1503;
In the present embodiment, the mapping relations for having high frequency field and field number are recorded in the high frequency dictionary of transmitting terminal.
Step S1503, when the corresponding field number of the first packed field is not yet sent to receiving end, determine that the 4th is effective
Load and its length, the number of packed field, the first packed field and the second packed field are respectively in the first payload
The length of the length and the second packed field of position and the first packed field, subsequently into step S1504;
It include: the reserved field in the first payload in addition to the second packed field in above-mentioned 4th payload, ginseng
See the example of Figure 17, the 4th payload " abcdefgiai ".
Step S1504, the position according to the 6th instruction information, the first packed field in the first payload, the first pressure
The length of contracting field and/or field number corresponding with the first packed field determine third corresponding with the first packed field
Header, subsequently into step S1505;
Above-mentioned 6th instruction information is used to establish decompression dictionary in receiving end, and record has the first compression word in the decompression dictionary
The mapping relations of section corresponding high frequency field and field number.
Step S1505, the position according to the 7th instruction information, the second packed field in the first payload, the second pressure
The length of contracting field and/or field number corresponding with the second packed field determine the 4th son corresponding with the second packed field
Header, subsequently into step S1506;
Above-mentioned 7th instruction information is compressed for identifying corresponding packed field.
Step S1506, according to the 5th instruction information, the length of the 4th payload, the number of packed field, third sub- mark
Head and/or the 4th sub- header, determine third packet header, subsequently into step S1507;
Above-mentioned 5th instruction information is used to indicate in current data packet comprising packed field.
Step S1507, according to third packet header and the 4th payload, coding obtains the second data, subsequently into
Step S1508;
Step S1508, the second data obtained by coded treatment are sent to receiving end.
In the present embodiment, the second data include: third packet header and the 4th payload, third packet header
It include: the 5th instruction information, the length of the 4th payload, the number of packed field, the sub- header of third and/or the 4th son mark
Head, wherein the 5th instruction information is used to indicate in current data packet comprising packed field;It include: first in 4th payload
Reserved field in payload in addition to the second packed field;The sub- header of third includes: that the corresponding packed field of mark is original
6th instruction of field, mapping relations for establishing the corresponding high frequency field of the first packed field and field number in receiving end
Position in the first payload of information, the first packed field, the length of packed field and/or corresponding with the first packed field
Field number;4th sub- header includes: to identify corresponding packed field the compressed 7th to indicate that information, the second packed field exist
The length and/or field number corresponding with the second packed field of position, the second packed field in first payload.
It is established below with reference to decompression dictionary, while compressing the method that (complete high frequency field) process introduces the present embodiment:
Referring to Figure 16, transmitting terminal raw data packets pending are as follows: field " bcdefg " is transmitting terminal in the first payload
The high frequency field identified, which is written high frequency dictionary by transmitting terminal, and numbering is 5.The high frequency field and correspondence
Label information be not yet sent to receiving end (solution pressure side), the first packed field " bcdefg ", the second packed field " bcde ".
Referring to Figure 17, the second data after transmitting terminal encodes data are as follows:
T (domain Type): instruction current data includes packed field;
L (domain Packet Length): the total length of the second payload of instruction, 10byte;
N (domain Number of Compress subheader): value 2;
Information is as follows in the corresponding sub- header Subheader1 of first packed field:
The domain Dict Setup: 0, identifying corresponding packed field is original field, is used to indicate receiving end and establishes decompression dictionary;
The domain Offset: 1, instruction packed field is located at after the 1st character of the first payload;
Length:6, instruction packed field length are 6byte;
Index:5;Indicate that the corresponding field number of the packed field is 5.
After receiving the data packet, receiving end unpack field bcdefg from the second payload of the second data charges to decompression
Dictionary, corresponding index are 5.
Information is as follows in the corresponding sub- header Subheader2 of second packed field:
The domain Dict Setup: 1, it identifies corresponding packed field and is compressed;
The domain Offset: 9, instruction packed field is located at after the 9th character of the first payload;
Length:4, instruction packed field length are 4byte;
Index:5;The field number for indicating high frequency field corresponding to the packed field is 5.
Decompression dictionary is inquired in receiving end, and solution extrudes the corresponding data of the corresponding sub- header of the second packed field, after decompression
To initial data as shown in figure 18.
Sixth embodiment
In the above-described embodiments, the foundation of decompression dictionary is based on the domain Dict Setup, can define hair in the present embodiment
The special signaling procedure of sending end and receiving end is established for decompression dictionary.
Content same as the previously described embodiments no longer applies state herein.In the present embodiment, this method further include: pass through definition
The message of control plane indicate that decompression dictionary is established in the receiving end, the message of the control plane of definition include high frequency field and with institute
State the corresponding field number of high frequency field.
Referring to Figure 19, transmitting terminal and receiving end can establish decompression field by defining the message of control plane.If should
Compression process then can use RRC (Radio Resource Control, wireless money for the data compression between UE and eNB
Source control protocol) or PDCP (Packet Data Convergence Protocol, Packet Data Convergence Protocol) layer message
Establish decompression dictionary.If establishing decompression dictionary using the present embodiment, do not have to carry again in the corresponding sub- header of packed field
The domain Dict Setup.
7th embodiment
Content same as the previously described embodiments no longer applies state herein.In the present embodiment, this method further include: Xiang Suoshu connects
Receiving end reports compressed capability;Receive the relevant information for the compression algorithm that the receiving end returns, the related letter of the compression algorithm
Breath is obtained by the receiving end according to the selection of compressed capability and self-ability and configuration that report.
Referring to fig. 20, when compressing opposite end and being respectively UE and eNB, UE can report compressed capability to eNB;ENB is according to UE
The ability and self-ability reported is that UE selects and configure compression algorithm, and such as: high frequency dictionary establishes mode;Whether high frequency is supported
The front substring of field compresses;Compression algorithm selection (such as UE and eNB support a variety of compression algorithms).
The compressed capability of 1, UE sends the compressed capability query process that may be initiated by eNB and triggers referring to fig. 2.ENB passes through
Process triggering UE reports compressed capability.
8th embodiment
Referring to fig. 22, a kind of method of data processing is shown in figure, the specific steps are as follows:
Step S2201, the second data that transmitting terminal is sent are received, second data are by transmitting terminal according to preset
High frequency field determines the one or more compression words for needing to compress from the first payload of the first data to be sent
Section;By transmitting terminal according to the mapping relations of the packed field corresponding high frequency field and field number, compression word is determined one by one
The corresponding field number of section;Then by transmitting terminal according to first payload, each packed field in the first payload
In position and the field number encoded to obtain, subsequently into step S2202 or step S2203.
Step S2202, the corresponding high frequency field of packed field and high frequency are taken out from the second payload of the second data
The mapping relations of high frequency field and field number are charged to decompression dictionary by the corresponding field number of field.
Step S2203, decompression dictionary is inquired, the corresponding data of each sub- header in the second data are successively decompressed, after decompression
To the first data.
Optionally, in the present embodiment, the method also includes:
Receive transmitting terminal send control plane message, the message of the control plane include high frequency field and with the high frequency
The corresponding field number of field;
Decompression dictionary is established according to the message of the control plane.
Optionally, in the present embodiment, the method also includes:
Receive the compressed capability that the transmitting terminal reports;
The selection of the ability of the compressed capability reported according to the transmitting terminal and receiving end itself and configuration compression algorithm, and will
The relevant information of the compression algorithm feeds back to the transmitting terminal.
Optionally, in the present embodiment, before receiving the compressed capability that the transmitting terminal reports, the method is also wrapped
It includes:
Compressed capability query messages are sent to the transmitting terminal.
Optionally, in the present embodiment, second data include: the first packet header and the second payload,
Described in the first packet header include: the first instruction information, the length of the second payload, the number of the packed field
And/or with the sub- header of each packed field one-to-one first, wherein it is described first instruction information be used to indicate current data
Packet includes packed field;It include the reserved field not being replaced in first payload in second payload;Institute
It includes: position in first payload of second indication information, the packed field and/or described for stating the first sub- header
Field number;The second indication information is compressed for identifying corresponding packed field.
Optionally, in the present embodiment, second data include: the second packet header and third payload,
In, second packet header includes: the 4th instruction information, the length of third payload, the number of the packed field
And/or the second sub- header, wherein the 4th instruction information is used to indicate in current data packet comprising packed field;Described
Field in three payload is identical as the field in first payload;The second sub- header includes: third instruction
Position in first payload of information, the packed field, the corresponding high frequency field of the packed field length
And/or the field number, it is original field, for establishing in receiving end that the third instruction message identification, which corresponds to packed field,
The mapping relations of packed field corresponding high frequency field and field number.
Optionally, in the present embodiment, the first packed field and the second compression are included at least in the multiple packed field
Field;
Second data include: third packet header and the 4th payload, and the third packet header includes:
5th instruction information, the length of the 4th payload, the packed field the sub- header of number, third and/or the 4th sub- header,
Wherein, the 5th instruction information is used to indicate in current data packet comprising packed field;Include: in 4th payload
Reserved field in first payload in addition to the second packed field;The sub- header of third includes: to identify corresponding packed field to be
The 6th of original field, mapping relations for establishing the corresponding high frequency field of the first packed field and field number in receiving end
Indicate position in first payload of information, first packed field, the packed field length and/or with
The corresponding field number of first packed field;The 4th sub- header includes: to identify corresponding packed field compressed the
Seven positions of the instruction information, second packed field in first payload, second packed field length
And/or the field number corresponding with the second packed field.
In the present embodiment, it can be realized before transmitting terminal and receiving end carry out data transmission, first in data to be transmitted
High frequency field (contain substring) compressed, to reduce the data volume of data to be sent.
9th embodiment
Referring to fig. 23, a kind of device of data processing is shown in figure, which includes:
Field determining module 231, for having from the first of the first data to be sent according to preset high frequency field
The one or more packed fields for needing to compress are determined in effect load;
Number determining module 232, for being closed according to the mapping of the corresponding high frequency field of the packed field and field number
System, determines the corresponding field number of the packed field one by one;
Coding module 233, for according to position in the first payload of first payload, packed field and
The field number is encoded to obtain the second data, and second data obtained by coded treatment are sent to reception
End.
Optionally, in the present embodiment, the packed field with preset high frequency field consistent or described pressure
Contracting field is the substring of preset high frequency field.
Optionally, in the present embodiment, second data include: the first packet header and the second payload,
Described in the first packet header include: the first instruction information, the length of the second payload, the number of the packed field
And/or with the sub- header of each packed field one-to-one first, wherein it is described first instruction information be used to indicate current data
Packet includes packed field;It include the reserved field not being replaced in first payload in second payload;Institute
It includes: position in first payload of second indication information, the packed field and/or described for stating the first sub- header
Field number;The second indication information is compressed for identifying corresponding packed field.
Optionally, in the present embodiment, the coding module is further used for: when the corresponding high frequency word of the packed field
When corresponding with the high frequency field field number of section has been sent to receiving end, according to do not needed in first payload by
The reserved field of replacement determines the second payload;The number that determines the packed field, each packed field are described first
The length of position and second payload in payload;According to second indication information, each packed field described
Position and the field number in first payload, the determining and sub- header of each packed field one-to-one first;Root
According to the first instruction information, the first son of the length of second payload, the number of the packed field and/or one or more
Header determines the first packet header;According to first packet header and second payload, coding obtains second
Data.
Optionally, in the present embodiment, second data include: the second packet header and third payload,
In, second packet header includes: the 4th instruction information, the length of third payload, the number of the packed field
And/or the second sub- header, wherein the 4th instruction information is used to indicate in current data packet comprising packed field;Described
Field in three payload is identical as the field in first payload;The second sub- header includes: third instruction
Position in first payload of information, the packed field, the corresponding high frequency field of the packed field length
And/or the field number, it is original field, for establishing in receiving end that the third instruction message identification, which corresponds to packed field,
The mapping relations of packed field corresponding high frequency field and field number.
Optionally, in the present embodiment, the coding module is further used for: when the corresponding high frequency word of the packed field
When corresponding with the high frequency field field number of section is not yet sent to receiving end, the length, described of third payload is determined
The length of the position and/or each packed field of the number of packed field, each packed field in first payload;
The length of position in first payload of information, the packed field, each packed field is indicated according to third
Degree and/or the field number, the determining and sub- header of each packed field one-to-one second;According to the 4th instruction information,
The length of second payload, the number of the packed field and/or one or more second sub- headers, determine the second number
According to package header;According to second packet header and the third payload, coding obtains the second data.
Optionally, in the present embodiment, the first packed field and the second compression are included at least in the multiple packed field
Field;
Second data include: third packet header and the 4th payload, and the third packet header includes:
5th instruction information, the length of the 4th payload, the packed field the sub- header of number, third and/or the 4th sub- header,
Wherein, the 5th instruction information is used to indicate in current data packet comprising packed field;Include: in 4th payload
Reserved field to be replaced is not required in high frequency field corresponding with the first packed field and first payload;Third
Header includes: that the corresponding packed field of mark is original field, for establishing the corresponding high frequency word of the first packed field in receiving end
Section indicates the position of information, first packed field in first payload with the 6th of the mapping relations of field number
It sets, the length of the packed field and/or field number corresponding with first packed field;The 4th sub- header packet
It includes: identifying the compressed 7th instruction information of corresponding packed field, second packed field in first payload
Position, second packed field length and/or the field number corresponding with the second packed field.
Optionally, in the present embodiment, the coding module is further used for: when the corresponding word of first packed field
When segment number is not yet sent to receiving end, the 4th payload and its length, the number of packed field, the first packed field are determined
The length and second of the position in first payload and the first packed field is compressed respectively with the second packed field
The length of field;According to the 6th position of the instruction information, the first packed field in first payload, the first compression word
The length and/or field number corresponding with the first packed field of section determine the sub- header of third corresponding with the first packed field;
According to the 7th position of the instruction information, the second packed field in first payload, the second packed field length and/
Or field number corresponding with the second packed field, determine the 4th sub- header corresponding with the second packed field;According to the five fingers
Show information, the length of the 4th payload, the number of the packed field, the sub- header of the third and/or the described 4th
Sub- header determines third packet header;According to the third packet header and the 4th payload, coding obtains the
Two data.
Tenth embodiment
Referring to fig. 24, a kind of device of data processing is shown in figure, which includes:
Receiving module 241, for receiving the second data of transmitting terminal transmission, second data are by transmitting terminal according in advance
The high frequency field of setting determines the one or more pressures for needing to compress from the first payload of the first data to be sent
Contracting field;By transmitting terminal according to the mapping relations of the packed field corresponding high frequency field and field number, institute is determined one by one
State the corresponding field number of packed field;Then by transmitting terminal according to first payload, each packed field first
Position and the field number in payload are encoded to obtain.
Optionally, described device further include: logging modle 242, for from the second payload of second data
The corresponding high frequency field of the packed field and the corresponding field number of the high frequency field are taken out, by the high frequency field and institute
The mapping relations for stating field number charge to decompression dictionary.
Optionally, described device further include: decompression module 243 successively decompresses second number for inquiring decompression dictionary
Each sub- header corresponding data in obtain initial data after decompression.
11st embodiment
A kind of terminal is provided in the present embodiment, comprising: at the data as described in the 9th embodiment or the tenth embodiment
The device of reason.Terminal (UE) can be mobile phone (or mobile phone) or other equipment that can send or receive wireless signal,
Including user equipment (terminal), personal digital assistant (PDA), radio modem, wireless communication device, hand-held device, knee
Laptop computer, wireless phone, wireless local loop (WLL) stand, movable signal can be converted to the CPE of WiFi signal
(Customer Premise Equipment, customer terminal equipment) or intelligent movable hot spot, intelligent appliance or other do not pass through
The operation of people can the spontaneous equipment etc. communicated with mobile communications network.
12nd embodiment
A kind of access device is provided in the present embodiment, comprising: such as the number described in the 9th embodiment or the tenth embodiment
According to the device of processing.Access device can be base station, it is of course possible to which the form of understanding, above-mentioned base station is unlimited, can be macro
Base station (Macro Base Station), micro-base station (Pico Base Station), Node B (address of the mobile base station 3G),
Enhanced base station (ENB), family's enhanced base station (FemtoeNB or Home eNode B or Home eNB or HNEB), relaying
It stands, access point, RRU (Remote Radio Unit, far-end RF module), RRH (Remote Radio Head, remote radio
Head) etc..
In several embodiments provided herein, it should be understood that disclosed method and apparatus, it can be by other
Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
For a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed phase
Coupling, direct-coupling or communication connection between mutually can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes receiving/transmission method described in each embodiment of the present invention
Part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc. are various can store
The medium of program code.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, several improvements and modifications can also be made under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.