WO2014029287A1 - Method and device for sharing tunnel load - Google Patents

Method and device for sharing tunnel load Download PDF

Info

Publication number
WO2014029287A1
WO2014029287A1 PCT/CN2013/081308 CN2013081308W WO2014029287A1 WO 2014029287 A1 WO2014029287 A1 WO 2014029287A1 CN 2013081308 W CN2013081308 W CN 2013081308W WO 2014029287 A1 WO2014029287 A1 WO 2014029287A1
Authority
WO
WIPO (PCT)
Prior art keywords
tunnel
load sharing
sharing group
information
group information
Prior art date
Application number
PCT/CN2013/081308
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 中兴通讯股份有限公司
Publication of WO2014029287A1 publication Critical patent/WO2014029287A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Definitions

  • the present invention relates to the field of communications, and in particular to a tunnel load sharing method and apparatus.
  • BACKGROUND In the field of computer data communication, especially a data bearer network, tunnel technology is widely used, and load sharing is a strategy and method for load balancing on multiple links on a network node device.
  • load sharing is a strategy and method for load balancing on multiple links on a network node device.
  • the tunnel load sharing referred to in this application is a strategy and method for load balancing of traffic on multiple network tunnels on network node devices.
  • the tunnel load sharing group currently has two types of formation.
  • the load sharing group formed by the above two methods needs to rely on protocol awareness. Then, the forwarding chip is notified to reselect the effective path to converge, and the tunnel load sharing technology is used, whether on a centralized device or a distributed device. It is very difficult to achieve convergence within 50ms.
  • the protocol-aware tunnel forwarding failure is required, and then the forwarding chip is notified to re-select the effective path to converge. Therefore, there is a defect that the service convergence speed is slow and the forwarding performance is low.
  • a tunnel load sharing method including: a network node detecting an alarm condition of a tunnel, and updating information of an effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information
  • the information is sent by the platform protocol module to the network node.
  • the network node sends the information of the updated effective tunnel to the forwarding chip in the network node.
  • the forwarding chip selects an effective tunnel to load balance the service traffic according to the information.
  • the tunnel load sharing method further includes: each tunnel in the current tunnel load sharing group information of the network node A fast detection module is configured at both ends, and the fast detection module is configured to detect whether the tunnel is valid, and generates an alarm signal when detecting that the tunnel in which the fast detection module is located has a forwarding failure.
  • the tunnel load sharing method further includes: the network node is effective in the current tunnel load sharing group information by the following manner Load balancing the service traffic of the network node on the tunnel: The network node calculates the allowable selection of the current tunnel load sharing group information from the network node to other network nodes according to the obtained loopback address of the tunnel on the other network nodes. The effective tunnel is sent to the forwarding chip. The network node statically selects a valid tunnel allowed by the network node to other network nodes from the current tunnel load sharing group information, and sends the selection result to the forwarding chip.
  • the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: when the network node detects that the tunnel generates an alarm, the network node updates the current tunnel load sharing group information.
  • Information about valid tunnels Preferably, the information that the network node updates the valid tunnel in the current tunnel load sharing group information includes: the network node queries the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determines the tunnel. Whether it belongs to the tunnel in the current tunnel load sharing group information.
  • the network node uses the effective tunnel in the current tunnel load sharing group information.
  • the information of the tunnel is deleted from the information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated.
  • the tunnel load sharing method further includes: receiving, by the network node, the first tunnel load sharing group sent by the platform protocol module
  • the information of the first tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects the tunnel generating alarm.
  • the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: when the network node detects that the alarm generated by the tunnel disappears, the network node updates the current tunnel load sharing group. Information about valid tunnels in the message.
  • the network node updates the information of the effective tunnel in the current tunnel load sharing group information, including: the network node queries the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel in which the alarm is lost, and determines the alarm. Whether the disappearing tunnel belongs to the tunnel in the current tunnel load sharing group information; If the tunnel whose alarm is lost belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding, the network node adds the information of the tunnel whose alarm disappears to the current tunnel load sharing group information.
  • the tunnel load sharing method further includes: the network node receiving the second tunnel load sharing group sent by the platform protocol module
  • the information of the second tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunnel alarm has disappeared.
  • a tunnel load sharing apparatus including: an update module, configured to detect an alarm condition of a tunnel, and update information of an effective tunnel in the current tunnel load sharing group information, where the tunnel The load sharing group information is sent by the platform protocol module to the network node; the sending module is configured to send the updated effective tunnel information to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel to perform service traffic according to the information. Load balancing.
  • the tunnel load sharing device further includes: a fast detecting module, configured at each end of each tunnel in the current tunnel load sharing group information, configured to detect whether the tunnel is valid, and detecting that the tunnel in which the fast detecting module is located appears When the forwarding fails, an alarm signal is generated.
  • the updating module comprises: a first updating unit, configured to update the information of the effective tunnel in the current tunnel load sharing group information if the tunnel generating alarm is detected.
  • the first update unit includes: a first determining sub-unit, configured to query a relationship between a tunnel number and a tunnel load sharing group index in the tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, to determine whether the tunnel belongs to the current tunnel load
  • the tunnel in the group information is shared.
  • the first update sub-unit is set to be effective in the current tunnel load sharing group information when the tunnel belongs to the tunnel in the current tunnel load sharing group information and the forwarding state of the tunnel is valid.
  • the tunnel information is deleted from the tunnel information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated.
  • the tunnel load sharing device further includes: a first receiving module, configured to receive the first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information is that the platform protocol module detects the tunnel generating alarm After the regenerated tunnel load sharing group information.
  • the updating module comprises: a second updating unit, configured to update the information of the effective tunnel in the current tunnel load sharing group information if the alarm generated by the tunnel disappears.
  • the second update unit includes: a second determining sub-unit, configured to query, according to the tunnel number of the tunnel in which the alarm is lost, the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel in which the alarm disappears is The tunnel belongs to the current tunnel load sharing group information.
  • the second update sub-unit is set to be the tunnel in the information of the current tunnel load sharing group in the tunnel where the alarm disappears, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding.
  • the tunnel load sharing device further includes: a second receiving module, configured to receive the second tunnel load sharing group information sent by the platform protocol module, where the second tunnel load sharing group information is that the platform protocol module detects that there is a tunnel After the alarm disappears, the regenerated tunnel load sharing group information.
  • the network node may detect the alarm condition of the tunnel to update the information of the effective tunnel in the current tunnel load sharing group information in time, and the tunnel load sharing group information is sent by the platform protocol module to the network node. For example, in the case that the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, delete the tunnel of the alarm from the effective tunnel, and update the current tunnel in time.
  • the information about the effective tunnel in the load sharing group information is sent to the forwarding chip in the network node, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the information, thereby avoiding
  • the network node can re-select the effective tunnel to converge the service, and implement fast convergence of the service, thereby improving the forwarding performance of the network node.
  • FIG. 3 is another block diagram according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of an update module according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of another tunnel load sharing method according to an embodiment of the present invention; and
  • FIG. 8 is still another embodiment according to an embodiment of the present invention.
  • the tunnel load sharing method includes steps S102 to S104.
  • Step S102 The network node detects the alarm condition of the tunnel, and updates the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node.
  • Step S104 The network node sends the information of the updated effective tunnel to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel to load balance the service traffic according to the information.
  • the network node can detect the alarm condition of the tunnel, and timely update the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node, for example, If the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, delete the alarmed tunnel from the effective tunnel, and update the current tunnel load sharing group.
  • the information of the effective tunnel in the information is sent to the forwarding chip in the network node, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the foregoing information, thereby avoiding protocol awareness.
  • the network node can re-select the effective tunnel for service convergence, which achieves fast convergence of services and improves the forwarding performance of the network node.
  • the network node detects the alarm condition of the tunnel, and updates the information of the effective tunnel in the current tunnel load sharing group information.
  • the network node is configured to configure a fast detection module at each end of each tunnel in the current tunnel load sharing group information, where the fast detection module is configured to detect whether the tunnel is valid, and the tunnel in which the fast detection module is located has a forwarding failure. In the case of an alarm signal.
  • the network node can detect the validity of each tunnel in real time through the fast detection module, and timely detect and generate an alarm signal when the tunnel fails to be forwarded, so that the network node can quickly reselect the effective tunnel for service convergence, so that Effectively improve the service convergence speed of network nodes.
  • the traffic of the network node is load-balanced in the following manner. For example, the network node detects the alarm of the tunnel. And updating the information about the effective tunnel in the current tunnel load sharing group information, the network node calculating the current tunnel load sharing group information from the network node by using a routing protocol according to the obtained loopback address of the tunnel on the other network node.
  • the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: When the network node detects that a tunnel generates an alarm, the network node updates information about the effective tunnel in the current tunnel load sharing group information.
  • the information of the effective tunnel in the current tunnel load sharing group information of the network node can be updated in time, so as to update the information of the effective tunnel on the forwarding chip in real time, so that the forwarding chip can Accurately and efficiently re-select effective tunnels to quickly converge services, thereby improving the forwarding performance of network nodes.
  • the information may be implemented by using the following steps. For example, the information about the valid tunnel in the current tunnel load sharing group information is updated by the network node.
  • the network node is configured to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determine whether the tunnel belongs to the tunnel in the current tunnel load sharing group information; If the tunnel belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel is valid forwarding, the network node deletes the information of the tunnel from the valid tunnel information in the current tunnel load sharing group information, and In the current tunnel load sharing group information, the forwarding state of the tunnel is modified to be invalid forwarding, and information about the effective tunnel in the current tunnel load sharing group information is updated.
  • the information about the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information is used to determine whether the information about the effective tunnel in the previous tunnel load sharing group information needs to be updated to improve the tunnel number of the tunnel. Updates the efficiency of the information of the effective tunnel in the current tunnel load sharing group information.
  • the network node receives the first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information is the tunnel load sharing group information that is generated after the platform protocol module detects the tunnel generating alarm.
  • the platform protocol module detects that a tunnel generates an alarm, Slowly converge, regenerate new tunnel load sharing group information and send it to the network node to update the tunnel load sharing group information on the network node to update the information of the effective tunnel sent by the network node to the forwarding chip.
  • the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: detecting that a tunnel is generated by the network node. When the alarm disappears, the network node updates the information of the effective tunnel in the current tunnel load sharing group information.
  • the information about the effective tunnel in the current tunnel load sharing group information of the network node may be updated in time to update the information of the effective tunnel on the forwarding chip in real time, so that the forwarding chip is implemented.
  • the effective tunnel can be re-selected accurately and efficiently to quickly converge the traffic, thereby improving the forwarding performance of the network node.
  • the information that the network node updates the valid tunnel in the current tunnel load sharing group information includes: the network node disappears according to the alarm.
  • the tunnel number of the tunnel is used to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel whose alarm disappears belongs to the tunnel in the current tunnel load sharing group information.
  • the tunnel load sharing group information if the forwarding state of the tunnel where the alarm disappears is invalid forwarding, the network node adds the information of the tunnel where the alarm disappears to the valid tunnel information in the current tunnel load sharing group information. And in the current tunnel load sharing group information, the forwarding state of the tunnel in which the alarm disappears is modified to be effectively forwarded, and the information of the effective tunnel in the current tunnel load sharing group information is updated again.
  • the network node receives the second tunnel load sharing group information sent by the platform protocol module, where the second tunnel load sharing group information is the tunnel load sharing group information that is generated after the platform protocol module detects that the tunneling alarm disappears. . That is, when the platform protocol module detects that the alarm of the tunnel disappears, the slow convergence is performed, and the new tunnel load sharing group information is regenerated to be sent to the network node to update the tunnel load sharing group information on the network node to update. Information about the effective tunnel sent by the network node to the forwarding chip.
  • a tunnel load sharing device is provided.
  • the tunnel load sharing device includes: an update module 202, configured to detect an alarm condition of the tunnel, and update the current tunnel load sharing group information.
  • the information of the effective tunnel wherein the tunnel load sharing group information is sent by the platform protocol module to the network node; the sending module 204 is connected to the updating module 202, and configured to send the updated effective tunnel information to the network node.
  • the forwarding chip wherein the forwarding chip selects an effective tunnel according to the information to load balance the service traffic.
  • the update module 202 can detect the alarm condition of the tunnel to update the information of the effective tunnel in the current tunnel load sharing group information in time, and the tunnel load sharing group information is sent by the platform protocol module to the network node.
  • the network node can detect the alarm generated by the tunnel, and delete the tunnel of the alarm from the effective tunnel, and timely update the current tunnel.
  • the information about the effective tunnel in the tunnel load sharing group information is sent to the forwarding chip in the network node by the sending module 204, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the above information, thereby avoiding load balancing.
  • the network node After the protocol senses that the tunnel has failed to be forwarded, the network node can reselect the effective tunnel for service convergence, and achieve fast convergence of the service, thereby improving the forwarding performance of the network node.
  • the tunnel load sharing device further includes: a fast detection module 206, configured in the current tunnel The two ends of each tunnel in the load sharing group information are set to detect whether the tunnel is valid, and generate an alarm signal when detecting that the tunnel in which the fast detecting module is located fails to be forwarded.
  • the forwarding performance of the network node is effectively improved.
  • the update module 202 includes: a first update unit 2022, configured to detect that a tunnel is detected. In the case of generating an alarm, the information of the effective tunnel in the current tunnel load sharing group information is updated. In order to quickly update the information of the effective tunnel in the current tunnel load sharing group information, in the preferred embodiment, the following steps may be implemented. For example, as shown in FIG.
  • the first updating unit 2022 includes: The determining sub-unit 402 is configured to query the relationship between the tunnel number and the tunnel load sharing group index in the tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determine whether the tunnel belongs to the tunnel in the current tunnel load sharing group information;
  • the sub-unit 404 is connected to the first judging sub-unit 402, and is set to be effective in the current tunnel load sharing group information when the tunnel belongs to the tunnel in the current tunnel load sharing group information and the forwarding state of the tunnel is valid forwarding.
  • the tunnel information is deleted from the tunnel information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated.
  • the tunnel load sharing device further includes: a first receiving module 208, configured to receive a platform protocol.
  • the first tunnel load sharing group information sent by the module where the first tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects the tunnel generating alarm.
  • the foregoing update module 202 includes: a second update unit 2024, configured to update the current situation when it is detected that the alarm generated by the tunnel disappears. Information about the effective tunnel in the tunnel load sharing group information.
  • the second updating unit 2024 includes: a second determining subunit 406, configured to be configured according to an alarm.
  • the tunnel number of the lost tunnel is used to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel whose alarm disappears belongs to the tunnel in the current tunnel load sharing group information.
  • the second update subunit 408 is connected.
  • the second judging sub-unit 406 is configured to add the information of the tunnel in which the alarm disappears to the tunnel in which the alarm disappears belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding.
  • the tunnel load sharing device further includes: a second receiving module 210, configured to receive a platform protocol.
  • the second tunnel load sharing group information sent by the module where the second tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunneling alarm has disappeared.
  • the network node uses a PE device as an example to describe the tunnel load sharing method.
  • FIG. 7 is a flowchart of another tunnel load sharing method according to an embodiment of the present invention. The flow includes steps S702 to S712.
  • Step S702 Establish a scenario of tunnel load sharing. Take the scenario shown in Figure 6 as an example. There are two PE devices, PE1 and PE2, and there are several P devices or no P devices. Several bidirectional tunnels are established between PE1 and PE2.
  • the tunnel can be a dynamic rsvp te tunnel or a static tmpls tunnel. Configure the fast detection module on the first and second ends of each tunnel. If it is an rsvp-te tunnel, you can configure tunnel bfd.
  • Step S704 Configure the traffic forwarding in the tunnel load sharing group (corresponding to the current tunnel load sharing group information) on the PE1.
  • the service can be an L2vpn or a 13vpn service.
  • Each tunnel is interfaced and involved in the routing operation.
  • the routing protocol advertises the loopback address of the tunnel on the PE2 (assuming the ringback address of the abcd tunnel) to the PE1 device.
  • the operation finally causes the four route exits abcd on PE1 to go to the tunnel load sharing group.
  • Step S706 When one or more tunnel forwarding paths in the tunnel load sharing group on the PE1 are invalid, the fast detection of the PE1 generates an alarm. After receiving the alarm, the PE1 searches for the tunnel number and the tunnel according to the tunnel number of the tunnel that generates the alarm.
  • the load sharing index relationship table is used to determine whether the tunnel in which the alarm is generated exists in a tunnel load sharing group table (corresponding to the current tunnel load sharing group information) stored in the PE1, and whether the tunnel forwarding state recorded in the table is effectively forwarded.
  • PE1 will generate an alarm from the tunnel load sharing group table valid entry (equivalent The above valid tunnel information is removed, and all the valid tunnel information in the tunnel load sharing group table is integrated to update the forwarding chip.
  • the tunnel forwarding state in the tunnel load sharing group table is modified to an invalid forwarding state. That is, PE1 re-selects the tunnels in the tunnel load sharing group table and updates the forwarding entries on the forwarding chip, so that the traffic of PE1 to PE2 is converged within 50 ms.
  • Step S708 When the platform protocol module receives the alarm sent by the fast detection module, performs slow convergence, forms a new tunnel load sharing group table and sends it to PE1, and PE1 re-integrates all valid tunnel member information and updates the integrated information to Forwarding chip.
  • Step S710 After the tunnel that failed to be forwarded on the PE1 is resumed and forwarded, the PE1 adds the tunnel to the valid tunnel entry of the tunnel load sharing group table after receiving the alarm disappearing message sent by the fast detecting module, and integrates all valid tunnels. The information is updated to the forwarding chip. The forwarding state of the tunnel in the tunnel load sharing group table is modified to a valid forwarding state.
  • FIG. 8 is a flowchart of still another tunnel load sharing method according to an embodiment of the present invention. As shown in FIG. 8, the process includes steps S802 to S818.
  • Step S802 According to the tunnel load sharing group data (corresponding to the current tunnel load sharing group information) delivered by the platform protocol module, the network node saves the correspondence between all the member tunnel numbers and the tunnel load sharing group index, and saves each tunnel member.
  • the forwarding state is selected, and information of all valid tunnels in the tunnel load sharing group is selected and sent to the forwarding chip.
  • the network node configures the service traffic on the network node to be forwarded through the tunnel in the tunnel load sharing group, and is at the beginning and the end of each tunnel.
  • the fast detection module is configured on the 2nd end to detect whether the tunnel has failed. When an invalidity is detected, an alarm is generated.
  • Step S804 The network node determines whether the tunnel alarm of the fast detection module is received. If yes, the process goes to step S806, otherwise, the process goes to step S812.
  • Step S806 The network node searches the tunnel number and the load sharing index relationship table according to the tunnel number of the tunnel that generates the alarm, and determines whether the tunnel that generates the alarm exists in a tunnel load sharing group table saved by the network node (corresponding to the current tunnel load) In the sharing group information, whether the forwarding state of the tunnel recorded in the table is a valid forwarding state, if the tunnel exists in a tunnel load sharing group table held by the network node, and the tunnel forwarding state recorded in the table If it is a valid forwarding state, go to step S808, otherwise, go to step
  • Step S808 The network node removes the tunnel that generates the alarm from the valid entry of the tunnel load sharing group table (corresponding to the valid tunnel information), and updates the information of all the valid tunnels in the integrated tunnel load sharing group table to the forwarding chip.
  • the forwarding state of the tunnel in the tunnel load sharing group table is modified to an invalid forwarding state.
  • Step S810 The platform protocol module receives the tunnel alarm of the fast detection module, performs slow convergence, forms a new tunnel load sharing group table and sends the packet to the network node, and proceeds to step S802.
  • Step S812 The network node determines whether the message that the tunnel alarm sent by the tunnel fast detecting module disappears, and if yes, goes to step S814; otherwise, the process goes to step S804.
  • Step S814 The network node searches the tunnel number and the load sharing group index relationship table according to the tunnel number of the tunnel in which the alarm disappears, and determines whether the tunnel whose alarm disappears exists in a tunnel load sharing group saved by the network node, and the tunnel recorded in the table Whether the forwarding state is an invalid forwarding state, if yes, go to step S816, otherwise, go to step S804.
  • Step S816 The network node adds the tunnel whose alarm disappears to the valid tunnel entry of the tunnel load sharing group table, and updates the information of all valid tunnels in the integrated tunnel load sharing group table to the forwarding chip. The forwarding state of the tunnel in the tunnel load sharing group table is modified to a valid forwarding state.
  • Step S818 The platform protocol module receives the message that the alarm sent by the tunnel fast detection module disappears, performs slow convergence, forms a new tunnel load sharing group table and sends the packet to the network node, and proceeds to step S802.
  • the network node can detect the alarm condition of the tunnel, and timely update the information of the effective tunnel in the current tunnel load sharing group information, and the tunnel load sharing The group information is sent by the platform protocol module to the network node. For example, in the case that the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, and the tunnel of the alarm is generated.
  • embodiments of the invention are not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

The present invention provides a method and a device for sharing tunnel load. The method comprises: a network node detecting an alarm condition of a tunnel, and updating effective tunnel information in current tunnel load sharing group information, the tunnel load sharing group information being sent to the network node by a platform protocol module; and the network node sending the updated effective tunnel information to a forwarding chip in the network node, so that the forwarding chip selects, according to the information, an effective tunnel to perform load balancing of service traffic. The present invention solves a problem of slow service convergence when a forwarding failure occurs in a tunnel in a tunnel load sharing group in the prior art, and achieves quick service convergence, thereby improving forwarding performance of a network node.

Description

隧道负荷分担方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种隧道负荷分担方法及装置。 背景技术 在计算机数据通讯领域, 尤其是数据承载网, 隧道技术的应用非常广泛, 而负荷 分担是一种在网络节点设备上, 在多条链路上进行负载均衡的策略和方法。 当分组报 文处理节点发现被转发的报文可以通过多条路径向外转发时, 如何合理地选择一条路 径, 使得网络节点达到较高的转发性能或者满足一定的转发需求, 这是负荷分担需要 解决的问题。 本申请所指的隧道负荷分担, 是在网络节点设备上, 业务流量在多条隧 道上进行负载均衡的一种策略和方法。 隧道负荷分担组目前有 2种形成方式, 一种是由路由协议计算出多条隧道出口形 成, 另外一种是静态绑定若干条隧道形成, 当隧道负荷分担组中一条或多条隧道转发 路径失效时, 上述 2种方式形成的负荷分担组都需要依赖于协议感知, 然后, 通知转 发芯片重新选择有效路径来进行收敛, 通过该隧道负荷分担技术, 无论是在集中式设 备还是分布式设备上, 做到 50ms 内收敛都是非常困难的。 在相关隧道负荷分担技术 中, 由于需要协议感知隧道转发失效, 然后再通知转发芯片重新选择有效路径来进行 收敛, 因此, 存在业务收敛速度慢, 转发性能低的缺陷。 针对相关技术中上述至少之一的问题, 目前尚未提出有效的解决方案。 发明内容 本发明实施例提供了一种隧道负荷分担方法及装置, 以至少解决相关技术中在隧 道负荷分担组中的隧道出现转发失效时, 业务收敛速度慢的问题。 根据本发明实施例的一个方面, 提供了一种隧道负荷分担方法, 包括: 网络节点 检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效隧道的信息, 其中, 隧道负荷分担组信息是由平台协议模块发送给网络节点的; 网络节点将更新后的有效 隧道的信息发送给网络节点中的转发芯片, 其中, 转发芯片根据信息选择有效隧道对 业务流量进行负载均衡。 优选地, 在网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中 有效隧道的信息之前, 上述隧道负荷分担方法还包括: 网络节点在当前隧道负荷分担 组信息中的每一条隧道的两端配置快速检测模块, 快速检测模块设置为检测隧道是否 有效, 并在检测到快速检测模块所在的隧道出现转发失效的情况下, 产生告警信号。 优选地, 在网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中 有效隧道的信息之前, 上述隧道负荷分担方法还包括: 网络节点通过以下方式在当前 隧道负荷分担组信息中有效隧道上对网络节点的业务流量进行负载均衡: 网络节点根 据获取的其他网络节点上隧道的环回口地址, 通过路由协议运算出当前隧道负荷分担 组信息中从网络节点到其他网络节点允许选择的有效隧道, 并将运算结果发送给转发 芯片; 网络节点从当前隧道负荷分担组信息中静态选择由网络节点到其他网络节点允 许选择的有效隧道, 并将选择结果发送给转发芯片。 优选地, 网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有 效隧道的信息包括: 在网络节点检测到有隧道产生告警的情况下, 网络节点更新当前 隧道负荷分担组信息中有效隧道的信息。 优选地, 网络节点更新当前隧道负荷分担组信息中有效隧道的信息包括: 网络节 点根据产生告警的隧道的隧道号查询当前隧道负荷分担组信息中隧道号与隧道负荷分 担组索引的关系, 判断隧道是否属于当前隧道负荷分担组信息中的隧道; 在隧道属于 当前隧道负荷分担组信息中的隧道, 且隧道的转发状态为有效转发的情况下, 网络节 点从当前隧道负荷分担组信息中的有效隧道信息中删除隧道的信息, 并在当前隧道负 荷分担组信息中将隧道的转发状态修改为失效转发, 更新当前隧道负荷分担组信息中 有效隧道的信息。 优选地, 在网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中 有效隧道的信息之后, 上述隧道负荷分担方法还包括: 网络节点接收平台协议模块发 送的第一隧道负荷分担组信息, 其中, 第一隧道负荷分担组信息是平台协议模块检测 到隧道产生告警后, 重新生成的隧道负荷分担组信息。 优选地, 网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有 效隧道的信息包括: 在网络节点检测到有隧道产生的告警消失的情况下, 网络节点更 新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 网络节点更新当前隧道负荷分担组信息中有效隧道的信息包括: 网络节 点根据告警消失的隧道的隧道号查询当前隧道负荷分担组信息中隧道号与隧道负荷分 担组索引的关系, 判断告警消失的隧道是否属于当前隧道负荷分担组信息中的隧道; 在告警消失的隧道属于当前隧道负荷分担组信息中的隧道, 且告警消失的隧道的转发 状态为失效转发的情况下, 网络节点将告警消失的隧道的信息添加到当前隧道负荷分 担组信息中的有效隧道信息中, 并在当前隧道负荷分担组信息中将告警消失的隧道的 转发状态修改为有效转发, 更新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 在网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中 有效隧道的信息之后, 上述隧道负荷分担方法还包括: 网络节点接收平台协议模块发 送的第二隧道负荷分担组信息, 其中, 第二隧道负荷分担组信息是平台协议模块检测 到有隧道的告警消失后, 重新生成的隧道负荷分担组信息。 根据本发明实施例的另一方面, 提供了一种隧道负荷分担装置, 包括: 更新模块, 设置为检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效隧道的信息, 其中, 隧道负荷分担组信息是由平台协议模块发送给网络节点的; 发送模块, 设置为 将更新后的有效隧道的信息发送给网络节点中的转发芯片, 其中, 转发芯片根据信息 选择有效隧道对业务流量进行负载均衡。 优选地, 上述隧道负荷分担装置还包括: 快速检测模块, 配置于当前隧道负荷分 担组信息中的每一条隧道的两端, 设置为检测隧道是否有效, 并在检测到快速检测模 块所在的隧道出现转发失效的情况下, 产生告警信号。 优选地, 更新模块包括: 第一更新单元, 设置为在检测到有隧道产生告警的情况 下, 更新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 第一更新单元包括: 第一判断子单元, 设置为根据产生告警的隧道的隧 道号查询隧道负荷分担组信息中隧道号与隧道负荷分担组索引的关系, 判断隧道是否 属于当前隧道负荷分担组信息中的隧道; 第一更新子单元, 设置为在隧道属于当前隧 道负荷分担组信息中的隧道, 且隧道的转发状态为有效转发的情况下, 从当前隧道负 荷分担组信息中的有效隧道信息中删除隧道的信息, 并在当前隧道负荷分担组信息中 将隧道的转发状态修改为失效转发,更新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 上述隧道负荷分担装置还包括: 第一接收模块, 设置为接收平台协议模 块发送的第一隧道负荷分担组信息, 其中, 第一隧道负荷分担组信息是平台协议模块 检测到隧道产生告警后, 重新生成的隧道负荷分担组信息。 优选地, 更新模块包括: 第二更新单元, 设置为在检测到有隧道产生的告警消失 的情况下, 更新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 第二更新单元包括: 第二判断子单元, 设置为根据告警消失的隧道的隧 道号查询当前隧道负荷分担组信息中隧道号与隧道负荷分担组索引的关系, 判断告警 消失的隧道是否属于当前隧道负荷分担组信息中的隧道; 第二更新子单元, 设置为在 告警消失的隧道属于当前隧道负荷分担组信息中的隧道, 且告警消失的隧道的转发状 态为失效转发的情况下, 将告警消失的隧道的信息添加到当前隧道负荷分担组信息中 的有效隧道信息中, 并在当前隧道负荷分担组信息中将告警消失的隧道的转发状态修 改为有效转发, 更新当前隧道负荷分担组信息中有效隧道的信息。 优选地, 上述隧道负荷分担装置还包括: 第二接收模块, 设置为接收平台协议模 块发送的第二隧道负荷分担组信息, 其中, 第二隧道负荷分担组信息是平台协议模块 检测到有隧道的告警消失后, 重新生成的隧道负荷分担组信息。 在本发明实施例中, 网络节点可以检测隧道的告警情况, 来及时地更新当前的隧 道负荷分担组信息中有效隧道的信息, 该隧道负荷分担组信息是由平台协议模块发送 给网络节点的, 例如, 在上述当前隧道负荷分担组信息中的隧道出现转发失效的情况 下, 网络节点可以检测到该隧道产生的告警, 并将该告警的隧道从有效隧道中删除, 以及时地更新当前的隧道负荷分担组信息中有效隧道的信息, 然后, 将更新后的有效 隧道的信息发送给所述网络节点中的转发芯片, 由转发芯片根据上述信息选择有效隧 道对业务流量进行负载均衡, 避免了由协议感知到隧道出现转发失效后, 网络节点才 能重新选择有效隧道进行业务收敛的情况, 实现了业务的快速收敛, 从而提高网络节 点的转发性能。 附图说明 此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在 附图中- 图 1是根据本发明实施例的隧道负荷分担方法的流程图; 图 2是根据本发明实施例的隧道负荷分担装置的结构框图; 图 3是根据本发明实施例的另一种隧道负荷分担装置的结构框图; 图 4是根据本发明实施例的更新模块的结构框图; 图 5是根据本发明实施例的又一种隧道负荷分担装置的结构框图; 图 6是根据本发明实施例的隧道负荷分担应用场景的示意图; 图 7是根据本发明实施例的另一种隧道负荷分担方法的流程图; 以及 图 8是根据本发明实施例的又一种隧道负荷分担方法的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本实施例提供了一种隧道负荷分担方法, 如图 1所示, 该隧道负荷分担方法包括 步骤 S102至步骤 S104。 步骤 S102: 网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中 有效隧道的信息, 其中, 隧道负荷分担组信息是由平台协议模块发送给网络节点的。 步骤 S104: 网络节点将更新后的有效隧道的信息发送给网络节点中的转发芯片, 其中, 转发芯片根据信息选择有效隧道对业务流量进行负载均衡。 通过上述步骤, 网络节点可以检测隧道的告警情况, 来及时地更新当前的隧道负 荷分担组信息中有效隧道的信息, 该隧道负荷分担组信息是由平台协议模块发送给网 络节点的, 例如, 在上述当前隧道负荷分担组信息中的隧道出现转发失效的情况下, 网络节点可以检测到该隧道产生的告警, 并将该告警的隧道从有效隧道中删除, 以及 时地更新当前的隧道负荷分担组信息中有效隧道的信息, 然后, 将更新后的有效隧道 的信息发送给所述网络节点中的转发芯片, 由转发芯片根据上述信息选择有效隧道对 业务流量进行负载均衡, 避免了由协议感知到隧道出现转发失效后, 网络节点才能重 新选择有效隧道进行业务收敛的情况, 实现了业务的快速收敛, 从而提高了网络节点 的转发性能。 为了及时检测到每条隧道的有效情况, 有效提高网络节点的业务收敛速度, 在本 优选实施例中, 在网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息 中有效隧道的信息之前, 上述网络节点在上述当前隧道负荷分担组信息中的每一条隧 道的两端配置快速检测模块, 该快速检测模块设置为检测隧道是否有效, 并在检测到 快速检测模块所在的隧道出现转发失效的情况下, 产生告警信号。 因此, 网络节点可 以通过快速检测模块实时检测每一条隧道的有效情况, 并在隧道出现转发失效时, 及 时检测到并产生告警信号, 以使得网络节点可以迅速地重新选择有效隧道进行业务收 敛, 以便有效地提高网络节点的业务收敛速度。 为了通过当前的隧道负荷分担组信息中有效隧道来对上述网络节点的业务流量进 行负载均衡, 在本优选实施例中, 可以通过以下方式来实现, 例如, 在上述网络节点 检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效隧道的信息之前, 上 述网络节点根据获取的其他网络节点上隧道的环回口地址, 通过路由协议运算出上述 当前隧道负荷分担组信息中从上述网络节点到其他网络节点允许选择的有效隧道, 并 将运算结果发送给上述转发芯片; 上述网络节点从上述当前隧道负荷分担组信息中静 态选择由上述网络节点到上述其他网络节点允许选择的有效隧道, 并将选择结果发送 给转发芯片。 为了实时更新转发芯片的有效隧道信息, 有效提高网络节点的转发性能, 在本优 选实施例中, 上述网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息 中有效隧道的信息包括: 在上述网络节点检测到有隧道产生告警的情况下, 该网络节 点更新上述当前隧道负荷分担组信息中有效隧道的信息。 实现了在网络节点检测到有 隧道产生告警的情况下, 可以及时更新该网络节点的当前隧道负荷分担组信息中有效 隧道的信息, 以便实时地更新转发芯片上有效隧道的信息,使得转发芯片可以准确地、 有效地重新选择有效隧道来快速地收敛业务, 从而提高网络节点的转发性能。 为了快速地完成更新当前的隧道负荷分担组信息中有效隧道的信息, 在本优选实 施例中, 可以通过以下步骤来实现, 例如, 上述网络节点更新当前隧道负荷分担组信 息中有效隧道的信息包括: 上述网络节点根据产生告警的隧道的隧道号查询当前隧道 负荷分担组信息中隧道号与隧道负荷分担组索引的关系, 判断上述隧道是否属于上述 当前隧道负荷分担组信息中的隧道; 在上述隧道属于上述当前隧道负荷分担组信息中 的隧道, 且上述隧道的转发状态为有效转发的情况下, 上述网络节点从上述当前隧道 负荷分担组信息中的有效隧道信息中删除上述隧道的信息, 并在上述当前隧道负荷分 担组信息中将上述隧道的转发状态修改为失效转发, 完成更新上述当前隧道负荷分担 组信息中有效隧道的信息。 通过根据产生告警的隧道的隧道号来查询当前隧道负荷分 担组信息中的隧道号与隧道负荷分担组索引的关系来判断是否需要跟新上述前隧道负 荷分担组信息中有效隧道的信息, 以提高更新当前的隧道负荷分担组信息中有效隧道 的信息的效率。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 在上述网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效 隧道的信息之后, 该网络节点接收平台协议模块发送的第一隧道负荷分担组信息, 其 中, 该第一隧道负荷分担组信息是上述平台协议模块检测到隧道产生告警后, 重新生 成的隧道负荷分担组信息。 即在平台协议模块检测到有隧道产生告警的情况下, 进行 慢速收敛, 重新生成新的隧道负荷分担组信息发送给网络节点, 来更新网络节点上的 隧道负荷分担组信息, 以更新上述网络节点发送给转发芯片的有效隧道的信息。 为了满足不同应用场景的需求, 在本优选实施例中, 上述网络节点检测隧道的告 警情况, 并更新当前的隧道负荷分担组信息中有效隧道的信息包括: 在上述网络节点 检测到有隧道产生的告警消失的情况下, 该网络节点更新当前隧道负荷分担组信息中 有效隧道的信息。 实现了在上述网络节点检测到有隧道产生告警的情况下, 可以及时 更新该网络节点的当前隧道负荷分担组信息中有效隧道的信息, 以便实时地更新转发 芯片上有效隧道的信息, 使得转发芯片可以准确地、 有效地重新选择有效隧道来快速 地收敛业务, 从而提高网络节点的转发性能。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 上述网络节点更新上述当前隧道负荷分担组信息中有效隧道的信息包括: 上述网 络节点根据告警消失的隧道的隧道号查询上述当前隧道负荷分担组信息中隧道号与隧 道负荷分担组索引的关系, 判断上述告警消失的隧道是否属于当前隧道负荷分担组信 息中的隧道; 在该告警消失的隧道属于当前隧道负荷分担组信息中的隧道, 且该告警 消失的隧道的转发状态为失效转发的情况下, 上述网络节点将该告警消失的隧道的信 息添加到当前隧道负荷分担组信息中的有效隧道信息中, 并在上述当前隧道负荷分担 组信息中将上述告警消失的隧道的转发状态修改为有效转发, 再次完成更新当前隧道 负荷分担组信息中有效隧道的信息。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 在上述网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效 隧道的信息之后, 上述网络节点接收平台协议模块发送的第二隧道负荷分担组信息, 其中, 该第二隧道负荷分担组信息是上述平台协议模块检测到有隧道的告警消失后, 重新生成的隧道负荷分担组信息。 即在上述平台协议模块检测到有隧道的告警消失的 情况下, 进行慢速收敛, 重新生成新的隧道负荷分担组信息发送给网络节点, 来更新 网络节点上的隧道负荷分担组信息, 以更新上述网络节点发送给转发芯片的有效隧道 的信息。 在本优选实施例中, 提供了一种隧道负荷分担装置, 如图 2所示, 该隧道负荷分 担装置包括: 更新模块 202, 设置为检测隧道的告警情况, 并更新当前的隧道负荷分 担组信息中有效隧道的信息, 其中, 隧道负荷分担组信息是由平台协议模块发送给网 络节点的; 发送模块 204, 连接至更新模块 202, 设置为将更新后的有效隧道的信息发 送给网络节点中的转发芯片, 其中, 转发芯片根据信息选择有效隧道对业务流量进行 负载均衡。 在本优选实施例中, 更新模块 202可以检测隧道的告警情况, 来及时地更新当前 的隧道负荷分担组信息中有效隧道的信息, 该隧道负荷分担组信息是由平台协议模块 发送给网络节点的, 例如, 在上述当前隧道负荷分担组信息中的隧道出现转发失效的 情况下, 网络节点可以检测到该隧道产生的告警, 并将该告警的隧道从有效隧道中删 除, 以及时地更新当前的隧道负荷分担组信息中有效隧道的信息,然后,发送模块 204 将更新后的有效隧道的信息发送给网络节点中的转发芯片, 由转发芯片根据上述信息 选择有效隧道对业务流量进行负载均衡, 避免了由协议感知到隧道出现转发失效后, 网络节点才能重新选择有效隧道进行业务收敛的情况, 实现了业务的快速收敛, 从而 提高了网络节点的转发性能。 为了及时检测到每条隧道的有效情况, 有效提高网络节点的业务收敛速度, 在本 优选实施例中, 如图 3所示, 上述隧道负荷分担装置还包括: 快速检测模块 206, 配 置于当前隧道负荷分担组信息中的每一条隧道的两端, 设置为检测隧道是否有效, 并 在检测到快速检测模块所在的隧道出现转发失效的情况下, 产生告警信号。 为了实时更新转发芯片的有效隧道信息, 有效提高网络节点的转发性能, 在本优 选实施例中, 如图 4所示, 上述更新模块 202包括: 第一更新单元 2022, 设置为在检 测到有隧道产生告警的情况下, 更新当前隧道负荷分担组信息中有效隧道的信息。 为了快速地完成更新当前的隧道负荷分担组信息中有效隧道的信息, 在本优选实 施例中,可以通过以下步骤来实现,例如,如图 4所示,上述第一更新单元 2022包括: 第一判断子单元 402, 设置为根据产生告警的隧道的隧道号查询隧道负荷分担组信息 中隧道号与隧道负荷分担组索引的关系, 判断隧道是否属于当前隧道负荷分担组信息 中的隧道; 第一更新子单元 404, 连接至第一判断子单元 402, 设置为在隧道属于当前 隧道负荷分担组信息中的隧道, 且隧道的转发状态为有效转发的情况下, 从当前隧道 负荷分担组信息中的有效隧道信息中删除隧道的信息, 并在当前隧道负荷分担组信息 中将隧道的转发状态修改为失效转发, 更新当前隧道负荷分担组信息中有效隧道的信 息。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 如图 5所示, 上述隧道负荷分担装置还包括: 第一接收模块 208, 设置为接收平 台协议模块发送的第一隧道负荷分担组信息, 其中, 第一隧道负荷分担组信息是平台 协议模块检测到隧道产生告警后, 重新生成的隧道负荷分担组信息。 为了满足不同应用场景的需求, 在本优选实施例中, 如图 4所示, 上述更新模块 202包括: 第二更新单元 2024, 设置为在检测到有隧道产生的告警消失的情况下, 更 新当前隧道负荷分担组信息中有效隧道的信息。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 如图 4所示, 上述第二更新单元 2024包括: 第二判断子单元 406, 设置为根据告 警消失的隧道的隧道号查询当前隧道负荷分担组信息中隧道号与隧道负荷分担组索引 的关系, 判断告警消失的隧道是否属于当前隧道负荷分担组信息中的隧道; 第二更新 子单元 408,连接至第二判断子单元 406, 设置为在告警消失的隧道属于当前隧道负荷 分担组信息中的隧道, 且告警消失的隧道的转发状态为失效转发的情况下, 将告警消 失的隧道的信息添加到当前隧道负荷分担组信息中的有效隧道信息中, 并在当前隧道 负荷分担组信息中将告警消失的隧道的转发状态修改为有效转发, 更新当前隧道负荷 分担组信息中有效隧道的信息。 为了有效地、 合理地利用每条隧道来提高网络节点的转发性能, 在本优选实施例 中, 如图 5所示, 上述隧道负荷分担装置还包括: 第二接收模块 210, 设置为接收平 台协议模块发送的第二隧道负荷分担组信息, 其中, 第二隧道负荷分担组信息是平台 协议模块检测到有隧道的告警消失后, 重新生成的隧道负荷分担组信息。 以下结合附图对上述各个优选实施例进行详细地描述。 在本优选实施例中, 上述网络节点以 PE设备为例, 来描述上述隧道负荷分担方 法, 图 7是根据本发明实施例的另一种隧道负荷分担方法的流程图, 如图 7所示, 该 流程包括步骤 S702至步骤 S712。 步骤 S702: 组建隧道负荷分担的场景。 以图 6所示的场景为例, 其中有 2台 PE 设备, PE1、 PE2, 有若干台 P设备, 也可以没有 P设备。 在 PE1和 PE2之间建立几 条双向隧道, 隧道可以是动态的 rsvp te隧道, 也可以是静态的 tmpls隧道。 在每条隧 道首尾 2端配置快速检测模块, 如果是 rsvp-te隧道, 则可以配置 tunnel bfd, 如果是 tmpls隧道, 可以配置 tmp oam。 当然, 这里只是举例说明, 隧道类型不局限于 tmpls 隧道或者 rsvp te隧道, 本实施例对于其他类型隧道也适用。 步骤 S704: 在 PE1上配置业务流量通过隧道负荷分担组(相当于上述当前隧道负 荷分担组信息) 中的隧道转发。 业务可以是 L2vpn或者 13vpn业务, 将每条隧道接口 化并参与路由运算, 通过路由协议通告 PE2上隧道的环回口地址(假设为 a.b.c.d隧道 的环回口地址)到 PE1设备上, 通过路由协议运算, 最终使得 PE1上 a.b.c.d这四条路 由出口走隧道负荷分担组。 PE2上配置同 PE1。 步骤 S706: PE1上的隧道负荷分担组中的一条或多条隧道转发路径失效时, PE1 端的快速检测产生告警, PE1在接收到告警后, PE1根据产生告警的隧道的隧道号查 找隧道号和隧道负荷分担索引关系表, 判断产生告警的隧道是否存在于 PE1保存的某 个隧道负荷分担组表 (相当于上述当前隧道负荷分担组信息) 中, 且表中记录的隧道 转发状态是否有效转发状态,在上述隧道存在于 PE1保存的某个隧道负荷分担组表中, 且表中记录的上述隧道转发状态是有效转发状态的情况下, PE1 将产生告警的隧道从 隧道负荷分担组表有效条目 (相当于上述有效隧道信息) 中去掉, 并整合隧道负荷分 担组表中所有有效隧道信息更新转发芯片。 并将隧道负荷分担组表中上述隧道转发状 态修改为无效转发状态。 即 PE1重新选择隧道负荷分担组表中有效的隧道, 更新转发 芯片上的转发条目, 从而使 PE1到 PE2的业务流量在 50ms内完成收敛。 步骤 S708: 当平台协议模块收到快速检测模块发送的告警, 进行慢速收敛, 形成 新的隧道负荷分担组表下发给 PE1, PE1重新整合所有有效的隧道成员信息并将整合 的信息更新至转发芯片。 步骤 S710: 当 PE1上的之前转发失效的隧道重新恢复转发, PE1在接收到快速检 测模块发送的告警消失消息后, 将上述隧道加入到隧道负荷分担组表的有效隧道条目 中, 整合所有有效隧道信息并将整合的信息更新至转发芯片。 并将隧道负荷分担组表 中上述隧道的转发状态修改为有效转发状态。 即 PE1重新选择隧道负荷分担组表中所 有有效的隧道, 并快速更新转发芯片上的转发条目。 步骤 S712: 当平台协议模块收到快速检测模块发送的告警消失, 进行慢速收敛, 形成新的隧道负荷分担组表下发给 PE1, PE1重新整合所有有效的隧道成员信息并将 整合的信息更新至转发芯片。 图 8是根据本发明实施例的又一种隧道负荷分担方法的流程图, 如图 8所示, 该 流程包括步骤 S802至步骤 S818。 步骤 S802: 根据平台协议模块下发的隧道负荷分担组数据(相当于上述当前隧道 负荷分担组信息), 网络节点保存所有成员隧道号和隧道负荷分担组索引的对应关系, 并保存每条隧道成员的转发状态, 并选择隧道负荷分担组中的所有有效隧道的信息下 发给转发芯片。 在本步骤中, 网络节点接收到平台协议模块下发的隧道负荷分担组数 据后,上述网络节点配置该网络节点上的业务流量通过隧道负荷分担组中的隧道转发, 并在每一条隧道的首尾 2端配置快速检测模块, 来检测该隧道是否出现失效的情况, 并在检测到失效时, 发出告警。 步骤 S804: 网络节点判断是否收到快速检测模块的隧道告警, 若是, 则转至步骤 S806, 否则, 转至步骤 S812。 步骤 S806: 网络节点根据产生告警的隧道的隧道号查找隧道号和负荷分担索引关 系表, 判断产生告警的隧道是否存在于该网络节点保存的某个隧道负荷分担组表 (相 当于上述当前隧道负荷分担组信息) 中, 且表中记录的上述隧道的转发状态是否是有 效转发状态, 如果上述隧道存在于上述网络节点保存的某个隧道负荷分担组表中, 且 表中记录的上述隧道转发状态是有效转发状态, 则转至步骤 S808, 否则, 转至步骤 TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a tunnel load sharing method and apparatus. BACKGROUND In the field of computer data communication, especially a data bearer network, tunnel technology is widely used, and load sharing is a strategy and method for load balancing on multiple links on a network node device. When a packet packet processing node finds that the forwarded packet can be forwarded through multiple paths, how to properly select a path, so that the network node achieves higher forwarding performance or meets certain forwarding requirements. This is the load sharing requirement. solved problem. The tunnel load sharing referred to in this application is a strategy and method for load balancing of traffic on multiple network tunnels on network node devices. The tunnel load sharing group currently has two types of formation. One is that multiple tunnel exits are formed by the routing protocol, and the other is formed by statically binding several tunnels. When one or more tunnel forwarding paths are in the tunnel load sharing group, In the case of a failure, the load sharing group formed by the above two methods needs to rely on protocol awareness. Then, the forwarding chip is notified to reselect the effective path to converge, and the tunnel load sharing technology is used, whether on a centralized device or a distributed device. It is very difficult to achieve convergence within 50ms. In the related tunnel load sharing technology, the protocol-aware tunnel forwarding failure is required, and then the forwarding chip is notified to re-select the effective path to converge. Therefore, there is a defect that the service convergence speed is slow and the forwarding performance is low. Regarding the problem of at least one of the above-mentioned related art, an effective solution has not yet been proposed. SUMMARY OF THE INVENTION The embodiments of the present invention provide a tunnel load sharing method and apparatus, so as to solve at least the problem of slow service convergence when a tunnel in a tunnel load sharing group fails to be forwarded in the related art. According to an aspect of the embodiments of the present invention, a tunnel load sharing method is provided, including: a network node detecting an alarm condition of a tunnel, and updating information of an effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information The information is sent by the platform protocol module to the network node. The network node sends the information of the updated effective tunnel to the forwarding chip in the network node. The forwarding chip selects an effective tunnel to load balance the service traffic according to the information. Preferably, before the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the tunnel load sharing method further includes: each tunnel in the current tunnel load sharing group information of the network node A fast detection module is configured at both ends, and the fast detection module is configured to detect whether the tunnel is valid, and generates an alarm signal when detecting that the tunnel in which the fast detection module is located has a forwarding failure. Preferably, before the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the tunnel load sharing method further includes: the network node is effective in the current tunnel load sharing group information by the following manner Load balancing the service traffic of the network node on the tunnel: The network node calculates the allowable selection of the current tunnel load sharing group information from the network node to other network nodes according to the obtained loopback address of the tunnel on the other network nodes. The effective tunnel is sent to the forwarding chip. The network node statically selects a valid tunnel allowed by the network node to other network nodes from the current tunnel load sharing group information, and sends the selection result to the forwarding chip. Preferably, the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: when the network node detects that the tunnel generates an alarm, the network node updates the current tunnel load sharing group information. Information about valid tunnels. Preferably, the information that the network node updates the valid tunnel in the current tunnel load sharing group information includes: the network node queries the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determines the tunnel. Whether it belongs to the tunnel in the current tunnel load sharing group information. In the case that the tunnel belongs to the tunnel in the current tunnel load sharing group information, and the tunnel forwarding state is valid forwarding, the network node uses the effective tunnel in the current tunnel load sharing group information. The information of the tunnel is deleted from the information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated. Preferably, after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the tunnel load sharing method further includes: receiving, by the network node, the first tunnel load sharing group sent by the platform protocol module The information of the first tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects the tunnel generating alarm. Preferably, the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: when the network node detects that the alarm generated by the tunnel disappears, the network node updates the current tunnel load sharing group. Information about valid tunnels in the message. Preferably, the network node updates the information of the effective tunnel in the current tunnel load sharing group information, including: the network node queries the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel in which the alarm is lost, and determines the alarm. Whether the disappearing tunnel belongs to the tunnel in the current tunnel load sharing group information; If the tunnel whose alarm is lost belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding, the network node adds the information of the tunnel whose alarm disappears to the current tunnel load sharing group information. In the effective tunnel information, the forwarding state of the tunnel in which the alarm disappears is modified to be effectively forwarded in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated. Preferably, after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the tunnel load sharing method further includes: the network node receiving the second tunnel load sharing group sent by the platform protocol module The information of the second tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunnel alarm has disappeared. According to another aspect of the present invention, a tunnel load sharing apparatus is provided, including: an update module, configured to detect an alarm condition of a tunnel, and update information of an effective tunnel in the current tunnel load sharing group information, where the tunnel The load sharing group information is sent by the platform protocol module to the network node; the sending module is configured to send the updated effective tunnel information to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel to perform service traffic according to the information. Load balancing. Preferably, the tunnel load sharing device further includes: a fast detecting module, configured at each end of each tunnel in the current tunnel load sharing group information, configured to detect whether the tunnel is valid, and detecting that the tunnel in which the fast detecting module is located appears When the forwarding fails, an alarm signal is generated. Preferably, the updating module comprises: a first updating unit, configured to update the information of the effective tunnel in the current tunnel load sharing group information if the tunnel generating alarm is detected. Preferably, the first update unit includes: a first determining sub-unit, configured to query a relationship between a tunnel number and a tunnel load sharing group index in the tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, to determine whether the tunnel belongs to the current tunnel load The tunnel in the group information is shared. The first update sub-unit is set to be effective in the current tunnel load sharing group information when the tunnel belongs to the tunnel in the current tunnel load sharing group information and the forwarding state of the tunnel is valid. The tunnel information is deleted from the tunnel information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated. Preferably, the tunnel load sharing device further includes: a first receiving module, configured to receive the first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information is that the platform protocol module detects the tunnel generating alarm After the regenerated tunnel load sharing group information. Preferably, the updating module comprises: a second updating unit, configured to update the information of the effective tunnel in the current tunnel load sharing group information if the alarm generated by the tunnel disappears. Preferably, the second update unit includes: a second determining sub-unit, configured to query, according to the tunnel number of the tunnel in which the alarm is lost, the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel in which the alarm disappears is The tunnel belongs to the current tunnel load sharing group information. The second update sub-unit is set to be the tunnel in the information of the current tunnel load sharing group in the tunnel where the alarm disappears, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding. Add the information of the tunnel where the alarm disappears to the effective tunnel information in the current tunnel load sharing group information, and modify the forwarding state of the tunnel whose alarm disappears to be valid forwarding in the current tunnel load sharing group information, and update the current tunnel load sharing group. Information about valid tunnels in the message. Preferably, the tunnel load sharing device further includes: a second receiving module, configured to receive the second tunnel load sharing group information sent by the platform protocol module, where the second tunnel load sharing group information is that the platform protocol module detects that there is a tunnel After the alarm disappears, the regenerated tunnel load sharing group information. In the embodiment of the present invention, the network node may detect the alarm condition of the tunnel to update the information of the effective tunnel in the current tunnel load sharing group information in time, and the tunnel load sharing group information is sent by the platform protocol module to the network node. For example, in the case that the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, delete the tunnel of the alarm from the effective tunnel, and update the current tunnel in time. The information about the effective tunnel in the load sharing group information is sent to the forwarding chip in the network node, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the information, thereby avoiding After the protocol senses that the tunnel fails to be forwarded, the network node can re-select the effective tunnel to converge the service, and implement fast convergence of the service, thereby improving the forwarding performance of the network node. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,, . 1 is a flowchart of a tunnel load sharing method according to an embodiment of the present invention; FIG. 2 is a structural block diagram of a tunnel load sharing device according to an embodiment of the present invention; FIG. 3 is another block diagram according to an embodiment of the present invention. FIG. 4 is a structural block diagram of an update module according to an embodiment of the present invention; FIG. 5 is a block diagram showing another structure of a tunnel load sharing device according to an embodiment of the present invention; 6 is a schematic diagram of a tunnel load sharing application scenario according to an embodiment of the present invention; FIG. 7 is a flowchart of another tunnel load sharing method according to an embodiment of the present invention; and FIG. 8 is still another embodiment according to an embodiment of the present invention. Flow chart of the tunnel load sharing method. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. This embodiment provides a tunnel load sharing method. As shown in FIG. 1, the tunnel load sharing method includes steps S102 to S104. Step S102: The network node detects the alarm condition of the tunnel, and updates the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node. Step S104: The network node sends the information of the updated effective tunnel to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel to load balance the service traffic according to the information. Through the foregoing steps, the network node can detect the alarm condition of the tunnel, and timely update the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node, for example, If the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, delete the alarmed tunnel from the effective tunnel, and update the current tunnel load sharing group. The information of the effective tunnel in the information is sent to the forwarding chip in the network node, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the foregoing information, thereby avoiding protocol awareness. After the tunnel fails to be forwarded, the network node can re-select the effective tunnel for service convergence, which achieves fast convergence of services and improves the forwarding performance of the network node. In order to detect the effective condition of each tunnel in time, and effectively improve the service convergence speed of the network node, in the preferred embodiment, the network node detects the alarm condition of the tunnel, and updates the information of the effective tunnel in the current tunnel load sharing group information. The network node is configured to configure a fast detection module at each end of each tunnel in the current tunnel load sharing group information, where the fast detection module is configured to detect whether the tunnel is valid, and the tunnel in which the fast detection module is located has a forwarding failure. In the case of an alarm signal. Therefore, the network node can detect the validity of each tunnel in real time through the fast detection module, and timely detect and generate an alarm signal when the tunnel fails to be forwarded, so that the network node can quickly reselect the effective tunnel for service convergence, so that Effectively improve the service convergence speed of network nodes. In the preferred embodiment, the traffic of the network node is load-balanced in the following manner. For example, the network node detects the alarm of the tunnel. And updating the information about the effective tunnel in the current tunnel load sharing group information, the network node calculating the current tunnel load sharing group information from the network node by using a routing protocol according to the obtained loopback address of the tunnel on the other network node. And the other network node allows the selected effective tunnel, and sends the operation result to the forwarding chip; the network node statically selects the effective tunnel allowed by the network node to the other network node from the current tunnel load sharing group information, and Send the selection result to the forwarding chip. In order to update the effective tunnel information of the forwarding chip in real time, the forwarding performance of the network node is effectively improved. In the preferred embodiment, the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: When the network node detects that a tunnel generates an alarm, the network node updates information about the effective tunnel in the current tunnel load sharing group information. In the case that the network node detects that a tunnel generates an alarm, the information of the effective tunnel in the current tunnel load sharing group information of the network node can be updated in time, so as to update the information of the effective tunnel on the forwarding chip in real time, so that the forwarding chip can Accurately and efficiently re-select effective tunnels to quickly converge services, thereby improving the forwarding performance of network nodes. In order to quickly update the information of the effective tunnel in the current tunnel load sharing group information, in the preferred embodiment, the information may be implemented by using the following steps. For example, the information about the valid tunnel in the current tunnel load sharing group information is updated by the network node. The network node is configured to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determine whether the tunnel belongs to the tunnel in the current tunnel load sharing group information; If the tunnel belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel is valid forwarding, the network node deletes the information of the tunnel from the valid tunnel information in the current tunnel load sharing group information, and In the current tunnel load sharing group information, the forwarding state of the tunnel is modified to be invalid forwarding, and information about the effective tunnel in the current tunnel load sharing group information is updated. The information about the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information is used to determine whether the information about the effective tunnel in the previous tunnel load sharing group information needs to be updated to improve the tunnel number of the tunnel. Updates the efficiency of the information of the effective tunnel in the current tunnel load sharing group information. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, The network node receives the first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information is the tunnel load sharing group information that is generated after the platform protocol module detects the tunnel generating alarm. That is, when the platform protocol module detects that a tunnel generates an alarm, Slowly converge, regenerate new tunnel load sharing group information and send it to the network node to update the tunnel load sharing group information on the network node to update the information of the effective tunnel sent by the network node to the forwarding chip. In the preferred embodiment, the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, including: detecting that a tunnel is generated by the network node. When the alarm disappears, the network node updates the information of the effective tunnel in the current tunnel load sharing group information. In the case that the network node detects that a tunnel generates an alarm, the information about the effective tunnel in the current tunnel load sharing group information of the network node may be updated in time to update the information of the effective tunnel on the forwarding chip in real time, so that the forwarding chip is implemented. The effective tunnel can be re-selected accurately and efficiently to quickly converge the traffic, thereby improving the forwarding performance of the network node. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, the information that the network node updates the valid tunnel in the current tunnel load sharing group information includes: the network node disappears according to the alarm. The tunnel number of the tunnel is used to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel whose alarm disappears belongs to the tunnel in the current tunnel load sharing group information. In the tunnel load sharing group information, if the forwarding state of the tunnel where the alarm disappears is invalid forwarding, the network node adds the information of the tunnel where the alarm disappears to the valid tunnel information in the current tunnel load sharing group information. And in the current tunnel load sharing group information, the forwarding state of the tunnel in which the alarm disappears is modified to be effectively forwarded, and the information of the effective tunnel in the current tunnel load sharing group information is updated again. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, The network node receives the second tunnel load sharing group information sent by the platform protocol module, where the second tunnel load sharing group information is the tunnel load sharing group information that is generated after the platform protocol module detects that the tunneling alarm disappears. . That is, when the platform protocol module detects that the alarm of the tunnel disappears, the slow convergence is performed, and the new tunnel load sharing group information is regenerated to be sent to the network node to update the tunnel load sharing group information on the network node to update. Information about the effective tunnel sent by the network node to the forwarding chip. In the preferred embodiment, a tunnel load sharing device is provided. As shown in FIG. 2, the tunnel load sharing device includes: an update module 202, configured to detect an alarm condition of the tunnel, and update the current tunnel load sharing group information. The information of the effective tunnel, wherein the tunnel load sharing group information is sent by the platform protocol module to the network node; the sending module 204 is connected to the updating module 202, and configured to send the updated effective tunnel information to the network node. The forwarding chip, wherein the forwarding chip selects an effective tunnel according to the information to load balance the service traffic. In the preferred embodiment, the update module 202 can detect the alarm condition of the tunnel to update the information of the effective tunnel in the current tunnel load sharing group information in time, and the tunnel load sharing group information is sent by the platform protocol module to the network node. For example, in the case that the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, and delete the tunnel of the alarm from the effective tunnel, and timely update the current tunnel. The information about the effective tunnel in the tunnel load sharing group information is sent to the forwarding chip in the network node by the sending module 204, and the forwarding chip selects an effective tunnel to load balance the service traffic according to the above information, thereby avoiding load balancing. After the protocol senses that the tunnel has failed to be forwarded, the network node can reselect the effective tunnel for service convergence, and achieve fast convergence of the service, thereby improving the forwarding performance of the network node. In order to detect the effective condition of each tunnel in time, and effectively improve the service convergence speed of the network node, in the preferred embodiment, as shown in FIG. 3, the tunnel load sharing device further includes: a fast detection module 206, configured in the current tunnel The two ends of each tunnel in the load sharing group information are set to detect whether the tunnel is valid, and generate an alarm signal when detecting that the tunnel in which the fast detecting module is located fails to be forwarded. In order to update the effective tunnel information of the forwarding chip in real time, the forwarding performance of the network node is effectively improved. In the preferred embodiment, as shown in FIG. 4, the update module 202 includes: a first update unit 2022, configured to detect that a tunnel is detected. In the case of generating an alarm, the information of the effective tunnel in the current tunnel load sharing group information is updated. In order to quickly update the information of the effective tunnel in the current tunnel load sharing group information, in the preferred embodiment, the following steps may be implemented. For example, as shown in FIG. 4, the first updating unit 2022 includes: The determining sub-unit 402 is configured to query the relationship between the tunnel number and the tunnel load sharing group index in the tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determine whether the tunnel belongs to the tunnel in the current tunnel load sharing group information; The sub-unit 404 is connected to the first judging sub-unit 402, and is set to be effective in the current tunnel load sharing group information when the tunnel belongs to the tunnel in the current tunnel load sharing group information and the forwarding state of the tunnel is valid forwarding. The tunnel information is deleted from the tunnel information, and the forwarding state of the tunnel is modified to invalid forwarding in the current tunnel load sharing group information, and the information of the effective tunnel in the current tunnel load sharing group information is updated. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, as shown in FIG. 5, the tunnel load sharing device further includes: a first receiving module 208, configured to receive a platform protocol. The first tunnel load sharing group information sent by the module, where the first tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects the tunnel generating alarm. In order to meet the requirements of different application scenarios, in the preferred embodiment, as shown in FIG. 4, the foregoing update module 202 includes: a second update unit 2024, configured to update the current situation when it is detected that the alarm generated by the tunnel disappears. Information about the effective tunnel in the tunnel load sharing group information. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, as shown in FIG. 4, the second updating unit 2024 includes: a second determining subunit 406, configured to be configured according to an alarm. The tunnel number of the lost tunnel is used to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information, and determine whether the tunnel whose alarm disappears belongs to the tunnel in the current tunnel load sharing group information. The second update subunit 408 is connected. The second judging sub-unit 406 is configured to add the information of the tunnel in which the alarm disappears to the tunnel in which the alarm disappears belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding. In the current tunnel load sharing group information, in the current tunnel load sharing group information, the forwarding state of the tunnel in which the alarm disappears is modified to be effectively forwarded, and the information of the effective tunnel in the current tunnel load sharing group information is updated. In order to improve the forwarding performance of the network node effectively and reasonably, in the preferred embodiment, as shown in FIG. 5, the tunnel load sharing device further includes: a second receiving module 210, configured to receive a platform protocol. The second tunnel load sharing group information sent by the module, where the second tunnel load sharing group information is the tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunneling alarm has disappeared. The above various preferred embodiments are described in detail below with reference to the accompanying drawings. In the preferred embodiment, the network node uses a PE device as an example to describe the tunnel load sharing method. FIG. 7 is a flowchart of another tunnel load sharing method according to an embodiment of the present invention. The flow includes steps S702 to S712. Step S702: Establish a scenario of tunnel load sharing. Take the scenario shown in Figure 6 as an example. There are two PE devices, PE1 and PE2, and there are several P devices or no P devices. Several bidirectional tunnels are established between PE1 and PE2. The tunnel can be a dynamic rsvp te tunnel or a static tmpls tunnel. Configure the fast detection module on the first and second ends of each tunnel. If it is an rsvp-te tunnel, you can configure tunnel bfd. If it is a tmpls tunnel, you can configure tmp oam. Of course, this is only an example. The tunnel type is not limited to the tmpls tunnel or the rsvp te tunnel. This embodiment is also applicable to other types of tunnels. Step S704: Configure the traffic forwarding in the tunnel load sharing group (corresponding to the current tunnel load sharing group information) on the PE1. The service can be an L2vpn or a 13vpn service. Each tunnel is interfaced and involved in the routing operation. The routing protocol advertises the loopback address of the tunnel on the PE2 (assuming the ringback address of the abcd tunnel) to the PE1 device. The operation finally causes the four route exits abcd on PE1 to go to the tunnel load sharing group. Configure PE1 on PE2. Step S706: When one or more tunnel forwarding paths in the tunnel load sharing group on the PE1 are invalid, the fast detection of the PE1 generates an alarm. After receiving the alarm, the PE1 searches for the tunnel number and the tunnel according to the tunnel number of the tunnel that generates the alarm. The load sharing index relationship table is used to determine whether the tunnel in which the alarm is generated exists in a tunnel load sharing group table (corresponding to the current tunnel load sharing group information) stored in the PE1, and whether the tunnel forwarding state recorded in the table is effectively forwarded. If the tunnel exists in a tunnel load sharing group table stored in PE1, and the tunnel forwarding state recorded in the table is a valid forwarding state, PE1 will generate an alarm from the tunnel load sharing group table valid entry (equivalent The above valid tunnel information is removed, and all the valid tunnel information in the tunnel load sharing group table is integrated to update the forwarding chip. The tunnel forwarding state in the tunnel load sharing group table is modified to an invalid forwarding state. That is, PE1 re-selects the tunnels in the tunnel load sharing group table and updates the forwarding entries on the forwarding chip, so that the traffic of PE1 to PE2 is converged within 50 ms. Step S708: When the platform protocol module receives the alarm sent by the fast detection module, performs slow convergence, forms a new tunnel load sharing group table and sends it to PE1, and PE1 re-integrates all valid tunnel member information and updates the integrated information to Forwarding chip. Step S710: After the tunnel that failed to be forwarded on the PE1 is resumed and forwarded, the PE1 adds the tunnel to the valid tunnel entry of the tunnel load sharing group table after receiving the alarm disappearing message sent by the fast detecting module, and integrates all valid tunnels. The information is updated to the forwarding chip. The forwarding state of the tunnel in the tunnel load sharing group table is modified to a valid forwarding state. That is, PE1 reselects all valid tunnels in the tunnel load sharing group table and quickly updates the forwarding entries on the forwarding chip. Step S712: When the platform protocol module receives the alarm sent by the fast detection module, the slow convergence is performed, and a new tunnel load sharing group table is formed and sent to the PE1, and the PE1 re-integrates all valid tunnel member information and updates the integrated information. To the forwarding chip. FIG. 8 is a flowchart of still another tunnel load sharing method according to an embodiment of the present invention. As shown in FIG. 8, the process includes steps S802 to S818. Step S802: According to the tunnel load sharing group data (corresponding to the current tunnel load sharing group information) delivered by the platform protocol module, the network node saves the correspondence between all the member tunnel numbers and the tunnel load sharing group index, and saves each tunnel member. The forwarding state is selected, and information of all valid tunnels in the tunnel load sharing group is selected and sent to the forwarding chip. In this step, after the network node receives the tunnel load sharing group data sent by the platform protocol module, the network node configures the service traffic on the network node to be forwarded through the tunnel in the tunnel load sharing group, and is at the beginning and the end of each tunnel. The fast detection module is configured on the 2nd end to detect whether the tunnel has failed. When an invalidity is detected, an alarm is generated. Step S804: The network node determines whether the tunnel alarm of the fast detection module is received. If yes, the process goes to step S806, otherwise, the process goes to step S812. Step S806: The network node searches the tunnel number and the load sharing index relationship table according to the tunnel number of the tunnel that generates the alarm, and determines whether the tunnel that generates the alarm exists in a tunnel load sharing group table saved by the network node (corresponding to the current tunnel load) In the sharing group information, whether the forwarding state of the tunnel recorded in the table is a valid forwarding state, if the tunnel exists in a tunnel load sharing group table held by the network node, and the tunnel forwarding state recorded in the table If it is a valid forwarding state, go to step S808, otherwise, go to step
步骤 S808: 网络节点将产生告警的隧道从隧道负荷分担组表的有效条目 (相当于 上述有效隧道信息) 中去掉, 整合隧道负荷分担组表中所有有效隧道的信息更新至转 发芯片。 并将隧道负荷分担组表中上述隧道的转发状态修改为无效转发状态。 步骤 S810: 平台协议模块收到快速检测模块的隧道告警, 进行慢速收敛, 形成新 的隧道负荷分担组表下发给网络节点, 转至步骤 S802。 步骤 S812: 网络节点判断是否收到隧道快速检测模块发送的隧道告警消失的消 息, 若是, 则转至步骤 S814, 否则, 则转至步骤 S804。 步骤 S814: 网络节点根据告警消失的隧道的隧道号查找隧道号和负荷分担组索引 关系表, 判断告警消失的隧道是否存在于网络节点保存的某个隧道负荷分担组中, 并 且表中记录的隧道转发状态是否是无效转发状态, 若是, 则转至步骤 S816, 否则, 转 至步骤 S804。 步骤 S816: 网络节点将这条告警消失的隧道加入到隧道负荷分担组表的有效隧道 条目中, 整合隧道负荷分担组表中所有有效隧道的信息更新至转发芯片。 并将隧道负 荷分担组表中这条隧道的转发状态修改为有效转发状态。 步骤 S818: 平台协议模块收到隧道快速检测模块发送的告警消失的消息, 进行慢 速收敛, 形成新的隧道负荷分担组表下发给网络节点, 转至步骤 S802。 从以上的描述中, 可以看出, 本优选实施例实现了如下技术效果: 网络节点可以 检测隧道的告警情况, 来及时地更新当前的隧道负荷分担组信息中有效隧道的信息, 该隧道负荷分担组信息是由平台协议模块发送给网络节点的, 例如, 在上述当前隧道 负荷分担组信息中的隧道出现转发失效的情况下, 网络节点可以检测到该隧道产生的 告警, 并将该告警的隧道从有效隧道中删除, 以及时地更新当前的隧道负荷分担组信 息中有效隧道的信息, 然后, 将更新后的有效隧道的信息发送给所述网络节点中的转 发芯片, 由转发芯片根据上述信息选择有效隧道对业务流量进行负载均衡, 避免了由 协议感知到隧道出现转发失效后, 网络节点才能重新选择有效隧道进行业务收敛的情 况, 实现了业务的快速收敛, 从而提高了网络节点的转发性能。 显然, 本领域的技术人员应该明白, 上述的本发明实施例的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算 装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于 此处的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或 者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明实施例 不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 Step S808: The network node removes the tunnel that generates the alarm from the valid entry of the tunnel load sharing group table (corresponding to the valid tunnel information), and updates the information of all the valid tunnels in the integrated tunnel load sharing group table to the forwarding chip. The forwarding state of the tunnel in the tunnel load sharing group table is modified to an invalid forwarding state. Step S810: The platform protocol module receives the tunnel alarm of the fast detection module, performs slow convergence, forms a new tunnel load sharing group table and sends the packet to the network node, and proceeds to step S802. Step S812: The network node determines whether the message that the tunnel alarm sent by the tunnel fast detecting module disappears, and if yes, goes to step S814; otherwise, the process goes to step S804. Step S814: The network node searches the tunnel number and the load sharing group index relationship table according to the tunnel number of the tunnel in which the alarm disappears, and determines whether the tunnel whose alarm disappears exists in a tunnel load sharing group saved by the network node, and the tunnel recorded in the table Whether the forwarding state is an invalid forwarding state, if yes, go to step S816, otherwise, go to step S804. Step S816: The network node adds the tunnel whose alarm disappears to the valid tunnel entry of the tunnel load sharing group table, and updates the information of all valid tunnels in the integrated tunnel load sharing group table to the forwarding chip. The forwarding state of the tunnel in the tunnel load sharing group table is modified to a valid forwarding state. Step S818: The platform protocol module receives the message that the alarm sent by the tunnel fast detection module disappears, performs slow convergence, forms a new tunnel load sharing group table and sends the packet to the network node, and proceeds to step S802. From the above description, it can be seen that the preferred embodiment achieves the following technical effects: The network node can detect the alarm condition of the tunnel, and timely update the information of the effective tunnel in the current tunnel load sharing group information, and the tunnel load sharing The group information is sent by the platform protocol module to the network node. For example, in the case that the tunnel in the current tunnel load sharing group information fails to be forwarded, the network node can detect the alarm generated by the tunnel, and the tunnel of the alarm is generated. Delete from the valid tunnel and update the current tunnel load sharing group letter in time. Information about the effective tunnel in the information, and then transmitting the information of the updated effective tunnel to the forwarding chip in the network node, and the forwarding chip selects an effective tunnel according to the above information to load balance the service traffic, thereby avoiding the protocol sensing. After the tunnel fails to be forwarded, the network node can re-select the effective tunnel for service convergence, which achieves fast convergence of services and improves the forwarding performance of the network node. Obviously, those skilled in the art should understand that the above modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种隧道负荷分担方法, 包括: A tunnel load sharing method, comprising:
网络节点检测隧道的告警情况, 并更新当前的隧道负荷分担组信息中有效 隧道的信息, 其中, 所述隧道负荷分担组信息是由平台协议模块发送给所述网 络节点的;  The network node detects the alarm condition of the tunnel, and updates the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node;
所述网络节点将更新后的有效隧道的信息发送给所述网络节点中的转发芯 片,其中,所述转发芯片根据所述信息选择有效隧道对业务流量进行负载均衡。  The network node sends the information of the updated effective tunnel to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel according to the information to load balance the service traffic.
2. 根据权利要求 1所述的方法, 其中, 在所述网络节点检测隧道的告警情况, 并 更新所述当前的隧道负荷分担组信息中有效隧道的信息之前, 还包括: The method according to claim 1, wherein before the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the method further includes:
所述网络节点在所述当前隧道负荷分担组信息中的每一条隧道的两端配置 快速检测模块, 所述快速检测模块设置为检测隧道是否有效, 并在检测到所述 快速检测模块所在的隧道出现转发失效的情况下, 产生告警信号。  The network node is configured with a fast detecting module at each end of each tunnel in the current tunnel load sharing group information, where the fast detecting module is configured to detect whether the tunnel is valid, and detects the tunnel where the fast detecting module is located In the case of a forwarding failure, an alarm signal is generated.
3. 根据权利要求 1所述的方法, 其中, 在所述网络节点检测隧道的告警情况, 并 更新所述当前的隧道负荷分担组信息中有效隧道的信息之前, 还包括: The method according to claim 1, wherein before the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the method further includes:
所述网络节点通过以下方式在所述当前隧道负荷分担组信息中有效隧道上 对所述网络节点的业务流量进行负载均衡:  The network node performs load balancing on the service traffic of the network node on the effective tunnel in the current tunnel load sharing group information by:
所述网络节点根据获取的其他网络节点上隧道的环回口地址, 通过路由协 议运算出所述当前隧道负荷分担组信息中从所述网络节点到所述其他网络节点 允许选择的有效隧道, 并将运算结果发送给所述转发芯片;  The network node calculates, according to the obtained loopback address of the tunnel on the other network node, the effective tunnel allowed from the network node to the other network node in the current tunnel load sharing group information by using a routing protocol, and Transmitting the operation result to the forwarding chip;
所述网络节点从所述当前隧道负荷分担组信息中静态选择由所述网络节点 到所述其他网络节点允许选择的有效隧道,并将选择结果发送给所述转发芯片。  The network node statically selects a valid tunnel allowed by the network node to the other network node from the current tunnel load sharing group information, and sends the selection result to the forwarding chip.
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述网络节点检测隧道的告 警情况, 并更新所述当前的隧道负荷分担组信息中有效隧道的信息包括: The method according to any one of claims 1 to 3, wherein the detecting, by the network node, the information of the tunnel, and updating the information of the effective tunnel in the current tunnel load sharing group information includes:
在所述网络节点检测到有隧道产生告警的情况下, 所述网络节点更新所述 当前隧道负荷分担组信息中有效隧道的信息。  And when the network node detects that a tunnel generates an alarm, the network node updates information about the effective tunnel in the current tunnel load sharing group information.
5. 根据权利要求 4所述的方法, 其中, 所述网络节点更新所述当前隧道负荷分担 组信息中有效隧道的信息包括- 所述网络节点根据产生告警的隧道的隧道号查询所述当前隧道负荷分担组 信息中隧道号与隧道负荷分担组索引的关系, 判断所述隧道是否属于所述当前 隧道负荷分担组信息中的隧道; The method according to claim 4, wherein the information that the network node updates the valid tunnel in the current tunnel load sharing group information includes: The network node queries the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel that generates the alarm, and determines whether the tunnel belongs to the tunnel in the current tunnel load sharing group information. ;
在所述隧道属于所述当前隧道负荷分担组信息中的隧道, 且所述隧道的转 发状态为有效转发的情况下, 所述网络节点从所述当前隧道负荷分担组信息中 的有效隧道信息中删除所述隧道的信息, 并在所述当前隧道负荷分担组信息中 将所述隧道的转发状态修改为失效转发, 更新所述当前隧道负荷分担组信息中 有效隧道的信息。  When the tunnel belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel is valid forwarding, the network node is in the valid tunnel information in the current tunnel load sharing group information. Deleting the information of the tunnel, and modifying the forwarding state of the tunnel to fail forwarding in the current tunnel load sharing group information, and updating the information of the effective tunnel in the current tunnel load sharing group information.
6. 根据权利要求 4所述的方法, 其中, 在所述网络节点检测隧道的告警情况, 并 更新所述当前的隧道负荷分担组信息中有效隧道的信息之后, 还包括: The method of claim 4, wherein after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the method further includes:
所述网络节点接收所述平台协议模块发送的第一隧道负荷分担组信息, 其 中, 所述第一隧道负荷分担组信息是所述平台协议模块检测到所述隧道产生告 警后, 重新生成的隧道负荷分担组信息。  The network node receives the first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information is a regenerated tunnel after the platform protocol module detects that the tunnel generates an alarm. Load sharing group information.
7. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述网络节点检测隧道的告 警情况, 并更新所述当前的隧道负荷分担组信息中有效隧道的信息包括: 在所述网络节点检测到有隧道产生的告警消失的情况下, 所述网络节点更 新所述当前隧道负荷分担组信息中有效隧道的信息。 The method according to any one of claims 1 to 3, wherein the detecting, by the network node, the alarm condition of the tunnel, and updating the information of the effective tunnel in the current tunnel load sharing group information includes: When the network node detects that the alarm generated by the tunnel disappears, the network node updates the information of the effective tunnel in the current tunnel load sharing group information.
8. 根据权利要求 7所述的方法, 其中, 所述网络节点更新所述当前隧道负荷分担 组信息中有效隧道的信息包括- 所述网络节点根据告警消失的隧道的隧道号查询所述当前隧道负荷分担组 信息中隧道号与隧道负荷分担组索引的关系, 判断所述告警消失的隧道是否属 于所述当前隧道负荷分担组信息中的隧道; The method according to claim 7, wherein the information that the network node updates the valid tunnel in the current tunnel load sharing group information comprises: the network node querying the current tunnel according to the tunnel number of the tunnel in which the alarm disappears Relationship between the tunnel number and the tunnel load sharing group index in the load sharing group information, and determining whether the tunnel in which the alarm disappears belongs to the tunnel in the current tunnel load sharing group information;
在所述告警消失的隧道属于所述当前隧道负荷分担组信息中的隧道, 且所 述告警消失的隧道的转发状态为失效转发的情况下, 所述网络节点将所述告警 消失的隧道的信息添加到所述当前隧道负荷分担组信息中的有效隧道信息中, 并在所述当前隧道负荷分担组信息中将所述告警消失的隧道的转发状态修改为 有效转发, 更新所述当前隧道负荷分担组信息中有效隧道的信息。  In the case that the tunnel in which the alarm disappears belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel in which the alarm disappears is invalid forwarding, the network node will information about the tunnel in which the alarm disappears. Adding to the valid tunnel information in the current tunnel load sharing group information, and modifying the forwarding state of the tunnel in which the alarm disappears to be effectively forwarded in the current tunnel load sharing group information, and updating the current tunnel load sharing Information about valid tunnels in group information.
9. 根据权利要求 7所述的方法, 其中, 在所述网络节点检测隧道的告警情况, 并 更新当前的隧道负荷分担组信息中有效隧道的信息之后, 还包括: 所述网络节点接收所述平台协议模块发送的第二隧道负荷分担组信息, 其 中, 所述第二隧道负荷分担组信息是所述平台协议模块检测到有隧道的告警消 失后, 重新生成的隧道负荷分担组信息。 The method according to claim 7, wherein after the network node detects the alarm condition of the tunnel and updates the information of the effective tunnel in the current tunnel load sharing group information, the method further includes: Receiving, by the network node, the second tunnel load sharing group information that is sent by the platform protocol module, where the second tunnel load sharing group information is a regenerated tunnel after the platform protocol module detects that the tunnel alarm is lost. Load sharing group information.
10. 一种隧道负荷分担装置, 包括: 10. A tunnel load sharing device, comprising:
更新模块, 设置为检测隧道的告警情况, 并更新当前的隧道负荷分担组信 息中有效隧道的信息, 其中, 所述隧道负荷分担组信息是由平台协议模块发送 给所述网络节点的;  The update module is configured to detect an alarm condition of the tunnel, and update the information of the effective tunnel in the current tunnel load sharing group information, where the tunnel load sharing group information is sent by the platform protocol module to the network node;
发送模块, 设置为将更新后的有效隧道的信息发送给网络节点中的转发芯 片,其中,所述转发芯片根据所述信息选择有效隧道对业务流量进行负载均衡。  The sending module is configured to send the information of the updated valid tunnel to the forwarding chip in the network node, where the forwarding chip selects an effective tunnel according to the information to load balance the service traffic.
11. 根据权利要求 10所述的装置, 其中, 还包括: 11. The device according to claim 10, further comprising:
快速检测模块, 配置于所述当前隧道负荷分担组信息中的每一条隧道的两 端, 设置为检测隧道是否有效, 并在检测到所述快速检测模块所在的隧道出现 转发失效的情况下, 产生告警信号。  The fast detection module is configured to detect whether the tunnel is valid at the two ends of each tunnel in the current tunnel load sharing group information, and is generated when the tunnel in which the fast detection module is located fails to be forwarded. Alarm signal.
12. 根据权利要求 10或 11所述的装置, 其中, 所述更新模块包括: The device according to claim 10 or 11, wherein the update module comprises:
第一更新单元, 设置为在检测到有隧道产生告警的情况下, 更新所述当前 隧道负荷分担组信息中有效隧道的信息。  The first update unit is configured to update the information of the effective tunnel in the current tunnel load sharing group information if a tunnel is generated to generate an alarm.
13. 根据权利要求 12所述的装置, 其中, 所述第一更新单元包括: 第一判断子单元, 设置为根据产生告警的隧道的隧道号查询所述隧道负荷 分担组信息中隧道号与隧道负荷分担组索引的关系, 判断所述隧道是否属于所 述当前隧道负荷分担组信息中的隧道; The device according to claim 12, wherein the first updating unit comprises: a first determining subunit, configured to query a tunnel number and a tunnel in the tunnel load sharing group information according to a tunnel number of a tunnel that generates an alarm The relationship of the load sharing group index, and determining whether the tunnel belongs to the tunnel in the current tunnel load sharing group information;
第一更新子单元, 设置为在所述隧道属于所述当前隧道负荷分担组信息中 的隧道, 且所述隧道的转发状态为有效转发的情况下, 从所述当前隧道负荷分 担组信息中的有效隧道信息中删除所述隧道的信息, 并在所述当前隧道负荷分 担组信息中将所述隧道的转发状态修改为失效转发, 更新所述当前隧道负荷分 担组信息中有效隧道的信息。  a first update subunit, configured to be in a tunnel in the current tunnel load sharing group information, where the tunnel belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel is valid forwarding The information about the tunnel is deleted from the effective tunnel information, and the forwarding state of the tunnel is modified to be invalid forwarding in the current tunnel load sharing group information, and information about the effective tunnel in the current tunnel load sharing group information is updated.
14. 根据权利要求 12所述的装置, 其中, 还包括: 第一接收模块, 设置为接收所述平台协议模块发送的第一隧道负荷分担组 信息, 其中, 所述第一隧道负荷分担组信息是所述平台协议模块检测到所述隧 道产生告警后, 重新生成的隧道负荷分担组信息。 The device according to claim 12, further comprising: a first receiving module, configured to receive first tunnel load sharing group information sent by the platform protocol module, where the first tunnel load sharing group information The tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunnel generates an alarm.
15. 根据权利要求 10或 11所述的装置, 其中, 所述更新模块包括: The device according to claim 10 or 11, wherein the update module comprises:
第二更新单元, 设置为在检测到有隧道产生的告警消失的情况下, 更新所 述当前隧道负荷分担组信息中有效隧道的信息。  And a second updating unit, configured to: after detecting that the alarm generated by the tunnel disappears, updating the information of the effective tunnel in the current tunnel load sharing group information.
16. 根据权利要求 15所述的装置, 其中, 所述第二更新单元包括: The device according to claim 15, wherein the second update unit comprises:
第二判断子单元, 设置为根据告警消失的隧道的隧道号查询所述当前隧道 负荷分担组信息中隧道号与隧道负荷分担组索引的关系, 判断所述告警消失的 隧道是否属于所述当前隧道负荷分担组信息中的隧道;  The second determining sub-unit is configured to query the relationship between the tunnel number and the tunnel load sharing group index in the current tunnel load sharing group information according to the tunnel number of the tunnel in which the alarm disappears, and determine whether the tunnel in which the alarm disappears belongs to the current tunnel The tunnel in the load sharing group information;
第二更新子单元, 设置为在所述告警消失的隧道属于所述当前隧道负荷分 担组信息中的隧道, 且所述告警消失的隧道的转发状态为失效转发的情况下, 将所述告警消失的隧道的信息添加到所述当前隧道负荷分担组信息中的有效隧 道信息中, 并在所述当前隧道负荷分担组信息中将所述告警消失的隧道的转发 状态修改为有效转发, 更新所述当前隧道负荷分担组信息中有效隧道的信息。  And the second update subunit is configured to: when the tunnel in which the alarm disappears belongs to the tunnel in the current tunnel load sharing group information, and the forwarding state of the tunnel where the alarm disappears is invalid forwarding, the alarm is cleared. The information of the tunnel is added to the effective tunnel information in the current tunnel load sharing group information, and the forwarding state of the tunnel in which the alarm disappears is modified to be effectively forwarded in the current tunnel load sharing group information, and the Information about the effective tunnel in the current tunnel load sharing group information.
17. 根据权利要求 15所述的装置, 其中, 还包括: 第二接收模块, 设置为接收所述平台协议模块发送的第二隧道负荷分担组 信息, 其中, 所述第二隧道负荷分担组信息是所述平台协议模块检测到有隧道 的告警消失后, 重新生成的隧道负荷分担组信息。 The device according to claim 15, further comprising: a second receiving module, configured to receive second tunnel load sharing group information sent by the platform protocol module, where the second tunnel load sharing group information The tunnel load sharing group information that is regenerated after the platform protocol module detects that the tunnel alarm has disappeared.
PCT/CN2013/081308 2012-08-21 2013-08-12 Method and device for sharing tunnel load WO2014029287A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210299122.6A CN102833161B (en) 2012-08-21 2012-08-21 Tunnel load share method and device
CN201210299122.6 2012-08-21

Publications (1)

Publication Number Publication Date
WO2014029287A1 true WO2014029287A1 (en) 2014-02-27

Family

ID=47336134

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081308 WO2014029287A1 (en) 2012-08-21 2013-08-12 Method and device for sharing tunnel load

Country Status (2)

Country Link
CN (1) CN102833161B (en)
WO (1) WO2014029287A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740919A (en) * 2017-01-20 2020-10-02 华为技术有限公司 Report load sharing method and network equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833161B (en) * 2012-08-21 2018-01-30 中兴通讯股份有限公司 Tunnel load share method and device
CN104753754A (en) * 2015-03-12 2015-07-01 杭州华三通信技术有限公司 Method and apparatus for transmitting messages
CN106209906A (en) * 2016-08-24 2016-12-07 迈普通信技术股份有限公司 A kind of Layer 2 Tunneling Protocol L2TP message transmitting method and endpoint of a tunnel equipment
CN112995349B (en) * 2019-12-12 2023-07-04 中兴通讯股份有限公司 Address management method, server, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933448A (en) * 2006-08-17 2007-03-21 华为技术有限公司 Business fast convergent method and network equipment
CN101035019A (en) * 2007-01-12 2007-09-12 华为技术有限公司 Fast convergence method and device of the end-to-end service
US20110280121A1 (en) * 2010-05-12 2011-11-17 Cisco Technology, Inc. System and method for summarizing alarm indications in a network environment
CN102833161A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Method and device for sharing tunnel load

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909501A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for end to end service rapid convergence and route device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933448A (en) * 2006-08-17 2007-03-21 华为技术有限公司 Business fast convergent method and network equipment
CN101035019A (en) * 2007-01-12 2007-09-12 华为技术有限公司 Fast convergence method and device of the end-to-end service
US20110280121A1 (en) * 2010-05-12 2011-11-17 Cisco Technology, Inc. System and method for summarizing alarm indications in a network environment
CN102833161A (en) * 2012-08-21 2012-12-19 中兴通讯股份有限公司 Method and device for sharing tunnel load

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740919A (en) * 2017-01-20 2020-10-02 华为技术有限公司 Report load sharing method and network equipment
CN111740919B (en) * 2017-01-20 2023-08-22 华为技术有限公司 Load reporting and sharing method and network equipment

Also Published As

Publication number Publication date
CN102833161B (en) 2018-01-30
CN102833161A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
US11082262B2 (en) Flow entry generating method and apparatus
US9960991B2 (en) Method, apparatus and system for determining service transmission path
JP6047229B2 (en) Name-based neighbor discovery and multi-hop service discovery in information-centric networks
CN111698152B (en) Fault protection method, node and storage medium
US10439880B2 (en) Loop-free convergence in communication networks
WO2015000362A1 (en) Service node configuration method, service node pond register and system
CN102364900B (en) Based on the data transmission method of FRR and equipment in a kind of IRF system
WO2019076295A1 (en) Method for processing message, device, and system
WO2017092400A1 (en) Failure recovery method and device, controller, and software defined network
US20010034853A1 (en) Load distribution failure recovery system and method
US10291510B2 (en) Topology structure discovery method and device
WO2020119644A1 (en) Forwarding entry generation method, apparatus, and device
WO2014029287A1 (en) Method and device for sharing tunnel load
JP7053901B2 (en) Loop avoidance communication method, loop avoidance communication device and loop avoidance communication system
WO2013053276A1 (en) Network route convergence processing method and apparatus
JP2021532679A (en) Communication methods, communication equipment, and communication systems
JP7469479B2 (en) Packet transmission method, routing entry generation method, device, and storage medium
WO2020173424A1 (en) Message processing method, and gateway device
JP4444130B2 (en) Wireless access point and route determination method or communication method thereof, wireless communication system and communication method thereof
CN104247346A (en) Pseudowire extended group messaging in a packet switched network
WO2018121443A1 (en) Message transmission method and device
CN105072043A (en) Method for optimizing client declaration process in MESH network routing protocol
WO2018036453A1 (en) Method for synchronizing topology information in sfc network and routing network element
CN106487682B (en) Diameter signaling network routing method and device
CN103607301A (en) Link fault protection switching method and device under ECMP mode

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: 13831471

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13831471

Country of ref document: EP

Kind code of ref document: A1