CN106210164B - A kind of IP address conflict processing method and processing device - Google Patents

A kind of IP address conflict processing method and processing device Download PDF

Info

Publication number
CN106210164B
CN106210164B CN201610512667.9A CN201610512667A CN106210164B CN 106210164 B CN106210164 B CN 106210164B CN 201610512667 A CN201610512667 A CN 201610512667A CN 106210164 B CN106210164 B CN 106210164B
Authority
CN
China
Prior art keywords
address
arp
gateway
vxlan
under
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
CN201610512667.9A
Other languages
Chinese (zh)
Other versions
CN106210164A (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
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610512667.9A priority Critical patent/CN106210164B/en
Publication of CN106210164A publication Critical patent/CN106210164A/en
Application granted granted Critical
Publication of CN106210164B publication Critical patent/CN106210164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of IP address conflict processing method and processing device, the described method includes: the MAC Address in ARP entry corresponding with the first VM in local ARP entry to be updated to the MAC Address of the 2nd VM when determining two VM for existing and there is identical IP address with the first virtual machine VM under this VXLAN IP gateway;Notice message is sent to the first VM, the notice message is used to that the first VM to be notified to there is the 2nd VM for having identical IP address with the first VM;Wherein, the MAC Address of the 2nd VM is carried in the notice message.It can enable the generation of VM timely learning IP address conflict using the embodiment of the present invention, and the VM that IP address conflict occurs is accurately positioned.

Description

A kind of IP address conflict processing method and processing device
Technical field
The present invention relates to network communication technology field more particularly to a kind of IP address conflict processing method and processing devices.
Background technique
At distributed VXLAN (Virtual eXtensible Local Area Network, virtual expansible local area network) In IP (Internet Protocol, Internet protocol) gateway networking plan, every VTEP (VXLAN Tunneling End Point, VXLAN tunneling termination) equipment all can serve as VXLAN IP gateway, three layers of forwarding are carried out to the flow of site-local, The pressure of gateway is alleviated well.
In distributed VXLAN IP gateway networking, on all distributed VXLAN IP gateways (hereinafter referred to as GW) all It needs to create VSI (Virtual Switch Interface, virtual switch interface) virtual interface, and is identical on different GW VSI virtual interface configures identical IP address and MAC Address, the gateway address as virtual machine in VXLAN.In addition, also being needed on GW Open local ARP (Address Resolution Protocol, address resolution protocol) agent functionality.
By taking the virtual machine communication under difference GW in same VXLAN as an example, as VM (Virtual Machine, virtual machine) 1 is visited Ask VM2 (VM1 and VM2 are the virtual machine in same VXLAN under difference GW), process is as follows:
VM1 sends ARP request message, obtains the MAC Address of VM2, the ARP that the VM1 that GW (being assumed to be GW1) is received is sent When request message, on the one hand learn the ARP information of VM1, and carry out the ARP request message for answering, thus what VM1 learnt The MAC Address of VM2 is the MAC Address that the VSI virtual interface (being assumed to be VSI virtual interface 10) of VM1 is connected on GW1.
On the other hand, GW1 by ARP request message transmitting terminal IP address and transmitting terminal MAC Address be revised as VSI virtual connection The other GW (assuming that the GW that VM2 is connected is GW2) being forwarded in VXLAN after the IP address and MAC Address of mouth 10, and pass through EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) agreement will be according to the ARP information learnt The ARP entry of generation is synchronized to other GW.
It after GW2 receives the ARP request message, is broadcasted in local VXLAN 10, while passing through EVPN agreement Learn the ARP information to VM1;After VM2 receives ARP request message, the ARP information of GW is arrived in study, and sends ARP to GW2 and answer Answer message;GW2 learns the ARP information of VM2 according to the arp reply message of VM2, and by the corresponding ARP entry of the ARP information of VM2 By EVPN protocol synchronization to GW1, thus ARP information of the GW1 study to VM2.
After the study for completing ARP information by above-mentioned process, the message of VM1 to VM2 is believed according to the ARP learnt Breath is forwarded: being sent to GW1 first;After GW1 carries out VXLAN encapsulation to it, GW2 is sent it to;It, will after GW2 decapsulation It is sent to VM2.
However practice discovery, since in existing distribution VXLAN IP gateway networking, the ARP message of virtual machine is redirected GW is arrived, therefore, when different VM use identical IP address, VM can not be perceived, and then it is different to may cause the business on virtual machine Often.
Summary of the invention
The present invention provides a kind of IP address conflict processing method and processing device, to solve existing distribution VXLAN IP gateway group In net, when different VM use identical IP address, the problem of VM can not perceive IP address conflict.
According to a first aspect of the embodiments of the present invention, a kind of IP address conflict processing method is provided, is applied to distributed empty Intend the VXLAN IP gateway in expansible local area network VXLAN Internet protocol IP gateway networking, the VXLAN IP gateway is enabled In Address Resolution Protocol ARP agency or ARP generation, are answered, this method comprises:
When determining two VM for existing and there is identical IP address with the first virtual machine VM under this VXLAN IP gateway, it incite somebody to action this MAC Address in ground ARP entry in ARP entry corresponding with the first VM is updated to the MAC Address of the 2nd VM;
Notice message is sent to the first VM, the notice message is for notifying the first VM to exist and described first VM has the 2nd VM of identical IP address;Wherein, the MAC Address of the 2nd VM is carried in the notice message.
According to a second aspect of the embodiments of the present invention, a kind of IP address conflict processing unit is provided, is applied to distributed empty Intend the VXLAN IP gateway in expansible local area network VXLAN Internet protocol IP gateway networking, the VXLAN IP gateway is enabled In Address Resolution Protocol ARP agency or ARP generation, are answered, which includes:
Determination unit, being used to determine whether to exist has identical IP address with the first virtual machine VM under this VXLAN IP gateway The 2nd VM;
Updating unit, for determining to exist that there is identical IP with the first VM under this VXLAN IP gateway when the determination unit When two VM of address, the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated to described The MAC Address of 2nd VM;
Transmission unit, for having when the determination unit determines to exist with the first virtual machine VM under this VXLAN IP gateway When two VM of identical IP address, the first VM of Xiang Suoshu sends notice message, and the notice message is for notifying the first VM In the presence of the 2nd VM with the first VM with identical IP address;Wherein, carry the 2nd VM's in the notice message MAC Address.
Using the embodiment of the present invention, by determining exist and the specific identical IP of the first VM under this VXLAN IP gateway When two VM of location, the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated to the MAC of the 2nd VM Address, and the notice message for carrying the MAC Address of the 2nd VM is sent to the first VM, notify the first VM to exist has with the first VM 2nd VM of identical IP address, enables the generation of VM timely learning IP address conflict, and to occur the VM of IP address conflict into Row is accurately positioned.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of IP address conflict processing method provided in an embodiment of the present invention;
Fig. 2A is the structural schematic diagram of the application scenarios of IP address conflict under a kind of same gateway provided in an embodiment of the present invention;
Fig. 2 B is the structural representation of the application scenarios of IP address conflict under a kind of different gateways provided in an embodiment of the present invention Figure;
Fig. 3 is a kind of structural schematic diagram of IP address conflict processing unit provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another IP address conflict processing unit provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another IP address conflict processing unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another IP address conflict processing unit provided in an embodiment of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present invention Case is described in further detail.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of IP address conflict processing method provided in an embodiment of the present invention, Wherein, which can be applied to the VXLAN IP gateway in distributed VXLAN IP gateway networking, the VXLAN IP gateway enables ARP proxy or ARP generation is answered, as shown in Figure 1, the IP address conflict processing method may comprise steps of:
It should be noted that in embodiments of the present invention, step 101~step 102 executing subject can be distribution The processor of any gateway or gateway in VXLAN IP gateway networking, such as CPU (Center Process Unit, central processing Unit), for ease of description, being illustrated so that step 101~step 102 executing subject is the first gateway as an example below.Wherein, First gateway is any gateway in distribution VXLAN IP gateway networking.
Step 101, when determine exist with the first VM under this VXLAN IP gateway have identical IP address two VM when, will MAC Address in local ARP entry in ARP entry corresponding with the first VM is updated to the MAC Address of the 2nd VM.
In the embodiment of the present invention, the first VM is simultaneously not specific to a certain fixed VM, but may refer to the first gateway and learnt to arrive The VM of any VXLAN IP gateway of ARP information;Similarly, the 2nd VM also and is not specific to a certain fixed VM, but may refer to Any VM except first VM.
In the embodiment of the present invention, when the first gateway determines to exist have identical IP with the first VM under this VXLAN IP gateway When two VM of address, i.e. the first gateway determines that the first gateway can first according to the IP of the 2nd VM there are when IP address conflict Location and MAC Address update ARP entry corresponding with the first VM in local ARP table, i.e., will be corresponding with the first VM in local ARP table MAC Address in ARP entry be updated to the 2nd VM MAC Address (due to the first VM and the 2nd VM IP address having the same, because This, IP address haves no need to change).
As an alternative embodiment, in embodiments of the present invention, determines and exist and under this VXLAN IP gateway the One VM has the 2nd VM of identical IP address, may include:
When the ARP message for receiving the 2nd VM, and the source IP address for determining the ARP message and the first VM in local ARP table The IP address of corresponding ARP entry is identical, the MAC Address of source MAC ARP entry corresponding with the first VM in local ARP table When different, the 2nd VM for existing and there is identical IP address with the first VM under this VXLAN IP gateway is determined;Wherein, the first VM and Two VM are the VM under same VXLAN IP gateway.
In this embodiment, if the first VM and the 2nd VM are the VM under the first gateway, when the first gateway receives When ARP message (gratuitous ARP packet or the ARP request message) that the 2nd VM is sent, the first gateway can learn the ARP letter of the 2nd VM Breath, and local ARP table is inquired according to the ARP information of the 2nd VM, if exist in local ARP table it is identical as the IP address of the 2nd VM, The different ARP entry of MAC Address (i.e. the corresponding ARP entry of the first VM), then the first gateway, which can determine, exists and this VXLAN The first VM has the 2nd VM of identical IP address under IP gateway, that is, IP address conflict has occurred.
As another optional embodiment, in embodiments of the present invention, determine exist under this VXLAN IP gateway First VM has the 2nd VM of identical IP address, may include:
When receiving the synchronous ARP entry of distal end VXLAN IP gateway, and the IP address in the ARP entry and local ARP The IP address of the corresponding ARP entry of the first VM is identical in table, and the MAC Address of MAC Address ARP entry corresponding from the first VM is different When, determine the 2nd VM for existing and there is identical IP address with the first VM under this VXLAN IP gateway;Wherein, the first VM and the 2nd VM For the VM under different VXLAN IP gateways.
In this embodiment, if the first VM and the 2nd VM are VM under different VXLAN IP gateways (assuming that the 2nd VM is VM under second gateway), then when the first gateway, which receives the second gateway, passes through the ARP entry of EVPN protocol synchronization, Ke Yigen Local ARP table is inquired according to the ARP entry, if existing and the IP address phase in the ARP entry of the second gateway synchronization in local ARP table Together, the different ARP entry of MAC Address, it is determined that there is that there is identical IP address with the first VM under this VXLAN IP gateway Two VM, that is, have occurred IP address conflict;Wherein, the ARP entry to come in the local ARP table of the first gateway with the second gateway synchronization IP address it is identical, the different ARP entry of MAC Address is the corresponding ARP entry of the first VM, what which came ARP entry IP address corresponding with the first VM is identical, and the different ARP entry of MAC Address is the corresponding ARP entry of the 2nd VM.
Further, in embodiments of the present invention, when the first VM and the 2nd VM is the VM under same VXLAN IP gateway, After the MAC Address in ARP entry corresponding with the first VM in local ARP entry is then updated to the MAC Address of the 2nd VM, the Updated ARP entry can also be synchronized to distal end VXLAN IP gateway by one gateway, so that distal end VXLAN IP gateway incite somebody to action this MAC Address in ground ARP table in ARP entry identical with the IP address in the updated ARP entry be updated to it is described more The MAC Address in ARP entry after new.
In embodiments of the present invention, by updating the first VM in local ARP table according to the IP address and MAC Address of the 2nd VM Corresponding ARP entry can effectively be compatible with the normal use after IP address reassigns.For example, the first VM address aging or Situations such as the first VM of person shuts down, and in the case that the first gateway is known not in time, when the 2nd VM application has arrived original first VM's When IP address, the 2nd VM be can work normally.
Step 102 sends notice message to the first VM, which has for notifying the first VM to exist with the first VM 2nd VM of identical IP address;Wherein, the MAC Address of the 2nd VM is carried in the notice message.
In the embodiment of the present invention, when the first gateway determine exist with the first VM under this VXLAN IP gateway with identical IP 2nd VM of location, that is, when IP address conflict has occurred, the first gateway can send the MAC Address for carrying the 2nd VM to the first VM Notice message, which is used to that the first VM to be notified to there is the 2nd VM for having identical IP address with the first VM, thus the One VM, which can be known, has occurred IP address conflict, and can know IP address conflict, Jin Er has occurred with which VM in itself One VM can be alerted to administrator, to prompt IP address conflict (such as the first VM has occurred with which VM in administrator itself IP address conflict has occurred with the 2nd VM), corresponding treatment measures are taken by administrator, such as reconfigure IP address.
Preferably, in embodiments of the present invention, the notice message that the first gateway is sent to the first VM can be gratuitous ARP report Text, the source MAC of the gratuitous ARP packet are the MAC Address of the 2nd VM, and source IP address is the IP address of the 2nd VM, destination IP Address is the IP address of the first VM (source IP address is identical with purpose IP address).
It is worth noting that in embodiments of the present invention, the first gateway, which determines, to be existed and under this VXLAN IP gateway first When VM has two VM of identical IP address, the first gateway will be in ARP entry corresponding with the first VM in local ARP entry MAC Address is updated to the MAC Address of the 2nd VM, and sends notice message to the first VM, and the first VM is notified to exist and the first VM For the 2nd VM with identical IP address therebetween and there is no inevitable sequential relationship, i.e. the first gateway can be according to above-mentioned figure First the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated described in method flow shown in 1 For the MAC Address of the 2nd VM, after to the first VM send notice message, notifying the first VM to exist has identical IP address with the first VM The 2nd VM;Alternatively, the first gateway first can send notice message to the first VM, notifying the first VM to exist has phase with the first VM With the 2nd VM of IP address, after the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated to second The MAC Address of VM, this will not be repeated here for the specific implementation embodiment of the present invention.
Further, in embodiments of the present invention, identical in the presence of having with the first VM under this VXLAN IP gateway when determining Two VM when, alarming processing can also be carried out, there are IP address conflicts to prompt user.
Specifically, in embodiments of the present invention, having when the first gateway determines to exist with the first VM under this VXLAN IP gateway When having two VM of identical IP address, the first gateway can carry out alarming processing, and to prompt user (such as administrator), there are IP Location conflict.
For example, the first gateway can inform administrator by way of sending log or alarm information, there are IP address punchings It is prominent.
Further, in embodiments of the present invention, when the notice message that the first gateway is sent to the first VM is gratuitous ARP report Wen Shi, it is contemplated that when the first VM receives the ARP message, ARP message can be responded, the first gateway receives the first VM response When ARP message, ARP entry (the i.e. corresponding ARP table of IP address of the first VM or the 2nd VM of corresponding IP address can be updated again ), the first gateway can send the gratuitous ARP packet for carrying the MAC Address of the first VM to the 2nd VM again at this time, notify the 2nd VM In the presence of the first VM with the 2nd VM with identical IP address, in turn, the 2nd VM can respond ARP message, and then the first gateway is again Repetition updates corresponding ARP entry ..., and then causes to generate a large amount of log and ARP message, causes system resource waste.Cause This, in order to avoid above situation generation, in embodiments of the present invention, if notice message is MAC that source MAC is the 2nd VM Location, source IP address are the IP address of the 2nd VM, and purpose IP address is the gratuitous ARP packet of the IP address of the first VM, then work as determination When in the presence of two VM with the first VM under this VXLAN IP gateway with identical IP address, can also include:
Start preset timer, and before preset timer time-out, refuses the ARP message responded to the first VM received It is handled.
Specifically, in embodiments of the present invention, having when the first gateway determines to exist with the first VM under this VXLAN IP gateway When having two VM of identical IP address, the first gateway in addition to can according to the method described above described in process the step of handled Except, a preset timer (the overtime duration of the preset timer can be set according to concrete scene) can also be started, Before preset timer time-out, if the first gateway receives the ARP message that the first VM is responded, (the first VM receives the first gateway hair The ARP message responded after the above-mentioned gratuitous ARP packet sent) when, the first gateway can be refused to handle the ARP message, such as The ARP information for not including further according to the ARP message updates the relevant entries in local ARP table, also no longer exempts to the 2nd VM transmission Take ARP message, to guarantee before preset timer time-out, identical IP address conflict will not be reprocessed, and save system System resource.
As it can be seen that in method flow shown in Fig. 1, by determining to exist have with the first VM under this VXLAN IP gateway When two VM of the identical IP address of body, the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated to The MAC Address of 2nd VM, and the notice message for carrying the MAC Address of the 2nd VM is sent to the first VM, notify the first VM to exist There is the 2nd VM of identical IP address with the first VM, enable the generation of VM timely learning IP address conflict, and to IP occurs The VM of location conflict is accurately positioned.
In order to more fully understand those skilled in the art, the present invention implements the technical solution provided, below with reference to specifically answering It is described with scene technical solution provided in an embodiment of the present invention.
Fig. 2A is referred to, is the structure of the application scenarios of IP address conflict under a kind of same gateway provided in an embodiment of the present invention Schematic diagram, as shown in Figure 2 A, in the application scenarios, GW1 and GW2 enable ARP proxy function, VM2 and VM3 tool under GW2 There is identical IP address (1.1.1.3), be based on the application scenarios, IP address conflict process flow is as follows:
1, gratuitous ARP packet or ARP request message (source IP address 1.1.1.3) are sent when VM3 is online;
2, since GW2 enables ARP proxy function, GW2 receive VM3 transmission ARP message when, no matter purpose IP address whether the IP address for being GW2, can be by the ARP messages transmitted to CPU.It, can be according to this when GW2 handles the ARP message ARP message inquires ARP table, finds to exist in local ARP table identical as IP address (1.1.1.3) of VM3, and MAC Address is VM2's The ARP entry of MAC Address, then GW2 can update the ARP entry (with being updated to the MAC of VM3 by the MAC Address of the ARP entry Location), and use the MAC Address of GW2 as the source MAC of arp reply message, carry out arp reply;
3, GW2 to port where VM2 send gratuitous ARP packet (source MAC is the MAC Address of VM3, source IP address and Purpose IP address is 1.1.1.3), for informing that its IP address of VM2 conflicts with VM3;
4, there are IP address conflicts by GW2 transmission log informing administrator;
5, the ARP entry of VM3 is synchronized to other gateways (such as GW1) using EVPN agreement, so that GW1 updates local ARP Related ARP entry in table.
Fig. 2 B is referred to, is the knot of the application scenarios of IP address conflict under a kind of different gateways provided in an embodiment of the present invention Structure schematic diagram, as shown in Figure 2 B, in the application scenarios, GW1 and GW2 enable ARP proxy function, VM1 and GW2 under GW1 Under VM3 IP address having the same (1.1.1.3), be based on the application scenarios, IP address conflict process flow is as follows:
1, gratuitous ARP packet or ARP request message (source IP address 1.1.1.3) can be sent when VM3 is online;
2, since GW2 enables ARP proxy function, GW2 receive VM3 transmission ARP message when, no matter destination IP Address whether the IP address for being GW2, can be by the ARP messages transmitted to CPU.It, can be according to the ARP when GW2 handles the ARP message Message inquires ARP table, finds there is, MAC Address different ARP identical as IP address (1.1.1.3) of VM3 in local ARP table List item, and the ARP entry is that other gateway synchronizations come, then GW2 can update the ARP entry (by the MAC of the ARP entry Address is updated to the MAC Address of VM3), and use the MAC Address of GW2 as the source MAC of arp reply message, carry out ARP Response;
3, by EVPN agreement, by updated ARP entry, (IP address 1.1.1.3, MAC Address are the MAC of VM3 to GW2 Address) it is synchronized to other gateways;
4, GW1 receives the ARP entry that GW2 passes through EVPN protocol synchronization, inquires local ARP table, there are IP address for discovery Identical (1.1.1.3), but MAC Address is the ARP entry of the MAC Address of VM1, thus, GW1 updates the ARP entry (by the ARP The MAC Address of list item is updated to the MAC Address of VM3);
5, GW1 sends gratuitous ARP packet (MAC Address of the source MAC of message for VM3, source IP to port where VM1 Address and purpose IP address are 1.1.1.3), for informing that its IP address of VM1 conflicts with VM3;
6, there are address conflicts by GW1 transmission log informing administrator.
Through above description as can be seen that in technical solution provided in an embodiment of the present invention, by determine exist with The first VM under this VXLAN IP gateway specifically two VM of identical IP address when, will be corresponding with the first VM in local ARP entry ARP entry in MAC Address be updated to the MAC Address of the 2nd VM, and the MAC Address for carrying the 2nd VM is sent to the first VM Notice message, notify the first VM exist with the first VM have identical IP address the 2nd VM, with enabling VM timely learning IP The generation of location conflict, and the VM that IP address conflict occurs is accurately positioned.
Fig. 3 is referred to, is a kind of structural schematic diagram of IP address conflict processing unit provided in an embodiment of the present invention, In, described device can be applied to the first gateway in above method embodiment, as shown in figure 3, IP address conflict processing dress It sets and may include:
Determination unit 310, being used to determine whether to exist has identical IP address with the first VM under this VXLAN IP gateway 2nd VM;
Updating unit 320, for existing and the first virtual machine under this VXLAN IP gateway when the determination unit 310 determines When VM has two VM of identical IP address, by the MAC in ARP entry corresponding with the first VM in local ARP entry Location is updated to the MAC Address of the 2nd VM;
Transmission unit 330, for having when the determination unit 310 determines to exist with the first VM under this VXLAN IP gateway When two VM of identical IP address, the first VM of Xiang Suoshu sends notice message, and the notice message is for notifying the first VM In the presence of the 2nd VM with the first VM with identical IP address;Wherein, carry the 2nd VM's in the notice message MAC Address.
In an alternative embodiment, the determination unit 310 can be specifically used for when the ARP report for receiving the 2nd VM Text, and determine that the source IP address of the ARP message is identical as the IP address of the corresponding ARP entry of the first VM in local ARP table, source When the MAC Address difference of MAC Address ARP entry corresponding with the first VM in local ARP table, determines and exist and this VXLAN IP network Close the 2nd VM that lower first VM has identical IP address;Wherein, the first VM and the 2nd VM is same VXLAN IP network VM under closing;Or, when receiving the synchronous ARP entry of distal end VXLAN IP gateway, and IP address and local in the ARP entry The IP address of the corresponding ARP entry of the first VM is identical in ARP table, the MAC Address of MAC Address ARP entry corresponding with the first VM When different, the 2nd VM for existing and there is identical IP address with the first VM under this VXLAN IP gateway is determined;Wherein, the first VM From the VM that the 2nd VM is under different VXLAN IP gateways.
Referring to Figure 4 together, Fig. 4 is that the structure of another IP address conflict processing unit provided in an embodiment of the present invention is shown It is intended to, on the basis of embodiment shown in Fig. 3, IP address conflict processing unit shown in Fig. 4 can also include:
Alarm Unit 340, for having when the determination unit 310 determines to exist with the first VM under this VXLAN IP gateway When two VM of identical IP address, alarming processing is carried out, there are IP address conflicts to prompt user.
Please refer to fig. 5, the structure that Fig. 5 is another IP address conflict processing unit provided in an embodiment of the present invention is shown It is intended to, on the basis of embodiment shown in Fig. 3, IP address conflict processing unit shown in fig. 5 can also include:
Synchronization unit 350, for when the first VM and the 2nd VM be same VXLAN IP gateway under VM when, will be updated ARP entry is synchronized to distal end VXLAN IP gateway so that the distal end VXLAN IP gateway by local ARP table with the update The MAC Address in the identical ARP entry of the IP address in ARP entry afterwards is updated to the MAC in the updated ARP entry Address.
In an alternative embodiment, the notice message is the MAC Address that source MAC is the 2nd VM, source IP address For the IP address of the 2nd VM, purpose IP address is the gratuitous ARP packet of the IP address of the first VM,
Referring to Figure 6 together, Fig. 6 is that the structure of another IP address conflict processing unit provided in an embodiment of the present invention is shown It is intended to, on the basis of embodiment shown in Fig. 3, IP address conflict processing unit shown in fig. 6 can also include:
Start unit 360, for starting preset timer;
Processing unit 370, for before the preset timer time-out, refusal to be directed to institute to the first VM received The ARP message for stating gratuitous ARP packet response is handled.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize the present invention program.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, by determining exist and the specific identical IP of the first VM under this VXLAN IP gateway When two VM of location, ARP table corresponding with the first VM in local ARP table is updated according to the IP address of the 2nd VM and MAC Address , and the notice message for carrying the MAC Address of the 2nd VM is sent to the first VM, notifying the first VM to exist has phase with the first VM With the 2nd VM of IP address, enable the generation of VM timely learning IP address conflict, and the VM that IP address conflict occurs is carried out It is accurately positioned.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of IP address conflict processing method, which is characterized in that be applied to the expansible local area network VXLAN interconnection of distributed virtual VXLAN IP gateway in fidonetFido IP gateway networking, the VXLAN IP gateway enable Address Resolution Protocol ARP agency or ARP In generation, is answered, which comprises
It, will be local when determining two VM for existing and there is identical IP address with the first virtual machine VM under this VXLAN IP gateway MAC Address in ARP entry in ARP entry corresponding with the first VM is updated to the MAC Address of the 2nd VM;
Notice message is sent to the first VM, the notice message has for notifying the first VM to exist with the first VM There is the 2nd VM of identical IP address;Wherein, the MAC Address of the 2nd VM is carried in the notice message.
2. the method according to claim 1, wherein the determination exists and the first VM under this VXLAN IP gateway The 2nd VM with identical IP address, comprising:
When the ARP message for receiving the 2nd VM, and the source IP address for determining the ARP message and the first VM in local ARP table The IP address of corresponding ARP entry is identical, the MAC Address of source MAC ARP entry corresponding with the first VM in local ARP table When different, the 2nd VM for existing and there is identical IP address with the first VM under this VXLAN IP gateway is determined;Wherein, the first VM With the VM that the 2nd VM is under same VXLAN IP gateway;Or,
When the ARP entry for receiving the synchronization of distal end VXLAN IP gateway, and in the IP address in the ARP entry and local ARP table The IP address of the corresponding ARP entry of first VM is identical, when the MAC Address difference of MAC Address ARP entry corresponding with the first VM, Determine the 2nd VM for existing and there is identical IP address with the first VM under this VXLAN IP gateway;Wherein, the first VM with it is described 2nd VM is the VM under different VXLAN IP gateways.
3. the method according to claim 1, wherein existing under this VXLAN IP gateway first virtually when determining When machine VM has two VM of identical IP address, the method also includes:
Alarming processing is carried out, there are IP address conflicts to prompt user.
4. the method according to claim 1, wherein when the first VM and the 2nd VM is under same VXLAN IP gateway VM when, the MAC Address by ARP entry corresponding with the first VM in local ARP entry is updated to described second After the MAC Address of VM, the method also includes:
Updated ARP entry is synchronized to distal end VXLAN IP gateway, so that the distal end VXLAN IP gateway is according to Updated ARP entry will be in ARP entry identical with the IP address in the updated ARP entry in local ARP table MAC Address is updated to the MAC Address in the updated ARP entry.
5. the method according to claim 1, wherein it is the 2nd VM that the notice message, which is source MAC, MAC Address, source IP address be the 2nd VM IP address, purpose IP address be the first VM IP address it is free ARP message,
When determining two VM for existing and having identical IP address with the first VM under this VXLAN IP gateway, the method is also wrapped It includes:
Start preset timer, and before the preset timer time-out, refusal is to the first VM received for described The ARP message that gratuitous ARP packet is responded is handled.
6. a kind of IP address conflict processing unit, which is characterized in that be applied to the expansible local area network VXLAN interconnection of distributed virtual VXLAN IP gateway in fidonetFido IP gateway networking, the VXLAN IP gateway enable Address Resolution Protocol ARP agency or ARP In generation, is answered, and described device includes:
Determination unit is used to determine whether there is have identical IP address with the first virtual machine VM under this VXLAN IP gateway the Two VM;
Updating unit, for existing with the first virtual machine VM under this VXLAN IP gateway when the determination unit determines with identical When two VM of IP address, the MAC Address in ARP entry corresponding with the first VM in local ARP entry is updated to institute State the MAC Address of the 2nd VM;
Transmission unit, for determining to exist that there is identical IP address with the first VM under this VXLAN IP gateway when the determination unit Two VM when, the first VM of Xiang Suoshu send notice message, the notice message for notify the first VM exist with it is described First VM has the 2nd VM of identical IP address;Wherein, the MAC Address of the 2nd VM is carried in the notice message.
7. device according to claim 6, which is characterized in that
The determination unit receives the ARP message of the 2nd VM specifically for working as, and with determining the source IP of the ARP message Location is identical as the IP address of the corresponding ARP entry of the first VM in local ARP table, the first VM pairs in source MAC and local ARP table When the MAC Address difference for the ARP entry answered, for existing and there is identical IP address with the first VM under this VXLAN IP gateway is determined Two VM;Wherein, the first VM and the 2nd VM is the VM of same VXLAN IP gateway;Or, when receiving distal end VXLAN The synchronous ARP entry of IP gateway, and the IP of the ARP entry corresponding with the first VM in local ARP table of the IP address in the ARP entry Address is identical, when the MAC Address difference of MAC Address ARP entry corresponding with the first VM, determines exist and this VXLAN IP gateway Lower first VM has the 2nd VM of identical IP address;Wherein, the first VM is different VXLAN IP gateways from the 2nd VM Under VM.
8. device according to claim 6, which is characterized in that described device further include:
Alarm Unit, for determining to exist that there is identical IP address with the first VM under this VXLAN IP gateway when the determination unit Two VM when, carry out alarming processing, to prompt user, there are IP address conflicts.
9. device according to claim 6, which is characterized in that described device further include:
Synchronization unit, for when the first VM and the 2nd VM be same VXLAN IP gateway under VM when, by updated ARP entry Be synchronized to distal end VXLAN IP gateway so that the distal end VXLAN IP gateway by local ARP table with the updated ARP The MAC Address in the identical ARP entry of IP address in list item is updated to the MAC Address in the updated ARP entry.
10. device according to claim 6, which is characterized in that the notice message is that source MAC is the 2nd VM MAC Address, source IP address be the 2nd VM IP address, purpose IP address be the first VM IP address it is free ARP message,
Described device further include:
Start unit, for starting preset timer;
Processing unit, for before the preset timer time-out, refusal to be to the first VM received for described free The ARP message that ARP message is responded is handled.
CN201610512667.9A 2016-06-29 2016-06-29 A kind of IP address conflict processing method and processing device Active CN106210164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610512667.9A CN106210164B (en) 2016-06-29 2016-06-29 A kind of IP address conflict processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610512667.9A CN106210164B (en) 2016-06-29 2016-06-29 A kind of IP address conflict processing method and processing device

Publications (2)

Publication Number Publication Date
CN106210164A CN106210164A (en) 2016-12-07
CN106210164B true CN106210164B (en) 2019-09-06

Family

ID=57463679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610512667.9A Active CN106210164B (en) 2016-06-29 2016-06-29 A kind of IP address conflict processing method and processing device

Country Status (1)

Country Link
CN (1) CN106210164B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743095A (en) * 2017-11-30 2018-02-27 新华三技术有限公司 Message forwarding method and device
CN111314200B (en) * 2020-02-29 2023-10-20 新华三技术有限公司 Message forwarding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614942A (en) * 2003-11-06 2005-05-11 北京佳讯飞鸿电气有限责任公司 Method for soluting IP address conflicts in network communication
CN1798060A (en) * 2004-12-24 2006-07-05 联想(北京)有限公司 Method and device for detecting conflict of IP addresses in networked computers
CN101175000A (en) * 2007-11-22 2008-05-07 华为技术有限公司 Method and device for automatic IP address detection
CN101977245A (en) * 2010-01-07 2011-02-16 中兴通讯股份有限公司 Method, network equipment and system for detecting IP (Internet Protocol) address conflict

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614942A (en) * 2003-11-06 2005-05-11 北京佳讯飞鸿电气有限责任公司 Method for soluting IP address conflicts in network communication
CN1798060A (en) * 2004-12-24 2006-07-05 联想(北京)有限公司 Method and device for detecting conflict of IP addresses in networked computers
CN101175000A (en) * 2007-11-22 2008-05-07 华为技术有限公司 Method and device for automatic IP address detection
CN101977245A (en) * 2010-01-07 2011-02-16 中兴通讯股份有限公司 Method, network equipment and system for detecting IP (Internet Protocol) address conflict

Also Published As

Publication number Publication date
CN106210164A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
EP3229421B1 (en) Media access control address forwarding table transmission control method, apparatus, and system
EP3163799B1 (en) Network device and method for sending bgp information
JP2017503387A5 (en)
EP3123667B1 (en) Method for monitoring a status in form of presence and/or absence of a network entity
CN106105119B (en) Method of operating a network entity, network entity and network
CN104468368B (en) Configure the method and device of bgp neighbor
CN105227466B (en) Communication processing method and device
CA2881734C (en) External injection of cloud based network functions into network services
US11323284B2 (en) Communication apparatus, car integrated management system, and routing table update method
JP2019519146A (en) Routing establishment, packet transmission
CN106612196B (en) Obtain the method and device of resource
CN105591907A (en) Route acquisition method and device
WO2015116927A1 (en) Method and apparatus for facilitating compatibility between communication networks
EP3101853B1 (en) Data flow processing method and apparatus
CN106210164B (en) A kind of IP address conflict processing method and processing device
CN104301449A (en) Method and device for modifying IP address
CN106899706B (en) Flooding inhibition method and device
JP5941887B2 (en) Edge router switching method and system, edge router and redundancy management device
JP5664320B2 (en) Relay device, packet relay method, and communication system
CN109218459A (en) conversion between Internet Protocol
CN103107942B (en) The tracking of a kind of static routing and equipment
US9866524B2 (en) Home gateway apparatus and packet transfer method
CN113132218B (en) Home gateway access method, device, system processor and storage medium
CN107465770B (en) SDN network and non-SDN network communication method and device
WO2018161827A1 (en) Address self-learning method and device, and switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant