CN105763444A - Route synchronization method and route synchronization device - Google Patents

Route synchronization method and route synchronization device Download PDF

Info

Publication number
CN105763444A
CN105763444A CN201610059836.8A CN201610059836A CN105763444A CN 105763444 A CN105763444 A CN 105763444A CN 201610059836 A CN201610059836 A CN 201610059836A CN 105763444 A CN105763444 A CN 105763444A
Authority
CN
China
Prior art keywords
address
border gateway
virtual machine
polymerization
corresponding relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610059836.8A
Other languages
Chinese (zh)
Other versions
CN105763444B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610059836.8A priority Critical patent/CN105763444B/en
Publication of CN105763444A publication Critical patent/CN105763444A/en
Application granted granted Critical
Publication of CN105763444B publication Critical patent/CN105763444B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • 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/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention provides a route synchronization method and a route synchronization device. The method is applied to a first edge gateway, and comprises steps: a virtual machine IP address of the first edge gateway is acquired, and a corresponding aggregated IP address is set for the virtual machine IP address; a corresponding virtual MAC address is set for the aggregated IP address; a first corresponding relationship between the virtual machine IP address, the aggregated IP address and the virtual MAC address is generated, the first corresponding relationship is synchronized to a second edge gateway to enable the second edge gateway to generate a second corresponding relationship between the virtual machine IP address, the aggregated IP address, the virtual MAC address and tunnel identifiers corresponding to the first edge gateway and the second edge gateway according to the first corresponding relationship. Thus, the burden of a core network can be lessened, flooding of ARP packets in the core network is avoided, and the service forwarding efficiency is improved.

Description

