[go: up one dir, main page]

CN105991426A - Method and device for managing link in load sharing - Google Patents

Method and device for managing link in load sharing Download PDF

Info

Publication number
CN105991426A
CN105991426A CN201510096102.2A CN201510096102A CN105991426A CN 105991426 A CN105991426 A CN 105991426A CN 201510096102 A CN201510096102 A CN 201510096102A CN 105991426 A CN105991426 A CN 105991426A
Authority
CN
China
Prior art keywords
load sharing
link
sharing link
bar
antenna efficiency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201510096102.2A
Other languages
Chinese (zh)
Inventor
张树冲
叶正鑫
钟炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510096102.2A priority Critical patent/CN105991426A/en
Priority to PCT/CN2015/081354 priority patent/WO2016138705A1/en
Publication of CN105991426A publication Critical patent/CN105991426A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

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

Abstract

The invention provides a method and a device for managing links in load sharing. The method comprises the steps that network equipment switches traffic to an (i+1)th load sharing link when an ith load sharing link currently used by an output interface of the network equipment is abnormal, and the traffic is forwarded to a target network by using the (i+1)th load sharing link, wherein i is an positive integer.

Description

一种负荷分担中链路的管理方法和装置Link management method and device in load sharing

技术领域technical field

本发明涉及通信领域,尤其涉及一种负荷分担中链路的管理方法和装置。The invention relates to the communication field, in particular to a link management method and device in load sharing.

背景技术Background technique

数据通讯领域,尤其是数据承载网,负荷分担是一种在网络节点设备上,在多条链路上进行负载均衡的策略和方法,而今这种策略方法在网络数据设备使用越来越频繁。而随之使用的频繁,越来越多的问题暴露出来,需要数据开发人员用合理的方法去解决。In the field of data communications, especially in data bearer networks, load sharing is a strategy and method for balancing loads on multiple links on network node devices. Now this strategy is used more and more frequently in network data devices. With the frequent use, more and more problems are exposed, and data developers need to use reasonable methods to solve them.

其中负荷分担中链路的异常中断,如负荷分担中一条链路被人为误操作shutdown,或者链路中的光纤光模块损坏,链路的快速收敛的需求越来越强烈。而目前国内外主流的实现负荷分担收敛的方法有两种:1、一种是由协议发现链路异常,重新形成链路负荷分担。例如,通过路由形成的IP路由负荷分担,当发现有链路中断后,更新平台与转发面路由形成路由负荷分担;链路聚合通过LACP(Link Aggregation Control Protocol,链路汇聚控制协议)来发现和形成与更新链路聚合中的转发路径。2、通过检测机制,如:BFD(Bidirectional Forwarding Detection,双向侦测协议)、OAM(OperationAdministration and Maintenance,操作管理与维护)等链路检测方法检测链路的连通性,发现链路异常进行快速的切换。In case of an abnormal interruption of a link in load sharing, for example, a link is shut down by human error during load sharing, or the optical fiber module in the link is damaged, the demand for fast link convergence becomes stronger and stronger. At present, there are two mainstream methods to achieve load sharing convergence at home and abroad: 1. One is that the protocol finds link abnormality and re-establishes link load sharing. For example, IP routing load sharing formed by routing, when a link interruption is found, the update platform forms routing load sharing with forwarding plane routing; link aggregation is discovered and implemented through LACP (Link Aggregation Control Protocol, link aggregation control protocol) Form and update forwarding paths in link aggregation. 2. Through the detection mechanism, such as: BFD (Bidirectional Forwarding Detection, two-way detection protocol), OAM (Operation Administration and Maintenance, operation management and maintenance) and other link detection methods to detect the connectivity of the link, find link abnormalities and quickly detect switch.

上述2种方式负荷分担收敛都需要依赖于协议感知,然后,通知转发模块重新选择有效路径来进行转发,通过该负荷分担收敛技术,无论是在集中式设备还是分布式设备上,做到50ms内收敛都是很困难的。The above two methods of load sharing and convergence need to rely on protocol awareness, and then notify the forwarding module to reselect an effective path for forwarding. Through this load sharing and convergence technology, whether it is on a centralized device or a distributed device, it can be achieved within 50ms Convergence is difficult.

图1为现有技术中的网络的组网示意图。如图1所示,网络a的IP:100.1.1.2与网络b的IP:200.1.1.2通信,中间经过网络设备a查路由表发现有n条路由到网络b。按照目前转发面实现流程所示,当网络设备a上通往网络b有链路出现异常的时候,平台的路由模块会发生路径切换,路径切换发生后,并不会立刻将路由更新过来,从而导致在路由重新收敛更新的这段时间内,由于路由更新未完成,造成大量的转发报文丢弃。FIG. 1 is a schematic diagram of a network in the prior art. As shown in Figure 1, the IP of network a: 100.1.1.2 communicates with the IP of network b: 200.1.1.2, and there are n routes to network b after checking the routing table through network device a. According to the current implementation process of the forwarding plane, when the link between network device a and network b is abnormal, the routing module of the platform will switch the path. After the path switch occurs, the route will not be updated immediately, so that As a result, a large number of forwarded packets are discarded because the route update is not completed during the period of route re-convergence update.

