CN108199967A - Route processing method and device - Google Patents
Route processing method and device Download PDFInfo
- Publication number
- CN108199967A CN108199967A CN201810279473.8A CN201810279473A CN108199967A CN 108199967 A CN108199967 A CN 108199967A CN 201810279473 A CN201810279473 A CN 201810279473A CN 108199967 A CN108199967 A CN 108199967A
- Authority
- CN
- China
- Prior art keywords
- equipment
- vtep equipment
- vtep
- mac
- address
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Abstract
The present embodiments relate to a kind of route processing method and device, including:Receive the more ownership route withdraw instruction messages sent as the 2nd VTEP equipment of DF equipment in multi-home networking;When being in together in multi-home networking with the 2nd VTEP equipment, according to more ownership route withdraw instruction messages, the gravity treatment for carrying out DF equipment in multi-home networking is lifted;When being elected as DF equipment, by from Static Learning at the 2nd VTEP equipment to the first MAC IP address list items be converted to dynamic learning to the 2nd MAC IP address list items;To whole VTEP equipment in multi-home networking and the 3rd VTEP equipment outside multi-home networking sends the first address synchronization message.The route processing method and device provided according to embodiments of the present invention can alleviate the problem of data message is lost during restarting in multi-home networking as the 2nd VTEP equipment of DF equipment, improve the transmission quality of data message.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of route processing methods and device.
Background technology
Ether Virtual Private Network (English:Ethernet Virtual Private Network, referred to as:EVPN it is) a kind of
Two-layer VPN technology.In order to improve the reliability of access side, agreement defines EVPN and belongs to access net more, so as to improve business number
According to the reliability of message.In the access net of ownership more than EVPN, an empty machine (English:Virtual Machine, referred to as:VM) may be used
To access different expansible Virtual Local Area Network endpoint of a tunnel (English simultaneously by multilink:VXLAN Tunnel End
Point, referred to as:VTEP) equipment, can mutually back up between different VTEP equipment and load balancing.VM accesses different VTEP
The multilink of equipment forms an ethernet segment (English:Ethernet Segment, referred to as:ES).Ethernet segment identifies (English
Text:Ethernet Segment Identifier, referred to as:ESI) can be used for identifying an ES.
A corresponding VM accesses different VTEP equipment, in order to make broadcast, unknown unicast, multicast (English:Broadcast、
Unknown Unicast or Multicast, referred to as:BUM) the problem of loop and more parts, multiple VTEP equipment are not present in flow
A DF equipment can be elected from the VTEP equipment for meeting identical ESI values.The forwarding-table item of DF learning equipments VM, and can
To synchronize the forwarding-table item of VM to neighbours VTEP, so that neighbours VTEP can be according to forwarding-table item to VM forwarding data packets.
But when DF equipment is restarted in the access net of ownership more than EVPN, DF equipment can send routing to neighbours VTEP equipment and remove
Pin instruction, so that distal end VTEP equipment (not being in the VTEP equipment in multi-home networking together with DF equipment) revocation DF equipment is same
The forwarding list to come is walked, VTEP equipment in distal end is without normal direction VM forwarding data packets at this time.At the same time, it is in together with DF equipment
Re-elect DF equipment in neighbours' VTEP equipment in multi-home networking, the new DF equipment MAC-IP of dynamic learning VM again
After the list item of location, the MAC-IP address list items are synchronized to distal end VTEP equipment, distal end VTEP equipment receives new DF equipment and synchronizes
MAC-IP address list items after, generate new forwarding list, can be continued according to newly-generated forwarding list to VM forward data
Message, but whole cycle takes longer, data message is caused to be lost serious.
Invention content
In view of this, the present invention proposes a kind of route processing method, can alleviate and DF equipment is used as in multi-home networking
The 2nd VTEP equipment restart during data message the problem of losing, improve the transmission quality of data message.
On the one hand, the present invention provides a kind of route processing method, applied to the first expansible Virtual Local Area Network tunnel
Endpoint VTEP equipment, the method includes:
Receive the more ownership route withdraw instruction messages sent as the 2nd VTEP equipment of DF equipment in multi-home networking;
When the first VTEP equipment and the 2nd VTEP equipment are in together in the multi-home networking, according to described
More ownership route withdraw instruction messages, the gravity treatment that the first VTEP equipment carries out DF equipment in the multi-home networking are lifted;
It, will be from statics at the 2nd VTEP equipment when the first VTEP equipment is elected as the DF equipment
The first MAC-IP address list items practised are converted to the 2nd MAC-IP address list items that the first VTEP equipment dynamic learnings arrive;
To whole VTEP equipment in the multi-home networking and the 3rd VTEP outside the multi-home networking
Equipment sends the first address synchronization message, and the first address synchronization message includes the 2nd MAC-IP address list items;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
On the other hand, the present invention provides a kind of route processing method, applied to the expansible Virtual Local Area Network tunnel of third
Road endpoint VTEP equipment, the method includes:
Receive the first address synchronization message as the first VTEP equipment transmission of DF equipment in multi-home networking, described the
One address synchronization message includes the 2nd MAC-IP address list items, and the first VTEP equipment is the VTEP equipment in multi-home networking
Determined after the gravity treatment of DF equipment is lifted;
Spare forwarding list is generated according to the 2nd MAC-IP address list items;
When the MAC-IP addresses for receiving the transmission of the 2nd VTEP equipment cancel instruction, delete from the 2nd VTEP equipment
First effective forwarding list that place's Static Learning obtains, and after the data message sent to host is received, according to described standby
The data message is forwarded with forwarding list;The 2nd VTEP equipment carries out DF for the VTEP equipment in the multi-home networking
Initial DF equipment before equipment gravity treatment act.
In another aspect, the present invention provides a kind of route processing device, applied to the first expansible Virtual Local Area Network tunnel
Road endpoint VTEP equipment, described device include:
Receiving module, more ownership routing that the 2nd VTEP equipment for receiving as DF equipment in multi-home networking is sent
Cancel instruction message;
Module is elected, the multi-home networking is in together with the 2nd VTEP equipment for working as the first VTEP equipment
When interior, according to more ownership route withdraw instruction messages, the first VTEP equipment carries out DF in the multi-home networking and sets
Standby gravity treatment is lifted;
Modular converter, will be from described second for when the first VTEP equipment is elected as the DF equipment
At VTEP equipment Static Learning to the first MAC-IP address list items be converted to that the first VTEP equipment dynamic learnings arrive
Two MAC-IP address list items;
First sending module, for whole VTEP equipment in the multi-home networking and in more ownership
The 3rd VTEP equipment outside networking sends the first address synchronization message, and the first address synchronization message includes the 2nd MAC-
IP address list item;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
In another aspect, the present invention provides a kind of route processing device, applied to the expansible Virtual Local Area Network tunnel of third
Road endpoint VTEP equipment, described device include:
First receiving module, the first ground that the first VTEP equipment for receiving as DF equipment in multi-home networking is sent
Location synchronization message, the first address synchronization message include the 2nd MAC-IP address list items, and the first VTEP equipment is returns more
Belong to the VTEP equipment in networking determine after the gravity treatment of DF equipment is lifted;
First generation module, for generating spare forwarding list according to the 2nd MAC-IP address list items;
Processing module, for when the MAC-IP addresses for receiving the transmission of the 2nd VTEP equipment cancel instruction, deleting from institute
It states first effective forwarding list that Static Learning at the 2nd VTEP equipment obtains, and is receiving the data message that is sent to host
Afterwards, the data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is in the multi-home networking
VTEP equipment carries out the initial DF equipment before the gravity treatment of DF equipment is lifted.
In another aspect, the present invention provides a kind of route processing device, including:Processor;It can be held for storing processor
The memory of row instruction;Wherein, the processor is configured as performing the above method.
In another aspect, the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, it is stored thereon with computer
Program instruction, wherein, the computer program instructions realize the above method when being executed by processor.
Therefore, by applying route processing method provided in an embodiment of the present invention and device, the first VTEP equipment is receiving
After the more ownership route withdraw instruction messages sent in multi-home networking as the 2nd VTEP equipment of DF equipment, first
When VTEP equipment is in together with the 2nd VTEP equipment in the multi-home networking, the first VTEP equipment is according to more ownership route withdraws
The gravity treatment that instruction message carries out DF equipment is lifted, and when the first VTEP equipment is elected as DF equipment, will be from the 2nd VTEP equipment
After first MAC-IP address list items of Static Learning are converted to the 2nd MAC-IP address list items of dynamic learning, by the 2nd MAC-IP
Address list item by the first address synchronization message synchronization to multi-home networking outside the 3rd VTEP equipment.So, third
VTEP equipment can build spare forwarding list according to the 2nd MAC-IP addresses, with after the 2nd VTEP equipment is offline, Neng Goutong
Spare forwarding list is crossed to host forwarding data packets, the 2nd VTEP equipment is alleviated and restarts asking for period data message loss
Topic improves the transmission quality of data message.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the embodiment of the present invention
It will be apparent.
Description of the drawings
Comprising in the description and the attached drawing of a part for constitution instruction and specification together illustrate the present invention's
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows a kind of schematic network structure of multi-home networking;
Fig. 2 shows a kind of flow charts of route processing method according to an embodiment of the invention;
Fig. 3 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 4 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 5 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 6 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 7 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 8 shows a kind of flow chart of route processing method according to an embodiment of the invention;
Fig. 9 shows a kind of structure diagram of route processing device according to an embodiment of the invention;
Figure 10 shows a kind of structure diagram of route processing device according to an embodiment of the invention;
Figure 11 shows a kind of structure diagram of route processing device according to an embodiment of the invention;
Figure 12 shows a kind of structure diagram of route processing device according to an embodiment of the invention;
Figure 13 is the hardware block diagram according to a kind of route processing device shown in an exemplary embodiment.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Reference numeral represent functionally the same or similar element.Although the various aspects of embodiment are shown in the drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the embodiment of the present invention, numerous tools is given in specific embodiment below
Body details.It will be appreciated by those skilled in the art that without certain details, the embodiment of the present invention can equally be implemented.One
In a little examples, method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight
The purport of the embodiment of the present invention.
Fig. 1 shows a kind of schematic network structure of multi-home networking, wherein, VTEP 1 (1.1.1.1), VTEP2
(2.2.2.2), VTEP3 (3.3.3.3), VTEP4 (4.4.4.4) and VTEP5 (5.5.5.5) represent VTEP equipment, wherein VTEP
1st, VTEP2, VTEP3, VTEP4 belong to same multi-home networking, are configured with identical ESI values, and VTEP2 in the multi-home networking
As DF equipment.VM represents host, and MAC-IP addresses are:10.1.1.2a-a-a, LSW represents interchanger, and VM passes through interchanger
LSW belongs to access VTEP1, VTEP2, VTEP3, VTEP4 more.
The MAC-IP address list items that VTEP2 learns to VTEP5, VTEP 1, VTEP3 and VTEP4 synchronization from VM, VTEP5 connect
After the MAC-IP address list items for receiving VTEP2 synchronizations, it can be turned according to the ESI of VTEP2 and the generation of above-mentioned MAC-IP address list items
List is sent out, such as table 1, and then VTEP5 can be according to the forwarding list to VM forwarding data packets.
Table 1
During VTEP2 progress edition upgradings are restarted, VTEP5 can cancel above-mentioned forwarding list after VTEP2 is offline,
Until after new DF equipment is re-elected out between VTEP1, VTEP3, VTEP4, by the MAC- of new DF equipment dynamic learnings VM
IP address list item and after being synchronized to VTEP5, VTEP5 side can be to VM forwarding data packets, and between VTEP1, VTEP3, VTEP4
Re-elect out new DF equipment and new this process of the MAC-IP address list items of DF equipment dynamic learnings VM take it is longer,
The problem of VTEP5 can be caused in the meantime without normal direction VM forwarding data packets, data message is caused to be lost.
To solve the above problems, VTEP equipment is receiving the VTEP2 transmissions as DF equipment in the embodiment of the present invention
After more ownership route withdraw instruction messages, whether the determining VTEP2 with this as DF equipment is located in same multi-home networking.
If being located in same multi-home networking (by taking VTEP3 as an example) with VTEP2, the gravity treatment that VTEP3 carries out DF equipment is lifted,
If VTEP3 elections become new DF equipment, VTEP3 will be converted to from the first MAC-IP address list items of VTEP2 Static Learnings
After the 2nd MAC-IP address list items that the VTEP3 equipment dynamic learning arrives, the 2nd MAC-IP address table list items are synchronized to
VTEP1, VTEP2, VTEP4, VTEP5, so that VTEP5 can be generated according to the 2nd MAC-IP address list items that VTEP3 is synchronized
Spare forwarding list, and during VTEP3 is restarted, according to spare forwarding list to VM forwarding data packets, and then alleviate DF
The problem of data message is lost during device upgrade is restarted improves the transmission quality of data message.
Fig. 2 shows a kind of flow chart of route processing method according to an embodiment of the invention, this method can apply the
One expansible Virtual Local Area Network endpoint of a tunnel VTEP equipment.As shown in Fig. 2, this method includes the following steps.
Step 201 receives the more ownership route withdraws sent as the 2nd VTEP equipment of DF equipment in multi-home networking
Instruction message;
Specifically, in multi-home networking as the 2nd VTEP equipment of DF equipment in response to user in the 2nd VTEP equipment
Configuration operation, to the neighbours VTEP equipment (VTEP of VTEP equipment including same multi-home networking and different multi-home networkings
Equipment) more ownership route withdraw instruction messages are sent, wherein, which is used to notice VTEP equipment
The DF equipment is unavailable.
Step 202, when the first VTEP equipment and the 2nd VTEP equipment are in together in the multi-home networking,
According to more ownership route withdraw instruction messages, the first VTEP equipment carries out the weight of DF equipment in the multi-home networking
Election.
After first VTEP equipment receives more ownership route withdraw instruction messages that the 2nd VTEP equipment is sent, first is determined
Whether VTEP equipment is in together in multi-home networking with the 2nd VTEP equipment.Specifically, mostly in ownership route withdraw instruction message
Access circuit (English including the 2nd VTEP equipment:Attachment Circuit, referred to as:AC ESI values), the first VTEP are set
After the standby more ownership route withdraw instruction messages for receiving the 2nd VTEP equipment and sending, determine locally whether there is the ESI values to represent
AC, if the local AC that there is the ESI values to represent, it is determined that the first VTEP equipment is in more ownership groups together with the 2nd VTEP equipment
In net.
After determining that the first VTEP equipment and the 2nd VTEP equipment are in multi-home networking together, the first VTEP equipment is to neighbours
VTEP equipment sends ethernet segment (English:Ethernet Segment, referred to as:ES it) route, to carry out in multi-home networking
The gravity treatment of DF equipment is lifted.
Step 203, when the first VTEP equipment is elected as the DF equipment, will be from the 2nd VTEP equipment
Place's Static Learning to the first MAC-IP address list items be converted to the 2nd MAC-IP that the first VTEP equipment dynamic learnings arrive
Address list item.
Wherein, before the gravity treatment for carrying out DF equipment is lifted, the 2nd VTEP equipment is DF equipment.It is elected in the 2nd VTEP equipment
During as DF equipment, by host the MAC-IP address list items of the host of dynamic learning be synchronized to the first VTEP equipment, first
After VTEP equipment receives the MAC-IP address list items that the 2nd VTEP equipment synchronizes, Static Learning obtains the first MAC-IP address list items
Afterwards, the first MAC-IP address list items are issued to local.
After the gravity treatment for carrying out DF equipment is lifted, the first VTEP equipment is elected as new DF equipment.First VTEP equipment
First MAC-IP address list items are converted to the 2nd MAC-IP address list items of dynamic learning.Illustratively, the first MAC-IP
Location list item has first flag, which passes through static state for characterizing the first MAC-IP address list items for the first VTEP equipment
Study obtains.The first flag of first MAC-IP address list items is converted to second identifier by the first VTEP equipment, obtains having the
2nd MAC-IP address list items of two marks, the second identifier are the first VTEP equipment for characterizing the 2nd MAC-IP address list items
It is obtained by dynamic learning.
Step 204, to whole VTEP equipment in the multi-home networking and outside the multi-home networking
3rd VTEP equipment sends the first address synchronization message, and the first address synchronization message includes the 2nd MAC-IP address tables
;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
First VTEP equipment constructs the first address synchronization message according to the 2nd MAC-IP address list items, and the first address is same
Step message is sent to whole VTEP equipment in multi-home networking and the 3rd VTEP equipment outside multi-home networking, so that
After 3rd VTEP equipment receives the first address synchronization message, according to the 2nd MAC-IP addresses of the first address synchronization message carrying
List item builds spare forwarding list, can forward number to host according to spare forwarding list after the 2nd VTEP equipment is offline
According to message.
In order to which those skilled in the art is made to be better understood from the embodiment of the present invention, below by way of specific example to of the invention real
Example is applied to be illustrated.
With reference to Fig. 1, VTEP2 is before being restarted, and VTEP2 is operated in response to configuration of the user on VTEP2, Xiang Duogui
Belong to the VTEP5 outside VTEP1, VTEP3, VTEP4 and multi-home networking in networking and send more ownership route withdraw instruction messages.
After VTEP1, VTEP3, VTEP4 and VTEP5 receive more ownership route withdraw instruction messages, it is determined whether with VTEP2
It is in together in multi-home networking.Wherein, VTEP1, VTEP3 and VTEP4 determine to be in together in multi-home networking with VTEP2 respectively,
Then VTEP1, VTEP3 and VTEP4 carry out the gravity treatment act of DF equipment.Assuming that VTEP3 is elected as DF equipment, then VTEP3 will be from
After first MAC-IP address list items of VTEP2 Static Learnings are converted to the 2nd MAC-IP address list items of dynamic learning, to VTEP5
Forwarding includes the first address synchronization message of the 2nd MAC-IP address list items.
After VTEP5 receives the first address synchronization message, according to the 2nd MAC-IP address tables in the first address synchronization message
Item generates the spare forwarding table to host forwarding data packets.It is offline (for example, receiving the MAC-IP of VTEP2 transmissions in VTEP2
Address revocation instruction) after, according to spare forwarding table to VM forwarding data packets.
In terms of existing technologies, since VTEP3 receives more ownership route withdraw instruction messages of VTEP2 transmissions
When, the 2nd MAC-IP address tables of dynamic learning will be converted directly into from the first MAC-IP address list items of VTEP2 Static Learnings
Xiang Hou, synchronous 2nd MAC-IP address list items need not again from the 2nd MAC-IP of VM dynamic learnings VM to VTEP5, VTEP3
Location list item, therefore VTEP5 can be shortened and synchronize to obtain the time of the 2nd MAC-IP address list items from VTEP3, so can alleviate
Caused by VTEP2 restarts period the problem of the loss of data message, the transmission quality of data message is improved.
Therefore, by applying route processing method provided in an embodiment of the present invention, the first VTEP equipment is receiving return more
After belonging to the more ownership route withdraw instruction messages sent in networking as the 2nd VTEP equipment of DF equipment, in the first VTEP equipment
When being in together in the multi-home networking with the 2nd VTEP equipment, the first VTEP equipment is according to more ownership route withdraw instruction messages
The gravity treatment for carrying out DF equipment is lifted, and when the first VTEP equipment is elected as DF equipment, will be from the 2nd VTEP equipment Static Learnings
The first MAC-IP address list items be converted to the 2nd MAC-IP address list items of dynamic learning after, by the 2nd MAC-IP address list items
By the first address synchronization message synchronization to multi-home networking outside the 3rd VTEP equipment.So, the 3rd VTEP equipment energy
It is enough that spare forwarding list is built according to the 2nd MAC-IP addresses, after the 2nd VTEP equipment is offline, spare forwarding can be passed through
List alleviates the problem of data message is lost during the 2nd VTEP equipment is restarted, improves number to host forwarding data packets
According to the transmission quality of message.
In another embodiment, mostly ownership route withdraw instruction message includes the first ESI information, and the first VTEP equipment can
To determine whether the first VTEP equipment is in together in multi-home networking with the 2nd VTEP equipment according to the first ESI information.Lead to below
The flow chart of route processing method shown in Fig. 3 is crossed, the route processing method of the embodiment of the present invention is described in detail.
Specifically, route processing method shown in Fig. 3 includes the following steps:
Step 301 receives the more ownership route withdraws sent as the 2nd VTEP equipment of DF equipment in multi-home networking
Instruction message;Wherein, mostly ownership route withdraw instruction message includes the first ESI information.
It should be noted that step 201 is to step 204 in step 301 and step 304 to step 306 and above-described embodiment
Similar, details are not described herein for the embodiment of the present invention.
Step 302 judges whether there is the corresponding outgoing interface of the first ESI information in the first VTEP equipment;
First VTEP equipment obtains the first ESI information from more ownership route withdraw instruction messages of reception, and searches this
Whether there is the corresponding AC of the first ESI information in the AC (outgoing interface) on ground.
If there is the corresponding outgoing interface of the first ESI information in step 303, the first VTEP equipment, it is determined that
The first VTEP equipment is in together with the 2nd VTEP equipment in the multi-home networking.
In the local AC corresponding there are the first ESI information of the first VTEP equipment, the first VTEP equipment and second is determined
VTEP equipment is belonged in the multi-home networking.
Step 304, when the first VTEP equipment and the 2nd VTEP equipment are in together in the multi-home networking,
According to more ownership route withdraw instruction messages, the first VTEP equipment carries out the weight of DF equipment in the multi-home networking
Election;
Step 305, when the first VTEP equipment is elected as the DF equipment, will be from the 2nd VTEP equipment
Place's Static Learning to the first MAC-IP address list items be converted to the 2nd MAC-IP that the first VTEP equipment dynamic learnings arrive
Address list item;
Step 306, to whole VTEP equipment in the multi-home networking and outside the multi-home networking
3rd VTEP equipment sends the first address synchronization message, and the first address synchronization message includes the 2nd MAC-IP address tables
;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
So, the first VTEP equipment can be believed according to the first ESI carried in more ownership route withdraw instruction information
Breath, determines whether the first VTEP equipment is belonged to the 2nd VTEP equipment in multi-home networking, specifically, in the first VTEP equipment
During local AC corresponding with the first ESI information, determine that the first VTEP equipment is in multi-home networking together with the 2nd VTEP equipment
Interior, then the first VTEP equipment sends the 2nd MAC-IP address list items to the 3rd VTEP equipment.
In another embodiment, the first VTEP equipment sends to the 3rd VTEP equipment and carries the 2nd MAC-IP address list items
The first address synchronization message after, also to the 3rd VTEP equipment send more than first ownership routing so that the 3rd VTEP equipment roots
Spare forwarding list is generated according to the 2nd MAC-IP address list items and more than first ownership routings.At routing shown in Fig. 4
The route processing method of the embodiment of the present invention is described in detail in the flow chart of reason method.
Specifically, route processing method shown in Fig. 4 includes the following steps:
Step 401 receives the more ownership route withdraws sent as the 2nd VTEP equipment of DF equipment in multi-home networking
Instruction message;
It should be noted that in the embodiment of the present invention in step 401 to step 404 and above-described embodiment step 201 to step
Rapid 204 is similar, and details are not described herein for the embodiment of the present invention.
Step 402, when the first VTEP equipment and the 2nd VTEP equipment are in together in the multi-home networking,
According to more ownership route withdraw instruction messages, the first VTEP equipment carries out the weight of DF equipment in the multi-home networking
Election;
Step 403, when the first VTEP equipment is elected as the DF equipment, will be from the 2nd VTEP equipment
Place's Static Learning to the first MAC-IP address list items be converted to the 2nd MAC-IP that the first VTEP equipment dynamic learnings arrive
Address list item;
Step 404, to whole VTEP equipment in the multi-home networking and outside the multi-home networking
3rd VTEP equipment sends the first address synchronization message, and the first address synchronization message includes the 2nd MAC-IP address tables
;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
Step 405 sends more than first ownership routings to the 3rd VTEP equipment, for making the 3rd VTEP equipment roots
Spare forwarding list is generated according to the 2nd MAC-IP address list items and more than the first ownership routing, and is being deleted from described the
After effective forwarding list that Static Learning obtains at two VTEP equipment, according to the spare forwarding list to the data message of host
It is forwarded processing.
First VTEP equipment sends the after the 3rd VTEP equipment sends the first address synchronization message, to the 3rd VTEP equipment
Belong to routing more one, the ESI information of the outgoing interface of the first VTEP can be carried in more than the first ownership routing.3rd VTEP equipment
After receiving more than first ownership routings, the outgoing interface with the ESI information is searched (in the multi-home networking residing for the first VTEP equipment
VTEP equipment carry out DF equipment gravity treatment lift when, to the 3rd VTEP equipment send ES routing, the ES routing in carry send
The ESI information of the AC of the VTEP equipment of ES routings, the 3rd VTEP equipment receives and stores above-mentioned ES routings, and is receiving first
It after more ownership routings, searches the ES with the first ESI information and route, determine to send the VTEP equipment and the 3rd VTEP of ES routings
The VXLAN tunnels of equipment are the outgoing interface with ESI information).
3rd VTEP equipment generates spare forwarding list according to the outgoing interface found and the 2nd MAC-IP address list items.
When 2nd VTEP equipment is reached the standard grade, the 3rd VTEP equipment according to from effective forwarding list that the 2nd VTEP equipment Static Learnings obtain to
Host forwarding data packets, after the 2nd VTEP equipment is offline, the 3rd VTEP equipment deletes above-mentioned effective forwarding list, according to standby
With forwarding list to host forwarding data packets.
Still by taking example shown in FIG. 1 as an example.VTEP3 sends the first address synchronization message (first address synchronization to VTEP5
Message includes the 2nd MAC-IP address list items) and first more belong to routing iinformation (this more than first belong to routing iinformation include
ESI information).After VTEP5 receives the first address synchronization message and more than first ownership routing iinformations, determine that there is the ESI information
Outgoing interface (including:VTEP1, VTEP3, VTEP4), then VTEP5 is according to the 2nd MAC-IP address list items and with the ESI information
Outgoing interface generate spare forwarding list, with reference to table 2.
Table 2
VTEP5 can pass through 3 outgoing interfaces (VXLAN tunnels 1, VXLAN when receiving the data message forwarded to VM
Tunnel 3, VXLAN tunnels 4) to VM forwarding data packets, to realize load balancing.
Therefore, using route processing method provided in an embodiment of the present invention, the first VTEP equipment will be from the 2nd VTEP equipment
After first MAC-IP address list items of Static Learning are converted to the 2nd MAC-IP address list items of dynamic learning, by the 2nd MAC-IP
Address list item by the first address synchronization message synchronization to multi-home networking outside the 3rd VTEP equipment after, also set to the 3rd VTEP
Preparation is sent belongs to routing more first.So, the 3rd VTEP equipment can belong to according to the 2nd MAC-IP addresses and more than first
The spare forwarding list of route construction, the spare forwarding list include at least one outgoing interface, with offline in the 2nd VTEP equipment
Afterwards, the 3rd VTEP equipment can alleviate the 2nd VTEP equipment and restart by spare forwarding list to host forwarding data packets
The problem of period data message is lost, improves the transmission quality of data message, and realize load balancing.
Fig. 5 shows a kind of flow chart of route processing method according to an embodiment of the invention, and this method can apply the
Three VTEP equipment.As shown in figure 5, this method includes the following steps.
Step 501, reception disappear as the first address synchronization that the first VTEP equipment of DF equipment in multi-home networking is sent
Breath, the first address synchronization message include the 2nd MAC-IP address list items, and the first VTEP equipment is in multi-home networking
VTEP equipment determined after DF equipment gravity treatment is lifted.
Specifically, in multi-home networking as the 2nd VTEP equipment of DF equipment in response to user in the 2nd VTEP equipment
Configuration operation, the 3rd VTEP equipment outside the VTEP equipment and multi-home networking into same multi-home networking sends belong to more
Route withdraw instruction message.
After first VTEP equipment receives more ownership route withdraw instruction messages, the gravity treatment for carrying out DF equipment is lifted, first
After VTEP equipment is elected as DF equipment, the first VTEP equipment will be from the first MAC-IP addresses of the 2nd VTEP equipment Static Learnings
After list item is converted to the 2nd MAC-IP address list items of dynamic learning, include the 2nd MAC-IP addresses to the transmission of the 3rd VTEP equipment
First address synchronization message of list item.
Step 502 generates spare forwarding list according to the 2nd MAC-IP address list items;
After 3rd VTEP equipment receives the first address synchronization message that the first VTEP equipment is sent, the first address synchronization is obtained
The 2nd MAC-IP address list items in message, and generated according to the 2nd MAC-IP address list items for host forwarding data packets
Spare forwarding list.
Step 503, when receive the 2nd VTEP equipment transmission MAC-IP addresses cancel instruction when, delete from described second
First effective forwarding list that Static Learning obtains at VTEP equipment, and after the data message of host is received, according to described
Spare forwarding list forwards the data message;The 2nd VTEP equipment is carried out for the VTEP equipment in the multi-home networking
Initial DF equipment before DF equipment gravity treatment act.
When the 2nd VTEP equipment is offline, VTEP equipment and more ownership of the 2nd VTEP equipment into same multi-home networking
The 3rd VTEP equipment outside networking sends the revocation instruction of MAC-IP addresses.3rd VTEP equipment receives MAC-IP addresses revocation and refers to
After showing message, first effective forwarding list from Static Learning at the 2nd VTEP is deleted.Receiving the data that are sent to host
During message, the 3rd VTEP equipment is by spare forwarding list to host forwarding data packets.
Therefore, by applying route processing method provided in an embodiment of the present invention, the 3rd VTEP equipment receives the first VTEP
It, can be according to the 2nd MAC-IP address tables after the first address synchronization message including the 2nd MAC-IP address list items that equipment is sent
Item generates spare forwarding list, to receive the MAC-IP sent in multi-home networking as the 2nd VTEP equipment of DF equipment
After the revocation instruction of address, first effective forwarding list from the 2nd VTEP equipment Static Learnings is deleted, and receiving to host
During the data message of transmission, by spare forwarding list to host forwarding data packets.
It, will be from second after becoming DF equipment by gravity treatment act for the first VTEP equipment due to the 2nd MAC-IP address list items
After first MAC-IP address list items of VTEP equipment Static Learnings are converted to the 2nd MAC-IP address list items of dynamic learning, pass through
First address synchronization message synchronization to the 3rd VTEP equipment, therefore the first VTEP equipment need not be after as DF equipment, from host
Dynamic learning MAC-IP address list items, therefore it is same from the first VTEP equipment relative to the prior art can to shorten the 3rd VTEP equipment
Step obtains the time of the 2nd MAC-IP address list items, and then can alleviate what data message during the 2nd VTEP equipment is restarted was lost
Problem improves the transmission quality of data message.
In another embodiment, the 3rd VTEP equipment includes the 2nd MAC-IP addresses what the first VTEP equipment of reception was sent
After first address synchronization message of list item, and more than first ownership for receiving the transmission of the first VTEP equipment are route, this more than first is returned
Belong to routing and include the first ESI information, the 3rd VTEP equipment is standby according to the 2nd MAC-IP address list items and the generation of the first ESI information
Use forwarding-table item.Below by way of the flow chart of route processing method shown in fig. 6, to the route processing method of the embodiment of the present invention
It is described in detail.
Specifically, route processing method shown in fig. 6 includes the following steps.
Step 601, reception disappear as the first address synchronization that the first VTEP equipment of DF equipment in multi-home networking is sent
Breath, the first address synchronization message include the 2nd MAC-IP address list items, and the first VTEP equipment is in multi-home networking
VTEP equipment determined after DF equipment gravity treatment is lifted.
It should be noted that step 601 and step 605 and above-mentioned steps 501 and step 503 are similar in the embodiment of the present invention
Seemingly, details are not described herein for the embodiment of the present invention.
Step 602 receives more than the first ownership routings that the first VTEP equipment is sent, in the routing of ownership more than described first
Including the first ESI information.
First VTEP equipment is sent after the first address synchronization message is sent to the 3rd VTEP equipment to the 3rd VTEP equipment
Belonging to routing first, which includes the first ESI information, and the first ESI information accesses first for host more
The ESI information of the AC of VTEP equipment.
Step 603, according to the first ESI information, determine to go out to connect at least one the first of host forwarding data packets
Mouthful.
Specifically, the VTEP equipment in multi-home networking, can be to the 3rd VTEP equipment when the gravity treatment for carrying out DF equipment is lifted
ES routings are sent, the IP information of the VTEP of carrying transmission ES routings and host access the ESI of the AC of the VTEP in ES routings
Information.It, can be in the above-mentioned ES routings of local cache after 3rd VTEP equipment receives the ES routings that each VTEP equipment is sent.Third
After VTEP equipment receives more than the first ownership routings that the first VTEP equipment is sent, ESI letters are searched in the ES routings of local cache
The breath ES routing consistent with the first ESI information, and determine the ESI information ES routing corresponding VTEP consistent with the first ESI information
VXLAN tunnels between equipment and the 3rd VTEP are first interface of the 3rd VTEP equipment to host forwarding data packets.
Step 604 is route in the first address synchronization message and more than first ownership when having identical source IP address,
Spare forwarding list is generated according to the 2nd MAC-IP address list items and at least one first outgoing interface.
When the first address synchronization message and more than first ownership routings have identical source IP address, the 3rd VTEP equipment determines
First address synchronization message and more than first ownership routings are all from the first VTEP equipment, therefore the 3rd VTEP equipment is according to the 2nd MAC-
IP address list item and above-mentioned determining at least one first outgoing interface generate spare forwarding list.
Step 605, when receive the 2nd VTEP equipment transmission MAC-IP addresses cancel instruction when, delete from described second
First effective forwarding list that Static Learning obtains at VTEP equipment, and after the data message sent to host is received, root
The data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is set for the VTEP in the multi-home networking
The standby initial DF equipment carried out before the gravity treatment of DF equipment is lifted.
So, the 3rd VTEP equipment delete first effective forwarding list when, can by spare forwarding list to
Host forwarding data packets, since spare forwarding list includes at least one outgoing interface, therefore the 3rd VTEP equipment can pass through
Above-mentioned at least one outgoing interface can realize load balancing to host forwarding data packets.
In another embodiment, the 3rd VTEP equipment is set in reception as the first VTEP of DF equipment in multi-home networking
Before the first address synchronization message that preparation is sent, the more ownership route withdraws instruction that can also receive the transmission of the first VTEP equipment disappears
Breath, and delete the corresponding road of the 2nd VTEP equipment in first effective forwarding list according to more than first ownership route withdraw instruction messages
By list item, and pass through first effective forwarding list after change to host forwarding data packets.Below by way of routing shown in Fig. 7
The route processing method of the embodiment of the present invention is described in detail in the flow chart of processing method.
Specifically, route processing method shown in Fig. 7 includes the following steps.
Step 701 receives more ownership route withdraw instruction messages that the 2nd VTEP equipment is sent, more ownership roads
Routing iinformation between the 2nd VTEP equipment to be cancelled and the 3rd VTEP equipment is included by revocation instruction message;
Specifically, the 2nd VTEP equipment is operated in response to configuration of the user in the 2nd VTEP equipment, returns to being in together more
Belong to the 3rd VTEP equipment outside the VTEP equipment and multi-home networking of networking and send more ownership route withdraw instruction messages.
Step 702, according to the routing iinformation, deleted and described second from stored first effective forwarding list
The corresponding route table items of VTEP equipment;
After 3rd VTEP equipment receives above-mentioned more ownership route withdraw instruction messages, determine to be in not with the 2nd VTEP equipment
After multi-home networking, according to this it is more ownership route withdraw instruction messages in routing iinformations, from first effective forwarding list (such as
Shown in table 1) in delete the 2nd VTEP equipment and corresponding route table items, first effective forwarding list after change are as shown in table 2.
Step 703, after receiving and being sent to the data message of host, according to the effectively forwarding row of described first after change
Table forwards the data message.
After receiving and being sent to the data message of host, the 3rd VTEP equipment is according to the effectively forwarding row of first after change
Table is to host forwarding data packets.
For example, before more ownership route withdraw instruction messages are received, the 3rd VTEP equipment passes through shown in table 1
For first effective forwarding list to host forwarding data packets, the 3rd VTEP equipment can be by data message load balancing to VXLAN
In tunnel 1 to VXLAN tunnels 4.After more ownership route withdraw instruction messages are received, the 3rd VTEP equipment passes through shown in table 2
Change after first effective forwarding list to host forwarding data packets, the 3rd VTEP equipment can load data message point
In load to VXLAN tunnels 1, VXLAN tunnels 3 and VXLAN tunnels 4.
Step 704, reception disappear as the first address synchronization that the first VTEP equipment of DF equipment in multi-home networking is sent
Breath, the first address synchronization message include the 2nd MAC-IP address list items, and the first VTEP equipment is in multi-home networking
VTEP equipment determined after DF equipment gravity treatment is lifted;
It should be noted that in the embodiment of the present invention in step 704 to step 706 and above-described embodiment step 501 to step
Rapid 503 is similar, and details are not described herein for the embodiment of the present invention.
Step 705 generates spare forwarding list according to the 2nd MAC-IP address list items;
Step 706, when receive the 2nd VTEP equipment transmission MAC-IP addresses cancel instruction when, delete from described second
First effective forwarding list that Static Learning obtains at VTEP equipment, and after the data message forwarded to host is received, root
The data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is set for the VTEP in the multi-home networking
The standby initial DF equipment carried out before the gravity treatment of DF equipment is lifted.
Therefore, by applying route processing method provided in an embodiment of the present invention, the 3rd VTEP equipment is receiving second
After more ownership route withdraw instruction messages that VTEP equipment is sent, second is deleted from first effective forwarding list being locally stored
The corresponding route table items of VTEP equipment, and according to first effective forwarding list after change to host forwarding data packets.In this way
One, can be to avoid offline in the 2nd VTEP equipment, but not yet to perceive the 2nd VTEP equipment offline by the 3rd VTEP, still through
The corresponding route table items of 2nd VTEP equipment are to host forwarding data packets, so that the problem of data message is lost, ensures
The quality of data-message transmission.
And after the VTEP equipment in the same home networking of the 2nd VTEP equipment receives more ownership route withdraw instruction messages,
Carry out DF equipment gravity treatment lift during, the 3rd VTEP equipment always can be by first effective forwarding list after change to host
Forwarding data packets can avoid being in the VTEP equipment in home networking in the weight for carrying out DF equipment with the 2nd VTEP equipment
During election, the problem of caused data message is lost, the transmission quality of data message is improved.
It in another embodiment, can be to the VTEP equipment for being in multi-home networking together after the 2nd VTEP equipment is restarted
And the 3rd VTEP equipment outside multi-home networking sends the second address synchronization message and more than second ownership routings, the 3rd VTEP equipment
After receiving above-mentioned second address synchronization message and more than second ownership routings, believed according to the 3rd MAC-IP address list items and the 2nd ESI
Breath second effective forwarding list of generation, and after spare forwarding list is deleted, forwarded according to second effective forwarding list to host
Data message.Below by way of the flow chart of route processing method shown in Fig. 8, to the route processing method of the embodiment of the present invention into
Row is described in detail.
Specifically, route processing method shown in Fig. 8 includes the following steps.
Step 801 receives more ownership route withdraw instruction messages that the 2nd VTEP equipment is sent, more ownership roads
Routing iinformation between the 2nd VTEP equipment to be cancelled and the 3rd VTEP equipment is included by revocation instruction message;
It should be noted that step 701 in step 801 to step 806 and above method embodiment in the embodiment of the present invention
Similar to step 706, details are not described herein for the embodiment of the present invention.
Step 802, according to the routing iinformation, deleted and described second from stored first effective forwarding list
The corresponding route table items of VTEP equipment;
Step 803, after receiving and being sent to the data message of host, according to the effectively forwarding row of described first after change
Table forwards the data message.
Step 804, reception disappear as the first address synchronization that the first VTEP equipment of DF equipment in multi-home networking is sent
Breath, the first address synchronization message include the 2nd MAC-IP address list items, and the first VTEP equipment is in multi-home networking
VTEP equipment determined after DF equipment gravity treatment is lifted;
Step 805 generates spare forwarding list according to the 2nd MAC-IP address list items;
Step 806, when receive the 2nd VTEP equipment transmission MAC-IP addresses cancel instruction when, delete from described second
First effective forwarding list that Static Learning obtains at VTEP equipment, and after the data message forwarded to host is received, root
The data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is set for the VTEP in the multi-home networking
The standby initial DF equipment carried out before the gravity treatment of DF equipment is lifted.
Step 807, when receiving the second address synchronization message that the 2nd VTEP equipment sends and more than second belong to roads
By when, generate second effective forwarding list, wherein, the 2nd VTEP equipment is the DF that reaches the standard grade again in the multi-home networking
Equipment;
Specifically, it after the 2nd VTEP equipment is restarted, is operated in response to configuration of the user in the 2nd VTEP equipment, Xiang Duogui
Belong to the VTEP equipment in networking and the 3rd VTEP equipment outside multi-home networking sends the second address synchronization message and more than second returns
Belong to routing.For example, the second address synchronization message includes the 3rd MAC-IP address list items, the 3rd MAC-IP address list items
It is obtained by the 2nd VTEP equipment from host dynamic learning, the routing of ownership more than above-mentioned second includes host and accesses the 2nd VTEP equipment
AC the 2nd ESI information.
After 3rd VTEP equipment receives above-mentioned second address synchronization message and more than second ownership routings, according to the 3rd MAC-IP
Address list item and the 2nd ESI information generate second effective forwarding list (i.e. above-mentioned first effective forwarding list before changing).
Step 808 deletes the spare forwarding list;
3rd VTEP equipment deletes spare forwarding list after second effective forwarding list is generated.
Step 809, after the data message of host is received, the data are forwarded according to the described second effective forwarding list
Message.
So, after the completion of the 2nd VTEP equipment is restarted, the 3rd VTEP equipment can be sent according to the 2nd VTEP equipment
The second address synchronization message and more than second ownership routing generation second effective forwarding lists, to continue through the 2nd VTEP equipment
To host forwarding data packets.
For those skilled in the art is made to be better understood from the embodiment of the present invention, below by way of a specific example to of the invention real
Example is applied to be illustrated.
Example as shown in Figure 1.Edition upgrading is carried out in VTEP2, when needing to restart, in response to user's matching on VTEP2
Operation is put, more ownership route withdraw instruction messages are sent to VTEP1, VTEP3, VTEP4 and VTEP5.
VTEP5 determines to be not at same more ownership with VTEP2 after above-mentioned mostly ownership route withdraw instruction message is received
In networking, according to more ownership route withdraw instruction messages from first effective forwarding list (as shown in table 1) being locally stored,
The corresponding route table items of VTEP2 are deleted, first effective forwarding list after change is as shown in table 2.VTEP5 is being received to host
During the data message of transmission, VXLAN tunnels (are passed through to host forwarding data packets according to first effective forwarding list after change
1st, VXLAN tunnels 3, VXLAN tunnels 4 carry out load balancing).
VTEP1, VTEP3 and VTEP4 are after above-mentioned more ownership route withdraw instruction messages are received, at determining and VTEP2
In in same multi-home networking, lifted according to the gravity treatment that more ownership route withdraw instruction messages carry out DF equipment.Assuming that VTEP3 quilts
It elects as new DF equipment, then VTEP3 will be converted to dynamic learning from the first MAC-IP address list items of VTEP2 Static Learnings
After 2nd MAC-IP address list items, include the of the 2nd MAC-IP address list items to VTEP1, VTEP2, VTEP4 and VTEP5 transmission
One address synchronization message and including host access VTEP3 AC mouths the first ESI information more than first belong to route (in this process
Period, VTEP5 is always according to first effective forwarding list after change to host forwarding data packets).
After VTEP5 receives the first address synchronization message and more than first ownership route, according to the 2nd MAC-IP address list items and
First ESI information generates spare forwarding list (as shown in table 2), and VTEP5 is according further to the effectively forwarding of first after change at this time
List is to host forwarding data packets.
When VTEP2 shutdown is offline, VTEP2 sends the revocation instruction of MAC-IP addresses to VTEP5.VTEP5 receives above-mentioned
After the revocation instruction of MAC-IP addresses, first effective forwarding list after above-mentioned change is deleted, and pass through spare forwarding list to master
Machine forwarding data packets.
When VTEP2 is restarted successfully, the configuration in response to user operates, and is sent to VTEP1, VTEP3, VTEP4 and VTEP5
Second address synchronization message and more than second ownership routings.After VTEP5 receives the second address synchronization message and more than second ownership routings,
According to the second address synchronization message and more than second ownership routing second effective forwarding lists (as shown in table 1) of generation, and delete standby
With forwarding list, according to second effective forwarding list to host forwarding data packets.
As it can be seen that route processing method provided in an embodiment of the present invention, as the VTEP2 of DF equipment weights in multi-home networking
During opening, VTEP5 is stored with always for the forwarding list of host forwarding data packets, therefore VTEP5 always can be to
Host forwarding data packets, can avoid the problem that VTEP2 restart during caused by data message loss, improve data message
Transmission quality.
Fig. 9 shows a kind of structure diagram of route processing device according to an embodiment of the invention, which can apply
First expansible Virtual Local Area Network endpoint of a tunnel VTEP equipment.As shown in figure 9, the device includes:
Receiving module 901, can be used for receive as in multi-home networking DF equipment the 2nd VTEP equipment transmission it is more
Belong to route withdraw instruction message;
Elect module 902, can be used for when the first VTEP equipment and the 2nd VTEP equipment be in together it is described more
When in home networking, according to more ownership route withdraw instruction messages, the first VTEP equipment carries out more ownership groups
The gravity treatment of DF equipment is lifted in net;
Modular converter 903 can be used for when the first VTEP equipment is elected as the DF equipment, will be from described
At 2nd VTEP equipment Static Learning to the first MAC-IP address list items be converted to the first VTEP equipment dynamic learnings and arrive
The 2nd MAC-IP address list items;
First sending module 904 can be used for whole VTEP equipment in the multi-home networking and in institute
It states the 3rd VTEP equipment outside multi-home networking and sends the first address synchronization message, the first address synchronization message includes described
2nd MAC-IP address list items;
Wherein, in the first/second MAC-IP address list items it is corresponding with storing in the multi-home networking MAC of host
Location and IP address, the host access multiple VTEP equipment in the multi-home networking.
Therefore, by applying route processing device provided in an embodiment of the present invention, the first VTEP equipment is receiving return more
After belonging to the more ownership route withdraw instruction messages sent in networking as the 2nd VTEP equipment of DF equipment, in the first VTEP equipment
When being in together in the multi-home networking with the 2nd VTEP equipment, the first VTEP equipment is according to more ownership route withdraw instruction messages
The gravity treatment for carrying out DF equipment is lifted, and when the first VTEP equipment is elected as DF equipment, will be from the 2nd VTEP equipment Static Learnings
The first MAC-IP address list items be converted to the 2nd MAC-IP address list items of dynamic learning after, by the 2nd MAC-IP address list items
By the first address synchronization message synchronization to multi-home networking outside the 3rd VTEP equipment.So, the 3rd VTEP equipment energy
It is enough that spare forwarding list is built according to the 2nd MAC-IP addresses, after the 2nd VTEP equipment is offline, spare forwarding can be passed through
List alleviates the problem of data message is lost during the 2nd VTEP equipment is restarted, improves number to host forwarding data packets
According to the transmission quality of message.
Figure 10 shows a kind of structure diagram of route processing device according to an embodiment of the invention, wherein, receiving module
1001st, module 1002,1003 and first sending module 1004 of modular converter and receiving module 901, choosing in above-described embodiment are elected
Act module 902,903 and first sending module 904 of modular converter are similar, and details are not described herein for the embodiment of the present invention.
In a kind of possible realization method, more ownership route withdraw instruction messages are identified including the first ethernet segment
ESI information, with reference to Figure 10, above device can also include:
Judgment module 1005 can be used for judging in the first VTEP equipment whether thering is the first ESI information pair
The outgoing interface answered;
Determining module 1006, if can be used for corresponding with the first ESI information in the first VTEP equipment
Outgoing interface, it is determined that the first VTEP equipment is in together with the 2nd VTEP equipment in the multi-home networking.
In a kind of possible realization method, with reference to Figure 10, above device can also include:
Second sending module 1007 can be used for sending more than first ownership routings to the 3rd VTEP equipment, for making
The 3rd VTEP equipment is arranged according to the 2nd MAC-IP address list items and the spare forwarding of more than the first ownership routing generation
Table, and deleting after effective forwarding list that Static Learning obtains at the 2nd VTEP equipment, according to the spare forwarding
List is forwarded processing to the data message of host.
Figure 11 shows a kind of structure diagram of route processing device according to an embodiment of the invention, which can apply
In the expansible Virtual Local Area Network endpoint of a tunnel VTEP equipment of third, described device can include:
First receiving module 1101 can be used for receiving the first VTEP equipment transmission as DF equipment in multi-home networking
The first address synchronization message, the first address synchronization message includes the 2nd MAC-IP address list items, and the first VTEP sets
The standby VTEP equipment in multi-home networking determined after the gravity treatment of DF equipment is lifted;
First generation module 1102 can be used for generating spare forwarding list according to the 2nd MAC-IP address list items;
Processing module 1103 can be used for when the MAC-IP addresses for receiving the transmission of the 2nd VTEP equipment cancel instruction,
It deletes from first effective forwarding list that Static Learning obtains at the 2nd VTEP equipment, and is receiving what is sent to host
After data message, the data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is more ownership
VTEP equipment in networking carries out the initial DF equipment before the gravity treatment of DF equipment is lifted.
Figure 12 shows a kind of structure diagram of route processing device according to an embodiment of the invention, wherein, first receives
Module 1201, the first generation module 1202 and processing module 1203 are given birth to the first receiving module 1101, first in above-described embodiment
Similar into module 1102 and processing module 1103, details are not described herein for the embodiment of the present invention.
In a kind of possible realization method, with reference to Figure 12, above device can also include:
Second receiving module 1204 can be used for receiving more than the first ownership routings that the first VTEP equipment is sent, institute
It states the routing of ownership more than first and includes the first ESI information;
Determining module 1205 can be used for, according to the first ESI information, determining to host forwarding data packets at least
One the first outgoing interface;
First generation module 1202, can include:
Submodule 12021 is generated, can be used in the first address synchronization message and more than the first ownership routing tool
When having identical source IP address, spare turn is generated according to the 2nd MAC-IP address list items and at least one first outgoing interface
Send out list.
In a kind of possible realization method, with reference to Figure 12, described device can also include:
Third receiving module 1206 can be used for receiving more ownership route withdraws instruction that the 2nd VTEP equipment is sent
Message, more ownership route withdraw instruction messages include the 2nd VTEP equipment to be cancelled and are set with the 3rd VTEP
Routing iinformation between standby;
First removing module 1207 can be used for according to the routing iinformation, from stored first effective forwarding list
It is middle to delete route table items corresponding with the 2nd VTEP equipment;
First forwarding module 1208 can be used for after receiving and being sent to the data message of host, after change
First effective forwarding list forwards the data message.
In a kind of possible realization method, with reference to Figure 12, described device can also include:
Second generation module 1209 can be used for disappearing when the second address synchronization for receiving the 2nd VTEP equipment transmission
When breath and the routing of ownership more than second, second effective forwarding list is generated, wherein, the 2nd VTEP equipment is more ownership groups
The DF equipment reached the standard grade again in net;
Second removing module 1210 can be used for deleting the spare forwarding list;
Second forwarding module 1211, can be used for after the data message of host is received, and effectively turn according to described second
It sends out list and forwards the data message.
Figure 13 is the hardware block diagram according to a kind of route processing device shown in an exemplary embodiment.Actually should
In, which can be realized by server.With reference to Figure 13, the device 1300 may include processor 1301, be stored with machine can
The machine readable storage medium 1302 of execute instruction.Processor 1301 can be via system bus with machine readable storage medium 1302
1303 communications.Also, processor 1301 passes through machine corresponding with route processing logic in read machine readable storage medium storing program for executing 1302
Device executable instruction is to perform route processing method described above.
Machine readable storage medium 1302 referred to herein can be that any electronics, magnetism, optics or other physics are deposited
Storage device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
Random access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory,
Flash memory, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or class
As storage medium or combination thereof.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle for best explaining each embodiment, practical application or to the technological improvement of the technology in market or lead this technology
Other those of ordinary skill in domain are understood that each embodiment disclosed herein.
Claims (14)
1. a kind of route processing method, which is characterized in that set applied to the first expansible Virtual Local Area Network endpoint of a tunnel VTEP
It is standby, the method includes:
Receive the more ownership route withdraw instruction messages sent as the 2nd VTEP equipment of DF equipment in multi-home networking;
When the first VTEP equipment and the 2nd VTEP equipment are in together in the multi-home networking, returned according to described more
Belong to route withdraw instruction message, the gravity treatment that the first VTEP equipment carries out DF equipment in the multi-home networking is lifted;
When the first VTEP equipment is elected as the DF equipment, will from Static Learning at the 2nd VTEP equipment to
The first MAC-IP address list items be converted to the 2nd MAC-IP address list items that the first VTEP equipment dynamic learnings arrive;
To whole VTEP equipment in the multi-home networking and the 3rd VTEP equipment outside the multi-home networking
The first address synchronization message is sent, the first address synchronization message includes the 2nd MAC-IP address list items;
Wherein, in the first/second MAC-IP address list items it is corresponding store in the multi-home networking MAC Address of host with
IP address, the host access multiple VTEP equipment in the multi-home networking.
2. according to the method described in claim 1, it is characterized in that, more ownership route withdraw instruction message include first with
Too network segment mark ESI information;
It is described to receive the more ownership route withdraw instruction messages sent as the 2nd VTEP equipment of DF equipment in multi-home networking
Later, the method further includes:
Judge whether there is the corresponding outgoing interface of the first ESI information in the first VTEP equipment;
If there is the corresponding outgoing interface of the first ESI information in the first VTEP equipment, it is determined that the first VTEP
Equipment is in together with the 2nd VTEP equipment in the multi-home networking.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
More than first ownership routings are sent to the 3rd VTEP equipment, for making the 3rd VTEP equipment according to described second
MAC-IP address list items and more than the first ownership routing generate spare forwarding list, and deleting from the 2nd VTEP equipment
After effective forwarding list that place's Static Learning obtains, place is forwarded to the data message of host according to the spare forwarding list
Reason.
4. a kind of route processing method, which is characterized in that set applied to the expansible Virtual Local Area Network endpoint of a tunnel VTEP of third
It is standby, the method includes:
Receive the first address synchronization message sent as the first VTEP equipment of DF equipment in multi-home networking, first ground
Location synchronization message includes the 2nd MAC-IP address list items, and the first VTEP equipment is carried out for the VTEP equipment in multi-home networking
The gravity treatment of DF equipment determines after lifting;
Spare forwarding list is generated according to the 2nd MAC-IP address list items;
When the MAC-IP addresses for receiving the transmission of the 2nd VTEP equipment cancel instruction, delete quiet at the 2nd VTEP equipment
First effective forwarding list that state learns, and after the data message sent to host is received, according to described spare turn
It sends out list and forwards the data message;The 2nd VTEP equipment carries out DF equipment for the VTEP equipment in the multi-home networking
Initial DF equipment before gravity treatment act.
5. according to the method described in claim 4, it is characterized in that, described be received as first of DF equipment in multi-home networking
After the first address synchronization message that VTEP equipment is sent, the method further includes:
More than the first ownership routings that the first VTEP equipment is sent are received, the routing of ownership more than described first includes the first ESI
Information;
According to the first ESI information, at least one first outgoing interface to host forwarding data packets is determined;
It is described that spare forwarding list is generated according to the 2nd MAC-IP address list items, including:
When the first address synchronization message and more than the first ownership routing have identical source IP address, according to described second
MAC-IP address list items and at least one first outgoing interface generate spare forwarding list.
6. according to the method described in claim 4, it is characterized in that, it is described reception as DF equipment in multi-home networking first
Before the first address synchronization message that VTEP equipment is sent, the method further includes:
More ownership route withdraw instruction messages that the 2nd VTEP equipment is sent are received, more ownership route withdraw instructions disappear
Breath includes routing iinformation between the 2nd VTEP equipment to be cancelled and the 3rd VTEP equipment;
According to the routing iinformation, deleted from stored first effective forwarding list corresponding with the 2nd VTEP equipment
Route table items;
After receiving and being sent to the data message of host, the number is forwarded according to described first effective forwarding list after change
According to message.
7. according to any method of claim 4 to 6, which is characterized in that the method further includes:
When receiving the second address synchronization message and more than the second ownership routings that the 2nd VTEP equipment is sent, generation second
Effective forwarding list, wherein, the 2nd VTEP equipment is the DF equipment reached the standard grade again in the multi-home networking;
Delete the spare forwarding list;
After the data message of host is received, the data message is forwarded according to described second effective forwarding list.
8. a kind of route processing device, which is characterized in that set applied to the first expansible Virtual Local Area Network endpoint of a tunnel VTEP
Standby, described device includes:
Receiving module, more ownership route withdraws that the 2nd VTEP equipment for receiving as DF equipment in multi-home networking is sent
Instruction message;
Module is elected, is in together in the multi-home networking with the 2nd VTEP equipment for working as the first VTEP equipment
When, according to more ownership route withdraw instruction messages, the first VTEP equipment carries out DF equipment in the multi-home networking
Gravity treatment lift;
Modular converter, for that when the first VTEP equipment is elected as the DF equipment, will be set from the 2nd VTEP
Standby place's Static Learning to the first MAC-IP address list items be converted to the 2nd MAC- that the first VTEP equipment dynamic learnings arrive
IP address list item;
First sending module, for whole VTEP equipment in the multi-home networking and in the multi-home networking
The 3rd outer VTEP equipment sends the first address synchronization message, and the first address synchronization message is including the 2nd MAC-IP
Location list item;
Wherein, in the first/second MAC-IP address list items it is corresponding store in the multi-home networking MAC Address of host with
IP address, the host access multiple VTEP equipment in the multi-home networking.
9. device according to claim 8, which is characterized in that more ownership route withdraw instruction messages include first with
Too network segment mark ESI information, described device further include:
Judgment module, for judging whether there is the corresponding outgoing interface of the first ESI information in the first VTEP equipment;
Determining module, if for having the corresponding outgoing interface of the first ESI information in the first VTEP equipment, it is determined that
The first VTEP equipment is in together with the 2nd VTEP equipment in the multi-home networking.
10. device according to claim 8, which is characterized in that described device further includes:
Second sending module route for sending more than first ownership to the 3rd VTEP equipment, for making the 3rd VTEP
Equipment generates spare forwarding list according to the 2nd MAC-IP address list items and more than the first ownership routing, and delete from
After effective forwarding list that Static Learning obtains at the 2nd VTEP equipment, according to the spare forwarding list to the number of host
Processing is forwarded according to message.
11. a kind of route processing device, which is characterized in that set applied to the expansible Virtual Local Area Network endpoint of a tunnel VTEP of third
Standby, described device includes:
First receiving module, the first address that the first VTEP equipment for receiving as DF equipment in multi-home networking is sent are same
Message is walked, the first address synchronization message includes the 2nd MAC-IP address list items, and the first VTEP equipment is more ownership groups
VTEP equipment in net determined after the gravity treatment of DF equipment is lifted;
First generation module, for generating spare forwarding list according to the 2nd MAC-IP address list items;
Processing module, for when the MAC-IP addresses for receiving the transmission of the 2nd VTEP equipment cancel instruction, deleting from described the
First effective forwarding list that Static Learning obtains at two VTEP equipment, and after the data message sent to host is received,
The data message is forwarded according to the spare forwarding list;The 2nd VTEP equipment is the VTEP in the multi-home networking
Equipment carries out the initial DF equipment before the gravity treatment of DF equipment is lifted.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Second receiving module for receiving more than the first ownership routings that the first VTEP equipment is sent, belongs to more described first
Routing includes the first ESI information;
Determining module, for according to the first ESI information, determining to go out to connect at least one the first of host forwarding data packets
Mouthful;
First generation module, including:
Submodule is generated, for there is identical source IP address in the first address synchronization message and more than the first ownership routing
When, spare forwarding list is generated according to the 2nd MAC-IP address list items and at least one first outgoing interface.
13. according to the devices described in claim 11, which is characterized in that described device further includes:
Third receiving module is described more for receiving more ownership route withdraw instruction messages that the 2nd VTEP equipment is sent
Ownership route withdraw instruction message includes routeing between the 2nd VTEP equipment to be cancelled and the 3rd VTEP equipment
Information;
First removing module, for according to the routing iinformation, deleted from stored first effective forwarding list with it is described
The corresponding route table items of 2nd VTEP equipment;
First forwarding module, for after receiving and being sent to the data message of host, according to described first after change effectively
Forwarding list forwards the data message.
14. according to any device of claim 11 to 13, which is characterized in that described device further includes:
Second generation module, for returning when the second address synchronization message and more than second that receive the 2nd VTEP equipment transmission
When belonging to routing, second effective forwarding list is generated, wherein, the 2nd VTEP equipment is to reach the standard grade again in the multi-home networking
DF equipment;
Second removing module, for deleting the spare forwarding list;
Second forwarding module, for after the data message of host is received, institute to be forwarded according to described second effective forwarding list
State data message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810279473.8A CN108199967B (en) | 2018-03-30 | 2018-03-30 | Route processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810279473.8A CN108199967B (en) | 2018-03-30 | 2018-03-30 | Route processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108199967A true CN108199967A (en) | 2018-06-22 |
CN108199967B CN108199967B (en) | 2020-08-11 |
Family
ID=62596573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810279473.8A Active CN108199967B (en) | 2018-03-30 | 2018-03-30 | Route processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108199967B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088767A (en) * | 2018-08-16 | 2018-12-25 | 新华三技术有限公司 | Route renewing method and device |
CN112104550A (en) * | 2020-08-31 | 2020-12-18 | 新华三信息安全技术有限公司 | Election method and device for designated forwarder DF |
CN112953832A (en) * | 2021-02-20 | 2021-06-11 | 中国联合网络通信集团有限公司 | Method and device for processing MAC address table items |
CN113037883A (en) * | 2021-02-23 | 2021-06-25 | 中国联合网络通信集团有限公司 | Method and device for updating MAC address table entries |
CN113098768A (en) * | 2019-12-23 | 2021-07-09 | 华为技术有限公司 | Equipment management method and related device |
CN113765783A (en) * | 2021-08-05 | 2021-12-07 | 新华三大数据技术有限公司 | Communication method and device |
CN114827017A (en) * | 2022-03-31 | 2022-07-29 | 北京声智科技有限公司 | Kafka cluster communication method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
CN105591933A (en) * | 2015-07-22 | 2016-05-18 | 杭州华三通信技术有限公司 | Graceful restart GR processing method and equipment |
CN106878183A (en) * | 2017-01-22 | 2017-06-20 | 新华三技术有限公司 | Flow forwarding method and device |
CN107342925A (en) * | 2016-04-29 | 2017-11-10 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107612834A (en) * | 2017-09-13 | 2018-01-19 | 杭州迪普科技股份有限公司 | A kind of EVPN route renewing methods based on virtual unit migration |
CN107783815A (en) * | 2016-08-30 | 2018-03-09 | 华为技术有限公司 | A kind of method and apparatus for determining virtual machine (vm) migration |
EP3370385A4 (en) * | 2015-10-26 | 2018-12-12 | New H3C Technologies Co., Ltd. | Packet forwarding applied to vxlan |
-
2018
- 2018-03-30 CN CN201810279473.8A patent/CN108199967B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104283980A (en) * | 2014-10-09 | 2015-01-14 | 杭州华三通信技术有限公司 | Address resolution protocol (ARP) reply on-behalf method and device |
CN105591933A (en) * | 2015-07-22 | 2016-05-18 | 杭州华三通信技术有限公司 | Graceful restart GR processing method and equipment |
EP3370385A4 (en) * | 2015-10-26 | 2018-12-12 | New H3C Technologies Co., Ltd. | Packet forwarding applied to vxlan |
CN107342925A (en) * | 2016-04-29 | 2017-11-10 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107783815A (en) * | 2016-08-30 | 2018-03-09 | 华为技术有限公司 | A kind of method and apparatus for determining virtual machine (vm) migration |
CN106878183A (en) * | 2017-01-22 | 2017-06-20 | 新华三技术有限公司 | Flow forwarding method and device |
CN107612834A (en) * | 2017-09-13 | 2018-01-19 | 杭州迪普科技股份有限公司 | A kind of EVPN route renewing methods based on virtual unit migration |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088767A (en) * | 2018-08-16 | 2018-12-25 | 新华三技术有限公司 | Route renewing method and device |
CN109088767B (en) * | 2018-08-16 | 2022-02-22 | 新华三技术有限公司 | Route updating method and device |
CN113098768A (en) * | 2019-12-23 | 2021-07-09 | 华为技术有限公司 | Equipment management method and related device |
CN113098768B (en) * | 2019-12-23 | 2023-05-12 | 华为技术有限公司 | Equipment management method and related device |
CN112104550A (en) * | 2020-08-31 | 2020-12-18 | 新华三信息安全技术有限公司 | Election method and device for designated forwarder DF |
CN112104550B (en) * | 2020-08-31 | 2022-07-12 | 新华三信息安全技术有限公司 | Election method and device for designated forwarder DF |
CN112953832A (en) * | 2021-02-20 | 2021-06-11 | 中国联合网络通信集团有限公司 | Method and device for processing MAC address table items |
CN113037883A (en) * | 2021-02-23 | 2021-06-25 | 中国联合网络通信集团有限公司 | Method and device for updating MAC address table entries |
CN113037883B (en) * | 2021-02-23 | 2022-06-10 | 中国联合网络通信集团有限公司 | Method and device for updating MAC address table entries |
CN113765783A (en) * | 2021-08-05 | 2021-12-07 | 新华三大数据技术有限公司 | Communication method and device |
CN114827017A (en) * | 2022-03-31 | 2022-07-29 | 北京声智科技有限公司 | Kafka cluster communication method and device, electronic equipment and storage medium |
CN114827017B (en) * | 2022-03-31 | 2024-01-30 | 北京声智科技有限公司 | Communication method and device of Kafka cluster, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108199967B (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108199967A (en) | Route processing method and device | |
EP3313025B1 (en) | Data packet forwarding | |
CN107733793B (en) | Forwarding table item maintenance method and device | |
US9537793B2 (en) | Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments | |
JP6633775B2 (en) | Packet transmission | |
CN104283980A (en) | Address resolution protocol (ARP) reply on-behalf method and device | |
CN107547242B (en) | The acquisition methods and device of VM configuration information | |
CN103441932B (en) | A kind of Host routes list item generates method and apparatus | |
CN104468368B (en) | Configure the method and device of bgp neighbor | |
CN105591907B (en) | A kind of route obtaining method and device | |
CN105227466B (en) | Communication processing method and device | |
CN108600074A (en) | The retransmission method and device of multicast data message | |
CN104780232B (en) | A kind of resource allocation methods, controller and system | |
CN108259346A (en) | A kind of equivalent route item establishing method and device | |
CN108259218A (en) | A kind of IP address distribution method and device | |
CN106031104B (en) | Retransmission method, device and the equipment of data message | |
CN108600070A (en) | It is specified to turn originator DF electoral machinery and device | |
WO2017080440A1 (en) | Routing table updating method, evpn control device, and evpn system | |
JP2013502799A (en) | Handling link state identifier collisions | |
CN109495369A (en) | A kind of message forwarding method and device | |
CN109547350A (en) | A kind of route learning method and gateway | |
CN104135438B (en) | Message carries the expansible method for routing of routing iinformation | |
CN106716870A (en) | Local packet switching at a satellite device | |
CN109120556B (en) | A kind of method and system of cloud host access object storage server | |
CN108243102A (en) | A kind of implementation method of quick heavy-route and PE equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |