New! View global litigation for patent families

CN101789904A - Method and equipment for controlling flow - Google Patents

Method and equipment for controlling flow Download PDF

Info

Publication number
CN101789904A
CN101789904A CN 201010105722 CN201010105722A CN101789904A CN 101789904 A CN101789904 A CN 101789904A CN 201010105722 CN201010105722 CN 201010105722 CN 201010105722 A CN201010105722 A CN 201010105722A CN 101789904 A CN101789904 A CN 101789904A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
flow
equipment
application
routing
type
Prior art date
Application number
CN 201010105722
Other languages
Chinese (zh)
Inventor
张建伟
Original Assignee
杭州华三通信技术有限公司
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

Links

Abstract

The invention discloses a method and equipment for controlling flow. The method comprises the following steps that: the equipment receives flow and identifies the application type of the flow, and searches pre-configured routing control strategy according to the application type of the flow; if the routing control strategy corresponding to the application type of the flow is configured in the equipment configuration, the equipment transmits the flow according to the routing control strategy; and if the routing control strategy corresponding to the application type of the flow is not configured in the equipment configuration, the equipment searches a saved local routing table to transmit the flow. In the method, the flow control strategy based on the application type is configured in the routing equipment, and the routing equipment acquires the application type of the received the application type of the flow and forwards the flow according to the configured flow control strategy, so that load balance can be realized and key service can be ensured.

Description

流量控制的方法及设备 A method and apparatus for controlling the flow

技术领域 FIELD

[0001] 本发明涉及通信领域,尤其涉及一种流量控制的方法及设备。 [0001] The present invention relates to the field of communications, particularly to a method and apparatus for flow control.

背景技术 Background technique

[0002] 随着行业广域网建设和应用的普及,广域网上承载的业务量和业务种类也在不断增加,例如ERP(Enterprise Resource Planning,企业资源计划系统)、视频会议、 VOIP(Voice Over Internet Protocol,网络电话)、电子邮件业务等。 [0002] With the popularity of the construction industry and WAN applications, business volume and type of business carried over the WAN is also increasing, such as ERP (Enterprise Resource Planning, Enterprise Resource Planning system), video conferencing, VOIP (Voice Over Internet Protocol, VoIP), e-mail business. 由于广域网链路带宽有限且传递距离远,需要通过一种简捷有效的流量工程手段实现对这些业务流量在广域网上的传输进行控制,合理地规划网络资源保证关键业务,提高网络资源的利用率和避免拥塞。 Due to limited WAN link bandwidth and transfer distance, the need to achieve by means of a simple and effective means of traffic engineering traffic control in these transmission over the WAN, rational planning to ensure business-critical network resources, improve the utilization of network resources and avoid congestion.

[0003] 例如,在图1所示的组网中,R1、R2、R3是原有广域网互连设备,链路带宽为2M。 [0003] For example, in the network shown in Figure 1, R1, R2, R3 is the original wide area network interconnection device link bandwidth is 2M. 网络实现扩容后,新增了R4、 R5、 R6设备,新增广域链路带宽为8M,形成了典型的非对称链路的广域组网。 After expansion of networks, he added R4, R5, R6 equipment, new WAN link bandwidth is 8M, wide area networking typically formed of asymmetric links. 很多用户为了保障关键的视频业务,规划视频业务流在广域网上走8M链路、 而普通数据业务在广域上走2M链路。 Many users in order to protect critical video services, video traffic planning 8M go over the WAN link, while the ordinary data traffic on WAN links go 2M.

[0004] 现有技术中为了实现将不同业务类型的流量通过不同链路发送的目的,在广域网的每一跳路由器上直接配置策略路由,根据业务流量的源/目的IP(Internet Protocol, 因特网协议)地址等信息区分出业务流量的业务类型,再根据配置的策略把视频业务流和普通数据业务流分别通过不同的端口转发到相应的链路上去,以实现基于业务的基本的流量控制和负载均衡。 [0004] The prior art In order to achieve the purpose of transmitting different types of service through different links, PBR directly on each hop router WAN traffic source / destination IP (Internet Protocol, according to an Internet Protocol ) address and other information to distinguish the service type of traffic, in accordance with the configuration policy and then the normal video traffic and data traffic are forwarded to the appropriate link through a different port up to the basic flow control is based on traffic load and balanced.

[0005] 但是,这种配置方法需要在每一台广域网路由器上人工进行路由策略配置,工作量大,配置困难,且由于维护人员可能无法获知内部网络的业务地址分布和变动情况,从而无法进行配置维护。 [0005] However, this configuration requires each WAN routing is done manually on policy configuration, workload, difficult to configure, and because maintenance personnel may not know the internal network of distribution and business address changes, which can not be made in configuration maintenance.

发明内容 SUMMARY

[0006] 本发明提供了一种流量控制的方法及设备,以实现根据应用类型规划和配置业务流量路径,实现负载均衡并保障关键业务。 [0006] The present invention provides a method and apparatus for flow control, to realize the configuration according to the application and the type of traffic route planning, load balancing and security critical operations.

[0007] 本发明提供了一种流量控制的方法,应用于根据应用类型转发流量的设备,所述设备预先配置基于流量的应用类型的路由控制策略,该方法进一步包括: [0008] 所述设备接收流量并对所述流量的应用类型进行识别,根据所述流量的应用类型查找预先配置的路由控制策略; [0007] The present invention provides a method of flow control applied to traffic forwarding apparatus according to the application type, the preconfigured access control policy based on the type of traffic route, the method further comprising: [0008] the device receiving traffic and the traffic type of the application is identified, the routing control policy pre-configured according to the application type of the traffic;

