技术领域technical field
本发明实施例涉及通信技术,尤其涉及一种基于虚拟宽带远程接入服务器(英文:Virtualized Broadband Remote Access Server,简称:vBRAS)的隧道业务的备份处理方法和设备。Embodiments of the present invention relate to communication technologies, and in particular to a method and device for backing up and processing tunnel services based on a Virtualized Broadband Remote Access Server (English: Virtualized Broadband Remote Access Server, vBRAS for short).
背景技术Background technique
电信网络的网络功能虚拟化(英文:Network Function Virtualization,简称:NFV)目前已成为一个趋势和共识,建设综合的多业务接入边缘,实现多业务的融合,是未来城域网、接入网改造的一个重点。宽带远程接入服务器(英文:Broadband Remote AccessServer,简称:BRAS)设备作为接入边缘的核心,是综合多业务接入边缘改造的一个重点。BRAS进行综合多业务接入边缘改造的方案之一就是实现BRAS的虚拟化,即vBRAS。Network Function Virtualization (English: Network Function Virtualization, NFV for short) of the telecom network has become a trend and consensus. Building a comprehensive multi-service access edge to achieve multi-service integration is the future metropolitan area network and access network. A key point of renovation. Broadband Remote Access Server (English: Broadband Remote Access Server, BRAS for short) equipment, as the core of the access edge, is a focus of the transformation of the integrated multi-service access edge. One of the schemes for BRAS to carry out comprehensive multi-service access edge transformation is to realize the virtualization of BRAS, that is, vBRAS.
然而,在目前的BRAS和vBRAS系统中,承载隧道业务的转发器处理出现故障时,还需要隧道业务的发起端重新发起恢复业务的请求,会造成业务的中断。However, in the current BRAS and vBRAS systems, when the processing of the transponder carrying the tunnel service fails, the originator of the tunnel service needs to re-initiate a service recovery request, which will cause service interruption.
发明内容Contents of the invention
本发明实施例提供一种隧道业务的备份处理方法和设备,用于解决硬件BRAS和vBRAS系统中,承载隧道业务的转发器处理出现故障时,还需要隧道业务的发起端重新发起恢复业务的请求,会造成业务的中断的问题。The embodiment of the present invention provides a tunnel service backup processing method and device, which are used to solve the problem that in the hardware BRAS and vBRAS systems, when the transponder carrying the tunnel service fails to process, the originator of the tunnel service needs to re-initiate the request for restoring the service , will cause business interruption.
本发明第一方面提供一种隧道业务的备份处理方法,包括:The first aspect of the present invention provides a backup processing method for tunnel services, including:
控制器获取到第一转发器发生故障时,确定所述第一转发器所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器上承载的隧道业务进行备份的转发器的信息;When the controller obtains that the first forwarder fails, it determines the tunnel service forwarding resource group to which the first forwarder belongs, and the tunnel service forwarding resource group includes the tunnel service carried by the first forwarder for backup. transponder information;
所述控制器根据所述隧道业务转发资源组确定对所述第一转发器进行备份的至少一个备份转发器,并根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息;The controller determines at least one backup forwarder for backing up the first forwarder according to the tunnel service forwarding resource group, and performs tunnel service carried on the first forwarder according to the at least one backup forwarder. Backup relationship, generate service switching instruction information;
所述控制器将所述业务切换指示信息发送给所述至少一个备份转发器,所述业务切换指示信息用于指示所述至少一个备份转发器将所述第一转发器上承载的隧道业务切换到所述至少一个备份转发器进行承载。The controller sends the service switching indication information to the at least one backup forwarder, the service switching indication information is used to instruct the at least one backup forwarder to switch the tunnel service carried on the first forwarder to the at least one backup forwarder for bearer.
在该方案中,通过控制器预先为转发器配置多个备份转发器,在检测到第一转发器发生故障时,根据与该第一转发器互为备份的转发器的负载情况,选择出至少一个备份转发器,将原本挂载在第一转发器上的业务切换到至少一个备份转发器上进行承载,即控制器预先配置备份的隧道资源,也就是转发器,当前使用的转发器故障时切换到其他备份转发器上进行业务承载,不需要重新申请资源进行业务重建,避免由于业务重建造成的业务中断的问题,实现隧道业务的热备份。In this scheme, the controller pre-configures a plurality of backup transponders for the transponder, and when a failure of the first transponder is detected, according to the load condition of the transponder that is mutually backup with the first transponder, select at least A backup transponder, which switches the business originally mounted on the first transponder to at least one backup transponder for carrying. That is, the controller pre-configures the backup tunnel resource, that is, the transponder. When the currently used transponder fails Switching to other backup transponders for service bearer does not require re-applying for resources for service reconstruction, avoiding service interruption caused by service reconstruction, and realizing hot backup of tunnel services.
具体实现中,在所述控制器获取到第一转发器发生故障之前,所述方法还包括:所述控制器根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,在所述至少一个备份转发器上建立承载所述第一转发器上承载的隧道业务的转发资源。In a specific implementation, before the controller acquires that the first transponder fails, the method further includes: the controller performs the tunnel service carried on the first transponder according to the at least one backup transponder In a backup relationship, a forwarding resource bearing the tunnel service carried by the first forwarder is established on the at least one backup forwarder.
在该方案中,控制器需要预先对互为备份的转发器之间的关系进行配置,以第一转发器为例,需要明确每个备份转发器与备份的隧道业务之间的关系,并在每个备份转发器上建立转发资源,以使在第一控制器发生故障时,能够对第一转发器上的隧道业务切换承载。In this solution, the controller needs to pre-configure the relationship between the backup forwarders. Taking the first forwarder as an example, it is necessary to specify the relationship between each backup forwarder and the backup tunnel service, and A forwarding resource is established on each backup forwarder, so that when the first controller fails, the bearer of the tunnel service on the first forwarder can be switched.
在一种具体实现中,所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:In a specific implementation, the backup of the tunnel service carried by the first forwarder by the at least one backup forwarder includes:
所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所有隧道业务进行备份;The at least one backup forwarder includes a second forwarder, and the second forwarder backs up all tunnel services carried on the first forwarder;
或者,or,
所述至少一个备份转发器包括第二转发器和第三转发器,所述第二转发器和所述第三转发器分别对所述第一转发器上承载的隧道业务按照比例分配进行备份。The at least one backup transponder includes a second transponder and a third transponder, and the second transponder and the third transponder respectively back up tunnel services carried on the first transponder in proportion.
进一步地,所述至少一个备份转发器包括第二转发器,则所述控制器将所述业务切换指示信息发送给所述至少一个备份转发器,包括:所述控制器将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述第一转发器对应的隧道业务切换到所述第二转发器进行承载;Further, if the at least one backup transponder includes a second transponder, the controller sending the service switching instruction information to the at least one backup transponder includes: the controller sending the service switching instruction The information is sent to the second transponder; wherein, the service switching indication information is used to instruct the second transponder to switch the tunnel service corresponding to the first transponder to the second transponder for bearer;
或者,or,
所述至少一个备份转发器包括第二转发器和第三转发器,则所述控制器将所述业务切换指示信息发送给所述至少一个备份转发器,包括:所述控制器将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示所述第二转发器和所述第三转发器将所述第一转发器对应的隧道业务切换到所述第二转发器和所述第三转发器进行承载。The at least one backup transponder includes a second transponder and a third transponder, and the controller sends the service switching indication information to the at least one backup transponder, including: the controller sends the service The handover instruction information is sent to the second repeater and the third repeater respectively; wherein, the service handover instruction information is used to instruct the second repeater and the third repeater to forward the first The tunnel service corresponding to the forwarder is switched to the second forwarder and the third forwarder for bearer.
在上述方案中,上述的至少一个备份转发器可以只包括一个转发器,也可以包括两个或者两个以上的转发器;如果只有一个备份转发器,那么在该唯一的备份转发器需要将上述的第一转发器上的所有隧道业务进行备份,第一转发器故障时,控制器发送的业务切换指示信息指示将第一转发器上的所有隧道业务切换至该唯一的备份转发器上进行承载;如果有两个或者两个以上的备份转发器,那么该多个备份转发器可以分别对第一转发器的部分隧道业务进行备份即可,在第一转发器发生故障之后,每个备份转发器将备份的隧道业务进行承载即可,所有的备份转发器一起承载原来有第一转发器承载的隧道业务。In the above scheme, the above-mentioned at least one backup transponder may only include one transponder, or may include two or more than two transponders; if there is only one backup transponder, the above-mentioned All tunnel services on the first transponder are backed up. When the first transponder fails, the service switching instruction information sent by the controller indicates that all tunnel services on the first transponder should be switched to the only backup transponder for bearer ; If there are two or more backup transponders, then the multiple backup transponders can respectively back up part of the tunnel services of the first transponder. After the first transponder fails, each backup transponder It is only necessary for the backup forwarder to bear the tunnel service of the backup, and all the backup forwarders together bear the tunnel service originally carried by the first forwarder.
在前述的实现方案的基础上,所述方法还包括:所述第一转发器上承载的隧道业务被分为至少一个业务组。On the basis of the foregoing implementation solution, the method further includes: dividing the tunnel service carried on the first forwarder into at least one service group.
进一步地,所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:Further, the at least one backup forwarder backing up the tunnel service carried on the first forwarder includes:
所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所述至少一个业务组里的隧道业务进行备份;或者The at least one backup forwarder includes a second forwarder, and the second forwarder backs up tunnel services in the at least one service group carried on the first forwarder; or
所述至少一个备份转发器包括第二转发器和第三转发器,所述至少一个业务组包括第一业务组和第二业务组,所述第二转发器对所述第一业务组里的隧道业务进行备份,所述第三转发器对所述第二业务组里的隧道业务进行备份。The at least one backup transponder includes a second transponder and a third transponder, the at least one service group includes a first service group and a second service group, and the second transponder is used for the first service group The tunnel service is backed up, and the third transponder backs up the tunnel service in the second service group.
进一步地,所述至少一个备份转发器包括第二转发器,则所述控制器将所述业务切换指示信息发送给所述至少一个备份转发器,包括:所述控制器将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述至少一个业务组里的隧道业务切换到所述第二转发器进行承载;Further, if the at least one backup transponder includes a second transponder, the controller sending the service switching instruction information to the at least one backup transponder includes: the controller sending the service switching instruction The information is sent to the second transponder; wherein, the service switching indication information is used to instruct the second transponder to switch the tunnel service in the at least one service group to the second transponder for bearer;
或者,or,
所述至少一个备份转发器包括第二转发器和第三转发器,则所述控制器将所述业务切换指示信息发送给所述至少一个备份转发器,包括:所述控制器将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示:所述第二转发器将所述第一业务组里的隧道业务切换到所述第二转发器进行承载,所述第三转发器将所述第二业务组里的隧道业务切换到所述第三转发器进行承载。The at least one backup transponder includes a second transponder and a third transponder, and the controller sends the service switching indication information to the at least one backup transponder, including: the controller sends the service The switching instruction information is sent to the second transponder and the third transponder respectively; wherein, the service switching instruction information is used to indicate: the second transponder switches the tunnel service in the first service group to the second forwarder for bearer, and the third forwarder switches the tunnel service in the second service group to the third forwarder for bearer.
在上述方案中,由于业务数量级较大,为了实现灵活的负载分担,引入中间层,也就是业务组。每个业务组都指向一个转发器,业务组挂载一个或业务,即每个转发器可以承载多个业务组,每个业务组下又挂载着一个或多个业务。第一转发器上承载的业务可以被分为多个业务组,因此备份转发器只有一个的时候,可以将第一转发器上所有业务组的隧道业务进行备份,并在第一转发器故障后将该第一转发器上所有业务组的隧道业务进行承载;备份转发器有多个的时候,每个备份转发器可以对不同的业务组分别进行承载。In the above solution, due to the large order of magnitude of the business, in order to realize flexible load sharing, an intermediate layer, that is, a business group, is introduced. Each business group points to a forwarder, and the business group mounts one or more services, that is, each forwarder can carry multiple business groups, and each business group is loaded with one or more services. The services carried on the first transponder can be divided into multiple service groups. Therefore, when there is only one backup transponder, the tunnel services of all service groups on the first transponder can be backed up. The tunnel services of all service groups on the first transponder are carried; when there are multiple backup transponders, each backup transponder can carry different service groups respectively.
在上述任一种实现方式的基础上,所述根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息,包括:On the basis of any of the above implementation manners, the generation of service switching instruction information according to the relationship that the at least one backup transponder backs up the tunnel service carried on the first transponder includes:
所述控制器获取每个备份转发器的负载情况;The controller acquires the load condition of each backup transponder;
所述控制器根据每个备份转发器的负载情况、所述第一转发器上承载的所述至少一个业务组,采用负载分担算法选择为每个备份转发器分配对应的至少一个业务组;The controller uses a load sharing algorithm to select and allocate at least one corresponding service group to each backup forwarder according to the load condition of each backup forwarder and the at least one service group carried on the first forwarder;
所述控制器生成所述业务切换指示信息。The controller generates the service switching indication information.
在该方案中,无论是新增的新的转发器,还是故障了之后选择出的备份转发器,控制均需要将业务进行负载分配,即会分配业务组,最终基于业务组的粒度对业务进行分配,使业务负载趋于均衡。In this solution, whether it is a newly added transponder or a backup transponder selected after a failure, the control needs to distribute the load of the business, that is, the business group will be allocated, and finally the business will be based on the granularity of the business group. distribution, so that the business load tends to be balanced.
本发明第二方面提供一种隧道业务的备份处理方法,包括:The second aspect of the present invention provides a backup processing method for tunnel services, including:
备份转发器接收控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述备份转发器承载所述第一转发器上承载的隧道业务;The backup forwarder receives the service switching indication information sent by the controller; the service switching indication information is used to instruct the backup forwarder to carry the tunnel service carried by the first forwarder;
所述备份转发器根据所述业务切换指示信息对所述第一转发器的业务进行承载。The backup transponder bears the service of the first transponder according to the service switching indication information.
在本实施例中,备份转发器根据控制器的业务切换指示信息对故障的第一转发器上的业务进行承载,避免第一转发器故障造成业务中断的问题。In this embodiment, the backup transponder carries the service on the failed first transponder according to the service switching instruction information of the controller, so as to avoid the problem of service interruption caused by the failure of the first transponder.
一种具体实现方式中,所述备份转发器接收控制器发送的业务切换指示信息之前,所述方法还包括:In a specific implementation manner, before the backup transponder receives the service switching indication information sent by the controller, the method further includes:
所述备份转发器根据控制器的指示建立与所述第一转发器上承载的隧道业务对应的转发资源;The backup forwarder establishes a forwarding resource corresponding to the tunnel service carried by the first forwarder according to an instruction of the controller;
所述备份转发器根据所述转发资源将所述第一转发器上的隧道业务进行备份。The backup forwarder backs up the tunnel service on the first forwarder according to the forwarding resource.
可选的,所述备份转发器根据所述转发资源将所述第一转发器上的隧道业务进行备份,包括:Optionally, the backup forwarder backs up the tunnel service on the first forwarder according to the forwarding resources, including:
所述备份转发器对所述第一转发器上承载的所有隧道业务进行备份;The backup transponder backs up all tunnel services carried on the first transponder;
或者,or,
所述备份转发器对所述第一转发器上承载的隧道业务按照比例分配进行部分备份。The backup forwarder performs partial backup of the tunnel service borne by the first forwarder according to proportional distribution.
在上述方案中,该备份转发器可以对第一转发器上的全部隧道业务进行备份和承载,也可以只对第一转发器上的部分隧道业务进行备份和承载。In the above solution, the backup forwarder may back up and bear all tunnel services on the first forwarder, or may only back up and bear part of the tunnel services on the first forwarder.
本发明第三方面提供一种隧道业务的负载分担方法,包括:A third aspect of the present invention provides a load sharing method for tunnel services, including:
控制器检测到配置了新的转发器时,根据负载分担算法将当前业务组在所述新的转发器和预先配置的可用的至少两个转发器上进行重新分配;When the controller detects that a new transponder is configured, the current service group is redistributed on the new transponder and at least two pre-configured available transponders according to the load sharing algorithm;
其中,每个业务组上挂载至少一个业务。Wherein, at least one service is mounted on each service group.
本发明第四方面提供一种控制器,包括:A fourth aspect of the present invention provides a controller, including:
处理模块,用于在获取到第一转发器发生故障时,确定所述第一转发器所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器上承载的隧道业务进行备份的转发器的信息;A processing module, configured to determine the tunnel service forwarding resource group to which the first forwarder belongs when it is acquired that the first forwarder fails, and the tunnel service forwarding resource group includes the tunnel service carried by the first forwarder Information on transponders for business backup;
所述处理模块还用于根据所述隧道业务转发资源组确定对所述第一转发器进行备份的至少一个备份转发器,并根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息;The processing module is further configured to determine at least one backup forwarder that backs up the first forwarder according to the tunnel service forwarding resource group, and perform a backup on the first forwarder according to the at least one backup forwarder. The relationship of backing up the tunnel business, and generating service switching instruction information;
发送模块,用于将所述业务切换指示信息发送给所述至少一个备份转发器,所述业务切换指示信息用于指示所述至少一个备份转发器将所述第一转发器上承载的隧道业务切换到所述至少一个备份转发器进行承载。A sending module, configured to send the service switching instruction information to the at least one backup forwarder, where the service switching instruction information is used to instruct the at least one backup forwarder to transfer the tunnel service carried by the first forwarder to the at least one backup forwarder. switch to the at least one backup transponder for bearer.
可选的,所述处理模块还用于根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,在所述至少一个备份转发器上建立承载所述第一转发器上承载的隧道业务的转发资源。Optionally, the processing module is further configured to establish, on the at least one backup forwarder, the tunnel service carried by the first forwarder according to the relationship that the at least one backup forwarder backs up the tunnel service carried by the first forwarder. A forwarding resource of a tunnel service carried on a forwarder.
可选的,所述处理模块应用的所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:Optionally, the at least one backup forwarder applied by the processing module backing up the tunnel service carried on the first forwarder includes:
所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所有隧道业务进行备份;或者The at least one backup forwarder includes a second forwarder, and the second forwarder backs up all tunnel services carried on the first forwarder; or
所述至少一个备份转发器包括第二转发器和第三转发器,所述第二转发器和所述第三转发器分别对所述第一转发器上承载的隧道业务按照比例分配进行备份。The at least one backup transponder includes a second transponder and a third transponder, and the second transponder and the third transponder respectively back up tunnel services carried on the first transponder in proportion.
可选的,所述至少一个备份转发器包括第二转发器,则所述发送模块具体用于将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述第一转发器对应的隧道业务切换到所述第二转发器进行承载;Optionally, the at least one backup transponder includes a second transponder, and the sending module is specifically configured to send the service switching indication information to the second transponder; wherein, the service switching indication information uses Instructing the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for bearer;
或者,or,
所述至少一个备份转发器包括第二转发器和第三转发器,则所述发送模块具体用于将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示所述第二转发器和所述第三转发器将所述第一转发器对应的隧道业务切换到所述第二转发器和所述第三转发器进行承载。The at least one backup transponder includes a second transponder and a third transponder, and the sending module is specifically configured to send the service switching indication information to the second transponder and the third transponder respectively; Wherein, the service switching indication information is used to instruct the second forwarder and the third forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder and the third forwarder to carry.
可选的,所述处理模块还用于将所述第一转发器上承载的隧道业务被分为至少一个业务组。Optionally, the processing module is further configured to divide the tunnel services carried on the first transponder into at least one service group.
可选的,所述处理模块使用的所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:Optionally, the backup of the tunnel service carried by the first forwarder by the at least one backup forwarder used by the processing module includes:
所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所述至少一个业务组里的隧道业务进行备份;或者The at least one backup forwarder includes a second forwarder, and the second forwarder backs up tunnel services in the at least one service group carried on the first forwarder; or
所述至少一个备份转发器包括第二转发器和第三转发器,所述至少一个业务组包括第一业务组和第二业务组,所述第二转发器对所述第一业务组里的隧道业务进行备份,所述第三转发器对所述第二业务组里的隧道业务进行备份。The at least one backup transponder includes a second transponder and a third transponder, the at least one service group includes a first service group and a second service group, and the second transponder is used for the first service group The tunnel service is backed up, and the third transponder backs up the tunnel service in the second service group.
可选的,所述至少一个备份转发器包括第二转发器,则所述发送模块具体用于将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述至少一个业务组里的隧道业务切换到所述第二转发器进行承载;Optionally, the at least one backup transponder includes a second transponder, and the sending module is specifically configured to send the service switching indication information to the second transponder; wherein, the service switching indication information uses Instructing the second forwarder to switch the tunnel service in the at least one service group to the second forwarder for bearer;
或者,or,
所述至少一个备份转发器包括第二转发器和第三转发器,则所述发送模块具体用于将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示:所述第二转发器将所述第一业务组里的隧道业务切换到所述第二转发器进行承载,所述第三转发器将所述第二业务组里的隧道业务切换到所述第三转发器进行承载。The at least one backup transponder includes a second transponder and a third transponder, and the sending module is specifically configured to send the service switching indication information to the second transponder and the third transponder respectively; Wherein, the service switching instruction information is used to indicate that: the second forwarder switches the tunnel service in the first service group to the second forwarder for bearer, and the third forwarder switches the tunnel service of the first service group The tunnel services in the second service group are switched to the third transponder for bearing.
可选的,所述处理模块具体用于:Optionally, the processing module is specifically used for:
获取每个备份转发器的负载情况;Obtain the load condition of each backup transponder;
根据每个备份转发器的负载情况、所述第一转发器上承载的所述至少一个业务组,采用负载分担算法选择为每个备份转发器分配对应的至少一个业务组;According to the load condition of each backup transponder and the at least one service group carried on the first transponder, use a load sharing algorithm to select and assign at least one corresponding service group to each backup transponder;
生成所述业务切换指示信息。Generate the service switching indication information.
上述技术方案提供的控制器,处理模块可实现为处理器,发送模块可实现为发送器,用来执行前述的备份处理方法中控制器的技术方案,其实现原理和技术效果类似。The controller provided by the above technical solution, the processing module can be implemented as a processor, and the sending module can be implemented as a transmitter, which is used to execute the technical solution of the controller in the aforementioned backup processing method, and its implementation principle and technical effect are similar.
本发明第五方面提供一种转发器,包括:A fifth aspect of the present invention provides a transponder, including:
接收模块,用于接收控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述转发器承载所述第一转发器上承载的隧道业务;A receiving module, configured to receive service switching instruction information sent by the controller; the service switching instruction information is used to instruct the transponder to bear the tunnel service carried on the first transponder;
处理模块,用于根据所述业务切换指示信息对所述第一转发器的业务进行承载。A processing module, configured to carry the service of the first transponder according to the service switching indication information.
可选的,所述处理模块还用于:Optionally, the processing module is also used for:
根据控制器的指示建立与所述第一转发器上承载的隧道业务对应的转发资源;Establishing a forwarding resource corresponding to the tunnel service carried on the first forwarder according to an instruction of the controller;
根据所述转发资源将所述第一转发器上的隧道业务进行备份。Backing up tunnel services on the first forwarder according to the forwarding resources.
可选的,所述处理模块具体用于:Optionally, the processing module is specifically used for:
对所述第一转发器上承载的所有隧道业务进行备份;Backing up all tunnel services carried on the first transponder;
或者,or,
对所述第一转发器上承载的隧道业务按照比例分配进行部分备份。Partial backup is performed on the tunnel service carried on the first transponder according to proportional distribution.
上述技术方案提供的转发器,也称为隧道业务转发资源,处理模块可实现为处理器,接收模块可实现为接收器,用来执行前述的备份处理方法中第二转发器的技术方案,其实现原理和技术效果类似。The transponder provided by the above technical solution is also called tunnel service forwarding resource, the processing module can be implemented as a processor, and the receiving module can be implemented as a receiver, which is used to implement the technical solution of the second transponder in the aforementioned backup processing method. The realization principle and technical effect are similar.
本发明第六方面提供一种控制器,包括:A sixth aspect of the present invention provides a controller, including:
处理模块,用于检测到配置了新的转发器时,根据负载分担算法将当前业务组在所述新的转发器和预先配置的可用的至少两个转发器上进行重新分配;A processing module, configured to redistribute the current service group on the new forwarder and at least two pre-configured available forwarders according to the load sharing algorithm when it detects that a new forwarder is configured;
其中,每个业务组上挂载至少一个业务。Wherein, at least one service is mounted on each service group.
本方案提供的控制器,处理模块可实现为处理器,用来执行前述的负载分担方法的技术方案,其实现原理和技术效果类似。The controller and the processing module provided by this solution can be realized as a processor, which is used to execute the technical solution of the aforementioned load sharing method, and its implementation principle and technical effect are similar.
本发明第七方面提供一种BRAS设备,包括:控制器、第一转发器和至少一个第二转发器;A seventh aspect of the present invention provides a BRAS device, including: a controller, a first transponder, and at least one second transponder;
所述控制器用于:The controller is used for:
获取到所述第一转发器发生故障时,确定所述第一转发器所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器上承载的隧道业务进行备份的转发器的信息;When it is acquired that the first transponder fails, determine the tunnel service forwarding resource group to which the first transponder belongs, and the tunnel service forwarding resource group includes the tunnel service carried by the first transponder for backup transponder information;
根据所述隧道业务转发资源组确定对所述第一转发器进行备份的所述至少一个第二转发器,并根据所述至少一个第二转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息;Determine the at least one second forwarder that backs up the first forwarder according to the tunnel service forwarding resource group, and perform tunnel service carried on the first forwarder according to the at least one second forwarder Backup relationship, generate service switching instruction information;
所述至少一个第二转发器用于:The at least one second transponder is used for:
接收所述控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述至少一个第二转发器将所述第一转发器对应的隧道业务进行承载;receiving service switching instruction information sent by the controller; the service switching instruction information is used to instruct the at least one second transponder to bear the tunnel service corresponding to the first transponder;
根据所述业务切换指示信息对所述第一转发器的业务进行承载。carrying the service of the first transponder according to the service switching indication information.
本发明提供的隧道业务的备份处理方法和设备,通过控制器预先为转发器配置备份,备份转发器在第一转发器承载隧道业务的过程中进行实时备份,在检测到第一转发器发生故障时,控制器确定备份转发器,并向备份转发器发送指示信息,将原本挂载在第一转发器上的隧道业务切换到至少一个备份转发器上进行承载,即控制器预先配置备份的隧道业务转发资源,也就是转发器,当前使用的转发器故障时切换到其他备份转发器上进行业务承载,不需要重新申请资源进行业务重建,避免由于业务重建造成的业务中断的问题。The backup processing method and equipment for the tunnel service provided by the present invention configure the backup for the forwarder in advance through the controller, and the backup forwarder performs real-time backup during the process of the first forwarder carrying the tunnel service, and detects that the first forwarder fails , the controller determines the backup forwarder, and sends instruction information to the backup forwarder, and switches the tunnel service originally mounted on the first forwarder to at least one backup forwarder for carrying, that is, the controller pre-configures the backup tunnel Service forwarding resources, that is, transponders, switch to other backup transponders to carry services when the currently used transponder fails. There is no need to re-apply for resources for service reconstruction, avoiding service interruption caused by service reconstruction.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为虚拟化的隧道业务架构示意图;FIG. 1 is a schematic diagram of a virtualized tunnel service architecture;
图2为本发明隧道业务的备份处理方法实施例一的流程图;FIG. 2 is a flow chart of Embodiment 1 of the backup processing method for tunnel services in the present invention;
图3为本发明隧道业务的备份处理方法实施例二的流程图;FIG. 3 is a flow chart of Embodiment 2 of the backup processing method for tunnel services in the present invention;
图4为本发明隧道业务的备份处理方法实施例三的流程图;FIG. 4 is a flow chart of Embodiment 3 of the backup processing method for tunnel services in the present invention;
图5为本发明隧道业务的备份处理方法实施例四的流程图;FIG. 5 is a flow chart of Embodiment 4 of the backup processing method for tunnel services according to the present invention;
图6为本发明提供的隧道业务转发资源组的总体结构示意图;FIG. 6 is a schematic diagram of the overall structure of the tunnel service forwarding resource group provided by the present invention;
图7为本发明隧道业务的备份处理方法一实例的示意图;FIG. 7 is a schematic diagram of an example of a backup processing method for tunnel services according to the present invention;
图8为本发明隧道业务的负载分担处理方法一实例的示意图;FIG. 8 is a schematic diagram of an example of a load sharing processing method for tunnel services according to the present invention;
图9为本发明控制器实施例一的结构示意图;Fig. 9 is a schematic structural diagram of Embodiment 1 of the controller of the present invention;
图10为本发明转发器实施例一的结构示意图;FIG. 10 is a schematic structural diagram of Embodiment 1 of the transponder of the present invention;
图11为本发明控制器实体实施例一的结构示意图;Fig. 11 is a schematic structural diagram of Embodiment 1 of the controller entity of the present invention;
图12为本发明转发器实体实施例一的结构示意图;FIG. 12 is a schematic structural diagram of Embodiment 1 of a transponder entity in the present invention;
图13为本发明BRAS设备实施例一的结构示意图。FIG. 13 is a schematic structural diagram of Embodiment 1 of a BRAS device according to the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
图1为虚拟化的隧道业务架构示意图,如图1所示,隧道业务架构中包括多个隧道设备、BRAS或者vBRAS、交换机等,还可以包括控制器,在隧道设备有业务包(可以是协议包也可以是数据包)上送至交换机,该交换机确定不存在对应的转发表时,向控制器发起查询(或者向BRAS设备中的控制板或者vBRAS中的控制VM发起查询),控制器(或者控制板或者控制VM)根据该业务包的业务要求和各隧道业务转发资源的情况进行选择合适的隧道业务转发资源(也称为转发器)生成转发表,并将该转发表发送给交换机和隧道业务转发资源,以使交换机将该业务包转发至相应的隧道业务转发资源上进行业务执行。本发明提供的隧道业务的备份处理方法,在隧道设备有业务包时,控制器需要预先为转发器配置备份的转发器,对转发器上的业务进行实时备份,在发生故障时直接将业务切换至备份的转发器上进行承载,不需要重建业务,不会导致业务的中断,下面结合实施例对本发明提供的技术方案进行详细说明。Figure 1 is a schematic diagram of a virtualized tunnel service architecture. As shown in Figure 1, the tunnel service architecture includes multiple tunnel devices, BRAS or vBRAS, switches, etc., and may also include a controller. packet can also be a data packet) to the switch, and when the switch determines that there is no corresponding forwarding table, it initiates a query to the controller (or initiates a query to the control board in the BRAS device or the control VM in the vBRAS), and the controller ( Either the control panel or the control VM) selects a suitable tunnel service forwarding resource (also called a forwarder) according to the service requirements of the service package and the situation of each tunnel service forwarding resource to generate a forwarding table, and sends the forwarding table to the switch and The tunnel service forwarding resource enables the switch to forward the service packet to the corresponding tunnel service forwarding resource for service execution. In the tunnel service backup processing method provided by the present invention, when the tunnel device has a service package, the controller needs to pre-configure the backup transponder for the transponder, perform real-time backup of the business on the transponder, and directly switch the service when a failure occurs Carrying the bearer on the backup transponder does not need to rebuild the service and will not cause service interruption. The technical solution provided by the present invention will be described in detail below in conjunction with the embodiments.
图2为本发明隧道业务的备份处理方法实施例一的流程图,如图2所示,该隧道业务的备份处理方法应用在控制器中,该控制器的形态可以包括但不限于以下三种:Fig. 2 is a flow chart of Embodiment 1 of the backup processing method of the tunnel service according to the present invention. As shown in Fig. 2, the backup processing method of the tunnel service is applied in the controller, and the form of the controller may include but not limited to the following three types :
形态一、该控制器是独立于BRAS或vBRAS部署的控制器。该控制器可以是专用的物理设备,提供控制隧道业务备份处理功能的程序运行在专用的硬件平台上,该硬件平台包括处理器、发送器、接收器和电路等;该控制器也可以是虚拟的网络设备,该虚拟的网络设备可以是运行有提供控制隧道业务备份处理功能程序的虚拟机(Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。其中,一个物理服务器通过虚拟化技术被虚拟成了多个逻辑计算机,每一个逻辑计算机即是物理服务器上的一个虚拟机,每个虚拟机可以运行不同的操作系统,因此,各个虚拟机的应用程序可以运行在互相独立的操作系统的空间内。Form 1. The controller is a controller deployed independently of the BRAS or vBRAS. The controller can be a dedicated physical device, and the program that provides the backup processing function of the control tunnel service runs on a dedicated hardware platform, which includes a processor, a transmitter, a receiver, and a circuit; the controller can also be a virtual A network device, the virtual network device may be a virtual machine (Virtual Machine, VM) running a program that provides the backup processing function of the control tunnel service, and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. Among them, a physical server is virtualized into multiple logical computers through virtualization technology. Each logical computer is a virtual machine on the physical server. Each virtual machine can run different operating systems. Therefore, the application of each virtual machine Programs can run in separate operating system spaces.
形态二、该控制器可以是vBRAS中的控制VM。该vBNG可以是由运行用于提供BNG设备功能的程序的若干个VM构成,包括控制VM、转发VM等。Form 2, the controller may be a control VM in the vBRAS. The vBNG may be composed of several VMs running programs for providing BNG device functions, including control VMs, forwarding VMs, and so on.
形态三、该控制器还可以是物理BRAS中的控制板。该物理BRAS可以是专用的硬件平台,提供BNG功能的程序运行在该专用的硬件平台上,该硬件平台包括由处理器、发送器、接收器和电路等构成的控制板卡和转发板卡等构成。Form 3. The controller may also be a control board in a physical BRAS. The physical BRAS can be a dedicated hardware platform on which the program providing the BNG function runs. The hardware platform includes a control board and a forwarding board composed of a processor, a transmitter, a receiver, and circuits, etc. constitute.
具体的该隧道业务的备份处理方法的具体步骤包括:The specific steps of the backup processing method of the specific tunnel service include:
S101:控制器获取到第一转发器发生故障时,确定第一转发器所属的隧道业务转发资源组,隧道业务转发资源组包括对第一转发器上承载的隧道业务进行备份的转发器的信息。S101: The controller determines the tunnel service forwarding resource group to which the first forwarder belongs when the controller obtains that the first forwarder fails, and the tunnel service forwarding resource group includes information of the forwarder that backs up the tunnel service carried on the first forwarder .
在本实施例中,控制器预先配置一个或者多个与第一转发器互为备份的转发器,该些转发器于第一转发器具有相同的隧道资源,在第一转发器承载业务的过程中,会对第一转发器上的业务数据进行实时备份。In this embodiment, the controller pre-configures one or more forwarders that are mutual backups with the first forwarder. These forwarders have the same tunnel resources as the first forwarder. In , the service data on the first transponder will be backed up in real time.
控制器获取第一转发器发生故障包括但不限于直接由控制器进行检测的方式,也可以是转发器检测到自身出现故障后,向控制器进行上报,报告当前出现故障的情况。The acquisition by the controller of the failure of the first transponder includes, but is not limited to, direct detection by the controller. It may also be that after the transponder detects its own failure, it reports to the controller and reports the current failure.
在控制器获取到第一转发器出现故障时候,控制器根据预先配置的转发器与隧道业务转发资源组的关系,确定出该第一转发器所属的隧道业务转发资源组,并据此获取能够对该第一转发器上承载的业务进行实时备份的多个转发器的信息。When the controller obtains that the first transponder fails, the controller determines the tunnel service forwarding resource group to which the first transponder belongs according to the pre-configured relationship between the transponder and the tunnel service forwarding resource group, and obtains the Information of multiple transponders that perform real-time backup of services carried on the first transponder.
S102:控制器根据隧道业务转发资源组确定对第一转发器进行备份的至少一个备份转发器,并根据至少一个备份转发器对第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息。S102: The controller determines at least one backup forwarder that backs up the first forwarder according to the tunnel service forwarding resource group, and generates a service switch according to the relationship that at least one backup forwarder backs up the tunnel service carried by the first forwarder Instructions.
在本步骤中,控制器直接根据隧道业务转发资源组确定至少一个备份转发器,或者也可以根据每个与第一转发器互为备份的转发器的负载情况,从其中选择出一个或多个备份转发器对第一转发器上的业务进行承载,并据此生成对应的业务切换指示信息。In this step, the controller determines at least one backup transponder directly according to the tunnel service forwarding resource group, or selects one or more The backup transponder carries the services on the first transponder, and generates corresponding service switching indication information accordingly.
上述业务切换指示信息实际含义是指示将第一转发器当前承载的隧道业务切换到选择出来的一个或多个备份转发器上进行承载;该至少一个备份转发器是从与第一转发器互为备份的转发器中选择出的转发器。The actual meaning of the above service switching instruction information is to indicate that the tunnel service currently carried by the first forwarder is switched to one or more selected backup forwarders for carrying; the at least one backup forwarder is a The forwarder selected from the backup forwarders.
S103:控制器将业务切换指示信息发送给至少一个备份转发器,业务切换指示信息用于指示至少一个备份转发器将第一转发器上承载的隧道业务切换到至少一个备份转发器进行承载。S103: The controller sends service switching indication information to at least one backup forwarder, where the service switching indication information is used to instruct at least one backup forwarder to switch the tunnel service carried by the first forwarder to at least one backup forwarder for carrying.
在本步骤中,控制器将业务切换指示信息发送给至少一个备份转发器,以使至少一个备份转发器对第一转发器的隧道业务进行承载。In this step, the controller sends service switching instruction information to at least one backup forwarder, so that at least one backup forwarder bears the tunnel service of the first forwarder.
可选的,为了能够完成业务切换,避免业务中断,控制器将上述生成的业务切换指示信息发送给选择出的每个备份转发器,指示备份转发器将原来由第一转发器承载的业务进行承载。Optionally, in order to complete service switching and avoid service interruption, the controller sends the above-generated service switching instruction information to each selected backup forwarder, instructing the backup forwarder to carry out the service originally carried by the first forwarder. bearer.
在该方案中,转发器也称为隧道业务转发资源,在具体实现中,在一些隧道业务转发资源处于active状态时,存在其他的与之互为备份的隧道业务转发资源处于standby状态,一旦其中存在active资源发生故障,隧道业务转发资源组选择一个或者多个standby状态的隧道业务转发资源变为active状态,并将故障资源上的业务负载分担到选择出的变为active状态的备份隧道业务转发资源上。In this solution, the forwarder is also called a tunnel service forwarding resource. In a specific implementation, when some tunnel service forwarding resources are in the active state, there are other tunnel service forwarding resources that are in standby state as mutual backups. If an active resource fails, the tunnel service forwarding resource group selects one or more tunnel service forwarding resources in the standby state to become active, and distributes the service load on the failed resource to the selected backup tunnel service forwarding that becomes active resources.
需要说明的是,该转发器的形态可以包括但不限于以下两种:It should be noted that the form of the transponder may include but not limited to the following two:
形态一、该转发器是独立部署的提供BRAS隧道业务转发处理的设备。该转发器可以是专用的物理设备,提供控制隧道业务备份处理功能的程序运行在专用的硬件平台上,该硬件平台包括处理器、发送器、接收器和电路等;该转发器也可以是虚拟的网络设备,该虚拟的网络设备可以是运行有提供BRAS隧道业务备份转发处理功能程序的VM,所述虚拟机部署在硬件设备上(例如,物理服务器)。Form 1. The forwarder is an independently deployed device that provides BRAS tunnel service forwarding and processing. The transponder can be a dedicated physical device, and the program that provides the backup processing function of the control tunnel service runs on a dedicated hardware platform, which includes a processor, a transmitter, a receiver, and a circuit; the transponder can also be a virtual A network device, the virtual network device may be a VM running a program that provides a BRAS tunnel service backup and forwarding processing function, and the virtual machine is deployed on a hardware device (for example, a physical server).
形态二、该转发器可以是vBRAS中的转发VM。该vBNG可以是由运行用于提供BNG设备功能的程序的若干个VM构成,包括控制VM、转发VM等。Form 2, the forwarder may be a forwarding VM in the vBRAS. The vBNG may be composed of several VMs running programs for providing BNG device functions, including control VMs, forwarding VMs, and so on.
形态三、该转发器还可以是物理BRAS中的转发板。该物理BRAS可以是专用的硬件平台,提供BNG功能的程序运行在该专用的硬件平台上,该硬件平台包括由处理器、发送器、接收器和电路等构成的控制板卡和转发板卡等构成。Form 3, the repeater may also be a forwarding board in a physical BRAS. The physical BRAS can be a dedicated hardware platform on which the program providing the BNG function runs. The hardware platform includes a control board and a forwarding board composed of a processor, a transmitter, a receiver, and circuits, etc. constitute.
本实施例提供的隧道业务的备份处理方法,通过控制器预先为转发器配置备份,在获取到第一转发器发生故障时,根据与该第一转发器互为备份的多个转发器的负载情况或者所属隧道业务转发资源组的信息,选择出至少一个备份转发器,将原本挂载在第一转发器上的业务切换到至少一个备份转发器上进行承载,即控制器预先配置备份的隧道业务转发资源,也就是转发器,当前使用的转发器故障时切换到其他备份转发器上进行业务承载,不需要重新申请资源进行业务重建,避免由于业务重建造成的业务中断的问题,实现隧道业务的热备份。In the tunnel service backup processing method provided in this embodiment, the controller pre-configures the backup for the transponder, and when the first transponder fails, according to the load According to the situation or the information of the tunnel service forwarding resource group to which it belongs, at least one backup forwarder is selected, and the business originally mounted on the first forwarder is switched to at least one backup forwarder for carrying, that is, the controller pre-configures the backup tunnel Service forwarding resources, that is, transponders, when the currently used transponder fails, switch to other backup transponders for service bearer. There is no need to re-apply for resources for service reconstruction, avoiding service interruption caused by service reconstruction, and realizing tunnel services hot backup.
图3为本发明隧道业务的备份处理方法实施例二的流程图,如图3所示,在上述实施例的基础上,本实施例提供的隧道业务的备份处理方法的具体实现步骤为:FIG. 3 is a flow chart of Embodiment 2 of the backup processing method for tunnel services according to the present invention. As shown in FIG. 3 , on the basis of the above-mentioned embodiments, the specific implementation steps of the backup processing method for tunnel services provided by this embodiment are as follows:
S201:控制器根据至少一个备份转发器对第一转发器上承载的隧道业务进行备份的关系,在至少一个备份转发器上建立承载第一转发器上承载的隧道业务的转发资源。S201: The controller establishes, on at least one backup forwarder, a forwarding resource for carrying the tunnel service carried by the first forwarder according to the relationship that at least one backup forwarder backs up the tunnel service carried by the first forwarder.
在本步骤中,该转发资源包括业务转发表项。控制器预先配置一个或者多个与第一转发器互为备份的转发器,该些转发器和第一转发器具有相同的隧道业务转发资源,在第一转发器承载业务的过程中,会对第一转发器上的业务数据进行实时备份。In this step, the forwarding resource includes a service forwarding entry. The controller pre-configures one or more forwarders that are mutual backups with the first forwarder. These forwarders have the same tunnel service forwarding resources as the first forwarder. When the first forwarder carries services, they will The service data on the first transponder is backed up in real time.
S202:控制器获取到第一转发器发生故障时,确定第一转发器所属的隧道业务转发资源组,隧道业务转发资源组包括对第一转发器上承载的隧道业务进行备份的转发器的信息。S202: The controller determines the tunnel service forwarding resource group to which the first forwarder belongs when the controller obtains that the first forwarder fails, and the tunnel service forwarding resource group includes information of the forwarder that backs up the tunnel service carried on the first forwarder .
在本实施例中,在控制器获取到第一转发器出现故障时候,控制器根据预先配置的转发器与隧道业务转发资源组的关系,确定出该第一转发器所属的隧道业务转发资源组,并据此获取能够对该第一转发器上承载的业务进行实时备份的多个转发器的信息。In this embodiment, when the controller obtains that the first forwarder fails, the controller determines the tunnel service forwarding resource group to which the first forwarder belongs according to the pre-configured relationship between the forwarder and the tunnel service forwarding resource group , and obtain the information of multiple transponders capable of backing up the services carried by the first transponder in real time accordingly.
S203:控制器根据隧道业务转发资源组确定对第一转发器进行备份的至少一个备份转发器,并根据至少一个备份转发器对第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息。S203: The controller determines at least one backup forwarder that backs up the first forwarder according to the tunnel service forwarding resource group, and generates a service switch according to the relationship that at least one backup forwarder backs up the tunnel service carried on the first forwarder Instructions.
在本步骤中,控制器直接根据隧道业务转发资源组确定至少一个备份转发器,或者也可以根据每个与第一转发器互为备份的转发器的负载情况,从其中选择出一个或多个备份转发器对第一转发器上的业务进行承载,并据此生成对应的业务切换指示信息。In this step, the controller determines at least one backup transponder directly according to the tunnel service forwarding resource group, or selects one or more The backup transponder carries the services on the first transponder, and generates corresponding service switching indication information accordingly.
S204:控制器将业务切换指示信息发送给至少一个备份转发器,业务切换指示信息用于指示至少一个备份转发器将第一转发器上承载的隧道业务切换到至少一个备份转发器进行承载。S204: The controller sends service switching indication information to at least one backup forwarder, where the service switching indication information is used to instruct at least one backup forwarder to switch the tunnel service carried by the first forwarder to at least one backup forwarder for carrying.
在本实施例中,至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的具体实现方式至少包括以下两种:In this embodiment, at least one backup forwarder backs up the tunnel service carried on the first forwarder at least includes the following two methods:
第一种实现方式,至少一个备份转发器只包括一个第二转发器,则该第二转发器需要在第一转发器进行隧道业务转发的过程中,对第一转发器上承载的所有隧道业务进行备份。In the first implementation mode, at least one backup forwarder includes only one second forwarder, and the second forwarder needs to check all the tunnel services carried by the first forwarder during the forwarding process of the first forwarder. Make a backup.
第二种实现方式,至少一个备份转发器包括两个或者两个以上的转发器,这里以包括两个转发器为例,该至少一个备份转发器包括第二转发器和第三转发器,那么该第二转发器和第三转发器分别对第一转发器上承载的隧道业务按照比例分配进行备份。具体实现中该比例可以进行预先配置,也可以根据每个转发器上的负载情况实时进行获取。In the second implementation manner, at least one backup transponder includes two or more transponders. Here, taking two transponders as an example, the at least one backup transponder includes a second transponder and a third transponder, then The second transponder and the third transponder respectively back up the tunnel services carried on the first transponder according to the proportional distribution. In specific implementation, the ratio can be pre-configured, and can also be acquired in real time according to the load condition on each transponder.
在上述的基础上,至少一个备份转发器包括第二转发器,则控制器将业务切换指示信息发送给至少一个备份转发器,包括:控制器将业务切换指示信息发送至第二转发器;其中,业务切换指示信息用于指示第二转发器将第一转发器对应的隧道业务切换到第二转发器进行承载;或者,至少一个备份转发器包括第二转发器和第三转发器,则控制器将业务切换指示信息发送给至少一个备份转发器,包括:控制器将业务切换指示信息分别发送至第二转发器和第三转发器;其中,业务切换指示信息用于指示第二转发器和第三转发器将第一转发器对应的隧道业务切换到第二转发器和第三转发器进行承载。On the basis of the above, at least one backup transponder includes a second transponder, and the controller sends the service switching instruction information to at least one backup transponder, including: the controller sends the service switching instruction information to the second transponder; wherein , the service switching instruction information is used to instruct the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for bearer; or, at least one backup forwarder includes the second forwarder and the third forwarder, then the control The controller sends the service switching indication information to at least one backup transponder, including: the controller sends the service switching indication information to the second transponder and the third transponder respectively; wherein, the service switching indication information is used to instruct the second transponder and the third transponder The third forwarder switches the tunnel service corresponding to the first forwarder to the second forwarder and the third forwarder for bearing.
该方案的含义是上述的至少一个备份转发器可以只包括一个转发器,也可以包括两个或者两个以上的转发器;如果只有一个备份转发器,那么在该唯一的备份转发器需要将上述的第一转发器上的所有隧道业务进行备份,第一转发器故障时,控制器发送的业务切换指示信息指示将第一转发器上的所有隧道业务切换至该唯一的备份转发器上进行承载;如果有两个或者两个以上的备份转发器,那么该多个备份转发器可以分别对第一转发器的部分隧道业务进行备份即可,在第一转发器发生故障之后,每个备份转发器将备份的隧道业务进行承载即可,所有的备份转发器一起承载原来有第一转发器承载的隧道业务。The implication of this scheme is that the above-mentioned at least one backup transponder may include only one transponder, or may include two or more than two transponders; if there is only one backup transponder, the above-mentioned All tunnel services on the first transponder are backed up. When the first transponder fails, the service switching instruction information sent by the controller indicates that all tunnel services on the first transponder should be switched to the only backup transponder for bearer ; If there are two or more backup transponders, then the multiple backup transponders can respectively back up part of the tunnel services of the first transponder. After the first transponder fails, each backup transponder It is only necessary for the backup forwarder to bear the tunnel service of the backup, and all the backup forwarders together bear the tunnel service originally carried by the first forwarder.
在上述任一实施例中,该第一转发器上承载的隧道业务可以被分为至少一个业务组,在第一转发器对该些业务组中的隧道业务进行转发的过程中,多个备份转发器需要对第一转发器的隧道业务进行实时备份,具体的备份方式至少包括以下两种:In any of the above embodiments, the tunnel services carried by the first forwarder can be divided into at least one service group, and when the first forwarder forwards the tunnel services in these service groups, multiple backup The forwarder needs to back up the tunnel service of the first forwarder in real time, and the specific backup methods include at least the following two:
第一种备份方式,至少一个备份转发器只包括一个第二转发器,那么该第二转发器对第一转发器上承载的至少一个业务组里的隧道业务全部进行进行备份;In the first backup mode, at least one backup transponder includes only one second transponder, then the second transponder backs up all tunnel services in at least one service group carried on the first transponder;
第一种备份方式,至少一个备份转发器包括两个或者两个以上的转发器,以两个为例,假设该至少一个备份转发器包括第二转发器和第三转发器,所述至少一个业务组包括多个业务组,那么该第二转发器和第三转发器则分别对其中的一个或多个业务组进行业务备份,即由第二转发器和第三转发器一起将第一转发器上的所有的业务组的隧道业务进行备份。In the first backup mode, at least one backup transponder includes two or more transponders. Taking two as an example, assuming that the at least one backup transponder includes a second transponder and a third transponder, the at least one If the business group includes a plurality of business groups, then the second transponder and the third transponder respectively perform business backup for one or more of the business groups, that is, the second transponder and the third transponder jointly forward the first The tunnel services of all service groups on the server are backed up.
假设该至少一个业务组包括第一业务组和第二业务组,那么第二转发器对第一业务组里的隧道业务进行备份,第三转发器对第二业务组里的隧道业务进行备份可以为一种具体的实现方式。Assuming that the at least one service group includes the first service group and the second service group, then the second forwarder backs up the tunnel service in the first service group, and the third forwarder backs up the tunnel service in the second service group. as a specific implementation.
至少一个备份转发器包括第二转发器,则控制器将业务切换指示信息发送给至少一个备份转发器,包括:控制器将业务切换指示信息发送至第二转发器;其中,业务切换指示信息用于指示第二转发器将至少一个业务组里的隧道业务切换到第二转发器进行承载;或者,至少一个备份转发器包括第二转发器和第三转发器,则控制器将业务切换指示信息发送给至少一个备份转发器,包括:控制器将业务切换指示信息分别发送至第二转发器和第三转发器;其中,业务切换指示信息用于指示:第二转发器将第一业务组里的隧道业务切换到第二转发器进行承载,第三转发器将第二业务组里的隧道业务切换到第三转发器进行承载。At least one backup transponder includes a second transponder, and the controller sends the service switching instruction information to at least one backup transponder, including: the controller sends the service switching instruction information to the second transponder; wherein, the service switching instruction information uses To instruct the second forwarder to switch the tunnel service in at least one service group to the second forwarder for bearer; or, at least one backup forwarder includes the second forwarder and the third forwarder, then the controller sends the service switching instruction information Sending to at least one backup transponder includes: the controller sends service switching indication information to the second transponder and the third transponder respectively; wherein, the service switching indication information is used to indicate: the second transponder transfers the service switching indication information to the second transponder in the first service group The tunnel service in the second service group is switched to the second forwarder for bearer, and the third forwarder switches the tunnel service in the second service group to the third forwarder for bearer.
该方案的含义是,由于业务数量级较大,为了实现灵活的负载分担,引入中间层-也就是业务组。每个业务组都指向一个转发器,业务组量挂载一个或业务,即每个转发器可以承载多个业务组,每个业务组下又挂载着一个或多个业务。第一转发器上承载的业务可以被分为多个业务组,因此备份转发器只有一个的时候,可以将第一转发器上所有业务组的隧道业务进行备份,并在第一转发器故障后将该第一转发器上所有业务组的隧道业务进行承载;备份转发器有多个的时候,每个备份转发器可以对不同的业务组分别进行承载。The implication of this solution is that, due to the large order of magnitude of services, in order to realize flexible load sharing, an intermediate layer, that is, a service group, is introduced. Each business group points to a forwarder, and the business group loads one or more services, that is, each forwarder can carry multiple business groups, and each business group is loaded with one or more services. The services carried on the first transponder can be divided into multiple service groups. Therefore, when there is only one backup transponder, the tunnel services of all service groups on the first transponder can be backed up. The tunnel services of all service groups on the first transponder are carried; when there are multiple backup transponders, each backup transponder can carry different service groups respectively.
上述的几种由备份的转发器对第一转发器上的隧道业务进行备份的实际含义为,如果存在多个备份转发器,且第一转发器承载多个业务组时,每个备份转发器可以对一个或者多个业务组进行备份,在检测到第一转发器故障后,通过控制器的业务切换指示信息,每个备份转发器可以根据备份情况,对一个或者多个业务组的隧道业务进行承载。The actual meaning of the above backup forwarders backing up the tunnel services on the first forwarder is that if there are multiple backup forwarders and the first forwarder carries multiple service groups, each backup forwarder One or more service groups can be backed up. After the failure of the first transponder is detected, each backup transponder can back up the tunnel services of one or more service groups according to the backup situation through the service switching instruction information of the controller. to carry.
在本实施例中,控制器可以根据备份转发器的负载情况将将业务进行负载分配,即会分配业务组,最终基于业务组的粒度对业务进行分配至不同的转发器上,使业务负载趋于均衡,避免造成某个转发器的负载过大的情况。In this embodiment, the controller can distribute the business according to the load condition of the backup transponder, that is, allocate the business group, and finally distribute the business to different transponders based on the granularity of the business group, so that the business load tends to For balance, to avoid the situation that the load of a certain transponder is too large.
图4为本发明隧道业务的备份处理方法实施例三的流程图,如图4所示,在上述任一实施例的基础上,下面提供一种隧道业务的备份处理方法,即热备份的具体实现过程:Fig. 4 is a flow chart of the third embodiment of the tunnel service backup processing method according to the present invention. As shown in Fig. 4, on the basis of any of the above-mentioned embodiments, the following provides a tunnel service backup processing method, that is, the specific method of hot backup Implementation process:
S301:所述控制器为所述第一转发器和至少一个用于备份的备份转发器配置相同的隧道资源,以使至少一个备份转发器可以对所述第一转发器的数据进行实时备份。S301: The controller configures the same tunnel resource for the first forwarder and at least one backup forwarder used for backup, so that at least one backup forwarder can back up data of the first forwarder in real time.
在本步骤中,控制器预先配置一个或者多个与第一转发器互为备份的转发器,该些转发器于第一转发器具有相同的隧道资源,在第一转发器承载业务的过程中,会对第一转发器上的业务数据进行实时备份。In this step, the controller pre-configures one or more forwarders that are mutual backups with the first forwarder. These forwarders have the same tunnel resources as the first forwarder. When the first forwarder carries services , the service data on the first transponder will be backed up in real time.
在一种具体实现方式中,控制器生成业务切换指示信息的过程中需要根据备份转发器的负载进行均衡分配,具体实现包括:控制器获取每个备份转发器的负载情况;控制器根据每个备份转发器的负载情况、第一转发器上承载的至少一个业务组,采用负载分担算法选择为每个备份转发器分配对应的至少一个业务组,然后生成所述业务切换指示信息。一种具体的实现步骤包括S302-S304。In a specific implementation manner, the controller needs to perform balanced distribution according to the load of the backup transponder during the process of generating the service switching instruction information. The specific implementation includes: the controller acquires the load status of each backup transponder; The load condition of the backup transponder, at least one service group carried on the first transponder, using a load sharing algorithm to select and allocate at least one corresponding service group to each backup transponder, and then generating the service switching indication information. A specific implementation step includes S302-S304.
S302:所述控制器获取与所述第一转发器互为备份的每个备份转发器的负载情况。S302: The controller acquires a load condition of each backup forwarder that is a backup of the first forwarder.
在本步骤中,控制器可以直接将第一转发器承载的业务直接分配给与第一转发器互为备份的任一个转发器,或者平均分配到每个转发器上进行承载,但是这样的方式可能会资源使用不均衡的问题,因此,控制器需要选择出使用的至少一个备份转发器。In this step, the controller can directly allocate the service carried by the first transponder to any transponder that is a mutual backup with the first transponder, or evenly distribute it to each transponder for carrying, but in this way There may be a problem of unbalanced resource usage, therefore, the controller needs to select at least one backup forwarder to use.
S303:所述控制器根据每个转发器的负载情况,根据负载分担算法从所有的备份转发器中选择所述至少一个第二转发器,并为每个第二转发器分配对应的至少一个业务组。S303: The controller selects the at least one second transponder from all backup transponders according to the load sharing algorithm according to the load condition of each transponder, and assigns at least one corresponding service to each second transponder Group.
结合上述步骤S303,控制器获取每个与第一转发器互为备份的转发器的负载情况,然后将其中负载较轻的一个或者多个转发器选择出来作为第二转发器,具体的负载分担算法可以进行配置,对此不做限制。In combination with the above step S303, the controller acquires the load status of each transponder that is a mutual backup with the first transponder, and then selects one or more transponders with lighter loads as the second transponder. The specific load sharing Algorithms are configurable without limitation.
在本方案中,所述第一转发器承载的业务被分为至少一个业务组;则所述业务切换指示信息包括每个第二转发器与业务组的对应关系。In this solution, the services carried by the first transponder are divided into at least one service group; then the service switching instruction information includes the correspondence between each second transponder and the service group.
其含义为:由于业务数量级较大,为了实现灵活的负载分担,引入中间层,也就是业务组。每个业务组都指向一个隧道资源(即一个转发器),业务组量挂载业务,在同一个隧道资源内,业务可以遵循负载分担算法挂接到不同业务组上。即每个转发器可以承载多个业务组,每个业务组下又挂载着一个或多个业务。Its meaning is: due to the large order of magnitude of the business, in order to realize flexible load sharing, the middle layer, that is, the business group, is introduced. Each service group points to a tunnel resource (that is, a transponder), and the service group loads services. In the same tunnel resource, services can be attached to different service groups according to the load sharing algorithm. That is, each transponder can carry multiple service groups, and each service group carries one or more services.
S304:所述控制器生成所述业务切换指示信息。S304: The controller generates the service switching instruction information.
在上述实施例的基础上,该业务切换指示信息不但可以指示由哪些第二转发器承载第一转发器上的业务,还可以具体指示每个第二转发器上承载的业务组,具体实现中可以在该业务切换指示信息中增加业务组标识。On the basis of the above-mentioned embodiments, the service switching instruction information can not only indicate which second transponders carry the services on the first transponder, but also specifically indicate the service group carried by each second transponder. In the specific implementation A service group identifier may be added to the service switching indication information.
S305:所述控制器将所述业务切换指示信息发送给所述至少一个第二转发器,以使所述至少一个第二转发器对所述第一转发器的业务进行承载。S305: The controller sends the service switching indication information to the at least one second transponder, so that the at least one second transponder carries the service of the first transponder.
在本实施例中,第一转发器的所有的备份转发器包括至少一个第二转发器,其含义是至少一个第二转发器为备份转发器中的一部分转发器。In this embodiment, all backup repeaters of the first repeater include at least one second repeater, which means that at least one second repeater is a part of the backup repeaters.
将第一转发器上的业务组切换至一个或者多个第二转发器上进行承载,在整个切换过程中,都是对业务组整体的搬移,不对单个业务或者单个业务进行搬移,即最小移动单位必须是业务组而不是业务(即不能将一个业务组中的一个业务成员进行移动,必须同时将成员板下所有的业务组一起移动)。The service group on the first transponder is switched to one or more second transponders for bearer. During the whole switching process, the entire service group is moved, and no single service or single service is moved, that is, the minimum movement The unit must be a business group rather than a business (that is, a business member in a business group cannot be moved, and all business groups under the member board must be moved at the same time).
该至少一个第二转发器为根据每个备份转发器的负载情况选择出来的用来承载第一转发器的业务的备份转发器。The at least one second transponder is a backup transponder selected according to the load condition of each backup transponder for carrying the service of the first transponder.
本实施例提供的隧道业务的备份处理方法,控制器控制将故障的转发器也就是隧道资源承载的业务切换至备份的其他的转发器上进行承载,切换过程中直接将故障转发器的业务组挂接到不同的备份转发器(即隧道资源)上进行承载,这种业务组移动只是再控制层面管理维护业务使用隧道资源的指针,而用户资源不需要进行变更。这种移动应该在控制层面的移动,避免业务组的数据表项在单板之间迁移造成性能瓶颈和表项丢失,不需要进行业务重建,避免业务中断。In the tunnel service backup processing method provided in this embodiment, the controller controls to switch the faulty forwarder, that is, the service carried by the tunnel resource, to another backup forwarder for carrying. During the switching process, the service group of the faulty forwarder is directly Attached to different backup transponders (that is, tunnel resources) for bearer, this kind of service group movement is just a pointer for management and maintenance of service tunnel resources at the control plane, and user resources do not need to be changed. This kind of movement should be done at the control plane to avoid performance bottlenecks and loss of entries caused by the migration of data entries of service groups between boards, without the need for service reconstruction and service interruption.
图5为本发明隧道业务的备份处理方法实施例四的流程图,如图5所示,该备份处理方法应用在控制器选择出的任一个备份转发器中,即上述实施例的第二转发器或者第三转发器,根据控制器的指示对第一转发器上的部分或者全部业务进行承载,该隧道业务的备份处理方法的具体实现步骤为:Fig. 5 is a flow chart of Embodiment 4 of the backup processing method for tunnel services according to the present invention. As shown in Fig. 5, the backup processing method is applied to any backup transponder selected by the controller, that is, the second transponder in the above-mentioned embodiment The third transponder or the third transponder bears some or all of the services on the first transponder according to the instructions of the controller. The specific implementation steps of the backup processing method for the tunnel service are as follows:
S401:备份转发器接收控制器发送的业务切换指示信息;业务切换指示信息用于指示备份转发器将第一转发器对应的隧道业务进行承载。S401: The backup forwarder receives service switching indication information sent by the controller; the service switching indication information is used to instruct the backup forwarder to bear the tunnel service corresponding to the first forwarder.
在本步骤中,所述第一转发器与所述备份转发器互为备份;具体实现中,控制器需要在所述备份转发器接收控制器发送的业务切换指示信息之前,将该备份转发器和第一转发器配置相同的隧道资源,以使在第一转发器承载承载业务进行的过程中,所述备份转发器对所述第一转发器的数据进行实时备份。可选的,所述第一转发器和所述备份转发器可以互为备份。In this step, the first transponder and the backup transponder are mutual backups; in specific implementation, the controller needs to switch the backup transponder before the backup transponder receives the service switching indication information sent by the controller The same tunnel resource as that of the first forwarder is configured, so that the backup forwarder backs up the data of the first forwarder in real time during the process of the first forwarder carrying bearer services. Optionally, the first transponder and the backup transponder may be backups of each other.
S402:备份转发器根据业务切换指示信息对第一转发器的业务进行承载。S402: The backup forwarder carries the service of the first forwarder according to the service switching indication information.
在本步骤中,该业务切换指示信息中指出需要该备份转发器承载第一转发器的全部或者部分业务,如果承载的只是部分业务时,该业务切换指示信息可以指示出具体的业务组的标识。即所述第一转发器承载的业务被分为至少一个业务组;则所述业务切换指示信息包括与所述该备份转发器(若该备份转发器为第二转发器,那么该业务切换指示信息中应该明确该第二转发器要承载的业务组的标识)对应的业务组的标识。In this step, the service switching instruction information indicates that the backup transponder needs to carry all or part of the services of the first transponder. If only part of the services are carried, the service switching instruction information may indicate the identity of the specific service group . That is, the business carried by the first transponder is divided into at least one service group; then the service switching instruction information includes the same as the backup transponder (if the backup transponder is the second transponder, then the service switching instruction The information should specify the identity of the service group corresponding to the identity of the service group to be carried by the second transponder.
可选的,在该方案中备份转发器接收控制器发送的业务切换指示信息之前,备份转发器根据控制器的指示建立与第一转发器上承载的隧道业务对应的转发资源;备份转发器根据转发资源将所述第一转发器上的隧道业务进行备份。Optionally, before the backup forwarder receives the service switching indication information sent by the controller in this solution, the backup forwarder establishes a forwarding resource corresponding to the tunnel service carried on the first forwarder according to the instruction of the controller; The forwarding resource backs up the tunnel service on the first forwarder.
可选的,备份转发器根据转发资源将所述第一转发器上的隧道业务进行备份,包括:备份转发器对所述第一转发器上承载的所有隧道业务进行备份;或者,备份转发器对所述第一转发器上承载的隧道业务按照比例分配进行部分备份。Optionally, the backup forwarder backs up tunnel services on the first forwarder according to forwarding resources, including: the backup forwarder backs up all tunnel services carried on the first forwarder; or, the backup forwarder Partial backup is performed on the tunnel service carried on the first transponder according to proportional distribution.
本实施例提供的隧道业务的备份处理方法,备份转发器根据控制器的指示信息对故障的第一转发器上的业务进行承载,避免第一转发器故障造成业务中断的问题。In the tunnel service backup processing method provided in this embodiment, the backup transponder carries the service on the failed first transponder according to the instruction information of the controller, so as to avoid the problem of service interruption caused by the failure of the first transponder.
在上述几个实施例的基础上,下面通过具体的例子对本发明提供的隧道业务的备份处理方法进行说明。On the basis of the above-mentioned several embodiments, the tunnel service backup processing method provided by the present invention will be described below through specific examples.
图6为本发明提供的隧道业务转发资源组的总体结构示意图,如图6所示,在该架构中中的对应关系存储在控制器中,该控制器可以是独立部署的控制器,也可以是vBRAS中的控制VM,还可以是BRAS中的控制板,隧道业务转发资源组,也就是上述实施例中的控制器主要实现以下功能:管理1个或多个隧道业务转发资源,该些隧道业务转发资源相当于上述的转发器;该vBRAS对隧道业务转发资源加入、退出做热备份管理;负载分担分配;对隧道业务的配置管理,如隧道认证配置、隧道源IP、隧道模式、负载分档方式等。FIG. 6 is a schematic diagram of the overall structure of the tunnel service forwarding resource group provided by the present invention. As shown in FIG. It is the control VM in the vBRAS, and it can also be the control board in the BRAS. The tunnel service forwarding resource group, that is, the controller in the above embodiment mainly implements the following functions: manage one or more tunnel service forwarding resources, and these tunnel service forwarding resources Service forwarding resources are equivalent to the above-mentioned forwarders; the vBRAS performs hot backup management on the joining and exiting of tunnel service forwarding resources; load sharing and distribution; configuration management on tunnel services, such as tunnel authentication configuration, tunnel source IP, tunnel mode, load sharing File mode, etc.
隧道资源相当于上述的转发器主要用来对于vBRAS业务可以管理多个VM上的隧道业务转发资源。另外,本方案还引入了业务组:由于业务数量级较大,为了实现灵活的负载分担,引入中间层,也就是业务组。每个业务组都指向一个隧道资源,业务组量挂载业务,在同一个隧道资源内,业务单板,也就是业务,可以遵循负载分担算法挂接到不同业务组上。Tunnel resources are equivalent to the above-mentioned forwarders and are mainly used to manage tunnel service forwarding resources on multiple VMs for vBRAS services. In addition, this solution also introduces service groups: due to the large order of magnitude of services, in order to realize flexible load sharing, the middle layer, that is, service groups, is introduced. Each service group points to a tunnel resource, and the service group is loaded with services. In the same tunnel resource, the service board, that is, the service, can be attached to different service groups according to the load sharing algorithm.
当隧道资源故障时,相比没有业务组时隧道资源上所有业务切换到其他一块隧道资源,可以基于业务组负载分担到不同的隧道资源上,修改业务组执行的隧道资源,使业务均匀分担到不同的隧道资源。When a tunnel resource fails, compared to when there is no service group, all services on the tunnel resource are switched to another tunnel resource. Based on the load sharing of the service group, the tunnel resources executed by the service group can be modified to distribute the services evenly. Different tunnel resources.
下面以实际的隧道业务转发资源增加或者故障为例,说明本方案中的负载均衡以及隧道业务的热备份方案,图6和图7中示出的是以业务的角度的切换示意图。The following takes the increase or failure of actual tunnel service forwarding resources as an example to illustrate the load balancing and tunnel service hot backup solution in this solution. Figure 6 and Figure 7 show the switching schematic diagrams from the perspective of services.
图6中的业务对应的实际的业务数据,在业务转发表中存储相应业务组的索引。The actual service data corresponding to the service in Fig. 6 stores the index of the corresponding service group in the service forwarding table.
在该架构中,由于业务承载与隧道中,上行流量和普通隧道转发一致,通过目的路由转发。下行流量通过业务到业务组,再到出隧道所在成员隧道业务转发资源,完成下行流量转发。In this architecture, since the business bearer is in the tunnel, the uplink traffic is forwarded through the destination route in the same way as in the normal tunnel. The downlink traffic passes through the service to the service group, and then to the service forwarding resource of the member tunnel where the outbound tunnel is located to complete the downlink traffic forwarding.
按照上述的备份处理方法,如果图中隧道业务转发资源2出现故障,也就是转发器2出现故障,可以将隧道业务转发资源2上挂载的业务组1至m切换到与隧道业务转发资源2备份的一个或者多个隧道业务转发资源上进行承载。According to the above backup processing method, if the tunnel service forwarding resource 2 in the figure fails, that is, the forwarder 2 fails, the service groups 1 to m mounted on the tunnel service forwarding resource 2 can be switched to the tunnel service forwarding resource 2. One or more backed up tunnel service forwarding resources are carried.
本申请的技术方案提出了负载分担以及热备份两种技术方案,负载分担指的是在业务生成的时候,在为该业务分配隧道业务转发资源时候,就将业务均匀的分布到不同的隧道业务转发资源上;另外上述的热备份的含义是在其中一个隧道业务转发资源故障时,不会对所有的业务进行切换,只是对故障了的隧道业务转发资源上的业务进行切换,并且可以在业务切换过程中,根据上述负载分担的原则进行分配,避免出现同一个隧道业务转发资源上负载较重的情况。The technical solution of this application proposes two technical solutions of load sharing and hot backup. Load sharing means that when a service is generated, when tunnel service forwarding resources are allocated for the service, the service is evenly distributed to different tunnel services. Forwarding resources; In addition, the meaning of the above-mentioned hot backup is that when one of the tunnel service forwarding resources fails, all services will not be switched over, but only the services on the failed tunnel service forwarding resource will be switched, and the service can be switched During the switching process, the distribution is carried out according to the above load sharing principle to avoid the heavy load on the service forwarding resources of the same tunnel.
结合上述隧道业务转发资源组的整体结构示意,下面介绍隧道业务转发资源组配置模型:入隧道端配置的是vBRAS管理的一个隧道业务转发资源组的地址,由vBRAS负责分配业务转发资源组内部的负载分担。具体采用的负载分担算法可以根据业务分类,如基于隧道源网络协议(英文:Internet Protocol,简称:IP)地址,业务的地址段、业务类型(IPOE\PPPOE\专线等)。Combined with the overall structure of the above-mentioned tunnel service forwarding resource group, the configuration model of the tunnel service forwarding resource group is introduced below: the inbound tunnel end is configured with the address of a tunnel service forwarding resource group managed by the vBRAS, and the vBRAS is responsible for allocating the service forwarding resource group internal load sharing. The specific load sharing algorithm adopted can be classified according to the business, such as based on the tunnel source network protocol (English: Internet Protocol, IP for short) address, the address segment of the business, and the business type (IPOE\PPPOE\dedicated line, etc.).
根据隧道创建类型分为两种:协议类型隧道和业务类型隧道,这两种的处理方式和配置模型稍微有些不同。There are two types of tunnel creation: protocol-type tunnels and service-type tunnels. The processing methods and configuration models of these two types are slightly different.
(1)协议类型隧道(1) Protocol type tunnel
通过协议报文(如第二层隧道协议(英文:Layer 2Tunneling Protocol,简称:L2TP)、通用路由封装(英文:Generic Routing Encapsulation,简称:GRE)等)触发建立的隧道,在发起端需要配置vBRAS端的IP地址,vBRAS通过负载分担算法选择隧道业务转发资源组中隧道,如通过发起隧道SIP进行哈希(hash)选择DIP。隧道备份数据(即转发器中备份的数据)中应该包含隧道的源端属性:如源IP、源端口,才能保证在切换后隧道的合法性以及延续保活机制。To trigger the establishment of a tunnel through a protocol message (such as Layer 2 Tunneling Protocol (English: Layer 2Tunneling Protocol, abbreviated: L2TP), Generic Routing Encapsulation (English: Generic Routing Encapsulation, abbreviated: GRE), etc.), vBRAS needs to be configured on the initiator The IP address of the end, the vBRAS selects the tunnel in the tunnel service forwarding resource group through the load sharing algorithm, for example, selects the DIP by hashing (hash) by initiating the tunnel SIP. The tunnel backup data (that is, the data backed up in the transponder) should include the source end attributes of the tunnel: such as source IP and source port, in order to ensure the legitimacy of the tunnel after switching and the continuation of the keep-alive mechanism.
(2)业务类型隧道(2) Service type tunnel
非协议触发的隧道(如CGN、NETSTEAM等),没有入隧道端,流量的处理直接在隧道版本上处理后转发。如对于CGN用户可以通过流量报文的源IP所在地址段HASH到对应的隧道单板。隧道备份数据不感知建立隧道的源端属性,直接对业务进行备份。Tunnels triggered by non-protocols (such as CGN, NETSTEAM, etc.) do not enter the tunnel end, and the traffic is processed directly on the tunnel version and then forwarded. For example, for a CGN user, the source IP address segment of the traffic packet can be hashed to the corresponding tunnel board. The tunnel backup data is not aware of the source end attribute of the tunnel establishment, and directly backs up the business.
基于上述的图5所示的架构以及隧道配置过程,下面介绍隧道业务中的热备份处理方法的具体实现:Based on the architecture shown in Figure 5 above and the tunnel configuration process, the following describes the specific implementation of the hot backup processing method in the tunnel service:
业务上线时在隧道业务转发资源组内所有隧道业务转发资源申请资源并占用实现热备份,在当前使用的隧道业务转发资源故障时切换到其他可以获取的隧道业务转发资源时,不需要重新申请资源而实现业务部重点。为了保障用户切换后功能备份,有一个隧道业务转发资源上申请失败不许让用户下线。When the service goes online, all tunnel service forwarding resources in the tunnel service forwarding resource group apply for resources and occupy them to realize hot backup. When the currently used tunnel service forwarding resources fail and switch to other available tunnel service forwarding resources, there is no need to re-apply for resources And to achieve the focus of the business department. In order to ensure the function backup after user switching, there is a tunnel service forwarding resource where the application fails and the user is not allowed to go offline.
隧道热备份将业务组挂接到不同的隧道业务转发资源上进行,这种业务组移动只是再控制层面管理维护业务使用隧道业务转发资源的指针,而用户资源不需要进行变更。这种移动应该在控制层面的移动,避免业务组的数据表项在单板之间迁移造成性能瓶颈和表项丢失。Tunnel hot backup attaches service groups to different tunnel service forwarding resources. This kind of service group movement is just a pointer to management and maintenance services using tunnel service forwarding resources at the control plane, and user resources do not need to be changed. This movement should be performed at the control plane to avoid performance bottlenecks and loss of entries caused by migration of data entries of service groups between boards.
所谓的一次移动就是将一个业务组从一个成员板移动到另一个成员板(也就是将一个业务组从一个隧道业务转发资源搬移到另一个隧道业务转发资源)。最小移动单位必须是业务组而不是业务,即必须同时将隧道业务转发资源下所有的业务组一起移动)。The so-called one move is to move a service group from one member board to another member board (that is, to move a service group from one tunnel service forwarding resource to another tunnel service forwarding resource). The smallest moving unit must be a service group rather than a service, that is, all service groups under the tunnel service forwarding resource must be moved together at the same time).
图7为本发明隧道业务的备份处理方法一实例的示意图,如图7所示,当隧道业务转发资源3(也就是转发器3)出现故障之后,vBRAS(即控制器或者控制隧道业务转发资源)控制将于隧道业务转发资源3的互为备份的隧道业务转发资源1和2对原隧道业务转发资源3挂载的业务进行承载,可以将全部的隧道业务转发资源3的业务全部切换中隧道业务转发资源1或者隧道业务转发资源2上进行承载,但是为了避免一个隧道业务转发资源的负载过大,可以根据负载分担算法将隧道业务转发资源3的业务按照业务组分别切换至两个隧道业务转发资源上进行承载。实现隧道业务转发资源的热备份,避免由于隧道业务转发资源3的故障造成业务中断的问题。FIG. 7 is a schematic diagram of an example of a backup processing method for tunnel services in the present invention. As shown in FIG. ) controls the mutual backup of tunnel service forwarding resources 1 and 2 of the tunnel service forwarding resource 3 to carry the services mounted on the original tunnel service forwarding resource 3, and can switch all the services of the tunnel service forwarding resource 3 to the middle tunnel Service forwarding resource 1 or tunnel service forwarding resource 2 is used to bear the load. However, in order to avoid excessive load on one tunnel service forwarding resource, the service of tunnel service forwarding resource 3 can be switched to the two tunnel services according to the service group according to the load sharing algorithm. It is carried on the forwarding resource. The hot backup of the tunnel service forwarding resource is realized, and the problem of service interruption caused by the failure of the tunnel service forwarding resource 3 is avoided.
另外,控制器在检测到配置了新的转发器时,根据负载分担算法将当前业务组在所述新的转发器和预先配置的可用的至少两个转发器上进行重新分配;其中,每个业务组上挂载至少一个业务。In addition, when the controller detects that a new transponder is configured, it redistributes the current service group on the new transponder and at least two pre-configured available transponders according to the load sharing algorithm; wherein, each Mount at least one business on the business group.
实际上负载分担方案不止使用在增加了新的隧道业务转发资源时,在隧道业务转发资源故障进行业务切换承载的过程中,也需要根据每个隧道业务转发资源的负载情况进行分配,负载分担的方案具体可以从两级进行实现:In fact, the load sharing solution is not only used when new tunnel service forwarding resources are added, but also needs to be allocated according to the load of each tunnel service forwarding resource during the process of service switching and bearing when the tunnel service forwarding resource fails. The scheme can be implemented at two levels:
第一级:隧道业务级别,实现业务与隧道业务转发资源的分担。The first level: the tunnel service level, which realizes the sharing of service and tunnel service forwarding resources.
第二级:业务组级别,通过业务组挂载业务。通过在隧道业务转发资源建立业务组分配业务的分担,在业务资源故障时,通过业务组的移动改变转发的出隧道业务转发资源的指针而不需要变更用户的隧道业务转发资源的表项。The second level: business group level, mount services through business groups. By establishing a service group on the tunnel service forwarding resource to distribute service sharing, when the service resource fails, the pointer of the forwarded outbound tunnel service forwarding resource can be changed through the movement of the service group without changing the table entry of the user's tunnel service forwarding resource.
下面介绍几种隧道业务转发资源组内不同的隧道业务转发资源的负载分担模式:The following describes the load sharing modes of different tunnel service forwarding resources in several tunnel service forwarding resource groups:
负载分担方式:所有的隧道业务转发资源同时处于ACTIVE状态,业务在隧道业务转发资源的进行根据负载分担算法进行分担。Load sharing mode: All tunnel service forwarding resources are in the ACTIVE state at the same time, and services are shared according to the load sharing algorithm when the tunnel service forwarding resources are carried out.
N:M备份方式:只有N块隧道业务转发资源处于ACTIVE状态,M块处于STANDBY,用户业务在N块资源上负载分担。一旦ACTIVE资源故障,选择一块STANDBY资源迅速变为ACTIVE,故障资源业务负载分担到当前ACTIVE的单板上,典型的应用是1:1主备备份方式。N:M backup mode: Only N blocks of tunnel service forwarding resources are in the ACTIVE state, M blocks are in STANDBY, and user services are load-balanced on N blocks of resources. Once the ACTIVE resource fails, select a STANDBY resource to quickly become ACTIVE, and the service load of the faulty resource is shared to the current ACTIVE board. A typical application is the 1:1 active/standby backup mode.
在隧道业务转发资源组内,每个成员资源上创建逻辑的业务组,将用户挂到业务组上,可以选择不同的负载分担算法计算出用户业务挂到哪个成员资源的业务组上。如使用最简单的负载方法:逐个用户分担到业务组上。In the tunnel service forwarding resource group, a logical service group is created on each member resource, and users are linked to the service group. Different load sharing algorithms can be selected to calculate the service group of which member resource the user service is linked to. For example, use the simplest load method: user-by-user sharing to the business group.
业务组的数量以及业务挂到业务组应当是可以灵活配置。业务组越少,隧道业务转发资源up/down负载分担效果越差,但是资源占用较少;相反负载分担效果明显,相应占用资源越多。The number of business groups and the linking of services to business groups should be flexibly configurable. The fewer service groups, the worse the up/down load sharing effect of tunnel service forwarding resources, but the resource usage is less; on the contrary, the load sharing effect is obvious, and the corresponding resource usage is more.
以增加新的转发器为例,会将新增的转发器加入到负载分担计算中,会将当前的业务组在可用的转发器(包含新增的和已有的)进行重新分配。分配的方式可以根据不同的算法进行负载分配,至少包括以下几种方式:。Taking adding a new transponder as an example, the new transponder will be added to the load sharing calculation, and the current business group will be redistributed among the available transponders (including new and existing ones). The way of distribution can carry out load distribution according to different algorithms, including at least the following ways:.
1、根据业务组的量进行简单平均分配。如原来2个转发器每个3个业务组,平均分到3个转发器,每个2个业务组1. Simple and even distribution based on the volume of business groups. For example, there are 3 business groups for each of the original 2 transponders, and they are divided into 3 transponders on average, with 2 business groups for each
2、根据业务对应的负载量(需要在业务组保存以下的负载统计)平均分配到三个转发器,负载量有:2. According to the load corresponding to the business (the following load statistics need to be saved in the business group), it is evenly distributed to three transponders. The load is as follows:
A)、业务组下业务分配的带宽;A), the bandwidth allocated by the business under the business group;
B)、业务组下业务的数量;B), the number of businesses under the business group;
C)、业务组下业务实时使用的带宽。与A)的区别在于这里实际使用的带宽。家里的上网带宽为100M,但是平时上网只用到10M。A)的含义是通过10M,C)的含义是总共使用100M。C), the real-time bandwidth used by the business under the business group. The difference from A) is the actual bandwidth used here. The Internet bandwidth at home is 100M, but usually only 10M is used for Internet access. The meaning of A) is to pass 10M, and the meaning of C) is to use 100M in total.
上述负载分担的基本原理是基于业务组进行切换,以负载量计算决定的是业务组切换到哪个转发器。The basic principle of the load sharing above is to switch based on the service group, and the forwarder to which the service group is switched is determined by the load calculation.
图8为本发明隧道业务的负载分担处理方法一实例的示意图,如图8所示,示出了新隧道业务转发资源3加入到隧道业务转发资源组中之后的负载分担处理方式,当增加了新的隧道业务转发资源3之后,控制器根据预选的负载分担算法将原本承载在隧道业务转发资源1和隧道业务转发资源2上的业务切换至新增的隧道业务转发资源3上进行承载,切换过程中是业务组的整体搬移。FIG. 8 is a schematic diagram of an example of a load sharing processing method for tunnel services according to the present invention. As shown in FIG. After the new tunnel service forwarding resource 3 is created, the controller switches the services originally carried on the tunnel service forwarding resource 1 and tunnel service forwarding resource 2 to the newly added tunnel service forwarding resource 3 according to the pre-selected load sharing algorithm. The process is the overall relocation of the business group.
新增的隧道业务转发资源会分配业务组,同时隧道TRUNK中的不同隧道业务转发资源的业务组进行负载分配,最终基于业务组的粒度对业务进行分配,使业务负载趋于均衡。The newly added tunnel service forwarding resources will allocate service groups, and at the same time, the service groups of different tunnel service forwarding resources in the tunnel trunk will distribute the load. Finally, the service will be allocated based on the granularity of the service group, so that the service load tends to be balanced.
图9为本发明控制器实施例一的结构示意图,如图9所示,该控制器10,包括:Fig. 9 is a schematic structural diagram of Embodiment 1 of the controller of the present invention. As shown in Fig. 9, the controller 10 includes:
处理模块11,用于在获取到第一转发器发生故障时,确定所述第一转发器所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器上承载的隧道业务进行备份的转发器的信息;The processing module 11 is configured to determine the tunnel service forwarding resource group to which the first forwarder belongs when it is acquired that the first forwarder fails, and the tunnel service forwarding resource group includes The information of the transponder for the backup of the tunnel business;
处理模块11还用于根据所述隧道业务转发资源组确定对所述第一转发器进行备份的至少一个备份转发器,并根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息;The processing module 11 is further configured to determine at least one backup forwarder that backs up the first forwarder according to the tunnel service forwarding resource group, and perform a backup on the first forwarder according to the at least one backup forwarder. The relationship of backing up the tunnel business, generating service switching instruction information;
发送模块12,用于将所述业务切换指示信息发送给所述至少一个备份转发器,所述业务切换指示信息用于指示所述至少一个备份转发器将所述第一转发器上承载的隧道业务切换到所述至少一个备份转发器进行承载。The sending module 12 is configured to send the service switching indication information to the at least one backup forwarder, the service switching indication information is used to instruct the at least one backup forwarder to use the tunnel carried by the first forwarder The service is switched to the at least one backup transponder for bearing.
本实施例提供的控制器,即隧道业务的备份处理装置,用于执行前述任一方法实施例中控制器的技术方案,其实现原理和技术效果类似,通过预先为转发器配置备份,在检测到第一转发器发生故障时,根据与该第一转发器互为备份的转发器选择出至少一个备份转发器,将原本挂载在第一转发器上的业务切换到至少一个备份转发器上进行承载,即预先配置备份的隧道资源,也就是转发器,当前使用的转发器故障时切换到其他备份转发器上进行业务承载,不需要重新申请资源进行业务重建,避免由于业务重建造成的业务中断的问题,实现隧道业务的热备份。The controller provided in this embodiment, that is, the backup processing device for the tunnel service, is used to implement the technical solution of the controller in any of the foregoing method embodiments. Its implementation principle and technical effect are similar. When the first transponder fails, at least one backup transponder is selected according to the transponders that are mutually backup with the first transponder, and the business originally mounted on the first transponder is switched to at least one backup transponder Bearing, that is, pre-configuring backup tunnel resources, that is, transponders. When the currently used transponder fails, switch to other backup transponders for service bearer. There is no need to re-apply for resources for service reconstruction, avoiding service disruptions caused by service reconstruction. To solve the problem of interruption, realize the hot backup of the tunnel business.
在控制器的实施例二中,所述处理模块11还用于:In the second embodiment of the controller, the processing module 11 is also used for:
根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,在所述至少一个备份转发器上建立承载所述第一转发器上承载的隧道业务的转发资源。According to the relationship that the at least one backup forwarder backs up the tunnel service carried by the first forwarder, establishing a forwarding resource for carrying the tunnel service carried by the first forwarder on the at least one backup forwarder .
可选的,所述第一转发器承载的业务被分为至少一个业务组;则所述处理模块11生成的所述业务切换指示信息包括每个第二转发器与业务组的对应关系。Optionally, the services carried by the first transponder are divided into at least one service group; then the service switching indication information generated by the processing module 11 includes a correspondence between each second transponder and a service group.
可选的,处理模块11应用的所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所有隧道业务进行备份;或者,所述至少一个备份转发器包括第二转发器和第三转发器,所述第二转发器和所述第三转发器分别对所述第一转发器上承载的隧道业务按照比例分配进行备份。Optionally, the backup of the tunnel service carried by the first forwarder by the at least one backup forwarder applied by the processing module 11 includes: the at least one backup forwarder includes a second forwarder, and the second forwarder The at least one backup forwarder backs up all tunnel services carried on the first forwarder; or, the at least one backup forwarder includes a second forwarder and a third forwarder, and the second forwarder and the third forwarder The tunnel services carried on the first transponder are distributed according to the proportion and backed up respectively.
可选的,所述至少一个备份转发器包括第二转发器,则所述发送模块12具体用于将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述第一转发器对应的隧道业务切换到所述第二转发器进行承载;Optionally, the at least one backup transponder includes a second transponder, and the sending module 12 is specifically configured to send the service switching indication information to the second transponder; wherein, the service switching indication information Instructing the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for bearer;
或者,所述至少一个备份转发器包括第二转发器和第三转发器,则所述发送模块12具体用于将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示所述第二转发器和所述第三转发器将所述第一转发器对应的隧道业务切换到所述第二转发器和所述第三转发器进行承载。Alternatively, the at least one backup transponder includes a second transponder and a third transponder, and the sending module 12 is specifically configured to send the service switching indication information to the second transponder and the third transponder respectively. A forwarder; wherein, the service switching instruction information is used to instruct the second forwarder and the third forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder and the third forwarder Three transponders carry the load.
可选的,所述处理模块11还用于将所述第一转发器上承载的隧道业务被分为至少一个业务组。Optionally, the processing module 11 is further configured to divide the tunnel services carried on the first transponder into at least one service group.
可选的,所述处理模块11使用的所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份包括:所述至少一个备份转发器包括第二转发器,所述第二转发器对所述第一转发器上承载的所述至少一个业务组里的隧道业务进行备份;或者,所述至少一个备份转发器包括第二转发器和第三转发器,所述至少一个业务组包括第一业务组和第二业务组,所述第二转发器对所述第一业务组里的隧道业务进行备份,所述第三转发器对所述第二业务组里的隧道业务进行备份。Optionally, the backup of the tunnel service carried by the first forwarder by the at least one backup forwarder used by the processing module 11 includes: the at least one backup forwarder includes a second forwarder, and the second forwarder The second forwarder backs up the tunnel services in the at least one service group carried on the first forwarder; or, the at least one backup forwarder includes a second forwarder and a third forwarder, and the at least one The service group includes a first service group and a second service group, the second forwarder backs up the tunnel service in the first service group, and the third forwarder backs up the tunnel service in the second service group Make a backup.
可选的,所述至少一个备份转发器包括第二转发器,则所述发送模块12具体用于将所述业务切换指示信息发送至所述第二转发器;其中,所述业务切换指示信息用于指示所述第二转发器将所述至少一个业务组里的隧道业务切换到所述第二转发器进行承载;Optionally, the at least one backup transponder includes a second transponder, and the sending module 12 is specifically configured to send the service switching indication information to the second transponder; wherein, the service switching indication information It is used to instruct the second forwarder to switch the tunnel service in the at least one service group to the second forwarder for bearer;
或者,所述至少一个备份转发器包括第二转发器和第三转发器,则所述发送模块12具体用于将所述业务切换指示信息分别发送至所述第二转发器和所述第三转发器;其中,所述业务切换指示信息用于指示:所述第二转发器将所述第一业务组里的隧道业务切换到所述第二转发器进行承载,所述第三转发器将所述第二业务组里的隧道业务切换到所述第三转发器进行承载。Alternatively, the at least one backup transponder includes a second transponder and a third transponder, and the sending module 12 is specifically configured to send the service switching indication information to the second transponder and the third transponder respectively. A forwarder; wherein, the service switching indication information is used to indicate that: the second forwarder switches the tunnel service in the first service group to the second forwarder for bearer, and the third forwarder will The tunnel services in the second service group are switched to the third forwarder for bearing.
可选的,所述处理模块11具体用于:Optionally, the processing module 11 is specifically used for:
获取每个备份转发器的负载情况;Obtain the load condition of each backup transponder;
根据每个备份转发器的负载情况、所述第一转发器上承载的所述至少一个业务组,采用负载分担算法选择为每个备份转发器分配对应的至少一个业务组;According to the load condition of each backup transponder and the at least one service group carried on the first transponder, use a load sharing algorithm to select and assign at least one corresponding service group to each backup transponder;
生成所述业务切换指示信息。Generate the service switching indication information.
可选的,在上述隧道业务的备份处理装置实施例一的基础上,上述处理模块11还用于检测到配置了新的转发器时,根据负载分担算法将当前业务组在所述新的转发器和预先配置的可用的至少两个转发器上进行重新分配;Optionally, on the basis of the first embodiment of the tunnel service backup processing device, the above-mentioned processing module 11 is also configured to, when detecting that a new forwarder is configured, transfer the current service group to the new forwarder according to the load sharing algorithm. redistributed on at least two transponders available and pre-configured;
其中,每个业务组上挂载至少一个业务。Wherein, at least one service is mounted on each service group.
本实施例提供的控制器,用于执行前述任一方法实施例中控制器的技术方案,其实现原理和技术效果类似,在此不再赘述。The controller provided in this embodiment is used to implement the technical solution of the controller in any of the foregoing method embodiments, and its implementation principles and technical effects are similar, and details are not repeated here.
图10为本发明转发器实施例一的结构示意图,如图10所示,该转发器20,包括:FIG. 10 is a schematic structural diagram of Embodiment 1 of the transponder of the present invention. As shown in FIG. 10, the transponder 20 includes:
接收模块21,用于接收控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述转发器承载所述第一转发器上承载的隧道业务;The receiving module 21 is configured to receive service switching instruction information sent by the controller; the service switching instruction information is used to instruct the transponder to bear the tunnel service carried on the first transponder;
处理模块22,用于根据所述业务切换指示信息对所述第一转发器的业务进行承载。The processing module 22 is configured to carry the service of the first transponder according to the service switching indication information.
本实施例提供的转发器,用于执行前述任一方法实施例中第二转发器的技术方案,其实现原理和技术效果类似,根据控制器的指示信息对故障的第一转发器上的业务进行承载,避免第一转发器故障造成业务中断的问题。The transponder provided in this embodiment is used to implement the technical solution of the second transponder in any of the foregoing method embodiments. Its implementation principle and technical effect are similar. Bearing is performed to avoid the problem of service interruption caused by the failure of the first transponder.
在该转发器实施例二中,在上述实施例一的基础上,所述处理模块22还用于控制对所述第一转发器的数据进行实时备份;所述第一转发器和所述控制器20的隧道资源相同。In the second embodiment of the transponder, on the basis of the first embodiment above, the processing module 22 is also used to control the real-time backup of the data of the first transponder; the first transponder and the control The tunnel resources of the device 20 are the same.
可选的,所述第一转发器承载的业务被分为至少一个业务组;则所述接收模块21接收到的所述业务切换指示信息包括与所述第二转发器对应的业务组的标识。Optionally, the services carried by the first transponder are divided into at least one service group; then the service switching indication information received by the receiving module 21 includes the identifier of the service group corresponding to the second transponder .
可选的,所述处理模块22还用于:根据控制器的指示建立与所述第一转发器上承载的隧道业务对应的转发资源;根据所述转发资源将所述第一转发器上的隧道业务进行备份。Optionally, the processing module 22 is further configured to: establish a forwarding resource corresponding to the tunnel service carried on the first forwarder according to an instruction of the controller; The tunnel service is backed up.
可选的,所述处理模块22具体用于:对所述第一转发器上承载的所有隧道业务进行备份;或者,对所述第一转发器上承载的隧道业务按照比例分配进行部分备份。Optionally, the processing module 22 is specifically configured to: back up all the tunnel services carried on the first forwarder; or perform partial backup on the proportional distribution of the tunnel services carried on the first forwarder.
本实施例提供的转发器,用于执行前述任一方法实施例中备份转发器的技术方案,其实现原理和技术效果类似,在此不再赘述。The transponder provided in this embodiment is used to implement the technical solution of the backup transponder in any of the foregoing method embodiments, and its implementation principle and technical effect are similar, and will not be repeated here.
图11为本发明控制器实体实施例一的结构示意图,如图11所示,该控制器包括:存储有程序指令的存储器31、用于控制程序指令执行的处理器32以及发送器33;Fig. 11 is a schematic structural diagram of Embodiment 1 of the controller entity of the present invention. As shown in Fig. 11, the controller includes: a memory 31 storing program instructions, a processor 32 for controlling the execution of program instructions, and a transmitter 33;
所述处理器32用于:The processor 32 is used for:
获取到第一转发器发生故障时,确定所述第一转发器所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器上承载的隧道业务进行备份的转发器的信息;When it is acquired that the first forwarder fails, determine the tunnel service forwarding resource group to which the first forwarder belongs, where the tunnel service forwarding resource group includes a forwarder that backs up the tunnel service carried by the first forwarder Information;
根据所述隧道业务转发资源组确定对所述第一转发器进行备份的至少一个备份转发器,并根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,生成业务切换指示信息;Determine at least one backup forwarder for backing up the first forwarder according to the tunnel service forwarding resource group, and backup the tunnel service carried by the first forwarder according to the at least one backup forwarder. , generating service switching instruction information;
发送器33用于将所述业务切换指示信息发送给所述至少一个备份转发器,所述业务切换指示信息用于指示所述至少一个备份转发器将所述第一转发器对应的隧道业务切换到所述至少一个备份转发器进行承载。The transmitter 33 is configured to send the service switching indication information to the at least one backup forwarder, and the service switching indication information is used to instruct the at least one backup forwarder to switch the tunnel service corresponding to the first forwarder to the at least one backup forwarder for bearer.
可选的,所述处理器32还用于:根据所述至少一个备份转发器对所述第一转发器上承载的隧道业务进行备份的关系,在所述至少一个备份转发器上建立承载所述第一转发器上承载的隧道业务的转发资源。Optionally, the processor 32 is further configured to: according to the relationship that the at least one backup forwarder backs up the tunnel service carried on the first forwarder, establish a bearer service on the at least one backup forwarder. The forwarding resource of the tunnel service carried on the first forwarder.
可选的,所述第一转发器承载的业务被分为至少一个业务组;则所述处理器32生成的所述业务切换指示信息包括每个备份转发器与业务组的对应关系。Optionally, the services carried by the first transponder are divided into at least one service group; then the service switching indication information generated by the processor 32 includes a correspondence between each backup transponder and a service group.
可选的,所述处理器32具体用于:Optionally, the processor 32 is specifically configured to:
获取每个备份转发器的负载情况;Obtain the load condition of each backup transponder;
根据每个备份转发器的负载情况、所述第一转发器上承载的所述至少一个业务组,采用负载分担算法选择为每个备份转发器分配对应的至少一个业务组;According to the load condition of each backup transponder and the at least one service group carried on the first transponder, use a load sharing algorithm to select and assign at least one corresponding service group to each backup transponder;
生成所述业务切换指示信息。Generate the service switching indication information.
可选的,上述处理器32还用于检测到配置了新的转发器时,根据负载分担算法将当前业务组在所述新的转发器和预先配置的可用的至少两个转发器上进行重新分配;其中,每个业务组上挂载至少一个业务。Optionally, the above-mentioned processor 32 is also configured to reconfigure the current service group on the new forwarder and at least two available pre-configured forwarders according to the load sharing algorithm when detecting that a new forwarder is configured. Allocation; wherein, at least one service is mounted on each service group.
本实施例提供的控制器,用于执行前述任一方法实施例中控制器的技术方案,其实现原理和技术效果类似,在此不再赘述。The controller provided in this embodiment is used to implement the technical solution of the controller in any of the foregoing method embodiments, and its implementation principles and technical effects are similar, and details are not repeated here.
图12为本发明转发器实体实施例一的结构示意图,如图12所示,该转发器包括:接收器41以及用于控制程序指令执行的处理器42;FIG. 12 is a schematic structural diagram of Embodiment 1 of the transponder entity of the present invention. As shown in FIG. 12 , the transponder includes: a receiver 41 and a processor 42 for controlling the execution of program instructions;
接收器41,用于接收控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述备份转发器将所述第一转发器对应的隧道业务进行承载;The receiver 41 is configured to receive service switching instruction information sent by the controller; the service switching instruction information is used to instruct the backup transponder to carry the tunnel service corresponding to the first transponder;
处理器42,用于控制所述转发器根据所述业务切换指示信息对所述第一转发器的业务进行承载。The processor 42 is configured to control the forwarder to carry the service of the first forwarder according to the service switching instruction information.
可选的,所述处理器42还用于:Optionally, the processor 42 is also used for:
根据控制器的指示建立与所述第一转发器上承载的隧道业务对应的转发资源;根据所述转发资源将所述第一转发器上的隧道业务进行备份。Establishing a forwarding resource corresponding to the tunnel service carried on the first transponder according to an instruction of the controller; and backing up the tunnel service on the first transponder according to the forwarding resource.
可选的,所述第一转发器承载的业务被分为至少一个业务组;则所述接收器41接收到的所述业务切换指示信息包括与所述备份转发器对应的业务组的标识。Optionally, the services carried by the first transponder are divided into at least one service group; then the service switching indication information received by the receiver 41 includes an identifier of the service group corresponding to the backup transponder.
可选的,所述处理器42还具体用于:Optionally, the processor 42 is also specifically configured to:
对所述第一转发器上承载的所有隧道业务进行备份;或者,对所述第一转发器上承载的隧道业务按照比例分配进行部分备份。Backing up all the tunnel services carried on the first transponder; or performing partial backup on the proportional distribution of the tunnel services carried on the first transponder.
本实施例提供的转发器,用于执行前述任一方法实施例中第二转发器的技术方案,其实现原理和技术效果类似,根据控制器的指示信息对故障的第一转发器上的业务进行承载,避免第一转发器故障造成业务中断的问题。The transponder provided in this embodiment is used to implement the technical solution of the second transponder in any of the foregoing method embodiments. Its implementation principle and technical effect are similar. Bearing is performed to avoid the problem of service interruption caused by the failure of the first transponder.
图13为本发明BRAS设备实施例一的结构示意图,如图13所示,该BRAS设备50至少包括:控制器51、第一转发器52和至少一个第二转发器53;FIG. 13 is a schematic structural diagram of Embodiment 1 of a BRAS device according to the present invention. As shown in FIG. 13 , the BRAS device 50 at least includes: a controller 51, a first transponder 52, and at least one second transponder 53;
所述控制器51用于:The controller 51 is used for:
获取到所述第一转发器52发生故障时,确定所述第一转发器52所属的隧道业务转发资源组,所述隧道业务转发资源组包括对所述第一转发器52上承载的隧道业务进行备份的转发器的信息;When it is acquired that the first forwarder 52 fails, determine the tunnel service forwarding resource group to which the first forwarder 52 belongs, and the tunnel service forwarding resource group includes the tunnel service carried on the first forwarder 52 information on the transponders that make the backup;
根据所述隧道业务转发资源组确定对所述第一转发器52进行备份的所述至少一个第二转发器53,并根据所述至少一个第二转发器53对所述第一转发器52上承载的隧道业务进行备份的关系,生成业务切换指示信息;Determine the at least one second forwarder 53 that backs up the first forwarder 52 according to the tunnel service forwarding resource group, and perform backup on the first forwarder 52 according to the at least one second forwarder 53 The relationship between the backup of the tunnel service carried, and the generation of service switching instruction information;
所述至少一个第二转发器53用于:The at least one second transponder 53 is used for:
接收所述控制器发送的业务切换指示信息;所述业务切换指示信息用于指示所述至少一个第二转发器53将所述第一转发器52上承载的隧道业务进行承载;receiving service switching instruction information sent by the controller; the service switching instruction information is used to instruct the at least one second transponder 53 to carry the tunnel service carried on the first transponder 52;
根据所述业务切换指示信息将所述第一转发器52的业务进行承载。The service of the first transponder 52 is carried according to the service switching indication information.
如图13所示,该BRAS设备中包括控制器和多个转发器,控制器可以对转发器进行管理控制,执行与前述方法实施例中的控制器类似的技术方案,其实现原理和技术效果类似。As shown in Figure 13, the BRAS device includes a controller and multiple transponders, the controller can manage and control the transponders, and implement technical solutions similar to those of the controller in the foregoing method embodiments, its realization principle and technical effect similar.
在上述控制器和转发器的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiments of the above-mentioned controller and transponder, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(英文:read-only memory,缩写:ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppy disk)、光盘(英文:optical disc)及其任意组合。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer readable memory. When the program is executed, it executes the steps comprising the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, Solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610569579.2ACN106254095B (en) | 2016-07-19 | 2016-07-19 | The backup processing method and equipment of tunnel traffic |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610569579.2ACN106254095B (en) | 2016-07-19 | 2016-07-19 | The backup processing method and equipment of tunnel traffic |
| Publication Number | Publication Date |
|---|---|
| CN106254095A CN106254095A (en) | 2016-12-21 |
| CN106254095Btrue CN106254095B (en) | 2019-11-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610569579.2AActiveCN106254095B (en) | 2016-07-19 | 2016-07-19 | The backup processing method and equipment of tunnel traffic |
| Country | Link |
|---|---|
| CN (1) | CN106254095B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108322368B (en)* | 2017-06-23 | 2020-01-03 | 新华三技术有限公司 | Video-on-demand method and device |
| CN107249038A (en)* | 2017-07-06 | 2017-10-13 | 腾讯科技(深圳)有限公司 | Business datum retransmission method and system |
| CN108512703B (en)* | 2018-03-28 | 2021-08-24 | 新华三技术有限公司 | Backup method, device and equipment for BRAS transfer control separation and machine readable storage medium |
| CN109698769B (en)* | 2019-02-18 | 2022-03-22 | 深信服科技股份有限公司 | Application disaster tolerance device and method, terminal device and readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102045259A (en)* | 2010-12-30 | 2011-05-04 | 上海顶竹通讯技术有限公司 | Packet switching equipment and method for managing customer service |
| CN103200214A (en)* | 2012-01-10 | 2013-07-10 | 深圳市快播科技有限公司 | Method and system for processing off-line messages in centralized mode |
| CN104734867A (en)* | 2013-12-19 | 2015-06-24 | 中兴通讯股份有限公司 | Network service node failure processing method, device and system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8565070B2 (en)* | 2005-11-23 | 2013-10-22 | Cisco Technology, Inc. | System and method for active geographic redundancy |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102045259A (en)* | 2010-12-30 | 2011-05-04 | 上海顶竹通讯技术有限公司 | Packet switching equipment and method for managing customer service |
| CN103200214A (en)* | 2012-01-10 | 2013-07-10 | 深圳市快播科技有限公司 | Method and system for processing off-line messages in centralized mode |
| CN104734867A (en)* | 2013-12-19 | 2015-06-24 | 中兴通讯股份有限公司 | Network service node failure processing method, device and system |
| Publication number | Publication date |
|---|---|
| CN106254095A (en) | 2016-12-21 |
| Publication | Publication Date | Title |
|---|---|---|
| US11050586B2 (en) | Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device | |
| US11153194B2 (en) | Control plane isolation for software defined network routing services | |
| US10171567B2 (en) | Load balancing computer device, system, and method | |
| US10812394B2 (en) | Virtual network device and related method | |
| US10447498B2 (en) | Facilitating communications between virtual private clouds hosted by different cloud providers | |
| US9584369B2 (en) | Methods of representing software defined networking-based multiple layer network topology views | |
| CN104954182B (en) | A kind of method and apparatus for configuring Virtual Server Cluster | |
| WO2016107418A1 (en) | Allocation method, apparatus and system for cloud network communication path | |
| CN104202264A (en) | Carrying resource allocation method for clouded data center network, device and system | |
| CN106254095B (en) | The backup processing method and equipment of tunnel traffic | |
| Yang et al. | Algorithms for fault-tolerant placement of stateful virtualized network functions | |
| CN105227541B (en) | A kind of security strategy dynamic migration method and device | |
| CN105704042A (en) | Message processing method, BNG and BNG cluster system | |
| CN110445884A (en) | A kind of container IP address management method and device | |
| CN104601680A (en) | Resource management method and device | |
| JP7641363B2 (en) | Method, system and computer readable medium for distributing S1 connections to a mobility management entity (MME) and N2 connections to an access and mobility management function (AMF) - Patents.com | |
| CN109731345B (en) | Voice processing method and device, electronic equipment and storage medium | |
| CN109067573B (en) | Traffic scheduling method and device | |
| CN108271149A (en) | A kind of method, apparatus and system of user data moving anchor point | |
| CN114024971B (en) | Service data processing method, kubernetes cluster and medium | |
| WO2020181733A1 (en) | Vpc-based multi-data center intercommunication method and related device | |
| CN111193607A (en) | Method, device and storage medium for transmission resource management | |
| CN113726651B (en) | A routing management method, device and system | |
| CN119376936A (en) | A cloud-based load balancing method, device, equipment and medium | |
| CN103297258B (en) | The method of device data backup, communication equipment and system |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |