WO2013107196A1 - Policy based routing method and device - Google Patents

Policy based routing method and device Download PDF

Info

Publication number
WO2013107196A1
WO2013107196A1 PCT/CN2012/083348 CN2012083348W WO2013107196A1 WO 2013107196 A1 WO2013107196 A1 WO 2013107196A1 CN 2012083348 W CN2012083348 W CN 2012083348W WO 2013107196 A1 WO2013107196 A1 WO 2013107196A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
redirection
state
status
normal
Prior art date
Application number
PCT/CN2012/083348
Other languages
French (fr)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP12866356.4A priority Critical patent/EP2775676B1/en
Publication of WO2013107196A1 publication Critical patent/WO2013107196A1/en
Priority to US14/294,949 priority patent/US9942138B2/en

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/58Association of routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/308Route determination based on user's profile, e.g. premium users
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention claims the priority of the Chinese patent application filed on January 17, 2012 by the Chinese Patent Office, the application number is 201210013864.8, and the invention name is "a policy routing method and device", the entire contents of which are This is incorporated herein by reference.
  • the present invention relates to the field of communications technologies, and in particular, to a policy routing method and apparatus. Background technique
  • the traditional routing method uses a routing table to forward packets based on the destination address.
  • the conventional routing method in the routing and forwarding process, once the routing forwarding table is generated, it cannot be arbitrarily modified. In this way, when the traffic on the network increases or the associated outbound interface of the router fails, the load capacity and performance of the router are limited by the routing and forwarding table. At this time, the routing path or the forwarding of some traffic is changed by means of routing. The path is very difficult and it is difficult to achieve a balanced load of various traffic on each interface.
  • the load balancing can be performed only on a group of interfaces of the same router.
  • the load balancing and switching cannot be performed on multiple interfaces of multiple routers as shown in Figure 2.
  • the policy routing is based only on the physical state of the next hop interface. Normal/abnormal path switching and load balancing cannot perform path switching based on whether the entire path to the destination is reachable.
  • the embodiments of the present invention provide a policy routing method and device, which can select any interface for load sharing, and enhance the reliability of data transmission.
  • a policy routing method includes: setting an interface of a router to multiple redirection groups, and the redirection groups are sorted in order of priority; detecting an interface state of an interface in the redirection group; Indicates the interface status of the interface in the redirection group. The traffic is switched between multiple redirection groups.
  • a policy routing apparatus includes: a setting unit, a detecting unit, and a switching unit; wherein
  • the setting unit is configured to set the interface of the router to multiple redirection groups, and the redirection groups are sorted in order of priority;
  • the detecting unit is configured to detect an interface in the redirection group set by the setting unit. An interface status, and notifying the detection unit of the detection result;
  • the switching unit is configured to receive the detection result of the detection unit, and perform traffic switching between the multiple redirection groups according to the interface status in the result. It can be seen that the method and the device of the embodiment of the present invention use the interface state of the interface in the redirection group to complete the traffic by setting the interface of the router to a plurality of redirection groups having a priority relationship with each other.
  • FIG. 1 is a schematic diagram of a network architecture of a policy routing in the prior art
  • FIG. 2 is a schematic diagram of a network architecture including multiple carrier networks
  • FIG. 3 is a schematic diagram of a policy routing method according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a method for applying policy routing in the network architecture of FIG. 4
  • FIG. 6 is a schematic diagram of another method for applying policy routing in the network architecture of FIG. 4
  • Example 2 Schematic diagram of the structure of the routing device.
  • a first embodiment of the present invention provides a policy routing method. As shown in FIG. 3, the method includes:
  • the redirection group may not include a physical interface, and only the at least one network protocol IP (Internet Protocol) address is set as a redirection group, and details are not described herein.
  • IP Internet Protocol
  • the priority of the redirection group may be set and adjusted according to an operator network condition or other conditions.
  • multiple interfaces in the redirection group may be configured as a priority relationship, or the redirection group may be Multiple interfaces are configured as load sharing relationships.
  • the load sharing relationship is as follows: If the interface status of the interface is abnormal, the traffic of the interface that is abnormal in the status is shared to the interface that is in the normal state. Load balancing is performed again between all interfaces that are in normal state.
  • the interface status in this embodiment is not only the physical switch status of the interface, but is detected based on the specified interface and destination address, that is, Detecting the connectivity of the path between the specified interface and the destination; if the path from the specified interface to the destination is reachable, it is determined that the interface is normal, otherwise the interface is determined to be abnormal.
  • the detection of the interface status in this embodiment can be implemented in multiple manners, such as NQA (Network Quality Analyzer) detection, or BFD (Bidirectional Forwarding Detection), or DNS (Domain Name System). Detection, or ICMP (Internet Control Message Protocol) detection or ping command.
  • the detection content in this embodiment includes, but is not limited to, the detection object, the detected outbound interface, and the detection time.
  • the detection is performed by the NQA method, and the detection object is the IP address of the DNS root server of the United States, 198.41.0.4, the detected outgoing interface is 1/0/0, and the detection time is 10 seconds; wherein, every 10 seconds passes the Ethernet.
  • 1/0/0 sends a detection packet to the US DNS root server 198.41.0.4. If the path is reachable, the reachable response packet will be received within 10 seconds, so that the Ethernet 1/0 of the interface can be judged. The status of 0/0 is normal.
  • the interface state is stored, and when the data traffic passes through the interface next time, the interface state is re-detected. If the interface state changes, the policy is executed according to the new interface state. Routing, ie, performing 330 according to the new interface state.
  • the attribute of the detection process may also be set when detecting the interface status: if all the paths from the specified interface to the destination are all reachable, then the determination is made. The status of the interface is normal. Otherwise, the status of the interface is abnormal. If the path is reachable from the specified interface to the destination, the interface is determined to be normal. If all the paths are unreachable, the interface is determined. The state is abnormal; of course, it is easy for those skilled in the art to understand that the detection process may be set to other attributes, which are not specifically limited in the embodiment of the present invention, and are not described herein again.
  • 330 Perform traffic switching between multiple redirection groups according to an interface state of an interface in the redirection group. If the status of the interface in the partial redirection group is abnormal, the other redirection groups are searched in the priority order. The traffic of the abnormal interface is switched to the state of the redirection group with the highest priority. After the interface is abnormal, the traffic is switched back to the interface. Specifically, when all the interfaces in the redirection group are abnormal, the highest priority is selected. Redirect the group to find all the interfaces in the redirection group. If all the interfaces in the redirection group are abnormal, continue to select the redirection group with the lower priority and find all the redirection groups.
  • the redirection group with the priority again is selected until the redirection group with the normal status interface is found. Then the status abnormal interface is used. The traffic is switched to the interface that is in that state.
  • the traffic is switched to the normal interface with the highest priority; if there is a redirection group with the normal interface If the internal interface is set to load sharing, the traffic is switched to all interfaces with normal status.
  • the policy routing method includes:
  • S410 Configure interfaces 1 and 2 as redirection group A, and configure interfaces 3 and 4 as redirection group B.
  • the redirection group A has a higher priority than the redirection group B.
  • the NQA mode can be detected by using the NQA mode:
  • the detection object is the DNS root server of the United States, 198.41.0.4.
  • the detected outgoing interface is interface number 1, and the detection time is 10 seconds. Every 10 seconds, a detection packet is sent through the interface No. 1 to the US DNS root server 198.41.0.4. If the packet is reachable, the reachable response message is received within 10 seconds, thereby determining that the interface No. 1 is normal; otherwise, the interface No. 1 is abnormal;
  • S510 Configure interfaces 1 and 2 as redirection group A, and configure interfaces 3 and 4 as redirection group B.
  • the redirection group A has a higher priority than the redirection group B.
  • the attributes of each interface in the redirection group A and the redirection group B are configured as the primary and backup attributes, that is, the priority of the interface No. 1 is higher than the priority of the interface No. 2, and the interface of the third interface The priority is higher than the priority of the interface 4;
  • S520 Detect interfaces 1 and 2 in the redirection group A, and the redirection group.
  • the interface status of the interface on the 3rd and the 4th is the same as that in the prior art and the foregoing embodiment, and is not described again.
  • the second embodiment of the present invention further provides a policy routing device.
  • the policy routing device 500 includes: a setting unit 510, a detecting unit 520, and a switching unit 530.
  • the unit 510 is configured to set the interface of the router into multiple redirection groups, and the redirection groups are sorted in order of priority.
  • the setting unit 510 is further configured to use multiple interfaces in the redirection group. Configured to have a priority relationship or load sharing relationship attribute with each other;
  • the detecting unit 520 is configured to detect an interface state of an interface in each redirection group set by the setting unit 510, and notify the switching unit 530 of the detection result;
  • the interface state includes at least the connectivity of the path between the specified interface and the destination;
  • the switching unit 530 is configured to receive the detection result of the detecting unit 520, and according to the interface state in the result, between the multiple redirect groups Perform traffic switching.
  • the detecting unit 520 may further include (not shown) a test module and a first processing module;
  • the test module is configured to test whether all paths between the specified interface and the destination are reachable, and notify the first processing module of the test result;
  • the first processing module is configured to receive the test result of the test module, and determine that the interface state is normal when all paths are reachable, otherwise the interface state is determined to be abnormal; or, when there is at least one path, When the time is up, determine that the interface status is normal, otherwise determine that the interface status is abnormal.
  • the switching unit 530 may further include (not shown in the figure): a searching module, configured to: when the interface states of the redirecting group are all abnormal, find other redirecting groups according to a priority order, and Notifying the second processing module of the search result; the second processing module is configured to receive the search result of the search module, and switch the traffic of the interface that is abnormal in the status to the redirect group with the highest priority of the normal interface The state of the interface is normal; after the interface with the abnormal state is normal, the traffic is switched back to the interface.
  • a searching module configured to: when the interface states of the redirecting group are all abnormal, find other redirecting groups according to a priority order, and Notifying the second processing module of the search result
  • the second processing module is configured to receive the search result of the search module, and switch the traffic of the interface that is abnormal in the status to the redirect group with the highest priority of the normal interface
  • the state of the interface is normal; after the interface with the abnormal state is normal, the traffic is switched back to the interface.

