Summary of the invention
The embodiment of the present invention provides a kind of method of Data Stream Processing, can improve the speed of Data Stream Processing.
The embodiment of the present invention additionally provides corresponding equipment.
First aspect present invention provides a kind of method of Data Stream Processing, including:
First processing module receives business data flow, and is that described business data flow distributes stream identification;
Described first processing module sends the business datum with described stream identification to the second processing module
Stream;
After described second processing module receives the described business data flow with described stream identification, according to
Described stream identification determines the head compression ROHC entity of vigorousness corresponding to described stream identification, and will
The described business data flow with described stream identification is pushed in described ROHC entity carry out ROHC pressure
Contracting.
In conjunction with first aspect, in the implementation that the first is possible, described first processing module is described industry
Business data stream distribution stream identification, specifically includes:
Described first processing module is by the header in described business data flow and the parameter of packet filter PF
Compare;
When described first processing module compares the PF matched with the header in described business data flow, will
Stream identification corresponding for described PF distributes to described business data flow;
When described first processing module does not compares the PF matched with the header in described business data flow,
It is new PF parameter by the reference record in the header of described business data flow, and corresponding described new PF
Parameter, creates a new PF, and is that described business data flow distributes an original business data flow
Mark.
In conjunction with first aspect or the first possible implementation of first aspect, in the realization that the second is possible
In mode, described second processing module determines corresponding being good for of described stream identification according to described stream identification
The head compression ROHC entity of strong property, and the described business data flow with described stream identification is pushed to
Described ROHC entity carries out ROHC compression specifically include:
Described second processing module is according to described stream identification, from the stream identification of pre-stored and passage mark
Know in the corresponding relation of CID and search ROHC entity corresponding for described CID;
When described second processing module finds the ROHC entity of corresponding described stream identification, by described band
The business data flow having described stream identification is pushed in described ROHC entity carry out ROHC compression.
In conjunction with first aspect or the first possible implementation of first aspect, in the realization that the third is possible
In mode, described second processing module determines corresponding being good for of described stream identification according to described stream identification
The head compression ROHC entity of strong property, and the described business data flow with described stream identification is pushed to
Described ROHC entity carries out ROHC compression specifically include:
Described second processing module is according to described stream identification, from the stream identification of pre-stored with CID's
Corresponding relation is searched ROHC entity corresponding for described CID;
When described second processing module does not finds the ROHC entity of corresponding described stream identification, create one
Individual new ROHC entity, and the described business data flow with described stream identification is pushed to described newly
The ROHC entity created carries out ROHC compression.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, also
Including:
Described second processing module is described newly created ROHC entity one gap marker CID of distribution, and
The described stream identification of corresponding storage and described CID.
Second aspect present invention provides a kind of Data Stream Processing equipment, including: at the first processing module and second
Reason module;
Described first processing module, is used for receiving business data flow, and is that described business data flow distributes data
Traffic identifier, and send the business data flow with described stream identification to the second processing module;
Described second processing module, for receiving the described business data flow with described stream identification
After, determine that according to described stream identification the head compression ROHC of vigorousness corresponding to described stream identification is real
Body, and be pushed to the described business data flow with described stream identification in described ROHC entity carry out
ROHC compresses.
In conjunction with second aspect, in the implementation that the first is possible, described first processing module includes:
Comparing unit, for carrying out the parameter of the header in described business data flow and packet filter PF
Relatively;
First allocation unit, for comparing and the header in described business data flow at described comparing unit
During the PF matched, stream identification corresponding for described PF is distributed to described business data flow;
First creating unit, believes with the head in described business data flow for not comparing at described comparing unit
During the PF that manner of breathing mates, it is new PF parameter by the reference record in the header of described business data flow,
And the described new PF parameter of correspondence, create a new PF;
Described first allocation unit, is additionally operable to after described first creating unit creates new PF, for described industry
Business data stream one original business datum traffic identifier of distribution.
In conjunction with the first possible implementation of second aspect or second aspect, in the reality that the second is possible
In existing mode, described second processing module includes:
First searches unit, for according to described stream identification, from stream identification and the passage of pre-stored
The corresponding relation of mark CID searches ROHC entity corresponding for described CID;
First pushes compression unit, finds corresponding described stream identification for searching unit described first
ROHC entity time, the described business data flow with described stream identification is pushed to described ROHC
Entity carries out ROHC compression.
In conjunction with the first possible implementation of second aspect or second aspect, in the reality that the third is possible
In existing mode, described second processing module includes:
Second searches unit, for according to described stream identification, from stream identification and the passage of pre-stored
The corresponding relation of mark CID searches ROHC entity corresponding for described CID;
Second creating unit, does not finds corresponding described stream identification for searching unit described second
During ROHC entity, create a new ROHC entity;
Second pushes compression unit, for being pushed to by the described business data flow with described stream identification
The ROHC entity that described second creating unit is newly created carries out ROHC compression.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described
Second processing module also includes:
Second allocation unit, distributes one for the ROHC entity newly created for described second creating unit and leads to
Road mark CID;
Association memory element, distributes for the correspondence described stream identification of storage and described second allocation unit
CID。
The embodiment of the present invention uses the first processing module to receive business data flow, and is described business datum flow point
Join stream identification;Described first processing module sends with described stream identification to the second processing module
Business data flow;Described second processing module receives the described business data flow with described stream identification
After, determine that according to described stream identification the head compression ROHC of vigorousness corresponding to described stream identification is real
Body, and be pushed to the described business data flow with described stream identification in described ROHC entity carry out
ROHC compresses.Handling process each with prior art will carry out compared with the comparison of multiple byte, this
Bright embodiment, by after carrying out a business data flow identification marking, directly uses number in other modules
Distinguish different business data flows according to traffic identifier, thus improve the efficiency of Data Stream Processing.
Detailed description of the invention
The embodiment of the present invention provides a kind of method of Data Stream Processing, can improve the speed of Data Stream Processing.
The embodiment of the present invention also provides for corresponding equipment.It is described in detail individually below.
Refering to Fig. 1, an embodiment of the method for the Data Stream Processing that the embodiment of the present invention provides includes:
101, the first processing module receives business data flow, and fails to be sold at auction for described business data flow distribution data
Know.
102, described first processing module sends the business with described stream identification to the second processing module
Data stream;
103, after described second processing module receives the described business data flow with described stream identification,
The head compression ROHC entity of vigorousness corresponding to described stream identification is determined according to described stream identification,
And be pushed in described ROHC entity carry out by the described business data flow with described stream identification
ROHC compresses.
The embodiment of the present invention uses the first processing module to receive business data flow, and is described business datum flow point
Join stream identification;Described first processing module sends with described stream identification to the second processing module
Business data flow;Described second processing module receives the described business data flow with described stream identification
After, determine that according to described stream identification the head compression ROHC of vigorousness corresponding to described stream identification is real
Body, and be pushed to the described business data flow with described stream identification in described ROHC entity carry out
ROHC compresses.Handling process each with prior art will carry out compared with the comparison of multiple byte, this
Bright embodiment, by after carrying out a business data flow identification marking, directly uses number in other modules
Distinguish different business data flows according to traffic identifier, thus improve the efficiency of Data Stream Processing.
Alternatively, on the basis of the embodiment that above-mentioned Fig. 1 is corresponding, the data stream that the embodiment of the present invention provides
Another embodiment of the method processed includes:
Described first processing module is that described business data flow distributes stream identification, specifically includes: described the
The parameter of the header in described business data flow and packet filter PF is compared by one processing module;Institute
State the first processing module when comparing the PF matched with the header in described business data flow, by described
Stream identification corresponding for PF distributes to described business data flow;Described first processing module does not compares and institute
When stating the PF that the header in business data flow matches, by the parameter in the header of described business data flow
It is recorded as new PF parameter, and corresponding described new PF parameter, creates a new PF, and be described industry
Business data stream one original business datum traffic identifier of distribution.
Alternatively, on the basis of the alternative embodiment that above-mentioned Fig. 1 and Fig. 1 is corresponding, described second processing module
The head compression ROHC entity of vigorousness corresponding to described stream identification is determined according to described stream identification,
And be pushed in described ROHC entity carry out by the described business data flow with described stream identification
ROHC compression specifically includes: described second processing module is according to described stream identification, from the number of pre-stored
According to traffic identifier with the corresponding relation of gap marker CID is searched ROHC entity corresponding for described CID;Described
When second processing module finds the ROHC entity of corresponding described stream identification, by described with described number
It is pushed in described ROHC entity carry out ROHC compression according to the business data flow of traffic identifier.
Alternatively, on the basis of the alternative embodiment that above-mentioned Fig. 1 and Fig. 1 is corresponding, described second processing module
The head compression ROHC entity of vigorousness corresponding to described stream identification is determined according to described stream identification,
And be pushed in described ROHC entity carry out by the described business data flow with described stream identification
ROHC compression specifically includes: described second processing module is according to described stream identification, from the number of pre-stored
According to the ROHC entity that traffic identifier is corresponding with searching described CID in the corresponding relation of CID;Described second processes
When module does not finds the ROHC entity of corresponding described stream identification, create a new ROHC entity,
And the described business data flow with described stream identification is pushed to described newly created ROHC entity
In carry out ROHC compression.
Described second processing module is described newly created ROHC entity one gap marker CID of distribution, and
The described stream identification of corresponding storage and described CID.
In order to make it easy to understand, below as a example by a concrete application scenarios, describe the embodiment of the present invention in detail
The process of middle Data Stream Processing:
In the embodiment of the present invention, the first processing module can be understood as traffic flow template to the process of data stream
The processing procedure of TFT, is described in detail referring next to Fig. 2:
201, the first processing module receives business data flow.
This business data flow can be IP traffic, can include destination in the header of this business data flow
Location and subnet mask, protocol number (IPv4)/next stem (IPv6), source port, destination interface, ipsec security
Part in parameter reference (SPI), COS (IPv4)/type of service (IPv6) and mask, stream label (IPv6)
Or all.
202, mate according to packet filter (PF, the packet filter) parameter of network configuration.
PF parameter include destination address and subnet mask, protocol number (IPv4)/next stem (IPv6), source port,
Destination interface, ipsec security parameter reference (SPI), COS (IPv4)/type of service (IPv6) and mask,
Stream label (IPv6).
In same packet filter, in above 7 kinds of parameters, some parameters can coexist, and also has some parameters
It is incompatible.Table 1 gives the efficient combination of packet filter parameter, marks with " X " with in string
The parameter of note can coexist in same packet filter.
Table 1: the efficient combination table of packet filter parameter
203, whether with the presence of matched packet filter.
Parameter in business data flow can be compared with the PF parameter in table 1, for example, first
Omparison purpose address and subnet mask, then compare protocol number (IPv4)/next stem (IPv6), if packet header
Not this content in information, then be type of data packet III form, compare residue according to type of data packet III
TOS (IPv4)/type of service (IPv6) and mask and stream label (IPv6);If there is protocol number (IPv4)/
Next stem (IPv6), the then content of reference source range of port number, without this content, be then data
Packet type II form, type of data packet II form, continues to compare IPSec SPI and TOS (IPv4)/service class
Type (IPv6) and mask;If the content of source port number scope, then can only be type of data packet I, continue ratio
Relatively destination slogan scope and TOS (IPv4)/type of service (IPv6) and mask.Compare confirmation business number successively
The PF of correspondence whether is had according to the header of stream.
204, in the presence of the PF having correspondence, by the identification record of data stream corresponding for this PF to this business
In data stream.
In TFT processing procedure, first definition one stream identification dataflowId variable, by each solely
Vertical PF distributes a business datum traffic identifier dataflowId value, according to the matching principle of TFT, if
Business data flow finds the PF of correspondence in TFT, then this business data flow holds at corresponding private radio
Send in load, otherwise send on acquiescence radio bearer.Business datum flow structure
(servicePacketDataStruct) table 2 form it is defined as.
Table 2: the structural table of business data flow
Content |
Remarks |
dataflowId |
The mark of business data flow |
servicePacketData |
Business data flow |
Business data flow can use array representation, it would however also be possible to employ pointer mode represents.
205, this business data flow is sent on radio bearer corresponding to this PF.
206, in the presence of the PF not having correspondence, it is PF by the reference record in the header of this data stream
Parameter, forms the PF that first processing module oneself creates, and distributes one for this business data flow
Original stream identification.
207, because there is no the PF of correspondence, so described business data flow being sent in the carrying of acquiescence
It is transmitted.
In the embodiment of the present invention, the second processing module can be understood as the head of vigorousness to the process of data stream
The process of compression (ROHC, Robust Header Compression), is carried out specifically referring next to Fig. 3
Bright:
301, the second processing module receives the business data flow with stream identification.
302, judge whether are described stream identification and gap marker (CID, Channel identification)
There are mapping relations.
The corresponding ROHC entity of each CID.
303, when stream identification and gap marker exist mapping relations, by described with stream identification
Business data flow is pushed to ROHC entity corresponding for described CID and is compressed.
304, when stream identification does not exists mapping relations with gap marker, a new ROHC is created
Entity, and be this newly created ROHC entity one new CID of distribution.
305, association storage stream identification and this newly assigned CID.
306, the described business data flow with stream identification is pushed to this newly created ROHC entity
In be compressed.
From use above scene embodiment, can clearly draw, carry out a business data flow identification
After mark, stream identification is directly used to distinguish different business data flows in other modules, thus
Improve the efficiency of Data Stream Processing.
In order to understand this invention of explanation application in the actual communications field, will be exemplified below this invention
Use in mobile device.
The embodiment of the present invention is with the mobile device in Long Term Evolution (LTE, Long Term Evolution) system
In use as a example by illustrate, actually technical scheme is equally applicable to WCDMA
(WCDMA, Wideband Code Division Multiple Access) system, global system for mobile telecommunications system
System (GSM, Global System of Mobile communication) and time-division code division synchronize multiple access
(TD-SCDMA, Time Division-Synchronous Code Division Multiple Access) is
System.
Refering to Fig. 4, between mobile device 20 and application apparatus 10 hardware use USB (universal serial bus) (USB,
Universal Serial BUS) interface,
TFT matching feature realizes in data flow control module 210, and data flow control module 210 is responsible for number
Interface communication between applying according to path and protocol stack and agreement, it is achieved TFT to the coupling of business datum and
Corresponding EBI value is searched, and implements function as follows: data flow control module 210 receives USB interface and sends out
The uplink business data message sent, finds the external bus interface of correspondence by the coupling of TFT module 2101
(EBI, External Bus Interface), sends uplink business data message to RAB pipe
Reason (RABM, Radio Acess Bearer Mangement) module 220;RABM module 220 receives
Business datum message after the match is successful through TFT module 2101 in data flow control module 210,
And Data Radio Bearer (DRB, the Data of its correspondence is found according to the EBI value of business datum message distribution
Radio Bearer)。
For with the TFT module 2101 processing procedure to business data flow, one PF list of network configuration,
Each PF reference record is s_PF_param structure.Simultaneously defined in the TFT module of mobile device
TFT parameter list a_TFT_list, a_TFT_list are by s_PF_param and a dataflowId parameter
The array of composition.
It is as follows that this invention citing in LTE mobile device realizes flow process:
First step: from the business data flow of application apparatus 10, by USB interface, be sent to data
Flow control module 210, the stream identification of in the future self-application equipment 10 in data flow control module 210
For the structure pointer of p_servicePacketData, this pointer is servicePacketDataStruct type
Pointer.
Second step: in data flow control module 210, first calls TFT functions of modules, at TFT
Data stream head in the servicePacketData business datum in module, p_servicePacketData pointed to
Compare with the s_PF_param in a_TFT_list array, if in comparison procedure, find
ServicePacketData data stream head has the s_PF_param of correspondence at a_TFT_list, then TFT module is straight
Meet the dataflowId being assigned in p_servicePacketData by the dataflowId in a_TFT_list.
Further, at data stream header and the a_TFT_list of servicePacketData business datum
During s_PF_param in array compares, the most omparison purpose address and subnet mask, then
Relatively protocol number (IPv4)/next stem (IPv6), if not this content in packet header, is then packet
Type-iii form, according to the more remaining TOS of type of data packet III (IPv4)/type of service (IPv6)
With mask and stream label (IPv6);If there is protocol number (IPv4)/next stem (IPv6), then reference source
The content of range of port number, without this content, is then type of data packet II form, packet class
Type II form, continues to compare IPSec SPI and TOS (IPv4)/type of service (IPv6) and mask;If
The content of source port number scope, then can only be type of data packet I, continue omparison purpose range of port number and
TOS (IPv4)/type of service (IPv6) and mask.Compare successively in confirmation p_servicePacketData
Whether servicePacketData exists the record of correspondence at a_TFT_list.
In the comparison procedure of this step, the servicePacketData in p_servicePacketData exists
A_TFT_list does not has the record of correspondence, according to the data stream header in servicePacketData, increases
Add mono-record of a_TFT_list, s_PF_param records this traffic flow information, and distributes one
Original dataflowId value.
In this step, data flow control module 210 will form a complete p_servicePacketData
Data stream is sent to RABM module 220, RABM module 220 be again forwarded to the packet count of correspondence
According to converging in (PDCP, Packet Data Convergence Protocol) module 230.
Third step: in PDCP module 230, saves a record in ROHC module 2301
The structure of dataflowId and ROHC CID, this structure is defined as: a_TFTandRohcStreamId.
The corresponding ROHC entity of the most each ROHC CID.
PDCP module 230 receives after RABM module 220 data stream, first basis
DataflowId in p_servicePacketData searches in a_TFTandRohcStreamId array, looks into
See and whether there is the ROHC entity creating correspondence for this business data flow.
If in search procedure, it is corresponding that ROHC module 2301 have found p_servicePacketData
ROHC entity, then p_servicePacketData is directly sent to correspondence by ROHC module 2301
In ROHC entity.
If in search procedure, ROHC module 2301 does not find p_servicePacketData corresponding
ROHC entity, then increase a new record at a_TFTandRohcStreamId, in this record
DataflowId is from the dataflowId of p_servicePacketData, and additionally ROHC module 2301 is by root
Distribute a untapped CID value according to ROHC agreement, and the ROHC creating a new data stream is real
P_servicePacketData data are finally sent in newly created ROHC entity by body.
In ROHC entity, ROHC module need not in the identification process carrying out a secondary data stream, other
Process then identical with ROHC protocol processes.
The technical scheme that the present invention provides may be used for any needs and supports that communicating of TFT with ROHC function is real
In body, this communication entity can be the network equipment, it is also possible to be mobile communication terminal, it is also possible to be in equipment
A device.
Refering to Fig. 5, an embodiment of the Data Stream Processing equipment that the embodiment of the present invention provides includes: at first
Reason module 400 and the second processing module 410;
Described first processing module 400, is used for receiving business data flow, and is the distribution of described business data flow
Stream identification, and send the business data flow with described stream identification to the second processing module;
Described second processing module 410, for receiving the described business datum with described stream identification
After stream, determine the head compression ROHC of vigorousness corresponding to described stream identification according to described stream identification
Entity, and be pushed in described ROHC entity enter by the described business data flow with described stream identification
Row ROHC compresses.
In the embodiment of the present invention, described first processing module 400 receives business data flow, and is described business
Data stream distribution stream identification, and send the business number with described stream identification to the second processing module
According to stream;
After described second processing module 410 receives the described business data flow with described stream identification,
The head compression ROHC entity of vigorousness corresponding to described stream identification is determined according to described stream identification,
And be pushed in described ROHC entity carry out by the described business data flow with described stream identification
ROHC compresses.Handling process each with prior art will carry out compared with the comparison of multiple byte, this
The equipment that bright embodiment provides is by after carrying out a business data flow identification marking, in other modules
Directly use stream identification to distinguish different business data flows, thus improve the effect of Data Stream Processing
Rate.
On the basis of the embodiment that above-mentioned Fig. 5 is corresponding, refering to Fig. 6, the equipment that the embodiment of the present invention provides
In another embodiment, described first processing module 400 includes:
Comparing unit 4001, for by the header in described business data flow and the parameter of packet filter PF
Compare;
First allocation unit 4002, for described comparing unit 4001 compare with in described business data flow
Header match PF time, stream identification corresponding for described PF is distributed to described business data flow;
First creating unit 4003, for described comparing unit do not compare with in described business data flow
During the PF that header matches, it is new PF ginseng by the reference record in the header of described business data flow
Number, and corresponding described new PF parameter, create a new PF;
Described first allocation unit 4002, is additionally operable to create described new PF in described first creating unit 4003
After, distribute an original business datum traffic identifier for described business data flow.
On the basis of the embodiment that above-mentioned Fig. 5 or Fig. 6 is corresponding, refering to Fig. 7, the embodiment of the present invention provides
In another embodiment of equipment, described second processing module 410 includes:
First searches unit 4101, for according to described stream identification, from the stream identification of pre-stored with
The corresponding relation of gap marker CID is searched ROHC entity corresponding for described CID;
First pushes compression unit 4102, finds corresponding described number for searching unit 4101 described first
During according to the ROHC entity of traffic identifier, the described business data flow with described stream identification is pushed to institute
State and ROHC entity carries out ROHC compression.
On the basis of the embodiment that above-mentioned Fig. 5 or Fig. 6 is corresponding, refering to Fig. 8, the embodiment of the present invention provides
In another embodiment of equipment, described second processing module 410 includes:
Second searches unit 4103, for according to described stream identification, from the stream identification of pre-stored with
The corresponding relation of gap marker CID is searched ROHC entity corresponding for described CID;
Second creating unit 4104, does not finds corresponding described data for searching unit 4103 described second
During the ROHC entity of traffic identifier, create a new ROHC entity;
Second pushes compression unit 4105, for being pushed away by the described business data flow with described stream identification
Deliver to the ROHC entity that described second creating unit 4104 is newly created carries out ROHC compression.
On the basis of the embodiment that above-mentioned Fig. 8 is corresponding, refering to Fig. 9, the equipment that the embodiment of the present invention provides
In another embodiment, described second processing module 410 also includes:
Second allocation unit 4106, for dividing for the ROHC entity that described second creating unit 4104 is newly created
Join a gap marker CID;
Association memory element 4107, stores described stream identification and described second allocation unit for correspondence
The CID of 4106 distribution.
The Data Stream Processing equipment that the multiple embodiment of the present invention provides, can be carried out a business data flow and knows
Not Biao Shi after, directly use stream identification to distinguish different business data flows in other modules, from
And improve the efficiency of Data Stream Processing.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment
Suddenly the program that can be by completes to instruct relevant hardware, and this program can be stored in a computer-readable
In storage medium, storage medium may include that ROM, RAM, disk or CD etc..
The method of the Data Stream Processing provided the embodiment of the present invention above and equipment have carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, above enforcement
The explanation of example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for this area
Those skilled in the art, according to the thought of the present invention, the most all can change
Part, in sum, this specification content should not be construed as limitation of the present invention.