发明内容Contents of the invention

本发明提供一种负荷分担中链路的管理方法和装置,要解决的技术问题是如何减少在链路切换时丢包的数量。The invention provides a link management method and device in load sharing, and the technical problem to be solved is how to reduce the number of packets lost during link switching.

为解决上述技术问题,本发明提供了如下技术方案:In order to solve the problems of the technologies described above, the present invention provides the following technical solutions:

一种负荷分担中链路的管理方法,包括:当网络设备的出接口当前使用的第i条负荷分担链路出现异常时,所述网络设备将流量切换到第i+1条负荷分担链路,并使用第i+1条负荷分担链路将所述流量转发到目的网络,其中i为正整数。A method for managing links in load sharing, comprising: when an i-th load-sharing link currently used by an outgoing interface of a network device is abnormal, the network device switches traffic to the i+1-th load-sharing link , and use the i+1th load sharing link to forward the traffic to the destination network, where i is a positive integer.

其中,所述网络设备将流量切换到第i+1条负荷分担链路之前,所述方法还包括:所述网络设备检测所述第i+1条负荷分担链路工作是否正常;如果所述第i+1条负荷分担链路工作正常,则所述网络设备触发将流量切换到第i+1条负荷分担链路的操作。Wherein, before the network device switches the traffic to the (i+1)th load sharing link, the method further includes: the network device detects whether the (i+1)th load sharing link works normally; if the If the i+1 th load sharing link works normally, the network device triggers an operation of switching traffic to the i+1 th load sharing link.

其中,所述网络设备检测所述第i+1条负荷分担链路工作是否正常包括:所述网络设备获取第i条负荷分担链路在预先存储的选路策略中对应的第一随机值,将所述第一随机数的数值增加一,得到第二随机值,利用所述第二随机值与负荷分担链路数进行模运算,得到所述第二随机值在预先存储的负荷分担表对应的键值,在所述负荷分担表中获取所述键值对应的出接口的状态;如果所述出接口的状态为开启,则确定所述第i+1条负荷分担链路工作正常,否则,确定所述第i+1条负荷分担链路工作不正常。Wherein, the detecting by the network device whether the i+1 load sharing link is working normally includes: the network device obtaining the first random value corresponding to the i-th load sharing link in the pre-stored routing strategy, Increase the value of the first random number by one to obtain a second random value, and use the second random value to perform a modulo operation with the number of load sharing links to obtain the second random value corresponding to the load sharing table stored in advance. key value, obtain the state of the outgoing interface corresponding to the key value in the load sharing table; if the state of the outgoing interface is open, then determine that the i+1th load sharing link is working normally, otherwise , to determine that the i+1th load sharing link is not working properly.

其中,所述方法还包括:如果所述第i+1条负荷分担链路工作不正常,则所述网络设备检测所述第i+2条负荷分担链路工作是否正常。Wherein, the method further includes: if the (i+1)th load sharing link does not work normally, the network device detects whether the (i+2)th load sharing link works normally.

其中,所述负荷分担链路包括:路由负荷分担链路、隧道负荷分担链路和链路聚合负荷分担链路中的至少一个。Wherein, the load sharing link includes: at least one of a route load sharing link, a tunnel load sharing link, and a link aggregation load sharing link.

一种负荷分担中链路的管理装置,包括:切换模块,用于当网络设备的出接口当前使用的第i条负荷分担链路出现异常时,将流量切换到第i+1条负荷分担链路;传输模块,用于使用第i+1条负荷分担链路将所述流量转发到目的网络,其中i为正整数。A management device for links in load sharing, comprising: a switching module, used to switch traffic to the i+1 load sharing link when the i-th load sharing link currently used by the outgoing interface of the network device is abnormal road; a transmission module, configured to use the i+1th load sharing link to forward the traffic to the destination network, where i is a positive integer.

其中,所述装置还包括:检测模块,用于检测所述第i+1条负荷分担链路工作是否正常;触发模块,用于如果所述第i+1条负荷分担链路工作正常,则触发将流量切换到第i+1条负荷分担链路的操作。Wherein, the device further includes: a detection module, configured to detect whether the i+1th load sharing link works normally; a triggering module, configured to, if the i+1th load sharing link works normally, then Trigger the operation of switching traffic to the i+1th load sharing link.

