Backup processing method and device for tunnel service
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a backup processing method and equipment of tunnel service based on a virtual Broadband Remote Access Server (vBRAS).
Background
Network Function Virtualization (NFV) of a telecommunication Network is a trend and consensus at present, and a comprehensive multi-service access edge is built to realize multi-service fusion, which is a key point for modifying a metropolitan area Network and an access Network in the future. The Broadband Remote Access Server (BRAS) device is used as the core of the access edge, and is a key point for the transformation of the integrated multi-service access edge. One of the schemes for performing integrated multi-service access edge modification by the BRAS is to implement virtualization of the BRAS, that is, a vbars.
However, in the current BRAS and vbars systems, when a repeater processing that carries the tunnel traffic fails, an originating end of the tunnel traffic is further required to reinitiate a request for recovering the traffic, which may cause a service interruption.
Disclosure of Invention
The embodiment of the invention provides a backup processing method and equipment for a tunnel service, which are used for solving the problem that when the processing of a repeater bearing the tunnel service in a hardware BRAS and a vBRAS system fails, the service is interrupted because an initiating end of the tunnel service needs to initiate a request for recovering the service again.
A first aspect of the present invention provides a backup processing method for a tunnel service, including:
when the controller acquires that a first transponder fails, determining a tunnel service forwarding resource group to which the first transponder belongs, wherein the tunnel service forwarding resource group comprises information of transponders for backing up tunnel services borne on the first transponder;
the controller determines at least one backup repeater for backing up the first repeater according to the tunnel service forwarding resource group, and generates service switching indication information according to the relation that the at least one backup repeater backs up the tunnel service loaded on the first repeater;
and the controller sends the service switching indication information to the at least one backup repeater, wherein the service switching indication information is used for indicating the at least one backup repeater to switch the tunnel service loaded on the first repeater to the at least one backup repeater for loading.
In the scheme, a plurality of backup repeaters are configured for the repeaters in advance through a controller, when a first repeater is detected to have a fault, at least one backup repeater is selected according to the load condition of the repeater which is backup for the first repeater, the service originally mounted on the first repeater is switched to the at least one backup repeater for carrying, namely, the controller is configured with backup tunnel resources in advance, namely, the repeater, and the currently used repeater is switched to the service carrying on other backup repeaters when the currently used repeater has the fault, so that the service reconstruction is not required to be carried out by reapplication of the resources, the problem of service interruption caused by the service reconstruction is avoided, and the hot backup of the tunnel service is realized.
In a specific implementation, before the controller acquires that the first repeater fails, the method further includes: the controller establishes forwarding resources for bearing the tunnel service borne on the first repeater on the at least one backup repeater according to the relation that the at least one backup repeater backs up the tunnel service borne on the first repeater.
In this scheme, the controller needs to configure the relationship between the forwarders that are backups for each other in advance, and taking the first forwarder as an example, it needs to make clear the relationship between each backup forwarder and the backup tunnel service, and establish a forwarding resource on each backup forwarder, so that when the first controller fails, the bearer can be switched for the tunnel service on the first forwarder.
In one specific implementation, the backing up, by the at least one backup forwarder, the tunnel traffic carried on the first forwarder includes:
the at least one backup repeater comprises a second repeater, and the second repeater backs up all tunnel services borne on the first repeater;
or,
the at least one backup repeater comprises a second repeater and a third repeater, and the second repeater and the third repeater respectively backup tunnel services loaded on the first repeater according to proportion distribution.
Further, if the at least one backup repeater includes a second repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second repeater; the service switching indication information is used for indicating the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for carrying;
or,
if the at least one backup repeater includes a second repeater and a third repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second repeater and the third repeater respectively; the service switching indication information is used to indicate 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 for carrying.
In the above solution, the at least one backup repeater may include only one repeater, or may include two or more repeaters; if only one backup transponder exists, the only backup transponder needs to backup all the tunnel services on the first transponder, and when the first transponder fails, the service switching indication information sent by the controller indicates that all the tunnel services on the first transponder are switched to the only backup transponder for carrying; if there are two or more backup repeaters, the multiple backup repeaters may backup part of the tunnel service of the first repeater respectively, after the first repeater fails, each backup repeater carries the backup tunnel service, and all the backup repeaters carry the tunnel service originally carried by the first repeater together.
On the basis of the foregoing implementation, the method further includes: the tunnel traffic carried on the first forwarder is divided into at least one traffic group.
Further, the backing up, by the at least one backup forwarder, the tunnel traffic carried on the first forwarder includes:
the at least one backup repeater comprises a second repeater, and the second repeater backs up the tunnel service in the at least one service group loaded on the first repeater; or
The at least one backup repeater comprises a second repeater and a third repeater, the at least one service group comprises a first service group and a second service group, the second repeater backs up the tunnel service in the first service group, and the third repeater backs up the tunnel service in the second service group.
Further, if the at least one backup repeater includes a second repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second repeater; wherein, the service switching indication information is used to indicate the second repeater to switch the tunnel service in the at least one service group to the second repeater for carrying;
or,
if the at least one backup repeater includes a second repeater and a third repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second repeater and the third repeater respectively; wherein, the service switching indication information is used for indicating: the second repeater switches the tunnel service in the first service group to the second repeater for carrying, and the third repeater switches the tunnel service in the second service group to the third repeater for carrying.
In the above scheme, since the service order is large, in order to realize flexible load sharing, an intermediate layer, that is, a service group, is introduced. Each service group is directed to one repeater, and each service group carries one or more services, that is, each repeater can carry a plurality of service groups, and each service group carries one or more services. The service loaded on the first forwarder can be divided into a plurality of service groups, so that when only one backup forwarder is used, the tunnel services of all the service groups on the first forwarder can be backed up, and the tunnel services of all the service groups on the first forwarder are loaded after the first forwarder fails; when there are multiple backup repeaters, each backup repeater can carry different service groups.
On the basis of any one of the above implementation manners, the generating, according to the relationship that the at least one backup forwarder backs up the tunnel service borne by the first forwarder, service switching indication information includes:
the controller acquires the load condition of each backup transponder;
the controller adopts a load sharing algorithm to select at least one corresponding service group to be distributed to each backup repeater according to the load condition of each backup repeater and the at least one service group loaded on the first repeater;
the controller generates the service switching indication information.
In the scheme, no matter a new repeater is newly added or a backup repeater selected after a fault occurs, the control needs to distribute the load of the service, namely, a service group is distributed, and finally, the service is distributed based on the granularity of the service group, so that the service load tends to be balanced.
A second aspect of the present invention provides a backup processing method for a tunnel service, including:
the backup repeater receives service switching indication information sent by the controller; the service switching indication information is used for indicating the backup repeater to bear the tunnel service borne on the first repeater;
and the backup forwarder carries the service of the first forwarder according to the service switching indication information.
In this embodiment, the backup repeater carries the service on the failed first repeater according to the service switching indication information of the controller, thereby avoiding the problem of service interruption caused by the failure of the first repeater.
In a specific implementation manner, before the backup repeater receives the service switching indication information sent by the controller, the method further includes:
the backup forwarder establishes forwarding resources corresponding to the tunnel service loaded on the first forwarder according to the indication of the controller;
and the backup forwarder backs up the tunnel service on the first forwarder according to the forwarding resource.
Optionally, the backing up the tunnel service on the first forwarder by the backup forwarder according to the forwarding resource includes:
the backup repeater backs up all tunnel services borne on the first repeater;
or,
and the backup repeater performs partial backup on the tunnel service loaded on the first repeater according to proportion distribution.
In the above scheme, the backup forwarder may backup and carry all tunnel services on the first forwarder, or may backup and carry only part of the tunnel services on the first forwarder.
A third aspect of the present invention provides a method for load sharing of a tunnel service, 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 a load sharing algorithm;
wherein each service group mounts at least one service.
A fourth aspect of the present invention provides a controller comprising:
the processing module is used for determining a tunnel service forwarding resource group to which a first forwarder belongs when acquiring that the first forwarder fails, wherein the tunnel service forwarding resource group comprises information of a forwarder for backing up tunnel services borne on the first forwarder;
the processing module is further configured to determine at least one backup repeater that backs up the first repeater according to the tunnel service forwarding resource group, and generate service switching indication information according to a relation that the at least one backup repeater backs up the tunnel service loaded on the first repeater;
and the sending module is used for sending the service switching indication information to the at least one backup repeater, wherein the service switching indication information is used for indicating the at least one backup repeater to switch the tunnel service loaded on the first repeater to the at least one backup repeater for loading.
Optionally, the processing module is further configured to establish, on the at least one backup forwarder, a forwarding resource for carrying the tunnel service carried on the first forwarder according to a relationship that the at least one backup forwarder backs up the tunnel service carried on the first forwarder.
Optionally, the backing up, by the at least one backup forwarder applied by the processing module, the tunnel service carried on the first forwarder includes:
the at least one backup repeater comprises a second repeater, and the second repeater backs up all tunnel services borne on the first repeater; or
The at least one backup repeater comprises a second repeater and a third repeater, and the second repeater and the third repeater respectively backup tunnel services loaded on the first repeater according to proportion distribution.
Optionally, the at least one backup repeater includes a second repeater, and the sending module is specifically configured to send the service switching indication information to the second repeater; the service switching indication information is used for indicating the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for carrying;
or,
the at least one backup repeater includes a second repeater and a third repeater, and the sending module is specifically configured to send the service switching indication information to the second repeater and the third repeater, respectively; the service switching indication information is used to indicate 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 for carrying.
Optionally, the processing module is further configured to divide the tunnel traffic carried on the first repeater into at least one traffic group.
Optionally, the backing up, by the at least one backup forwarder used by the processing module, the tunnel service carried on the first forwarder includes:
the at least one backup repeater comprises a second repeater, and the second repeater backs up the tunnel service in the at least one service group loaded on the first repeater; or
The at least one backup repeater comprises a second repeater and a third repeater, the at least one service group comprises a first service group and a second service group, the second repeater backs up the tunnel service in the first service group, and the third repeater backs up the tunnel service in the second service group.
Optionally, the at least one backup repeater includes a second repeater, and the sending module is specifically configured to send the service switching indication information to the second repeater; wherein, the service switching indication information is used to indicate the second repeater to switch the tunnel service in the at least one service group to the second repeater for carrying;
or,
the at least one backup repeater includes a second repeater and a third repeater, and the sending module is specifically configured to send the service switching indication information to the second repeater and the third repeater, respectively; wherein, the service switching indication information is used for indicating: the second repeater switches the tunnel service in the first service group to the second repeater for carrying, and the third repeater switches the tunnel service in the second service group to the third repeater for carrying.
Optionally, the processing module is specifically configured to:
acquiring the load condition of each backup transponder;
selecting at least one corresponding service group to be allocated to each backup repeater by adopting a load sharing algorithm according to the load condition of each backup repeater and the at least one service group loaded on the first repeater;
and generating the service switching indication information.
In the controller provided by the above technical solution, the processing module may be implemented as a processor, and the sending module may be implemented as a sender, which is used to execute the technical solution of the controller in the backup processing method.
A fifth aspect of the present invention provides a repeater, including:
the receiving module is used for receiving the service switching indication information sent by the controller; the service switching indication information is used for indicating the repeater to bear the tunnel service borne on the first repeater;
and the processing module is used for carrying the service of the first forwarder according to the service switching indication information.
Optionally, the processing module is further configured to:
establishing forwarding resources corresponding to the tunnel service loaded on the first repeater according to the indication of the controller;
and backing up the tunnel service on the first forwarder according to the forwarding resource.
Optionally, the processing module is specifically configured to:
backing up all tunnel services borne on the first transponder;
or,
and performing partial backup on the tunnel service loaded on the first transponder according to proportion distribution.
The repeater provided in the above technical solution is also referred to as a tunnel service forwarding resource, the processing module may be implemented as a processor, and the receiving module may be implemented as a receiver, and is used to execute the technical solution of the second repeater in the backup processing method, which is similar in implementation principle and technical effect.
A sixth aspect of the present invention provides a controller comprising:
the processing module is used for redistributing the current service group on the new transponder and at least two pre-configured available transponders according to a load sharing algorithm when detecting that the new transponder is configured;
wherein each service group mounts at least one service.
In the controller and the processing module provided by the present disclosure, the processing module can be implemented as a processor, and is used for executing the technical scheme of the load sharing method, and the implementation principle and the technical effect are similar.
A seventh aspect of the present invention provides a BRAS device, including: a controller, a first repeater and at least one second repeater;
the controller is configured to:
when the first forwarder fails, determining a tunnel service forwarding resource group to which the first forwarder belongs, wherein the tunnel service forwarding resource group comprises information of a forwarder for backing up tunnel services borne on the first forwarder;
determining the at least one second transponder for backing up the first transponder according to the tunnel service forwarding resource group, and generating service switching indication information according to the relation that the at least one second transponder backs up the tunnel service loaded on the first transponder;
the at least one second transponder is to:
receiving service switching indication information sent by the controller; the service switching indication information is used for indicating the at least one second forwarder to carry the tunnel service corresponding to the first forwarder;
and carrying the service of the first forwarder according to the service switching indication information.
The invention provides a backup processing method and equipment for tunnel services, wherein a controller is used for configuring backup for a repeater in advance, the backup repeater carries out real-time backup in the process of bearing tunnel services by a first repeater, when the first repeater is detected to have faults, the controller determines the backup repeater and sends indication information to the backup repeater, the tunnel services originally hung on the first repeater are switched to at least one backup repeater for bearing, namely, backup tunnel service forwarding resources, namely the repeater, are configured in advance by the controller, when the currently used repeater has faults, the backup repeater is switched to other backup repeaters for bearing services, the resources do not need to be reapplied for service reconstruction, and the problem of service interruption caused by service reconstruction is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a virtualized tunnel traffic architecture;
fig. 2 is a flowchart of a first embodiment of a backup processing method for tunnel services according to the present invention;
fig. 3 is a flowchart of a second embodiment of a backup processing method for tunnel services according to the present invention;
fig. 4 is a flowchart of a third embodiment of a backup processing method for tunnel services according to the present invention;
fig. 5 is a flowchart of a fourth embodiment of a backup processing method for tunnel services according to the present invention;
fig. 6 is a schematic diagram of an overall structure of a tunnel service forwarding resource group provided in the present invention;
fig. 7 is a schematic diagram of an example of a backup processing method for tunnel services according to the present invention;
fig. 8 is a schematic diagram illustrating an example of a method for load sharing processing of tunnel traffic according to the present invention;
FIG. 9 is a schematic structural diagram of a controller according to a first embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a first embodiment of a repeater according to the present invention;
FIG. 11 is a schematic structural diagram of a controller entity according to a first embodiment of the present invention;
fig. 12 is a schematic structural diagram of a first embodiment of a forwarder entity according to the present invention;
fig. 13 is a schematic structural diagram of a BRAS device according to a first embodiment of the present invention.
Detailed Description
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a virtualized tunnel service architecture, as shown in fig. 1, the tunnel service architecture includes a plurality of tunnel devices, BRAS or vbars, switches, and the like, and may further include a controller, where a service packet (which may be a protocol packet or a data packet) is sent to a switch on a tunnel device, when the switch determines that no corresponding forwarding table exists, the switch initiates an inquiry to the controller (or initiates an inquiry to a control board in BRAS equipment or a control VM in vBRAS), the controller (or the control board or the control VM) selects a proper tunnel service forwarding resource (also called a repeater) according to the service requirement of the service packet and the condition 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, so that the switch forwards the service packet to the corresponding tunnel service forwarding resource for service execution. In the backup processing method for the tunnel service provided by the invention, when a tunnel device has a service packet, the controller needs to configure a backup repeater for the repeater in advance, perform real-time backup on the service on the repeater, directly switch the service to the backup repeater for carrying when a fault occurs, do not need to rebuild the service, and cannot cause service interruption, and the technical scheme provided by the invention is explained in detail by combining with the embodiment below.
Fig. 2 is a flowchart of a first embodiment of a backup processing method for tunnel services in the present invention, as shown in fig. 2, the backup processing method for tunnel services is applied in a controller, and the controller may have the following three forms:
in configuration one, the controller is a controller deployed independently of the BRAS or the vbars. The controller can be a dedicated physical device, and a program providing a function of controlling the tunnel service backup processing runs on a dedicated hardware platform, wherein the hardware platform comprises a processor, a transmitter, a receiver, a circuit and the like; the controller may also be a Virtual network device, which may be a Virtual Machine (VM) running a program providing a control tunnel traffic backup processing function, and the VM is deployed on a hardware device (e.g., a physical server). A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software, running in a completely isolated environment. In which, a physical server is virtualized into a plurality of logical computers by virtualization technology, each logical computer is a virtual machine on the physical server, and each virtual machine can run a different operating system, so that the application programs of the virtual machines can run in the spaces of the operating systems independent of each other.
In configuration two, the controller may be a control VM in the vbars. The vBNG may be made up of several VMs running a program for providing BNG device functions, including a control VM, a forwarding VM, and the like.
And in the third mode, the controller can also be a control board in a physical BRAS. The physical BRAS may be a dedicated hardware platform on which programs providing BNG functionality are run, and the hardware platform includes a control board and a forwarding board, which are composed of processors, transmitters, receivers, circuits, and the like.
The specific steps of the backup processing method for the tunnel service include:
s101: when the controller acquires that the first forwarder fails, the controller determines a tunnel service forwarding resource group to which the first forwarder belongs, wherein the tunnel service forwarding resource group comprises information of the forwarder for backing up tunnel services borne on the first forwarder.
In this embodiment, the controller pre-configures one or more repeaters that back up with the first repeater, where the repeaters have the same tunnel resource in the first repeater, and perform real-time backup on the service data on the first repeater in the process of carrying the service by the first repeater.
The controller obtains the failure of the first repeater, including but not limited to a mode of directly detecting by the controller, or the repeater reports the failure to the controller after detecting the failure of the repeater itself, and reports the current failure condition.
When the controller acquires that the first transponder fails, the controller determines a tunnel service forwarding resource group to which the first transponder belongs according to a relation between the pre-configured transponder and the tunnel service forwarding resource group, and acquires information of a plurality of transponders capable of backing up services borne on the first transponder in real time according to the relation.
S102: the controller determines at least one backup transponder for backing up the first transponder according to the tunnel service forwarding resource group, and generates service switching indication information according to the relation that the at least one backup transponder backs up the tunnel service loaded on the first transponder.
In this step, the controller directly determines at least one backup repeater according to the tunnel service forwarding resource group, or may select one or more backup repeaters from the load conditions of the repeaters that are backup to the first repeater to carry the service on the first repeater, and generate corresponding service switching indication information according to the selected backup repeaters.
The actual meaning of the service switching indication information is to indicate that the tunnel service currently carried by the first repeater is switched to one or more selected backup repeaters for carrying; the at least one backup transponder is a transponder selected from transponders that are backups of the first transponder.
S103: the controller sends the service switching indication information to at least one backup transponder, and the service switching indication information is used for indicating the at least one backup transponder to switch the tunnel service loaded on the first transponder to the at least one backup transponder for loading.
In this step, the controller sends the service switching indication information to the at least one backup forwarder, so that the at least one backup forwarder carries the tunnel service of the first forwarder.
Optionally, in order to complete service switching and avoid service interruption, the controller sends the generated service switching indication information to each selected backup repeater, and indicates the backup repeater to carry the service originally carried by the first repeater.
In the scheme, a forwarder is also called a tunnel service forwarding resource, and in a specific implementation, when some tunnel service forwarding resources are in an active state, other tunnel service forwarding resources which are backup to the tunnel service forwarding resources exist in a standby state, once the active resources fail, the tunnel service forwarding resource group selects one or more tunnel service forwarding resources in the standby state to change into the active state, and shares a service load on the failed resources to the selected backup tunnel service forwarding resources which change into the active state.
It should be noted that the form of the repeater may include, but is not limited to, the following two forms:
in the first form, the repeater is an independently deployed device that provides BRAS tunnel traffic forwarding processing. The repeater can be a special physical device, and a program for providing a function of controlling the backup processing of the tunnel service runs on a special hardware platform, wherein the hardware platform comprises a processor, a transmitter, a receiver, a circuit and the like; the forwarder may also be a virtual network device, which may be a VM running a program providing the BRAS tunnel traffic backup forwarding processing function, and the virtual machine is deployed on a hardware device (e.g., a physical server).
In a second aspect, the forwarder may be a forwarding VM in a vbars. The vBNG may be made up of several VMs running a program for providing BNG device functions, including a control VM, a forwarding VM, and the like.
Form three, the repeater may also be a forwarding board in a physical BRAS. The physical BRAS may be a dedicated hardware platform on which programs providing BNG functionality are run, and the hardware platform includes a control board and a forwarding board, which are composed of processors, transmitters, receivers, circuits, and the like.
In the backup processing method for tunnel services provided in this embodiment, a controller configures backup for a repeater in advance, when a failure of a first repeater is obtained, at least one backup repeater is selected according to load conditions of multiple repeaters that back up each other with the first repeater or information of a tunnel service forwarding resource group to which the first repeater belongs, and a service originally mounted on the first repeater is switched to the at least one backup repeater for carrying, that is, a backup tunnel service forwarding resource, that is, a repeater, is configured in advance by the controller, and when the currently used repeater fails, the currently used repeater is switched to another backup repeater for carrying a service, and does not need to reapply a resource for service reconstruction, thereby avoiding a problem of service interruption caused by service reconstruction, and implementing hot backup of tunnel services.
Fig. 3 is a flowchart of a second embodiment of the backup processing method for tunnel services in the present invention, and as shown in fig. 3, on the basis of the foregoing embodiment, the specific implementation steps of the backup processing method for tunnel services provided in this embodiment are as follows:
s201: the controller establishes forwarding resources for bearing the tunnel service borne on the first repeater on at least one backup repeater according to the relation that the at least one backup repeater backs up the tunnel service borne on the first repeater.
In this step, the forwarding resource includes a service forwarding table entry. The controller is pre-configured with one or more repeaters which are mutually backed up with the first repeater, the repeaters and the first repeater have the same tunnel service forwarding resource, and service data on the first repeater can be backed up in real time in the process of carrying services by the first repeater.
S202: when the controller acquires that the first forwarder fails, the controller determines a tunnel service forwarding resource group to which the first forwarder belongs, wherein the tunnel service forwarding resource group comprises information of the forwarder for backing up tunnel services borne on the first forwarder.
In this embodiment, when the controller acquires that the first forwarder fails, the controller determines, according to a relationship between a preconfigured forwarder and a tunnel service forwarding resource group, a tunnel service forwarding resource group to which the first forwarder belongs, and acquires information of multiple forwarders capable of backing up a service borne by the first forwarder in real time.
S203: the controller determines at least one backup transponder for backing up the first transponder according to the tunnel service forwarding resource group, and generates service switching indication information according to the relation that the at least one backup transponder backs up the tunnel service loaded on the first transponder.
In this step, the controller directly determines at least one backup repeater according to the tunnel service forwarding resource group, or may select one or more backup repeaters from the load conditions of the repeaters that are backup to the first repeater to carry the service on the first repeater, and generate corresponding service switching indication information according to the selected backup repeaters.
S204: the controller sends the service switching indication information to at least one backup transponder, and the service switching indication information is used for indicating the at least one backup transponder to switch the tunnel service loaded on the first transponder to the at least one backup transponder for loading.
In this embodiment, the specific implementation manners of at least one backup forwarder backing up the tunnel service carried on the first forwarder include at least the following two manners:
in a first implementation manner, at least one backup forwarder includes only one second forwarder, and the second forwarder needs to backup all tunnel services borne on the first forwarder in a process of forwarding the tunnel services by the first forwarder.
In a second implementation manner, the at least one backup repeater includes two or more repeaters, and here, taking two repeaters as an example, the at least one backup repeater includes a second repeater and a third repeater, and then the second repeater and the third repeater respectively backup tunnel traffic carried on the first repeater according to a proportional allocation. In specific implementation, the ratio may be pre-configured, or may be obtained in real time according to the load condition on each repeater.
On the basis, if the at least one backup repeater includes the second repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second transponder; the service switching indication information is used for indicating the second transponder to switch the tunnel service corresponding to the first transponder to the second transponder for carrying; or, the at least one backup repeater includes a second repeater and a third repeater, and the controller sends the service switching indication information to the at least one backup repeater, including: the controller respectively sends the service switching indication information to the second repeater and the third repeater; and the service switching indication information is used for indicating 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 for carrying.
The meaning of this scheme is that the at least one backup repeater may include only one repeater, or may include two or more repeaters; if only one backup transponder exists, the only backup transponder needs to backup all the tunnel services on the first transponder, and when the first transponder fails, the service switching indication information sent by the controller indicates that all the tunnel services on the first transponder are switched to the only backup transponder for carrying; if there are two or more backup repeaters, the multiple backup repeaters may backup part of the tunnel service of the first repeater respectively, after the first repeater fails, each backup repeater carries the backup tunnel service, and all the backup repeaters carry the tunnel service originally carried by the first repeater together.
In any of the above embodiments, the tunnel service carried on the first forwarder may be divided into at least one service group, and in the process that the first forwarder forwards the tunnel service in the service groups, a plurality of backup forwarders need to perform real-time backup on the tunnel service of the first forwarder, where the specific backup manner at least includes the following two types:
in a first backup mode, at least one backup repeater only comprises one second repeater, and then the second repeater backs up all tunnel services in at least one service group loaded on the first repeater;
in a first backup manner, at least one backup repeater includes two or more repeaters, and taking two as an example, assuming that the at least one backup repeater includes a second repeater and a third repeater, and the at least one service group includes a plurality of service groups, the second repeater and the third repeater respectively perform service backup on one or more service groups therein, that is, the second repeater and the third repeater together perform backup on tunnel services of all service groups on the first repeater.
Assuming that the at least one service group includes a first service group and a second service group, the second repeater backs up the tunnel service in the first service group, and the third repeater backs up the tunnel service in the second service group may be a specific implementation manner.
If the at least one backup repeater includes the second repeater, the controller sends the service switching indication information to the at least one backup repeater, including: the controller sends the service switching indication information to the second transponder; the service switching indication information is used for indicating the second transponder to switch the tunnel service in at least one service group to the second transponder for carrying; or, the at least one backup repeater includes a second repeater and a third repeater, and the controller sends the service switching indication information to the at least one backup repeater, including: the controller respectively sends the service switching indication information to the second repeater and the third repeater; the service switching indication information is used for indicating: the second transponder switches the tunnel service in the first service group to the second transponder for carrying, and the third transponder switches the tunnel service in the second service group to the third transponder for carrying.
The implication of this scheme is that, due to the large order of traffic, to achieve flexible load sharing, an intermediate layer-i.e. a traffic group-is introduced. Each service group is directed to one repeater, and the service group carries one or more services, that is, each repeater can carry a plurality of service groups, and each service group carries one or more services. The service loaded on the first forwarder can be divided into a plurality of service groups, so that when only one backup forwarder is used, the tunnel services of all the service groups on the first forwarder can be backed up, and the tunnel services of all the service groups on the first forwarder are loaded after the first forwarder fails; when there are multiple backup repeaters, each backup repeater can carry different service groups.
The practical meaning of the backup of the tunnel services on the first forwarder by the backup forwarders is that if a plurality of backup forwarders exist and the first forwarder carries a plurality of service groups, each backup forwarder can backup one or more service groups, and after a failure of the first forwarder is detected, each backup forwarder can carry the tunnel services of one or more service groups according to the backup condition through the service switching indication information of the controller.
In this embodiment, the controller may perform load distribution on the service according to the load condition of the backup forwarder, that is, may distribute the service group, and finally distribute the service to different forwarders based on the granularity of the service group, so that the service load tends to be balanced, thereby avoiding the situation that the load of a certain forwarder is too large.
Fig. 4 is a flowchart of a third embodiment of the backup processing method for tunnel services in the present invention, and as shown in fig. 4, on the basis of any of the above embodiments, a backup processing method for tunnel services is provided below, that is, a specific implementation process of hot backup:
s301: the controller configures the same tunnel resource for the first repeater and at least one backup repeater for backup so that at least one backup repeater can perform real-time backup on the data of the first repeater.
In this step, the controller pre-configures one or more repeaters that are backups of the first repeater, where the repeaters have the same tunnel resource as the first repeater, and perform real-time backup on the service data of the first repeater in the process of carrying the service by the first repeater.
In a specific implementation manner, in a process of generating the service switching indication information, the controller needs to perform balanced distribution according to a load of the backup forwarder, and the specific implementation includes: the controller acquires the load condition of each backup transponder; the controller adopts a load sharing algorithm to select at least one corresponding service group to be distributed to each backup transponder according to the load condition of each backup transponder and at least one service group loaded on the first transponder, and then generates the service switching indication information. One specific implementation step includes S302-S304.
S302: the controller obtains the load condition of each backup transponder which backs up the first transponder.
In this step, the controller may directly allocate the traffic carried by the first forwarder to any forwarder that is backup to the first forwarder, or allocate the traffic to each forwarder on average for carrying, but such an approach may cause a resource usage imbalance problem, and therefore, the controller needs to select at least one backup forwarder to use.
S303: and the controller selects the at least one second repeater from all the backup repeaters according to the load condition of each repeater and a load sharing algorithm, and allocates at least one corresponding service group to each second repeater.
With reference to the step S303, the controller obtains the load condition of each transponder that backs up the first transponder, and then selects one or more transponders with lighter loads as the second transponder, where a specific load sharing algorithm may be configured, which is not limited herein.
In the scheme, the service carried by the first transponder is divided into at least one service group; the service switching indication information includes a correspondence between each second forwarder and the service group.
The meaning is as follows: due to the large traffic order, an intermediate layer, i.e. a traffic group, is introduced in order to achieve flexible load sharing. Each service group points to a tunnel resource (i.e. a transponder), and the traffic group carries the service, and in the same tunnel resource, the service can be carried to different service groups following a load sharing algorithm. That is, each repeater can carry a plurality of service groups, and each service group carries one or more services.
S304: the controller generates the service switching indication information.
On the basis of the foregoing embodiment, the service switching indication information may indicate which second repeaters bear the services on the first repeater, and may also specifically indicate a service group borne on each second repeater, and in a specific implementation, a service group identifier may be added to the service switching indication information.
S305: and the controller sends the service switching indication information to the at least one second repeater so that the at least one second repeater carries the service of the first repeater.
In this embodiment, all the backup repeaters of the first repeater include at least one second repeater, which means that the 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 carrying, and in the whole switching process, the service group is moved integrally, and a single service or a single service is not moved, that is, the minimum mobile unit must be the service group rather than the service (that is, one service member in one service group cannot be moved, and all service groups under a member board must be moved together at the same time).
The at least one second repeater is a backup repeater which is selected according to the load condition of each backup repeater and is used for bearing the service of the first repeater.
In the backup processing method for tunnel services provided in this embodiment, the controller controls to switch the service carried by the failed forwarder, that is, the tunnel resource, to other backup forwarders for carrying, and directly hangs the service group of the failed forwarder to different backup forwarders (that is, tunnel resources) for carrying in the switching process, and this service group movement is only to control the pointer of the tunnel resource used by the layer management maintenance service, and the user resource does not need to be changed. The movement should be on the control layer, so as to avoid performance bottleneck and table entry loss caused by the migration of the data table entries of the service group between the single boards, avoid service reconstruction and avoid service interruption.
Fig. 5 is a flowchart of a fourth embodiment of the backup processing method for a tunnel service according to the present invention, as shown in fig. 5, the backup processing method is applied to any backup repeater selected by a controller, that is, the second repeater or the third repeater in the foregoing embodiment, and carries a part of or all services on the first repeater according to an instruction of the controller, and the specific implementation steps of the backup processing method for a tunnel service are as follows:
s401: the backup repeater receives service switching indication information sent by the controller; the service switching indication information is used for indicating the backup forwarder to carry the tunnel service corresponding to the first forwarder.
In this step, the first forwarder and the backup forwarder are backups of each other; in a specific implementation, before the backup forwarder receives the service switching indication information sent by the controller, the controller needs to configure the same tunnel resource for the backup forwarder and the first forwarder, so that the backup forwarder performs real-time backup on data of the first forwarder in a process that the first forwarder carries a bearer service. Optionally, the first forwarder and the backup forwarder may be backups of each other.
S402: and the backup repeater carries the service of the first repeater according to the service switching indication information.
In this step, the service switching indication information indicates that the backup forwarder is required to carry all or part of the service of the first forwarder, and if the backup forwarder carries only part of the service, the service switching indication information may indicate an identifier of a specific service group. I.e. the traffic carried by the first forwarder is divided into at least one traffic group; the service switching indication information includes an identifier of the service group corresponding to the backup forwarder (if the backup forwarder is the second forwarder, the identifier of the service group to be carried by the second forwarder should be clarified in the service switching indication information).
Optionally, before the backup repeater receives the service switching indication information sent by the controller in the scheme, the backup repeater establishes a forwarding resource corresponding to the tunnel service loaded on the first repeater according to the indication of the controller; and the backup forwarder backs up the tunnel service on the first forwarder according to the forwarding resources.
Optionally, the backing up the tunnel service on the first forwarder by the backup forwarder according to the forwarding resource includes: the backup repeater backs up all the tunnel services borne on the first repeater; or, the backup repeater performs partial backup on the tunnel service loaded on the first repeater according to the proportion distribution.
In the backup processing method for a tunnel service provided in this embodiment, the backup forwarder carries a service on the failed first forwarder according to the indication information of the controller, so as to avoid a problem of service interruption caused by a failure of the first forwarder.
On the basis of the above embodiments, the following describes a backup processing method for a tunnel service provided by the present invention by using a specific example.
Fig. 6 is a schematic diagram of an overall structure of a tunnel service forwarding resource group provided in the present invention, as shown in fig. 6, a corresponding relationship in the architecture is stored in a controller, where the controller may be an independently deployed controller, or a control VM in a vbars, or a control board in a BRAS, and the tunnel service forwarding resource group, that is, the controller in the above embodiment, mainly implements the following functions: managing 1 or more tunnel traffic forwarding resources, the tunnel traffic forwarding resources corresponding to the forwarders; the vBRAS performs hot backup management on the joining and quitting of the forwarding resources of the tunnel service; load sharing and distribution; and (4) configuration management of tunnel services, such as tunnel authentication configuration, tunnel source IP, tunnel mode, load grading mode and the like.
The tunnel resources correspond to the above-mentioned forwarder which is mainly used for managing the tunnel traffic forwarding resources on a plurality of VMs for the vbars traffic. In addition, the scheme also introduces a service group: due to the large traffic order, an intermediate layer, i.e. a traffic group, is introduced in order to achieve flexible load sharing. Each service group points to a tunnel resource, the service group carries the service, and in the same tunnel resource, a service single board, that is, the service, can be attached to different service groups following a load sharing algorithm.
When the tunnel resource fails, compared with the case that all services on the tunnel resource are switched to other tunnel resources when no service group exists, the tunnel resource executed by the service group can be modified based on the sharing of the service group load to different tunnel resources, so that the services are uniformly shared to different tunnel resources.
Next, taking an actual increase or failure of the forwarding resource of the tunnel service as an example, a load balancing and hot backup scheme of the tunnel service in the present solution is described, and fig. 6 and 7 show switching diagrams from a service perspective.
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 the architecture, as the service bearer is consistent with the forwarding of the tunnel, the uplink flow is forwarded by the destination route. And the downlink flow is transmitted to the service group through the service and then to the service forwarding resource of the member tunnel where the exit tunnel is located, so that the downlink flow forwarding is completed.
According to the above backup processing method, if the tunnel service forwarding resource 2 in the figure has a failure, that is, the repeater 2 has a failure, the service groups 1 to m mounted on the tunnel service forwarding resource 2 can be switched to one or more tunnel service forwarding resources backed up with the tunnel service forwarding resource 2 for carrying.
The technical scheme of the application provides two technical schemes of load sharing and hot backup, wherein the load sharing refers to that when tunnel service forwarding resources are distributed to the service during service generation, the service is uniformly distributed to different tunnel service forwarding resources; in addition, the hot backup means that when one of the tunnel service forwarding resources fails, all services are not switched, but only the services on the failed tunnel service forwarding resource are switched, and in the service switching process, the services can be distributed according to the load sharing principle, so that the situation that the load on the same tunnel service forwarding resource is heavier is avoided.
In combination with the above overall structure schematic of the tunnel service forwarding resource group, a tunnel service forwarding resource group configuration model is introduced as follows: the tunnel entering end is configured with an address of a tunnel service forwarding resource group managed by the vBRAS, and the vBRAS is responsible for distributing load sharing in the service forwarding resource group. The specifically adopted load sharing algorithm may be classified according to services, such as tunnel source network Protocol (english: Internet Protocol, abbreviated as IP) based addresses, service address segments, and service types (IPOE \ PPPOE \ private line, etc.).
The tunnel creation type is divided into two types: protocol type tunneling and traffic type tunneling, which are slightly different in processing manner and configuration model.
(1) Protocol type tunnel
Triggering the established tunnel through a Protocol message (such as a Layer 2Tunneling Protocol (L2 TP for short), Generic Routing Encapsulation (GRE for short), etc.), configuring an IP address of a vbrs end at an initiating end, selecting a tunnel in a tunnel service forwarding resource group by the vbrs through a load sharing algorithm, and selecting a DIP (dual in-line Protocol) through a hash (hash) initiated by a tunnel SIP. The tunnel backup data (i.e. the data backed up in the forwarder) should contain the source end attribute of the tunnel, such as source IP and source port, to ensure the validity of the tunnel after the handover and to continue the keep-alive mechanism.
(2) Traffic type tunnel
Non-protocol triggered tunnels (such as CGN, NETSTEAM and the like) do not enter a tunnel end, and traffic is processed and then forwarded directly on a tunnel version. For example, for a CGN user, the CGN user may go to a corresponding tunnel board through the address segment HASH where the source IP of the traffic packet is located. The tunnel backup data does not sense the attribute of the source end of the established tunnel, and directly backs up the service.
Based on the architecture and the tunnel configuration process shown in fig. 5, a specific implementation of the hot backup processing method in the tunnel service is described below:
when the service is on line, all tunnel service forwarding resources in the tunnel service forwarding resource group apply for resources and occupy to realize hot backup, and when the currently used tunnel service forwarding resources are switched to other available tunnel service forwarding resources when the currently used tunnel service forwarding resources are in failure, the service part key point is realized without re-applying resources. In order to ensure the function backup after the user switching, a tunnel service forwarding resource fails to apply and does not allow the user to be offline.
The tunnel hot backup is carried out by hanging the service group on different tunnel service forwarding resources, the service group movement is only carried out by managing and maintaining the pointer of the service using the tunnel service forwarding resources by the re-control layer, and the user resources do not need to be changed. The movement should be on the control layer, so as to avoid performance bottleneck and entry loss caused by migration of data entries of the service group between single boards.
A move is a movement of a service group from one member board to another member board (i.e., a movement of a service group from one tunnel traffic forwarding resource to another tunnel traffic forwarding resource). The minimum mobile unit must be a service group rather than a service, i.e., all service groups under the tunnel traffic forwarding resource must be moved together at the same time).
Fig. 7 is a schematic diagram of an example of a backup processing method for a tunnel service according to the present invention, as shown in fig. 7, when a tunnel service forwarding resource 3 (i.e., a repeater 3) fails, a vbrs (i.e., a controller or a control tunnel service forwarding resource) controls tunnel service forwarding resources 1 and 2, which are backup to each other, of the tunnel service forwarding resource 3 to carry a service mounted by the original tunnel service forwarding resource 3, and can carry the service on the tunnel service forwarding resource 1 or the tunnel service forwarding resource 2 in all the switched services of the tunnel service forwarding resource 3, but in order to avoid an excessive load of one tunnel service forwarding resource, the service of the tunnel service forwarding resource 3 can be switched to two tunnel service forwarding resources according to a service group for carrying according to a load sharing algorithm. 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, the controller redistributes the current service group on the new transponder and at least two pre-configured available transponders according to a load sharing algorithm; wherein each service group mounts at least one service.
In fact, the load sharing scheme is not only used when a new tunnel service forwarding resource is added, but also needs to be distributed according to the load condition of each tunnel service forwarding resource in the process of service switching and bearing in the case of a tunnel service forwarding resource failure, and the load sharing scheme can be specifically implemented from two stages:
a first stage: and the tunnel service level realizes the sharing of the service and the tunnel service forwarding resource.
And a second stage: and the service group level is used for hanging the service through the service group. By establishing the sharing of the service group distribution service in the tunnel service forwarding resource, when the service resource fails, the pointer of the forwarded out-tunnel service forwarding resource is changed through the movement of the service group without changing the table entry of the tunnel service forwarding resource of the user.
The following introduces several load sharing modes of different tunnel service forwarding resources in the tunnel service forwarding resource group:
the load sharing mode is as follows: all the tunnel service forwarding resources are in an ACTIVE state at the same time, and the service is shared in the tunnel service forwarding resources according to a load sharing algorithm.
N, M backup mode: and only the N blocks of tunnel service forwarding resources are in an ACTIVE state, the M blocks are in a STANDBY state, and the user service is in load sharing on the N blocks of resources. Once the ACTIVE resource fails, a STANDBY resource is selected to quickly become ACTIVE, the service load of the failed resource is shared to the current single board of the ACTIVE, and a typical application is a 1:1 ACTIVE-STANDBY backup mode.
In the tunnel service forwarding resource group, a logical service group is created on each member resource, the user is hung on the service group, and different load sharing algorithms can be selected to calculate the service group to which the user service is hung. As with the simplest loading method: and sharing the service groups one by one.
The number of service groups and the hooking of services to service groups should be flexibly configurable. The fewer the service groups are, the poorer the effect of sharing the up/down load of the tunnel service forwarding resources is, but the less the resources are occupied; on the contrary, the load sharing effect is obvious, and the more resources are correspondingly occupied.
Taking the addition of a new repeater as an example, the new repeater will be added to the load sharing calculation, and the current service group will be redistributed among the available repeaters (including the new and existing ones). The allocation mode can perform load allocation according to different algorithms, and at least includes the following modes: .
1. Simple averaging is performed according to the amount of traffic groups. For example, the original 2 repeaters are divided into 3 repeaters on average and each 2 service groups
2. The load amount corresponding to the service (the following load statistics needs to be stored in the service group) is evenly distributed to three repeaters, and the load amount includes:
A) the bandwidth of service distribution under the service group;
B) the number of services under the service group;
C) and the bandwidth used by the service under the service group in real time. The difference from a) is the bandwidth actually used here. The bandwidth of the internet at home is 100M, but only 10M is used for the internet at ordinary times. A) By 10M, C) is meant that a total of 100M is used.
The basic principle of the load sharing is to switch based on the service group, and it is determined by load amount calculation which forwarder the service group is switched to.
Fig. 8 is a schematic diagram of an example of a method for load sharing processing of tunnel services according to the present invention, as shown in fig. 8, which illustrates a load sharing processing manner after a new tunnel service forwarding resource 3 is added to a tunnel service forwarding resource group, when the new tunnel service forwarding resource 3 is added, a controller switches a service originally loaded on a tunnel service forwarding resource 1 and a tunnel service forwarding resource 2 to a newly added tunnel service forwarding resource 3 according to a preselected load sharing algorithm for loading, and the whole moving of the service group is performed in the switching process.
The newly added tunnel service forwarding resource can allocate a service group, and simultaneously, the service group of different tunnel service forwarding resources in the tunnel TRUNK performs load allocation, and finally, the service is allocated based on the granularity of the service group, so that the service load tends to be balanced.
Fig. 9 is a schematic structural diagram of a first embodiment of the controller according to the present invention, and as shown in fig. 9, the controller 10 includes:
the processing module 11 is configured to determine a tunnel service forwarding resource group to which a first forwarder belongs when acquiring that the first forwarder fails, where the tunnel service forwarding resource group includes information of a forwarder that backs up tunnel services borne on the first forwarder;
the processing module 11 is further configured to determine at least one backup repeater that backs up the first repeater according to the tunnel service forwarding resource group, and generate service switching indication information according to a relation that the at least one backup repeater backs up the tunnel service loaded on the first repeater;
a sending module 12, configured to send the service switching indication information to the at least one backup forwarder, where the service switching indication information is used to indicate the at least one backup forwarder to switch the tunnel service loaded on the first forwarder to the at least one backup forwarder for loading.
The controller, that is, the backup processing apparatus for tunnel services, provided in this embodiment is configured to execute the technical scheme of the controller in any one of the foregoing method embodiments, and the implementation principle and technical effect are similar, where a backup is configured for a repeater in advance, when it is detected that a first repeater fails, at least one backup repeater is selected according to a repeater that is backup for the first repeater, a service originally mounted on the first repeater is switched to the at least one backup repeater for carrying, that is, a backup tunnel resource is configured in advance, that is, a repeater, and when a currently used repeater fails, the currently used repeater is switched to another backup repeater for carrying a service, and does not need to re-apply for the resource for service reconstruction, thereby avoiding a problem of service interruption caused by service reconstruction, and implementing hot backup of the tunnel service.
In a second embodiment of the controller, the processing module 11 is further configured to:
and establishing forwarding resources for bearing the tunnel service borne on the first repeater on the at least one backup repeater according to the relation that the at least one backup repeater backs up the tunnel service borne on the first repeater.
Optionally, the services carried by the first forwarder are divided into at least one service group; the service switching indication information generated by the processing module 11 includes a corresponding relationship between each second forwarder and a service group.
Optionally, the backing up, by the at least one backup repeater applied by the processing module 11, the tunnel service carried on the first repeater includes: the at least one backup repeater comprises a second repeater, and the second repeater backs up all tunnel services borne on the first repeater; or, the at least one backup repeater includes a second repeater and a third repeater, and the second repeater and the third repeater respectively backup tunnel services carried on the first repeater according to proportion allocation.
Optionally, if the at least one backup repeater includes a second repeater, the sending module 12 is specifically configured to send the service switching indication information to the second repeater; the service switching indication information is used for indicating the second forwarder to switch the tunnel service corresponding to the first forwarder to the second forwarder for carrying;
or, the at least one backup repeater includes a second repeater and a third repeater, and the sending module 12 is specifically configured to send the service switching indication information to the second repeater and the third repeater, respectively; the service switching indication information is used to indicate 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 for carrying.
Optionally, the processing module 11 is further configured to divide the tunnel traffic carried on the first repeater into at least one traffic group.
Optionally, the backing up, by the at least one backup repeater used by the processing module 11, the tunnel service carried on the first repeater includes: the at least one backup repeater comprises a second repeater, and the second repeater backs up the tunnel service in the at least one service group loaded on the first repeater; or, the at least one backup repeater includes a second repeater and a third repeater, the at least one service group includes a first service group and a second service group, the second repeater backs up the tunnel service in the first service group, and the third repeater backs up the tunnel service in the second service group.
Optionally, if the at least one backup repeater includes a second repeater, the sending module 12 is specifically configured to send the service switching indication information to the second repeater; wherein, the service switching indication information is used to indicate the second repeater to switch the tunnel service in the at least one service group to the second repeater for carrying;
or, the at least one backup repeater includes a second repeater and a third repeater, and the sending module 12 is specifically configured to send the service switching indication information to the second repeater and the third repeater, respectively; wherein, the service switching indication information is used for indicating: the second repeater switches the tunnel service in the first service group to the second repeater for carrying, and the third repeater switches the tunnel service in the second service group to the third repeater for carrying.
Optionally, the processing module 11 is specifically configured to:
acquiring the load condition of each backup transponder;
selecting at least one corresponding service group to be allocated to each backup repeater by adopting a load sharing algorithm according to the load condition of each backup repeater and the at least one service group loaded on the first repeater;
and generating the service switching indication information.
Optionally, on the basis of the first embodiment of the backup processing apparatus for tunnel services, the processing module 11 is further configured to, when it is detected that a new forwarder is configured, redistribute the current service group on the new forwarder and at least two available forwarders configured in advance according to a load sharing algorithm;
wherein each service group mounts at least one service.
The controller provided in this embodiment is configured to execute the technical solution of the controller in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a first embodiment of the repeater according to the present invention, and as shown in fig. 10, the repeater 20 includes:
a receiving module 21, configured to receive service switching indication information sent by the controller; the service switching indication information is used for indicating the repeater to bear the tunnel service borne on the first repeater;
and the processing module 22 is configured to carry the service of the first forwarder according to the service switching indication information.
The repeater provided in this embodiment is configured to execute the technical solution of the second repeater in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, and the service on the failed first repeater is carried according to the indication information of the controller, so as to avoid the problem of service interruption caused by the failure of the first repeater.
In the second embodiment of the repeater, on the basis of the first embodiment, the processing module 22 is further configured to control to backup data of the first repeater in real time; the tunnel resources of the first forwarder and the controller 20 are the same.
Optionally, the services carried by the first forwarder are divided into at least one service group; the service switching indication information received by the receiving module 21 includes an identifier of a service group corresponding to the second repeater.
Optionally, the processing module 22 is further configured to: establishing forwarding resources corresponding to the tunnel service loaded on the first repeater according to the indication of the controller; and backing up the tunnel service on the first forwarder according to the forwarding resource.
Optionally, the processing module 22 is specifically configured to: backing up all tunnel services borne on the first transponder; or, performing partial backup on the tunnel service carried on the first forwarder according to proportion allocation.
The repeater provided in this embodiment is used for executing the technical scheme of the backup repeater in any one of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a first embodiment of a controller entity according to 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 the program instructions, and a transmitter 33;
the processor 32 is configured to:
when a first forwarder fails, determining a tunnel service forwarding resource group to which the first forwarder belongs, wherein the tunnel service forwarding resource group comprises information of a forwarder for backing up tunnel services borne on the first forwarder;
determining at least one backup repeater for backing up the first repeater according to the tunnel service forwarding resource group, and generating service switching indication information according to the relation that the at least one backup repeater backs up the tunnel service loaded on the first repeater;
the sender 33 is configured to send the service switching indication information to the at least one backup forwarder, where the service switching indication information is used to indicate the at least one backup forwarder to switch the tunnel service corresponding to the first forwarder to the at least one backup forwarder for carrying.
Optionally, the processor 32 is further configured to: and establishing forwarding resources for bearing the tunnel service borne on the first repeater on the at least one backup repeater according to the relation that the at least one backup repeater backs up the tunnel service borne on the first repeater.
Optionally, the services carried by the first forwarder are divided into at least one service group; the service switching indication information generated by the processor 32 includes the correspondence between each backup forwarder and the service group.
Optionally, the processor 32 is specifically configured to:
acquiring the load condition of each backup transponder;
selecting at least one corresponding service group to be allocated to each backup repeater by adopting a load sharing algorithm according to the load condition of each backup repeater and the at least one service group loaded on the first repeater;
and generating the service switching indication information.
Optionally, the processor 32 is further configured to, when detecting that a new repeater is configured, redistribute the current service group on the new repeater and at least two pre-configured available repeaters according to a load sharing algorithm; wherein each service group mounts at least one service.
The controller provided in this embodiment is configured to execute the technical solution of the controller in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a schematic structural diagram of a first embodiment of a repeater entity according to the present invention, and as shown in fig. 12, the repeater includes: a receiver 41 and a processor 42 for controlling the execution of program instructions;
a receiver 41, configured to receive service switching indication information sent by the controller; the service switching indication information is used for indicating the backup forwarder to carry the tunnel service corresponding to the first forwarder;
and the processor 42 is configured to control the forwarder to carry the service of the first forwarder according to the service switching indication information.
Optionally, the processor 42 is further configured to:
establishing forwarding resources corresponding to the tunnel service loaded on the first repeater according to the indication of the controller; and backing up the tunnel service on the first forwarder according to the forwarding resource.
Optionally, the services carried by the first forwarder are divided into at least one service group; the service switching indication information received by the receiver 41 includes an identification of a service group corresponding to the backup repeater.
Optionally, the processor 42 is further specifically configured to:
backing up all tunnel services borne on the first transponder; or, performing partial backup on the tunnel service carried on the first forwarder according to proportion allocation.
The repeater provided in this embodiment is configured to execute the technical solution of the second repeater in any of the foregoing method embodiments, and the implementation principle and technical effect are similar, and the service on the failed first repeater is carried according to the indication information of the controller, so as to avoid the problem of service interruption caused by the failure of the first repeater.
Fig. 13 is a schematic structural diagram of a BRAS device according to a first embodiment of the present invention, and as shown in fig. 13, the BRAS device 50 at least includes: a controller 51, a first repeater 52 and at least one second repeater 53;
the controller 51 is configured to:
when acquiring that the first forwarder 52 fails, determining a tunnel service forwarding resource group to which the first forwarder 52 belongs, where the tunnel service forwarding resource group includes information of a forwarder that backs up tunnel service carried on the first forwarder 52;
determining the at least one second forwarder 53 backing up the first forwarder 52 according to the tunnel service forwarding resource group, and generating service switching indication information according to a relation that the at least one second forwarder 53 backs up the tunnel service loaded on the first forwarder 52;
the at least one second transponder 53 is configured to:
receiving service switching indication information sent by the controller; the service switching indication information is used to instruct the at least one second forwarder 53 to carry the tunnel service carried on the first forwarder 52;
and carrying the service of the first forwarder 52 according to the service switching indication information.
As shown in fig. 13, the BRAS device includes a controller and a plurality of repeaters, and the controller may manage and control the repeaters, and implement a technical solution similar to the controller in the foregoing method embodiment, which is similar to the implementation principle and the technical effect.
In the above embodiments of the controller and the repeater, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a computer-readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (magnetic tape), floppy disk (flexible disk), optical disk (optical disk), and any combination thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.