Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 be the embodiment of the invention based on the structural representation of dual-machine hot backup system, as shown in Figure 1, this dual-machine hot backup system comprises: first terminal 11, second terminal 12, first digital subscriber line access multiplex (Digital Subscriber Line Access Multiplexer; Be called for short: DSLAM) the 13, the 2nd DSLAM 14, first convergence switch (Switch) 15, second convergence switch 16, a BRAS 17, the 2nd BRAS 18 and core router (Core Router; Be called for short: CR) 19.Wherein, first convergence switch 15 and second convergence switch 16 are dual-homed on a BRAS 17 and the 2nd BRAS 18.Between the one BRAS 17 and the 2nd BRAS 18 by the active and standby voting protocol main and backup status of making a strategic decision out.When the state of a BRAS 17 is a stand-by state, and when the state of the 2nd BRAS 18 is main state, the 2nd BRAS 18 is responsible for inserting first terminal 11 and second terminal, 12, the one BRAS17 only take over first terminal 11 and second terminal 12 when the 2nd BRAS 18 breaks down.When the physical link between first convergence switch 15 and second convergence switch 16 broke down, then the state of a BRAS 17 and the 2nd BRAS 18 was two major states, promptly two main phenomenons.
In addition, Fig. 2 be the embodiment of the invention based on dual-machine hot backup system in VLAN (Virtual Local Area Network; Be called for short: schematic diagram VLAN), as shown in Figure 2, in dual-machine hot backup system, the VLAN of BRAS access link is divided into control VLAN and service VLAN, wherein, control VLAN deploy VRRP agreement, service VLAN accesses terminal, and the VRRP main and backup status on the service VLAN tracking Control VLAN decides the main and backup status of oneself.Simultaneously, the BRAS that the up broadcasting of terminal, multicast message can both be had major state and be equipped with state receives, and broadcasting, multicast message that BRAS processing terminal when being in major state is up, when being in stand-by state, up broadcasting, the multicast message of processing terminal not.
Fig. 2 be the embodiment of the invention based on separates with service VLAN at control VLAN, and control the principle schematic of VLAN deploy VRRP.As shown in Figure 2, the service VLAN on first convergence switch 15 comprises Port1, Port2 and Port3, wins a terminal 11 and a BRAS 17 and the 2nd BRAS 18 in same VLAN thereby make, and realizes double layer intercommunication.
It should be noted that, for the mode that realizes the BRAS load balancing accesses terminal, can plan two groups of VLAN, each group VLAN has a control VLAN and several service VLAN, also can control VLAN deploy Virtual Router Redundancy Protocol (Virtual Router Redundancy Protocol at two; Be called for short: VRRP), promptly when the VRRP of access sidepiece administration of a BRAS 17 and the 2nd BRAS 18, by disposing different priority, reach a VRRP group, a BRAS 17 is main, another VRRP group, and the 2nd BRAS 18 is main.The service VLAN of each group is followed the tracks of the VRRP state of its control VLAN to form the load balancing mode.Need to prove, among the present invention each link to active and standby relation (VLAN set) is referred to as the protection group.
The flow chart of an embodiment of the processing method that Fig. 3 goes offline for terminal of the present invention, as shown in Figure 3, the method for present embodiment comprises:
Step 101, a BRAS receive the state of the first local protection group of the 2nd BRAS transmission.
In the present embodiment, the state of the first local protection group comprises the state of a BRAS and the state of the 2nd BRAS.Need to prove that the 2nd BRAS can be provided with a timer, thus can be in the scheduled time, for example: about 10s, send the state of the first local protection group to a BRAS.Concrete, the 2nd BRAS sends to a BRAS by CR with the state of the first local protection group.
It should be noted that in the various embodiments of the present invention and the scheduled time is not limited, and those skilled in the art can be provided with the scheduled time arbitrarily according to the actual conditions needs.
When the state of step 102, BRAS BRAS in the state of judging the first local protection group and the state of the 2nd BRAS all are main state; then according to the logging request of first terminal that receives; the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection.
In the present embodiment, first terminal can be specially apparatus such as computer; Registered permanent residence information comprises local registered permanent residence information or far-end registered permanent residence information, and wherein, local registered permanent residence information is used to represent terminal from this wire over ground, and far-end registered permanent residence information is used to represent to back up the registered permanent residence information of coming from opposite end BRAS.In the present embodiment, the registered permanent residence information that BRAS only judges the terminal correspondence is local registered permanent residence information, during promptly from this wire over ground, just can carry out heartbeat detection to this terminal.For example, this registered permanent residence information can be " 0 " or " 1 " of Digital Logic, and wherein, " 0 " is used to represent that registered permanent residence information is local registered permanent residence information; " 1 " is used to represent that registered permanent residence information is far-end registered permanent residence information.In addition, this registered permanent residence information can be stored among the BRAS in this terminal corresponding terminal information form.
In addition, when first convergence switch that links to each other with a BRAS and with second convergence switch that the 2nd BRAS links to each other between following time of physical link normal condition, the state of a BRAS is a stand-by state, the state of the 2nd BRAS is main state; When the physical link between first convergence switch and second convergence switch breaks down, the state of the 2nd BRAS and a BRAS all is main state, two main phenomenons promptly appear, when first terminal that dials again after first terminal that then belongs to first convergence switch goes offline or belong to first convergence switch dials for the first time, the logging request that the one BRAS sends according to this first terminal that receives, the registered permanent residence information that writes down first terminal is local registered permanent residence information, thereby can carry out heartbeat detection to first terminal.It should be noted that when a BRAS does not detect the heartbeat of first terminal,, and stop this charging then to the processing of rolling off the production line of first terminal.
Step 103, a BRAS are carried at the registered permanent residence information of first terminal on the first back-up terminals information and send to the 2nd BRAS, for the 2nd BRAS the local registered permanent residence information of first terminal are recorded as far-end registered permanent residence information.
In the present embodiment, a BRAS can also be with the registered permanent residence information of first terminal, and promptly local registered permanent residence information is carried in the first back-up terminals information, sends to the 2nd BRAS.Wherein this first back-up terminals information comprises internet (the Internet Protocol of first terminal; Be called for short: IP) other information such as address; After the 2nd BRAS receives this first back-up terminals information, the local registered permanent residence information of first terminal in the first back-up terminals information is recorded as far-end registered permanent residence information.
In the present embodiment, when the state of the 2nd BRAS and a BRAS all is main state, the 2nd BRAS is a far-end registered permanent residence information according to the registered permanent residence information of record first terminal, can not carry out heartbeat detection to first terminal, can be because of the heartbeat that does not detect first terminal yet to the processing of rolling off the production line of first terminal; Simultaneously, the one BRAS is local registered permanent residence information according to the registered permanent residence information of record first terminal, this first terminal is carried out heartbeat detection, and can be when not detecting the heartbeat of first terminal, to the processing of rolling off the production line of first terminal, thereby realized that when the state of the 2nd BRAS and a BRAS all is main state this first terminal dials and reaches the standard grade after the success, not the phenomenon that can occur going offline.
In the present embodiment, receive the state of the first local protection group of the 2nd BRAS transmission by a BRAS, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.Therefore, under two masters' situation, BRAS only carries out heartbeat detection to the terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the terminal that is recorded as far-end registered permanent residence information is not carried out heartbeat detection, reach the standard grade or roll off the production line thereby make terminal only control it by a BRAS, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
The flow chart of another embodiment of the processing method that Fig. 4 goes offline for terminal of the present invention, as shown in Figure 4, the method for present embodiment comprises:
Step 201, a BRAS receive the 3rd back-up terminals information and the 4th back-up terminals information that the 2nd BRAS sends, the registered permanent residence information of first terminal in the 3rd back-up terminals information is local registered permanent residence information, the registered permanent residence information of second terminal in the 4th back-up terminals information is local registered permanent residence information, and the state of a BRAS is a stand-by state; The state of the 2nd BRAS is main state.
In the present embodiment, as shown in Figure 1, under the physical link normal condition between first convergence switch and second convergence switch, the state of a BRAS is a stand-by state, and the state of the 2nd BRAS is main state.The 2nd BRAS receives the logging request that first terminal and second terminal send, and writes down the registered permanent residence information of first terminal and the registered permanent residence information of second terminal is local registered permanent residence information, and first terminal and second terminal are carried out heartbeat detection.Simultaneously, the 2nd BRAS is carried at the registered permanent residence information of first terminal in the 3rd back-up terminals information, and the registered permanent residence information of second terminal is carried in the 4th back-up terminals information, again the 3rd back-up terminals information and the 4th back-up terminals information are sent to a BRAS.Wherein, the 3rd back-up terminals information can comprise other information such as IP address of first terminal, and the 4th back-up terminals information can comprise other information such as IP address of second terminal.
Step 202, a BRAS are recorded as far-end registered permanent residence information with the local registered permanent residence information of first terminal and second terminal respectively.
In the present embodiment, the one BRAS receives the 3rd back-up terminals information and the 4th back-up terminals information, and the local registered permanent residence information of first terminal in the 3rd back-up terminals information is recorded as far-end registered permanent residence information, and the local registered permanent residence information of second terminal in the 4th back-up terminals information is recorded as far-end registered permanent residence information.Need to prove that a BRAS can be with first terminal of record and the local registered permanent residence information stores of second terminal in database.
In addition, because the registered permanent residence information of first terminal that writes down among the BRAS and the registered permanent residence information of second terminal are far-end registered permanent residence information, therefore, a BRAS does not detect first terminal and second terminal, thereby a BRAS does not reach the standard grade to first terminal and second terminal and handles or the processing of rolling off the production line.
Step 203, a BRAS receive first terminal that the 2nd BRAS the sends message that rolls off the production line.
In the present embodiment, when the physical link between first convergence switch and second convergence switch broke down, the 2nd BRAS found to detect first terminal, then to the processing of rolling off the production line of first terminal, and stopped charging to first terminal.Simultaneously, the 2nd BRAS deletion is stored in the 3rd back-up terminals information among the 2nd BRAS, and sends first terminal message that rolls off the production line to a BRAS.
Step 204, a BRAS are deleted the 3rd back-up terminals information according to the message that rolls off the production line of first terminal.
In the present embodiment, a BRAS receives the message that rolls off the production line of first terminal of the 2nd BRAS transmission, the then three back-up terminals information of deletion record in a BRAS.At this moment, because the physical link between first convergence switch and second convergence switch breaks down, therefore, the state of a BRAS becomes major state by stand-by state.Promptly the state of a BRAS and the 2nd BRAS all is main state, promptly two main phenomenons.It should be noted that in each embodiment of the present invention when the state of a BRAS and the 2nd BRAS all was main state, BRAS only carried out heartbeat detection to the terminal of minute book landholder message breath, the terminal of record far-end registered permanent residence information is not carried out heartbeat detection.Therefore, when the 2nd BRAS has deleted the local registered permanent residence information of the 3rd back-up terminals information and first terminal, the 2nd BRAS can not carry out heartbeat detection to first terminal, simultaneously, when the 2nd BRAS is local registered permanent residence information in the registered permanent residence information according to record second terminal, can also be to the heartbeat detection of carrying out of second terminal.In addition, when a BRAS was far-end registered permanent residence information in the registered permanent residence information according to second terminal that writes down, a BRAS can not carry out heartbeat detection to second terminal.
In sum, second terminal is just come its reach the standard grade processing or the processing of rolling off the production line by the 2nd BRAS, when the physical link between first convergence switch and second convergence switch broke down, second terminal can also continue online, and the situation that can not occur going offline.
Step 205, a BRAS receive the state of the first local protection group of the 2nd BRAS transmission.
In the present embodiment, the implementation of step 205 and the implementation of step 101 shown in Figure 2 are similar, do not repeat them here.
When the state of step 206, BRAS BRAS in the state of judging the first local protection group and the state of the 2nd BRAS all are main state; the logging request that sends according to first terminal that receives then; the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection.
In the present embodiment, the implementation of step 206 and the implementation of step 102 shown in Figure 2 are similar, do not repeat them here.Need to prove, a BRAS and two BRAS when all being main state of the one BRAS in the state of judging the first local protection group, in order to prevent it is of short duration two main illusion and cause meaningless processing, the 2nd BRAS can postpone the regular hour and send the state of the first local protection group to a BRAS, when a BRAS receives the state of the first local protection group that the 2nd BRAS sends, logging request according to first terminal transmission that receives, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; Perhaps a BRAS is at the double state that receives the first local protection group of the 2nd BRAS transmission; and when detecting a BRAS and the 2nd BRAS and all being main state; the logging request that the one BRAS sends according to first terminal that receives; the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection.
Step 207, a BRAS are carried at the registered permanent residence information of first terminal on the first back-up terminals information and send to the 2nd BRAS, for the 2nd BRAS the local registered permanent residence information of first terminal are recorded as far-end registered permanent residence information.
In the present embodiment, the implementation of step 207 and the implementation of step 103 shown in Figure 2 are similar, do not repeat them here.Need to prove that when first terminal dials when reaching the standard grade again, a BRAS has received the logging request that this first terminal sends, and the registered permanent residence information that writes down first terminal is local registered permanent residence information, comes first terminal is carried out heartbeat detection.Simultaneously, the registered permanent residence information of first terminal is carried in the first back-up terminals information sends to the 2nd BRAS, so that the 2nd BRAS is recorded as far-end registered permanent residence information with the local registered permanent residence information of first terminal in the first back-up terminals information, thereby make the 2nd BRAS not detect first terminal, promptly in two main phenomenons, dialing first terminal of reaching the standard grade is only made a strategic decision by a BRAS again, and it is reached the standard grade or rolls off the production line.
In the present embodiment, by when two main phenomenon not occurring, only there is the 2nd BRAS that first terminal and second terminal are carried out heartbeat detection, when two main phenomenon occurring, and when the 2nd BRAS does not detect the heartbeat of first terminal, then the 2nd BRAS deletes the end message of first terminal, and sends first terminal and roll off the production line message to a BRAS, so that a BRAS deletes the second back-up terminals information.Simultaneously, make the BRAS that wins receive the state of the first local protection group of the 2nd BRAS transmission, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state information of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.Therefore, under two masters' situation, the one BRAS only carries out heartbeat detection to first terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the 2nd BRAS only carries out heartbeat detection to second terminal that is recorded as local registered permanent residence information, thereby making the BRAS that wins control first terminal reaches the standard grade or rolls off the production line, the 2nd BRAS controls second terminal and reaches the standard grade or roll off the production line, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
Need to prove also that further in another embodiment of the present invention, this method can also comprise:
The one BRAS receives the second back-up terminals information that the 2nd BRAS sends, and the second terminal registered permanent residence information in this second back-up terminals information is local registered permanent residence information;
The one BRAS is recorded as far-end registered permanent residence information with the local registered permanent residence information of second terminal.
In the present embodiment, physical link between first convergence switch and second convergence switch breaks down, and the state of a BRAS and the 2nd BRAS all is main state, second terminal of angelica second convergence switch dials when reaching the standard grade for the first time, the registered permanent residence information that the 2nd BRAS writes down second terminal is local registered permanent residence information, come second terminal is kept heartbeat detection, and make a strategic decision that it is reached the standard grade or rolls off the production line; Simultaneously, the registered permanent residence information of second terminal is carried in the second back-up terminals information sends to a BRAS, the one BRAS receives this second back-up terminals information, and the local registered permanent residence information of second terminal in the second back-up terminals information is recorded as far-end registered permanent residence information, then this second terminal is not detected, thereby it is reached the standard grade or rolls off the production line to have realized second terminal having only the 2nd BRAS to make a strategic decision, and then when having realized in dual-machine hot backup system occurring two main phenomenon, second terminal dialing is reached the standard grade after the success, not the phenomenon that can occur going offline.
Need to prove, for second terminal that belongs to second convergence switch, physical link between first convergence switch and second convergence switch breaks down, and when second terminal sends logging request, the registered permanent residence information that the 2nd BRAS writes down second terminal is local registered permanent residence information, comes the processing of reaching the standard grade or roll off the production line of second terminal; Physical link normal condition between first convergence switch and second convergence switch, and when second terminal sends logging request, the registered permanent residence information that the BRAS that is main state by state writes down second terminal is local registered permanent residence information, and to the processing of reaching the standard grade or roll off the production line of second terminal.
The flow chart of another embodiment of the processing method that Fig. 5 goes offline for terminal of the present invention, as shown in Figure 5, the method for present embodiment comprises:
Step 301, the 2nd BRAS receive the first back-up terminals information that a BRAS sends, this first back-up terminals information carries the registered permanent residence information of a BRAS according to first terminal that logging request write down of first terminal that receives, and the registered permanent residence information of this first terminal is local registered permanent residence information; Wherein, the state of a BRAS and the 2nd BRAS all is main state.
In the present embodiment, because the physical link between first convergence switch and second convergence switch breaks down, therefore the state of the 2nd BRAS and a BRAS all is main state.When a BRAS receives the logging request of first terminal transmission that belongs to first convergence switch, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and be that local registered permanent residence information is carried in the first back-up terminals information with the registered permanent residence information of this first terminal, send to the 2nd BRAS.
Step 302, the 2nd BRAS are recorded as far-end registered permanent residence information with the local registered permanent residence information of first terminal.
In the present embodiment, because the processing method embodiment that a BRAS adopts terminal shown in Figure 1 to go offline handles first terminal, therefore, the first back-up terminals information that sends as a BRAS is during to the 2nd BRAS, the 2nd BRAS carries out negate to the registered permanent residence information of first terminal to be handled, and the registered permanent residence information that writes down first terminal is far-end registered permanent residence information, thereby making the 2nd BRAS not carry out heartbeat detection to first terminal handles, and then realized under two main situations, after first terminal dialing that goes offline is reached the standard grade or for the first time dialing is reached the standard grade, the phenomenon that can occur going offline not.
In the present embodiment, receive the state information of the first local protection group of the 2nd BRAS transmission by a BRAS, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state information of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.Therefore, under two masters' situation, BRAS only carries out heartbeat detection to the terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the terminal that is recorded as far-end registered permanent residence information is not carried out heartbeat detection, reach the standard grade or roll off the production line thereby make terminal only control it by a BRAS, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
Further, in another embodiment of the present invention, on the basis of the foregoing description, under the physical link normal condition between first convergence switch and second convergence switch, the state of the 2nd BRAS is main state, and the state of a BRAS is stand-by state, and this method also comprises:
The 2nd BRAS according to the logging request of first terminal that receives and the transmission of second terminal, writes down the registered permanent residence information of first terminal and the registered permanent residence information of second terminal and is local registered permanent residence information respectively;
The 2nd BRAS is carried at the local registered permanent residence information of first terminal in the 3rd back-up terminals information, and the local registered permanent residence information of second terminal is carried in the 4th back-up terminals information, again the 3rd back-up terminals information and the 4th back-up terminals information are sent to a BRAS.
In the present embodiment, after first terminal and second terminal were reached the standard grade, the 2nd BRAS write down the registered permanent residence information of first terminal and the registered permanent residence information of second terminal is local registered permanent residence information.Need to prove, under the physical link normal condition between first convergence switch and second convergence switch, the registered permanent residence information of first terminal and the registered permanent residence information of second terminal are that local registered permanent residence information can be stored in the database of the 2nd BRAS, and follow online cycle of whole first terminal and second terminal respectively, remain unchanged.Simultaneously, because the 2nd BRAS is carried at the local registered permanent residence information of first terminal in the 3rd back-up terminals information, and the local registered permanent residence information of second terminal is carried in the 4th back-up terminals information and sends to a BRAS in the lump, the one BRAS is recorded as far-end registered permanent residence information with the local registered permanent residence information of first terminal and second terminal, and can be in the database of a BRAS with first terminal behind the record and the far-end registered permanent residence information stores of second terminal, and follow online cycle of whole first terminal and second terminal respectively, remain unchanged.
Further, in yet another embodiment of the present invention, on the basis of the foregoing description, this method also comprises:
The 2nd BRAS receives the state of the second local protection group of described BRAS transmission;
In the present embodiment, a BRAS can be provided with a timer, thereby can for example about 10s, send the state of the second local protection group to the 2nd BRAS every the scheduled time.
The state of the BRAS of the 2nd BRAS in the state of judging the second local protection group and the state of the 2nd BRAS all are main state; and when not detecting the heartbeat of first terminal; then delete the local registered permanent residence information of the 3rd back-up terminals information and first terminal, and send first terminal message that rolls off the production line to a BRAS.
In the present embodiment; when the physical link between first convergence switch and second convergence switch breaks down; the 2nd BRAS is in second scheduled time; judging the state of the BRAS in the state of the second local protection group and the state of the 2nd BRAS all is main state; and when not detecting the heartbeat of first terminal; then delete the local registered permanent residence information and the 3rd back-up terminals information of first terminal; and send first terminal message that rolls off the production line to a BRAS; then a BRAS deletes the 3rd back-up terminals information according to first terminal that the receives message that rolls off the production line.
Fig. 6 is the structural representation of the embodiment of BRAS of the present invention, and as shown in Figure 6, the state of the BRAS of present embodiment is main state, and then this BRAS comprises: first receiver module 21, first processing module 22 and first sending module 23.Wherein, first receiver module 21 is used to receive the state of the first local protection group that the 2nd BRAS sends; First processing module 22 is used for when the state of the state of state the one BRAS that judges the first local protection group and the 2nd BRAS all is main state, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; First sending module 23 is used for registered permanent residence information with first terminal and is carried at the first back-up terminals information and sends to the 2nd BRAS; For the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.
The BRAS of present embodiment can be used to carry out the technical scheme of method embodiment shown in Figure 3, and it realizes that principle is similar, does not repeat them here.
In the present embodiment, receive the state of the first local protection group of the 2nd BRAS transmission by a BRAS, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.Therefore, under two masters' situation, BRAS only carries out heartbeat detection to the terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the information that is recorded as far-end registered permanent residence information is not carried out heartbeat detection, reach the standard grade or roll off the production line thereby make terminal only control it by a BRAS, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
Fig. 7 is the structural representation of another embodiment of BRAS of the present invention, as shown in Figure 7, the BRAS of present embodiment comprises: the 3rd receiver module 31, the 3rd processing module 32, the 4th receiver module 33, first removing module 34, first receiver module 35, first processing module 36 and first sending module 37.
Concrete, when the physical link normal condition between first convergence switch and second convergence switch, the 3rd receiver module 31 is used to receive the 3rd back-up terminals information and the 4th back-up terminals information that the 2nd BRAS sends, the registered permanent residence information of first terminal in the 3rd back-up terminals information is local registered permanent residence information, and the registered permanent residence information of second terminal in the 4th back-up terminals information is local registered permanent residence information; The state of BRAS is a stand-by state; The state of the 2nd BRAS is main state; The 3rd processing module 32 is used for respectively the local registered permanent residence information of first terminal and second terminal is recorded as far-end registered permanent residence information.
When the physical link between first convergence switch and second convergence switch broke down, then the state of a BRAS was for to become major state by stand-by state, and the 4th receiver module 33 of this BRAS is used to receive first terminal that the 2nd BRAS the sends message that rolls off the production line; First removing module 34 is used for deleting the 3rd back-up terminals information according to first terminal message that rolls off the production line; First receiver module 35 is used to receive the state of the first local protection group that the 2nd BRAS sends; First processing module 36 is used for when the state of the state of the state BRAS that judges the first local protection group and the 2nd BRAS all is main state, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; First sending module 37 is used for registered permanent residence information with first terminal and is carried at the first back-up terminals information and sends to the 2nd BRAS; For the 2nd BRAS the registered permanent residence information of first terminal being carried out negate handles.
The BRAS of present embodiment can be used to carry out the technical scheme of method embodiment shown in Figure 4, and it realizes that principle is similar, does not repeat them here.
In the present embodiment, by when two main phenomenon not occurring, only there is the 2nd BRAS that first terminal and second terminal are carried out heartbeat detection, when two main phenomenon occurring, and when the 2nd BRAS does not detect the heartbeat of first terminal, then the 2nd BRAS deletes the local registered permanent residence information of the 3rd back-up terminals information and first terminal, and sends first terminal and roll off the production line message to a BRAS, so that a BRAS deletes the 3rd back-up terminals information.Simultaneously, make the BRAS that wins receive the state of the first local protection group of the 2nd BRAS transmission, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the registered permanent residence information of first terminal is carried out negate and handles, and the registered permanent residence information that writes down first terminal is far-end registered permanent residence information.Therefore, under two masters' situation, the one BRAS only carries out heartbeat detection to first terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the 2nd BRAS only carries out heartbeat detection to second terminal that is recorded as local registered permanent residence information, thereby making the BRAS that wins control first terminal reaches the standard grade or rolls off the production line, the 2nd BRAS controls second terminal and reaches the standard grade or roll off the production line, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
Further, this BRAS also comprises: second receiver module and second processing module.Wherein, second receiver module is used to receive the second back-up terminals information that the 2nd BRAS sends, and the second terminal registered permanent residence information in this second back-up terminals information is local registered permanent residence information; Second processing module is used for the local registered permanent residence information of second terminal is recorded as far-end registered permanent residence information.
In the present embodiment, physical link between first convergence switch and second convergence switch breaks down, and the state of BRAS and the 2nd BRAS all is main state, second terminal of angelica second convergence switch dials when reaching the standard grade for the first time, the registered permanent residence information that the 2nd BRAS writes down second terminal is local registered permanent residence information, come second terminal is carried out heartbeat detection, and to its reach the standard grade processing or the processing of rolling off the production line; Simultaneously, the registered permanent residence information of second terminal is carried in the second back-up terminals information sends to BRAS, BRAS receives this second back-up terminals information, and the local registered permanent residence information of second terminal in the second back-up terminals information is recorded as far-end registered permanent residence information, then this second terminal is not carried out heartbeat detection, thereby having realized that second terminal is only reached the standard grade to it by the 2nd BRAS handles or the processing of rolling off the production line, and then when having realized in dual-machine hot backup system occurring two main phenomenon, second terminal dialing is reached the standard grade after the success, not the phenomenon that can occur going offline.
Need to prove, for second terminal that belongs to second convergence switch, no matter whether the physical link between first convergence switch and second convergence switch breaks down, as long as second terminal sends logging request, second terminal is only come its reach the standard grade processing or the processing of rolling off the production line by the 2nd BRAS.
Fig. 8 is the structural representation of another embodiment of BRAS of the present invention, and as shown in Figure 8, the BRAS of present embodiment comprises: the 5th receiver module 41 and the is managed module 42 everywhere.Wherein, the 5th receiver module 41 is used to receive the first back-up terminals information that a BRAS sends; The first back-up terminals information carries the registered permanent residence information of a BRAS according to this first terminal that logging request write down of first terminal that receives, and the registered permanent residence information of this first terminal is local registered permanent residence information; Wherein, the state of a BRAS and BRAS all is main state; Manages module 42 everywhere is used for the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.
In the present embodiment, a BRAS can be used for the technical scheme of execution graph 3 or method embodiment shown in Figure 4, and the BRAS of present embodiment can be used to carry out the technical scheme of method embodiment shown in Figure 5, does not repeat them here.
Further, in yet another embodiment of the present invention, on the basis of the foregoing description, the BRAS of present embodiment also comprises: the 6th receiver module and the 3rd sending module.Wherein, the 6th receiver module is used for writing down the registered permanent residence information of first terminal and the registered permanent residence information of second terminal and being local registered permanent residence information according to first terminal that receives respectively and the registered permanent residence information of second terminal; The 3rd sending module, be used for the local registered permanent residence information of first terminal is carried at the 3rd back-up terminals information, and the local registered permanent residence information of second terminal is carried in the 4th back-up terminals information, again the 3rd back-up terminals information and the 4th back-up terminals information are sent to a BRAS.
Further, in yet another embodiment of the present invention, on the basis of the foregoing description, the BRAS of present embodiment also comprises: the 7th receiver module and second removing module.Wherein, the 7th receiver module is used to receive the state of the second local protection group that a BRAS sends; Second removing module is used for all being main state at the state of the state of a BRAS of the state of judging the second local protection group and the 2nd BRAS; and when not detecting the heartbeat of first terminal; then delete the local registered permanent residence information of the 3rd back-up terminals information and first terminal, and send first terminal message that rolls off the production line to a BRAS.
Further, in yet another embodiment of the present invention, on the basis of the foregoing description, the BRAS of present embodiment also comprises: the 4th sending module was used in the scheduled time, sent the state of the first local protection group to a BRAS.
The structural representation of an embodiment of the treatment system that Fig. 9 terminal of the present invention goes offline, as shown in Figure 9, the system of present embodiment comprises: a BRAS 51 and the 2nd BRAS 52.Wherein, a BRAS51 can execution graph 3 or the technical scheme of method embodiment shown in Figure 4, and the 2nd BRAS 52 can carry out the technical scheme of method embodiment shown in Figure 5.
In the present embodiment, receive the state of the first local protection group of the 2nd BRAS transmission by a BRAS, and when the state of the state of a BRAS and the 2nd BRAS all is main state in the state of judging this first local protection group, the logging request that sends according to first terminal that receives then, the registered permanent residence information that writes down first terminal is local registered permanent residence information, and first terminal is carried out heartbeat detection; The registered permanent residence information that first terminal is sent is carried in the first back-up terminals information and sends to the 2nd BRAS simultaneously, for the 2nd BRAS the local registered permanent residence information of first terminal is recorded as far-end registered permanent residence information.Therefore, under two masters' situation, BRAS only carries out heartbeat detection to the terminal that is recorded as local registered permanent residence information correspondence, simultaneously, the information that is recorded as far-end registered permanent residence information is not carried out heartbeat detection, reach the standard grade or roll off the production line thereby make terminal only control it by a BRAS, thereby when having realized in dual-machine hot backup system occurring two main phenomenon, terminal dialing is reached the standard grade and can not gone offline after the success, can continue online to guarantee terminal.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.