CN103563328A - Data flow distribution method and device - Google Patents

Data flow distribution method and device Download PDF

Info

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
data packet
packets
protocol type
interface
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
Application number
CN201180070893.1A
Other languages
Chinese (zh)
Other versions
CN103563328B (en
Inventor
刘建军
杨宾和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103563328A publication Critical patent/CN103563328A/en
Application granted granted Critical
Publication of CN103563328B publication Critical patent/CN103563328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种数据分流方法和装置。获取IP数据包的应用协议类型;对IP数据包的第一路由信息与存储的第一路由信息分流表进行第一路由匹配;在匹配失败时根据IP数据包的应用协议类型查询分流策略表,获取对应的目标分流接口;向目标分流接口传送IP数据包。采用本发明提供的数据分流方法和装置,能够提高数据分流的处理效率。

Figure 201180070893

The invention provides a data distribution method and device. Obtain the application protocol type of the IP data packet; carry out the first route matching to the first routing information of the IP data packet and the stored first routing information distribution table; when the matching fails, query the distribution strategy table according to the application protocol type of the IP data packet, Obtain the corresponding target distribution interface; transmit the IP data packet to the target distribution interface. By adopting the data distribution method and device provided by the present invention, the processing efficiency of data distribution can be improved.

Figure 201180070893

Description

Data flow distribution method and device
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)

权 利 要求 Rights request 1、 一种数据分流方法, 其特征在于, 包括: 1. A data distribution method, comprising: 获取网际协议 IP数据包的应用协议类型; Obtain the application protocol type of the Internet Protocol IP packet; 对所述 IP数据包的第一路由信息与存储的第一路由信息分流表进行第一 路由匹配, 所述第一路由信息分流表用于存储第一路由信息与目标分流接口 的对应关系; performing first route matching on the first routing information of the IP data packet and the stored first routing information distribution table, where the first routing information distribution table is used to store the correspondence between the first routing information and the target distribution interface; 如果匹配失败, 根据所述 IP数据包的应用协议类型查询存储的分流策略 表, 获取所述 IP数据包对应的目标分流接口, 所述分流策略表用于存储应用 协议类型与目标分流接口的对应关系; If the matching fails, query the stored offload policy table according to the application protocol type of the IP data packet, and obtain the target offload interface corresponding to the IP data packet, and the offload policy table is used to store the correspondence between the application protocol type and the target offload interface relation; 向所述目标分流接口传送所述 IP数据包。 Transmitting the IP data packet to the target distribution interface. 2、 根据权利要求 1所述的方法, 其特征在于, 所述对所述 IP数据包的 第一路由信息与存储的第一路由信息分流表进行第一路由匹配之后,还包括: 如果匹配成功, 获取所述第一路由信息分流表中所述 IP数据包对应的目 标分流接口。2. The method according to claim 1, characterized in that, after performing the first route matching on the first routing information of the IP data packet and the stored first routing information distribution table, further comprising: if the matching is successful , acquiring a target distribution interface corresponding to the IP data packet in the first routing information distribution table. 3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取 IP数据包 的应用协议类型包括:3. The method according to claim 1 or 2, wherein the type of the application protocol for obtaining the IP data packet includes: 对获取的所述 IP数据包进行深度包检测 DPI识别, 获取所述 IP数据包 的应用协议类型; 或, Perform deep packet inspection DPI identification on the obtained IP data packet, and obtain the application protocol type of the IP data packet; or, 对获取的所述 IP数据包的第二路由信息与存储的已识别应用服务表进行 第二路由匹配, 获取 IP数据包的应用协议类型。 Perform second route matching on the obtained second routing information of the IP data packet and the stored identified application service table, and obtain the application protocol type of the IP data packet. 4、 根据权利要求 3所述的方法, 其特征在于, 所述对获取的 IP数据包 进行 DPI识别之后包括:4. The method according to claim 3, characterized in that, after the DPI identification of the acquired IP data packet includes: 根据 DPI识别获取的 IP数据包的应用协议类型, 更新存储的已识别应用 服务表。 According to the application protocol type of the acquired IP data packet identified by the DPI, the stored identified application service table is updated. 5、 根据权利要求 1至 4中任意一项所述的方法, 其特征在于, 所述根据 所述 IP数据包的应用协议类型查询存储的分流策略表, 获取所述 IP数据包 对应的目标分流接口之后, 还包括:5. The method according to any one of claims 1 to 4, characterized in that, according to the application protocol type of the IP data packet, the stored distribution policy table is queried, and the target distribution corresponding to the IP data packet is obtained After the interface, also include: 根据所述 IP数据包的第一路由信息与所述目标分流接口的对应关系, 更 新所述第一路由信息分流表。 The first routing information distribution table is updated according to the corresponding relationship between the first routing information of the IP data packet and the target distribution interface. 6、 一种数据分流装置, 其特征在于, 包括: 应用协议类型获取单元, 用于获取网际协议 IP数据包的应用协议类型; 接口确定单元, 用于对所述 IP数据包的第一路由信息与存储的第一路由 信息分流表进行第一路由匹配; 如果匹配失败, 根据所述 IP数据包的应用协 议类型查询存储的分流策略表, 获取所述 IP数据包对应的目标分流接口; 传送单元, 用于向所述目标分流接口传送所述 IP数据包。6. A data distribution device, comprising: An application protocol type obtaining unit, configured to obtain the application protocol type of the Internet Protocol IP data packet; an interface determining unit, configured to perform first route matching on the first routing information of the IP data packet and the stored first routing information distribution table If the matching fails, query the stored distribution policy table according to the application protocol type of the IP data packet, and obtain the target distribution interface corresponding to the IP data packet; a transmission unit, configured to transmit the IP data to the target distribution interface Bag. 7、 根据权利要求 6所述的装置, 其特征在于,7. The device according to claim 6, characterized in that, 所述接口确定单元还用于在匹配成功时, 获取所述第一路由信息分流表 中所述 IP数据包对应的目标分流接口。 The interface determination unit is further configured to obtain a target distribution interface corresponding to the IP data packet in the first routing information distribution table when the matching is successful. 8、 根据权利要求 6或 7所述的装置, 其特征在于, 所述应用协议类型获 取单元包括:8. The device according to claim 6 or 7, wherein the application protocol type acquiring unit comprises: DPI识别子单元, 用于对获取的 IP数据包进行深度包检测 DPI识别, 获 取所述 IP数据包的应用协议类型; 和 /或, The DPI identification subunit is used to perform deep packet inspection DPI identification on the obtained IP data packet, and obtain the application protocol type of the IP data packet; and/or, 第二路由匹配子单元, 用于对获取的所述 IP数据包的第二路由信息与存 储的已识别应用服务表进行第二路由匹配, 获取 IP数据包的应用协议类型。 The second route matching subunit is configured to perform second route matching on the obtained second route information of the IP data packet and the stored identified application service table, and obtain the application protocol type of the IP data packet. 9、 根据权利要求 8所述的装置, 其特征在于,9. The device according to claim 8, characterized in that, 所述 DPI识别子单元还用于根据 DPI识别获取的 IP数据包的应用协议类 型, 更新存储的已识别应用服务表。 The DPI identification subunit is also used to update the stored identified application service table according to the application protocol type of the IP data packet acquired through DPI identification. 10、 根据权利要求 6至 9中任意一项所述的装置, 其特征在于, 所述接口确定单元还用于根据所述 IP数据包的第一路由信息与所述目标 分流接口的对应关系, 更新所述第一路由信息分流表。10. The device according to any one of claims 6 to 9, wherein the interface determining unit is further configured to, according to the corresponding relationship between the first routing information of the IP data packet and the target distribution interface, Updating the first routing information distribution table.
CN201180070893.1A 2011-12-21 2011-12-21 Data distribution method and device Active CN103563328B (en)

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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112953841A (en) * 2021-02-20 2021-06-11 杭州迪普信息技术有限公司 Message distribution method and system
CN116016822A (en) * 2022-12-12 2023-04-25 天翼数字生活科技有限公司 Monitoring equipment data storage method and device, storage medium and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729602B (en) * 2017-10-31 2021-03-16 中国移动通信有限公司研究院 A link data processing method, device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838616A (en) * 2006-04-25 2006-09-27 中国移动通信集团公司 Media stream distribution system and distribution method
CN101854663A (en) * 2010-04-30 2010-10-06 华为技术有限公司 Data transmission device, 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838616A (en) * 2006-04-25 2006-09-27 中国移动通信集团公司 Media stream distribution system and distribution 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 device, method and communication system
CN102075566A (en) * 2010-12-24 2011-05-25 华为技术有限公司 Business shunting processing method, communication equipment and network system

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN116016822A (en) * 2022-12-12 2023-04-25 天翼数字生活科技有限公司 Monitoring equipment data storage method and device, storage medium and equipment

Also Published As

Publication number Publication date
WO2013091191A1 (en) 2013-06-27
CN103563328B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN107948076B (en) Method and device for forwarding message
CN103125141B (en) The polymerization of mobile broadband network interface
WO2017113238A1 (en) Method for establishing routing table, electronic device and network
JP2010518759A5 (en)
CN111866110A (en) An industrial equipment communication method and a 5G gateway
CN106899500B (en) Message processing method and device for cross-virtual extensible local area network
CN107147655A (en) A network dual protocol stack parallel processing model and its processing method
CN106412996B (en) The method and device to E-Packet
CN105009529A (en) Method for processing message and forwarder
CN105207909B (en) A method and network device for sending information
CN105376754A (en) Method for testing number of connectable wireless users of router
US10560284B2 (en) System and methods for mapping a network service path
CN103796191B (en) Method, device and the terminal of data are sent to user terminal
CN103563328A (en) Data flow distribution method and device
CN104518959B (en) A kind of method and device of communication between devices
MX2007001165A (en) Fast link establishment for network access.
CN101796769B (en) Ipv6 over ipv4 transition method and apparatus for improving performance of control server
CN103118083B (en) The method and apparatus that a kind of service message forwards
CN101741605B (en) Method, apparatus and system for processing message
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
CN107071900A (en) A kind of user facility positioning method and device
CN107872309A (en) A kind of adaptive approach, device and the equipment of Network Transfer Media and speed
CN110166375A (en) A kind of message forwarding method and device
CN105634789A (en) Method of collector for associating device and log collection system
CN1947455B (en) Supporting a network behind a wireless station

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