Landscapes

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

Abstract

A policy based routing method and device. The method comprises: dividing interfaces of routers into multiple redirection groups, the redirection groups being sorted according to priority; detecting the interface status of an interface in the redirection group; switching traffic between the multiple redirection groups according to the interface status of the interface in the redirection group. In the method and device according to the embodiments of the present invention, paths of other operators are selectively and preferably used, so as to reduce operating costs. Multiple levels of policy based routes are configured, so as to improve the data transmission reliability and make the networking by the operator more flexible.

Description

一种策略路由方法及装置 本申请要求于 2012 年 01 月 17 日提交中国专利局、 申请号为 201210013864.8、发明名称为"一种策略路由方法及装置"的中国专利申请的 优先权,其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域, 尤其涉及一种策略路由方法及装置。 背景技术  The present invention claims the priority of the Chinese patent application filed on January 17, 2012 by the Chinese Patent Office, the application number is 201210013864.8, and the invention name is "a policy routing method and device", the entire contents of which are This is incorporated herein by reference. The present invention relates to the field of communications technologies, and in particular, to a policy routing method and apparatus. Background technique
目前, 随着通信技术的飞速发展和广泛应用使得网络规模日益庞大, 系统的复杂性和异构性更加突出, 网络上需要传送的数据信息量也大大增 加。 而对于路由器来说, 需要为大量报文提供寻径、 转发功能。  At present, with the rapid development and wide application of communication technologies, the network scale is becoming larger and larger, the complexity and heterogeneity of the system are more prominent, and the amount of data information that needs to be transmitted on the network is also greatly increased. For a router, you need to provide routing and forwarding for a large number of packets.
传统的路由方法是使用路由表, 根据目的地址进行报文的转发。 但是 用该传统的路由方法, 在路由转发过程中, 一旦路由转发表生成就不能进 行任意修改。 这样, 当网络上流量增大或路由器的相关出接口出现故障时, 路由器的负载能力和性能会受到路由转发表的限制, 而此时通过路由的手 段去改变流量的转发路径或部分流量的转发路径非常困难, 也难以实现各 种流量在各个接口的均衡负载。  The traditional routing method uses a routing table to forward packets based on the destination address. However, with the conventional routing method, in the routing and forwarding process, once the routing forwarding table is generated, it cannot be arbitrarily modified. In this way, when the traffic on the network increases or the associated outbound interface of the router fails, the load capacity and performance of the router are limited by the routing and forwarding table. At this time, the routing path or the forwarding of some traffic is changed by means of routing. The path is very difficult and it is difficult to achieve a balanced load of various traffic on each interface.
为了解决这个问题, 现有技术中大多釆用灵活性更强的策略路由方式, 其允许数据信息按照指定的策略进行转发。 例如图 1 所示的网络架构中, 用户需要经过 C运营商和 A运营商访问互联网。 C运营商的路由器有 3个 接口接入 A运营商的网络。 C运营商在 C运营商的路由器上部署策略路由: 把入流量从接入 A运营商网络的 3个接口负载分担出去; 当 3个接口中有 接口异常后, 将通过该异常接口的流量分担到其他正常的接口中; 当异常 的接口又正常后, 流量又重新进行负载分担。 但是, 此种策略路由的方式 只能在同一路由器的一组接口中进行负载分担, 不能在如图 2 所示的多个 路由器的多组接口中负载分担并切换, 且此种策略路由只根据下一跳接口 的物理状态的正常 /异常进行路径切换和负载分担, 其无法根据到达目的地 的整条路径是否可达进行路径切换。 发明内容 本发明实施例提供一种策略路由方法及装置, 能够选择任意接口进行 负载分担, 增强了数据传输的可靠性。 一方面, 一种策略路由方法, 包括: 将路由器的接口设置为多个重定向组, 所述重定向组之间按优先级顺 序排序; 检测所述重定向组中接口的接口状态; 根据所述重定向组中接口 的接口状态, 在多个重定向组之间进行流量的切换。 另一方面, 一种策略路由装置, 包括: 设置单元、 检测单元和切换单 元; 其中, In order to solve this problem, most of the prior art uses a more flexible policy routing method, which allows data information to be forwarded according to a specified policy. For example, in the network architecture shown in Figure 1, users need to access the Internet through the C carrier and the A carrier. The router of the C carrier has three interfaces to access the network of the A carrier. The C-operator deploys the policy-based route on the routers of the C-operator. The load is divided from the load of the three interfaces connected to the A-operator network. If the interface is abnormal on the three interfaces, the traffic is transmitted through the abnormal interface. After the abnormal interface is normal, the traffic is re-loaded again. However, the way this policy is routed The load balancing can be performed only on a group of interfaces of the same router. The load balancing and switching cannot be performed on multiple interfaces of multiple routers as shown in Figure 2. The policy routing is based only on the physical state of the next hop interface. Normal/abnormal path switching and load balancing cannot perform path switching based on whether the entire path to the destination is reachable. SUMMARY OF THE INVENTION The embodiments of the present invention provide a policy routing method and device, which can select any interface for load sharing, and enhance the reliability of data transmission. In one aspect, a policy routing method includes: setting an interface of a router to multiple redirection groups, and the redirection groups are sorted in order of priority; detecting an interface state of an interface in the redirection group; Indicates the interface status of the interface in the redirection group. The traffic is switched between multiple redirection groups. In another aspect, a policy routing apparatus includes: a setting unit, a detecting unit, and a switching unit; wherein
所述设置单元用于将路由器的接口设置为多个重定向组, 所述重定向 组之间按优先级顺序排序; 所述检测单元用于检测所述设置单元设置的重 定向组中接口的接口状态, 并将检测结果通知给所述切换单元; 所述切换 单元用于接收所述检测单元的检测结果, 并根据所述结果中的接口状态在 多个重定向组之间进行流量切换。 可以看出, 釆用本发明实施例的方法及装置, 通过将路由器的接口设 置为多个彼此间具有优先级关系的重定向组, 利用所述重定向组中接口的 接口状态来完成流量的切换, 以此完成多级策略路由的部署, 即可实现可 选择性的优选通过其他运营商的路径, 节约运营成本; 并且通过配置多级 策略路由, 增强了数据传输的可靠性, 也使运营商的组网更灵活性。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。 图 1是现有技术中釆用策略路由的网络架构示意图; 图 2是包含多个运营商网络的网络架构示意图; 图 3是本发明实施例一策略路由方法示意图; 图 4是本发明实施例中应用策略路由方法的网络架构示意图; 图 5是如图 4网络架构中应用策略路由的方法示意图; 图 6是如图 4网络架构中应用策略路由的另一方法示意图; 图 7是本发明实施例二策略路由装置结构示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚地描述; 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不 是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。 本发明实施例一提供了一种策略路由方法, 如图 3所示, 该方法包括: The setting unit is configured to set the interface of the router to multiple redirection groups, and the redirection groups are sorted in order of priority; the detecting unit is configured to detect an interface in the redirection group set by the setting unit. An interface status, and notifying the detection unit of the detection result; the switching unit is configured to receive the detection result of the detection unit, and perform traffic switching between the multiple redirection groups according to the interface status in the result. It can be seen that the method and the device of the embodiment of the present invention use the interface state of the interface in the redirection group to complete the traffic by setting the interface of the router to a plurality of redirection groups having a priority relationship with each other. Switching, to complete the deployment of multi-level policy routing, can selectively optimize the path through other carriers, save operating costs; and by configuring multi-level policy routing, enhance the reliability of data transmission, and also make operations The networking of the business is more flexible. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, obviously, The drawings in the following description are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative work. 1 is a schematic diagram of a network architecture of a policy routing in the prior art; FIG. 2 is a schematic diagram of a network architecture including multiple carrier networks; FIG. 3 is a schematic diagram of a policy routing method according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a method for applying policy routing in the network architecture of FIG. 4; FIG. 6 is a schematic diagram of another method for applying policy routing in the network architecture of FIG. 4; Example 2 Schematic diagram of the structure of the routing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The technical solutions in the embodiments of the present invention will be clearly described with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention. A first embodiment of the present invention provides a policy routing method. As shown in FIG. 3, the method includes:
310: 将路由器的接口设置为多个重定向组, 所述重定向组之间按优先 级顺序排序; 需要说明的是, 在本实施例中可以将网络中的多个路由器的所有接口 设置为多个重定向组, 其中每个重定向组中可以包含不同路由器的接口。 当然, 也可以将网络中的每个路由器的所有接口设置为一个重定向组, 则 针对多个路由器即可设置多个重定向组, 其中每个重定向组只包含了一个 路由器的所有接口。 除此之外, 还可以将单一路由器的所有接口设置为多 个重定向组, 其中每个重定向组中皆包含了该路由器的部分接口。 可选地, 所述重定向组中还可以不包括物理接口,只将至少一个网络协议 IP( Internet Protocol )地址设置为重定向组, 具体本文不再赘述。 但是, 需要说明的是, 不论多个重定向组如何设置, 所述多个重定向组之间的优先级不同, 并且 在本实施例中所述重定向组的优先级可以根据运营商网络状况或其他条件 进行设置和调整。 此外, 在本实施例中, 如果所述每个重定向组内配置多个接口, 则可 将所述重定向组内的多个接口配置为优先级关系, 或是将所述重定向组内 的多个接口配置为负载分担关系。 其中, 所述负载分担关系为: 如果多个 接口中有部分接口状态异常, 将通过所述状态异常的接口的流量分担到其 他状态正常的接口中; 当状态异常的接口又正常后, 流量又重新在所有状 态正常的接口之间进行负载分担。 310: Set the interface of the router to multiple redirection groups, and the redirection groups are sorted in priority order. It should be noted that, in this embodiment, all interfaces of multiple routers in the network may be set to Multiple redirect groups, each of which can contain interfaces for different routers. Of course, you can also set all the interfaces of each router in the network as a redirection group. You can set multiple redirection groups for multiple routers. Each redirection group contains only all the interfaces of one router. In addition, all interfaces of a single router can be set to multiple redirect groups, each of which contains some interfaces of the router. Optionally, the redirection group may not include a physical interface, and only the at least one network protocol IP (Internet Protocol) address is set as a redirection group, and details are not described herein. However, it should be noted that regardless of how multiple redirect groups are set, the priorities between the multiple redirect groups are different, and In this embodiment, the priority of the redirection group may be set and adjusted according to an operator network condition or other conditions. In addition, in this embodiment, if multiple interfaces are configured in each redirection group, multiple interfaces in the redirection group may be configured as a priority relationship, or the redirection group may be Multiple interfaces are configured as load sharing relationships. The load sharing relationship is as follows: If the interface status of the interface is abnormal, the traffic of the interface that is abnormal in the status is shared to the interface that is in the normal state. Load balancing is performed again between all interfaces that are in normal state.
320: 检测每个重定向组中接口的接口状态; 需要说明的是, 本实施例中的接口状态并不仅仅是指接口的物理开关 状态, 而是基于指定的接口和目的地址进行检测, 即检测指定的接口到目 的地之间路径的连通性; 如果从所述指定接口到目的地之间的路径为可达, 则确定该接口为正常, 否则确定该接口为异常。 320: Detecting the interface status of the interface in each redirection group. It should be noted that the interface status in this embodiment is not only the physical switch status of the interface, but is detected based on the specified interface and destination address, that is, Detecting the connectivity of the path between the specified interface and the destination; if the path from the specified interface to the destination is reachable, it is determined that the interface is normal, otherwise the interface is determined to be abnormal.
其中, 本实施例检测接口状态可通过多种方式实现, 如 NQA ( Network Quality Analyzer, 网络质量分析)检测, 或 BFD ( Bidirectional Forwarding Detection, 双向转发检测), 或 DNS ( Domain Name System, 域名系统)检 测, 或 ICMP ( Internet Control Message Protocol, Internet控制才艮文协议 )检 测或 ping命令等。 但不论釆用何种方式检测, 本实施例中的检测内容皆包 含但不局限于: 检测对象、 检测的出接口、 检测时间。 例如, 釆用 NQA方 式进行检测, 其检测对象是美国的 DNS根服务器的 IP地址 198.41.0.4, 检 测的出接口是以太 1/0/0, 检测时间是 10秒; 其中, 每 10秒通过以太 1/0/0 发一个检测报文到美国的 DNS根服务器 198.41.0.4, 如果该路径可达, 则 在 10秒内会收到可达回应报文, 如此即可判断该接口的以太 1/0/0的状态 为正常。  The detection of the interface status in this embodiment can be implemented in multiple manners, such as NQA (Network Quality Analyzer) detection, or BFD (Bidirectional Forwarding Detection), or DNS (Domain Name System). Detection, or ICMP (Internet Control Message Protocol) detection or ping command. However, the detection content in this embodiment includes, but is not limited to, the detection object, the detected outbound interface, and the detection time. For example, the detection is performed by the NQA method, and the detection object is the IP address of the DNS root server of the United States, 198.41.0.4, the detected outgoing interface is 1/0/0, and the detection time is 10 seconds; wherein, every 10 seconds passes the Ethernet. 1/0/0 sends a detection packet to the US DNS root server 198.41.0.4. If the path is reachable, the reachable response packet will be received within 10 seconds, so that the Ethernet 1/0 of the interface can be judged. The status of 0/0 is normal.
此外, 本实施例中在检测到所述接口状态后存储该接口状态, 待下次 有数据流量经过该接口时, 重新检测该接口状态, 如果该接口状态改变, 则根据新的接口状态执行策略路由, 即根据所述新的接口状态执行 330。 值得注意的是, 本实施例在检测接口状态时还可以设置该检测过程的 属性: 如果从指定接口到目的地之间的所有路径全部连通可达, 则确定该 接口状态为正常, 否则认定该接口状态为异常; 或者, 如果从指定接口到 目的地之间存在至少一条路径可达, 则确定该接口状态为正常, 如果所有 路径皆不可达, 则确定该接口状态异常; 当然, 本领域普通技术人员很容 易了解, 还可将所述检测过程设置为其他属性, 本发明实施例并不作具体 限定, 在此不再赘述。 In addition, in this embodiment, after detecting the interface state, the interface state is stored, and when the data traffic passes through the interface next time, the interface state is re-detected. If the interface state changes, the policy is executed according to the new interface state. Routing, ie, performing 330 according to the new interface state. It should be noted that, in this embodiment, the attribute of the detection process may also be set when detecting the interface status: if all the paths from the specified interface to the destination are all reachable, then the determination is made. The status of the interface is normal. Otherwise, the status of the interface is abnormal. If the path is reachable from the specified interface to the destination, the interface is determined to be normal. If all the paths are unreachable, the interface is determined. The state is abnormal; of course, it is easy for those skilled in the art to understand that the detection process may be set to other attributes, which are not specifically limited in the embodiment of the present invention, and are not described herein again.
330: 根据所述重定向组中接口的接口状态, 在多个重定向组之间进行 流量的切换。 其中, 当部分重定向组中的接口状态全部异常时, 按照优先级顺序查 找其他重定向组, 将经过所述异常接口的流量切换到其他存在状态正常接 口的优先级最高的重定向组的状态正常接口; 而当所述状态为异常的接口 重新恢复正常后, 再将所述流量切换回该接口; 具体的, 当所述重定向组中的接口状态全部为异常后, 选择优先级最 高的重定向组, 查找该重定向组内所有状态正常的接口, 如果该重定向组 内所有的接口状态都是异常, 则继续选择优先级次之的重定向组, 并查找 该重定向组内所有状态正常的接口, 如果该重定向组内仍没有状态正常的 接口, 则再次选择优先级再次之的重定向组, 直至找到存在状态接口正常 的重定向组为止; 然后将所述经过状态异常接口的流量切换到该状态正常 的接口。 330: Perform traffic switching between multiple redirection groups according to an interface state of an interface in the redirection group. If the status of the interface in the partial redirection group is abnormal, the other redirection groups are searched in the priority order. The traffic of the abnormal interface is switched to the state of the redirection group with the highest priority. After the interface is abnormal, the traffic is switched back to the interface. Specifically, when all the interfaces in the redirection group are abnormal, the highest priority is selected. Redirect the group to find all the interfaces in the redirection group. If all the interfaces in the redirection group are abnormal, continue to select the redirection group with the lower priority and find all the redirection groups. If the interface is in the normal state, if there is still no interface in the redirection group, the redirection group with the priority again is selected until the redirection group with the normal status interface is found. Then the status abnormal interface is used. The traffic is switched to the interface that is in that state.
值得注意的是, 如果存在状态正常接口的重定向组内的接口被设置为 优先级关系, 则将所述流量切换到所述优先级最高的状态正常接口; 如果 存在状态正常接口的重定向组内的接口被设置为负载分担关系, 则将所述 流量切换到所有状态正常的接口。  It is noted that if the interface in the redirection group with the normal interface is set to the priority relationship, the traffic is switched to the normal interface with the highest priority; if there is a redirection group with the normal interface If the internal interface is set to load sharing, the traffic is switched to all interfaces with normal status.
除此之外, 需要说明的是, 上述步骤中只涉及了所述重定向组中的接 口全部异常的处理方式, 而对于所述重定向组中的部分接口异常的处理方 式还可以釆用现有方式; 例如, 当所述重定向组中的部分接口异常后, 将 经过该接口的流量切换到其他正常接口; 而当所述部分异常的接口重新正 常后, 将所述流量切换回所述重新正常的接口, 具体本文不再赘述。 下面以具体的如图 4所示的网络架构为例对上述实施例的方法进行详 细说明,用户需要访问互联网,则其需要通过 C运营商和 A运营商的网络、 或者通过 C运营商和 B运营商的网络; 而其中, C运营商基于一些因素考 虑需要把用户的流量优选从接入 A运营商的 1号和 2号接口进行负载分担, 备选从接入 B运营商的 3号和 4号接口进行负载分担; 则, 如图 5所示, 该策略路由方法包括: In addition, it should be noted that, in the foregoing steps, only the processing manners of all the interfaces in the redirection group are processed, and the processing manner of some interface anomalies in the redirection group may be used. For example, after a part of the interface in the redirection group is abnormal, the traffic passing the interface is switched to another normal interface; and when the partially abnormal interface is normal again, the traffic is switched back to the The normal interface is re-used, and will not be described in detail in this article. The method of the foregoing embodiment is described in detail by taking the specific network architecture shown in FIG. 4 as an example. If the user needs to access the Internet, the network needs to pass through the network of the C carrier and the A carrier. Or through the network of the C carrier and the B carrier; and the C operator considers that the traffic of the user needs to be load-sharing from the interfaces of the accessing operator A and the interface 2 based on some factors, and the alternative is to access. Load balancing is performed on interfaces 3 and 4 of the B carrier. Then, as shown in Figure 5, the policy routing method includes:
S410: 将 1号和 2号接口配置为重定向组 A, 将 3号和 4号接口配置 为重定向组 B; 所述重定向组 A的优先级高于所述重定向组 B的优先级; 可选地, 配置重定向组 A内各接口的属性为负载分担; 配置重定向组 B内 各接口的属性为负载分担;  S410: Configure interfaces 1 and 2 as redirection group A, and configure interfaces 3 and 4 as redirection group B. The redirection group A has a higher priority than the redirection group B. Optionally, configure the attributes of each interface in the redirection group A as load balancing. Configure the attributes of each interface in the redirection group B as load balancing.
S420: 检测所述重定向组 A内的 1号和 2号接口、 以及所述重定向组 内的 3号和 4号接口的接口状态; 其中, 可利用所述 NQA方式进行检测: 配置 NQA的检测对象是美国的 DNS根服务器 198.41.0.4,检测的出接口是 1号接口,检测时间是 10秒; 每 10秒通过 1号接口发一个检测报文到美国 的 DNS根服务器 198.41.0.4, 如果所述报文可达, 则在 10秒钟内会收到可 达回应 4艮文, 由此即可确定该 1号接口为正常; 否则, 可确定该 1号接口 为异常;  S420: Detecting the interface states of the interfaces 1 and 2 in the redirection group A and the interfaces of the 3rd and 4th interfaces in the redirection group. The NQA mode can be detected by using the NQA mode: The detection object is the DNS root server of the United States, 198.41.0.4. The detected outgoing interface is interface number 1, and the detection time is 10 seconds. Every 10 seconds, a detection packet is sent through the interface No. 1 to the US DNS root server 198.41.0.4. If the packet is reachable, the reachable response message is received within 10 seconds, thereby determining that the interface No. 1 is normal; otherwise, the interface No. 1 is abnormal;
S430: 当所述重定向组 A内的 1号和 2号接口全部异常后, 查找所述 重定向组 B内的 3号和 4号接口是否正常, 如果是, 则将经过所述 1号和 2号接口的流量切换到所述 3号和 4号接口; 当所述 1号和 /或 2号接口重 新正常后, 再将所述流量切换回重新正常的接口。 此外, 如图 4所示, 如果 C运营商基于一些因素考虑需要把用户的流 量优选从接入 A运营商的 1号和 2号接口进行主备保护, 备选从接入 B运 营商的 3号和 4号接口进行主备保护; 则, 如图 6所示, 该策略路由方法 包括:  S430: After all the interfaces of the first and second interfaces in the redirection group A are abnormal, find whether the interfaces 3 and 4 in the redirection group B are normal, and if yes, the number 1 and The traffic of interface No. 2 is switched to the interfaces of No. 3 and No. 4; after the interfaces of No. 1 and/or No. 2 are normal again, the traffic is switched back to the normal interface. In addition, as shown in FIG. 4, if the C operator considers that the traffic of the user needs to be actively and standbyly protected from the interfaces of the accessing operator A and the interface 2, based on some factors, No. 4 and No. 4 interface perform primary and backup protection. Then, as shown in Figure 6, the policy routing method includes:
S510: 将 1号和 2号接口配置为重定向组 A, 将 3号和 4号接口配置 为重定向组 B; 所述重定向组 A的优先级高于所述重定向组 B的优先级; 其中, 配置重定向组 A内各接口和重定向组 B内各接口的属性分别为主备 属性, 即所述 1号接口的优先级高于 2号接口的优先级、 所述 3号接口的 优先级高于所述 4号接口的优先级;  S510: Configure interfaces 1 and 2 as redirection group A, and configure interfaces 3 and 4 as redirection group B. The redirection group A has a higher priority than the redirection group B. The attributes of each interface in the redirection group A and the redirection group B are configured as the primary and backup attributes, that is, the priority of the interface No. 1 is higher than the priority of the interface No. 2, and the interface of the third interface The priority is higher than the priority of the interface 4;
S520: 检测所述重定向组 A内的 1号和 2号接口、 以及所述重定向组 内的 3号和 4号接口的接口状态; 其中, 具体的检测方式与现有技术及上 述实施例中的方式类似, 不再赘述; S520: Detect interfaces 1 and 2 in the redirection group A, and the redirection group. The interface status of the interface on the 3rd and the 4th is the same as that in the prior art and the foregoing embodiment, and is not described again.
S530: 当所述重定向组 A内的 1号和 2号接口全部异常后, 查找所述 重定向组 B内的 3号和 4号接口是否正常, 如果是, 则将经过所述 1号和 2号接口的流量切换到所述优先级高的 3号接口; 当所述 1号和 /或 2号接 口重新正常后, 再将所述流量切换回重新正常的接口。 可以看出, 利用上述各实施例的方法, 通过将路由器的接口设置为多 个彼此间具有优先级关系的重定向组, 利用所述重定向组中接口的接口状 态来完成流量的切换, 以此完成了多级策略路由的部署, 即可实现可选择 性的优选通过其他运营商的路径, 节约运营成本; 并且通过配置多级策略 路由, 增强了业务的可靠性, 也使运营商的组网更灵活性。  S530: After all the interfaces 1 and 2 in the redirection group A are abnormal, find whether the interfaces 3 and 4 in the redirection group B are normal. If yes, the number 1 and The traffic of interface 2 is switched to interface 3 with the highest priority. After the interface of port 1 and/or 2 is normal again, the traffic is switched back to the normal interface. It can be seen that, by using the method of the foregoing embodiments, the interface of the router is set to a plurality of redirection groups having a priority relationship with each other, and the interface state of the interface in the redirection group is used to complete the switching of the traffic. This completes the deployment of multi-level policy routing, which can selectively optimize the path through other carriers, saving operating costs; and configuring multi-level policy routing to enhance service reliability and also enable operators' groups. The web is more flexible.
对应上述方法实施例, 本发明实施例二又提出了一种策略路由装置, 如图 7所示, 该策略路由装置 500包括: 设置单元 510、 检测单元 520和切 换单元 530; 其中, 所述设置单元 510用于将路由器的接口设置为多个重定向组, 所述重 定向组之间按优先级顺序排序; 其中, 所述设置单元 510还可用于将所述 重定向组内的多个接口配置为彼此间具有优先级关系或负载分担关系属 性;  Corresponding to the foregoing method embodiment, the second embodiment of the present invention further provides a policy routing device. As shown in FIG. 7, the policy routing device 500 includes: a setting unit 510, a detecting unit 520, and a switching unit 530. The unit 510 is configured to set the interface of the router into multiple redirection groups, and the redirection groups are sorted in order of priority. The setting unit 510 is further configured to use multiple interfaces in the redirection group. Configured to have a priority relationship or load sharing relationship attribute with each other;
所述检测单元 520用于检测所述设置单元 510设置的每个重定向组中 接口的接口状态, 并将检测结果通知给所述切换单元 530; 需要说明的是, 所述检测单元 520检测的接口状态至少包括指定接口到目的地之间路径的 连通性; 所述切换单元 530用于接收所述检测单元 520的检测结果, 并根据所 述结果中的接口状态在多个重定向组之间进行流量切换。  The detecting unit 520 is configured to detect an interface state of an interface in each redirection group set by the setting unit 510, and notify the switching unit 530 of the detection result; The interface state includes at least the connectivity of the path between the specified interface and the destination; the switching unit 530 is configured to receive the detection result of the detecting unit 520, and according to the interface state in the result, between the multiple redirect groups Perform traffic switching.
此外, 所述检测单元 520还可包括(图中未示出 )·· 测试模块和第一处 理模块; 其中  In addition, the detecting unit 520 may further include (not shown) a test module and a first processing module;
所述测试模块用于测试从指定接口到目的地之间的所有路径是否连通 可达, 并将测试结果通知所述第一处理模块; 所述第一处理模块用于接收所述测试模块的测试结果, 并当所有路径 全部连通可达时, 确定该接口状态为正常, 否则认定该接口状态为异常; 或者, 当存在至少一条路径可达时, 确定该接口状态为正常, 否则确定该 接口状态异常。 除此之外, 所述切换单元 530还可包括(图中未示出): 查找模块, 用于当所述重定向组的接口状态全部异常时, 按照优先级 顺序查找其他重定向组, 并将查找结果通知第二处理模块; 第二处理模块, 用于接收所述查找模块的查找结果, 将经过所述状态 异常的接口的流量切换到其他存在状态正常接口的优先级最高的重定向组 的所述状态正常接口; 当所述状态异常的接口重新正常后, 再将所述流量 切换回该接口。 本领域普通技术人员还可以进一步应能意识到, 结合本文中所公开的 实施例描述的各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或 者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性, 在上述说 明中已经按照功能一般性地描述了各示例的组成及步骤。 这些功能究竟以 硬件还是软件方式来执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功 能, 但是这种实现不应认为超出本发明实施例的范围。 结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬 件、 处理器执行的软件模块, 或者二者的结合来实施。 对所公开的实施例的上述说明, 使本领域专业技术人员能够实现或使 用本发明实施例。 对这些实施例的多种修改对本领域的专业技术人员来说 将是显而易见的, 本文中所定义的一般原理可以在不脱离本发明实施例的 精神或范围的情况下, 在其它实施例中实现。 因此, 本发明实施例将不会 被限制于本文所示的这些实施例, 而是要符合与本文所公开的原理和新颖 特点相一致的最宽的范围。 The test module is configured to test whether all paths between the specified interface and the destination are reachable, and notify the first processing module of the test result; The first processing module is configured to receive the test result of the test module, and determine that the interface state is normal when all paths are reachable, otherwise the interface state is determined to be abnormal; or, when there is at least one path, When the time is up, determine that the interface status is normal, otherwise determine that the interface status is abnormal. In addition, the switching unit 530 may further include (not shown in the figure): a searching module, configured to: when the interface states of the redirecting group are all abnormal, find other redirecting groups according to a priority order, and Notifying the second processing module of the search result; the second processing module is configured to receive the search result of the search module, and switch the traffic of the interface that is abnormal in the status to the redirect group with the highest priority of the normal interface The state of the interface is normal; after the interface with the abnormal state is normal, the traffic is switched back to the interface. Those of ordinary skill in the art may further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity. Interchangeability of hardware and software In the above description, the composition and steps of the examples have been generally described in terms of functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the invention. The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented directly in hardware, a software module executed by a processor, or a combination of both. The above description of the disclosed embodiments enables those skilled in the art to make or use the embodiments of the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the embodiments of the invention. . Therefore, the embodiments of the present invention are not to be limited to the embodiments shown herein, but are to be accorded to the broadest scope of the principles and novel features disclosed herein.
实施例, 凡在本发明实施例的精神和原则之内, 所作的任何修改、 等同替 换、 改进等, 均应包含在本发明实施例的保护范围之内。 The embodiment, any modifications, equivalents, improvements, etc., which are within the spirit and scope of the embodiments of the present invention, are included in the scope of the present invention.

Claims

权利要求 Rights request
1、 一种策略路由方法, 其特征在于, 包括: A method for routing a policy, comprising:
将路由器的接口设置为多个重定向组, 所述重定向组之间按优先级顺序 排序;  Set the interface of the router to multiple redirection groups, and the redirection groups are sorted in order of priority;
检测每个重定向组中接口的接口状态;  Detect the interface status of the interface in each redirect group.
根据所述重定向组中接口的接口状态, 在多个重定向组之间进行流量的 切换。  Switching traffic between multiple redirection groups according to the interface status of the interface in the redirection group.
2、 根据权利要求 1所述的方法, 其特征在于:  2. The method of claim 1 wherein:
所述重定向组中包含不同路由器的接口。  The redirection group includes interfaces of different routers.
3、 根据权利要求 1所述的方法, 其特征在于:  3. The method of claim 1 wherein:
将所述重定向组内的多个接口配置为彼此间具有优先级关系或负载分 担关系。  The multiple interfaces in the redirection group are configured to have a priority relationship or a load sharing relationship with each other.
4、 根据权利要求 1所述的方法, 其特征在于, 所述接口状态至少包括: 指定接口到目的地之间路径的连通性。  4. The method according to claim 1, wherein the interface state at least comprises: specifying connectivity of a path between the interface and the destination.
5、 根据权利要求 4 所述的方法, 其特征在于, 所述检测重定向组中接 口的接口状态具体包括:  The method according to claim 4, wherein the detecting the interface status of the interface in the redirection group specifically includes:
从指定接口到目的地之间的所有路径全部连通可达, 则确定该接口状态 为正常, 否则认定该接口状态为异常; 或者,  If all the paths from the specified interface to the destination are reachable, the status of the interface is normal. Otherwise, the status of the interface is abnormal.
从指定接口到目的地之间存在至少一条路径可达, 则确定该接口状态为 正常, 否则确定该接口状态异常。  If at least one path is reachable from the specified interface to the destination, the interface status is determined to be normal. Otherwise, the interface status is abnormal.
6、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 在检测到所述接口状态后存储该接口状态, 待下次有数据流量经过该接 口时, 重新检测该接口状态, 如果该接口状态改变, 则 居新的接口状态 执行策略路由。 The method of claim 1, further comprising: storing the state of the interface after detecting the state of the interface, and re-detecting the state of the interface when data traffic passes through the interface next time. If the state of the interface changes, the new interface state performs policy routing.
7、 根据权利要求 5 所述的方法, 其特征在于, 所述根据所述重定向组 中接口的接口状态在多个重定向组之间进行流量的切换具体包括: The method according to claim 5, wherein the switching of the traffic between the multiple redirection groups according to the interface state of the interface in the redirection group includes:
当所述重定向组的接口状态全部异常时, 按照优先级顺序查找其他重定 向组, 将经过所述状态异常的接口的流量切换到其他存在状态正常的接口 的优先级最高的重定向组的所述状态正常接口; 而当所述状态异常的接口 重新正常后, 再将所述流量切换回该接口。  When the status of the interface of the redirection group is abnormal, the other redirection groups are searched for in the order of priority, and the traffic of the interface with the abnormal state is switched to the redirection group with the highest priority of the interface with the normal state. The state is a normal interface; and when the interface with the abnormal state is normal, the traffic is switched back to the interface.
8、 根据权利要求 7所述的方法, 其特征在于:  8. The method of claim 7 wherein:
如果存在状态正常的接口的其他重定向组内的接口被设置为优先级关 系, 则将所述流量切换到所述优先级最高的状态正常的接口; 如果存在状 态正常的接口的其他重定向组内的接口被设置为负载分担关系, 则将所述 流量切换到所有状态正常的接口。  If the interface in the other redirection group of the interface with the normal state is set to the priority relationship, the traffic is switched to the interface with the highest priority state; if there are other redirection groups of the normal interface If the internal interface is set to load sharing, the traffic is switched to all interfaces with normal status.
9、 根据权利要求 1至 8任意一项所述的方法, 其特征在于, 该方法还 包括: 当所述重定向组中的部分接口状态异常后, 将经过该接口的流量切 换到其他状态正常的接口; 而当所述部分状态异常的接口状态重新正常后, 将所述流量切换回所述状态重新正常的接口。  The method according to any one of claims 1 to 8, wherein the method further comprises: switching the traffic passing the interface to another state after the interface status of the redirect group is abnormal. The interface is switched back to the interface where the status is normal again after the status of the interface whose status is abnormal is normal.
10、 一种策略路由装置, 其特征在于, 包括: 设置单元、 检测单元和切 换单元; 其中,  A policy routing device, comprising: a setting unit, a detecting unit, and a switching unit; wherein
所述设置单元用于将路由器的接口设置为多个重定向组, 所述重定向组 之间按优先级顺序排序;  The setting unit is configured to set an interface of the router as a plurality of redirection groups, and the redirection groups are sorted in a priority order;
所述检测单元用于检测所述设置单元设置的每个重定向组中接口的接 口状态, 并将检测结果通知给所述切换单元;  The detecting unit is configured to detect an interface state of an interface in each redirection group set by the setting unit, and notify a detection unit of the detection result;
所述切换单元用于接收所述检测单元的检测结果, 并根据所述结果中的 接口状态在多个重定向组之间进行流量切换。  The switching unit is configured to receive a detection result of the detecting unit, and perform traffic switching between multiple redirection groups according to an interface state in the result.
11、 根据权利要求 10所述的装置, 其特征在于:  11. Apparatus according to claim 10 wherein:
所述设置单元还可用于将所述重定向组内的多个接口配置为彼此间具 有优先级关系或负载分担关系。 The setting unit may be further configured to configure multiple interfaces in the redirection group to have a priority relationship or a load sharing relationship with each other.
12、 根据权利要求 10所述的装置, 其特征在于: 12. Apparatus according to claim 10 wherein:
所述检测单元检测的接口状态至少包括指定接口到目的地之间路径的 连通性。  The interface status detected by the detecting unit includes at least the connectivity of the path between the specified interface and the destination.
1 3、 根据权利要求 12 所述的装置, 其特征在于, 所述检测单元包括: 测试模块和第一处理模块; 其中  The device according to claim 12, wherein the detecting unit comprises: a testing module and a first processing module;
所述测试模块用于测试从指定接口到目的地之间的所有路径是否连通 可达, 并将测试结果通知所述第一处理模块;  The test module is configured to test whether all paths between the specified interface and the destination are reachable, and notify the first processing module of the test result;
所述第一处理模块用于接收所述测试模块的测试结果, 并当所有路径全 部连通可达时, 确定该接口状态为正常, 否则认定该接口状态为异常; 或 者, 当存在至少一条路径可达时, 确定该接口状态为正常, 否则确定该接 口状态异常。  The first processing module is configured to receive the test result of the test module, and determine that the interface state is normal when all paths are reachable, otherwise the interface state is determined to be abnormal; or, when there is at least one path, When the time is up, determine that the interface status is normal, otherwise determine that the interface status is abnormal.
14、 根据权利要求 1 3所述的装置, 其特征在于, 所述切换单元包括: 查找模块, 用于当所述重定向组的接口状态全部异常时, 按照优先级顺 序查找其他重定向组, 并将查找结果通知第二处理模块;  The device according to claim 13, wherein the switching unit comprises: a searching module, configured to: when the interface states of the redirecting group are all abnormal, search for other redirecting groups according to a priority order, And notifying the second processing module of the search result;
第二处理模块, 用于接收所述查找模块的查找结果, 将经过所述状态异 常的接口的流量切换到其他存在状态正常接口的优先级最高的重定向组的 所述状态正常的接口; 当所述状态异常的接口状态重新正常后, 再将所述 流量切换回该接口。  a second processing module, configured to receive the search result of the search module, and switch the traffic of the interface that is in the abnormal state to the normal state interface of the redirect group with the highest priority of the other normal state interface; After the abnormal state of the interface state is normal, the traffic is switched back to the interface.
PCT/CN2012/083348 2012-01-17 2012-10-23 Policy based routing method and device WO2013107196A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12866356.4A EP2775676B1 (en) 2012-01-17 2012-10-23 Policy based routing method and device
US14/294,949 US9942138B2 (en) 2012-01-17 2014-06-03 Method and device for policy based routing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210013864.8A CN102447639B (en) 2012-01-17 2012-01-17 A kind of policy routing method and device
CN201210013864.8 2012-01-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/294,949 Continuation US9942138B2 (en) 2012-01-17 2014-06-03 Method and device for policy based routing

Publications (1)

Publication Number Publication Date
WO2013107196A1 true WO2013107196A1 (en) 2013-07-25

Family

ID=46009740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083348 WO2013107196A1 (en) 2012-01-17 2012-10-23 Policy based routing method and device

Country Status (4)

Country Link
US (1) US9942138B2 (en)
EP (1) EP2775676B1 (en)
CN (1) CN102447639B (en)
WO (1) WO2013107196A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447639B (en) 2012-01-17 2016-03-09 华为技术有限公司 A kind of policy routing method and device
CN105281929B (en) * 2014-06-04 2018-10-02 中国科学院声学研究所 A kind of service network interface state-detection and fault-tolerant devices and methods therefor
CN104065516A (en) * 2014-07-03 2014-09-24 上海自仪泰雷兹交通自动化系统有限公司 Double-ring switching method for DCS backbone network
GB2532492A (en) 2014-11-21 2016-05-25 Ibm A broker service apparatus for controlling a mobile device
CN107404439B (en) 2016-05-18 2020-02-21 华为技术有限公司 Method and system for redirecting data streams, network device and control device
CN109889411B (en) * 2019-03-22 2020-09-11 新华三技术有限公司 Data transmission method and device
CN110519076A (en) * 2019-07-25 2019-11-29 新华三大数据技术有限公司 It is connect with bgp neighbor equipment and disconnects method, apparatus and interactive system
CN111431798B (en) * 2020-03-31 2022-07-12 新华三信息安全技术有限公司 Route switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040141463A1 (en) * 2003-01-16 2004-07-22 Swarup Acharya Data path provisioning in a reconfigurable data network
CN101707570A (en) * 2009-12-17 2010-05-12 杭州华三通信技术有限公司 Load balancing method and equipment in VRRP scene
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device

Family Cites Families (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751191B1 (en) * 1999-06-29 2004-06-15 Cisco Technology, Inc. Load sharing and redundancy scheme
WO2001076266A1 (en) * 2000-03-31 2001-10-11 British Telecommunications Public Limited Company Method of determining network paths
JP3654158B2 (en) * 2000-08-09 2005-06-02 日本電気株式会社 Packet transfer path control apparatus and packet transfer path control method used therefor
US7242665B2 (en) * 2001-01-25 2007-07-10 Ericsson Ab Network device virtual interface
US7254138B2 (en) * 2002-02-11 2007-08-07 Optimum Communications Services, Inc. Transparent, look-up-free packet forwarding method for optimizing global network throughput based on real-time route status
US8190766B2 (en) * 2002-05-09 2012-05-29 Broadcom Corporation Across-device communication protocol
DE60233145D1 (en) * 2002-10-31 2009-09-10 Alcatel Lucent Method for processing data packets on layer three in a telecommunication device
US7644177B2 (en) * 2003-02-28 2010-01-05 Cisco Technology, Inc. Multicast-routing-protocol-independent realization of IP multicast forwarding
JP4257151B2 (en) * 2003-02-28 2009-04-22 富士通株式会社 Packet control system, packet control device, packet relay device, and packet control program
US20040218590A1 (en) * 2003-04-30 2004-11-04 Clark Edward Alan Telecommunication network with layered switching fabric
EP1652402B9 (en) * 2003-08-07 2008-09-10 Telecom Italia S.p.A. Packet and optical routing equipment and method
WO2005036839A2 (en) * 2003-10-03 2005-04-21 Avici Systems, Inc. Rapid alternate paths for network destinations
US7756008B2 (en) * 2003-12-19 2010-07-13 At&T Intellectual Property Ii, L.P. Routing protocols with predicted outrage notification
US8213439B2 (en) * 2004-01-30 2012-07-03 Hewlett-Packard Development Company, L.P. Method and system for managing a network having an HSRP group
US8009668B2 (en) * 2004-08-17 2011-08-30 Hewlett-Packard Development Company, L.P. Method and apparatus for router aggregation
US8059551B2 (en) * 2005-02-15 2011-11-15 Raytheon Bbn Technologies Corp. Method for source-spoofed IP packet traceback
CN1881913A (en) * 2005-06-15 2006-12-20 上海贝尔阿尔卡特股份有限公司 User interface multicast managing method in network access equipment and its apparatus
US20060291378A1 (en) * 2005-06-28 2006-12-28 Alcatel Communication path redundancy protection systems and methods
US9654383B2 (en) * 2005-08-17 2017-05-16 Avaya Inc. Route optimization using measured congestion
US7660236B2 (en) * 2006-04-27 2010-02-09 Alcatel Lucent System and method of multi-nodal APS control protocol signaling
WO2008055539A1 (en) * 2006-11-06 2008-05-15 Telefonaktiebolaget Lm Ericsson (Publ) Multi-domain network and method for multi-domain network
US7668081B2 (en) * 2006-11-10 2010-02-23 Alcatel-Lucent Usa Inc. Preemptive transmission protection scheme for data services with high resilience demand
US20080181196A1 (en) * 2007-01-31 2008-07-31 Alcatel Lucent Link aggregation across multiple chassis
US8274983B2 (en) * 2007-03-13 2012-09-25 Alcatel Lucent Low-impact call connection request denial
US7756029B2 (en) * 2007-05-24 2010-07-13 Harris Stratex Networks Operating Corporation Dynamic load balancing for layer-2 link aggregation
CN101083625B (en) * 2007-07-13 2011-04-06 华为技术有限公司 Method and apparatus for expediting link convergence
US8264953B2 (en) * 2007-09-06 2012-09-11 Harris Stratex Networks, Inc. Resilient data communications with physical layer link aggregation, extended failure detection and load balancing
CN101159669A (en) * 2007-10-09 2008-04-09 华为技术有限公司 Service flow switching method and apparatus
US8121032B2 (en) * 2008-05-30 2012-02-21 Cisco Technology, Inc. Efficient convergence of grouped VPN prefixes
US8385335B2 (en) * 2009-05-13 2013-02-26 Avaya Inc. Method and apparatus for providing fast reroute of a unicast packet within a network element to an available port associated with a multi-link trunk
US8619605B2 (en) * 2009-05-13 2013-12-31 Avaya Inc. Method and apparatus for maintaining port state tables in a forwarding plane of a network element
US8401026B2 (en) * 2009-05-18 2013-03-19 Cisco Technology, Inc. Achieving about an equal number of active links across chassis in a virtual port-channel environment
US8102760B2 (en) * 2009-06-30 2012-01-24 Alcatel Lucent Method for reconvergence after failure in a dual-homing network environment
CN101674240B (en) * 2009-09-24 2012-05-09 中兴通讯股份有限公司 Method and device for realizing single-node dual home for distributed system
US8667177B2 (en) * 2010-04-28 2014-03-04 Juniper Networks, Inc. Interface grouping for media access control address pinning in a layer two network
US9491085B2 (en) * 2010-05-24 2016-11-08 At&T Intellectual Property I, L.P. Methods and apparatus to route control packets based on address partitioning
US8582423B2 (en) * 2010-08-04 2013-11-12 Alcatel Lucent Multi-chassis inter-process communication
US8913489B2 (en) * 2010-08-04 2014-12-16 Alcatel Lucent System and method for virtual fabric link failure recovery
US8472447B2 (en) * 2010-08-04 2013-06-25 Alcatel Lucent IP multicast snooping and routing with multi-chassis link aggregation
US8462774B2 (en) * 2010-08-04 2013-06-11 Alcatel Lucent Virtual IP interfaces on multi-chassis link aggregates
US8625596B1 (en) * 2010-09-28 2014-01-07 Juniper Networks, Inc. Multi-chassis topology discovery using in-band signaling
CN102035747A (en) * 2010-12-27 2011-04-27 杭州华三通信技术有限公司 Method and device for forwarding message
US8738757B2 (en) * 2011-01-10 2014-05-27 Telefonaktiebolaget L M Ericsson (Publ) System and method for variable-size table construction applied to a table-lookup approach for load-spreading in forwarding data in a network
US8750095B2 (en) * 2012-06-26 2014-06-10 Cisco Technology, Inc. System and method for protection against edge node failure
US9225549B2 (en) * 2012-08-06 2015-12-29 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Multi-chassis link aggregation in a distributed virtual bridge
US9344359B1 (en) * 2013-09-10 2016-05-17 Juniper Networks, Inc. Ingress protection for multipoint label switched paths

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040141463A1 (en) * 2003-01-16 2004-07-22 Swarup Acharya Data path provisioning in a reconfigurable data network
CN101707570A (en) * 2009-12-17 2010-05-12 杭州华三通信技术有限公司 Load balancing method and equipment in VRRP scene
CN102447639A (en) * 2012-01-17 2012-05-09 华为技术有限公司 Strategy routing method and device

Also Published As

Publication number Publication date
EP2775676A1 (en) 2014-09-10
EP2775676B1 (en) 2016-02-03
US20140289424A1 (en) 2014-09-25
CN102447639B (en) 2016-03-09
EP2775676A4 (en) 2014-11-19
CN102447639A (en) 2012-05-09
US9942138B2 (en) 2018-04-10

Similar Documents

Publication Publication Date Title
US11972306B2 (en) Routing optimizations in a network computing environment
US20230006929A1 (en) Method and system of application-aware routing with crowdsourcing
WO2013107196A1 (en) Policy based routing method and device
EP3213480B1 (en) Content filtering for information centric networks
US9042234B1 (en) Systems and methods for efficient network traffic forwarding
EP3213489B1 (en) Content classification and content marking for information centric networks
EP3605968B1 (en) N:1 stateful application gateway redundancy model
US8289839B2 (en) Scaling BFD sessions for neighbors using physical / sub-interface relationships
US20160248669A1 (en) Systems and methods of inter data center out-bound traffic management
KR20120036903A (en) Inter-node link aggregation system and method
WO2016108140A1 (en) Ccn fragmentation gateway
Cisco Overview of Layer 3 Switching and Software Features
WO2020173541A1 (en) Virtual network function placement in a cloud environment based on historical placement decisions and corresponding performance indicators
US20240205137A1 (en) Method and Apparatus for Telemetry Monitoring of BGP Prefixes in a Network Topology
US20240205130A1 (en) Method and Apparatus for Telemetry Monitoring of BGP Prefixes in a Network Topology
Vadivelu et al. Design and performance analysis of complex switching networks through VLAN, HSRP and link aggregation
WO2024137280A1 (en) Method and apparatus for telemetry monitoring of bgp prefixes in a network topology

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12866356

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2012866356

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE