CN1859423A - Synchronous switching method for host and repeat device - Google Patents

Synchronous switching method for host and repeat device Download PDF

Info

Publication number
CN1859423A
CN1859423A CN 200610057915 CN200610057915A CN1859423A CN 1859423 A CN1859423 A CN 1859423A CN 200610057915 CN200610057915 CN 200610057915 CN 200610057915 A CN200610057915 A CN 200610057915A CN 1859423 A CN1859423 A CN 1859423A
Authority
CN
China
Prior art keywords
forwarding unit
state
main frame
standby
active
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610057915
Other languages
Chinese (zh)
Other versions
CN1859423B (en
Inventor
雷文阳
毕建中
彭海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006100579151A priority Critical patent/CN1859423B/en
Publication of CN1859423A publication Critical patent/CN1859423A/en
Application granted granted Critical
Publication of CN1859423B publication Critical patent/CN1859423B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses host computer and retransmission unit synchronous switching method, wherein two or more retransmission unit composing retransmission unit set and generating host equipment and spare equipment, each retransmission unit in retransmission unit set respectively connected with host computer and providing service to host computer through host equipment. Said method also includes A, each retransmission unit in retransmission unit respectively notifying oneself current host standby state to host computer; B, host computer according to each retransmission unit notified host standby state to determine host equipment in retransmission unit set, and switching host equipment connected port as host port, through host port re-establishing connection with host equipment. The present invention reduces retransmission message jump number, system time delay, band width, system resources, and interconnection cost through direct connection between host computer and host equipment.

Description

A kind of main frame and forwarding unit synchronous switching method
Technical field
The present invention relates to active and standby handoff technique, refer to a kind of main frame and forwarding unit synchronous switching method especially.
Background technology
Along with the development of internet (Internet) technology, a large amount of main frames need be connected on NGN, Internet network or the dedicated network reliably by forwarding unit.Wherein, described main frame is some important network equipments normally, as the server or the Softswitch of WEB service or FTP service are provided.Described forwarding unit is: gateway, three-tier switch or router.At this, forwarding unit is that example describes with the gateway.Usually, main frame must be connected on Internet or the dedicated network through gateway, in case break down for main frame provides the gateway of service, will cause the connection between main frame and Internet or the private network to be interrupted, the service that relies on main frame to provide the user of service can't obtain Internet is provided.For some important main frames, in order to prevent to make main frame follow the connection of Internet or dedicated network to interrupt because of gateway fails, main frame is set usually is connected simultaneously, wherein use gateway as main for one, for main frame provides Connection Service with gateway more than two or two; Other are as standby gateway, and main when use gateway fails, standby gateway upgrades to and mainly continues as main frame with gateway service is provided, thereby effectively prevent to cause because of the fault of a gateway main frame to follow connection interruption between the Internet.
In the prior art, usually in two or two above gateway devices, move Virtual Router Redundacy Protocol (VRRP, Virtual Router Redundancy Protocol) or other can realize the agreement that active and standby equipment switches, realize by two or two above gateways mode, for main frame provides lasting Connection Service by active and standby switching.Here, claim that the group of being made up of two or two above forwarding units is the forwarding unit group.
When bringing into operation the VRRP agreement in the forwarding unit group, virtual ip address of configuration produces a master by the VRRP protocol negotiation and uses gateway earlier, and other are standby gateway.In the forwarding unit group of operation VRRP agreement, have only main virtual ip address to provide Connection Service to main frame with gateway use configuration, and standby gateway just main with gateway can't operate as normal, maybe when main when using the link failure of gateway, produce the new main gateway of using by the VRRP protocol negotiation, be responsible for providing Connection Service with gateway by new master again main frame.
When new generation is main when using gateway, the new master who produces can send free address resolution protocol (ARP to main frame with gateway, Address Resolution Protocol) message, though main frame can be received the gratuitous ARP packet that new master sends with gateway, but do not carry the prompting main frame in the gratuitous ARP packet and carry out the information that active and standby port switches, therefore main frame can't will switch to main port with the standby port that gateway links to each other with new master, so main frame still can be by sending message with the port that gateway links to each other to the host apparatus of new generation with former master.Therefore, main frame is sent in the process of message by the forwarding unit group, increased message forwarding jumping figure, system's time delay, and taken the bandwidth between interior gateway of forwarding unit group and the gateway, increased the interconnected cost between the gateway, wasted system resource.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of main frame and forwarding unit synchronous switching method, uses this method and can reduce the message forwarding number of times, reduce system delay, save the resource between the forwarding unit in the process that message sends.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of main frame and forwarding unit synchronous switching method, form the forwarding unit group and produce host apparatus and stand-by equipment by the forwarding unit more than two or two, each forwarding unit in the forwarding unit group links to each other with main frame respectively and provides service by host apparatus to main frame, and this method is further comprising the steps of:
Each forwarding unit in A, the forwarding unit group is respectively to the current active and standby state of using of main frame announcement self;
B, main frame determine host apparatus in the forwarding unit group according to the active and standby of each forwarding unit announcement with state, and the port that will link to each other with host apparatus switches to main port, rebulid with host apparatus by main port to be connected.
Wherein, in the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is respectively: in each forwarding unit two-way detection protocol message of active and standby usefulness state writing information that self is current, and will carry self active and standby information bidirectional detection protocol message with state and send to main frame.
Wherein, described each forwarding unit with self current active and standbyly with the two-way detection protocol message of state writing information is: the active and standby expansion with the two-way detection protocol message of state writing information that self is current of each forwarding unit is identified in the unit.
Wherein, when arriving, each forwarding unit sends information bidirectional detection protocol message during the cycle, execution in step A.
Wherein, in the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is respectively: each forwarding unit is current active and standby with state writing information operational administrative and maintenance packet with self, and will carry that self active and standby information operating with state is managed and maintenance packet sends to main frame.
In addition, this method further comprises: increase type length parameter field in information operating management and maintenance packet, described each forwarding unit with self current active and standbyly with state writing information operational administrative and maintenance packet is: each forwarding unit is current active and standby with the type length parameter field that increases in state writing information operational administrative and the maintenance packet with self.
Described, each forwarding unit is when arriving management of transmission information operating and maintenance packet during the cycle, execution in step A.
In addition, this method further comprises: be set active and standby synchronizing cycle, and among the step B, described main frame determines that with state the host apparatus in the forwarding unit group is according to the active and standby of each forwarding unit announcement, and main frame is every when reaching active and standby synchronizing cycle, carries out following steps:
The active and standby announcement that B1, main frame send according to each forwarding unit with state, at the main number of times of each forwarding unit record with state and stand-by state, and when main frame finishes current active and standby synchronizing cycle, execution in step B2;
B2, obtain mainly, and determine that main is host apparatus with the maximum forwarding unit of state with the maximum forwarding unit of state.
In addition, among the step B2, further comprise between the main forwarding unit and definite host apparatus maximum obtaining with state:
B21, judge whether the current forwarding unit that obtains also exists the record of stand-by state in current active and standby synchronizing cycle, if there is no, determine that then the current forwarding unit that obtains is a host apparatus; Otherwise main frame is not carried out handover operation.
In addition, among the step B21, before definite current forwarding unit that obtains is host apparatus, further comprise:
Judge that whether the current forwarding unit that obtains is same forwarding unit with the host apparatus of current use, if not, determine that then the current forwarding unit that obtains is a host apparatus; Otherwise main frame is not carried out handover operation.
In addition, this method further comprises: the variation sign is set; Further comprise in the steps A:
Forwarding unit is judged the active and standby with active and standby with state whether the changing of state with respect to the last time announcement of current announcement, if change, then forwarding unit is provided with and self changes sign effectively; Otherwise it is invalid that the variation sign is set; And, will change sign and send to main frame at the current active and standby state of using of announcement;
Further comprise before the step B: main frame judges whether the variation sign of receiving is effective, if effectively, among the step B1, the main number of times with state and stand-by state of described record forwarding unit is: with on add one on the active and standby state that once writes down with opposite states; Otherwise among the step B1, the main number of times with state and stand-by state of described record forwarding unit is: with on add one on the active and standby state identical that once write down with state.
Described, described being advertised as: when active and standby switchings took place in the forwarding unit group, each forwarding unit in the forwarding unit group was announced self current active and standby state of using to main frame respectively.
In addition, this method further comprises: for each forwarding unit in the forwarding unit group is provided with announcement timer and identical notification time;
Described being advertised as: after the announcement timer in each forwarding unit arrived notification time, each forwarding unit in the forwarding unit group was respectively to the current active and standby state of using of main frame announcement self.
In addition, this method further comprises: priority when being set to host apparatus respectively for each forwarding unit and the priority that becomes stand-by equipment, priority when all forwarding units are set to host apparatus is identical, and is higher than the priority when being set to stand-by equipment
In the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is: each forwarding unit current is active and standbyly announced self current priority to main frame respectively with state according to self;
Among the step B, described main frame determines that with state host apparatus is according to active and standby: all priority of receiving are compared, determine that the highest forwarding unit of priority is a host apparatus.
In addition, this method further comprises: when main frame can't be connected with current host apparatus by the port that links to each other with current host apparatus, main frame sends a warning message.
A kind of main frame provided by the present invention and forwarding unit synchronous switching method, give main frame with the active and standby of self with state advertisement by each forwarding unit in the forwarding unit group, main frame is active and standbyly determined current host apparatus with state according to what each forwarding unit of receiving sent, and self is switched to main port with port that current host apparatus links to each other, rebulid with host apparatus by main port and be connected.After using this method and making forwarding unit carry out active and standby switching, main frame can carry out self active and standby switching with port according to the host apparatus after the active and standby switching, and the port that will link to each other with the host apparatus after switching is connected with host apparatus as main port.The present invention directly is connected with host apparatus by main frame, the jumping figure, the system's time delay that E-Packet have been reduced, and as far as possible little take the bandwidth between the forwarding unit and forwarding unit in the forwarding unit group, and saved system resource, reduced the interconnected cost between forwarding unit and the forwarding unit.
Description of drawings
Fig. 1 is the flow chart that forwarding unit sends information BFD message in the embodiment of the invention one;
Fig. 2 determines the flow chart of host apparatus for main frame in the embodiment of the invention one;
Fig. 3 is the flow chart of the embodiment of the invention two.
Embodiment
Core concept of the present invention is: each forwarding unit in the forwarding unit group sends to main frame with the active and standby of self with state respectively, main frame is active and standbyly determined current host apparatus with state by what each forwarding unit sent, and will switch to main port, and rebulid with host apparatus by main port and to be connected with the port that current host apparatus links to each other.
In the present invention, each forwarding unit in the forwarding unit group is periodic or when self active and standby changes with state, and self current is active and standbyly sent to main frame with state.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to accompanying drawing and enumerate embodiment, the present invention is described in further detail.
Embodiment one
In the present embodiment, utilize the expansion of two-way detection protocol (BFD) in the prior art to identify that the unit carries the active and standby state of using of forwarding unit, this expansion identifies that the unit is expressed as AuthType=0 in the BFD agreement.The BFD agreement is mainly used in the fault of fixer network device port and is used for carrying out loopback detection etc.
In the present embodiment, expansion is identified that the definition of unit can be a form as shown in Table 1:
Field name Field type Field length Device identification State
Shared byte number 1 1 1 1
Table one
As shown in Table 1, expansion is identified the data cell of unit has defined four fields, being comprised: field type, field length, device identification and state.Wherein, field type Auth Type is 0, represents the expansion evaluation unit that this data cell keeps for the BFD agreement; Field length Auth Len represents the total bytes of this expansion evaluation unit; Device identification Device ID represents to send unique device number of information BFD message forwarding equipment; State State represents the active and standby state of using of current forwarding unit.
In actual applications, can also identify the new field of increase in the unit in expansion,, be used for the performance or the ruuning situation of current forwarding unit are made further supplementary notes as increasing information Information field according to the requirement of user or equipment.Also can define, but for the application of the original BFD agreement of compatibility, the expansion of definition identifies that the total length of cell data unit must satisfy the integral multiple of 4 bytes the needs of the shared byte number of each field according to network environment self.
According to the BFD agreement, the network equipment all can periodically send information BFD message.When the forwarding unit in the forwarding unit group arrives information BFD message and sends the cycle, forwarding unit is concrete send carry self active and standby information BFD message with state process as shown in Figure 1:
Step 101~102: the arbitrary forwarding unit in the forwarding unit group arrives and self sends information BFD message during the cycle, then inquires about and obtain the current active and standby state of using in the forwarding unit group certainly.
Here, specifically inquire about self active and standby method, can carry out,, then can and obtain current according to the inquiry of VRRP agreement from the active and standby state of using in the forwarding unit group if operation is the VRRP agreement according to the agreement of moving in the forwarding unit group with state.
Step 103: the active and standby expansion that writes the current information BFD message that will send with state that forwarding unit will obtain identifies in the state field in the unit, and will carry self active and standby information BFD message with state and send to main frame.
When each forwarding unit in the forwarding unit group sends the cycle when the information BFD message that arrives self, equal execution in step 101~103.
Receiving terminal main frame at the information of reception BFD message, when main frame has been received the information BFD message that carries main usefulness state, then according to the current pairing forwarding unit of receiving of information BFD message, the main port of self is switched to the port that links to each other with current forwarding unit, and rebulid with host apparatus by main port and to be connected.
Though just there have been connection physically current rebuliding in main frame and current host apparatus before being connected, current rebulid connection before, main frame can not directly send data by current host apparatus to the external world.Therefore main frame need rebulid with host apparatus by main port and be connected, and makes main frame can directly pass through current main port, directly sends data to the external world from current host apparatus.
In the present embodiment, for receiving terminal main frame at the information of reception BFD message, can also be set active and standby synchronizing cycle to main frame, when arrive in active and standby synchronizing cycle, then main frame begins according to the information BFD message of receiving, the active and standby state of using of each forwarding unit in the record forwarding unit group, and when finish active and standby synchronizing cycle, according to the active and standby current host apparatus of state of using of each forwarding unit that writes down, carry out active and standby switching.Detailed process is as shown in Figure 2:
Step 201~202: when main frame is every when reaching active and standby synchronizing cycle, main frame then begins according to the active and standby state of using that carries in the information BFD message of receiving in this one-period, each forwarding unit in the forwarding unit group is carried out record, and the content of record is the active and standby number of times with state of each forwarding unit; And when finish current active and standby synchronizing cycle, execution in step 203.
Step 203: obtain leading according to record, and judge whether the forwarding unit that obtains also exists the record of stand-by state in current active and standby synchronizing cycle with the maximum forwarding unit of state, if there is no, execution in step 204; Otherwise, execution in step 206.
When whether forwarding unit that judgement obtains also exists the record of stand-by state in current active and standby synchronizing cycle, can be the record that judges whether to exist stand-by state, or judge whether to exist record less than the stand-by state of some.Here the record of the stand-by state of the some of indication can once or once, concrete number need be determined according to the actual conditions of the network operation.
Step 204: judge that whether the current forwarding unit that obtains is same forwarding unit with the host apparatus of current use, if not, then execution in step 205; Otherwise, execution in step 206.
Step 205: the main port of self is switched to the port that links to each other with the current forwarding unit that obtains, rebulid with host apparatus by main port and be connected, finish current flow process.
Step 206: do not carry out active and standby switching.
When current active and standby synchronizing cycle of the every end of main frame, then begin again to enter next active and standby synchronizing cycle, main frame is in each active and standby synchronizing cycle, and all execution in step 201~206.Active and standby synchronizing cycle concrete cycle length be provided with can be according to the concrete environment of network, and forwarding unit sends the size in information BFD message cycle, in the use of reality, the cycle size of active and standby switching cycle is set to 1~3 second usually.
In the step 203 of present embodiment, also can not carry out and judge whether current master exists the record of stand-by state with the maximum forwarding unit of state, and directly determine that according to record main is host apparatus with the maximum forwarding unit of state.In this case, just no longer need execution in step 204 and step 206, and direct execution in step 205.
In the present embodiment, also execution in step 204 not, and execution in step as a result 205 or the step 206 directly judged according to step 203.
Under special circumstances, because the topological structure in the forwarding unit group changes, such as, in the forwarding unit group that two forwarding units that link to each other with main frame are formed, can't connect between two forwarding units, the forwarding unit group just may produce more than one host apparatus, at this moment, main frame is according to record, may obtain more than one same main at most the forwarding unit that has, promptly exist more than one host apparatus to the main information BFD message of carrying of main frame transmission with state with state number.In this case, main frame can be selected the host apparatus of one of them forwarding unit as self arbitrarily, also can adopt other measure, as sending a warning message to Network Management Equipment, or keeps former host apparatus constant.
Here, entrained active and standby of main frame acquired information BFD message from information BFD message with state information is: obtain expansion and identify the unit from the data field of information BFD message, and identify the form of unit according to the expansion that is provided with, in the state state field from expansion evaluation unit, obtain the active and standby state of using of the pairing forwarding unit of current information BFD message.
Generally, it is very short that forwarding unit sends the cycle of information BFD message, therefore identify content in the unit for fear of the frequent query expansion of main frame, can also in the unit is identified in expansion, be provided with and change sign, whether active and standby during relatively with last transmission information BFD message changes with state with state to be used for representing current active and standby of forwarding unit, if change, variation then is set is designated effectively; Otherwise, then be provided with change be designated invalid.
When being provided with at information BFD message under the situation that changes sign, main frame is when receiving that having carried variation identifies, the expansion of at first judging the current information BFD message that receives identifies whether change sign in the unit effective, if effectively, then indicate the current active and standby state of using of receiving the forwarding unit of information BFD message correspondence, active and standby when sending information BFD message with respect to the last time changes with state, is main situation with state at the active and standby of forwarding unit last time with state, then corresponding current forwarding unit adds 1 on the stand-by state number of times of forwarding unit; When the active and standby of forwarding unit last time is the situation of stand-by state with state, then corresponding current forwarding unit adds 1 at forwarding unit main on the state number of times.If the expansion of the current information BFD message that receives is identified to change in the unit and is designated when invalid, then indicate the current active and standby state of using of receiving the forwarding unit of information BFD message correspondence, active and standby when sending information BFD message with respect to the last time do not change with state, is main situation with state at the active and standby of forwarding unit last time with state, then corresponding current forwarding unit adds 1 at forwarding unit main on the state number of times; When the active and standby of forwarding unit last time is the situation of stand-by state with state, then corresponding current forwarding unit adds 1 on the stand-by state number of times of forwarding unit.Then, according to the active and standby number of times of the forwarding unit of record, execution in step 203 with state.
Be provided with under the situation that changes sign, whether main frame only needs according to changing sign effective, just can learn the active and standby state of using that changes the pairing forwarding unit of sign easily.Therefore save forwarding unit and read the time that other information in the unit are identified in expansion, saved the time of host process information, improved the operational efficiency of system.At some in particular cases, if main frame can't find the active and standby state of using of the forwarding unit of last record, for example, main frame is received the active and standby state of using that certain forwarding unit sends for the first time, at this moment, main frame then can identify that the state field in the unit obtains the current active and standby state of using of forwarding unit by reading expansion.Here, the position of the concrete setting of described variation sign can be: in the unit is identified in expansion another field is set, or a sign position is set in order to represent to change sign in state field.
In the present embodiment, expansion in can utilizing the BFD agreement identifies that the unit sends the active and standby with the state of forwarding unit, can also utilize the information operating management of IEEE802.3ah in the prior art and safeguard that (OAM) message carries the active and standby state of using of forwarding unit, sends to main frame.When using the OAM message, forwarding unit carries the active and standby state of using of self, at first need in the data field of OAM message, increase type length parameter (TLV), when forwarding unit arrives the cycle that sends the OAM message, need inquiry current equally from the active and standby state of using in the forwarding unit group, in the active and standby TLV field that writes increase with state that will obtain then, send to main frame.In the processing procedure of host computer side, except handle to as if the TLV field that increases, other the processing procedure all flow process with shown in Figure 2 is identical, is not described in detail at this.
Embodiment two
In the present embodiment, can distinguish the active and standby state of using of each forwarding unit in the forwarding unit group by the method for forwarding unit priority is set.Be specially, priority when each forwarding unit in the forwarding unit group is set to host apparatus and stand-by equipment respectively, make the host apparatus in the forwarding unit group have higher priority with respect to stand-by equipment, forwarding unit in the forwarding unit group sends to main frame with the priority of self respectively, and main frame is determined host apparatus according to the height of priority.
Described priority when each forwarding unit in the forwarding unit group is set to host apparatus and stand-by equipment respectively is: the priority when each forwarding unit is provided with this forwarding unit and becomes host apparatus, and the priority of this forwarding unit when becoming stand-by equipment, wherein, the priority of the host apparatus of setting must be than the priority height of stand-by equipment.For example, when the priority of supposing 1 to 2 is high, can be to all forwarding unit settings when the priority that this forwarding unit becomes host apparatus is 1, the priority that becomes stand-by equipment is 2, in this case for any forwarding unit, as long as this forwarding unit becomes host apparatus, its priority is 1, and when this forwarding unit will be for stand-by equipment, its priority was 2; In the time of also can becoming host apparatus identical priority is set and different priority is set when becoming stand-by equipment each forwarding unit, for example, can be provided with forwarding unit A, priority is 1 when forwarding unit A becomes host apparatus, priority is 2 when becoming stand-by equipment; Can be provided with forwarding unit B, when forwarding unit B becomes host apparatus priority be similarly 1 and when becoming stand-by equipment priority be 3, when hypothesis 2 to 3 priority was high, equally as stand-by equipment, forwarding unit A was then than the priority height of forwarding unit B.
It below is the specific implementation process of present embodiment.
Operation VRRP agreement in the forwarding unit group, virtual ip address is set, initialization forwarding unit group, priority when each forwarding unit in the forwarding unit group is set to host apparatus and stand-by equipment respectively is as long as make the host apparatus in the forwarding unit group have higher priority with respect to stand-by equipment; Simultaneously, each forwarding unit in the forwarding unit group is provided with identical notification time, is provided with and starts simultaneously the announcement timer.The setting of described notification time can be provided with according to the frequency that the forwarding unit group is carried out active and standby switching.The detailed process of present embodiment is as shown in Figure 3:
Step 301: each forwarding unit in the forwarding unit group judges respectively whether announcement timer separately arrives notification time, if then execution in step 302; Otherwise return step 301, continue to judge whether the announcement timer arrives notification time.
Step 302: each forwarding unit in the forwarding unit group announces the priority of self to main frame; After finishing announcement, restart self inner announcement timer that is provided with, the reclocking of announcement timer.
Wherein, the method that forwarding unit announces the priority of self to main frame can be, use the information operating management among the IEEE802.3ah to announce to main frame with safeguarding (OAM) message, be specially and increase type length parameter (TLV) field in the data field in the OAM message, in the TLV field that increases, write the priority of self, and forwarding unit sends the OAM message cycle when arriving, and the OAM message that has increased the TLV field is sent to main frame.
The method that forwarding unit announces the priority of self to main frame can also be: utilize the expansion of BFD protocol information BFD message to identify the unit, identify the priority that writes self in the unit in expansion, in information BFD message, write the active and standby identical of self among concrete method and the embodiment one with state, be not described in detail in this, when the forwarding unit transmission information BFD message cycle arrives, the information BFD message that has carried priority is sent to main frame.
Step 303: after the announcement of the main frame priority that each forwarding unit sends in receiving the forwarding unit group, the announcement of receiving is resolved entrained priority in obtaining announcing.Priority is compared, determine that the high forwarding unit of priority is a host apparatus, the port that will link to each other with host apparatus is connected with host apparatus by main port as main port.Simultaneously, after successfully carrying out the switching of port of active and standby usefulness, main frame returns success to host apparatus and carries out active and standby affirmation of switching with port.
Owing in step 302, after finishing announcement, each forwarding unit has restarted self inner announcement timer that is provided with, and the reclocking of announcement timer, so when execution in step 303, while execution in step 301 and step 302.
Under special circumstances, because the topological structure in the forwarding unit group changes, such as, in the forwarding unit group that two forwarding units that link to each other with main frame are formed, can't connect between two forwarding units, the forwarding unit group just may produce more than one host apparatus, at this moment, main frame then can be received the announcement of carrying limit priority more than, i.e. the announcement of carrying host apparatus priority that is sent to main frame by more than one host apparatus.In this case, main frame can select one of them forwarding unit as self host apparatus arbitrarily, and the port that will link to each other with this host apparatus is as main port.
When forwarding unit utilizes the OAM message to carry priority, described the announcement of receiving is resolved to, main frame obtains the TLV field of sign forwarding unit priority by reading the OAM message of receiving from the data field of message, obtain the priority of forwarding unit.
When forwarding unit utilizes information BFD message to carry self priority, described the announcement of receiving is resolved to, main frame is by reading the information BFD message of receiving, and the priority that obtains current forwarding unit in the unit is identified in the expansion from the message data territory.
In the present embodiment, when carrying out as shown in Figure 3 flow process, can also work as when active and standby switchings takes place in the forwarding unit group, forwarding units all in the forwarding unit group is set announce the priority of self to main frame.Be specially, because the forwarding unit in the forwarding unit group can learn in time by the VRRP agreement whether active and standby switching has taken place in the forwarding unit group, if forwarding unit gets in the cicada forwarding unit group active and standby switching taken place, then execution in step 302; If do not take place, then do not do any processing.
In some concrete application, also can only use separately when in the forwarding unit group active and standby switching taking place, interior each forwarding unit of forwarding unit group is set the priority of self is announced to main frame by the port that self links to each other with main frame; And do not use each forwarding unit in the forwarding unit group is not provided with timer, periodically triggers interior each forwarding unit of forwarding unit group the priority of self is announced to main frame by the port that self links to each other with main frame.
In the present invention, when main frame has been determined host apparatus in the forwarding unit group, but in the time of can't be with host apparatus successful connection in the forwarding unit group, need network management device or forwarding unit in the forwarding unit group to send a warning message, the prompting main frame can't be connected with current host apparatus.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (13)

1, a kind of main frame and forwarding unit synchronous switching method, form the forwarding unit group and produce host apparatus and stand-by equipment by the forwarding unit more than two or two, each forwarding unit in the forwarding unit group links to each other with main frame respectively and provides service by host apparatus to main frame, it is characterized in that this method is further comprising the steps of:
Each forwarding unit in A, the forwarding unit group is respectively to the current active and standby state of using of main frame announcement self;
B, main frame determine host apparatus in the forwarding unit group according to the active and standby of each forwarding unit announcement with state, and the port that will link to each other with host apparatus switches to main port, rebulid with host apparatus by main port to be connected.
2, method according to claim 1, it is characterized in that, in the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is respectively: in each forwarding unit two-way detection protocol message of active and standby usefulness state writing information that self is current, and will carry self active and standby information bidirectional detection protocol message with state and send to main frame.
3, method according to claim 1 and 2 is characterized in that, sends information bidirectional detection protocol message during the cycle, execution in step A when each forwarding unit arrives.
4, method according to claim 1, it is characterized in that, in the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is respectively: each forwarding unit is current active and standby with state writing information operational administrative and maintenance packet with self, and will carry that self active and standby information operating with state is managed and maintenance packet sends to main frame.
According to claim 1 or 4 described methods, it is characterized in that 5, each forwarding unit is when arriving management of transmission information operating and maintenance packet during the cycle, execution in step A.
6, according to claim 1,2 or 4 described methods, it is characterized in that, this method further comprises: be set active and standby synchronizing cycle, among the step B, described main frame determines that with state the host apparatus in the forwarding unit group is according to the active and standby of each forwarding unit announcement, main frame is every when reaching active and standby synchronizing cycle, carries out following steps:
The active and standby announcement that B1, main frame send according to each forwarding unit with state, at the main number of times of each forwarding unit record with state and stand-by state, and when main frame finishes current active and standby synchronizing cycle, execution in step B2;
B2, obtain mainly, and determine that main is host apparatus with the maximum forwarding unit of state with the maximum forwarding unit of state.
7, method according to claim 6 is characterized in that, among the step B2, further comprises between the main forwarding unit and definite host apparatus maximum with state obtaining:
B21, judge whether the current forwarding unit that obtains also exists the record of stand-by state in current active and standby synchronizing cycle, if there is no, determine that then the current forwarding unit that obtains is a host apparatus; Otherwise main frame is not carried out handover operation.
8, method according to claim 7 is characterized in that, among the step B21, before definite current forwarding unit that obtains is host apparatus, further comprises:
Judge that whether the current forwarding unit that obtains is same forwarding unit with the host apparatus of current use, if not, determine that then the current forwarding unit that obtains is a host apparatus; Otherwise main frame is not carried out handover operation.
9, method according to claim 6 is characterized in that, this method further comprises: the variation sign is set; Further comprise in the steps A:
Forwarding unit is judged the active and standby with active and standby with state whether the changing of state with respect to the last time announcement of current announcement, if change, then forwarding unit is provided with and self changes sign effectively; Otherwise it is invalid that the variation sign is set; And, will change sign and send to main frame at the current active and standby state of using of announcement;
Further comprise before the step B: main frame judges whether the variation sign of receiving is effective, if effectively, among the step B1, the main number of times with state and stand-by state of described record forwarding unit is: with on add one on the active and standby state that once writes down with opposite states; Otherwise among the step B1, the main number of times with state and stand-by state of described record forwarding unit is: with on add one on the active and standby state identical that once write down with state.
10, method according to claim 1 is characterized in that, described being advertised as: when active and standby switchings took place in the forwarding unit group, each forwarding unit in the forwarding unit group was announced self current active and standby state of using to main frame respectively.
11, method according to claim 1 is characterized in that, this method further comprises: for each forwarding unit in the forwarding unit group is provided with announcement timer and identical notification time;
Described being advertised as: after the announcement timer in each forwarding unit arrived notification time, each forwarding unit in the forwarding unit group was respectively to the current active and standby state of using of main frame announcement self.
12, according to claim 1,2,4,10 or 11 described methods, it is characterized in that, this method further comprises: priority when being set to host apparatus respectively for each forwarding unit and the priority that becomes stand-by equipment, priority when all forwarding units are set to host apparatus is identical, and be higher than priority when being set to stand-by equipment
In the steps A, described each forwarding unit to current active and standby of main frame announcement self with state is: each forwarding unit current is active and standbyly announced self current priority to main frame respectively with state according to self;
Among the step B, described main frame determines that with state host apparatus is according to active and standby: all priority of receiving are compared, determine that the highest forwarding unit of priority is a host apparatus.
13, according to claim 1,2,4,10 or 11 described methods, it is characterized in that this method further comprises: when main frame can't be connected with current host apparatus by the port that links to each other with current host apparatus, main frame sends a warning message.
CN2006100579151A 2006-02-27 2006-02-27 Synchronous switching method for host and repeat device Expired - Fee Related CN1859423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100579151A CN1859423B (en) 2006-02-27 2006-02-27 Synchronous switching method for host and repeat device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100579151A CN1859423B (en) 2006-02-27 2006-02-27 Synchronous switching method for host and repeat device

Publications (2)

Publication Number Publication Date
CN1859423A true CN1859423A (en) 2006-11-08
CN1859423B CN1859423B (en) 2010-12-08

Family

ID=37298285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100579151A Expired - Fee Related CN1859423B (en) 2006-02-27 2006-02-27 Synchronous switching method for host and repeat device

Country Status (1)

Country Link
CN (1) CN1859423B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025542A (en) * 2010-12-09 2011-04-20 中兴通讯股份有限公司 Matching method and system of master and slave interfaces
CN102271049A (en) * 2010-06-02 2011-12-07 北京启明星辰信息技术股份有限公司 Method, device and system for setting state of communication equipment
CN102291313A (en) * 2011-09-06 2011-12-21 北京星网锐捷网络技术有限公司 Method, device and equipment for finding virtual router redundancy protocol (VRRP) network topology
CN103259678A (en) * 2013-04-28 2013-08-21 华为技术有限公司 Main-auxiliary switching method, device, equipment and system
CN104168193A (en) * 2014-08-12 2014-11-26 华为技术有限公司 Virtual router redundancy protocol fault detection method and router equipment
CN101252521B (en) * 2008-03-19 2014-12-10 中兴通讯股份有限公司 Method for forwarding message and distributed three layer network eqiupment
WO2017005165A1 (en) * 2015-07-06 2017-01-12 中兴通讯股份有限公司 Static tunnel status information synchronization method and apparatus
CN111698151A (en) * 2019-03-13 2020-09-22 华为技术有限公司 Routing information management method, device and computer storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1109416C (en) * 2000-04-25 2003-05-21 华为技术有限公司 Method and equipment for swapping active with standby switches
CN100388218C (en) * 2002-06-27 2008-05-14 中兴通讯股份有限公司 Method for realizing backup between servers
CN1310481C (en) * 2003-05-21 2007-04-11 华为技术有限公司 Method for realizing application characteristic dual processor backup

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252521B (en) * 2008-03-19 2014-12-10 中兴通讯股份有限公司 Method for forwarding message and distributed three layer network eqiupment
CN102271049A (en) * 2010-06-02 2011-12-07 北京启明星辰信息技术股份有限公司 Method, device and system for setting state of communication equipment
CN102271049B (en) * 2010-06-02 2014-07-02 北京启明星辰信息技术股份有限公司 Method, device and system for setting state of communication equipment
CN102025542A (en) * 2010-12-09 2011-04-20 中兴通讯股份有限公司 Matching method and system of master and slave interfaces
CN102291313A (en) * 2011-09-06 2011-12-21 北京星网锐捷网络技术有限公司 Method, device and equipment for finding virtual router redundancy protocol (VRRP) network topology
CN102291313B (en) * 2011-09-06 2014-01-22 北京星网锐捷网络技术有限公司 Method, device and equipment for finding virtual router redundancy protocol (VRRP) network topology
CN103259678B (en) * 2013-04-28 2016-06-08 华为技术有限公司 Main/standby switching method, device, equipment and system
CN103259678A (en) * 2013-04-28 2013-08-21 华为技术有限公司 Main-auxiliary switching method, device, equipment and system
CN104168193A (en) * 2014-08-12 2014-11-26 华为技术有限公司 Virtual router redundancy protocol fault detection method and router equipment
CN104168193B (en) * 2014-08-12 2017-12-15 华为技术有限公司 A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
WO2017005165A1 (en) * 2015-07-06 2017-01-12 中兴通讯股份有限公司 Static tunnel status information synchronization method and apparatus
CN106341245A (en) * 2015-07-06 2017-01-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
CN106341245B (en) * 2015-07-06 2020-02-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
CN111698151A (en) * 2019-03-13 2020-09-22 华为技术有限公司 Routing information management method, device and computer storage medium
CN111698151B (en) * 2019-03-13 2022-06-28 华为技术有限公司 Routing information management method, device and computer storage medium

Also Published As

Publication number Publication date
CN1859423B (en) 2010-12-08

Similar Documents

Publication Publication Date Title
CN1859423A (en) Synchronous switching method for host and repeat device
US10257265B2 (en) Redundancy network protocol system
JP4103816B2 (en) Router setting method and router apparatus
CN101094102B (en) Main and standby switching method and route standby system for route device
CN1913457A (en) Method for fault detection of two-way conversion link
CN101051951A (en) Method and device for securing server connection reliability
CN1306432C (en) Method and structure for autoconfiguration of overlay networks by automatic selection of a network designated router
CN1893338A (en) Communication path redundancy protection systems and methods
CN1725733A (en) Method of route backup in combination equipment and combination equipment
CN102123105B (en) Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP
CN1905488A (en) Method and system for access user by virtual router redundance protocol
CN1925496A (en) System and method for load sharing of network layer with multiple network interface cards terminal equipment
CN1855916A (en) Method and system for realizing virtual IP protocol
CN1848841A (en) Route equipment backup method
CN1812409A (en) Method and system for realizing synchronization of major and auxiliary state
CN101060485A (en) Topology changed messages processing method and processing device
CN101951345A (en) Message transmitting method and equipment
CN1909494A (en) Method and system for realizing dual attachment or multiple attachment of user network boundary device
CN1722664A (en) Method for realizing high-usability of network security equipment under cluster mode
CN101599907B (en) Method and system for forwarding flow
CN1905566A (en) Method and system for implementing system high-usability in network storage service
CN1874320A (en) Method and system for implementing consistency of message forwarding routes
CN1913493A (en) Method for avoiding route equipment frequent switchover state and one type route equipment
CN102769571B (en) Graceful restart realization method and equipment
CN101047641A (en) Stationary restart method of CR-LSR

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101208

Termination date: 20180227