CN101924686B - Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network - Google Patents

Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network Download PDF

Info

Publication number
CN101924686B
CN101924686B CN200910147917A CN200910147917A CN101924686B CN 101924686 B CN101924686 B CN 101924686B CN 200910147917 A CN200910147917 A CN 200910147917A CN 200910147917 A CN200910147917 A CN 200910147917A CN 101924686 B CN101924686 B CN 101924686B
Authority
CN
China
Prior art keywords
address
routers
layer
equipment
switch
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.)
Active
Application number
CN200910147917A
Other languages
Chinese (zh)
Other versions
CN101924686A (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.)
Changshu intellectual property operation center 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 CN200910147917A priority Critical patent/CN101924686B/en
Publication of CN101924686A publication Critical patent/CN101924686A/en
Application granted granted Critical
Publication of CN101924686B publication Critical patent/CN101924686B/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 embodiment of the invention discloses a method and a device for preventing virtual MAC entries from being deleted by mistake by equipment in a layer 2 switch suspended network, belonging to the technical field of communication. The method comprises the following steps: judging whether ARP entries corresponding to equipment in the layer 2 switch suspended network are marked with a VRRP router group identity; if so, judging whether the equipment is a master router in a VRRP router group corresponding to the VRRP router group identity; and if so, sending a unicast message, wherein the source MAC address of the unicast message is a virtual MAC address corresponding to the VRRP router group identity, and the destination MAC address thereof is the MAC address of the equipment in the layer 2 switch suspended network. In the invention, the unicast message the source MAC address of which is the virtual MAC address of the VRRP router group is sent to the layer 2 switch suspended network, thus preventing the virtual MAC address entries from being deleted by mistake by the equipment.

Description

A kind of method and apparatus that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch
Technical field
The present invention relates to communication technical field, relate in particular to the method and apparatus that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch.
Background technology
Three-layer equipment such as main frame or router is transmitted data message according to the IP address in the local area network (LAN); And three-layer equipment or two-layer equipment send, receive ethernet data frame according to MAC (Medium Access Control, medium access control) address.Said MAC Address is called physical address or hardware address again, is assigned in the Ethernet interface when being manufacturing equipment.IP address and MAC Address are separate, thereby, in the network of reality, need a kind of mechanism of address resolution to come mapping to be provided for these two kinds of different address forms.
Initiatively send ARP (the Address ResolutionProtocol of broadcast type in the network through three-layer equipment; Address resolution protocol) probe messages between the realization equipment mapping relations of IP address and MAC Address learns each other; Carry its IP address and MAC Address in the said ARP probe packet; And said three-layer equipment the IP address of the equipment that will survey, thereby receive the mapping relations of the learning equipment of said ARP probe packet to said three-layer equipment IP address and MAC Address; When said ARP probe packet the equipment that will survey when receiving said ARP probe packet, send the ARP back message using to said three-layer equipment, carry its own IP address and MAC Address at said ARP back message using, supply said three-layer equipment study.
MAC (Medium Access Control, medium access control) address can be divided into broadcasting MAC Address, multicast mac address and unicast mac address; When Layer 2 switch equipment receives that target MAC (Media Access Control) address is the message of broadcasting MAC Address or multicast mac address, can on the every other interface except that the message receiving interface, carry out broadcast replication and transmit; When receiving that target MAC (Media Access Control) address is the message of unicast mac address; Layer 2 switch equipment is then inquired about its built-in MAC earlier and is transmitted; Each list item during said MAC transmits has write down the corresponding relation of MAC Address and forwarding interface; Transmit through inquiring about said MAC, Layer 2 switch equipment obtains the pairing forwarding interface of said target MAC (Media Access Control) address, and said message is forwarded from said forwarding interface.
It not is to be changeless that said MAC transmits; When having main frame or router to exit network in the network; For preventing still occupying system resources of the pairing MAC address entries of its MAC Address; MAC address entries during Layer 2 switch equipment need be transmitted its MAC is regularly deleted, if do not receive in 5 minutes that generally speaking with MAC Address in the MAC address entries be the message that source MAC sends, Layer 2 switch equipment will be deleted said MAC address entries.
Generally speaking; Three-layer equipment can be encapsulated as the source MAC by the message of its forwarding the MAC Address of the interface of self transmitting said message; In addition; Said three-layer equipment also can regularly be broadcasted in network and sent ARP probe packet, and the source MAC of said ARP probe packet also is the MAC Address of self, so other two-layer equipments can be to the MAC address entries mistake deletion of said three-layer equipment in the network.
For improving the reliability of local area network (LAN) host access external network; IETF (Internet EngineeringTask Force; The internet engineering task group) released VRRP (Virtual Router RedundancyProtocol, Virtual Router Redundacy Protocol), as shown in Figure 1; VRRP constitutes jointly a VRRP groups of routers (in this figure, being router-A and router B) at least two routers; Said VRRP groups of routers is equivalent to a virtual router, in network, has unique sign, i.e. VRRP ID; Said VRRP groups of routers also has its own IP address and MAC Address, promptly empty IP and virtual MAC; Main frame in the local area network (LAN) communicates through whole VRRP groups of routers and other network according to said empty IP and virtual MAC.
At a time; Have only a router to bear message forwarding between the interior main frame of local area network (LAN) and other networks in the VRRP groups of routers; This router is called VRRP Master (the main VRRP router of using), and all the other are not born the professional router of message forwarding and are called VRRP Slave (subsequent use VRRP router).When VRRP Master breaks down; A certain VRRP Slave router can become new VRRP Master automatically and continue to accomplish message forwarding and transport service; Whole process is transparent fully to the user; Realized the uninterrupted communication between the interior main frame of local area network (LAN) and other external networks, thus continuity of keeping in communication and reliability.
VRRP Master can periodic broadcasting send gratuitous ARP packet, and the source MAC that said gratuitous ARP packet carries is said virtual MAC address, in order to the existence of this VRRP of other equipment groups of routers in the informing network.
Yet, because a large amount of broadcasting packets can increase the burden of network, reduce the performance of network, therefore in some application scenarios, may the forwarding of broadcasting packet be limited.As shown in Figure 2; For preventing under the Layer 2 switch B that the broadcasting packet in the suspended network passes through Layer 2 switch C and arrives under the Layer 2 switch A in the suspended network; And the broadcasting packet in the suspended network passes through Layer 2 switch C and arrives under the Layer 2 switch B in the suspended network under the Layer 2 switch A; The interface configuration that Layer 2 switch C and Layer 2 switch A are linked to each other with B is for forbidding sending broadcasting packet; But allow to receive broadcasting packet, thereby isolate between the following suspended network to Layer 2 switch A and Layer 2 switch B, alleviated the burden of network.
Because the configuration of Layer 2 switch C interface makes and can't pass through Layer 2 switch C by the gratuitous ARP packet that VRRP Master periodic broadcasting is sent, and arrives the following suspended network of Layer 2 switch C.Therefore in realizing process of the present invention, the inventor finds that in said process, have following problem: the equipment under the Layer 2 switch C in the suspended network can miss deletion to the virtual MAC list item.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch; Can be when the VRRP groups of routers exit network as yet, prevent the virtual MAC list item of said VRRP groups of routers to be missed deletion owing to layer 2-switched interface configuration causes under the Layer 2 switch equipment in the suspended network.For realizing above-mentioned purpose, the embodiment of the invention adopts following technical scheme:
The embodiment of the invention provides a kind of method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch, comprising:
The VRRP groups of routers sign of whether having judged under the Layer 2 switch in the ARP list item that equipment is corresponding in the suspended network mark;
If judge then whether this machine is the primary route device in the corresponding VRRP groups of routers of said VRRP groups of routers sign;
When this machine is the primary route device in the said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch.
The embodiment of the invention provides a kind of device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch, comprising:
First judge module, the VRRP groups of routers sign that whether has been used for judging in the corresponding ARP list item of suspended network equipment under the Layer 2 switch mark;
Second judge module is used for judging whether this machine is the primary route device of the corresponding VRRP groups of routers of said VRRP groups of routers sign;
Sending module; Be used for when second judge module judges that this machine is the primary route device of said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch.
The technical scheme that the embodiment of the invention provides; Send unicast message through suspended network equipment under Layer 2 switch; The source MAC of said unicast message is the virtual MAC address of VRRP groups of routers; Thereby the said VRRP groups of routers of said device learns is not exitted network yet, avoided mistake deletion said virtual MAC address list item.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 uses sketch map for the VRRP groups of routers that the embodiment of the invention provides;
Layer 2 switch and VRRP groups of routers mixed networking sketch map that Fig. 2 provides for the embodiment of the invention;
Fig. 3 prevents under the Layer 2 switch that for what the embodiment of the invention provided equipment is to the flow chart of the method for virtual MAC list item mistake deletion in the suspended network;
Fig. 4 prevents under the Layer 2 switch that for what the embodiment of the invention provided equipment is to the flow chart of the method for virtual MAC list item mistake deletion in the suspended network;
Fig. 5 prevents under the Layer 2 switch that for what the embodiment of the invention provided equipment is to the flow chart of the method for virtual MAC list item mistake deletion in the suspended network;
Fig. 6 a kind ofly prevents under the Layer 2 switch that equipment is to the structure chart of the device of virtual MAC list item mistake deletion in the suspended network for what the embodiment of the invention provided;
Fig. 7 a kind ofly prevents under the Layer 2 switch that equipment is to the structure chart of the device of virtual MAC list item mistake deletion in the suspended network for what the embodiment of the invention provided.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making all other embodiment that obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
A kind of method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch as shown in Figure 3, that the embodiment of the invention provided comprises:
301, the VRRP groups of routers sign of whether having judged under the Layer 2 switch in the ARP list item that equipment is corresponding in the suspended network mark;
If 302, judge then whether this machine is the primary route device in the corresponding VRRP groups of routers of said VRRP groups of routers sign;
303, when this machine is the primary route device in the said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch.
The embodiment of the invention provides prevents under the Layer 2 switch that equipment is to the method for virtual MAC list item mistake deletion in the suspended network; Send unicast message through suspended network equipment under Layer 2 switch; The source MAC of said unicast message is the virtual MAC address of VRRP groups of routers; Thereby the said VRRP groups of routers of said device learns is not exitted network yet, avoided mistake deletion said virtual MAC address list item.
In order more clearly to describe technical scheme of the present invention, will specifically describe the part embodiment of technical scheme of the present invention below, so that those skilled in the art can get final product embodiment of the present invention not making under the creative work prerequisite.
A kind of method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch as shown in Figure 4, that the embodiment of the invention provided may further comprise the steps:
401, receive the address resolution protocol probe messages that suspended network equipment sends under the Layer 2 switch, said address resolution protocol probe messages content comprises: sender IP address and source MAC;
Whether what 402, judge that said address resolution protocol probe messages surveys is the virtual IP address of this VRRP groups of routers;
403, when said address resolution protocol probe messages survey be the virtual IP address of this VRRP groups of routers the time, obtain sender IP address, source MAC and the said virtual IP address of said address resolution protocol probe messages;
404, said virtual IP address is corresponding VRRP ID adds the sender IP address corresponding address analytic protocol table entry of this address resolution protocol probe messages to;
The VRRP ID that in the pairing address analysis protocol table item in said sender IP address, adds in embodiments of the present invention for said virtual IP address correspondence; In other embodiment of the present invention; Can add other signs that can uniquely confirm the VRRP groups of routers of said virtual IP address correspondence, the present invention does not limit this yet.
405, broadcast according to said address analysis protocol table item suspended network tables of equipment under Layer 2 switch and send ARP probe packet;
Suspended network tables of equipment under Layer 2 switch broadcast send ARP probe packet before; At first to judge in said IP address of equipment corresponding address analytic protocol table entry and whether be added with VRRP ID; Send ARP probe packet if no, then said equipment is not carried out clean culture;
If have, then obtain said VRRP ID, and judge further whether current machine is the main VRRP router of using, if not, then said equipment is not carried out clean culture and send ARP probe packet;
If, then carrying out clean culture and send ARP probe packet to said equipment, the target MAC (Media Access Control) address of said ARP probe packet is the MAC Address of said equipment, source MAC is the pairing virtual MAC of the VRRP ID address of adding in the said address analysis protocol table item.
The embodiment of the invention is broadcast through tables of equipment in the suspended network under Layer 2 switch and is sent ARP probe packet; The target MAC (Media Access Control) address of said ARP probe packet is the MAC Address of said equipment; Source MAC is the pairing virtual MAC of the empty IP address that said equipment was once surveyed; Because said ARP probe packet is a unicast message; Therefore can arrive said equipment through said Layer 2 switch, thereby the mistake deletion to said virtual MAC address list item has been avoided in the existence of VRRP groups of routers that made said device learns.
As shown in Figure 5, the embodiment of the invention provides a kind of method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch, comprising:
501, receive the address resolution protocol probe messages that suspended network equipment sends under the Layer 2 switch, said address resolution protocol probe messages content comprises: sender IP address, source MAC;
Whether what 502, judge that said address resolution protocol probe messages surveys is the virtual IP address of this VRRP groups of routers;
503, when said address resolution protocol probe messages survey be the virtual IP address of this VRRP groups of routers the time, obtain sender IP address, source MAC and the said virtual IP address of said address resolution protocol probe messages;
504, said virtual IP address is corresponding VRRP ID adds the sender IP address corresponding address analytic protocol table entry of this address resolution protocol probe messages to;
The VRRP ID that in the pairing address analysis protocol table item in said sender IP address, adds in embodiments of the present invention for said virtual IP address correspondence; In other embodiment of the present invention; Can add other signs that can uniquely confirm the VRRP groups of routers of said virtual IP address correspondence, the present invention does not limit this yet.
505, according to said address analysis protocol table item suspended network device forwards data message under Layer 2 switch, the source MAC of said data message is the pairing virtual MAC of said VRRP ID address;
Said data message is a unicast message, and target MAC (Media Access Control) address is the source MAC of said address resolution protocol probe messages; Receive after the said data message; At first to judge in the corresponding said address analysis protocol table item of said equipment and whether be added with VRRP ID; If do not have; Then transmit said data message, this moment, the source MAC of said data message was the pairing MAC Address of physical interface of transmitting said data message, but not the virtual MAC address of said groups of routers;
If have; Then obtain said VRRP ID; And judge further whether current machine is the main VRRP router of using, if not, then transmit said data message; This moment, the source MAC of said data message was the pairing MAC Address of physical interface of transmitting said data message, but not the virtual MAC address of said groups of routers;
If then transmitting said source MAC is the data message of the pairing virtual MAC of said VRRP ID address, its concrete steps can comprise:
In said address analysis protocol table item, obtain the pairing VRRP groups of routers in said data message purpose IP address;
The pairing virtual MAC of said VRRP groups of routers address is encapsulated as the source MAC of said data message;
Transmit the data message after encapsulating.
The embodiment of the invention through suspended network under Layer 2 switch in the device forwards source MAC be the data message of the pairing virtual MAC of said VRRP ID address; Because said data message is a unicast message; Therefore can arrive said equipment through said Layer 2 switch; Thereby the mistake deletion to said virtual MAC address list item has been avoided in the existence of VRRP groups of routers that made said device learns.
In other embodiment of the present invention; Also can comprehensively use the above embodiment of the present invention, can be according to condition, through being configured in different scene or implementing above-mentioned a certain embodiment respectively in the moment; Perhaps also can implement the foregoing description simultaneously; Preventing under the Layer 2 switch in the suspended network equipment more reliably to the deletion of virtual MAC list item mistake, this for those skilled in the art can according to content provided by the invention the embodiment that can expect easily, ought to be within protection scope of the present invention.
As shown in Figure 6, the embodiment of the invention provides a kind of device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch, comprising:
First judge module 601, the VRRP groups of routers sign that whether has been used for judging in the corresponding ARP list item of suspended network equipment under the Layer 2 switch mark;
Second judge module 602 is used for judging whether this machine is the primary route device of the corresponding VRRP groups of routers of said VRRP groups of routers sign;
Sending module 603; Be used for when second judge module 602 judges that this machine is the primary route device of said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch.
The embodiment of the invention provides prevents under the Layer 2 switch that equipment is to the device of virtual MAC list item mistake deletion in the suspended network; Send unicast message through suspended network equipment under Layer 2 switch; The source MAC of said unicast message is the virtual MAC address of VRRP groups of routers; Thereby the said VRRP groups of routers of said device learns is not exitted network yet, avoided mistake deletion said virtual MAC address list item.
Still a kind of device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch as shown in Figure 6, that the embodiment of the invention provides also comprises:
First receiver module 604; Be used for receiving the first address resolution protocol probe messages that suspended network equipment sends under the Layer 2 switch; This first address resolution protocol probe messages content comprises: the virtual IP address of sender IP address, source MAC and said VRRP groups of routers, wherein said source MAC are exactly the MAC Address of equipment in the suspended network under the said Layer 2 switch;
Mark module 605 is used for the VRRP groups of routers sign that the said virtual IP address of mark is corresponding in the corresponding ARP list item of under said Layer 2 switch suspended network equipment.
The embodiment of the invention is through adding VRRP groups of routers sign in the source IP address corresponding address analytic protocol table entry of address resolution protocol probe messages; Thereby when sending unicast message; Can be according to the IP address of suspended network equipment under the Layer 2 switch; Inquire said VRRP groups of routers sign, the virtual MAC address of the VRRP groups of routers that said VRRP groups of routers sign is corresponding is encapsulated as the source MAC of said unicast message, sends to said equipment; Thereby the said VRRP groups of routers of said device learns is not exitted network yet, avoided mistake deletion said virtual MAC address list item.
As shown in Figure 7; A kind of device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch that the embodiment of the invention provides; Except that comprising first judge module 601, second judge module 602, sending module 603, first receiver module 604 and mark module 605, also comprise:
Second receiver module 706 is used to receive the data message that will transmit, and the purpose IP address of said data message is the sender IP address of the said first address resolution protocol probe messages;
In embodiments of the present invention, said sending module 603 specifically comprises:
Acquiring unit is used for obtaining the pairing VRRP groups of routers sign in said data message purpose IP address at said address analysis protocol table item;
Transmitting element is used for the corresponding virtual MAC address of said VRRP groups of routers sign is encapsulated as the source MAC of said data message, and transmits the said data message after the encapsulation.
The embodiment of the invention provides prevents under the Layer 2 switch that equipment is to the device of virtual MAC list item mistake deletion in the suspended network; Through device forwards source MAC in the suspended network under Layer 2 switch is the data message of the virtual MAC of said VRRP groups of routers; Because said data message is a unicast message; Therefore can arrive said equipment through said Layer 2 switch, thereby the mistake deletion to said virtual MAC address list item has been avoided in the existence of VRRP groups of routers that made said device learns.
The embodiment of the invention provides a kind of equipment that prevents under the Layer 2 switch in the suspended network to the device of virtual MAC list item mistake deletion again, comprises first judge module 601, second judge module 602, sending module 603, first receiver module 604 and mark module 605; Wherein, sending module specifically comprises:
Acquiring unit is used for obtaining the corresponding VRRP groups of routers sign of said virtual IP address at said address analysis protocol table item;
Transmitting element; Be used to send said unicast message; Said unicast message is the second address resolution protocol probe messages, and source MAC is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the source MAC of the said first address resolution protocol probe messages.
The embodiment of the invention provides prevents under the Layer 2 switch that equipment is to the device of virtual MAC list item mistake deletion in the suspended network; Broadcast through tables of equipment in the suspended network under Layer 2 switch and to send ARP probe packet; The target MAC (Media Access Control) address of said ARP probe packet is the MAC Address of said equipment; Source MAC is the virtual MAC address of the VRRP groups of routers once surveyed of said equipment, because said ARP probe packet is a unicast message, therefore can arrive said equipment through said Layer 2 switch; Thereby the mistake deletion to said virtual MAC address list item has been avoided in the existence of VRRP groups of routers that made said device learns.
The embodiment of the invention provides a kind of router; Said router can comprise provides any one to prevent the device that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch in the embodiment of the invention; Thereby make said router suspended network equipment under Layer 2 switch send unicast message; The source MAC of said unicast message is the virtual MAC address of VRRP groups of routers; Thereby the said VRRP groups of routers of said device learns is not exitted network yet, avoided mistake deletion said virtual MAC address list item.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer-readable recording medium, like ROM/RAM, magnetic disc or CD etc.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technical staff who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection range with claim.

Claims (7)

1. a method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch is characterized in that, comprising:
The VRRP groups of routers sign of whether having judged under the Layer 2 switch in the ARP list item that equipment is corresponding in the suspended network mark;
If judge then whether this machine is the primary route device in the corresponding VRRP groups of routers of said VRRP groups of routers sign;
When this machine is the primary route device in the said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch;
Also comprise before the said step of VRRP groups of routers sign of whether having judged under the Layer 2 switch in the ARP list item that equipment is corresponding in the suspended network mark:
Receive the first address resolution protocol probe messages that equipment sends in the suspended network under the Layer 2 switch; This first address resolution protocol probe messages content comprises: the virtual IP address of sender IP address, source MAC and said VRRP groups of routers, wherein said source MAC are exactly the MAC Address of equipment in the suspended network under the said Layer 2 switch;
The VRRP groups of routers sign that the said virtual IP address of mark is corresponding in the ARP list item that equipment is corresponding in the suspended network under said Layer 2 switch.
2. according to the said method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch of claim 1; It is characterized in that, also comprise before the said step of VRRP groups of routers sign of whether having judged under the Layer 2 switch in the ARP list item that equipment is corresponding in the suspended network mark:
The data message that reception will be transmitted, the purpose IP address of said data message are the sender IP address of the said first address resolution protocol probe messages;
The step of said transmission unicast message comprises:
In said address analysis protocol table item, obtain the pairing VRRP groups of routers sign of said data message purpose I P address;
The corresponding virtual MAC address of said VRRP groups of routers sign is encapsulated as the source MAC of said data message, and transmits the said data message after the encapsulation.
3. according to the said method that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch of claim 1, it is characterized in that the step of said transmission unicast message comprises:
In said address analysis protocol table item, obtain the corresponding VRRP groups of routers sign of said virtual IP address;
Send said unicast message, said unicast message is the second address resolution protocol probe messages, and source MAC is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the source MAC of the said first address resolution protocol probe messages.
4. a device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch is characterized in that, comprising:
First judge module, the VRRP groups of routers sign that whether has been used for judging in the corresponding ARP list item of suspended network equipment under the Layer 2 switch mark;
Second judge module is used for judging whether this machine is the primary route device of the corresponding VRRP groups of routers of said VRRP groups of routers sign;
Sending module; Be used for when second judge module judges that this machine is the primary route device of said VRRP groups of routers; Send unicast message; The source MAC of said unicast message is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the MAC Address of equipment in the suspended network under the said Layer 2 switch;
First receiver module; Be used for receiving the first address resolution protocol probe messages that suspended network equipment sends under the Layer 2 switch; This first address resolution protocol probe messages content comprises: the virtual IP address of sender IP address, source MAC and said VRRP groups of routers, wherein said source MAC are exactly the MAC Address of equipment in the suspended network under the said Layer 2 switch;
Mark module is used for the VRRP groups of routers sign that the said virtual IP address of mark is corresponding in the corresponding ARP list item of under said Layer 2 switch suspended network equipment.
5. the device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch according to claim 4 is characterized in that, also comprises:
Second receiver module is used to receive the data message that will transmit, and the purpose IP address of said data message is the sender IP address of the said first address resolution protocol probe messages;
Said sending module specifically comprises:
Acquiring unit is used for obtaining the pairing VRRP groups of routers sign in said data message purpose IP address at said address analysis protocol table item;
Transmitting element is used for the corresponding virtual MAC address of said VRRP groups of routers sign is encapsulated as the source MAC of said data message, and transmits the said data message after the encapsulation.
6. the device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch according to claim 4 is characterized in that said sending module specifically comprises:
Acquiring unit is used for obtaining the corresponding VRRP groups of routers sign of said virtual IP address at said address analysis protocol table item;
Transmitting element; Be used to send said unicast message; Said unicast message is the second address resolution protocol probe messages, and source MAC is that said VRRP groups of routers identifies pairing virtual MAC address, and target MAC (Media Access Control) address is the source MAC of the said first address resolution protocol probe messages.
7. a router is characterized in that, said router comprises like any described device that prevents that equipment is deleted virtual MAC list item mistake in the suspended network under the Layer 2 switch of claim 4 to 6.
CN200910147917A 2009-06-10 2009-06-10 Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network Active CN101924686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910147917A CN101924686B (en) 2009-06-10 2009-06-10 Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910147917A CN101924686B (en) 2009-06-10 2009-06-10 Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network

Publications (2)

Publication Number Publication Date
CN101924686A CN101924686A (en) 2010-12-22
CN101924686B true CN101924686B (en) 2012-10-17

Family

ID=43339345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910147917A Active CN101924686B (en) 2009-06-10 2009-06-10 Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network

Country Status (1)

Country Link
CN (1) CN101924686B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716245B (en) * 2012-09-29 2017-02-08 上海贝尔股份有限公司 Edge router based on virtual special-purpose local area network
CN105281952A (en) * 2015-10-14 2016-01-27 浪潮电子信息产业股份有限公司 Method for preventing deleting management node system by mistake in Linux system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536831A (en) * 2003-04-03 2004-10-13 华为技术有限公司 Method for sending address analytic protocol request message into specific object in local area network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1536831A (en) * 2003-04-03 2004-10-13 华为技术有限公司 Method for sending address analytic protocol request message into specific object in local area network

Also Published As

Publication number Publication date
CN101924686A (en) 2010-12-22

Similar Documents

Publication Publication Date Title
CN102859973B (en) Method, apparatus and system for address resolution
US8848609B2 (en) Forwarding internet protocol version 6 link-local multicast to support roaming of wireless mobile client devices
KR100503690B1 (en) Mobile communication system, Mobile communication method, Radio base station, Mobile system and, Computer readable recording medium
US8189582B2 (en) Multicast supported virtual local area network switching system and method thereof
CN102415065A (en) Redundant host connection in a routed network
CN102820977B (en) Method of multicasting, device and the network equipment
CN101257447A (en) Method, system and routing apparatus of load sharing
KR101694223B1 (en) Method, routing bridge, and system for sending packet
US9247417B2 (en) Encapsulating received multicast traffic in unicast IP packets to support distribution of multicast traffic through a mesh network
CN102694714B (en) Method, device, system and a non-forwarder non-forwarding bridge for message transmission in TRILL network
US9247397B2 (en) Distribution of multicast traffic through a mesh network
US20160036770A1 (en) Method to control dynamic host configuration protocol pool exhaustion in dynamic network environments
CN104348717A (en) Message forwarding method and device
CN101808004A (en) Method and system for realizing Anycast-RP mechanism
US9602227B2 (en) Distribution of broadcast traffic through a mesh network
CN102281165A (en) Fault detection method based on QoS, system and apparatus thereof
CN109450791A (en) The method and system of the host intercommunication of the host and main website side of remote station side
CN102333024A (en) Forwarding method, equipment and system for data frame of virtual private local area network service (VPLS)
CN101621467B (en) Method, device and system for realizing multicast VSI
CN103780494B (en) A kind of user information acquiring method and device
CN105791048A (en) Loopback detection method and device and network equipment containing the device
CN101924698B (en) Method, system and equipment for balancing two-layer domain load based on IP unicast route
CN101924686B (en) Method and device for preventing virtual MAC entries from being deleted by mistake by equipment in layer 2 switch suspended network
JP2006222659A (en) Radio communication device, system and method
CN107547347B (en) VNI-based path adjustment method and device

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
TR01 Transfer of patent right

Effective date of registration: 20201109

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 headquarters building of Bantian HUAWEI base, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

Effective date of registration: 20201109

Address after: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

TR01 Transfer of patent right
CP02 Change in the address of a patent holder

Address after: 215500 5th floor, building 4, 68 Lianfeng Road, Changfu street, Changshu City, Suzhou City, Jiangsu Province

Patentee after: Changshu intellectual property operation center Co.,Ltd.

Address before: 215500 No.13, Caotang Road, Changshu, Suzhou, Jiangsu Province

Patentee before: Changshu intellectual property operation center Co.,Ltd.

CP02 Change in the address of a patent holder