CN103563328A - Data flow distribution method and device - Google Patents
Data flow distribution method and device Download PDFInfo
- Publication number
- CN103563328A CN103563328A CN201180070893.1A CN201180070893A CN103563328A CN 103563328 A CN103563328 A CN 103563328A CN 201180070893 A CN201180070893 A CN 201180070893A CN 103563328 A CN103563328 A CN 103563328A
- Authority
- CN
- China
- Prior art keywords
- packets
- protocol type
- interface
- shunting
- application protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Provided are a data flow distribution method and device: obtaining the application protocol type of an IP data packet; performing first route matching between the first routing information of the IP data packet and a stored first routing information flow distribution table; when the matching fails, searching a flow distribution policy table according to the application protocol type of the IP data packet to obtain a corresponding target flow distribution interface; and transmitting the IP data packet to the target flow distribution interface. The data flow distribution method and device provided in the present invention can improve the data flow distribution efficiency.
Description
Data distribution method and device
The present embodiments relate to the communication technology, more particularly to a kind of data distribution method and device for technical field.Background technology
Dagger-axe is counted in traditional third generation affiliate1Under J (the 3rd Generation Partnership Project, abbreviation 3GPP) framework, wireless access network (Radio Access Network, abbreviation RAN) passes through Iu-PS interfaces and packet(Packet Switched, abbreviation PS) domain core net be connected.Due to the data service rapid growth in PS business, substantial amounts of transmission bandwidth is taken, it is therefore desirable to which data service is shunted.
At present, to user equipment (User Equipment, abbreviation UE) send data carry out eat dishes without rice or wine Layer2 protocol processing after, RAN gets UE Internet protocol (Internet Protocol, abbreviation IP) packet, it is then based on purpose IP address or former IP address and shunting judgement is carried out to the IP packets, determines to send the IP packets by Gi interfaces, or sent by Iu-PS interface, so as to realize data distribution.
Using above-mentioned existing data distribution method, shunting judgement is carried out based on purpose IP address or former IP address, need to safeguard substantial amounts of IP address and the corresponding relation in shunting direction, therefore need to be searched in above-mentioned substantial amounts of corresponding relation when shunting judgement, the treatment effeciency of data distribution is low.The content of the invention embodiment of the present invention provides a kind of data distribution method, to solve defect of the prior art, improves the treatment effeciency of data distribution.
The embodiment of the present invention also provides a kind of data distribution device, to solve defect of the prior art, improves the treatment effeciency of data distribution.
The embodiment of the present invention provides a kind of data distribution method, including:
Obtain the application protocol type of IP data bag;
The first matched routings are carried out by shunting information table with the first via of storage to the first routing iinformation of the IP packets, the first via is used to store the corresponding relation that the first routing iinformation shunts interface with target by shunting information table;If it fails to match, stored according to the application protocol type queries of the IP packets
Distributing strategy table, obtains the corresponding target shunting interface of the IP packets, and the distributing strategy table is used to store the corresponding relation that application protocol type shunts interface with target;
The IP packets are transmitted to target shunting interface.
The embodiment of the present invention also provides a kind of data distribution device, including:
Obtain the application protocol type of IP data bag;
The first matched routings are carried out by shunting information table with the first via of storage to the first routing iinformation of the IP packets, the first via is used to store the corresponding relation that the first routing iinformation shunts interface with target by shunting information table;If it fails to match, the distributing strategy table stored according to the application protocol type queries of the IP packets, the corresponding target shunting interface of the IP packets is obtained, the distributing strategy table is used to store the corresponding relation that application protocol type shunts interface with target;
The IP packets are transmitted to target shunting interface.
As shown from the above technical solution, the embodiment of the present invention obtains the application protocol type of IP packets, when to the first routing iinformation of IP packets and the first via by the first via that shunting information table is carried out by it fails to match when, according to the application protocol type queries distributing strategy table of IP packets, obtain target shunting interface, so as to carry out data distribution according to application protocol type, avoid and substantial amounts of IP address and the corresponding relation in shunting direction are safeguarded, improve the treatment effeciency of data distribution.Brief description of the drawings is in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the data distribution method of the embodiment of the present invention one;
Fig. 2 is the flow chart of the data distribution method of the embodiment of the present invention two;
Fig. 3 is the flow chart of the data distribution method of the embodiment of the present invention three;
Fig. 4 is the structural representation of the data distribution device of the embodiment of the present invention four;
Fig. 5 is the structural representation of the data distribution device of the embodiment of the present invention five;
Fig. 6 is the schematic network structure of the embodiment of the present invention six;
Fig. 7 is the signaling process figure of the data distribution method of the embodiment of the present invention six;
Fig. 8 is the schematic network structure of the embodiment of the present invention seven;
Fig. 9 is the signaling process figure of the data distribution method of the embodiment of the present invention seven.Embodiment is below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
Deep-packet detection is occurred in that in recent years(Deep Packet Inspection, abbreviation DPI) technology.DPI technologies are a kind of protocol identification technologies, on the basis of analysis packet header, add the analysis to application layer, are a kind of flow detections and control technology based on application layer.As IP packets, transmission control protocol (Transmission Control Protocol, abbreviation TCP) data flow or User Datagram Protocol (User Datagram Protocol, abbreviation UDP) data flow by the network equipment based on DPI technologies when, DPI engines are by the content of deep reading IP data pack loads come to open system interconnection(Open System Interconnect, abbreviation OSI) application layer message in 7 layer protocols recombinated, so as to identify the application layer protocol type of the IP packets.In embodiments of the present invention, a kind of data distribution method based on DPI technologies is proposed, specifically, this method is introduced by the following embodiment of the present invention one to the embodiment of the present invention four.
Fig. 1 is the flow chart of the data distribution method of the embodiment of the present invention one.The flow can carry out data distribution to the data for eating dishes without rice or wine to be transmitted by Radio Access Network.In actual applications, this method can be applied to uplink or downlink transfer according to actual needs.As shown in figure 1, this method includes procedure below.
Step 101:Obtain the application protocol type of IP packets.
In this step, application protocol type is the type of the upper layer application of agreement, for example:The application of the immediate communication tools such as QQ, the Internet transmission voice(Voice over Internet Protocol, abbreviation VoIP application, point-to-point transmission (Point to Point, abbreviation P2P) application, E-mail address(Abbreviation Email) application etc..
Step 102:The first matched routings are carried out by shunting information table to the first routing iinformation of IP packets and the first via of storage.
If the match is successful for step 102, step 103 is performed;If it fails to match for step 102, step 104 is performed.
In a step 102, the first routing iinformation can include following 5 information:Source IP address, source protocol port, purpose IP address, purpose protocol port, protocol type.Specifically, protocol type can include various protocols, and conventional protocol type includes:Transmission control protocol(Transmission Control Protocol, abbreviation TCP) and User Datagram Protocol (User Datagram Protocol, abbreviation UDP).So that protocol type is TCP as an example, then source protocol port is source tcp port, and purpose protocol port is purpose TCP port.So that protocol type is UDP as an example, then source protocol port is source udp port, and purpose protocol port is purpose udp port.Specifically, the first routing iinformation can use the five-tuple information of IP packets.
The first via is used for the protocol type and corresponding shunting interface for storing identified IP packets by shunting information table.Specifically, the first via includes 6 information by each single item record in shunting information table, i.e., above-mentioned first routing iinformation and target shunting interface, and 6 information are specially:Source IP address, source protocol port, purpose IP address, purpose protocol port, protocol type and target shunting interface, the corresponding relation of above-mentioned 6 information of first via each single item record storage in shunting information table.
In a step 102, the first matched routings are carried out by shunting information table to the first routing iinformation of IP packets and the first via of storage, be specifically as follows:According to the first routing iinformation of source IP address, source protocol port, purpose IP address, purpose protocol port and protocol type is included, above-mentioned 5 information is inquired about in shunting information table in the first via and above-mentioned 5 information identicals of IP packets are recorded.If the first via has above-mentioned 5 information identicals record with IP packets in shunting information table, the match is successful, if it does not exist, then it fails to match.After step 102, if the match is successful for step 102, step 103 is performed;If it fails to match for step 102, step 104 is performed.
Step 103:Obtain the corresponding target shunting interface of first via IP packets in shunting information table.In this step, in the case where the match is successful, there is the above-mentioned 5 information difference identical record with IP packets in shunting information table in the first via, therefore, from the first via by shunting information table in obtain and above-mentioned 5 information of IP packets difference identical record, the corresponding relation of interface is shunted according to the first routing iinformation in the record and target, interface is shunted as the corresponding target shunting interface of IP packets using the target in the record.After step 103, step 105 is performed.
Step 104:The distributing strategy table stored according to the application protocol type queries of the IP packets of acquisition, obtains the corresponding target shunting interface of IP packets.
In this step, in the case where it fails to match, the above-mentioned 5 information difference identical record with IP packets is not present in the first via in shunting information table, therefore, it is impossible to according to the first via by shunting information
Table obtains the corresponding target shunting interface of IP packets.In this case, it is possible to the distributing strategy table stored according to the application protocol type queries of IP packets.The corresponding relation that application protocol type shunts interface with target is stored in the distributing strategy table.For example, P2P application correspondence Gi interfaces, VoIP application correspondence Iu-PS interfaces etc..Inquiry and the application protocol type identical of IP packets are recorded in distributing strategy table, and recording corresponding target using this shunts interface as the corresponding target shunting interface of IP packets.After step 104, step 105 is performed.
Step 105:To target shunting interface transmission IP packets.
In this step, the target obtained according to above-mentioned steps 103 or step 104 shunts interface, and to target shunting interface transmission IP packets, IP packets are shunted so as to realize.
In the embodiment of the present invention one, obtain the application protocol type of IP packets, target shunting interface is obtained by shunting information table according to the first route information query first via of the IP packets, when the inquiry first via is failed by shunting information table, target shunting interface is obtained according to the application protocol type queries distributing strategy table of the IP packets, data distribution is carried out according to application protocol type so as to realize, due in shunting information table or distributing strategy table can rapidly find required result in the first via when shunting judgement, avoid and substantial amounts of IP address and the corresponding relation in shunting direction are safeguarded, so as to improve the treatment effeciency of data distribution.
Fig. 2 is the flow chart of the data distribution method of the embodiment of the present invention two.The flow carries out data distribution to the data of transmission.As shown in Fig. 2 this method includes following process.
Handling process starts, and step 201 is first carried out.
Step 201:Secondary route information to the IP packets of acquisition is matched with the application service of the identification table progress secondary route stored, obtains the application protocol type of IP packets.
In this step, secondary route information can include following 3 information:Destination server IP address, destination server port numbers, application protocol type.Specifically, secondary route information can be the application service that record has been recognized by DPI using IP data.Specifically, each single item record recognized in application service table includes 3 information, i.e., above-mentioned secondary route information, and 3 information are specially:Destination server IP address, destination server port numbers, application protocol type.In step 201, by carrying out secondary route matching, the application protocol type of IP packets is obtained.Secondary route matching detailed process be:Purpose IP address and destination interface address in IP packets, inquired about in having recognized application service table destination server IP address is identical with the purpose IP address in IP packets and destination server end
Slogan is recorded with the destination interface address identical in IP packets.Recorded if having recognized and there is the IP address of destination server in application service table with the purpose IP address and destination server port numbers in IP packets with the destination interface address identical in IP packets, then using the application protocol type in the record matched as the application protocol type of the IP packets, and judge that the match is successful;If having recognized that it fails to match in the absence of the IP address of destination server and the purpose IP address and destination server port numbers in IP packets and the destination interface address identical record in IP packets in application service table.
Recognize that application service table stores the history recognition result of application service, in the flow of data distribution, basis has recognized that application service table carries out secondary route matching to IP packets in step 201 first.After step 201, if the match is successful for step 201, the application protocol type of IP packets is then obtained according to the matching process of step 201, the DPI identification process of step 202 is not performed, and step 203 is directly performed, the first matched routings are carried out by shunting information table to the first routing iinformation of IP packets and the first via of storage.If it fails to match for step 201, step 202 is just performed, DPI identifications are carried out to the IP packets of acquisition, the application protocol type of IP packets is obtained by DPI identification process.Stored by the history recognition result to application service, the history recognition result to application service of first inquiry storage before DPI identifications, so as to avoid the application service to same type from repeating DPI identifications, the calculating process resource needed for DPI identifying processings and data distribution operation is saved, and the treatment effeciency of data distribution operation can be improved.
Step 202:DPI identifications are carried out to the IP packets of acquisition.
In this step, DPI identifications are carried out to the IP packets of acquisition, the purpose is to obtain the application protocol type of the IP packets.Wherein, application protocol type is the type of the upper layer application of agreement, for example:The application of the immediate communication tools such as QQ, VoIP applications, P2P applications, Email applications etc..First routing iinformation can include following 5 information:Source IP address, source protocol port, purpose IP address, purpose protocol port, protocol type.Specifically, protocol type can include various protocols, and conventional protocol type includes:TCP and UDP.So that protocol type is TCP as an example, then source protocol port is source tcp port, and purpose protocol port is purpose TCP port.So that protocol type is UDP as an example, then source protocol port is source udp port, and purpose protocol port is purpose udp port.
Step 203:Judge that above-mentioned DPI identifies whether successfully to obtain the application protocol type of IP packets.If not, performing step 204;If it is, performing step 206.
Step 204:Whether judge IP packets is TCP link setup data.
If it is, performing step 205.Otherwise step 208 is performed.
Step 205:Set up TCP agent service end and established the link using TCP agent service end with TCP Client.
After step 205, this handling process is terminated.After this handling process terminates, new handling process can be reopened once according to next IP packets.
Step 206:The application protocol type of the IP packets obtained is recognized according to DPI, the application service table of identification of storage is updated.
In this step, specifically, after the application protocol type of IP packets is identified, the result identified according to this, renewal is above-mentioned to have recognized application service table, and the corresponding relation of the secondary route information of the agreement is stored into the application service table of identification after renewal.
Step 207:Set up the incidence relation of TCP agent client and TCP agent client and service end.After step 207, step 208 is performed.
Step 208:The first matched routings are carried out by shunting information table to the first routing iinformation of IP packets and the first via of storage.
This step is identical with the detailed process of the step 102 of the embodiment of the present invention one, will not be repeated here.After step 208, if the match is successful for step 208, step 209 is performed;If it fails to match for step 208, step 210 is performed.
Step 209:Obtain the corresponding target shunting interface of first via IP packets in shunting information table.This step is identical with the detailed process of the step 103 of the embodiment of the present invention one, will not be repeated here.After step 209, step 212 is performed.
Step 210:The distributing strategy table stored according to the application protocol type queries of IP packets, is obtained
The corresponding target shunting interface of IP packets.
This step is identical with the detailed process of the step 104 of the embodiment of the present invention one, will not be repeated here.After step 210, step 211 is performed.
Step 211:The corresponding relation of interface is shunted according to IP packets and target, the first via is updated by shunting information table.
In this step, according to step 210 inquiry operation institute according to IP packets the first routing iinformation, and the target shunting interface that inquiry operation is obtained, the first via is updated by shunting information table, and the corresponding relation that the first routing iinformation of above-mentioned IP packets and target are shunted into interface is stored to the first via after renewal in shunting information table.
After step 211, step 212 is performed.
Step 212:To target shunting interface transmission IP packets.
This step is identical with the detailed process of the step 105 of the embodiment of the present invention one, will not be repeated here.After step 212, terminate this flow.After this handling process terminates, new handling process can be reopened once according to next IP packets.
In the embodiment of the present invention two, obtain the application protocol type of IP packets, the first matched routings are carried out by shunting information table with the first via to the first routing iinformation of IP packets, when the match is successful, target shunting interface is obtained by shunting information table according to the first via, when it fails to match, target shunting interface is obtained according to the application protocol type queries distributing strategy table of IP packets, realize and data distribution is carried out according to protocol type, so as to improve the treatment effeciency of data distribution.And it is possible to by way of knowing otherwise to IP packets progress DPI or inquiring about and recognized application service table, obtain the application protocol type of IP packets.By having recognized application service table log history protocol identification result, before DPI identifications are carried out to IP packets, first basis has recognized that application service table carries out secondary route matching to IP packets, then recognized for the IP packets that the match is successful without DPI, so as to avoid repeating the agreement of same type DPI identifications, calculating process resource is saved, so as to further improve the treatment effeciency of data distribution operation.
Fig. 3 is the flow chart of the data distribution method of the embodiment of the present invention three.In the embodiment of the present invention three, in the first direction of data transfer, using the embodiments of the present invention one or the technical scheme of the embodiment of the present invention two, data to the transmission of the direction carry out data distribution, also, opposite direction in a first direction, DPI identifications are carried out to the IP packets of opposite direction, to carry out the result of DPI identifications to the IP packets of opposite direction, the foundation operated as the data distribution of first direction.For example, first direction is up direction, then opposite direction is down direction.Specifically, the detailed process to the transmission data progress data distribution of first direction is identical with the process that the embodiments of the present invention one or the embodiment of the present invention two are recorded, and will not be repeated here;In the embodiment of the present invention three, only by the flow shown in Fig. 3, illustrate that the transmission data to opposite direction carry out DPI identifications to increase the detailed process of data distribution foundation.In actual applications, transmission data to first direction carry out the process of data distribution and unrestricted to the execution sequence of the process of the transmission data progress DPI identifications of opposite direction, it is possible to which the transmission data using each self-corresponding method simultaneously to first direction carry out data distribution and the transmission data progress DPI identifications to opposite direction.
It can specifically include procedure below as shown in figure 3, carrying out DPI to opposite direction transmission data and knowing method for distinguishing.
Step 301:Secondary route information and the knowledge of storage to the IP packets of the opposite direction of acquisition
Other application service table carries out secondary route matching.
In this step, the particular content of secondary route information is identical with the secondary route information described in the step 201 of the embodiment of the present invention two.Unlike step 201, in this step, operated using the secondary route information of the IP packets of opposite direction.Secondary route matching detailed process be:The secondary route information of server ip address, server end slogan, protocol name is included according to the IP packets of the opposite direction of acquisition, above-mentioned 3 information identicals record of the IP packets of above-mentioned 3 information and opposite direction is inquired about in application service table has been recognized.If having recognized the above-mentioned 3 information identicals record existed in application service table with the IP packets of opposite direction, the match is successful, if it does not exist, then it fails to match.
If the match is successful, step 305 is performed;If it fails to match, step 302 is performed.
Step 302:DPI identifications are carried out to the IP packets of the opposite direction of acquisition.
In this step, DPI identifications, the application protocol type of the IP packets the purpose is to obtain opposite direction are carried out to the IP packets of the opposite direction of acquisition.
Step 303:Judge that above-mentioned DPI identifies whether successfully to obtain the application protocol type of IP packets.If it is, performing step 304;Otherwise, step 305 is performed.
Step 304:The application service table of identification of storage is updated according to DPI recognition results.
After the step 304, step 305 is performed.
Step 305:Send the IP packets of opposite direction.
In the embodiment of the present invention three, DPI identifications are carried out by the IP packets to opposite direction, obtain the application protocol type of the IP packets of opposite direction, and the application service table of identification of storage is updated according to the application protocol type, so as to when being shunted to first direction data, it is capable of the DPI recognition results of the IP packets of reference pair opposite direction, therefore improves data distribution efficiency.And, before DPI identifications are carried out to the IP packets of opposite direction, first basis it can also recognize that application service table carries out secondary route matching to the IP packets of opposite direction, then recognized for the IP packets for the opposite direction that the match is successful without DPI, so as to avoid repeating the agreement of same type DPI identifications, carry out DPI identifications are saved and have calculated process resource, so as to further improve the treatment effeciency of data distribution operation.
Fig. 4 is the structural representation of the data distribution device of the embodiment of the present invention four.As shown in figure 4, the device at least includes:Application protocol type acquiring unit 41, interface determining unit 42 and delivery unit 43.
Wherein, application protocol type acquiring unit 41 is used for the application protocol type for obtaining IP packets.Interface determining unit 42 is used for the first routing iinformation of IP packets and the first via of storage by believing
Breath shunting table carries out the first matched routings.If it fails to match, the distributing strategy table that interface determining unit 42 is stored according to the application protocol type queries of IP packets obtains the corresponding target shunting interface of IP packets.On the basis of above-mentioned technical proposal, further, interface determining unit 42 is additionally operable to when the match is successful, obtains the corresponding target shunting interface of first via IP packets in shunting information table.
Delivery unit 43 is used for target shunting interface transmission IP packets.
In the embodiment of the present invention four, application protocol type acquiring unit obtains the application protocol type of IP packets, interface determining unit is according to the first route information query first via of IP packets by shunting information table or according to application protocol type queries distributing strategy table, obtain target shunting interface, data distribution is carried out according to protocol type so as to realize, due in shunting information table or distributing strategy table can rapidly find required result in the first via when shunting judgement, so as to improve the treatment effeciency of data distribution.
Fig. 5 is the structural representation of the data distribution device of the embodiment of the present invention five.As shown in figure 5, the device includes:Application protocol type acquiring unit 51, interface determining unit 52 and delivery unit 53, wherein, application protocol type acquiring unit 51 includes:DPI recognizes subelement 511, and/or secondary route coupling subelement 512.
Wherein, DPI recognizes that subelement 511 is used to carry out DPI identifications to the IP packets of acquisition, obtains
The application protocol type of IP packets.When recognizing subelement 511 for only including DPI in application protocol type acquiring unit 51, recognize that subelement 511 obtains the application protocol type of IP packets using DPI.
Secondary route coupling subelement 512 be used for IP packets secondary route information with storage the application service of identification table progress secondary route match, the application protocol type of the IP packets of acquisition.
When only including secondary route coupling subelement 512 in application protocol type acquiring unit 51, when the match is successful for secondary route coupling subelement 512, the triggering interface of secondary route coupling subelement 512 determining unit 52.
When application protocol type acquiring unit 51 includes DPI identification subelements 511 and secondary route coupling subelement 512, when the match is successful for secondary route coupling subelement 512, the triggering interface of secondary route coupling subelement 512 determining unit 52;If it fails to match for secondary route coupling subelement 512, the triggering DPI identification subelements 511 of secondary route coupling subelement 512 and interface determining unit 52.
Interface determining unit 52 is used to carry out the first matched routings by shunting information table to the first routing iinformation of IP packets and the first via of storage.If the match is successful, interface determining unit 52 obtains the corresponding target shunting interface of first via IP packets in shunting information table.If it fails to match, interface determining unit
The 52 distributing strategy tables stored according to the application protocol type queries of IP packets, obtain the corresponding target shunting interface of IP packets.
Delivery unit 53 is used for target shunting interface transmission IP packets.
On the basis of above-mentioned technical proposal, further, DPI identification subelements 511 are additionally operable to recognize the application protocol type of the IP packets obtained according to DPI, update the application service table of identification of storage.
On the basis of above-mentioned technical proposal, further, interface determining unit 52 is additionally operable to shunt the corresponding relation of interface with the target according to the first routing iinformation of IP packets, updates the first via by shunting information table.
On the basis of above-mentioned technical proposal, further, DPI identification subelements 511 are applied not only to carry out aforesaid operations to the IP packets of first direction, it is additionally operable to carry out DPI identifications to the IP packets of the opposite direction of the above-mentioned first direction of acquisition, obtain the application protocol type of the IP packets of opposite direction, the application protocol type of the IP packets of the opposite direction obtained is recognized according to DPI, renewal has recognized application service table.
Correspondingly, the application service of the identification table that secondary route coupling subelement 512 is additionally operable to the secondary route information of the IP packets of the opposite direction of acquisition with storing carries out secondary route and matched, if the match is successful, DPI identifications subelement 511 is controlled not carry out DPI identifications to the IP packets of opposite direction, if it fails to match, control DPI identification subelements 511 carry out DPI identifications to the IP packets of opposite direction.
In the embodiment of the present invention five, DPI identification subelements and/or secondary route coupling subelement in application protocol type acquiring unit obtain the application protocol type of IP packets, interface determining unit is according to the first route information query first via of IP packets by shunting information table or according to application protocol type queries distributing strategy table, obtain target shunting interface, realize and data distribution is carried out according to application protocol type, so as to improve the treatment effeciency of data distribution.And, before DPI recognizes that subelement carries out DPI identifications to IP packets, first basis has recognized that application service table carries out secondary route matching to IP packets to secondary route coupling subelement, then recognized for the IP packets that the match is successful without DPI, so as to avoid repeating the agreement of same type DPI identifications, calculating process resource is saved, so as to further improve the treatment effeciency of data distribution operation.And, DPI recognizes that subelement carries out DPI identifications to the IP packets of opposite direction, obtain the application protocol type of the IP packets of opposite direction, and the application service table of identification of storage is updated according to the application protocol type, so as to when being shunted to data, it is capable of the DPI recognition results of the IP packets of reference pair opposite direction, therefore improves data distribution efficiency.Also, before DPI recognizes that subelement carries out DPI identifications to the IP packets of opposite direction, secondary route matching
Matching, DPI is not used then to recognize that subelement carries out DPI identifications for the IP packets for the opposite direction that the match is successful, so as to further avoid repeating the agreement of same type DPI identifications, save carry out DPI identifications and calculated process resource, further improve the treatment effeciency of data distribution operation.
Fig. 6 is the schematic network structure of the embodiment of the present invention six.As shown in fig. 6, in the network structure, user equipment (User Equipment, abbreviation UE) passes sequentially through base station(Node B, abbreviation NB), radio network controller (Radio Network Controller, abbreviation RNC), GPRS serving GPRS support nodes (Serving GPRS Support Node, abbreviation SGSN) and Gateway GPRS Support Node(Gateway GPRS Support Node, abbreviation GGSN) it is connected to Internet.Wherein, NB is connected with RNC by Iub interface, and RNC is connected with SGSN by Iu interfaces, and SGSN is connected with GGSN by Gn interfaces, and GGSN is connected with Internet by Gi interfaces.Also, RNC is also directly connected to internet by Gi interfaces.
Fig. 7 is the signaling process figure of the data distribution method of the embodiment of the present invention six.Wherein, the data distribution device of the embodiments of the present invention four and embodiment five is set in the rnc, as shown in fig. 7, the data distribution method includes following process.
Step 701:UE transmits IP packets by NB to RNC.
Step 702:RNC carries out secondary route with the application service of the identification table stored to the secondary route information of IP packets and matched, and obtains the application protocol type of IP packets.
If the match is successful for step 702, step 704 is performed;If it fails to match for step 702, step 703 is performed.
Step 703:RNC carries out DPI identifications to the IP packets of acquisition.
If DPI is recognized successfully, the application protocol type of IP packets can be got by DPI identifications, step 706 is performed;If DPI recognition failures, step 704 is performed.
Step 704:RNC judges whether IP packets are TCP link setup data.
If it is, performing step 705;Otherwise, step 708 is performed.
Step 705:RNC is set up TCP agent service end and established the link using TCP agent service end with TCP Client.
After step 705, terminate this handling process.After this handling process terminates, new handling process can be reopened once according to next IP packets.
Step 706:RNC recognizes the application protocol type of the IP packets obtained according to DPI, and renewal is deposited
The application service table of identification of storage.
Step 707:RNC sets up the incidence relation of TCP agent client and TCP agent client and service end.
After step 707, step 708 is performed.
Step 708:RNC carries out the first matched routings to the first routing iinformation of IP packets and the first via of storage by shunting information table.
If the match is successful for step 708, step 709 is performed;If it fails to match for step 708, step 710 is performed.
Step 709:RNC obtains the first via and shunts interface by the corresponding target of the IP packets in shunting information table.
After step 709, step 712 is performed.
Step 710:RNC according to IP packets the distributing strategy table that stores of application protocol type queries, the corresponding target shunting interface of the IP packets of acquisition.
After step 710, step 711 is performed.
Step 711:RNC according to IP packets and target shunt the corresponding relation of interface, update the first via by shunting information table.
After step 711, step 712 is performed.
Step 712:RNC transmits IP packets to target shunting interface.
In step 712, if target shunting interface is Iu interfaces, RNC transmits IP packets by Iu interfaces to SGSN, if target shunting interface is Gi interfaces, RNC directly transmits IP packets by Gi interfaces to Internet.
Fig. 8 is the schematic network structure of the embodiment of the present invention seven.As shown in fig. 6, in the network structure, UE passes sequentially through NB, RNC, SGSN and GGSN are connected to Internet, or UE passes sequentially through NB, interchanger, Broadband Remote Access Server(Broadband Remote Access Server, abbreviation BRAS) and router be connected to Internet.Wherein, NB is connected with RNC by Iub interface, and RNC is connected with SGSN by Iu interfaces, and SGSN is connected with GGSN by gn interface, and GGSN is connected with Internet by Gi interfaces.Also, RNC is also directly connected to internet by Gi interfaces.
Fig. 9 is the signaling process figure of the data distribution method of the embodiment of the present invention seven.In the network shown in Fig. 8, wherein, the data distribution device of the embodiments of the present invention four and embodiment five is arranged on NB
In, as shown in figure 9, the data distribution method includes following process.
Step 901:UE transmits IP packets to NB.
Step 902:NB carries out secondary route with the application service of the identification table stored to the secondary route information of IP packets and matched, and obtains the application protocol type of IP packets.
If the match is successful for step 902, step 904 is performed;If it fails to match for step 902, step 903 is performed.
Step 903:NB carries out DPI identifications to the IP packets of acquisition.
If DPI is recognized successfully, the application protocol type of IP packets can be got by DPI identifications, step 906 is performed;If DPI recognition failures, step 904 is performed.
Step 904:NB judges whether IP packets are TCP link setup data.
If it is, performing step 905;Otherwise, step 908 is performed.
Step 905:NB is set up TCP agent service end and established the link using TCP agent service end with TCP Client.
After step 905, terminate this handling process.After this handling process terminates, new handling process can be reopened once according to next IP packets.
Step 906:NB recognizes the application protocol type of the IP packets obtained according to DPI, updates the application service table of identification of storage.
Step 907:NB sets up the incidence relation of TCP agent client and TCP agent client and service end.
After step 907, step 908 is performed.
Step 908:NB carries out the first matched routings to the first routing iinformation of IP packets and the first via of storage by shunting information table.
If the match is successful for step 908, step 909 is performed;If it fails to match for step 908, step 910 is performed.
Step 909:NB obtains the first via and shunts interface by the corresponding target of the IP packets in shunting information table.
After step 909, step 912 is performed.
Step 910:NB according to IP packets the distributing strategy table that stores of application protocol type queries, the corresponding target shunting interface of the IP packets of acquisition.
After step 910, step 911 is performed.
Step 911:NB according to IP packets and target shunt the corresponding relation of interface, update the first via by shunting information table.
After step 911, step 912 is performed.
Step 912:NB transmits IP packets to target shunting interface.
In step 912, if target shunting interface is Iub interface, NB by Iub interface to
RNC transmits IP packets, if target shunting interface is Gi interfaces, NB transmits IP packets by Gi interfaces to interchanger.
It should be noted that:For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, embodiment described in this description belongs to preferred embodiment, and involved action and the module not necessarily present invention are necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the part being described in detail in some embodiment, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can be completed by the related hardware of programmed instruction, foregoing program can be stored in a computer read/write memory medium, the program upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
- Claim1st, a kind of data distribution method, it is characterised in that including:Obtain the application protocol type of IP data bag;The first matched routings are carried out by shunting information table with the first via of storage to the first routing iinformation of the IP packets, the first via is used to store the corresponding relation that the first routing iinformation shunts interface with target by shunting information table;If it fails to match, the distributing strategy table stored according to the application protocol type queries of the IP packets, the corresponding target shunting interface of the IP packets is obtained, the distributing strategy table is used to store the corresponding relation that application protocol type shunts interface with target;The IP packets are transmitted to target shunting interface.2nd, according to the method described in claim 1, it is characterised in that first routing iinformation to the IP packets with storage the first via by shunting information table carry out the first matched routings after, in addition to:If the match is successful, the corresponding target shunting interface of first via IP packets described in shunting information table is obtained.3rd, method according to claim 1 or 2, it is characterised in that the application protocol type of the acquisition IP packets includes:Deep-packet detection DPI identifications are carried out to the IP packets of acquisition, the application protocol type of the IP packets is obtained;Or,Secondary route information to the IP packets of acquisition is matched with the application service of the identification table progress secondary route stored, obtains the application protocol type of IP packets.4th, method according to claim 3, it is characterised in that the IP packets of described pair of acquisition include after DPI identifications:The application protocol type of the IP packets obtained is recognized according to DPI, the application service table of identification of storage is updated.5th, method as claimed in any of claims 1 to 4, it is characterized in that, after the distributing strategy table stored according to the application protocol type queries of the IP packets, the corresponding target shunting interface of the acquisition IP packets, in addition to:The corresponding relation of interface is shunted according to the first routing iinformation of the IP packets and the target, the first via is updated by shunting information table.6th, a kind of data distribution device, it is characterised in that including: Application protocol type acquiring unit, the application protocol type for obtaining IP data bag;Interface determining unit, the first matched routings are carried out for the first routing iinformation to the IP packets and the first via of storage by shunting information table;If it fails to match, the distributing strategy table stored according to the application protocol type queries of the IP packets obtains the corresponding target shunting interface of the IP packets;Delivery unit, for transmitting the IP packets to target shunting interface.7th, device according to claim 6, it is characterised in thatThe interface determining unit is additionally operable to when the match is successful, obtains the corresponding target shunting interface of first via IP packets described in shunting information table.8th, the device according to claim 6 or 7, it is characterised in that the application protocol type acquiring unit includes:DPI recognizes subelement, carries out deep-packet detection DPI identifications for the IP packets to acquisition, obtains the application protocol type of the IP packets;And/or,Secondary route coupling subelement, the secondary route information for the IP packets to acquisition carries out secondary route with the application service of the identification table stored and matched, and obtains the application protocol type of IP packets.9th, device according to claim 8, it is characterised in thatThe DPI identifications subelement is additionally operable to recognize the application protocol type of the IP packets obtained according to DPI, updates the application service table of identification of storage.10th, the device according to any one in claim 6 to 9, it is characterized in that, the interface determining unit is additionally operable to shunt the corresponding relation of interface with the target according to the first routing iinformation of the IP packets, updates the first via by shunting information table.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/084350 WO2013091191A1 (en) | 2011-12-21 | 2011-12-21 | Data flow distribution method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103563328A true CN103563328A (en) | 2014-02-05 |
CN103563328B CN103563328B (en) | 2016-08-17 |
Family
ID=48667647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180070893.1A Active CN103563328B (en) | 2011-12-21 | 2011-12-21 | Data distribution method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103563328B (en) |
WO (1) | WO2013091191A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112953841A (en) * | 2021-02-20 | 2021-06-11 | 杭州迪普信息技术有限公司 | Message distribution method and system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729602B (en) * | 2017-10-31 | 2021-03-16 | 中国移动通信有限公司研究院 | Link data processing method and device and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838616A (en) * | 2006-04-25 | 2006-09-27 | 中国移动通信集团公司 | Media stream shunting system and method |
CN101854663A (en) * | 2010-04-30 | 2010-10-06 | 华为技术有限公司 | Data transmission equipment and method and communication system |
CN102075566A (en) * | 2010-12-24 | 2011-05-25 | 华为技术有限公司 | Business shunting processing method, communication equipment and network system |
US20110235595A1 (en) * | 2010-03-26 | 2011-09-29 | Juniper Networks, Inc. | Breakout gateway for mobile data traffic |
-
2011
- 2011-12-21 CN CN201180070893.1A patent/CN103563328B/en active Active
- 2011-12-21 WO PCT/CN2011/084350 patent/WO2013091191A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1838616A (en) * | 2006-04-25 | 2006-09-27 | 中国移动通信集团公司 | Media stream shunting system and method |
US20110235595A1 (en) * | 2010-03-26 | 2011-09-29 | Juniper Networks, Inc. | Breakout gateway for mobile data traffic |
CN101854663A (en) * | 2010-04-30 | 2010-10-06 | 华为技术有限公司 | Data transmission equipment and method and communication system |
CN102075566A (en) * | 2010-12-24 | 2011-05-25 | 华为技术有限公司 | Business shunting processing method, communication equipment and network system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112953841A (en) * | 2021-02-20 | 2021-06-11 | 杭州迪普信息技术有限公司 | Message distribution method and system |
CN112953841B (en) * | 2021-02-20 | 2022-05-27 | 杭州迪普信息技术有限公司 | Message distribution method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2013091191A1 (en) | 2013-06-27 |
CN103563328B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101215208B1 (en) | Outbound transmission of packet based on routing search key constructed from packet destination address and outbound interface | |
CN105072038B (en) | A kind of data message forwarding method and device | |
CN100589441C (en) | IP packet compression method for terminal-to-terminal link transmission | |
CN103856417B (en) | software defined network message forwarding method and system | |
WO2017113238A1 (en) | Method for establishing routing table, electronic device and network | |
CN106899500B (en) | Message processing method and device for cross-virtual extensible local area network | |
CN106412996B (en) | The method and device to E-Packet | |
CN101325554B (en) | Method for establishing route, forwarding chip and three-layer switchboard | |
CN107147655A (en) | A kind of network dual stack parallel process model and its processing method | |
CN103354509B (en) | The acquisition methods of a kind of link connection information and equipment | |
CN1925452A (en) | Data transferring system, method and network transferring apparatus | |
CN108353022A (en) | A kind of processing method of data message, apparatus and system | |
CN102420765A (en) | Method and device for determining physical link between switchboard and terminal | |
CN101707569A (en) | Method and device for processing NAT service message | |
CN107820262A (en) | Method for parameter configuration, apparatus and system | |
CN105009529A (en) | Method for processing message and forwarder | |
CN103796191B (en) | Method, device and the terminal of data are sent to user terminal | |
CN102201996B (en) | Method and equipment for forwarding message in network address translation (NAT) environment | |
US10560284B2 (en) | System and methods for mapping a network service path | |
CN103563328A (en) | Data flow distribution method and device | |
CN107409047A (en) | Encrypt the coordinate packet delivering of session | |
CN103118083A (en) | Method and device of transmitting service messages | |
CN107547618A (en) | A kind of session teardown method and apparatus | |
CN107071900A (en) | A kind of user facility positioning method and device | |
CN105429880B (en) | The network equipment and its method for carrying out routing forwarding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |