CN101951345A - Message transmitting method and equipment - Google Patents

Message transmitting method and equipment Download PDF

Info

Publication number
CN101951345A
CN101951345A CN2010105083036A CN201010508303A CN101951345A CN 101951345 A CN101951345 A CN 101951345A CN 2010105083036 A CN2010105083036 A CN 2010105083036A CN 201010508303 A CN201010508303 A CN 201010508303A CN 101951345 A CN101951345 A CN 101951345A
Authority
CN
China
Prior art keywords
equipment
backup
vrrp
advertisement message
master
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
CN2010105083036A
Other languages
Chinese (zh)
Other versions
CN101951345B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2010105083036A priority Critical patent/CN101951345B/en
Publication of CN101951345A publication Critical patent/CN101951345A/en
Application granted granted Critical
Publication of CN101951345B publication Critical patent/CN101951345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a message transmitting method and message transmitting equipment. The method comprises that: Backup equipment receives a first Advertisement message from Master equipment; and when determining it is necessary to transmit a second Advertisement message according to the priority of a VRRP backup operator of the Master equipment, the Backup equipment sends the second Advertisement message to an exchange board, and the exchange board learns the virtual MAC of the VRRP backup operator to a port connected with the Backup equipment according to a source MAC address of the second Advertisement message. In the invention, the constant flow rate of the VRRP backup operator in state switching is ensured.

Description

A kind of sending method of message and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of sending method and equipment of message.
Background technology
In actual applications, in order to realize communicating by letter of main frame and external network, usually a default route need be set on terminal, it is the gateway that is provided with on the terminal, a router is pointed in its next jumping, thereby that can realize terminal and external network communicates by letter single router networking schematic diagram as shown in Figure 1.Wherein, as Router (router) when breaking down, then all are that the terminal of next jumping of default route all will be broken and the communicating by letter of outside with Router in this network segment.
In order to address the above problem, VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) technology is arisen at the historic moment, this VRRP is applied to (as the layer-3 switch or the router of static configuration default gateway) on layer-3 switch or the router, and carries out the terminal that wide area network inserts (or visiting other local area network (LAN)) faster, more effective redundancy fault-tolerant ability is provided for relying on default gateway.In addition, in present VRRP technology, except on original router, using, also will progressively be incorporated in the large-scale switching net, to realize the 3rd layer of exchange redundancy backup function of high reliability.
Concrete, VRRP forms the VRRP group with many routers in the system, has a virtual default gateway IP address and MAC (Media Access Control, medium access control) address in this VRRP group.At any time, having only the router of control virtual gateway address in the VRRP group is active router (Master), and transmits packet by active router in the VRRP group; If active router breaks down, then need in the VRRP group, select the highest redundancy backup router (Backup) of priority to come the replacement activity router.
As can be seen, since the terminal configuration in the network virtual gateway address of VRRP group, when active router breaks down, the virtual gateway address does not change, therefore, terminal still can keep being connected with the virtual gateway address, and network can not be subjected to the influence of Single Point of Faliure (being the active router fault), thereby has solved the problem of router failure in the network preferably.
In order to guarantee the normal use of VRRP, in VRRP, defined following state:
(1) Initialize state: i.e. the initial condition of VRRP backup group, after configuring, the VRRP backup group promptly is in the Initialize state, if receive the Up incident afterwards, then the Initialize state can be moved to Master state or Backup state.
(2) Master state: i.e. the major state of VRRP backup group, the router that is in the Msater state is responsible for transmitting the flow of main frame in the local area network (LAN).
(3) Backup state: the i.e. Status of Backups of VRRP backup group, the router that is in the Backup state is converting flow not, only as the backup of Master state router, when Master state router breaks down, the router that then is in the Backup state can forward the Master state to, takes over the flow of main frame in the local area network (LAN).
In addition, in VRRP, also defined following timer:
(1) Master_Down_Timer: i.e. the timer of Backup router monitoring Master router, the timeout interval of timer is Master_Down_Interval, behind timer expiry, then the Backup router will be transformed into the Master state.
(2) Adver_Timer: promptly the Master router regularly sends the timer of Advertisement (notice) message.
Describe below in conjunction with VRRP networking schematic diagram shown in Figure 2 operation principle VRRP.In Fig. 2, Router A and Router B form a virtual router, are referred to as the VRRP backup group.Wherein, this virtual router has virtual ip address and the virtual mac address of self, and the router (Router A and Router B) in the VRRP backup group has the IP address and the MAC Address of self reality.In order to communicate with external network, the terminal in the local area network (LAN) need default gateway be set to the IP address (being virtual ip address) of this virtual router.
When router migration arrives the Master state, to in this router, issue virtual ip address and virtual mac address, and send gratuitous ARP (Address Resolution Protocol, address resolution protocol) message, can transmit by the Master router to guarantee network traffics.In addition, when router during from Master state transition to other states, this router also can be deleted virtual ip address and the virtual mac address that issues in this router.
Further, because the terminal in the local area network (LAN) need default gateway be set to the IP address of this virtual router, then pass through the gratuitous ARP packet that the Master router sends, terminal in the local area network (LAN) can be known the corresponding relation of gateway IP and gateway MAC, and the terminal in the local area network (LAN) can come to communicate with other networks by this virtual router afterwards.In addition, the router that is in the Master state can start timer Adver_Timer, and timed sending VRRP Advertisement message, the source MAC of this Advertisement message is the virtual MAC of VRRP backup group, by this Advertisement message, can make down the Layer 2 switch hung with virtual mac learning to the port that connects the Master router, thereby guaranteeing that data flow that the terminal in the local area network (LAN) sends to outer net all can be forwarded on the Master router transmits.
In the prior art, after a VRRP backup group is stable, need send the Advertisement message to the Backup router, regularly the state of announcement oneself by the Master router; The Backup router does not send message, receive only the Advertisement message that the Master router sends, and determine according to this Advertisement message whether the work of Master router is normal, when the work of Master router is undesired, determine that oneself needs transition status; When the Master router is working properly, determine that oneself does not need transition status.
Wherein, the router that is in the Master state in the VRRP backup group need carry out following processing:
According to Advertisement_Interval interval timed sending Advertisement message.
If receive the Advertisement message that the opposite end sends, the priority of then checking the end-to-end router that carries in the Advertisement message if priority is 0, then needs to send an Advertisement message; If priority is not 0, then need the priority size of further relatively local and opposite end, if opposite end priority greater than the local first level, perhaps opposite end priority equate with the local first level and peer IP address bigger than local ip address, then forward the Backup state to; Otherwise, abandon the Advertisement message that receives.
If this device fails then sends a priority and is 0 Advertisement message, trigger end-to-end router and transfer new Master fast to, the Initialize state is moved in this locality simultaneously.
In addition, the router that is in the Backup state in the VRRP backup group need carry out following processing:
If Master_Down_Timer does not receive the Advertisement message that the Master router sends in the time, then think the Master router failure, and carry out following operation: send the Advertisement message, send the gratuitous ARP request with virtual IP address and virtual MAC, and start Advertisement announcement timer, and transfer the Master state to from the Backup state.
If received the Advertisement message that the opposite end sends, the priority of then checking the end-to-end router that carries in the Advertisement message, if priority is 0, Master_Down_Timer is changed to Skew_time with timer; If this locality does not enable to seize, perhaps Ben Di priority is lower than the priority of opposite end, and the Master_Down_Timer timer of then resetting recomputates Master fault time-out time; If this locality has enabled to seize and the local first level more than or equal to opposite end priority, then abandon the Advertisement message that receives, wait for the Master_Down_Timer timer expiry.
In networking shown in Figure 2, Router A is the Master router, and Port 1 is the up link of Router A, and after the Port of RouterA 1 fault, the then priority in the RouterA reduction backup group, and triggering Router B seizes and becomes new Master.Afterwards, if after Port 1 fault recovery of Router A, then the priority of Router A can return to the preceding value of fault, makes the priority of Router A be higher than the priority of Router B.At this moment, after Router A receives the Advertisement message of Master state router Router B, can compare the priority at two ends, and find self priority ratio opposite end height, then abandon the Advertisement message that receives, the Master_Down_Timer timer expiry on Router A.
After the Master_Down_Timer of Router A is overtime, then Router A will carry out following processing:
(1) Router A sends the Advertisement message;
(2) Router A sends the gratuitous ARP request with the virtual IP address and the virtual MAC of virtual router;
(3) RouterA state transition is to the Master state;
(4) RouterA is provided with virtual IP address and virtual MAC in this equipment;
(5) Router A with virtual MAC as source MAC, and according to Advertisement notification time timed sending Advertisement message.
Router B will carry out following processing:
(1) Router B receives the Advertisement message that Router A sends;
(2) Router B compares opposite end and local priority, finds that opposite end priority is higher than the local first level, arrives the Backup state with state transition;
(3) virtual IP address and the virtual MAC in the Router B deletion local device.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
Because CPU (the Central Processing Unit of Network Transmission and two ends Router, central processing unit) disposal ability difference, before the virtual IP address and virtual MAC carried out on the Router B on (3) the step deletion Router B, may receive the gratuitous ARP that RouterA sent in (2) step earlier.
When this situation occurring, owing to also do not have enough time to delete virtual IP address and virtual MAC, then Router B can think and has IP address conflict in the network, so to gratuitous ARP request response arp reply Router B on.The source MAC of this arp reply message is the virtual MAC of VRRP backup group, source IP is a virtual IP address, this gratuitous ARP packet will be transmitted to Router A through the Layer 2 switch of following two routers of connection of hanging this moment, and virtual mac learning mistake is moved on the Port6 in the virtual MAC address that can cause acquiring on the Layer 2 switch from Port 5.Afterwards, the uplink traffic of the PC under the Layer 2 switch can all be forwarded on the Router B that becomes Backup.
And because Router B can delete the virtual MAC and the virtual IP address of this equipment after (3) step, therefore, after Router B executed for (3) step, uplink traffic will can't be forwarded to Internet all, and cutout occurred.And this cutout situation can continue always, until Router A arrives after date in Advertisement message notification time, send the Advertisement message once more, just can trigger down hang Layer 2 switch with virtual mac learning to correct port Port 5.If the Adver_Timer timer of Router A is very long blanking time, then the terminal cutout time also can be very long in the local area network (LAN).
Summary of the invention
The invention provides a kind of sending method and equipment of message so that VRRP backup group state when switching flow do not interrupt.
In order to achieve the above object, the present invention proposes a kind of sending method of message, be applied to comprise in the system of switch and VRRP backup group, at least comprise Master equipment and Backup equipment in the described VRRP backup group, when described Master equipment from Master state transition to the Backup state, to Master state transition, this method may further comprise the steps described Backup equipment from Backup state transition:
Described Backup equipment receives the Advertisement message from described Master equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message;
When determining that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, described Backup equipment sends the 2nd Advertisement message to described switch, and the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group; So that described switch according to the source MAC of described the 2nd Advertisement message with the virtual mac learning of described VRRP backup group to the port that connects described Backup equipment.
Described Backup equipment receives the Advertisement message from described Master equipment, also comprises before:
Described Master equipment sends a described Advertisement message as source MAC to described Backup equipment with the real mac address of self.
Determine that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, also comprise before:
The VRRP backup group priority of the more described Backup equipment of described Backup equipment and the VRRP backup group priority of described Master equipment;
If the VRRP backup group priority of described Master equipment is higher than the VRRP backup group priority of described Backup equipment, perhaps,
The interface IP address of the VRRP backup group priority of described Master equipment and described Master equipment identical with the VRRP backup group priority of described Backup equipment is greater than the interface IP address of described Backup equipment,
Described Backup equipment is determined not need to send the 2nd Advertisement message, and stops the Advertisement message announcement timer of self, and the Backup state is arrived in state transition.
Determine that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, specifically comprise:
If the VRRP backup group priority of described Master equipment is 0, perhaps,
The VRRP backup group priority of described Master equipment is lower than the VRRP backup group priority of described Backup equipment, perhaps,
The VRRP backup group priority of described Master equipment and interface IP address described Master equipment identical with the VRRP backup group priority of described Backup equipment is not more than the interface IP address of described Backup equipment,
Described Backup equipment determines to need to send the 2nd Advertisement message.
The invention provides a kind of transmitting apparatus of message, be applied to comprise in the VRRP backup group of Master equipment and described Backup equipment as Backup equipment, also comprise switch in the system that described VRRP backup group is used, when described Master equipment from Master state transition to the Backup state, to the Master state, this equipment comprises described Backup equipment from Backup state transition:
Receiver module is used to receive the Advertisement message from described Master equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message;
Determination module is used for determining that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message;
Sending module, be used for when determination module determines that needs send the 2nd Advertisement message, send described the 2nd Advertisement message to described switch, the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group; So that described switch according to the source MAC of described the 2nd Advertisement message with the virtual mac learning of described VRRP backup group to the port that connects described Backup equipment.
Described receiver module specifically is used to receive the described Advertisement message that described Master equipment sends to described Backup equipment as source MAC with self real mac address.
Described determination module also is used for the VRRP backup group priority of more described Backup equipment and the VRRP backup group priority of described Master equipment;
If the VRRP backup group priority of described Master equipment is higher than the VRRP backup group priority of described Backup equipment, perhaps,
The interface IP address of the VRRP backup group priority of described Master equipment and described Master equipment identical with the VRRP backup group priority of described Backup equipment is greater than the interface IP address of described Backup equipment,
Determining does not need to send the 2nd Advertisement message, and stops local Advertisement message announcement timer, and the Backup state is arrived in state transition.
Described determination module is 0 if specifically be used for the VRRP backup group priority of described Master equipment, perhaps,
The VRRP backup group priority of described Master equipment is lower than the VRRP backup group priority of described Backup equipment, perhaps,
The VRRP backup group priority of described Master equipment and interface IP address described Master equipment identical with the VRRP backup group priority of described Backup equipment is not more than the interface IP address of described Backup equipment,
Determine to need to send the 2nd Advertisement message.
The invention provides a kind of transmitting apparatus of message, be applied to comprise in the VRRP backup group of described Master equipment and Backup equipment as Master equipment, also comprise switch in the system that described VRRP backup group is used, when described Master equipment from Master state transition to the Backup state, to the Master state, this equipment comprises described Backup equipment from Backup state transition:
Sending module is used for sending an Advertisement message to described Backup equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message; Send described two Advertisement message according to the VRRP backup group priority of described Master equipment to described switch by described Backup equipment, the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group.
Described sending module specifically is used for sending a described Advertisement message as source MAC to described Backup equipment with the real mac address of self.
Compared with prior art, the present invention has the following advantages at least:
Guarantee that VRRP backup group flow when state switches does not interrupt, thereby solved the network cutout problem that the VRRP backup group occurs when state switches, and realize the purpose of router redundancy backup; And processing after improving and VRRP agreement are compatible fully, the equipment interconnection problem can not occur.
Description of drawings
Fig. 1 is single router networking schematic diagram in the prior art;
Fig. 2 is a VRRP networking schematic diagram in the prior art;
Fig. 3 is the sending method flow chart of a kind of message provided by the invention;
Fig. 4 is the transmitting apparatus structure chart of a kind of message of proposing of the present invention.
Embodiment
Describe the present invention below in conjunction with accompanying drawing.
The present invention proposes a kind of sending method of message, this method is applied to comprise in the system of switch, terminal and VRRP backup group, at least comprise Master equipment and Backup equipment in this VRRP backup group, wherein, this terminal is connected with switch, and this switch is connected with the VRRP backup group, when terminal need send data, at first send the data to switch, according to the virtual mac address of VRRP backup group these data are sent to the VRRP backup group by switch.For example, when virtual mac address was learnt on the port of Backup equipment, switch sent the data to the Backup equipment in the VRRP backup group; When virtual mac address was learnt on the port of Master equipment, switch sent the data to the Master equipment in the VRRP backup group.
Among the present invention, this Master equipment from Master state transition to the Backup state, this Backup equipment from Backup state transition to the Master state.
In this case, the processing procedure of Master equipment (being the Master equipment before the state transition) comprising: (1) receives the Advertisement message that Backup equipment sends; (2) compare opposite end and local priority, find that opposite end priority is higher than local terminal, arrives the Backup state with state transition; (3) virtual IP address and the virtual MAC in the deletion local device.
After the Master_Down_Timer of Backup equipment (being the Master equipment after the state transition) was overtime, corresponding processing procedure comprises: (1) Backup equipment sent the Advertisement message; (2) virtual IP address and the virtual MAC with virtual router sends the gratuitous ARP request; (3) the Master state is arrived in state transition; (4) virtual IP address and virtual MAC are set in this equipment; (5) with virtual MAC as source MAC, according to Advertisement notification time timed sending Advertisement message.
Based on the disposition of above-mentioned Master equipment and Backup equipment, when Master equipment completion status was moved, as shown in Figure 3, the sending method of this message may further comprise the steps:
Step 301, Master equipment sends an Advertisement message to Backup equipment.
The one Advertisement message with the actual MAC of interface (being the MAC Address of Master equipment) as source MAC, and the VRRP backup group priority of having carried Master equipment.It should be noted that, because Master equipment has been moved to the Backup state, need then to guarantee that switch no longer sends the data of terminal by this Master equipment, be Master equipment do not need transmission source address be virtual MAC an Advertisement message (if transmission source address is the Advertisement message of virtual MAC, then can cause switch with virtual mac learning to Master equipment).
Among the present invention, Master equipment also need send an Advertisement message of the VRRP backup group priority of having carried Master equipment with the interface real mac address (after promptly executing above-mentioned 3 kinds of processing) on the basis of above-mentioned 3 kinds of processing procedures to Backup equipment as source MAC.
Step 302, Backup equipment receives the Advertisement message from Master equipment.Carried the VRRP backup group priority of this Master equipment in the one Advertisement message.
Among the present invention, Backup equipment when the Advertisement message that receives from Master equipment, also needs to carry out the subsequent step among the present invention on the basis of above-mentioned 5 kinds of processing procedures.
Step 303, Backup equipment determines whether that according to the VRRP backup group priority of Master equipment needs send the 2nd Advertisement message.If, forward step 304 to, otherwise, forward step 305 to.
Concrete, Backup equipment passes through to compare the VRRP backup group priority of Backup equipment and the VRRP backup group priority of Master equipment; If the VRRP backup group priority of Master equipment is higher than the VRRP backup group priority of Backup equipment, perhaps, the interface IP address of the VRRP backup group priority of Master equipment and Master equipment identical with the VRRP backup group priority of Backup equipment is greater than the interface IP address of Backup equipment, and then execution in step 305.
Further, Backup equipment is according to the VRRP backup group priority of Master equipment, if the VRRP backup group priority of Master equipment is 0, perhaps, the VRRP backup group priority of Master equipment is lower than the VRRP backup group priority of Backup equipment, perhaps, the VRRP backup group priority of Master equipment and interface IP address Master equipment identical with the VRRP backup group priority of Backup equipment is not more than the interface IP address of Backup equipment, and then execution in step 304.
Step 304, Backup equipment sends the 2nd Advertisement message to switch.
Wherein, the source MAC of the 2nd Advertisement message is the virtual MAC of this VRRP backup group.
Concrete, the Layer 2 switch that Backup equipment needs to hang downwards sends the 2nd Advertisement message, after Layer 2 switch receives the 2nd Advertisement message, then Layer 2 switch can according to the source MAC of the 2nd Advertisement message with the virtual mac learning of VRRP backup group to the port that connects Backup equipment, guaranteeing that Layer 2 switch sends corresponding message (being the message that terminal need send to network) from the port of correct Backup equipment, and can not cause the interruption of flow.
After this step, Backup equipment also needs the Advertisement message announcement timer of local terminal of resetting, and restarts new timing.
Step 305, Backup equipment determines not need to send the 2nd Advertisement message.
Further, Backup equipment also needs to stop local Advertisement message announcement timer, the Backup state is arrived in state transition, and send three Advertisement message as source MAC to Master equipment with the interface real mac address.
Based on the inventive concept same with said method, the invention allows for a kind of transmitting apparatus of message, be applied to comprise in the VRRP backup group of Master equipment and described Backup equipment as Backup equipment, also comprise switch in the system that described VRRP backup group is used, when described Master equipment from Master state transition to the Backup state, to the Master state, as shown in Figure 4, this equipment comprises described Backup equipment from Backup state transition:
Receiver module 41 is used to receive the Advertisement message from described Master equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message;
Determination module 42 is used for determining that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message;
Sending module 43, be used for when determination module 42 determines that needs send the 2nd Advertisement message, described switch sends described the 2nd Advertisement message, and the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group; So that described switch according to the source MAC of described the 2nd Advertisement message with the virtual mac learning of described VRRP backup group to the port that connects described Backup equipment.
Described receiver module 41 specifically is used to receive the described Advertisement message that described Master equipment sends to described Backup equipment as source MAC with self real mac address.
Described determination module 42 also is used for the VRRP backup group priority of more described Backup equipment and the VRRP backup group priority of described Master equipment;
If the VRRP backup group priority of described Master equipment is higher than the VRRP backup group priority of described Backup equipment, perhaps,
The interface IP address of the VRRP backup group priority of described Master equipment and described Master equipment identical with the VRRP backup group priority of described Backup equipment is greater than the interface IP address of described Backup equipment,
Determining does not need to send the 2nd Advertisement message, and stops local Advertisement message announcement timer, and the Backup state is arrived in state transition.
Described determination module 42 is 0 if specifically be used for the VRRP backup group priority of described Master equipment, perhaps,
The VRRP backup group priority of described Master equipment is lower than the VRRP backup group priority of described Backup equipment, perhaps,
The VRRP backup group priority of described Master equipment and interface IP address described Master equipment identical with the VRRP backup group priority of described Backup equipment is not more than the interface IP address of described Backup equipment,
Determine to need to send the 2nd Advertisement message.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Based on the inventive concept same with said method, the invention allows for a kind of transmitting apparatus of message, be applied to comprise in the VRRP backup group of described Master equipment and Backup equipment as Master equipment, also comprise switch in the system that described VRRP backup group is used, when described Master equipment from Master state transition to the Backup state, to the Master state, this equipment comprises described Backup equipment from Backup state transition:
Sending module is used for sending an Advertisement message to described Backup equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message; Send described two Advertisement message according to the VRRP backup group priority of described Master equipment to described switch by described Backup equipment, the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group.
Described sending module specifically is used for sending a described Advertisement message as source MAC to described Backup equipment with the real mac address of self.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1. the sending method of a message, be applied to comprise in the system of switch and VRRP backup group, at least comprise Master equipment and Backup equipment in the described VRRP backup group, it is characterized in that, when described Master equipment from Master state transition to the Backup state, to the Master state, this method may further comprise the steps described Backup equipment from Backup state transition:
Described Backup equipment receives the Advertisement message from described Master equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message;
When determining that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, described Backup equipment sends the 2nd Advertisement message to described switch, and the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group; So that described switch according to the source MAC of described the 2nd Advertisement message with the virtual mac learning of described VRRP backup group to the port that connects described Backup equipment.
2. the method for claim 1 is characterized in that, described Backup equipment receives the Advertisement message from described Master equipment, also comprises before:
Described Master equipment sends a described Advertisement message as source MAC to described Backup equipment with the real mac address of self.
3. the method for claim 1 is characterized in that, determines that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, also comprise before:
The VRRP backup group priority of the more described Backup equipment of described Backup equipment and the VRRP backup group priority of described Master equipment;
If the VRRP backup group priority of described Master equipment is higher than the VRRP backup group priority of described Backup equipment, perhaps,
The interface IP address of the VRRP backup group priority of described Master equipment and described Master equipment identical with the VRRP backup group priority of described Backup equipment is greater than the interface IP address of described Backup equipment,
Described Backup equipment is determined not need to send the 2nd Advertisement message, and stops the Advertisement message announcement timer of self, and the Backup state is arrived in state transition.
4. the method for claim 1 is characterized in that, determines that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message, specifically comprise:
If the VRRP backup group priority of described Master equipment is 0, perhaps,
The VRRP backup group priority of described Master equipment is lower than the VRRP backup group priority of described Backup equipment, perhaps,
The VRRP backup group priority of described Master equipment and interface IP address described Master equipment identical with the VRRP backup group priority of described Backup equipment is not more than the interface IP address of described Backup equipment,
Described Backup equipment determines to need to send the 2nd Advertisement message.
5. the transmitting apparatus of a message, be applied to comprise in the VRRP backup group of Master equipment and described Backup equipment as Backup equipment, also comprise switch in the system that described VRRP backup group is used, it is characterized in that, when described Master equipment from Master state transition to the Backup state, to the Master state, this equipment comprises described Backup equipment from Backup state transition:
Receiver module is used to receive the Advertisement message from described Master equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message;
Determination module is used for determining that according to the VRRP backup group priority of described Master equipment needs send the 2nd Advertisement message;
Sending module, be used for when determination module determines that needs send the 2nd Advertisement message, send described the 2nd Advertisement message to described switch, the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group; So that described switch according to the source MAC of described the 2nd Advertisement message with the virtual mac learning of described VRRP backup group to the port that connects described Backup equipment.
6. equipment as claimed in claim 5 is characterized in that,
Described receiver module specifically is used to receive the described Advertisement message that described Master equipment sends to described Backup equipment as source MAC with self real mac address.
7. equipment as claimed in claim 5 is characterized in that,
Described determination module also is used for the VRRP backup group priority of more described Backup equipment and the VRRP backup group priority of described Master equipment;
If the VRRP backup group priority of described Master equipment is higher than the VRRP backup group priority of described Backup equipment, perhaps,
The interface IP address of the VRRP backup group priority of described Master equipment and described Master equipment identical with the VRRP backup group priority of described Backup equipment is greater than the interface IP address of described Backup equipment,
Determining does not need to send the 2nd Advertisement message, and stops local Advertisement message announcement timer, and the Backup state is arrived in state transition.
8. equipment as claimed in claim 5 is characterized in that,
Described determination module is 0 if specifically be used for the VRRP backup group priority of described Master equipment, perhaps,
The VRRP backup group priority of described Master equipment is lower than the VRRP backup group priority of described Backup equipment, perhaps,
The VRRP backup group priority of described Master equipment and interface IP address described Master equipment identical with the VRRP backup group priority of described Backup equipment is not more than the interface IP address of described Backup equipment,
Determine to need to send the 2nd Advertisement message.
9. the transmitting apparatus of a message, be applied to comprise in the VRRP backup group of described Master equipment and Backup equipment as Master equipment, also comprise switch in the system that described VRRP backup group is used, it is characterized in that, when described Master equipment from Master state transition to the Backup state, to the Master state, this equipment comprises described Backup equipment from Backup state transition:
Sending module is used for sending an Advertisement message to described Backup equipment; Carried the VRRP backup group priority of described Master equipment in the described Advertisement message; Send described two Advertisement message according to the VRRP backup group priority of described Master equipment to described switch by described Backup equipment, the source MAC of described the 2nd Advertisement message is the virtual MAC of described VRRP backup group.
10. equipment as claimed in claim 9 is characterized in that,
Described sending module specifically is used for sending a described Advertisement message as source MAC to described Backup equipment with the real mac address of self.
CN2010105083036A 2010-10-15 2010-10-15 Message transmitting method and equipment Active CN101951345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105083036A CN101951345B (en) 2010-10-15 2010-10-15 Message transmitting method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105083036A CN101951345B (en) 2010-10-15 2010-10-15 Message transmitting method and equipment

Publications (2)

Publication Number Publication Date
CN101951345A true CN101951345A (en) 2011-01-19
CN101951345B CN101951345B (en) 2013-06-05

Family

ID=43454708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105083036A Active CN101951345B (en) 2010-10-15 2010-10-15 Message transmitting method and equipment

Country Status (1)

Country Link
CN (1) CN101951345B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center
WO2012171378A1 (en) * 2011-06-15 2012-12-20 中兴通讯股份有限公司 Method and router for preventing flow interruption caused by failover from vpls to l3
CN102857435A (en) * 2012-09-27 2013-01-02 杭州华三通信技术有限公司 Method and device for forwarding three-layer data flow in data center site
WO2013097067A1 (en) * 2011-12-26 2013-07-04 华为技术有限公司 Method, device and system for realizing communication after virtual machine migration
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller
CN104486216A (en) * 2014-12-08 2015-04-01 迈普通信技术股份有限公司 State switching method and router
CN105718331A (en) * 2015-06-27 2016-06-29 巫立斌 Storage system
CN105915400A (en) * 2016-06-28 2016-08-31 北京神州绿盟信息安全科技股份有限公司 Data stream switching method and system
CN106559326A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 Flow forwarding method and device
CN107547367A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 A kind of multicast switching method, device and machinable medium
CN111277436A (en) * 2020-01-17 2020-06-12 深信服科技股份有限公司 Equipment state switching method and device, electronic equipment and storage medium
CN111698158A (en) * 2020-04-17 2020-09-22 新华三技术有限公司成都分公司 Method and device for electing master equipment and machine-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581821A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Key route information monitoring method based on virtual router redundant protocol
CN1893338A (en) * 2005-06-28 2007-01-10 阿尔卡特公司 Communication path redundancy protection systems and methods
CN101035058A (en) * 2007-04-28 2007-09-12 杭州华三通信技术有限公司 Transfer method and device of the virtual router redundancy protocol message
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
US7486610B1 (en) * 2005-05-11 2009-02-03 Cisco Technology, Inc. Multiple virtual router group optimization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581821A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Key route information monitoring method based on virtual router redundant protocol
US7486610B1 (en) * 2005-05-11 2009-02-03 Cisco Technology, Inc. Multiple virtual router group optimization
CN1893338A (en) * 2005-06-28 2007-01-10 阿尔卡特公司 Communication path redundancy protection systems and methods
CN101035058A (en) * 2007-04-28 2007-09-12 杭州华三通信技术有限公司 Transfer method and device of the virtual router redundancy protocol message
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012171378A1 (en) * 2011-06-15 2012-12-20 中兴通讯股份有限公司 Method and router for preventing flow interruption caused by failover from vpls to l3
CN102244609B (en) * 2011-06-15 2016-12-21 中兴通讯股份有限公司 Solve VPLS and access method and the router that L3 failover causes stopping
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center
CN102546389B (en) * 2011-11-08 2015-01-14 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center
US9479611B2 (en) 2011-12-26 2016-10-25 Huawei Technologies Co., Ltd. Method, device, and system for implementing communication after virtual machine migration
WO2013097067A1 (en) * 2011-12-26 2013-07-04 华为技术有限公司 Method, device and system for realizing communication after virtual machine migration
CN103534994A (en) * 2011-12-26 2014-01-22 华为技术有限公司 Method, device and system for realizing communication after virtual machine migration
CN103534994B (en) * 2011-12-26 2017-08-25 华为技术有限公司 The method, apparatus and system of communication are realized after a kind of virtual machine (vm) migration
CN102857435A (en) * 2012-09-27 2013-01-02 杭州华三通信技术有限公司 Method and device for forwarding three-layer data flow in data center site
CN102857435B (en) * 2012-09-27 2015-04-15 杭州华三通信技术有限公司 Method and device for forwarding three-layer data flow in data center site
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller
CN104486216A (en) * 2014-12-08 2015-04-01 迈普通信技术股份有限公司 State switching method and router
CN104486216B (en) * 2014-12-08 2017-10-27 迈普通信技术股份有限公司 A kind of state switching method and router
CN105718331A (en) * 2015-06-27 2016-06-29 巫立斌 Storage system
CN106559326A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 Flow forwarding method and device
WO2017054535A1 (en) * 2015-09-28 2017-04-06 中兴通讯股份有限公司 Traffic forwarding method and apparatus
CN105915400A (en) * 2016-06-28 2016-08-31 北京神州绿盟信息安全科技股份有限公司 Data stream switching method and system
CN107547367A (en) * 2017-06-28 2018-01-05 新华三技术有限公司 A kind of multicast switching method, device and machinable medium
CN107547367B (en) * 2017-06-28 2020-04-28 新华三技术有限公司 Multicast switching method, device and machine readable storage medium
CN111277436A (en) * 2020-01-17 2020-06-12 深信服科技股份有限公司 Equipment state switching method and device, electronic equipment and storage medium
CN111698158A (en) * 2020-04-17 2020-09-22 新华三技术有限公司成都分公司 Method and device for electing master equipment and machine-readable storage medium
CN111698158B (en) * 2020-04-17 2023-03-31 新华三技术有限公司成都分公司 Method and device for electing master equipment and machine-readable storage medium

Also Published As

Publication number Publication date
CN101951345B (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN101951345B (en) Message transmitting method and equipment
US10257265B2 (en) Redundancy network protocol system
CN101094102B (en) Main and standby switching method and route standby system for route device
CN1246994C (en) Method and system for implementing a fast recovery process in a local area network
US10027574B2 (en) Redundant pathways for network elements
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
US8867375B2 (en) Failback to a primary communications adapter
CN107171840B (en) Protection switching method and device based on ERPS protocol
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
CN1859423B (en) Synchronous switching method for host and repeat device
CN110943878A (en) Heartbeat packet transmission method, terminal and device with storage function
JP5775473B2 (en) Edge device redundancy system, switching control device, and edge device redundancy method
CN103036701A (en) Network segment crossing N+1 backup method and network segment crossing N+1 backup device
CN105939254B (en) The method and device of VRRP backup group state switching
CN100484044C (en) Method for detecting operating state of default gateway and apparatus thereof
CN102143011B (en) Device and method for realizing network protection
WO2008035334A2 (en) Fault-tolerant medium access control (mac) address assignment in network elements
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
US7948983B2 (en) Method, computer program product, and apparatus for providing passive automated provisioning
CN115801642B (en) RDMA communication management module, method, equipment and medium based on state control
CN102055673A (en) Multi-route network and route switching method
CN101102231B (en) An automatic discovery method and device of PPP link routing device
CN103414591A (en) Method and system for fast converging when port failure is recovered
EP2953299B1 (en) Protection switching method, system and node
CN105871524B (en) A kind of method and system based on TIPC protocol realization two-node cluster hot backup

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.