[0009] 若所述设备配置有与所述流量的应用类型对应的路由控制策略,所述设备根据所述路由控制策略发送所述流量; [0009] If the device is configured with an application type corresponding to the routing of the traffic control policy, the policy control device transmits the routing according to the traffic;

[0010] 若所述设备没有配置与所述流量的应用类型对应的路由控制策略,所述设备查找 [0010] If the application type corresponding to the routing device is not arranged with the flow control policy, the device discovery

存储的本地路由表发送所述流量。 Local routing table stored in the transmission flow.

[0011] 所述设备识别所述流量的应用类型包括: [0011] Application of the device identifying the type of traffic comprises:

[0012] 所述设备从配置有所述路由控制策略的入接口接收到流量时,根据所述流量的特 [0012] When the device is disposed from the routing policy control interface receives incoming traffic based on the flow rate of the special

4征码或者所述流量的应用端口号识别所述流量的应用类型。 Identifying the application type of the application flow port 4 of the flow rate or an intrinsic code.

[0013] 所述路由控制策略具体为流量的应用类型、入接口以及出接口的对应关系。 [0013] The routing control policy for the particular type of application flow, the relationship between the interface and the corresponding interface. [0014] 所述设备识别接收到的流量的应用类型之前,还包括: [0014] Before the application type of the received traffic identification apparatus, further comprising:

[0015] 所述设备获取接收到的流量的五元组或七元组信息,根据所述五元组信息查找存储的流标记策略; [0015] The apparatus acquires traffic received five-tuple or seven-membered group information, flow labels find the policy stored in said quintuple information;

[0016] 如果存储有与所述五元组或七元组信息对应的流标记策略,所述设备根据对应的流标记策略进行流量转发; [0016] If the stream is stored to the tag policy or seven-membered quintuple information corresponding to the group, the device according to the corresponding traffic flow label forwarding policy;

[0017] 如果没有存储与所述五元组或七元组信息对应的流标记策略,所述设备执行识别所述流量的应用类型的步骤。 [0017] If there is no memory of the five-tuple or 7-tuple flow information corresponding to the tag policy, identifying the application type of execution the device flow rate step.

[0018] 所述设备根据所述路由控制策略发送所述流量、或者所述设备查找存储的路由转发表项发送所述流量之后,还包括: After [0018] The control apparatus according to the routing policy sending the traffic, or the search for a stored routing device transmitting the traffic forwarding entry, further comprising:

[0019] 所述设备生成与发送的流量对应的流标记策略,记录该流量的转发策略。 [0019] The transmitting device generates a flow rate corresponding to the flow label policy, forwarding the recorded traffic.

[0020] 本发明提供一种应用于上述权利要求所述方法的设备,该设备包括获取单元、配 [0020] The present invention provides a method applied to the above device claims, the apparatus includes an acquisition unit, with

置单元、识别单元与转发单元,其中 Home unit, the recognition unit and a forwarding unit, wherein

[0021] 所述获取单元,用于获取所述设备接收的流量; [0021] The acquisition unit configured to acquire traffic received from the apparatus;

[0022] 所述配置单元,用于配置基于流量的应用类型的路由控制策略; [0022] The configuration unit for configuring control policy-based routing of traffic types;

[0023] 所述识别单元,与所述获取单元和配置单元相连接,用于识别所述设备接收的流 [0023] The identification unit connected to the acquisition unit and a configuration unit, for identifying the device to receive the stream

量的应用类型,并根据所述流量的应用类型查找所述配置单元配置的路由控制策略; The amount of application types, and look for the configuration control unit is configured routing strategy according to the application type of the traffic;

[0024] 所述转发单元,与所述识别单元连接,用于当所述识别单元查找到与流量的应用 [0024] The forwarding unit, connected with the identification unit, configured to, when the flow rate to the application unit searches the identification

类型对应的基于流量应用类型的路由控制策略时,根据所述路由控制策略发送所述流量; Corresponding to the type of application type flow rate control strategy based routing, the routing control in accordance with the traffic policy sent;

当所述识别单元没有查找到与流量的应用类型对应的路由控制策略时,根据所述设备存储 When the identification unit does not find an application type corresponding to route traffic control strategy, according to the storage device

的本地路由表发送所述流量。 The local routing table to send the traffic.

[0025] 所述识别单元根据所述流量的特征码或者所述流量的应用端口号判断所述流量 [0025] The recognition unit according to port numbers or the flow pattern of the flow rate of the flow rate determination

的应用类型。 The type of application.

[0026] 该设备还包括: [0026] The apparatus further comprises:

[0027] 记录单元,与所述转发单元连接,用于所述转发单元发送流量后,生成与流量转发对应的流标记策略; [0027] The recording unit connected to the forwarding unit for forwarding unit after transmitting the traffic, generating traffic forwarding policy corresponding flow label;

[0028] 查找单元,与所述识别单元、记录单元和转发单元连接,用于获取所述设备接收的流量的五元组或七元组信息,根据所述五元组或七元组信息查找所述记录单元记录的流标记策略;如果查找到与所述流量对应的流标记策略,则根据所述流标记策略由所述转发单元发送所述流量;如果没有查找到与所述流量对应的流标记策略,则向所述识别单元发送所述流量。 [0028] The search unit, with the identification unit, a recording unit and a forwarding unit connected to the device for acquiring traffic received five-tuple or seven-membered group information, according to the group of the five membered or seven-membered group information to find labeling strategy stream recorded by said recording means; found if the flow stream corresponding labeling strategy, the unit transmits the flow rate by the flow label according to the forwarding policy; However, if no flow rate corresponding to the flow label policy, sending the traffic to the identification unit.

[0029] 该设备还包括: [0029] The apparatus further comprises:

[0030] 存储单元,与所述转发单元连接,用于存储所述设备的本地路由表,并根据所述转 [0030] The memory cells connected to the forwarding unit, the local routing table for storing the device, according to the transcription and