A kind of route synchronization method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of route synchronization method and device.
Background technology
EVI (EthernetVirtualizationInterconnect, Ethernet virtualization interconnection) is conventional a kind of data center interconnection technique, mainly achieves and VXLAN network interworking.After the message of usual data center has arrived edge device EVI website, first carrying out the decapsulation operation of VXLAN message, then message inquiry ARP forwards.In order to realize VXLAN network interworking, VM equipment needs the ARP information of the gateway virtual interface IP address in study EVI website, and equally, EVI website needs the ARP information of the IP address on study VM equipment and correspondence, instructs the forwarding of message with this.Also need to the ARP information of the gateway virtual interface IP address of study opposite end EVI website and all IP addresses of opposite end VM and correspondence mutually between two EVI websites simultaneously.
Due to EVI website only by learning IP address and the MAC Address of all VM in the EVI website of opposite end, the VM message sent in opposite end could be instructed to forward.But this brings very big burden to undoubtedly the core network in the middle of two EVI websites, it is possible to there will be the phenomenon that substantial amounts of ARP message floods on core network, it is possible to affect the forwarding of other business.
Summary of the invention
In view of this, the present invention provides the problem that a kind of route synchronization method and device solve the ARP message flooding caused because of IP address and the MAC Address of all VM in study opposite end EVI website.
Specifically, the present invention is achieved through the following technical solutions:
The present invention provides a kind of route synchronization method, and described method is applied to the first Border Gateway, and described method includes:
Obtain the virtual machine IP address of described first Border Gateway, the polymerization IP address of correspondence is set for described virtual machine IP address;
The virtual mac address of correspondence is set for described polymerization IP address;
Generate the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
Further, the described polymerization IP address that correspondence is set for described virtual machine IP address, including:
Judge the network segment belonging to virtual machine IP address respectively, in the same network segment, be polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.
Further, described method also includes:
Receive the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address;
According to described 3rd corresponding relation, generate the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway.
Further, when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, described method also includes:
Described first Border Gateway obtains the purpose IP address of described message, and searches polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation;
According to polymerization IP address corresponding to the purpose IP address found, virtual mac address and Tunnel Identifier, described message carried out tunnel encapsulation and send to described second Border Gateway, so that described second Border Gateway by receive message decapsulation after, according to described purpose IP address, described message is forwarded to the second virtual machine.
Further, when described first Border Gateway increases new virtual machine IP address, described method also includes:
When arranging new polymerization IP address for described new virtual machine IP address, it is judged that whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;
If so, then described new virtual machine IP address is updated to being polymerized in the first corresponding relation that IP address is corresponding of selection, and by the polymerization IP address synchronization of described new virtual machine IP address and selection to described second Border Gateway to update described second corresponding relation;
If not, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, described new virtual machine IP address, new polymerization IP address and new virtual mac address are updated to described first corresponding relation, and are synchronized to described second Border Gateway to update described second corresponding relation.
Based on identical design, the present invention also provides for a kind of route synchronization device, and described device is applied to the first Border Gateway, and described device includes:
Address acquisition unit, for obtaining the virtual machine IP address of described first Border Gateway, arranges the polymerization IP address of correspondence for described virtual machine IP address;
Address setting unit, for arranging the virtual mac address of correspondence for described polymerization IP address;
Relationships synchronization unit, for generating the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
Further, described address setting unit, specifically for judging the network segment belonging to virtual machine IP address respectively, in the same network segment, is polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.
Further, described device also includes:
Address receives unit, for receiving the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address;
Relation generates unit, for according to described 3rd corresponding relation, generating the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway.
Further, described device also includes:
Packet sending unit, when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, for obtaining the purpose IP address of described message, and search polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation;According to polymerization IP address corresponding to the purpose IP address found, virtual mac address and Tunnel Identifier, described message carried out tunnel encapsulation and send to described second Border Gateway, so that described second Border Gateway by receive message decapsulation after, according to described purpose IP address, described message is forwarded to the second virtual machine.
Further, described device also includes:
Address updating block, when described first Border Gateway increases new virtual machine IP address, for when arranging new polymerization IP address for described new virtual machine IP address, it is judged that whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;If so, then described new virtual machine IP address is updated to being polymerized in the first corresponding relation that IP address is corresponding of selection, and by the polymerization IP address synchronization of described new virtual machine IP address and selection to described second Border Gateway to update described second corresponding relation;If not, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, described new virtual machine IP address, new polymerization IP address and new virtual mac address are updated to described first corresponding relation, and are synchronized to described second Border Gateway to update described second corresponding relation.
As can be seen here, the present invention can pass through to obtain the virtual machine IP address of described first Border Gateway, arranges the polymerization IP address of correspondence and the virtual mac address that described polymerization IP address is corresponding for described virtual machine IP address;Generate the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.Such that it is able to alleviate the burden of core network, it is to avoid the phenomenon that ARP message floods on core network, improve the forward efficiency of business.
Accompanying drawing explanation
Fig. 1 is the process chart of a kind of route synchronization method in a kind of illustrative embodiments of the present invention;
Fig. 2 is the networking schematic diagram in a kind of illustrative embodiments of the present invention;
The hardware structure diagram of the Border Gateway at the route synchronization device place in a kind of illustrative embodiments of Fig. 3 present invention;
The building-block of logic of a kind of route synchronization device in a kind of illustrative embodiments of Fig. 4 present invention.
Detailed description of the invention
In order to solve prior art Problems existing, the present invention provides a kind of route synchronization method and device, can pass through to obtain the virtual machine IP address of described first Border Gateway, the polymerization IP address of correspondence and the virtual mac address that described polymerization IP address is corresponding are set for described virtual machine IP address;Generate the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.Such that it is able to alleviate the burden of core network, it is to avoid the phenomenon that ARP message floods on core network, improve the forward efficiency of business.
Refer to Fig. 1, be the process chart of a kind of route aggregating method in a kind of illustrative embodiments of the present invention, wherein the method is applied to the first Border Gateway of data center, and described method includes:
Step 101, obtain the virtual machine IP address of described first Border Gateway, the polymerization IP address of correspondence is set for described virtual machine IP address;
In the present embodiment, when described first Border Gateway obtains virtual machine IP address, as long as the IP address of virtual machine can be obtained, to the mode of acquisition without limitation.Wherein in a kind of embodiment, it is possible to obtain by learning the ARP that under the first Border Gateway, the virtual machine of extension is corresponding, virtual machine ARP generally comprises virtual machine IP address and MAC Address.After described first Border Gateway obtains virtual machine IP address, it is possible to the polymerization IP address of correspondence is set for virtual machine IP address.In optional embodiment of the present invention, described first Border Gateway can judge the network segment belonging to virtual machine IP address respectively.In the same network segment, the first Border Gateway can be polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.Therefore multiple IP addresses of same network segment can be polymerized.
Step 102, for described polymerization IP address arrange correspondence virtual mac address;
In the present embodiment, described first Border Gateway can be the virtual mac address that described polymerization IP address arranges correspondence.The virtual mac address that different polymerization IP addresses is corresponding different.
Step 103, generate described virtual machine IP address, polymerization IP address and the first corresponding relation of virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
In the present embodiment, described first Border Gateway can generate the first corresponding relation comprising described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway further that be connected with the first Border Gateway tunnel, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
In prior art, first Border Gateway needs constantly the ARP of each virtual machine to be synchronized to the second Border Gateway place, therefore there will be the phenomenon that substantial amounts of ARP message floods on core network, and bring very big burden to middle core network, it is possible to have influence on the forwarding of other business.And the present invention can by being polymerized the route within the first Border Gateway, and one virtual mac address is set for polyaluminium chloride PAC, again the virtual mac address of polyaluminium chloride PAC He its correspondence is sent to the second Border Gateway, it is possible to without synchronizing each virtual machine MAC Address of the first Border Gateway to the second Border Gateway.Such that it is able to alleviate the burden of core network, it is to avoid the phenomenon that ARP message floods on core network, improve the forward efficiency of business.
It should be noted that the first Border Gateway in the present invention is it is believed that be equipped with the network equipment of above-mentioned route aggregation function.In like manner, described second Border Gateway can also by the way to the first Border Gateway synchronization of routing information.
In optional embodiment of the present invention, described first Border Gateway can receive the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address, then according to described 3rd corresponding relation, the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway is generated.
In optional embodiment of the present invention, when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, described first Border Gateway can obtain the purpose IP address of described message, the i.e. IP address of the second virtual machine, then the first Border Gateway searches polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation.Due to the first Border Gateway place MAC Address that no record the second virtual machine is not corresponding, therefore the first Border Gateway can with this virtual mac address target MAC (Media Access Control) address as this message.Then according to the polymerization IP address that the purpose IP address found is corresponding, described message is carried out tunnel encapsulation by virtual mac address and Tunnel Identifier, wherein can using this polymerization IP address as the purpose IP address in encapsulation, using the IP address of the first Border Gateway as the source IP address of encapsulation, and add described Tunnel Identifier, finally the message after encapsulation is sent to described second Border Gateway, so that described second Border Gateway is by after the decapsulation of described message, obtain the purpose IP address of message, and in the ARP that described second Border Gateway is local, described message is forwarded to the second virtual machine according to described purpose IP address.Therefore can pass through the virtual mac address of simultaneous polymerization IP address and correspondence thereof, make this virtual mac address act on behalf of multiple virtual machine MAC Address of the second Border Gateway, such that it is able to taking equipment and Internet resources when the MAC Address reducing each virtual machine synchronizes.
In addition, in optional embodiment of the present invention, when described first Border Gateway increases new virtual machine IP address, first Border Gateway is when arranging new polymerization IP address for described new virtual machine IP address, it is possible to determine whether whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;If can select in existing polymerization IP address, then described new virtual machine IP address can be updated in the first corresponding relation that selected polymerization IP address is corresponding by the first Border Gateway, and by described new virtual machine IP address and selected polymerization IP address synchronization to described second Border Gateway to update described second corresponding relation;If can not select in existing polymerization IP address, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, then described new virtual machine IP address, new polymerization IP address and new virtual mac address can be updated to described first corresponding relation, and be synchronized to described second Border Gateway to update described second corresponding relation.
The embodiment of the present invention is after being polymerized virtual machine IP address, when newly-increased virtual machine IP address, first Border Gateway may determine that whether new virtual machine IP address belongs to the network segment that in the first corresponding relation, existing polymerization IP address is corresponding, if belonging to, then the virtual machine IP address that this is new can be added in the first corresponding relation, and by the polymerization IP address synchronization of this new virtual machine IP address and correspondence to the second Border Gateway;If being not belonging to the network segment that existing polymerization IP address is corresponding, then new polymerization IP address can be set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, then described new virtual machine IP address, new polymerization IP address and new virtual mac address can be updated to described first corresponding relation, and be synchronized to described second Border Gateway to update described second corresponding relation.
The synchronization of the embodiment of the present invention the first corresponding relation by generating after virtual machine IP Address Aggregation, can ensure that described first corresponding relation and the second corresponding relation can synchronized update, greatly reduce the synchronizing information between the first Border Gateway and the second Border Gateway, thus alleviating the burden of core network.
Meanwhile, if the embodiment of the present invention is when the first corresponding relation of the first Border Gateway updates, it is possible to by fully synchronized for all of first corresponding relation to the second Border Gateway, the second Border Gateway can regenerate the second corresponding relation.Or, only first corresponding relation relevant to renewal being synchronized to the second Border Gateway, the second Border Gateway updates the second corresponding relation according to the first corresponding relation after updating.As long as the first corresponding relation after updating can be synchronized to the second Border Gateway and carries out synchronized update, to how the first corresponding relation after renewal synchronizes without limitation, to the second Border Gateway to the update mode of the second corresponding relation also without limitation.For making the purpose of the present invention, technical scheme and advantage clearly understand, below the program of the present invention is described in further detail.
Refer to Fig. 2, be the networking schematic diagram in a kind of illustrative embodiments of the present invention, wherein data center edge is provided with EVI website 1 and EVI website 2, sets up tunnel and connect between two websites.Enabling route aggregation function above EVI website, the virtual machine ARP of 3 VM that EVI website 1 is corresponding below is as shown in table 1:
Virtual machine IP address Virtual machine MAC Address
VM1 1.1.1.2 A-A-A
VM2 1.1.1.3 B-B-B
VM3 1.1.1.4 C-C-C
Table 1
EVI website 1 according to ARP (table 1) study to virtual machine IP address therein, and can judge the network segment belonging to above-mentioned virtual machine IP address.Assume that above-mentioned virtual machine IP address belongs to the same network segment, then can search the preset polymerization IP address that this network segment is corresponding, be assumed to be 150.1.1.1, then by study to virtual machine IP address and the polymerization IP address of correspondence join in polyaluminium chloride PAC list item, as shown in table 2.
Virtual machine IP address Polymerization IP address
VM1 1.1.1.2 150.1.1.1
VM2 1.1.1.3 150.1.1.1
VM3 1.1.1.4 150.1.1.1
Table 2
Afterwards, EVI website 1 is the virtual mac address that this polymerization IP address is arranged is D-D-D.
This polyaluminium chloride PAC list item of EVI website 1 and virtual mac address are synchronized to the EVI website 2 of opposite end.After EVI website 2 receives polyaluminium chloride PAC list item and the virtual mac address of EVI website 1 synchronization, this polyaluminium chloride PAC list item can locally recorded, and it is locally generated gateway A RP list item, including the virtual mac address that polymerization IP address 150.1.1.1, this IP address are corresponding, down hop is the VXLAN Tunnel Identifier of EVI website 1 and EVI website 2, as shown in table 3.
Polymerization IP address Virtual mac address Down hop
150.1.1.1 D-D-D VXLAN tunnel
Table 3
When VM4 sends message to VM1, the purpose MAC of this message is the MAC Address of EVI website 2 virtual interface, and purpose IP address is the IP address 1.1.1.2 of VM1.When this message arrives EVI website 2, first EVI website 2 can extract the purpose IP address of message from this message is 1.1.1.2, then look up polyaluminium chloride PAC list item (table 2), obtain polymerization IP address 150.1.1.1 corresponding to this IP address 1.1.1.2, then remove the gateway A RP list item of inquiry table 3 according to polymerization IP address 150.1.1.1, obtain the Tunnel Identifier in public network VXLAN tunnel.Owing to EVI website 2 does not record the MAC Address of VM1, therefore EVI website 2 can with this virtual mac address D-D-D target MAC (Media Access Control) address as this message.Then this message is carried out VXLAN encapsulation by EVI website 2, is packaged into Overlay message, and the purpose IP address of this Overlay message is polymerization IP address 150.1.1.1.Overlay message is forwarded to EVI website 1 by EVI website 2 by VXLAN tunnel afterwards.
After Overlay message arrives EVI website 1, first EVI website 1 releases the VXLAN encapsulation of Overlay message, owing to the purpose MAC of message is virtual mac address D-D-D, purpose IP address is the IP address 1.1.1.2 of VM1, so EVI website 1 needs according to the internal ARP (table 1) of previously study to data center, find the MAC Address A-A-A corresponding for IP address 1.1.1.2 of VM1, further according to MAC Address A-A-A, message be will be forwarded to VM1 from the AC mouth of EVI website 1.
In above-mentioned synchronizing process, EVI website 1 only needs the virtual mac address that simultaneous polymerization IP address is corresponding, is synchronized to opposite end without by the MAC Address of each VM, therefore can reduce the data volume of synchronization, it is to avoid the flooding phenomenon of ARP message.
Based on identical design, the present invention also provides for a kind of route synchronization device, and this device can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining.Implemented in software for example, the route synchronization device of the present invention, as the device on a logical meaning, is run after computer program instructions corresponding in memorizer is read by the CPU by its place Border Gateway to form.
Refer to Fig. 3 and Fig. 4, be a kind of route synchronization device 400 in a kind of illustrative embodiments of the present invention, this device is applied to the first Border Gateway, the basic running environment of this device includes CPU, memorizer and other hardware, from logic level, this device 400 includes:
Address acquisition unit 401, for obtaining the virtual machine IP address of described first Border Gateway, arranges the polymerization IP address of correspondence for described virtual machine IP address;
Address setting unit 402, for arranging the virtual mac address of correspondence for described polymerization IP address;
Relationships synchronization unit, for generating the first corresponding relation 403 of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
Optionally, described address setting unit 401, specifically for judging the network segment belonging to virtual machine IP address respectively, in the same network segment, is polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.
Optionally, described device 400 also includes:
Address receives unit 404, for receiving the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address;
Relation generates unit 405, for according to described 3rd corresponding relation, generating the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway.
Optionally, described device 400 also includes:
Packet sending unit 406, when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, for obtaining the purpose IP address of described message, and search polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation;According to polymerization IP address corresponding to the purpose IP address found, virtual mac address and Tunnel Identifier, described message carried out tunnel encapsulation and send to described second Border Gateway, so that described second Border Gateway by receive message decapsulation after, according to described purpose IP address, described message is forwarded to the second virtual machine.
Optionally, described device 400 also includes:
Address updating block 407, when described first Border Gateway increases new virtual machine IP address, for when arranging new polymerization IP address for described new virtual machine IP address, it is judged that whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;If so, then described new virtual machine IP address is updated to being polymerized in the first corresponding relation that IP address is corresponding of selection, and by the polymerization IP address synchronization of described new virtual machine IP address and selection to described second Border Gateway to update described second corresponding relation;If not, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, described new virtual machine IP address, new polymerization IP address and new virtual mac address are updated to described first corresponding relation, and are synchronized to described second Border Gateway to update described second corresponding relation.
As can be seen here, the present invention can pass through to obtain the virtual machine IP address of described first Border Gateway, arranges the polymerization IP address of correspondence and the virtual mac address that described polymerization IP address is corresponding for described virtual machine IP address;Generate the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.Such that it is able to alleviate the burden of core network, it is to avoid the phenomenon that ARP message floods on core network, improve the forward efficiency of business.
What in said apparatus, the function of unit and the process that realizes of effect specifically referred in said method corresponding step realizes process, does not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part illustrates referring to the part of embodiment of the method.Device embodiment described above is merely schematic, the wherein said unit illustrated as separating component can be or may not be physically separate, the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the application scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.