其中,所述检测模块包括:获取单元,用于获取第i条负荷分担链路在预先存储的选路策略中对应的第一随机值;第一计算单元,用于将所述第一随机数的数值增加一,得到第二随机值;第二计算单元,用于利用所述第二随机值与负荷分担链路数进行模运算,得到所述第二随机值在预先存储的负荷分担表对应的键值,在所述负荷分担表中获取所述键值对应的出接口的状态;确定单元,用于如果所述出接口的状态为开启,则确定所述第i+1条负荷分担链路工作正常,否则,确定所述第i+1条负荷分担链路工作不正常。Wherein, the detection module includes: an acquisition unit, configured to acquire a first random value corresponding to the i-th load sharing link in a pre-stored routing strategy; a first calculation unit, configured to convert the first random number to The value of the value is increased by one to obtain a second random value; the second calculation unit is used to use the second random value and the number of load sharing links to perform a modulo operation to obtain the second random value corresponding to the load sharing table stored in advance. key value, obtain the state of the outgoing interface corresponding to the key value in the load sharing table; the determination unit is used to determine the i+1th load sharing chain if the state of the outgoing interface is open If the link works normally, otherwise, it is determined that the i+1th load sharing link does not work normally.

其中,所述检测模块,还用于如果所述第i+1条负荷分担链路工作不正常,则所述网络设备检测所述第i+2条负荷分担链路工作是否正常。Wherein, the detection module is further configured to detect whether the i+2th load sharing link works normally if the i+1th load sharing link does not work normally.

其中,所述负荷分担链路包括:路由负荷分担链路、隧道负荷分担链路和链路聚合负荷分担链路中的至少一个。Wherein, the load sharing link includes: at least one of a route load sharing link, a tunnel load sharing link, and a link aggregation load sharing link.

本发明提供实施例,网络设备的出接口无论哪条链路出现异常,流量会自动的换到下一条链路上去继续转发到目的网络,从而实现在不影响协议或者检测机制重新发现链路的情况下,进行链路切换的目的,达到负荷分担、链路聚合负荷分担的快速收敛的目的,解决了数据设备中普遍存在的链路异常时候链路收敛慢,丢包严重的问题。The present invention provides an embodiment, no matter which link of the outgoing interface of the network device is abnormal, the traffic will be automatically switched to the next link and forwarded to the destination network, so as to realize the rediscovery of the link without affecting the protocol or the detection mechanism Under normal circumstances, the purpose of link switching is to achieve the purpose of fast convergence of load sharing and link aggregation load sharing, and solve the problems of slow link convergence and serious packet loss that are common in data equipment when links are abnormal.

附图说明Description of drawings

图1为现有技术中的网络的组网示意图;FIG. 1 is a schematic diagram of a network in the prior art;

图2为本发明提供的负荷分担中链路的管理方法的流程示意图;2 is a schematic flow diagram of a link management method in load sharing provided by the present invention;

图3为本发明应用实例提供的负荷分担中链路的管理方法的流程示意图;3 is a schematic flow diagram of a link management method in load sharing provided by an application example of the present invention;

图4为本发明提供的网络的组网示意图;Fig. 4 is a schematic diagram of networking of the network provided by the present invention;

图5为本发明提供的负荷分担中链路的管理装置的结构示意图。FIG. 5 is a schematic structural diagram of a link management device in load sharing provided by the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步的详细描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

图2为本发明提供的负荷分担中链路的管理方法的流程示意图。图1所示方法,包括:FIG. 2 is a schematic flowchart of a method for managing links in load sharing provided by the present invention. The method shown in Figure 1 includes:

步骤201、当网络设备的出接口当前使用的第i条负荷分担链路出现异常时,所述网络设备将流量切换到第i+1条负荷分担链路;Step 201, when the i-th load sharing link currently used by the outgoing interface of the network device is abnormal, the network device switches the traffic to the i+1-th load sharing link;

步骤202、所述网络设备使用第i+1条负荷分担链路将所述流量转发到目的网络,其中i为正整数。Step 202, the network device forwards the traffic to the destination network using the i+1 load sharing link, where i is a positive integer.

本发明提供的方法实施例,网络设备的出接口无论哪条链路出现异常,流量会自动的换到下一条链路上去继续转发到目的网络,从而实现在不影响协议或者检测机制重新发现链路的情况下,进行链路切换的目的,达到负荷分担、链路聚合负荷分担的快速收敛的目的,解决了数据设备中普遍存在的链路异常时候链路收敛慢,丢包严重的问题。In the method embodiment provided by the present invention, no matter which link of the outbound interface of the network device is abnormal, the traffic will be automatically switched to the next link and forwarded to the destination network, so as to realize the rediscovery of the link without affecting the protocol or the detection mechanism. In the case of link switching, the purpose of link switching is to achieve the purpose of fast convergence of load sharing and link aggregation load sharing, and solve the problems of slow link convergence and serious packet loss that are common in data equipment when links are abnormal.

下面对本发明提供的方法实施例作进一步说明:The method embodiment provided by the present invention is described further below:

其中,所述网络设备将流量切换到第i+1条负荷分担链路之前,所述方法还包括:所述网络设备检测所述第i+1条负荷分担链路工作是否正常;如果所述第i+1条负荷分担链路工作正常,则所述网络设备触发将流量切换到第i+1条负荷分担链路的操作。Wherein, before the network device switches the traffic to the (i+1)th load sharing link, the method further includes: the network device detects whether the (i+1)th load sharing link works normally; if the If the i+1 th load sharing link works normally, the network device triggers an operation of switching traffic to the i+1 th load sharing link.

在切换前检测链路是否正常,保证流量切换到第i+1条链路后能够传输出去,提高切换的有效性。Check whether the link is normal before switching to ensure that the traffic can be transmitted after switching to the i+1th link, improving the effectiveness of switching.

其中,所述网络设备检测所述第i+1条负荷分担链路工作是否正常包括:Wherein, the network device detecting whether the i+1th load sharing link works normally includes:

所述网络设备获取第i条负荷分担链路在预先存储的选路策略中对应的第一随机值,将所述第一随机数的数值增加一,得到第二随机值,利用所述第二随机值与负荷分担链路数进行模运算,得到所述第二随机值在预先存储的负荷分担表对应的键值,在所述负荷分担表中获取所述键值对应的出接口的状态;The network device acquires the first random value corresponding to the i-th load sharing link in the pre-stored routing strategy, increases the value of the first random number by one to obtain a second random value, and uses the second Performing a modulo operation on the random value and the number of load sharing links to obtain the key value corresponding to the second random value in the pre-stored load sharing table, and obtaining the state of the outgoing interface corresponding to the key value in the load sharing table;

如果所述出接口的状态为开启,则确定所述第i+1条负荷分担链路工作正常,否则,确定所述第i+1条负荷分担链路工作不正常。If the state of the outgoing interface is open, it is determined that the i+1 load sharing link works normally; otherwise, it is determined that the i+1 load sharing link does not work normally.

需要说明的是,通过将出现故障的链路对应的第一随机值加一的方式来确定第i+1条链路,符合现有技术中管理协议的规定,无需修改现有技术中的管理流程,即可使用本发明提供的方法,兼容性强。It should be noted that the i+1th link is determined by adding one to the first random value corresponding to the faulty link, which complies with the provisions of the management protocol in the prior art, and there is no need to modify the management protocol in the prior art. flow, that is, the method provided by the present invention can be used, and the compatibility is strong.

另外,如果所述第i+1条负荷分担链路工作不正常,则所述网络设备检测所述第i+2条负荷分担链路工作是否正常。In addition, if the i+1 th load sharing link does not work normally, the network device detects whether the i+2 th load sharing link works normally.

具体来说,如果出接口为关闭down,在原来获取的随机值基础上加1,目的是指向下一个负荷分担条目。从负荷分担策略表中获取的链路数进行加一,并将组建好新的负荷分担表键值去查负荷分担表,依次循环下去,直到查到出接口状态为up的;如果所有接口为down的话,最多循环链路数n次。Specifically, if the outbound interface is down, add 1 to the originally obtained random value to point to the next load sharing entry. The number of links obtained from the load sharing strategy table is increased by one, and a new load sharing table key value is formed to check the load sharing table, and the cycle continues until the status of the outbound interface is found to be up; if all interfaces are If it is down, the link can be cycled up to n times.

其中,所述负荷分担链路包括:路由负荷分担链路、隧道负荷分担链路和链路聚合负荷分担链路中的至少一个。Wherein, the load sharing link includes: at least one of a route load sharing link, a tunnel load sharing link, and a link aggregation load sharing link.

上述负荷分担链路仅作举例说明,现有技术中其他类型的负荷分担链路同样适用于本发明,此处不再赘述。The above-mentioned load sharing link is only used as an example, and other types of load sharing links in the prior art are also applicable to the present invention, which will not be repeated here.

下面以具体应用实例对本发明提供的方法做进一步说明:The method provided by the present invention will be further described below with specific application examples:

图3为本发明应用实例提供的负荷分担中链路的管理方法的流程示意图。图3所示方法包括:FIG. 3 is a schematic flowchart of a method for managing links in load sharing provided by an application example of the present invention. The methods shown in Figure 3 include:

301:从网络a过来的数据报文在网络设备a的转发模块,根据报文中的destination ip查找路由,获取路由表中的出接口、下一跳IP、负荷分担标志位以及负荷分担索引。判断到目的IP路由是否形成负荷分担,如果不是负荷分担就封装报文中的下一跳destination ip从路由表中给出的出接口发出去;301: The forwarding module of network device a searches for the route of the data message from network a according to the destination ip in the message, and obtains the outgoing interface, next-hop IP, load sharing flag and load sharing index in the routing table. Determine whether the destination IP route forms load sharing, if not load sharing, the next hop destination ip in the encapsulated message is sent from the outgoing interface given in the routing table;

302:如果是走负荷分担,那么根据路由表中给出的负荷分担索引去查负荷分担选路策略表,从负荷分担选路策略表中获取通往目的IP的链路数以及基于包基于流的选路策略;302: If it is load sharing, then check the load sharing routing strategy table according to the load sharing index given in the routing table, and obtain the number of links leading to the destination IP from the load sharing routing strategy table and packet-based flow-based routing strategy;