发单元对流量的转发信息更新存储的本地路由表。 Sending unit for forwarding traffic information stored in the local routing table updates.

[0031] 与现有技术相比,本发明至少具有以下优点: [0031] Compared with the prior art, the present invention has at least the following advantages:

[0032] 本发明中,设备配置基于应用类型的流量控制策略,获取接收到的流量的应用类型,并进一步查找配置的流量控制策略进行流量转发,实现根据流量的应用类型规划和配置业务流量路径,从而可以实现负载均衡并保障关键业务。 [0032] In the invention, the device configuration control application type of traffic based on the policy, obtaining application type traffic received, and further find the flow control strategy configured to perform traffic forwarding, to achieve the path according to the type of application to plan and configure traffic flow , which can achieve load balancing and protect business-critical. 附图说明 BRIEF DESCRIPTION

[0033] 图1是现有技术中广域网组网结构示意图; [0033] FIG. 1 is a schematic view of the network structure of the prior art wide area network;

[0034] 图2是本发明提供的流量控制的方法的流程示意图; [0034] FIG. 2 is a schematic flow diagram of the method of the present invention to provide flow control;

[0035] 图3是本发明应用场景提供的流量控制的方法的流程示意图; [0035] FIG. 3 is a schematic flow diagram of a method of flow control of the present invention provides an application scenario;

[0036] 图4是本发明提供的流量控制的设备的结构示意图。 [0036] FIG. 4 is a schematic diagram of the flow control apparatus provided by the invention.

具体实施方式 detailed description

[0037] 本发明的核心思想是:在设备中配置基于应用类型的流量控制策略,设备自动识 [0037] The core idea of ​​the present invention are: the configuration of the flow control policy based on the type of device, the device automatically know

别流量的应用类型,并根据流量的应用类型和配置的流量控制策略进行流量转发。 Do not use the type of traffic, and traffic control strategy to forward the application based on traffic type and configuration of traffic.

[0038] 本发明提供一种流量控制的方法,应用于根据流量的应用类型进行转发的设备, [0038] The present invention provides a method of flow control apparatus is applied to forward traffic based on application type,

所述设备预先配置基于流量的应用类型进行转发的路由控制策略,如图2所示,该方法包 The preconfigured routing forwarding traffic based on the application type of control strategy, shown in Figure 2, the method

括: include:

[0039] 步骤201,所述设备获取接收到的流量,并对所述流量的应用类型进行识别,根据所述流量的应用类型查找匹配的基于流量应用类型的路由控制策略; [0039] Step 201, the device acquires traffic received, and identifying the type of application traffic, to find application type flow control policy based routing according to the application matches the type of the traffic;

[0040] 步骤202,若设备上配置有与所述流量应用类型对应的路由控制策略,所述设备根据该路由控制策略转发所述流量; [0040] Step 202, when configured with the application corresponding to the type of traffic routing device control policy, the policy control device forwarding the traffic according to the route;

[0041] 步骤203,若设备上没有配置与所述流量应用类型对应的路由控制策略,所述设备查找存储的本地路由表按照正常的路由处理流程发送所述流量。 [0041] Step 203, if the application is not configured and the traffic type corresponding to the policy routing control device, the device searches the local routing table stored in accordance with normal routing processing flow of the traffic transmission.

[0042] 下面结合具体应用场景详细介绍本发明提供的流量控制的方法。 [0042] The following detailed description with reference to specific application scenario according to the present invention, the flow control method is provided. 其中的流量发送 Which sends traffic

设备以广域网路由设备为例,如图3所示,该方法包括以下步骤: WAN device to the apparatus as an example, shown in Figure 3, the method comprising the steps of:

[0043] 步骤301,用户事先在路由设备配置应用类型识别功能和路由控制策略。 [0043] Step 301, the user pre-configured routing device recognition application type and routing control strategy.

[0044] 在本发明应用场景中,用户在规划业务流量控制策略的时候,是根据流量的应用 [0044] In the present invention, the application scenario, when a user in the planning of traffic flow control strategy is applied in accordance with traffic

类型的分类来规划流量的转发路径,而不是根据IP地址、协议类型等来分类。 Type of classification to plan a path forward flow, rather than by IP address, protocol type classified. 特别是对于 Especially for

广域骨干网管理员来说,由于无法准确获取内网(例如与广域网连接的各局域网)业务流 WAN backbone network administrators, the inability to obtain an accurate network (eg LAN connection to each WAN) traffic flow

量的IP地址的分配信息,难以实现根据IP地址、协议类型等进行流量转发分类。 IP address allocation information of the amount, it is difficult to realize traffic forwarding classified according to the IP address, and protocol type.

[0045] 为了能够正确识别流量的应用类型,本发明中首先需要在路由器上增加应用识别 [0045] In order to correctly identify the type of application flow, the present invention is first necessary to increase the application identifies the router

功能模块,通过该应用识别功能模块快速完成本地转发业务流量的应用类型识别,区分出 Function module, by the application function module identification application quickly identify the type of local forwarding traffic, distinguish

ERP、视频会议、VOIP等常见应用层业务,并能够提供这些业务的2〜7层分析信息。 ERP, video conferencing, VOIP and other common application layer services, and be able to provide these services 2~7 layer analysis information. 具体 specific

的,路由器可以通过获取流量的特征码来识别流量的应用类型,或者路由器根据流量的应 The router may identify the type of application flow, the flow rate signature or a router by obtaining the flow rate should be based on

用端口号来判断流量的业务类型,如HTTP(Hiper Text Transfer Protocol,超文本传输协 Port number to determine the service type of traffic, such as HTTP (Hiper Text Transfer Protocol, Hypertext transfer protocol

议)业务流量的端口号是80,QQ(即时通信软件)的端口号是1080等。 Yee) traffic port number is 80, QQ (instant messaging software) port number is 1080 and so on.

[0046] 进一步地,用户还需在路由设备中配置基于流量应用类型的路由控制策略,根据 [0046] Further, the user needs to configure the routing device based on the application type of traffic route control policy, in accordance with

流量的应用类型的重要性和网络特征规划网络流量的转发路径,该路由控制策略具体为流 Forwarding path of the importance of the type of application traffic and network planning features of network traffic, routing the flow control strategy specifically

量的应用类型、入接口以及出接口的对应关系。 The amount of application type, the incoming interface and the outbound interface correspondence. 仍以图l所示的组网架构为例,假定路由器 Networking architecture shown in Figure l is still an example, assume that the router

中主要存在关键的视频会议业务流量和普通的ERP业务流量,用户规划视频业务流量在广 The main key to the existence of video conferencing traffic and general traffic ERP, users planning video traffic in Canton

域网上走8M链路,ERP数据走2M链路。 8M link to go online domain, ERP data go 2M link. 路由器上根据业务的应用类型配置流量转发路径, The router forwarding path configured according to the type of application traffic services,

如在RR2上配置路由控制策略,例如建立EthO/1/l端口、视频业务流量与S0/0/2端口的对 As RR2 disposed in the routing control strategies, such as establishing / l ports, video and traffic of S0 / 0/2 port EthO / 1

应关系,建立EthO/1/l端口、ERP数据与S0/0/1端口的对应关系,从Eth0/1/1端口上来的视频业务流量通过连接8M链路的SO/0/2端口转发、从EthO/1/1端口上来的ERP数据则通 Relationship should establish EthO / 1 / l ports, ERP data corresponding relationship between the S0 / 0/1 port, from Eth0 / 1/1 port up video traffic through the connection link 8M SO / 0/2 port forwarding, up from ethO / 1/1 through the data port ERP

过连接2M链路的SO/0/1端口转发,其它需要进行业务分流控制的节点路由器也进行类似 2M through the connecting link SO / 0/1 port forwarding, the need for other diversion service control node router also similar

配置,无需关注业务在内网的地址信息及使用的协议等问题。 Configuration without concern protocol address information and the use of other services including network.

[0047] 路由设备中配置的基于流量的应用类型的路由控制策略如表1所示: [0047] The routing device configuration application type of traffic routing based on the control policy shown in Table 1:

[0048] 表1 [0048] TABLE 1

[0049] ......................................... [0049] .........................................

[0050] Router_id :RR2 [0050] Router_id: RR2

[0051] Application Control In Out [0052] 1. Video EthO/1/1 SO/0/2 [0051] Application Control In Out [0052] 1. Video EthO / 1/1 SO / 0/2

[0053] 2. ERP EthO/1/1 S0/0/1 [0053] 2. ERP EthO / 1/1 S0 / 0/1

[0054] 3. BT. [0055] 4....... [0054] 3. BT. [0055] 4 .......

[0056] ......................................... [0056] .........................................

[0057] 为描述方便,表1中仅对应用类型为Video (视频)和ERP的流量,配置了相应的路由控制策略,对于其余没有配置路由控制策略的应用类型的流量,如BT(BitTorrent,比特流)类型的流量等,则可以根据需要,同样配置与应用类型对应的路由控制策略,或者在缺省配置路由控制策略的情况下,按照正常的路由转发流程查找路由表进行转发。 [0057] For ease of description, only the application type in Table 1, the flow rate Video (Video) and ERP, arranged corresponding routing control strategy, the control is not configured for the remainder of the application type of traffic policy, such as BT (BitTorrent, bitstream) flow type or the like, as needed, the same configuration and corresponding to the type of application route control strategy, or in a case where the default configuration control policy routing, forwarding process for forwarding the routing table according to the normal routing. [0058] 步骤302,路由设备接收到流量后,根据流量的五元组信息匹配设备中存储的流标记策略,如果匹配成功,则执行步骤303 ;否则,执行步骤304。 [0058] Step 302, after receiving the traffic routing device, according to the flow labeling strategy quintuple matching device stored in the flow, if the match is successful, step 303 is executed; otherwise, step 304 is performed.

[0059] 具体的,路由设备对某流量进行转发后,会记录该流量的转发策略,即流标记策略,其中包括用于区分该流量的五元组信息(源IP地址、目的IP地址、协议号、源端口、目的端口),当然也可以是其他标记信息,例如七元组信息。 [0059] Specifically, after a routing device for forwarding traffic, the forwarding policy records flow, i.e. flow labeling strategy, which includes information for distinguishing the flow quintuple (source IP address, destination IP address, protocol number, source port, destination port), of course, other tag information may be, for example, 7-tuple information. 对于五元组信息相同的后续流量, 路由设备直接根据流标记策略进行流量转发。 Subsequent traffic information for the same five-tuple routing device directly forwards the traffic flow label in accordance with policy. 如果路由设备没有存储与接收到的流量对应的流标记策略,则路由设备需要进一步对流量的应用类型进行识别,并根据该流量的应用类型对应的流量路由控制策略进行转发。 If the device is not stored in the routing the received traffic policy corresponding to the flow label, the routing device further required to identify the type of application traffic, and forwards the control strategy according to the type of application route traffic corresponding to traffic. 路由设备中配置基于流量应用类型的路由控制策略可以针对特定端口,此时,路由设备对于从该特定端口接收到的流量,可以根据路由控制策略进行流量转发。 Policy routing device arranged to control the flow rate may be based on the type of application route, this time, the routing device for receiving traffic from a specific port to which may be made for a particular traffic forwarding port according to the routing control strategy.

[0060] 步骤303,路由设备根据流标记策略进行流量转发。 [0060] Step 303, the routing device forwards traffic flow label in accordance with policy.

[0061] 步骤304,路由设备获取流量,并对获取流量的应用类型进行识别,将经识别的该流量的应用类型匹配事先配置的路由控制策略;如果匹配成功,执行步骤305 ;否则,执行步骤306。 [0061] Step 304, the routing device acquires traffic, and the types of traffic acquisition application identification, the application control policy routed traffic type matches the previously identified configuration; if the matching succeeds, step 305 is executed; otherwise, step 306.

[0062] 具体地,路由设备可以根据流量的特征码或者流量的应用端口号来识别流量的业务类型,如HTTP(Hiper Text Transfer Protocol,超文本传输协议)业务流量的端口号是80, QQ(即时通信软件)的端口号是1080等。 [0062] Specifically, the routing device may be identified based on application port number or signature on the traffic service type of traffic, such as HTTP (Hiper Text Transfer Protocol, Hypertext Transfer Protocol) port number of the traffic is 80, QQ ( instant messaging software) port number is 1080 and so on. 然后,路由设备查找表l所示的路由控制策略,如果路由设备中配置了该流量的应用类型对应的路由控制策略,则匹配成功;否则匹配失败。 Then, the routing device to the routing control strategy shown in Table l, if the application is configured routing device corresponding to the type of the traffic route control strategy, the matching is successful; otherwise, the match fails.

[0063] 步骤305,路由设备根据配置的基于流量应用类型的路由控制策略转发该流量,并记录对应的流标记策略。 [0063] Step 305, the routing device forwards the flow according to the traffic type of the application control policy-based routing configuration and flow label corresponding to the recording strategy.

[0064] 例如,如果路由设备获取该流量是Video流,则路由设备根据表1所示的基于流量应用类型的路由控制策略,生成出端口为SO/0/2的流量转发策略,将流量通过SO/0/2端口转发,并用五元组信息对此流进行标记,生成对应的流标记策略。 [0064] For example, if the routing device acquires the Video stream flow is, the routing control device according to the flow shown in Table 1 based on the application type of routing policy, the port generates a policy for forwarding traffic SO / 0/2 will flow through SO / 0/2 port forwarding, and use this five-tuple information flow marks, flow marks generate a corresponding policy. 后续符合标记条件的流无需再进行识别分析,直接根据流标记策略进行转发。 Meet the conditions of the subsequent mark recognition analysis no longer required flow, forward flow directly from the labeling strategy.

[0065] 步骤306,路由设备查找存储的本地路由表,根据该路由表获取下一跳路由及对应的出端口发送流量。 [0065] Step 306, the routing device stored in the local routing table lookup, traffic acquiring the port sends routing and next hop based on the corresponding routing table.

[0066] 例如,如果路由设备获取该流量是BT流且事先没有为该BT流量配置对应的基于流量应用类型的路由控制策略,则对该类BT流量进行正常的路由转发,即查找本地路由表进行转发,并对该流量进行五元组标记,生成流标记策略,后续匹配五元组信息的BT流不需要进行应用类型分析,直接根据流标记策略进行转发。 [0066] For example, if the routing device acquires the BT traffic flow is not configured in advance and traffic routing based on application type corresponding to the control policy, the type of the normal BT traffic routing and forwarding, i.e. the local routing table lookup for the BT traffic forwarding, and the traffic quintuple tag, generating a stream labeling strategy, subsequent to match the BT stream quintuple type of analysis does not require application, directly from the flow label forwarding policy.

[0067] 通过采用本发明提供的方法,在设备中配置基于应用类型的流量控制策略,获取 [0067] By using the method provided by the invention, in the device configuration application traffic type based on the control policy, obtaining

接收到的流量的应用类型,并进一步查找配置的流量控制策略进行流量转发,实现根据流 Application types of traffic received, and further configured to find the flow of traffic forwarding control strategy, implemented in accordance with the flow

量的应用类型规划和配置业务流量路径,从而可以实现负载均衡并保障关键业务。 The amount of the type of application traffic planning and configuration path, which can achieve load balancing and protect business-critical.

[0068] 本发明提供一种应用于上述流量控制方法的设备,如图4所示,包括获取单元11、 [0068] The present invention provides an apparatus applied to the above flow control method, shown in Figure 4, includes an acquisition unit 11,

查找单元12、记录单元13、转发单元14、识别单元15、配置单元16以及存储单元17,其中, Searching unit 12, recording unit 13, the forwarding unit 14, the recognition unit 15, configuration unit 16 and a storage unit 17, wherein,

[0069] 获取单元ll,与查找单元12连接,用于获取所述设备接收的流量; [0069] acquiring unit ll, connected to the search unit 12, configured to obtain traffic received from the apparatus;

[0070] 查找单元12,与收发单元11、记录单元13、转发单元14以及识别单元15连接,用 [0070] The search unit 12, the transceiving unit 11, a recording unit 13, the forwarding unit 14 and a recognition unit 15 is connected with

于接收收发单元11发送的流量,根据流量的五元组或七元组信息查找记录单元13记录的 Receiving traffic transmitted to the transceiver unit 11. The group of five yuan traffic or 7-tuple lookup information recording unit 13

与该流量对应的流标记策略,如果查找到与该流量对应的流标记策略,则根据该流标记策 Corresponding to the traffic flow labeling strategy, if the flow label to find strategies corresponding to the traffic, according to the flow label policy

略将流量向转发单元14发送;如果没有查找到与该流量对应的流标记策略,将流量向识别 Slightly to send traffic to the forwarding unit 14; However, if no flow label policy corresponding to the flow rate, the flow rate of the recognition

单元15发送; 15 transmitting unit;

[0071 ] 记录单元13,与查找单元12和转发单元14连接,用于转发单元14转发流量后,生成并记录与流量转发对应的流标记策略,向查找单元12提供记录的流标记策略;该流标记策略包括流量的五元组或七元组信息以及对应的流量转发信息; [0071] The recording unit 13, connected to the search unit 12 and the forwarding unit 14, the forwarding unit 14 forwards traffic for traffic generated and recorded with the corresponding flow label forwarding policy, the recording unit 12 to find the policy flow label; the flow label comprises a quintuple policy or seven-membered group information corresponding to the traffic flow and forwarding information;

[0072] 识别单元15,与查找单元12、配置单元16、存储单元17和转发单元14连接,用于识别流量的应用类型,根据流量的应用类型向配置单元16查询对应的路由控制策略,如果查询到与流量的应用类型对应的路由控制策略,则根据该路由控制策略向转发单元14发送流量;如果没有查询到与流量的应用类型对应的路由控制策略,则向存储单元17查询该单元存储的本地路由表,根据本地路由表向转发单元14发送流量; [0072] The identification means 15, 12, configuration unit 16, a storage unit 17 and the forwarding unit 14 is connected to the search unit, for identifying the application type of traffic, traffic to the application type configuration unit 16 controls the routing policy corresponding to the query, if query application type to a flow corresponding to the routing control strategy, the control sends traffic to the forwarding unit 14 policy according to the route; if no query application type to a flow corresponding to the routing control strategy, the query of the unit memory to the storage unit 17 the local routing table, sending traffic to the forwarding unit 14 according to the local routing table;

[0073] 配置单元16,与识别单元15连接,用于配置基于流量的应用类型的路由控制策略; [0073] The configuration unit 16, the recognition unit 15 is connected, for configuring the application control policy-based routing of traffic types;

[0074] 存储单元17,与识别单元15和转发单元14连接,用于存储设备的本地路由表,并根据转发单元14对流量的转发信息更新存储的本地路由表; [0074] The storage unit 17, the recognition unit 15 and the forwarding unit 14 is connected to the local routing table storage device, and updates the information stored in the local routing table according to the forwarding unit 14 forwards the traffic;

[0075] 转发单元14,与查找单元12、识别单元15和记录单元13连接,用于转发查找单元 [0075] The forwarding unit 14, 12, the recognition unit 15 and the recording unit 13 is connected to the searching unit searching unit configured to forward

12或者识别单元15发送的流量,并向记录单元13提供流量的转发信息。 The recognition unit 12 or the flow 15 transmitted to the recording unit 13 information forwarding traffic.

[0076] 通过采用本发明提供的设备,在路由设备中配置基于应用类型的流量控制策略, [0076] By using the apparatus provided by the invention, disposed in the routing device based on the application type of flow control strategy,

路由设备获取接收到的流量的应用类型,根据配置的流量控制策略进行流量转发,实现根 The routing device acquires the application type of the received traffic, traffic forwarding control strategy according to the flow configuration, to achieve root

据流量的应用类型规划和配置业务流量路径,实现负载均衡并保障关键业务。 According to the type of application flow of traffic route planning and configuration, load balancing and protect business-critical.

[0077] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助 [0077] By the above described embodiments, those skilled in the art may clearly understand that the present invention may be by means of

软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更 Software plus necessary universal hardware platform to achieve, of course, by the hardware, but the former is in many cases more

8佳的实施方式。 8 Best embodiment. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Based on such understanding, the technical solutions of the present invention in essence or the part contributing to the prior art may be embodied in a software product, which computer software product is stored in a storage medium and includes several instructions to enable a a computer device (may be a personal computer, a server, or network device) to execute the methods according to embodiments of the present invention.

[0078] 本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 [0078] Those skilled in the art will be appreciated the drawings are merely schematic diagram of a preferred embodiment, the modules or processes in the accompanying drawings are not necessarily embodiments of the present invention it is necessary.

[0079] 本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。 [0079] Those skilled in the art will be appreciated apparatus embodiment that the modules can be distributed in accordance with an embodiment of the apparatus of the embodiment may be performed according to the present embodiment which are different from one case or more devices. 上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Modules of the embodiments may be combined into one module, or split into multiple submodules. [0080] 上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。 Embodiment [0080] The present invention No. merely for description, the embodiments do not represent the merits embodiment.

[0081] 以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 Only a few [0081] The above disclosed specific embodiments of the present invention, however, the present invention is not limited thereto, anyone skilled in the art can think of variations shall fall within the scope of the present invention.