Claims (10)

1. a route synchronization method, it is characterised in that described method is applied to the first Border Gateway, and described method includes:
Obtain the virtual machine IP address of described first Border Gateway, the polymerization IP address of correspondence is set for described virtual machine IP address;
The virtual mac address of correspondence is set for described polymerization IP address;
Generate the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
2. method according to claim 1, it is characterised in that the described polymerization IP address that correspondence is set for described virtual machine IP address, including:
Judge the network segment belonging to virtual machine IP address respectively, in the same network segment, be polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.
3. method according to claim 1, it is characterised in that described method also includes:
Receive the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address;
According to described 3rd corresponding relation, generate the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway.
4. method according to claim 3, it is characterised in that when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, described method also includes:
Described first Border Gateway obtains the purpose IP address of described message, and searches polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation;
According to polymerization IP address corresponding to the purpose IP address found, virtual mac address and Tunnel Identifier, described message carried out tunnel encapsulation and send to described second Border Gateway, so that described second Border Gateway by receive message decapsulation after, according to described purpose IP address, described message is forwarded to the second virtual machine.
5. method according to claim 1, it is characterised in that when described first Border Gateway increases new virtual machine IP address, described method also includes:
When arranging new polymerization IP address for described new virtual machine IP address, it is judged that whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;
If so, then described new virtual machine IP address is updated to being polymerized in the first corresponding relation that IP address is corresponding of selection, and by the polymerization IP address synchronization of described new virtual machine IP address and selection to described second Border Gateway to update described second corresponding relation;
If not, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, described new virtual machine IP address, new polymerization IP address and new virtual mac address are updated to described first corresponding relation, and are synchronized to described second Border Gateway to update described second corresponding relation.
6. a route synchronization device, it is characterised in that described device is applied to the first Border Gateway, and described device includes:
Address acquisition unit, for obtaining the virtual machine IP address of described first Border Gateway, arranges the polymerization IP address of correspondence for described virtual machine IP address;
Address setting unit, for arranging the virtual mac address of correspondence for described polymerization IP address;
Relationships synchronization unit, for generating the first corresponding relation of described virtual machine IP address, polymerization IP address and virtual mac address, and described first corresponding relation is synchronized to the second Border Gateway, so that described second Border Gateway generates the second corresponding relation of virtual machine IP address, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway according to described first corresponding relation.
7. device according to claim 6, it is characterised in that
Described address setting unit, specifically for judging the network segment belonging to virtual machine IP address respectively, in the same network segment, is polymerized the polymerization IP address as the virtual machine IP address at this network segment, the IP address using what preset for this network segment.
8. device according to claim 6, it is characterised in that described device also includes:
Address receives unit, for receiving the 3rd corresponding relation of the virtual machine IP address of the second Border Gateway that the second Border Gateway synchronizes, polymerization IP address and virtual mac address;
Relation generates unit, for according to described 3rd corresponding relation, generating the 4th corresponding relation of the virtual machine IP address of the second Border Gateway, polymerization IP address, virtual mac address and the described first Border Gateway Tunnel Identifier corresponding with the second Border Gateway.
9. device according to claim 8, it is characterised in that described device also includes:
Packet sending unit, when the first virtual machine that described first Border Gateway connects to send message to the second virtual machine that described second Border Gateway connects, for obtaining the purpose IP address of described message, and search polymerization IP address corresponding to described purpose IP address and virtual mac address and Tunnel Identifier in the 4th local corresponding relation;According to polymerization IP address corresponding to the purpose IP address found, virtual mac address and Tunnel Identifier, described message carried out tunnel encapsulation and send to described second Border Gateway, so that described second Border Gateway by receive message decapsulation after, according to described purpose IP address, described message is forwarded to the second virtual machine.
10. device according to claim 6, it is characterised in that described device also includes:
Address updating block, when described first Border Gateway increases new virtual machine IP address, for when arranging new polymerization IP address for described new virtual machine IP address, it is judged that whether described new polymerization IP address can select in existing polymerization IP address in the first corresponding relation;If so, then described new virtual machine IP address is updated to being polymerized in the first corresponding relation that IP address is corresponding of selection, and by the polymerization IP address synchronization of described new virtual machine IP address and selection to described second Border Gateway to update described second corresponding relation;If not, then new polymerization IP address is set for new virtual machine IP address, and the new virtual mac address of correspondence is set for described new polymerization IP address, described new virtual machine IP address, new polymerization IP address and new virtual mac address are updated to described first corresponding relation, and are synchronized to described second Border Gateway to update described second corresponding relation.
CN201610059836.8A 2016-01-27 2016-01-27 A kind of route synchronization method and device Active CN105763444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610059836.8A CN105763444B (en) 2016-01-27 2016-01-27 A kind of route synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610059836.8A CN105763444B (en) 2016-01-27 2016-01-27 A kind of route synchronization method and device

