CN105763444B - A kind of route synchronization method and device - Google Patents

A kind of route synchronization method and device Download PDF

Info

Publication number
CN105763444B
CN105763444B CN201610059836.8A CN201610059836A CN105763444B CN 105763444 B CN105763444 B CN 105763444B CN 201610059836 A CN201610059836 A CN 201610059836A CN 105763444 B CN105763444 B CN 105763444B
Authority
CN
China
Prior art keywords
ip address
virtual machine
edge gateway
polymerization
address
Prior art date
Application number
CN201610059836.8A
Other languages
Chinese (zh)
Other versions
CN105763444A (en
Inventor
黄李伟
王伟
Original Assignee
新华三技术有限公司
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 新华三技术有限公司 filed Critical 新华三技术有限公司
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

Links

Abstract

The present invention provides a kind of route synchronization method and device, and the method is applied to first edge gateway, which comprises obtains the virtual machine IP address of the first edge gateway, corresponding polymerization IP address is arranged for the virtual machine IP address;For the polymerization IP address, corresponding virtual mac address is set;Generate the first corresponding relationship of the virtual machine IP address, polymerization IP address and virtual mac address, and first corresponding relationship is synchronized to second edge gateway, so that the second edge gateway generates the second corresponding relationship of virtual machine IP address, polymerization IP address, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway according to first corresponding relationship.So as to mitigate the burden of core network, avoids ARP message the phenomenon that flooding on core network, improve the forward efficiency of business.

Description

A kind of route synchronization method and device

Technical field

The present invention relates to field of communication technology more particularly to a kind of route synchronization method and devices.

Background technique

EVI (Ethernet Virtualization Interconnect, Ethernet virtualization interconnection) is common one Kind data center's interconnection technique, mainly realizes and VXLAN network interworking.The message of usual data center has arrived edge device After EVI website, the decapsulation operation of VXLAN message can be carried out first, then message inquiry ARP entry is forwarded.In order to Realize VXLAN network interworking, VM equipment needs to learn the ARP information of the gateway virtual interface IP address in EVI website, equally, EVI Website needs to learn IP address and corresponding ARP information in VM equipment, and the forwarding of message is instructed with this.Two EVI simultaneously Also need mutually to learn the gateway virtual interface IP address and all IP address of opposite end VM and right of opposite end EVI website between website The ARP information answered.

Since EVI website only passes through the IP address and MAC Address of all VM in study opposite end EVI website, could refer to The message for leading opposite end VM transmission is forwarded.But this core network undoubtedly given among two EVI websites brings very big bear Load, it is possible that a large amount of ARP message may influence the forwarding of other business the phenomenon that flooding on core network.

Summary of the invention

In view of this, the present invention provides a kind of route synchronization method and device to solve because in study opposite end EVI website The problem of ARP message caused by the IP address and MAC Address of all VM floods.

Specifically, the present invention is achieved through the following technical solutions:

The present invention provides a kind of route synchronization method, and the method is applied to first edge gateway, which comprises

The virtual machine IP address of the first edge gateway is obtained, corresponding polymerization IP is set for the virtual machine IP address Address;

For the polymerization IP address, corresponding virtual mac address is set;

The first corresponding relationship of the virtual machine IP address, polymerization IP address and virtual mac address is generated, and will be described First corresponding relationship is synchronized to second edge gateway, so that the second edge gateway generates void according to first corresponding relationship Quasi- machine IP address, polymerization IP address, virtual mac address and first edge gateway tunnel corresponding with second edge gateway Second corresponding relationship of mark.

It is further, described that for the virtual machine IP address, corresponding polymerization IP address is set, comprising:

Network segment belonging to virtual machine IP address is judged respectively, it, will for the preset polymerization IP of this network segment in same network segment Polymerization IP address of the location as the virtual machine IP address in this network segment.

Further, the method also includes:

Receive the virtual machine IP address of the second edge gateway of second edge gateway synchronization, polymerization IP address and virtual The third corresponding relationship of MAC Address;

According to the third corresponding relationship, the virtual machine IP address of second edge gateway is generated, polymerize IP address, is virtual 4th corresponding relationship of MAC Address and first edge gateway Tunnel Identifier corresponding with second edge gateway.

Further, it to be connected to the second edge gateway when the first virtual machine of first edge gateway connection When second virtual machine sends message, the method also includes:

The first edge gateway obtains the purpose IP address of the message, and searches in the 4th local corresponding relationship The corresponding polymerization IP address in the destination IP address and virtual mac address and Tunnel Identifier;

According to the corresponding polymerization IP address of the purpose IP address found, virtual mac address and Tunnel Identifier to described Message carries out tunnel encapsulation and is sent to the second edge gateway, so that the message solution that the second edge gateway will receive After encapsulation, the message is forwarded to by the second virtual machine according to the destination IP address.

Further, when the first edge gateway increases new virtual machine IP address, the method also includes:

When new polymerization IP address is arranged for the new virtual machine IP address, judge that the new polymerization IP address is It is no to be selected in existing polymerization IP address in the first corresponding relationship;

If so, corresponding first corresponding relationship of polymerization IP address that the new virtual machine IP address is updated to selection In, and it is described to update that the polymerization IP address of new the virtual machine IP address and selection is synchronized to the second edge gateway Second corresponding relationship;

If it is not, new polymerization IP address then is arranged for new virtual machine IP address, and set for the new polymerization IP address Corresponding new virtual mac address is set, by the new virtual machine IP address, new polymerization IP address and new Virtual MAC Address is updated to first corresponding relationship, and is synchronized to the second edge gateway to update second corresponding relationship.

Based on identical design, the present invention also provides a kind of route synchronization device, described device is applied to first edge net It closes, described device includes:

Address acquisition unit, for obtaining the virtual machine IP address of the first edge gateway, for the virtual machine IP Corresponding polymerization IP address is arranged in location;

Address setting unit, for corresponding virtual mac address to be arranged for the polymerization IP address;

Relationships synchronization unit, for generating the first of the virtual machine IP address, polymerization IP address and virtual mac address Corresponding relationship, and first corresponding relationship is synchronized to second edge gateway, so that the second edge gateway is according to First corresponding relationship generates virtual machine IP address, polymerization IP address, virtual mac address and the first edge gateway and second Second corresponding relationship of the corresponding Tunnel Identifier of Border Gateway.

Further, the address setting unit, specifically for judging network segment belonging to virtual machine IP address respectively, same It will be the preset polymerization IP address of this network segment as the polymerization IP address of the virtual machine IP address in this network segment in one network segment.

Further, described device further include:

Address receiving unit, the virtual machine IP address of the second edge gateway for receiving second edge gateway synchronization are gathered Close the third corresponding relationship of IP address and virtual mac address;

Relationship generation unit, for according to the third corresponding relationship, generate second edge gateway virtual machine IP address, It polymerize the 4th of IP address, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway the Corresponding relationship.

Further, described device further include:

Packet sending unit, when the first virtual machine of first edge gateway connection will connect to the second edge gateway When the second virtual machine connect sends message, for obtaining the purpose IP address of the message, and in the 4th local corresponding relationship The corresponding polymerization IP address in middle lookup the destination IP address and virtual mac address and Tunnel Identifier;According to the mesh found The corresponding polymerization IP address of IP address, virtual mac address and Tunnel Identifier the message tunnel encapsulation and send The extremely second edge gateway, so that after the second edge gateway decapsulates the message received, according to the destination IP The message is forwarded to the second virtual machine by address.

Further, described device further include:

Address updating unit, when the first edge gateway increases new virtual machine IP address, for being described new Virtual machine IP address when new polymerization IP address is set, judge whether the new polymerization IP address corresponding can close first It is selected in existing polymerization IP address in system;If so, with being updated to the polymerization IP of selection by the new virtual machine IP address In corresponding first corresponding relationship in location, and the polymerization IP address of new the virtual machine IP address and selection is synchronized to described Two Border Gateway are to update second corresponding relationship;If it is not, new polymerization IP address then is set for new virtual machine IP address, And corresponding new virtual mac address is set for the new polymerization IP address, by the new virtual machine IP address, new gather Close IP address and new virtual mac address and be updated to first corresponding relationship, and be synchronized to the second edge gateway with Update second corresponding relationship.

It can be seen that the present invention can be described virtual by the virtual machine IP address of the acquisition first edge gateway Corresponding polymerization IP address and the corresponding virtual mac address of the polymerization IP address is arranged in machine IP address;It generates described virtual First corresponding relationship of machine IP address, polymerization IP address and virtual mac address, and first corresponding relationship is synchronized to the Two Border Gateway, so that the second edge gateway generates virtual machine IP address, polymerization IP according to first corresponding relationship Second corresponding relationship of location, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway. So as to mitigate the burden of core network, avoids ARP message the phenomenon that flooding on core network, improve the forwarding effect of business Rate.

Detailed description of the invention

Fig. 1 is a kind of process flow diagram of one of illustrative embodiments of present invention route synchronization method;

Fig. 2 is the networking schematic diagram in a kind of illustrative embodiments of the present invention;

The hardware configuration of the Border Gateway where route synchronization device in a kind of illustrative embodiments of Fig. 3 present invention Figure;

A kind of building-block of logic of one of illustrative embodiments of Fig. 4 present invention route synchronization device.

Specific embodiment

Of the existing technology in order to solve the problems, such as, the present invention provides a kind of route synchronization method and device, can pass through The virtual machine IP address of the first edge gateway is obtained, corresponding polymerization IP address is set for the virtual machine IP address, with And the corresponding virtual mac address of the polymerization IP address;Generate the virtual machine IP address, polymerization IP address and Virtual MAC First corresponding relationship of address, and first corresponding relationship is synchronized to second edge gateway, so that the second edge net It closes and virtual machine IP address, polymerization IP address, virtual mac address and the first edge is generated according to first corresponding relationship Second corresponding relationship of gateway Tunnel Identifier corresponding with second edge gateway.So as to mitigate the burden of core network, keep away Exempt from ARP message the phenomenon that flooding on core network, improves the forward efficiency of business.

Referring to FIG. 1, be a kind of process flow diagram of one of illustrative embodiments of present invention route aggregating method, Wherein this method is applied to the first edge gateway of data center, which comprises

Step 101, the virtual machine IP address for obtaining the first edge gateway correspond to for virtual machine IP address setting Polymerization IP address;

In the present embodiment, when the first edge gateway obtains virtual machine IP address, as long as the IP of virtual machine can be obtained Address, without limitation to acquisition modes.It, can be by learning first edge gateway down-hanging in a kind of wherein embodiment Virtual machine corresponding ARP entry obtain, virtual machine IP address and MAC Address are generally comprised in virtual machine ARP entry.It is described After first edge gateway obtains virtual machine IP address, corresponding polymerization IP address can be set for virtual machine IP address.In this hair In bright optional embodiment, the first edge gateway can judge network segment belonging to virtual machine IP address respectively.In same net In section, first edge gateway can will be the preset polymerization IP address of this network segment as the poly- of the virtual machine IP address in this network segment Close IP address.Therefore multiple IP address of same network segment can be polymerize.

Corresponding virtual mac address is arranged for the polymerization IP address in step 102;

In the present embodiment, the first edge gateway can be for the polymerization IP address corresponding Virtual MAC is arranged Location.Different polymerization IP address correspond to different virtual mac address.

Step 103, the first corresponding relationship for generating the virtual machine IP address, polymerization IP address and virtual mac address, And first corresponding relationship is synchronized to second edge gateway, so that the second edge gateway is according to the described first corresponding pass System generates virtual machine IP address, polymerization IP address, virtual mac address and the first edge gateway and second edge gateway pair Second corresponding relationship of the Tunnel Identifier answered.

In the present embodiment, the first edge gateway can be generated comprising the virtual machine IP address, polymerization IP address And the first corresponding relationship of virtual mac address, and be further synchronized to first corresponding relationship and first edge net The second edge gateway of tunnel connection is closed, so that the second edge gateway generates virtual machine IP according to first corresponding relationship Address polymerize IP address, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway Second corresponding relationship.

In the prior art, the ARP entry of each virtual machine is constantly synchronized to second edge net by first edge gateway needs It at pass, therefore will appear a large amount of ARP message the phenomenon that flooding on core network, and brought very to intermediate core network Big burden may influence the forwarding of other business.And the present invention can by by the routing of first edge intra-gateway into Row polymerization, and one virtual mac address is set for polyaluminium chloride PAC, then polyaluminium chloride PAC virtual mac address corresponding with its is sent To second edge gateway, each virtual machine MAC Address to second edge gateway synchronization first edge gateway may not need.To The burden that core network can be mitigated avoids ARP message the phenomenon that flooding on core network, improves the forward efficiency of business.

It should be noted that the first edge gateway in the present invention, which can consider, is equipped with above-mentioned route aggregation function The network equipment.Similarly, the second edge gateway can also be through the above way to first edge gateway synchronization routing iinformation.

In optional embodiment of the present invention, the first edge gateway can receive the second of second edge gateway synchronization The third corresponding relationship of the virtual machine IP address of Border Gateway, polymerization IP address and virtual mac address, then according to described the Three corresponding relationships generate virtual machine IP address, the polymerization IP address, virtual mac address and described first of second edge gateway 4th corresponding relationship of Border Gateway Tunnel Identifier corresponding with second edge gateway.

In optional embodiment of the present invention, when the first virtual machine of first edge gateway connection will be to described second When second virtual machine of Border Gateway connection sends message, the destination IP of the available message of first edge gateway Location, the i.e. IP address of the second virtual machine, then first edge gateway searches the destination IP in the 4th local corresponding relationship The corresponding polymerization IP address in address and virtual mac address and Tunnel Identifier.Since first edge gateway does not record the second void The quasi- corresponding MAC Address of machine, therefore first edge gateway can use the virtual mac address as the target MAC (Media Access Control) address of the message. Then according to the corresponding polymerization IP address of purpose IP address, virtual mac address and the Tunnel Identifier found to the message Tunnel encapsulation is carried out, wherein can be using the polymerization IP address as the purpose IP address in encapsulation, with the IP of first edge gateway Source IP address of the address as encapsulation, and the Tunnel Identifier is added, the message after encapsulation is finally sent to second side Hoddy closes, so as to obtain the purpose IP address of message, and according to described after the second edge gateway decapsulates the message The message is forwarded to the second virtual machine in the ARP entry of the second edge gateway local by purpose IP address.It therefore can To make the virtual mac address act on behalf of the more of second edge gateway by simultaneous polymerization IP address and its corresponding virtual mac address A virtual machine MAC Address, to the occupancy of equipment and Internet resources when the MAC Address so as to reduce each virtual machine is synchronous.

In addition, in optional embodiment of the present invention, when the first edge gateway increases new virtual machine IP address, First edge gateway can further judge described new when new polymerization IP address is arranged for the new virtual machine IP address Polymerization IP address whether can be selected in existing polymerization IP address in the first corresponding relationship;If can be in existing polymerization It is selected in IP address, then the new virtual machine IP address can be updated to selected polymerization IP address by first edge gateway In corresponding first corresponding relationship, and the new virtual machine IP address and selected polymerization IP address are synchronized to described Two Border Gateway are to update second corresponding relationship;If can not be selected in existing polymerization IP address, for new void New polymerization IP address is arranged in quasi- machine IP address, and corresponding new virtual mac address is arranged for the new polymerization IP address, Then the new virtual machine IP address, new polymerization IP address and new virtual mac address can be updated to described first Corresponding relationship, and the second edge gateway is synchronized to update second corresponding relationship.

Virtual machine IP address after being polymerize by the embodiment of the present invention, in newly-increased virtual machine IP address, first edge Gateway may determine that whether new virtual machine IP address belongs to the corresponding network segment of existing polymerization IP address in the first corresponding relationship, If belonging to, which can be added in the first corresponding relationship, and by the new virtual machine IP address And corresponding polymerization IP address is synchronized to second edge gateway;If being not belonging to the corresponding network segment of existing polymerization IP address, New polymerization IP address can be set for new virtual machine IP address, and for the new polymerization IP address be arranged it is corresponding newly Virtual mac address, then can be by the new virtual machine IP address, new polymerization IP address and new virtual mac address more New extremely first corresponding relationship, and the second edge gateway is synchronized to update second corresponding relationship.

The embodiment of the present invention passes through the synchronization for the first corresponding relationship that will be generated after the polymerization of virtual machine IP address, it is ensured that First corresponding relationship and the second corresponding relationship can greatly reduce first edge gateway and second edge net with synchronized update Synchronizing information between pass, to alleviate the burden of core network.

Meanwhile if the embodiment of the present invention when the first corresponding relationship of first edge gateway updates, can be by all the One corresponding relationship is fully synchronized to second edge gateway, and second edge gateway can regenerate the second corresponding relationship.Alternatively, only will The first corresponding relationship relevant to update is synchronized to second edge gateway, and second edge gateway is according to the updated first corresponding pass System updates the second corresponding relationship.As long as updated first corresponding relationship can be synchronized to second edge gateway and synchronized more It is new, how updated first corresponding relationship is synchronized without limitation, to second edge gateway to the second corresponding relationship Update mode is also without limitation.It to make the objectives, technical solutions, and advantages of the present invention more comprehensible, below should to the present invention Scheme is described in further detail.

Referring to FIG. 2, being the networking schematic diagram in a kind of illustrative embodiments of the present invention, wherein data center edge is set It is equipped with EVI website 1 and EVI website 2, tunnel connection is established between two websites.Route aggregation function is enabled above EVI website, The virtual machine ARP entry of corresponding 3 VM is as shown in table 1 below EVI website 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 can learn to arrive virtual machine IP address therein according to ARP entry (table 1), and judge above-mentioned virtual machine Network segment belonging to IP address.Assuming that above-mentioned virtual machine IP address belongs to same network segment, then it is corresponding pre- can to search the network segment If polymerizeing IP address, it is assumed that be 150.1.1.1, then the virtual machine IP address learnt and its corresponding polymerization IP address be added Into polyaluminium chloride PAC list item, as shown in table 2.

Virtual machine IP address It polymerize 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

Later, it is D-D-D that EVI website 1, which is the virtual mac address of polymerization IP address setting,.

EVI website 1 is synchronized to the polyaluminium chloride PAC list item and virtual mac address the EVI website 2 of opposite end.EVI website 2 After receiving EVI website 1 synchronous polyaluminium chloride PAC list item and virtual mac address, the polyaluminium chloride PAC list item can be being locally recorded, and Be locally generated gateway A RP list item, including polymerization IP address 150.1.1.1, the corresponding virtual mac address of the IP address, Next-hop is the VXLAN Tunnel Identifier of EVI website 1 and EVI website 2, as shown in table 3.

It polymerize IP address Virtual mac address Next-hop 150.1.1.1 D-D-D The tunnel VXLAN

Table 3

When VM4 sends message to VM1, the purpose MAC of the message is the MAC Address of 2 virtual interface of EVI website, destination IP Address is the IP address 1.1.1.2 of VM1.When the message reaches EVI website 2, EVI website 2 can be extracted from the message first The purpose IP address of message is 1.1.1.2, then searches polyaluminium chloride PAC list item (table 2), it is corresponding to obtain IP address 1.1.1.2 It polymerize IP address 150.1.1.1, the gateway A RP list item of inquiry table 3 is then removed according to polymerization IP address 150.1.1.1, obtains public Net the Tunnel Identifier in the tunnel VXLAN.Since EVI website 2 MAC Address for not recording VM1, EVI website 2 can be virtual with this Target MAC (Media Access Control) address of the MAC Address D-D-D as the message.Then the message is carried out VXLAN encapsulation by EVI website 2, is packaged into Overlay message, the purpose IP address of the Overlay message are polymerization IP address 150.1.1.1.EVI website 2 will later Overlay message is forwarded by the tunnel VXLAN to EVI website 1.

After Overlay message reaches EVI website 1, EVI website 1 is first released from the VXLAN encapsulation of Overlay message, by It is virtual mac address D-D-D in the purpose MAC of message, purpose IP address is the IP address 1.1.1.2 of VM1, so EVI website 1 It needs according to previously study to ARP entry (table 1) inside data center, with finding the corresponding MAC of IP address 1.1.1.2 of VM1 Message will be forwarded to VM1 from the AC mouth of EVI website 1 further according to MAC Address A-A-A by location A-A-A.

In above-mentioned synchronizing process, EVI website 1 only needs the corresponding virtual mac address of simultaneous polymerization IP address, without will be every The MAC Address of a VM is synchronized to opposite end, therefore can reduce synchronous data volume, avoids the flooding phenomenon of ARP message.

Based on identical design, the present invention also provides a kind of route synchronization device, the device can by software realization, It can be realized by way of hardware or software and hardware combining.Taking software implementation as an example, route synchronization device conduct of the invention Device on one logical meaning is by the CPU of Border Gateway where it by computer program instructions corresponding in memory It is run after reading.

Fig. 3 and Fig. 4 is please referred to, is a kind of one of illustrative embodiments of present invention route synchronization device 400, the dress It sets and is applied to first edge gateway, the basic running environment of the device includes CPU, memory and other hardware, from logic level On from the point of view of, which includes:

Address acquisition unit 401 is the virtual machine IP for obtaining the virtual machine IP address of the first edge gateway Corresponding polymerization IP address is arranged in address;

Address setting unit 402, for corresponding virtual mac address to be arranged for the polymerization IP address;

Relationships synchronization unit, for generating the first of the virtual machine IP address, polymerization IP address and virtual mac address Corresponding relationship 403, and first corresponding relationship is synchronized to second edge gateway, so that the second edge gateway is according to institute It states the first corresponding relationship and generates virtual machine IP address, polymerization IP address, virtual mac address and the first edge gateway and the Second corresponding relationship of the corresponding Tunnel Identifier of two Border Gateway.

Optionally, the address setting unit 401, specifically for judging network segment belonging to virtual machine IP address respectively, It will be the preset polymerization IP address of this network segment as the polymerization IP address of the virtual machine IP address in this network segment in same network segment.

Optionally, described device 400 further include:

Address receiving unit 404, the virtual machine IP address of the second edge gateway for receiving second edge gateway synchronization, It polymerize the third corresponding relationship of IP address and virtual mac address;

Relationship generation unit 405, with being used to generate the virtual machine IP of second edge gateway according to the third corresponding relationship Location, polymerization IP address, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway the Four corresponding relationships.

Optionally, described device 400 further include:

Packet sending unit 406, when the first virtual machine of first edge gateway connection will be to the second edge net When correlating the second virtual machine transmission message connect, for obtaining the purpose IP address of the message, and it is corresponding the local the 4th The corresponding polymerization IP address in the destination IP address and virtual mac address and Tunnel Identifier are searched in relationship;According to finding The corresponding polymerization IP address of purpose IP address, virtual mac address and Tunnel Identifier to the message carry out tunnel encapsulation simultaneously It is sent to the second edge gateway, so that after the second edge gateway decapsulates the message received, according to the mesh IP address the message is forwarded to the second virtual machine.

Optionally, described device 400 further include:

Address updating unit 407, when the first edge gateway increases new virtual machine IP address, for being described When new polymerization IP address is arranged in new virtual machine IP address, judge whether the new polymerization IP address can be corresponding first It is selected in existing polymerization IP address in relationship;If so, the new virtual machine IP address to be updated to the polymerization IP of selection In corresponding first corresponding relationship in address, and the polymerization IP address of new the virtual machine IP address and selection is synchronized to described Second edge gateway is to update second corresponding relationship;If it is not, then new polymerization IP is arranged for new virtual machine IP address Location, and corresponding new virtual mac address is set for the new polymerization IP address, by the new virtual machine IP address, newly Polymerization IP address and new virtual mac address be updated to first corresponding relationship, and be synchronized to the second edge net It closes to update second corresponding relationship.

It can be seen that the present invention can be described virtual by the virtual machine IP address of the acquisition first edge gateway Corresponding polymerization IP address and the corresponding virtual mac address of the polymerization IP address is arranged in machine IP address;It generates described virtual First corresponding relationship of machine IP address, polymerization IP address and virtual mac address, and first corresponding relationship is synchronized to the Two Border Gateway, so that the second edge gateway generates virtual machine IP address, polymerization IP according to first corresponding relationship Second corresponding relationship of location, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway. So as to mitigate the burden of core network, avoids ARP message the phenomenon that flooding on core network, improve the forwarding effect of business Rate.

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 application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.

The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of route synchronization method, which is characterized in that the method is applied to first edge gateway, which comprises
The virtual machine IP address of the first edge gateway is obtained, corresponding polymerization IP is set for the virtual machine IP address Location;
For the polymerization IP address, corresponding virtual mac address is set;
The first corresponding relationship of the virtual machine IP address, polymerization IP address and virtual mac address is generated, and by described first Corresponding relationship is synchronized to second edge gateway, so that the second edge gateway generates described the according to first corresponding relationship The virtual machine IP address of one Border Gateway, the polymerization IP address, the virtual mac address and the first edge net Close the second corresponding relationship of Tunnel Identifier corresponding with second edge gateway.
2. the method according to claim 1, wherein described be arranged corresponding polymerization for the virtual machine IP address IP address, comprising:
Network segment belonging to virtual machine IP address is judged respectively, in same network segment, will be made for the preset polymerization IP address of this network segment For in the polymerization IP address of the virtual machine IP address of this network segment.
3. the method according to claim 1, wherein the method also includes:
With receiving the virtual machine IP address, polymerization IP address and Virtual MAC of the second edge gateway of second edge gateway synchronization The third corresponding relationship of location;
According to the third corresponding relationship, with generating the virtual machine IP address, polymerization IP address, Virtual MAC of second edge gateway 4th corresponding relationship of location and first edge gateway Tunnel Identifier corresponding with second edge gateway.
4. according to the method described in claim 3, it is characterized in that, when the first virtual machine of first edge gateway connection is wanted When the second virtual machine connected to the second edge gateway sends message, the method also includes:
The first edge gateway obtains the purpose IP address of the message, and in the 4th local corresponding relationship described in lookup The corresponding polymerization IP address of purpose IP address and virtual mac address and Tunnel Identifier;
According to the corresponding polymerization IP address of the purpose IP address found, virtual mac address and Tunnel Identifier to the message It carries out tunnel encapsulation and is sent to the second edge gateway, so that the second edge gateway decapsulates the message received Afterwards, the message is forwarded to by the second virtual machine according to the destination IP address.
5. the method according to claim 1, wherein working as the first edge gateway with increasing new virtual machine IP When location, the method also includes:
When new polymerization IP address is arranged for the new virtual machine IP address, judge that the new polymerization IP address whether can It is selected in enough polymerization IP address existing in the first corresponding relationship;
If so, in corresponding first corresponding relationship of polymerization IP address that the new virtual machine IP address is updated to selection, And the polymerization IP address of new the virtual machine IP address and selection is synchronized to the second edge gateway to update described Two corresponding relationships;
It if it is not, new polymerization IP address then is arranged for new virtual machine IP address, and is the new polymerization IP address setting pair The new virtual mac address answered, by the new virtual machine IP address, new polymerization IP address and new virtual mac address It is updated to first corresponding relationship, and is synchronized to the second edge gateway to update second corresponding relationship.
6. a kind of route synchronization device, which is characterized in that described device is applied to first edge gateway, and described device includes:
Address acquisition unit is set for obtaining the virtual machine IP address of the first edge gateway for the virtual machine IP address Set corresponding polymerization IP address;
Address setting unit, for corresponding virtual mac address to be arranged for the polymerization IP address;
Relationships synchronization unit, first for generating the virtual machine IP address, polymerization IP address and virtual mac address are corresponding Relationship, and first corresponding relationship is synchronized to second edge gateway, so that the second edge gateway is according to described first Corresponding relationship generates the virtual machine IP address of the first edge gateway, the polymerization IP address, the virtual mac address And the second corresponding relationship of first edge gateway Tunnel Identifier corresponding with second edge gateway.
7. device according to claim 6, which is characterized in that
The address setting unit in same network segment, will be specifically for judging network segment belonging to virtual machine IP address respectively Polymerization IP address of the preset polymerization IP address of this network segment as the virtual machine IP address in this network segment.
8. device according to claim 6, which is characterized in that described device further include:
Address receiving unit, the virtual machine IP address of the second edge gateway for receiving second edge gateway synchronization, polymerization IP The third corresponding relationship of address and virtual mac address;
Relationship generation unit, for generating virtual machine IP address, the polymerization of second edge gateway according to the third corresponding relationship IP address, virtual mac address and first edge gateway Tunnel Identifier corresponding with second edge gateway it is the 4th corresponding Relationship.
9. device according to claim 8, which is characterized in that described device further include:
Packet sending unit will be connected when the first virtual machine of first edge gateway connection to the second edge gateway When second virtual machine sends message, looked into for obtaining the purpose IP address of the message, and in the 4th local corresponding relationship Look for the corresponding polymerization IP address in the destination IP address and virtual mac address and Tunnel Identifier;According to the destination IP found The corresponding polymerization IP address in address, virtual mac address and Tunnel Identifier carry out tunnel encapsulation to the message and are sent to institute Second edge gateway is stated, so that after the second edge gateway decapsulates the message received, according to the destination IP address The message is forwarded to the second virtual machine.
10. device according to claim 6, which is characterized in that described device further include:
Address updating unit, when the first edge gateway increases new virtual machine IP address, for for the new void When new polymerization IP address is arranged in quasi- machine IP address, judge whether the new polymerization IP address can be in the first corresponding relationship It is selected in existing polymerization IP address;If so, the new virtual machine IP address to be updated to the polymerization IP address pair of selection In the first corresponding relationship answered, and the polymerization IP address of new the virtual machine IP address and selection is synchronized to second side Hoddy is closed to update second corresponding relationship;If it is not, new polymerization IP address then is arranged for new virtual machine IP address, and it is Corresponding new virtual mac address is arranged in the new polymerization IP address, by the new virtual machine IP address, new polymerization IP Address and new virtual mac address are updated to first corresponding relationship, and are synchronized to the second edge gateway to update Second corresponding relationship.
CN201610059836.8A 2016-01-27 2016-01-27 A kind of route synchronization method and device 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 CN105763444A (en) 2016-07-13
CN105763444B true CN105763444B (en) 2019-03-15

Family

ID=56342646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610059836.8A 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)

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

Also Published As

Publication number Publication date
CN105763444A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
US8824485B2 (en) Efficient software-based private VLAN solution for distributed virtual switches
KR101692751B1 (en) Load distribution in data networks
US8369333B2 (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
CN104350467B (en) Elasticity for the cloud security using SDN carries out layer
US8923294B2 (en) Dynamically provisioning middleboxes
EP2745208B1 (en) Distributed logical l3 routing
US8750288B2 (en) Physical path determination for virtual network packet flows
US9407501B2 (en) Provisioning services in legacy mode in a data center network
US9686180B2 (en) Managing routing information for tunnel endpoints in overlay networks
US9847915B2 (en) Network function virtualization for a network device
US20160359703A1 (en) Technologies for determining sensor placement and topology
JP5890595B2 (en) Provision of virtual security appliance architecture for virtual cloud infrastructure
US20130329725A1 (en) Facilitating operation of one or more virtual networks
US20150124643A1 (en) Miscabling detection protocol
US9331940B2 (en) System and method providing distributed virtual routing and switching (DVRS)
US9942148B1 (en) Tunneled packet aggregation for virtual networks
CN103595648B (en) Method and system for balancing load at receiving side of server
JP5927352B2 (en) IP multicast service retirement processing for MPLS-based virtual private cloud networking
US9858104B2 (en) Connecting fabrics via switch-to-switch tunneling transparent to network servers
US20150200847A1 (en) Method and system for implementing a network policy using a vxlan network identifier
KR20150009550A (en) System and method for routing traffic between distinct infiniband subnets based on source routing
CN105264493B (en) Dynamic virtual machine migration on information centre's network
US9276843B2 (en) Virtual link aggregation extension (vLAG+) enabled in a trill-based fabric network
US9065766B2 (en) Medium for storing packet conversion program, packet conversion apparatus and packet conversion method
CN103200069B (en) A kind of method and apparatus of Message processing

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
CB02 Change of applicant information
GR01 Patent grant