303:根据策略表选路策略的随机值与链路数进行模运算,算出负荷分担表的键值来查负荷分担表,获取负荷分担表中的出接口和下一跳IP;303: Perform modulo calculation according to the random value of the route selection policy in the policy table and the number of links, calculate the key value of the load sharing table to check the load sharing table, and obtain the outgoing interface and next-hop IP in the load sharing table;

上述步骤是负荷分担处理的基本流程,当负荷分担链路发生异常的时候,正常的处理流程处于等待状态,等待平台形成新的路由负荷分担,但是在这个过程中,走出现异常链路的报文会被链路down丢弃。本发明在原有的基础上加以改进,在链路出现异常的时候由转发面做接口查询,发现接口down后就不会走该链路,添加的异常处理如下:The above steps are the basic process of load sharing processing. When the load sharing link is abnormal, the normal processing process is in a waiting state, waiting for the platform to form a new routing load sharing process. The file will be discarded when the link is down. The present invention improves on the original basis. When an abnormality occurs in the link, the interface query is performed by the forwarding plane. After the interface is found to be down, the link will not be taken. The added exception is handled as follows:

304:根据负荷分担获取的出接口信息查询出口方向端口属性表中接口状态。数据开发技术人员都会知道,链路异常一般情况下有两种,分别为:1、人为的将接口shutdown;2、链路中物理元器件忽然的损坏,包括光纤断裂、光模块异常等情况。对于第一种情况,主动去关闭(shutdown)接口,平台会将该信息从平台向转发面传递,而物理元器件忽然异常是由转发面发现而上报到主控平台。对于第二种情况,路由负荷分担收敛会花更多的时间。但是对于本发明,不管是第一种还是第二种情况,都会做到极小的甚至不丢包收敛。转发面从负荷分担表中获取出接口信息,然后使用出接口信息查出接口属性表,从出接口属性表中获取出接口状态开启/关闭(UP/DOWN)。判断如果出接口为up,那么就获取当前负荷分担表中的出接口和下一跳IP转发出去,如果出接口为down,在原来获取的随机值基础上加1,目的是指向下一个负荷分担条目。从负荷分担策略表中获取的链路数减一,并将组建好新的负荷分担表键值去查负荷分担表,依次循环下去,直到查到出接口状态为up的;如果所有接口为down的话,最多循环链路数n次。304: Query the interface status in the egress direction port attribute table according to the outbound interface information obtained in load sharing. Data development technicians will know that there are generally two types of link abnormalities, namely: 1. Artificial shutdown of the interface; 2. Sudden damage to physical components in the link, including fiber breakage, optical module abnormality, etc. For the first case, if the interface is actively shut down, the platform will transmit the information from the platform to the forwarding plane, and the sudden abnormality of the physical component is discovered by the forwarding plane and reported to the main control platform. For the second case, it will take more time for route load sharing to converge. But for the present invention, whether it is the first or the second case, it will achieve minimal or even no packet loss convergence. The forwarding plane obtains the outbound interface information from the load sharing table, then uses the outbound interface information to find out the interface attribute table, and obtains the outbound interface status up/down (UP/DOWN) from the outbound interface attribute table. Judging that if the outbound interface is up, then obtain the outbound interface and the next hop IP in the current load sharing table and forward it out. If the outbound interface is down, add 1 to the original random value to point to the next load sharing entry. The number of links obtained from the load sharing strategy table is reduced by one, and a new load sharing table key value is built to check the load sharing table, and the cycle continues until the status of the outbound interface is found to be up; if all interfaces are down If , the maximum number of loop links is n times.

本发明的处理主要在链路发生异常,并且新的负荷分担还没有形成的情况下处理,参见图3所示流程中304的处理流程,当新的稳态形成后又恢复了正常负荷分担处理,而恰恰在链路未达到稳态的情况下,走接口为down的报文都将会被丢弃。丢弃报文的多寡完全是由负荷分担的收敛来决定的。The processing of the present invention is mainly processed when the link is abnormal and the new load sharing has not yet been formed. Referring to the processing flow of 304 in the flow shown in Figure 3, the normal load sharing process is resumed after the new steady state is formed. , and when the link is not in a steady state, all packets whose interface is down will be discarded. The number of discarded packets is completely determined by the convergence of load sharing.

举例说明for example

适合本发明的实例1:如图1所示,网络a到网络b在经过网络设备a上有N条路由负荷分担链路。运用本发明,当网络设备a出接口无论哪条链路出现异常,流量会自动的换到下一条链路上去继续转发到目的网络。使用本发明可以极大的提高对于类似与组网1的网络路由稳定与安全。Example 1 suitable for the present invention: as shown in FIG. 1 , there are N routing load sharing links from network a to network b passing through network device a. With the present invention, when any link of the outgoing interface of the network device a is abnormal, the traffic will be automatically switched to the next link and forwarded to the destination network. Using the present invention can greatly improve the stability and safety of network routing similar to the network 1.