Claims (9)

  1. 一种流量控制的方法,应用于根据应用类型转发流量的设备,其特征在于,所述设备预先配置基于流量的应用类型的路由控制策略,该方法进一步包括:所述设备接收流量并对所述流量的应用类型进行识别,根据所述流量的应用类型查找预先配置的路由控制策略;若所述设备配置有与所述流量的应用类型对应的路由控制策略,所述设备根据所述路由控制策略发送所述流量;若所述设备没有配置与所述流量的应用类型对应的路由控制策略,所述设备查找存储的本地路由表发送所述流量。 A flow control method, applied to traffic forwarding apparatus according to the application type, wherein the preconfigured access control policy based on the type of traffic route, the method further comprising: receiving the device and the flow rate identifying the application type of traffic, the routing control policy pre-configured according to the application type of the traffic; if the device is configured with an application type corresponding to the routing of the flow control strategy, the control apparatus according to the routing policy transmitting said flow; if the device is not configured with an application type corresponding to the routing of the flow control policy, the device searches the local routing table storing the transmission traffic.
  2. 2. 如权利要求1所述的方法,其特征在于,所述设备识别所述流量的应用类型包括:所述设备从配置有所述路由控制策略的入接口接收到流量时,根据所述流量的特征码或者所述流量的应用端口号识别所述流量的应用类型。 2. The method according to claim 1, wherein identifying the application type of said flow apparatus comprising: when the device is disposed from the routing policy control interface receives incoming traffic according to the traffic identifying the application type of the application flow port numbers or the flow pattern.
  3. 3. 如权利要求1所述的方法,其特征在于,所述路由控制策略具体为流量的应用类型、入接口以及出接口的对应关系。 The method according to claim 1, wherein said routing control policy for the particular type of application flow, the relationship between the interface and the corresponding interface.
  4. 4. 如权利要求1-3中任一项所述的方法,其特征在于,所述设备识别接收到的流量的应用类型之前,还包括:所述设备获取接收到的流量的五元组或七元组信息,根据所述五元组信息查找存储的流标记策略;如果存储有与所述五元组或七元组信息对应的流标记策略,所述设备根据对应的流标记策略进行流量转发;如果没有存储与所述五元组或七元组信息对应的流标记策略,所述设备执行识别所述流量的应用类型的步骤。 4. The method according to any one of claims 1-3, characterized in that, prior to application of the device to identify the type of received traffic, further comprising: acquiring the device five yuan received traffic group or 7-tuple information, according to the quintuple information stored in the flow label lookup policy; is stored if the five-tuple or 7-tuple flow information corresponding to the tag policy, the device according to the traffic stream corresponding labeling strategy forwarding; if not stored with the quintuple or 7-tuple flow information corresponding to the tag policy, identifying the application type of flow rate device to perform the step.
  5. 5. 如权利要求4所述的方法,其特征在于,所述设备根据所述路由控制策略发送所述流量、或者所述设备查找存储的路由转发表项发送所述流量之后,还包括:所述设备生成与发送的流量对应的流标记策略,记录该流量的转发策略。 5. After the method as claimed in claim 4, wherein the control device transmits the traffic policy according to the route or routes stored in the lookup device sending the traffic forwarding entries, further comprising: the said transmission device generates traffic stream corresponding to the labeling strategy, the recording strategy forwarding traffic.
  6. 6. —种应用于权利要求1所述方法的设备,其特征在于,该设备包括获取单元、配置单元、识别单元与转发单元,其中所述获取单元,用于获取所述设备接收的流量;所述配置单元,用于配置基于流量的应用类型的路由控制策略;所述识别单元,与所述获取单元和配置单元相连接,用于识别所述设备接收的流量的应用类型,并根据所述流量的应用类型查找所述配置单元配置的路由控制策略;所述转发单元,与所述识别单元连接,用于当所述识别单元查找到与流量的应用类型对应的基于流量应用类型的路由控制策略时,根据所述路由控制策略发送所述流量;当所述识别单元没有查找到与流量的应用类型对应的路由控制策略时,根据所述设备存储的本地路由表发送所述流量。 6. - The device 1 is applied to seed method as claimed in claim, wherein the apparatus includes an acquisition unit, the configuration unit, the recognition unit and a forwarding unit, wherein the acquisition unit for acquiring traffic received by said apparatus; the configuration unit for configuring control policy routing based on traffic type; the identification unit connected to the acquisition unit and a configuration unit for identifying the application type of traffic received by the device, and in accordance with the Find application type of said flow cell configuration of the configuration of the routing control policy; said forwarding unit, connected with the identification unit, the unit searches for the route based on the traffic type of the application when the application identifies the type of the corresponding flow rate when the control strategy, according to the routing policy controlling the traffic transmission; when the identification unit does not find an application type corresponding to the routing of traffic policy control, the flow rate in accordance with the transmitting device stores the local routing table.
  7. 7. 如权利要求6所述的设备,其特征在于,所述识别单元根据所述流量的特征码或者所述流量的应用端口号判断所述流量的应用类型。 7. The apparatus according to claim 6, wherein said identification means in accordance with the type of application port numbers or the flow pattern of the flow rate of the flow rate determination.
  8. 8. 如权利要求6或7所述的设备,其特征在于,该设备还包括:记录单元,与所述转发单元连接,用于所述转发单元发送流量后,生成与流量转发对应的流标记策略;查找单元,与所述识别单元、记录单元和转发单元连接,用于获取所述设备接收的流量的五元组或七元组信息,根据所述五元组或七元组信息查找所述记录单元记录的流标记策略;如果查找到与所述流量对应的流标记策略,则根据所述流标记策略由所述转发单元发送所述流量;如果没有查找到与所述流量对应的流标记策略,则向所述识别单元发送所述流量。 8. The apparatus of claim 6 or claim 7, wherein the apparatus further comprises: a recording unit connected to the forwarding unit for forwarding unit after transmitting the traffic, to generate corresponding traffic forwarding flow label strategy; search unit, with the identification unit, a recording unit and a forwarding unit is connected, for obtaining pentad traffic received from the apparatus or seven-membered group information, to find the basis of the five-tuple or seven-membered group information flow mark recording unit of said policy; found if the flow label corresponding to the traffic policy, the policy in accordance with the flow label transmitting the traffic forwarded by the unit; if not found the flow stream corresponding to labeling strategy, sending the traffic to the identification unit.
  9. 9.如权利要求8所述的设备,其特征在于,该设备还包括:存储单元,与所述转发单元连接,用于存储所述设备的本地路由表,并根据所述转发单元对流量的转发信息更新存储的本地路由表。 9. The apparatus according to claim 8, wherein the apparatus further comprises: a storage unit and the forwarding unit is connected, the local routing table for storing the device, and according to the traffic forwarding unit forwarding information stored in the local routing table updates.
CN 201010105722 2010-02-04 2010-02-04 Method and equipment for controlling flow CN101789904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010105722 CN101789904A (en) 2010-02-04 2010-02-04 Method and equipment for controlling flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010105722 CN101789904A (en) 2010-02-04 2010-02-04 Method and equipment for controlling flow

Publications (1)

Publication Number Publication Date
CN101789904A true true CN101789904A (en) 2010-07-28

Family

ID=42532966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010105722 CN101789904A (en) 2010-02-04 2010-02-04 Method and equipment for controlling flow

Country Status (1)

Country Link
CN (1) CN101789904A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006242A (en) * 2010-12-24 2011-04-06 山石网科通信技术(北京)有限公司 Routing method of router and router
CN102594819A (en) * 2012-02-16 2012-07-18 深信服网络科技(深圳)有限公司 Method and device based on single parsing scanning
CN102594675A (en) * 2012-02-10 2012-07-18 北京星网锐捷网络技术有限公司 Traffic control system and method
CN103188169A (en) * 2011-12-30 2013-07-03 北京网康科技有限公司 Data flow guide method and data flow guide equipment based on application quality
CN103475626A (en) * 2012-06-07 2013-12-25 华为技术有限公司 Method, equipment and system used for resource requesting
CN103796246A (en) * 2012-10-31 2014-05-14 中兴通讯股份有限公司 Data distribution method, data distribution device and data distribution system
CN104009928A (en) * 2014-05-26 2014-08-27 深圳市共进电子股份有限公司 Method and device for limiting speed of data flow
WO2016127634A1 (en) * 2015-02-09 2016-08-18 中兴通讯股份有限公司 Service processing method, device and system for application program, and storage medium
WO2017063378A1 (en) * 2015-10-16 2017-04-20 华为技术有限公司 Route processing method, device and system
WO2017128790A1 (en) * 2016-01-26 2017-08-03 上海斐讯数据通信技术有限公司 Application bandwidth configuration method and controller based on software-defined networking

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006242A (en) * 2010-12-24 2011-04-06 山石网科通信技术(北京)有限公司 Routing method of router and router
CN103188169B (en) * 2011-12-30 2016-08-17 北京网康科技有限公司 Based on data quality application method and apparatus drainage
CN103188169A (en) * 2011-12-30 2013-07-03 北京网康科技有限公司 Data flow guide method and data flow guide equipment based on application quality
CN102594675A (en) * 2012-02-10 2012-07-18 北京星网锐捷网络技术有限公司 Traffic control system and method
CN102594675B (en) * 2012-02-10 2014-11-26 北京星网锐捷网络技术有限公司 Traffic control system and method
CN102594819B (en) * 2012-02-16 2016-04-06 深信服网络科技(深圳)有限公司 Based on analytical method and apparatus for scanning a single
CN102594819A (en) * 2012-02-16 2012-07-18 深信服网络科技(深圳)有限公司 Method and device based on single parsing scanning
CN103475626B (en) * 2012-06-07 2017-03-08 华为技术有限公司 A method for requesting resources, systems and equipment
CN103475626A (en) * 2012-06-07 2013-12-25 华为技术有限公司 Method, equipment and system used for resource requesting
CN103796246A (en) * 2012-10-31 2014-05-14 中兴通讯股份有限公司 Data distribution method, data distribution device and data distribution system
CN104009928A (en) * 2014-05-26 2014-08-27 深圳市共进电子股份有限公司 Method and device for limiting speed of data flow
WO2016127634A1 (en) * 2015-02-09 2016-08-18 中兴通讯股份有限公司 Service processing method, device and system for application program, and storage medium
WO2017063378A1 (en) * 2015-10-16 2017-04-20 华为技术有限公司 Route processing method, device and system
WO2017128790A1 (en) * 2016-01-26 2017-08-03 上海斐讯数据通信技术有限公司 Application bandwidth configuration method and controller based on software-defined networking

Similar Documents

Publication Publication Date Title
Greenberg et al. A clean slate 4D approach to network control and management
US7948986B1 (en) Applying services within MPLS networks
Arregoces et al. Data center fundamentals
US8094575B1 (en) Routing protocol extension for network acceleration service-aware path selection within computer networks
US7796593B1 (en) Router using internal flood groups for flooding VPLS traffic
US6931016B1 (en) Virtual private network management system
US20060062218A1 (en) Method for establishing session in label switch network and label switch node
US20080225852A1 (en) Methods and apparatus providing two stage tunneling
US8085791B1 (en) Using layer two control protocol (L2CP) for data plane MPLS within an L2 network access node
US20060112426A1 (en) Method and system for including security information with a packet
US20150188770A1 (en) Systems and methods for performing network service insertion
US8121126B1 (en) Layer two (L2) network access node having data plane MPLS
US20090168648A1 (en) Method and System for Annotating Network Flow Information
US20070280241A1 (en) Discovering MPLS VPN services in a network
US8949459B1 (en) Methods and apparatus for distributed backbone internet DDOS mitigation via transit providers
US20050259674A1 (en) Provisioning of cross domain telecommunication services through dynamic label differentiation
CN1921457A (en) Network equipment and message transferring method based on multiple-core processor
US20090175194A1 (en) Ip security within multi-topology routing
US20070110025A1 (en) Autonomous system interconnect using content identification and validation
US20080112403A1 (en) Assigning Packets to a Network Service
CN101022394A (en) Method for realizing virtual local network aggregating method and converging exchanger
US20110299424A1 (en) Switching apparatus and method for setting up virtual lan
Bryskin et al. Policy-enabled path computation framework
US7660265B2 (en) Network packet inspection and forwarding
US20110161657A1 (en) Method and system for providing traffic hashing and network level security

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C12 Rejection of an application for a patent