Publications (2)

Publication Number Publication Date
CN105763444A true CN105763444A (en) 2016-07-13
CN105763444B CN105763444B (en) 2019-03-15

Family

ID=56342646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610059836.8A Active CN105763444B (en) 2016-01-27 2016-01-27 A kind of route synchronization method and device

Country Status (1)

Country Link
CN (1) CN105763444B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809793A (en) * 2017-04-27 2018-11-13 华为技术有限公司 A kind of data transmission method, apparatus and system
CN109787879A (en) * 2017-11-13 2019-05-21 北京华为数字技术有限公司 A kind of expansible Virtual Local Area Network VXLAN Address Aggregation method, apparatus and equipment
CN114531385A (en) * 2020-10-31 2022-05-24 华为技术有限公司 Method, device and system for sending message
CN115412528A (en) * 2022-08-08 2022-11-29 北京达佳互联信息技术有限公司 Host routing address storage method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557341A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Message forwarding method based on forwarding table of medium access control and system
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device
WO2014114228A1 (en) * 2013-01-22 2014-07-31 Hangzhou H3C Technologies Co., Ltd. Item aggregation in shortest path bridging mac-in-mac mode (spbm) network
CN104468358A (en) * 2013-09-25 2015-03-25 杭州华三通信技术有限公司 Message forwarding method and device of distributive virtual switch system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557341A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Message forwarding method based on forwarding table of medium access control and system
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device
WO2014114228A1 (en) * 2013-01-22 2014-07-31 Hangzhou H3C Technologies Co., Ltd. Item aggregation in shortest path bridging mac-in-mac mode (spbm) network
CN104468358A (en) * 2013-09-25 2015-03-25 杭州华三通信技术有限公司 Message forwarding method and device of distributive virtual switch system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809793A (en) * 2017-04-27 2018-11-13 华为技术有限公司 A kind of data transmission method, apparatus and system
CN109787879A (en) * 2017-11-13 2019-05-21 北京华为数字技术有限公司 A kind of expansible Virtual Local Area Network VXLAN Address Aggregation method, apparatus and equipment
CN109787879B (en) * 2017-11-13 2021-08-03 北京华为数字技术有限公司 Extensible virtual local area network VXLAN address aggregation method, device and equipment
CN114531385A (en) * 2020-10-31 2022-05-24 华为技术有限公司 Method, device and system for sending message
CN114531385B (en) * 2020-10-31 2022-12-27 华为技术有限公司 Method, device and system for sending message
CN115412528A (en) * 2022-08-08 2022-11-29 北京达佳互联信息技术有限公司 Host routing address storage method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105763444B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
US10374878B2 (en) Forwarding tables for virtual networking devices
US8369333B2 (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
CN107113241B (en) Route determining method, network configuration method and related device
TWI531908B (en) A method of supporting virtual machine migration with Software Defined Network (SDN)
US9413612B2 (en) Automatic resolution of virtual network instance to VLAN mapping conflicts in dual-homed deployments in a dynamic fabric automation network architecture
CN111736958B (en) Virtual machine migration method, system, computer equipment and storage medium
CN105634770B (en) The method and apparatus for disposing virtual extended local area network
US20180006969A1 (en) Technique for gleaning mac and ip address bindings
US20160191462A1 (en) Message forwarding in a virtual local area network
CN107547349A (en) A kind of method and device of virtual machine (vm) migration
CN106331206B (en) Domain name management method and device
CN106789635B (en) Message forwarding method and device
WO2013029440A1 (en) Method and apparatus for implementing layer-2 interconnection of data centers
EP2584742A1 (en) Method and switch for sending packet
CN105763444A (en) Route synchronization method and route synchronization device
CN105634901A (en) MAC address information synchronization method and device based on CAS VXLAN
CN106982163A (en) The method and gateway of route are obtained on demand
CN107094110A (en) A kind of DHCP message retransmission method and device
CN108540386B (en) Method and device for preventing service flow interruption
CN110661710B (en) Message transmission method and device of virtualization system
CN106789523B (en) Method and device for creating logical tunnel
CN109962846A (en) The processing method and processing device of routing protocol packet
CN108768845B (en) Multi-homing host routing synchronization method and device
CN113472699A (en) Network table item synchronization method and device
CN114827057B (en) Communication method and communication system

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