适合本发明的实例2:如图1所示,网络a到网络b在经过网络设备a上有N条隧道负荷分担链路。运用本发明,仅仅将从路由表中获取出接口信息换成从标签表中获取出接口信息。当网络设备a出接口无论哪条链路出现异常,流量会自动的换到下一条链路上去继续转发到目的网络。使用本发明可以极大的提高对于类似与组网1的网络隧道稳定与安全。Example 2 suitable for the present invention: as shown in FIG. 1 , there are N tunnel load sharing links from network a to network b passing through network device a. By using the present invention, only obtaining the outgoing interface information from the routing table is replaced by obtaining the outgoing interface information from the label table. When the outbound interface of network device a is abnormal, no matter which link is abnormal, the traffic will be automatically switched to the next link and forwarded to the destination network. Using the present invention can greatly improve the stability and security of the network tunnel similar to the network 1.

适合本发明的实例3:图4为本发明提供的网络的组网示意图。如图4所示,网络a到网络b在经过网络设备a到达网络设备b是一条由N条链路聚合的smartgroup(链路聚合)链路,N条物理链路形成smartgroup负荷分担。运用本发明,从路由表中获取出接口为smartgroup接口,然后转发面查smartgroup选路策略表以及负荷分担表信息获取出接口信息。当链路异常的时候,同样可以进行本发明进行接口轮询检查。Example 3 suitable for the present invention: FIG. 4 is a schematic diagram of networking of the network provided by the present invention. As shown in Figure 4, network a to network b passing through network device a to network device b is a smartgroup (link aggregation) link aggregated by N links, and N physical links form a smartgroup load sharing. Using the present invention, the outbound interface is obtained from the routing table as the smartgroup interface, and then the forwarding plane searches the smartgroup route selection strategy table and load sharing table information to obtain outbound interface information. When the link is abnormal, the present invention can also be used to check the interface polling.

图5为本发明提供的负荷分担中链路的管理装置的结构示意图。结合图2和图3所示方法,图5所示装置,包括:FIG. 5 is a schematic structural diagram of a link management device in load sharing provided by the present invention. In conjunction with the method shown in Figure 2 and Figure 3, the device shown in Figure 5 includes:

切换模块501,用于当网络设备的出接口当前使用的第i条负荷分担链路出现异常时,将流量切换到第i+1条负荷分担链路;The switching module 501 is used to switch the traffic to the i+1th load sharing link when the i-th load sharing link currently used by the outgoing interface of the network device is abnormal;

传输模块502,用于使用第i+1条负荷分担链路将所述流量转发到目的网络,其中i为正整数。The transmission module 502 is configured to use the i+1th load sharing link to forward the traffic to the destination network, where i is a positive integer.

其中,所述装置还包括:Wherein, the device also includes:

检测模块,用于检测所述第i+1条负荷分担链路工作是否正常;A detection module, configured to detect whether the i+1th load sharing link works normally;

触发模块,用于如果所述第i+1条负荷分担链路工作正常,则触发将流量切换到第i+1条负荷分担链路的操作。A triggering module, configured to trigger the operation of switching traffic to the i+1th load sharing link if the i+1th load sharing link works normally.

其中,所述检测模块包括:Wherein, the detection module includes:

获取单元,用于获取第i条负荷分担链路在预先存储的选路策略中对应的第一随机值;An acquisition unit, configured to acquire the first random value corresponding to the i-th load sharing link in the pre-stored routing strategy;

第一计算单元,用于将所述第一随机数的数值增加一,得到第二随机值;a first calculation unit, configured to increase the value of the first random number by one to obtain a second random value;

第二计算单元,用于利用所述第二随机值与负荷分担链路数进行模运算,得到所述第二随机值在预先存储的负荷分担表对应的键值,在所述负荷分担表中获取所述键值对应的出接口的状态;The second calculation unit is configured to use the second random value and the number of load sharing links to perform a modulo operation to obtain a key value corresponding to the second random value in a pre-stored load sharing table, in the load sharing table Obtain the state of the outgoing interface corresponding to the key value;

确定单元,用于如果所述出接口的状态为开启,则确定所述第i+1条负荷分担链路工作正常,否则,确定所述第i+1条负荷分担链路工作不正常。A determination unit, configured to determine that the i+1 load sharing link works normally if the state of the outgoing interface is open, otherwise, determine that the i+1 load sharing link does not work normally.

其中,所述检测模块,还用于如果所述第i+1条负荷分担链路工作不正常,则所述网络设备检测所述第i+2条负荷分担链路工作是否正常。Wherein, the detection module is further configured to detect whether the i+2th load sharing link works normally if the i+1th load sharing link does not work normally.

其中,所述负荷分担链路包括:路由负荷分担链路、隧道负荷分担链路和链路聚合负荷分担链路中的至少一个。Wherein, the load sharing link includes: at least one of a route load sharing link, a tunnel load sharing link, and a link aggregation load sharing link.

本发明提供的装置实施例,网络设备的出接口无论哪条链路出现异常,流量会自动的换到下一条链路上去继续转发到目的网络,从而实现在不影响协议或者检测机制重新发现链路的情况下,进行链路切换的目的,达到负荷分担、链路聚合负荷分担的快速收敛的目的,解决了数据设备中普遍存在的链路异常时候链路收敛慢,丢包严重的问题。In the device embodiment provided by the present invention, no matter which link of the outgoing interface of the network device is abnormal, the traffic will be automatically switched to the next link and forwarded to the destination network, so as to realize the rediscovery of the link without affecting the protocol or the detection mechanism. In the case of link switching, the purpose of link switching is to achieve the purpose of fast convergence of load sharing and link aggregation load sharing, and solve the problems of slow link convergence and serious packet loss that are common in data equipment when links are abnormal.

本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be implemented using a computer program flow, the computer program can be stored in a computer-readable storage medium, and the computer program can be run on a corresponding hardware platform (such as system, device, device, device, etc.), and when executed, includes one or a combination of the steps of the method embodiment.

可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Optionally, all or part of the steps in the above embodiments can also be implemented using integrated circuits, and these steps can be fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module accomplish. As such, the present invention is not limited to any specific combination of hardware and software.

上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/functional modules/functional units in the above embodiments can be realized by general-purpose computing devices, and they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices.

上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/functional module/functional unit in the above-mentioned embodiments is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope described in the claims.

Claims (10)

1. the management method of a load sharing link, it is characterised in that including:
When i-th load sharing link that the outgoing interface of the network equipment is currently used occurs abnormal, described Flow switch to i+1 bar load sharing link, and is used i+1 bar load sharing chain by the network equipment Described flow is forwarded to purpose network by road, and wherein i is positive integer.
Method the most according to claim 1, it is characterised in that the described network equipment is by flow switch Before i+1 bar load sharing link, described method also includes:
It is the most normal that the described network equipment detects described i+1 bar load sharing antenna efficiency;
If described i+1 bar load sharing antenna efficiency is normal, the most described network equipment triggers flow It is switched to the operation of i+1 bar load sharing link.
Method the most according to claim 2, it is characterised in that described network equipment detection described the I+1 bar load sharing antenna efficiency the most normally includes:
The described network equipment obtains i-th load sharing link correspondence in the routing policy prestored First random value, increases by one by the numerical value of described first random number, obtains the second random value, utilizes described Second random value and load sharing number of links carry out modular arithmetic, obtain described second random value and are prestoring Key assignments corresponding to load balancing table, described load balancing table obtains the outgoing interface that described key-value pair is answered State;
If the state of described outgoing interface is for opening, it is determined that described i+1 bar load sharing antenna efficiency Normally, otherwise, it determines described i+1 bar load sharing antenna efficiency is abnormal.
The most according to the method in claim 2 or 3, it is characterised in that described method also includes:
If described i+1 bar load sharing antenna efficiency is abnormal, the detection of the most described network equipment is described The i-th+2 load sharing antenna efficiency are the most normal.
Method the most according to claim 1, it is characterised in that described load sharing link includes: In routing load sharing link, tunnel load sharing link and link aggregation load sharing link at least one Individual.
6. the managing device of a load sharing link, it is characterised in that including:
Handover module, for going out when i-th load sharing link that the outgoing interface of the network equipment is currently used Now during exception, by flow switch to i+1 bar load sharing link;
Transport module, is used for using i+1 bar load sharing link that described flow is forwarded to purpose network, Wherein i is positive integer.
Device the most according to claim 6, it is characterised in that described device also includes:
Detection module, is used for detecting described i+1 bar load sharing antenna efficiency the most normal;
Trigger module, if normal for described i+1 bar load sharing antenna efficiency, then triggering will stream Cut-to-measure changes to the operation of i+1 bar load sharing link.
Device the most according to claim 7, it is characterised in that described detection module includes:
Acquiring unit, for obtaining i-th load sharing link correspondence in the routing policy prestored The first random value;
First computing unit, for the numerical value of described first random number is increased by one, obtains the second random value;
Second computing unit, is used for utilizing described second random value and load sharing number of links to carry out modular arithmetic, Obtain described second random value at key assignments corresponding to the load balancing table prestored, at described load sharing Table obtains the state of the outgoing interface that described key-value pair is answered;
Determine unit, if the state for described outgoing interface is unlatching, it is determined that described i+1 bar is born Lotus sharing link is working properly, otherwise, it determines described i+1 bar load sharing antenna efficiency is abnormal.
9. according to the device described in claim 7 or 8, it is characterised in that:
Described detection module, if it is abnormal, then to be additionally operable to described i+1 bar load sharing antenna efficiency It is the most normal that the described network equipment detects described the i-th+2 load sharing antenna efficiency.
Device the most according to claim 6, it is characterised in that described load sharing link includes: In routing load sharing link, tunnel load sharing link and link aggregation load sharing link at least one Individual.
CN201510096102.2A 2015-03-04 2015-03-04 Method and device for managing link in load sharing Withdrawn CN105991426A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510096102.2A CN105991426A (en) 2015-03-04 2015-03-04 Method and device for managing link in load sharing
PCT/CN2015/081354 WO2016138705A1 (en) 2015-03-04 2015-06-12 Method and device for managing link in load sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510096102.2A CN105991426A (en) 2015-03-04 2015-03-04 Method and device for managing link in load sharing

Publications (1)

Publication Number Publication Date
CN105991426A true CN105991426A (en) 2016-10-05

Family

ID=56848257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510096102.2A Withdrawn CN105991426A (en) 2015-03-04 2015-03-04 Method and device for managing link in load sharing

Country Status (2)

Country Link
CN (1) CN105991426A (en)
WO (1) WO2016138705A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965025A (en) * 2018-08-02 2018-12-07 郑州云海信息技术有限公司 The management method and device of flow in cloud computing system
CN113676405A (en) * 2021-08-18 2021-11-19 上海晨驭信息科技有限公司 Load sharing-based rapid link master-slave switching distributed system and method
CN114038181A (en) * 2021-10-25 2022-02-11 苏州浪潮智能科技有限公司 A remote debugging device and server
CN116074251A (en) * 2022-12-08 2023-05-05 华能中电威海风力发电有限公司 Safety management method based on load balancing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090252036A1 (en) * 2008-04-04 2009-10-08 Cisco Technology, Inc. Multinode symmetric load sharing
CN102137018A (en) * 2011-03-21 2011-07-27 华为技术有限公司 Load sharing method and device thereof
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment
CN102780632A (en) * 2012-08-07 2012-11-14 华为技术有限公司 Load sharing method and flow transmission equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090252036A1 (en) * 2008-04-04 2009-10-08 Cisco Technology, Inc. Multinode symmetric load sharing
CN102137018A (en) * 2011-03-21 2011-07-27 华为技术有限公司 Load sharing method and device thereof
CN102571457A (en) * 2012-02-28 2012-07-11 成都市华为赛门铁克科技有限公司 Method for triggering switching of bypass equipment, and method and device for switching bypass equipment
CN102780632A (en) * 2012-08-07 2012-11-14 华为技术有限公司 Load sharing method and flow transmission equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘林等: "自适应流模式负荷分担设计与实现", 《网络与信息》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965025A (en) * 2018-08-02 2018-12-07 郑州云海信息技术有限公司 The management method and device of flow in cloud computing system
CN113676405A (en) * 2021-08-18 2021-11-19 上海晨驭信息科技有限公司 Load sharing-based rapid link master-slave switching distributed system and method
CN113676405B (en) * 2021-08-18 2022-10-14 上海晨驭信息科技有限公司 Load sharing-based rapid link master-slave switching distributed system and method
CN114038181A (en) * 2021-10-25 2022-02-11 苏州浪潮智能科技有限公司 A remote debugging device and server
CN114038181B (en) * 2021-10-25 2023-05-12 苏州浪潮智能科技有限公司 Remote debugging device and server
CN116074251A (en) * 2022-12-08 2023-05-05 华能中电威海风力发电有限公司 Safety management method based on load balancing
CN116074251B (en) * 2022-12-08 2025-06-13 华能中电威海风力发电有限公司 A security management method based on load balancing

Also Published As

Publication number Publication date
WO2016138705A1 (en) 2016-09-09

Similar Documents

Publication Publication Date Title
US20200014614A1 (en) SDN Controller, Data Center System, and Routing Connection Method
US7911938B2 (en) System and method for preventing loops in the presence of control plane failures
US8672566B2 (en) Node apparatus and communication method
CN101047601B (en) Implementation method and system of dual-homing network based on VPLS
US8619785B2 (en) Pre-computing alternate forwarding state in a routed ethernet mesh network
US20110016243A1 (en) Method and device of load-sharing in irf stack
CN101557343B (en) Detecting and protecting method of double-layer loop in VRRP topological network
US20140369230A1 (en) Virtual Chassis Topology Management
CN104980372A (en) Relay System And Switching Device
KR20150051107A (en) Method for fast flow path setup and failure recovery
US20160134511A1 (en) Packetmirror processing in a stacking system
US10735251B2 (en) Deadlock avoidance using modified ethernet connectivity fault management signaling
CN110611577A (en) Service fast switching method, switching device, network equipment and storage medium
CN102820990A (en) Method and device for switching service protection
CN109936508A (en) A method and device for processing network congestion
CN105991426A (en) Method and device for managing link in load sharing
CN104796339A (en) Rapid flooding treatment method and rapid flooding treatment device
EP2858302B1 (en) Connectivity check method of service stream link, related apparatus and system
CN102118291A (en) Ring network link fault handling method, device and ring network
CN111092822A (en) Method for balancing pw linear protection forwarding load of vpls
Zhang et al. Failure recovery solutions using cognitive mechanisms for software defined optical networks
CN1738286B (en) A Realization Method of Rerouting in IP Network
WO2015032203A1 (en) Network element and method for ring network protection
WO2016061943A1 (en) Method and apparatus for implementing spanning tree protocol protection switching, and computer storage medium
CN107231661B (en) A traffic balancing method and micro base station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20161005

WW01 Invention patent application withdrawn after publication