CN106230727B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN106230727B
CN106230727B CN201610585443.0A CN201610585443A CN106230727B CN 106230727 B CN106230727 B CN 106230727B CN 201610585443 A CN201610585443 A CN 201610585443A CN 106230727 B CN106230727 B CN 106230727B
Authority
CN
China
Prior art keywords
tunnel
vxlan
list item
redundant group
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.)
Active
Application number
CN201610585443.0A
Other languages
Chinese (zh)
Other versions
CN106230727A (en
Inventor
付志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610585443.0A priority Critical patent/CN106230727B/en
Publication of CN106230727A publication Critical patent/CN106230727A/en
Application granted granted Critical
Publication of CN106230727B publication Critical patent/CN106230727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

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

Abstract

The application provides a kind of message forwarding method and device, wherein this method comprises: receiving the user's message that VM is sent;According to the destination address of the user's message, corresponding VT is searched in forwarding table, wherein include the corresponding relationship of address and VT in forwarding table;According to the VT found, corresponding tunnel redundant group is searched in VT contingency table, wherein include the corresponding relationship of VT and tunnel redundant group in VT contingency table, include at least one tunnel VXLAN in tunnel redundant group;VXLAN encapsulation is carried out to the user's message, by the obtained VXLAN message of encapsulation by searching for tunnel redundant group in the tunnel VXLAN forward.

Description

Message forwarding method and device
Technical field
This application involves network communication technology field, in particular to a kind of message forwarding method and device.
Background technique
VXLAN (Virtual eXtensible LAN, expansible Virtual Local Area Network) is a kind of based on IP (Internet Protocol, Internet Protocol) network, using " MAC (Media Access Control, media access control) in UDP Two-layer VPN (the Virtual Private of (User Datagram Protocol, User Datagram Protocol) " packing forms Network, Virtual Private Network) technology.VXLAN can be based on existing service provider or enterprise IP network, for dispersion Physical site provides two layers of interconnection, and business isolation can be provided for different tenants.
EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) network is that one kind is adopted With VXLAN (Virtual eXtensible LAN, expansible Virtual Local Area Network) network of distributed network gate, controls plane and adopt With MP-BGP (multi-protocols of Multiprotocol Extensions for BGP-4, BGP-4 extend) notice EVPN routing letter Breath, data plane are E-Packeted using VXLAN packaged type.EVPN network uses multi-home networking mode, so as to have Effect improves network reliability.
As shown in Figure 1, VM1 is corresponding by ES1 in Spine-Leaf (trunk-leaf) network model of EVPN network ES (Ethernet Segment, ether section) link more belong to Leaf equipment Leaf1, Leaf2 and Leaf3, VM2 passes through The corresponding ES link of ES2 belongs to Leaf2 and Leaf3 more.Leaf4 arrives the MAC Address VM1-MAC and IP address of VM1 in study After the MAC Address VM2-MAC and IP address VM2-IP of VM1-IP and VM2, will create MAC address entries as shown in Table 1, with And IP list item as shown in Table 2.
Table 1
MAC Address Outgoing interface
VM1-MAC Tunnel14,Tunnel24,Tunnel34
VM2-MAC Tunnel24,Tunnel34
Table 2
IP address Next hop information
VM1-IP Tunnel14,Tunnel24,Tunnel34
VM2-IP Tunnel24,Tunnel34
Wherein, in Tables 1 and 2, VXLAN tunnel of the Tunnel ij between Leafi and Leafj, wherein i=1,2, 3,4, j=1,2,3,4.
As it can be seen that directly recording the address MAC/IP in mac address table and IP route table in the EVPN network of the prior art Corresponding multiple Tunnel (tunnel), therefore, the content of MAC address entries and IP list item is too fat to move, leads to the storage pressure of Leaf equipment It is larger.
In addition, in existing extensive EVPN networking, it will usually there is a large amount of MAC/IP to be associated with same group of Tunnel, this Group Tunnel is known as Tunnel redundant group.When a certain Tunnel in Tunnel redundant group becomes DOWN (unavailable), Leaf Equipment needs the MAC address entries for being associated with the Tunnel to every and IP list item to be updated processing.For example, Tunnel24 becomes When DOWN, Leaf4 is needed to the MAC address entries as shown in the 2nd row of table 1 and the 3rd row, and as shown in the 2nd row of table 2 and the 3rd row IP list item is updated processing.When list item quantity is more, the time for updating processing is also longer, to reduce the switching of data flow Speed.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device.
Specifically, the application is achieved by the following technical solution:
On the one hand, a kind of message forwarding method is provided, this method comprises:
Receive the user's message that VM is sent;
According to the destination address of the user's message, corresponding VT is searched in forwarding table, wherein include address in forwarding table With the corresponding relationship of VT;
According to the VT found, corresponding tunnel redundant group is searched in VT contingency table, wherein include VT in VT contingency table It include at least one tunnel VXLAN in tunnel redundant group with the corresponding relationship of tunnel redundant group;
VXLAN encapsulation is carried out to the user's message, the VXLAN message that encapsulation is obtained is by searching for the tunnel redundant group arrived In the tunnel VXLAN forward.
On the other hand, a kind of apparatus for forwarding message is additionally provided, which includes:
Receiving module, the user's message sent for receiving VM;
Searching module, for after the user's message that receiving module receives that VM is sent, according to the mesh of the user's message Address, corresponding VT is searched in forwarding table, wherein in forwarding table include address and VT corresponding relationship;It is also used to basis The VT found searches corresponding tunnel redundant group in VT contingency table, wherein includes VT and tunnel redundant group in VT contingency table Corresponding relationship, include at least one tunnel VXLAN in tunnel redundant group;
Encapsulate sending module, for after searching module finds corresponding tunnel redundant group, to the user's message into Row VXLAN encapsulation, the VXLAN message that encapsulation obtains is forwarded by the tunnel VXLAN in the tunnel redundant group.
It include address and VT in the forwarding table in equipment in EVPN network by the above technical scheme of the application Corresponding relationship, the corresponding relationship in VT contingency table including VT with the tunnel redundant group being made of at least one tunnel VXLAN;From And after receiving the user's message that VM is sent, it can be according to the destination address of the user's message, the lookup pair in forwarding table Then the VT answered according to the VT found, searches corresponding tunnel redundant group in VT contingency table, finally, can be to the user Message carry out VXLAN encapsulation after, by searching for tunnel redundant group in the tunnel VXLAN forward.Due to without turning The corresponding tunnel redundant group of direct recording address in delivering, it is only necessary to record corresponds to the corresponding VT of the tunnel redundant group, The forwarding that user's message equally may be implemented, reduces the content of forwarding-table item, and reduces the storage pressure of equipment.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of EVPN network;
Fig. 2 is the format chart of the advertising of route message shown in one exemplary embodiment of the application;
Fig. 3 is the format chart of the address notification routing shown in one exemplary embodiment of the application;
Fig. 4 is the flow chart that processing is forwarded to user's message shown in one exemplary embodiment of the application;
Fig. 5 is to route shown in one exemplary embodiment of the application when ES link breaks down to mac address table and IP Table is updated the flow chart of processing;
Fig. 6 is to route shown in one exemplary embodiment of the application when ES link failure recovery to mac address table and IP Table is updated the flow chart of processing;
Fig. 7 is a kind of structural schematic diagram of the apparatus for forwarding message shown in one exemplary embodiment of the application;
Fig. 8 is another structural schematic diagram of the apparatus for forwarding message shown in one exemplary embodiment of the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
A kind of message forwarding method, and a kind of message that can apply this method are provided in the application following embodiment Retransmission unit.A kind of new concept is introduced in the embodiment of the present application: VT (Virtual Tunnel, virtual channel) can make The corresponding relationship for recording the address MAC/IP and VT in the forwarding tables such as mac address table and IP route table is obtained, and is remembered in VT contingency table Record the corresponding relationship of VT and tunnel redundant group.
It is said by taking message forwarding method of the Leaf equipment to execute the embodiment of the present application in EVPN network as an example below Bright, this method includes the following contents:
After Leaf equipment is configured with ES on the user port of connection VM (virtual machine), the advertising of route of the ES can be sent Message.In the actual implementation process, then the ID (mark) for ES being configured on user port will carry the road of the ID of the ES It is sent by notice message.The format of advertising of route message is as shown in Fig. 2, ES ID (Ethernet Segment therein Identifier) field is used to carry the ID of the ES.
In addition, Leaf equipment the advertising of route message for receiving a certain ES (for convenience, referred to as the first ES) it Afterwards, it will do it study, that is, record the first ES and this equipment in ES information table and issue the Leaf of the advertising of route message The corresponding relationship in the tunnel VXLAN between equipment.In multi-home networking, may receive it is multiple (be denoted as M, M be not less than 2 positive integer) therefore the advertising of route message of the first ES will record pair of the first ES and the M tunnel VXLAN in ES information table It should be related to, as shown in the 2nd row of table 3.
Table 3
ES Next hop information
First ES Tunnel1,Tunnel2,…,TunnelM
Then, Leaf equipment can create VT list item in VT contingency table, specifically, VT table can be created in the following ways :
According to preset rules to Tunnel1, Tunnel2 ..., TunnelM be combined, so as to obtain N number of tunnel Redundant group { Tunnel1 }, { Tunnel2 } ..., { Tunnel M }, { Tunnel1, Tunnel2 } ... Tunnel1, Tunnel2 ..., TunnelM }, wherein N meets following formula (1):
In actual multi-home networking, the value of M generally will not be very big, and usually 2 or 3.
For each of above-mentioned N number of tunnel redundant group tunnel redundant group, there is no the tunnel is superfluous in VT contingency table At remaining group, a VT is distributed for the tunnel redundant group, addition includes the VT table of the VT and the tunnel redundant group in VT contingency table , effective (active) is set by the state in the tunnel each of tunnel redundant group VXLAN.
For example, available N=7 tunnel redundant group is respectively as follows: { Tunnel1 }, { Tunnel2 } as M=3, { Tunnel3 }, { Tunnel1, Tunnel2 }, { Tunnel1, Tunnel3 }, { Tunnel2, Tunnel3 }, Tunnel1, Tunnel2,Tunnel3}.If this 7 tunnel redundant groups are not present in VT contingency table, corresponding 7 are added in VT contingency table A VT list item, as shown in the 2nd~8 row of table 4.
Table 4
VT Next hop information
VT1 Tunnel1(active),Tunnel2(active),Tunnel3(active)
VT2 Tunnel1(active),Tunnel2(active)
VT3 Tunnel1(active),Tunnel3(active)
VT4 Tunnel2(active),Tunnel3(active)
VT5 Tunnel1(active)
VT6 Tunnel2(active)
VT7 Tunnel3(active)
In this way, after learning to the first ES and its tunnel corresponding M VXLAN, it can be by way of combination, from this The one or more tunnel VXLAN is arbitrarily chosen in the M tunnel VXLAN forms a tunnel redundant group, available multiple tunnels Redundant group creates corresponding multiple VT list items in VT contingency table, thus, realize being pre-created for VT list item.
In addition, Leaf equipment can send address notification learning to after the MAC Address of locally-attached VM and IP address Routing, the address of the VM can be carried in address notification routing, connect the user port of the VM in the Leaf equipment on configure VXLAN ID belonging to the ID of the ES and VM, wherein the address of the VM is MAC Address, or is MAC Address and IP address. For the format of address notification routing as shown in figure 3, in address notification routing, ES id field is used to carry the ID, MAC of ES Address (MAC Address) field is for carrying MAC Address, and IP Address (IP address) field is for carrying IP address, MPLS (Multiprotocol Label Switching, multiprotocol label switching) Lable1 (label 1) field is for carrying VXLAN ID。
Leaf equipment can also receive address notification routing, for convenience, still be illustrated by taking the first ES as an example. The first address, the first ES and the first VXLAN are carried in the address notification routing that Leaf equipment receives, wherein the first ground It include: the first MAC Address in location, alternatively, the first MAC Address and the first IP address.Leaf equipment can be in mac address table and the road IP By adding corresponding forwarding-table item in the forwarding tables such as table.Specifically, being searched and the first ES in ES information table as shown in table 3 Corresponding M VXLAN tunnel Tunnel1, Tunnel2 ..., TunnelM, then, in VT contingency table, search with by this M The corresponding VT of tunnel redundant group (for convenience, referred to as the first tunnel redundant group) of the tunnel VXLAN composition is (for the side of description Just, referred to as the first VT), then, the MAC table as shown in the 2nd row of table 5-1 is added in the corresponding mac address table of the first VXLAN , also, in the first address include the first IP address when, in IP route table add the IP table as shown in the 2nd row of table 6-1 ?.
Table 5-1
MAC Address VXLAN ID Outgoing interface
First MAC Address First VXLAN First VT
Table 6-1
IP address Next hop information
First IP address First VT, the first VXLAN
It can also include the first ES in the MAC address entries as shown in the 2nd row of table 5-1, at this point, the MAC address entries such as table 5-2 the 2nd It can also include the first ES in the IP list item as shown in the 2nd row of table 6-1, at this point, the IP list item such as the 2nd row institute of table 6-2 shown in row Show:
Table 5-2
MAC Address VXLAN ID Outgoing interface ES
First MAC Address First VXLAN First VT First ES
Table 6-2
IP address Next hop information ES
First IP address First VT, the first VXLAN First ES
In the actual implementation process, it when the MAC address entries as shown in the 2nd row of table 5-2 are issued to data plane, does not need to issue First ES equally when the IP list item as shown in the 2nd row of table 6-2 is issued to data plane, does not need to issue the first ES yet.
Leaf equipment can execute message forwarding step as shown in Figure 4 after receiving the user's message that VM is sent as a result, It is rapid:
Step S401 searches corresponding VT according to the destination address of the user's message in forwarding table;
Step S402 searches corresponding tunnel redundant group according to the VT found in step S401 in VT contingency table;
Step S403 carries out VXLAN encapsulation to the user's message, and the VXLAN message that encapsulation is obtained passes through step S402 In the tunnel VXLAN in the tunnel redundant group that finds forward.
It is assumed that the target MAC (Media Access Control) address of the user's message is the first MAC Address, purpose IP address is the first IP address, then exists When carrying out two layers of forwarding, Leaf equipment can be according to the first MAC Address, the corresponding MAC of the first VXLAN belonging to the user's message In the table of location search the first VT, then, according to the first VT searched in VT contingency table corresponding M VXLAN tunnel Tunnel1, Tunnel2 ..., TunnelM, the tunnel VXLAN of effective status is in for each of these, to the user's message carry out After VXLAN encapsulation, forwarded by the tunnel VXLAN.
When carrying out three layers of forwarding, Leaf equipment can search the first VT, so according to the first IP address in IP route table Afterwards, according to the first VT searched in VT contingency table corresponding M VXLAN tunnel Tunnel1, Tunnel2 ..., TunnelM, needle It is in the tunnel VXLAN of effective status to each of these, after carrying out VXLAN encapsulation to the user's message, passes through the VXLAN Tunnel forwards.
In addition, Leaf equipment needs are updated corresponding VT list item, alternatively, right when network topology changes MAC address entries and IP list item are updated.
When detecting that the tunnel VXLAN becomes DOWN (unavailable), at this time, it is only necessary to update corresponding VT list item. Specifically, Leaf equipment searches the VT list item comprising the not available tunnel VXLAN in VT contingency table, the VT table that will be found The state in the tunnel VXLAN in is updated to invalid (deactive), in this way, carrying out message forwarding according to the VT list item When, it would not be forwarded by the tunnel VXLAN.It is subsequent, when detecting the VXLAN tunnel restoration is UP (available), The VT list item comprising the tunnel VXLAN is searched in VT contingency table, by the state in the tunnel VXLAN in the VT list item found Again it is updated to effectively, in this way, can be carried out again through the tunnel VXLAN when carrying out message forwarding according to the VT list item It forwarded.
As it can be seen that the VT list item comprising the tunnel VXLAN only need to be updated i.e. when the tunnel VXLAN becomes DOWN or restores UP Can, since the quantity for the VT list item for needing to update is seldom, it is effectively reduced list item and updates required time and workload, Improve the switch speed of data flow.
When detecting that the ES link in this equipment breaks down, Leaf equipment can issue the route withdraw message of the ES, Subsequent, when detecting the ES link failure recovery, Leaf equipment can issue the advertising of route message of the ES.To which Leaf is set For after the route withdraw message for receiving the first ES, step as shown in Figure 5 can be executed:
Step S501 is searched and the tunnel the first ES corresponding M VXLAN in ES information table as shown in table 3 Tunnel1, Tunnel2 ..., TunnelM searches and the first tunnel for being made of this M tunnel VXLAN in VT contingency table Corresponding first VT of redundant group;
Step S502 deletes corresponding equipment of the first ES and issues the route withdraw of the first ES in ES information table The tunnel VXLAN Tunnel1 between the Leaf equipment of message, so that table 3 is updated to table 7-1, i.e. the first ES corresponds to Tunnel2 ..., this M-1 tunnel VXLAN TunnelM;In VT contingency table, lookup is formed with by this M-1 tunnel VXLAN Corresponding 2nd VT of the second tunnel redundant group;
Table 7-1
ES Next hop information
First ES Tunnel2,…,TunnelM
Step S503 judges whether to have found the 2nd VT, if so, thening follow the steps S505, otherwise, executes step S504;
Step S504, VT list item of the addition comprising the 2nd VT and the second tunnel redundant group in VT contingency table, by second The state in the tunnel each of tunnel redundant group VXLAN is set as effective;
Step S505 updates the first VT in the MAC address entries in the mac address table as shown in table 5-2 comprising the first ES The first VT in the IP list item in the IP route table as shown in table 6-2 comprising the first ES is updated to the 2nd VT for the 2nd VT. At this point, the mac address table as shown in table 5-2 is updated to as shown in table 5-3, the IP route table as shown in table 6-2 is updated to such as table Shown in 6-3.
Table 5-3
MAC VXLAN ID Outgoing interface ES
First MAC Address First VXLAN 2nd VT First ES
Table 6-3
IP Next hop information ES
First IP address 2nd VT, the first VXLAN First ES
In addition, Leaf equipment after the advertising of route message for receiving the first ES, can execute step as shown in Figure 6:
Step S601 is searched and the tunnel the first ES corresponding M VXLAN in ES information table as shown in table 3 Tunnel1, Tunnel2 ..., TunnelM searches and the first tunnel for being made of this M tunnel VXLAN in VT contingency table Corresponding first VT of redundant group;
Step S602 increases corresponding equipment of the first ES and issues the first ES in ES information table as shown in table 3 Advertising of route message Leaf equipment between the tunnel VXLAN TunnelM+1, so that table 3 is updated to table 7-2, i.e., first ES correspond to Tunnel1, Tunnel2 ..., this M+1 tunnel VXLAN TunnelM, TunnelM+1;In VT contingency table, look into Look for threeth VT corresponding with the third tunnel redundant group being made of this M+1 tunnel VXLAN;
Table 7-2
ES Next hop information
First ES Tunnel2,…,TunnelM,TunnelM+1
Step S603 judges whether to have found the 3rd VT, if so, thening follow the steps S605, otherwise, executes step S604;
Step S604, VT list item of the addition comprising the 3rd VT and third tunnel redundant group in VT contingency table, by third The state in the tunnel each of tunnel redundant group VXLAN is set as effective;
Step S605 updates the first VT in the MAC address entries in the mac address table as shown in table 5-2 comprising the first ES The first VT in the IP list item in the IP route table as shown in table 6-2 comprising the first ES is updated to the 3rd VT for the 3rd VT. At this point, the mac address table as shown in table 5-2 is updated to as shown in table 5-4, the IP route table as shown in table 6-2 is updated to such as table Shown in 6-4.
Table 5-4
MAC VXLAN ID Outgoing interface ES
First MAC Address First VXLAN 3rd VT First ES
Table 6-4
IP Next hop information ES
First IP address 3rd VT, the first VXLAN First ES
As it can be seen that when failure or fault recovery has occurred in a certain ES link, need to only update the MAC address entries comprising the ES and IP list item, due to the limited amount of the VM of the ES link connection, it is therefore desirable to the MAC address entries of update and the quantity of IP list item Also less, therefore, it is effectively reduced list item and updates required time and workload, improve the switch speed of data flow.
By taking practical ENPN networking shown in FIG. 1 as an example, method that above-described embodiment is described in detail.As shown in Figure 1 In EVPN network, VM1 belongs to Leaf equipment Leaf1, Leaf2 and Leaf3 by the corresponding ES link of ES1 more, and VM2 passes through The corresponding ES link of ES2 belongs to Leaf2 and Leaf3 more.The mac address table of VM is shown as VM-MAC, IP address is expressed as VM- IP.The tunnel VXLAN between Leafi and Leafj is expressed as Tunnel ij, wherein i=1,2,3,4, j=1,2,3,4, i ≠ j。
After being configured with ES1, Leaf1, Leaf2, Leaf3 can send the advertising of route message of ES1.It is being configured with ES2 Later, Leaf2, Leaf3 can send ES2 advertising of route message.After Leaf4 receives above-mentioned advertising of route message, it can obtain Then the ES information table as shown in table 8-1 creates the VT contingency table as shown in table 9-1.
Table 8-1
ES Next hop information
ES1 Tunnel14,Tunnel24,Tunnel34
ES2 Tunnel24,Tunnel34
Table 9-1
VT Next hop information
VT1 Tunnel14(active),Tunnel24(active),Tunnel34(active)
VT2 Tunnel14(active),Tunnel24(active)
VT3 Tunnel14(active),Tunnel34(active)
VT4 Tunnel24(active),Tunnel34(active)
VT5 Tunnel14(active)
VT6 Tunnel24(active)
VT7 Tunnel34(active)
Leaf1 sends the corresponding address notification routing of VM1 to Leaf4, wherein carries VM1 in address notification routing MAC Address VM1-MAC and IP address VM1-IP, ES1, VM1 belonging to VXLAN1;Leaf4 receives address notification routing Later, the MAC address entries as shown in the 2nd row of table 10-1 can be added in the corresponding mac address table of VXLAN1, and in IP route table Middle addition IP list item as shown in the 2nd row of table 11-1.
In addition, Leaf2 sends the corresponding address notification routing of VM2 to Leaf4, wherein carried in address notification routing There is VXLAN1 belonging to the MAC Address VM2-MAC and IP address VM2-IP, ES2, VM2 of VM2;Leaf4 receives the address notification After routing, the MAC address entries as shown in the 3rd row of table 10-1 can be added in the corresponding mac address table of VXLAN1, and on the road IP As adding the IP list item as shown in the 3rd row of table 11-1 in table.
Table 10-1
MAC Address VXLAN ID Outgoing interface ES
VM1-MAC VXLAN1 VT1 ES1
VM2-MAC VXLAN1 VT4 ES2
Table 11-1
IP address Next hop information ES
VM1-IP VT1, VXLAN1 ES1
VM2-IP VT4, VXLAN1 ES2
When VM3 needs to send user's message to VM1, it can issue that target MAC (Media Access Control) address is VM1-MAC, purpose IP address is The user's message of VM1-IP, after Leaf4 receives the user's message, according to VM1-MAC, the MAC as shown in table 10-1 Corresponding VT1 is searched in the table of location, then, searches corresponding tunnel redundant group in the VT contingency table as shown in table 9-1 according to VT1 Tunnel14, Tunnel24, Tunnel34 are in the tunnel VXLAN of effective status for each of the tunnel redundant group, After carrying out VXLAN encapsulation to the user's message, forwarded by the tunnel VXLAN.
When Leaf4 detects that the tunnel the VXLAN Tunnel14 between this equipment and Leaf1 becomes DOWN, Leaf4 can be The VT list item comprising Tunnel14 is searched in VT contingency table shown in table 9-1, so as to find such as table 9-1 the 2nd, 3,4,6 The state of Tunnel14 in these VT list items is updated to deactive, as shown in table 9-2 by VT list item shown in row.
Table 9-2
VT Next hop information
VT1 Tunnel14(deactive),Tunnel24(active),Tunnel34(active)
VT2 Tunnel14(deactive),Tunnel24(active)
VT3 Tunnel14(deactive),Tunnel34(active)
VT4 Tunnel24(active),Tunnel34(active)
VT5 Tunnel14(deactive)
VT6 Tunnel24(active)
VT7 Tunnel34(active)
Subsequent, when Leaf4 detects that Tunnel14 reverts to UP, Leaf4 can be looked into the VT contingency table shown in table 9-2 The VT list item comprising Tunnel14 is looked for, so that the VT list item as shown in table 9-2 the 2nd, 3,4,6 rows is found, by these VT list items In the state of Tunnel14 be updated to active, as shown in table 9-1.
In addition, Leaf1 can send the route withdraw message of ES1 when the ES link of Leaf1 connection VM1 breaks down. After Leaf4 receives the route withdraw message, it is corresponding ES1 to be found from the ES information table as shown in table 8-1 Tunnel14, Tunnel24, Tunnel34, find in VT contingency table shown in Cong Rubiao 9-1 with by Tunnel14, Then the corresponding VT1 of tunnel redundant group of Tunnel24, Tunnel34 composition is deleted in ES information table shown in Cong Rubiao 8-1 The corresponding Tunnel14 of ES1 obtains the ES information table as shown in table 8-2, found in VT contingency table shown in Cong Rubiao 9-1 with The corresponding VT4 of tunnel redundant group being made of Tunnel24, Tunnel34 later will be in the mac address table as shown in table 10-1 VT1 in MAC address entries comprising ES1 is updated to VT4, and updated mac address table, also, will be such as table 11- as shown in table 10-2 The VT1 in IP list item in IP route table shown in 1 comprising ES1 is updated to VT4, updated IP route table such as table 11-2 institute Show.
Table 8-2
ES Next hop information
ES1 Tunnel24,Tunnel34
ES2 Tunnel24,Tunnel34
Table 10-2
MAC Address VXLAN ID Outgoing interface ES
VM1-MAC VXLAN1 VT4 ES1
VM2-MAC VXLAN1 VT4 ES2
Table 11-2
IP address Next hop information ES
VM1-IP VT4, VXLAN1 ES1
VM2-IP VT4, VXLAN1 ES2
Subsequent, when the ES link failure recovery of Leaf1 connection VM1, the notice that Leaf1 can send the ES routing of ES1 disappears Breath.After Leaf4 receives the notice message, it is corresponding ES1 to be found from the ES information table as shown in table 8-2 Tunnel24, Tunnel34 find in VT contingency table shown in Cong Rubiao 9-1 and are made of Tunnel24, Tunnel34 Then redundant group corresponding VT4 in tunnel increases the corresponding Tunnel14 of ES1 in the ES information table as shown in table 8-2, obtains The ES information table as shown in table 8-1, find in VT contingency table shown in Cong Rubiao 9-1 with by Tunnel14, Tunnel24, The corresponding VT1 of tunnel redundant group of Tunnel34 composition, later, by including ES1 in the mac address table as shown in table 10-2 VT4 in MAC address entries is updated to VT1, and updated mac address table, also, will the IP as shown in table 11-2 as shown in table 10-1 The VT4 in IP list item in routing table comprising ES1 is updated to VT1, and updated IP route table is as shown in table 11-1.
It is corresponding with the embodiment of aforementioned message forwarding method, present invention also provides the embodiment of apparatus for forwarding message, The apparatus for forwarding message can be applied in the Leaf equipment in EVPN network.
It please refers to shown in Fig. 7, is comprised the following modules in the apparatus for forwarding message: receiving module 701,702 and of searching module Encapsulate sending module 703, in which:
Receiving module 701, the user's message sent for receiving VM;
Searching module 702, for being reported according to the user after the user's message that receiving module 701 receives that VM is sent The destination address of text, searches corresponding VT in forwarding table, wherein includes the corresponding relationship of address and VT in forwarding table;Also use According to the VT found, corresponding tunnel redundant group is searched in VT contingency table, wherein include VT and tunnel in VT contingency table The corresponding relationship of redundant group includes at least one tunnel VXLAN in tunnel redundant group;
Sending module 703 is encapsulated, for after searching module 702 finds corresponding tunnel redundant group, to the user Message carries out VXLAN encapsulation, and the VXLAN message that encapsulation obtains is forwarded by the tunnel VXLAN in the tunnel redundant group.
As shown in figure 8, in the apparatus for forwarding message further include: logging modle 704 and VT list item update module 705, in which:
Receiving module 701 is also used to receive advertising of route message;
Logging modle 704, for being believed after the advertising of route message that receiving module 701 receives M the first ES in ES Cease the corresponding relationship that the first ES and the M tunnel VXLAN is recorded in table, wherein the tunnel VXLAN is the first ES of this equipment and sending The tunnel VXLAN between the equipment of advertising of route message, M are the positive integer not less than 2;
VT list item update module 705 obtains at least two for being combined according to preset rules to this M tunnel VXLAN A tunnel redundant group, for each tunnel redundant group of composition, if the tunnel redundant group is not present in VT contingency table, for this Tunnel redundant group distributes a VT, and addition includes the VT list item of the VT and the tunnel redundant group in VT contingency table, by the tunnel The state in the tunnel each of redundant group VXLAN is set as effective.
In addition, as shown in figure 8, in the apparatus for forwarding message further include: MAC address entries update module 706 and IP list item update Module 707, in which:
Receiving module 701 is also used to receive the address notification road for carrying the first address, the first ES and the first VXLAN By, wherein the first address includes: the first MAC Address, alternatively, the first MAC Address and the first IP address;
Searching module 702 is also used to after receiving module 701 receives address notification routing, in ES information table Search with the tunnel the first ES corresponding M VXLAN, in VT contingency table, lookup and be made of this M tunnel VXLAN first Corresponding first VT of tunnel redundant group;
MAC address entries update module 706, for searching module 702 find be made of this M tunnel VXLAN the After corresponding first VT of one tunnel redundant group, corresponding MAC address entries are added in the corresponding mac address table of the first VXLAN, In, it include: the first MAC Address and the first VT in the MAC address entries;
IP list item update module 707, for being found in searching module 702 when the first address includes the first IP address After the first VT corresponding with the first tunnel redundant group being made of this M tunnel VXLAN, added in IP route table corresponding IP list item, wherein include: the first IP address and the first VT in the IP list item.
In addition, in the MAC address entries added in the corresponding mac address table of the first VXLAN further include: the first ES, on the road IP By in the IP list item that is added in table further include: the first ES;Then, as shown in figure 8, in the apparatus for forwarding message further include: additions and deletions mould Block 708, in which:
Receiving module 701 is also used to receive route withdraw message;
Searching module 702 is also used to after the route withdraw message that receiving module 701 receives the first ES, is believed in ES It ceases to search in table and lookup and be made of the M tunnel VXLAN in VT contingency table with the tunnel the first ES corresponding M VXLAN Corresponding first VT of first tunnel redundant group;It is also used to delete corresponding equipment of the first ES in additions and deletions module 708 and issues the The tunnel VXLAN between the equipment of the route withdraw message of one ES, obtain with after the tunnel the first ES corresponding M-1 VXLAN, In VT contingency table, corresponding 2nd VT of the second tunnel redundant group being made of this M-1 tunnel VXLAN is searched;
Additions and deletions module 708, the first tunnel redundancy for finding and being made of the M tunnel VXLAN in searching module 702 After corresponding first VT of group, in ES information table, deletes corresponding equipment of the first ES and issue the route withdraw of the first ES The tunnel VXLAN between the equipment of message obtains and the tunnel the first ES corresponding M-1 VXLAN;
VT list item update module 705, if being also used to searching module 702 does not find the 2nd VT, in VT contingency table VT list item of the addition comprising the 2nd VT and the second tunnel redundant group, by each of the second tunnel redundant group tunnel VXLAN State be set as effective;
MAC address entries update module 706 will be in mac address table if being also used to searching module 702 has found the 2nd VT The first VT in MAC address entries comprising the first ES is updated to the 2nd VT;It is also used to be added to packet in VT list item update module 705 It, will be in the MAC address entries in mac address table comprising the first ES after VT list item containing the 2nd VT and the second tunnel redundant group First VT is updated to the 2nd VT;
IP list item update module 707 will wrap if being also used to searching module 702 has found the 2nd VT in IP route table The first VT in IP list item containing the first ES is updated to the 2nd VT;It is also used to be added in VT list item update module 705 comprising After two VT and the VT list item of the second tunnel redundant group, by include in IP route table the first ES IP list item in the first VT, It is updated to the 2nd VT.
In addition, searching module 702, is also used to after the advertising of route message that receiving module 701 receives the first ES, It searches in ES information table and is searched and in VT contingency table by this M tunnel VXLAN with the tunnel the first ES corresponding M VXLAN Corresponding first VT of the first tunnel redundant group of composition;Be also used to additions and deletions module 708 increase corresponding equipment of the first ES with The tunnel VXLAN between the equipment of the advertising of route message of the first ES is issued, M+1 VXLAN corresponding with the first ES is obtained After tunnel, in VT contingency table, third corresponding with the third tunnel redundant group being made of this M+1 tunnel VXLAN is searched VT;
Additions and deletions module 708 is also used to find in searching module 702 superfluous with the first tunnel for being made of the M tunnel VXLAN After remaining group of corresponding first VT, in ES information table, increases corresponding equipment of the first ES and issue the routing of the first ES The tunnel VXLAN between the equipment of notice message obtains and the tunnel the first ES corresponding M+1 VXLAN;
VT list item update module 705, if being also used to searching module 702 does not find the 3rd VT, in VT contingency table VT list item of the addition comprising the 3rd VT and third tunnel redundant group, by each of the third tunnel redundant group tunnel VXLAN State be set as effective;
MAC address entries update module 706 will be in mac address table if being also used to searching module 702 has found the 3rd VT The first VT in MAC address entries comprising the first ES is updated to the 3rd VT;It is also used to be associated in VT list item update module 705 in VT It will include the first ES's in mac address table in table after VT list item of the addition comprising the 3rd VT and third tunnel redundant group The first VT in MAC address entries, is updated to the 3rd VT;
IP list item update module 707 will wrap if being also used to searching module 702 has found the 3rd VT in IP route table The first VT in IP list item containing the first ES is updated to the 3rd VT;It is also used in VT list item update module 705 in VT contingency table It will include the IP list item of the first ES in IP route table after VT list item of the addition comprising the 3rd VT and third tunnel redundant group In the first VT, be updated to the 3rd VT.
Wherein, as shown in figure 8, in the apparatus for forwarding message further include: detection module 709, in which:
Detection module 709, for detecting the state in the tunnel VXLAN;
Searching module 702 is also used to when detection module 709 detects that the tunnel VXLAN becomes unavailable, in VT contingency table It is middle to search the VT list item comprising the tunnel VXLAN;It is also used to detect that the VXLAN tunnel restoration is available when detection module 702 When, the VT list item comprising the tunnel VXLAN is searched in VT contingency table;
VT list item update module 705 is also used to find in searching module 702 comprising the not available tunnel VXLAN After VT list item, the state in the tunnel VXLAN in the VT list item is updated in vain;It is also used to search in searching module 702 To after the VT list item comprising the available tunnel VXLAN of the recovery, the state in the tunnel VXLAN in the VT list item is updated to Effectively.
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 the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (12)

1. a kind of message forwarding method, which is characterized in that the described method includes:
Receive the user's message that virtual machine VM is sent;
According to the destination address of the user's message, corresponding virtual channel VT is searched in forwarding table, wherein the forwarding table In include address and VT corresponding relationship;
According to the VT found, corresponding tunnel redundant group is searched in VT contingency table, wherein include VT in the VT contingency table It include at least one expansible Virtual Local Area Network VXLAN tunnel in the tunnel redundant group with the corresponding relationship of tunnel redundant group Road;
VXLAN encapsulation is carried out to the user's message, by the obtained VXLAN message of encapsulation by searching for tunnel redundant group in The tunnel VXLAN forward.
2. the method according to claim 1, wherein further include:
After the advertising of route message for receiving M the first ether section ES, the first ES and M is recorded in ES information table The corresponding relationship in the tunnel VXLAN, wherein the tunnel VXLAN is this equipment and the advertising of route message for issuing the first ES Equipment between the tunnel VXLAN, M is positive integer not less than 2;
The tunnel the M VXLAN is combined according to preset rules, obtains at least two tunnel redundant groups;
For each tunnel redundant group of composition, if the tunnel redundant group is not present in the VT contingency table, for the tunnel Redundant group distributes a VT, and addition includes the VT list item of the VT and the tunnel redundant group in the VT contingency table, by the tunnel The state in the tunnel each of redundant group VXLAN is set as effective.
3. according to the method described in claim 2, it is characterized in that, recording the first ES and M VXLAN in ES information table After the corresponding relationship in tunnel, further includes:
Receive the address notification routing for carrying the first address, the first ES and the first VXLAN, wherein first ground Location includes: the first MAC Address, alternatively, the first MAC Address and the first IP address;
The tunnel the M VXLAN corresponding with the first ES is searched in the ES information table;
In the VT contingency table, search and the first tunnel redundant group corresponding first for being made of the tunnel the M VXLAN VT;
Corresponding MAC address entries are added in the corresponding mac address table of the first VXLAN, wherein include: institute in the MAC address entries State the first MAC Address and the first VT;
When first address includes the first IP address, corresponding IP list item is added in IP route table, wherein the IP list item In include: first IP address and the first VT.
4. according to the method described in claim 3, it is characterized in that, being added in the corresponding mac address table of the first VXLAN MAC address entries in further include: the first ES;In the IP list item added in the IP route table further include: the first ES; Then, the method also includes:
Receive the route withdraw message of the first ES;
The tunnel the M VXLAN corresponding with the first ES is searched in the ES information table;
In the VT contingency table, corresponding with the first tunnel redundant group being made of the tunnel the M VXLAN described the is searched One VT;
In the ES information table, the corresponding tunnel VXLAN the first ES is deleted, is obtained corresponding with the first ES The M-1 tunnel VXLAN, shouldOne deletedThe tunnel VXLAN is this equipment and the route withdraw message for issuing the first ES Tunnel between equipment;
In the VT contingency table, search and the second tunnel redundant group corresponding second for being made of the tunnel the M-1 VXLAN VT;
If having found the 2nd VT, by include in the mac address table the first ES MAC address entries in described the One VT is updated to the 2nd VT, by the first VT in the IP list item in the IP route table comprising the first ES, more It is newly the 2nd VT;
If not finding the 2nd VT, addition includes the 2nd VT and described second in the VT contingency table The VT list item of tunnel redundant group sets effective for the state in each of second tunnel redundant group tunnel VXLAN;It will The first VT in MAC address entries in the mac address table comprising the first ES, is updated to the 2nd VT, will be described The first VT in IP list item in IP route table comprising the first ES, is updated to the 2nd VT.
5. according to the method described in claim 3, it is characterized in that, being added in the corresponding mac address table of the first VXLAN MAC address entries in further include: the first ES;In the IP list item added in the IP route table further include: the first ES; Then, the method also includes:
Receive the advertising of route message of the first ES;
The tunnel the M VXLAN corresponding with the first ES is searched in the ES information table;
In the VT contingency table, institute corresponding with first tunnel redundant group being made of the tunnel the M VXLAN is searched State the first VT;
In the ES information table, increases described corresponding equipment of first ES and issue the advertising of route message of the first ES The tunnel VXLAN between equipment obtains and the tunnel the first ES corresponding M+1 VXLAN;
In the VT contingency table, third corresponding with the third tunnel redundant group being made of the tunnel the M+1 VXLAN is searched VT;
If having found the 3rd VT, by include in the mac address table the first ES MAC address entries in described the One VT is updated to the 3rd VT, by the first VT in the IP list item in the IP route table comprising the first ES, more It is newly the 3rd VT;
If not finding the 3rd VT, addition includes the 3rd VT and the third in the VT contingency table The VT list item of tunnel redundant group sets effective for the state in each of the third tunnel redundant group tunnel VXLAN;It will The first VT in MAC address entries in the mac address table comprising the first ES, is updated to the 3rd VT, will be described The first VT in IP list item in IP route table comprising the first ES, is updated to the 3rd VT.
6. according to the method described in claim 2, it is characterized by further comprising:
When detecting that the tunnel VXLAN becomes unavailable, the VT table comprising the tunnel VXLAN is searched in the VT contingency table , the state in the tunnel VXLAN in the VT list item found is updated in vain;
When it is available for detecting the VXLAN tunnel restoration, the VT table comprising the tunnel VXLAN is searched in the VT contingency table , the state in the tunnel VXLAN in the VT list item found is updated to effectively.
7. a kind of apparatus for forwarding message, which is characterized in that described device includes:
Receiving module, the user's message sent for receiving virtual machine VM;
Searching module, for after the user's message that the receiving module receives that VM is sent, according to the user's message Destination address searches corresponding virtual channel VT in forwarding table, wherein including that address is corresponding with VT in the forwarding table closes System;It is also used to search corresponding tunnel redundant group in VT contingency table, wherein in the VT contingency table according to the VT found Corresponding relationship including VT Yu tunnel redundant group includes at least one expansible Virtual Local Area Network in tunnel redundant group The tunnel VXLAN;
Sending module is encapsulated, for after the searching module finds corresponding tunnel redundant group, to the user's message VXLAN encapsulation is carried out, the VXLAN message that encapsulation obtains is forwarded by the tunnel VXLAN in the tunnel redundant group.
8. device according to claim 7, which is characterized in that further include: logging modle and VT list item update module, In:
The receiving module is also used to receive advertising of route message;
The logging modle, for after the advertising of route message that the receiving module receives M the first ether section ES, The corresponding relationship of the first ES and the M tunnel VXLAN are recorded in ES information table, wherein the tunnel VXLAN be this equipment with The tunnel VXLAN between the equipment of the advertising of route message of the first ES is issued, M is the positive integer not less than 2;
The VT list item update module obtains at least two for being combined according to preset rules to the tunnel the M VXLAN A tunnel redundant group, for each tunnel redundant group of composition, if the tunnel redundant group is not present in the VT contingency table, A VT is distributed for the tunnel redundant group, addition includes the VT list item of the VT and the tunnel redundant group in the VT contingency table, Set effective for the state in the tunnel each of tunnel redundant group VXLAN.
9. device according to claim 8, which is characterized in that further include: MAC address entries update module and IP list item update mould Block, in which:
The receiving module is also used to receive the address notification for carrying the first address, the first ES and the first VXLAN Routing, wherein first address includes: the first MAC Address, alternatively, the first MAC Address and the first IP address;
The searching module is also used to after the receiving module receives the address notification routing, in the ES information The tunnel the M VXLAN corresponding with the first ES is searched in table, in the VT contingency table, is searched and by the M Corresponding first VT of the first tunnel redundant group of the tunnel VXLAN composition;
The MAC address entries update module, for the searching module find be made of the tunnel the M VXLAN the After corresponding first VT of one tunnel redundant group, corresponding MAC table is added in the corresponding mac address table of the first VXLAN , wherein it include: first MAC Address and the first VT in the MAC address entries;
The IP list item update module, for being searched in the searching module when first address includes the first IP address To after first VT corresponding with the first tunnel redundant group being made of the tunnel the M VXLAN, the addition pair in IP route table The IP list item answered, wherein include: first IP address and the first VT in the IP list item.
10. device according to claim 9, which is characterized in that add in the corresponding mac address table of the first VXLAN In the MAC address entries added further include: the first ES, in the IP list item added in the IP route table further include: described first ES;Then, described device further include: additions and deletions module, in which:
The receiving module is also used to receive route withdraw message;
The searching module is also used to after the route withdraw message that the receiving module receives the first ES, in institute State and search corresponding with the first ES tunnel the M VXLAN in ES information table, in the VT contingency table, lookup and by Corresponding first VT of the first tunnel redundant group of the tunnel M VXLAN composition;It is also used to delete in the additions and deletions module The corresponding tunnel VXLAN first ES, obtain with after the tunnel the first ES corresponding M-1 VXLAN, shouldIt deletes OneThe tunnel VXLAN is the tunnel between this equipment and the equipment of the route withdraw message of sending the first ES;Described In VT contingency table, corresponding 2nd VT of the second tunnel redundant group being made of the tunnel the M-1 VXLAN is searched;
The additions and deletions module, it is superfluous with the first tunnel for being made of the tunnel the M VXLAN for being found in the searching module After remaining group of corresponding first VT, in the ES information table, deletes described corresponding equipment of first ES and issue institute The tunnel VXLAN between the equipment of the route withdraw message of the first ES is stated, M-1 VXLAN corresponding with the first ES is obtained Tunnel;
The VT list item update module is closed if being also used to the searching module does not find the 2nd VT in the VT Join VT list item of the addition comprising the 2nd VT and second tunnel redundant group in table, by second tunnel redundant group Each of the state in the tunnel VXLAN be set as effective;
The MAC address entries update module, if being also used to the searching module has found the 2nd VT, by the MAC The first VT in MAC address entries in the table of location comprising the first ES, is updated to the 2nd VT;It is also used in the VT table Item update module is added to after the VT list item comprising the 2nd VT and second tunnel redundant group, by the MAC The first VT in MAC address entries in the table of location comprising the first ES, is updated to the 2nd VT;
The IP list item update module routes the IP if being also used to the searching module has found the 2nd VT The first VT in IP list item in table comprising the first ES, is updated to the 2nd VT;It is also used in the VT list item Update module is added to after the VT list item comprising the 2nd VT and second tunnel redundant group, and the IP is routed The first VT in IP list item in table comprising the first ES, is updated to the 2nd VT.
11. device according to claim 9, which is characterized in that add in the corresponding mac address table of the first VXLAN In the MAC address entries added further include: the first ES;In the IP list item added in the IP route table further include: described first ES;Then, described device further include: additions and deletions module, in which:
The searching module is also used to after the advertising of route message that the receiving module receives the first ES, in institute State and search corresponding with the first ES tunnel the M VXLAN in ES information table, in the VT contingency table, lookup and by Corresponding first VT of first tunnel redundant group of the tunnel M VXLAN composition;It is also used in the additions and deletions module Increase the tunnel VXLAN between described corresponding equipment of first ES and the equipment for the advertising of route message for issuing the first ES, It obtains in the VT contingency table, searching and by the M+1 with after the tunnel the first ES corresponding M+1 VXLAN Corresponding 3rd VT of third tunnel redundant group of the tunnel VXLAN composition;
The additions and deletions module, be also used to find in the searching module and be made of the tunnel the M VXLAN described first After corresponding first VT of tunnel redundant group, in the ES information table, increase described corresponding equipment of first ES with The tunnel VXLAN between the equipment of the advertising of route message of the first ES is issued, obtains M+1 corresponding with the first ES The tunnel VXLAN;
The VT list item update module is closed if being also used to the searching module does not find the 3rd VT in the VT Join VT list item of the addition comprising the 3rd VT and third tunnel redundant group in table, by third tunnel redundant group Each of the state in the tunnel VXLAN be set as effective;
The MAC address entries update module, if being also used to the searching module has found the 3rd VT, by the MAC The first VT in MAC address entries in the table of location comprising the first ES, is updated to the 3rd VT;It is also used in the VT table Update module add in the VT contingency table include the 3rd VT and third tunnel redundant group VT list item it Afterwards, by the first VT in the MAC address entries in the mac address table comprising the first ES, it is updated to the 3rd VT;
The IP list item update module routes the IP if being also used to the searching module has found the 3rd VT The first VT in IP list item in table comprising the first ES, is updated to the 3rd VT;It is also used in the VT list item Update module added in the VT contingency table VT list item comprising the 3rd VT and third tunnel redundant group it Afterwards, by the first VT in the IP list item in the IP route table comprising the first ES, it is updated to the 3rd VT.
12. device according to claim 8, which is characterized in that further include: detection module, in which:
The detection module, for detecting the state in the tunnel VXLAN;
The searching module is also used to when the detection module detects that the tunnel VXLAN becomes unavailable, is associated in the VT The VT list item comprising the tunnel VXLAN is searched in table;Be also used to when the detection module detect the VXLAN tunnel restoration be can Used time searches the VT list item comprising the tunnel VXLAN in the VT contingency table;
The VT list item update module is also used to find the VT comprising the not available tunnel VXLAN in the searching module After list item, the state in the tunnel VXLAN in the VT list item is updated in vain;It is also used to find in the searching module After VT list item comprising the available tunnel VXLAN of the recovery, the state in the tunnel VXLAN in the VT list item has been updated to Effect.
CN201610585443.0A 2016-07-20 2016-07-20 Message forwarding method and device Active CN106230727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610585443.0A CN106230727B (en) 2016-07-20 2016-07-20 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610585443.0A CN106230727B (en) 2016-07-20 2016-07-20 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106230727A CN106230727A (en) 2016-12-14
CN106230727B true CN106230727B (en) 2019-09-17

Family

ID=57531400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610585443.0A Active CN106230727B (en) 2016-07-20 2016-07-20 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106230727B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878072B (en) * 2017-02-10 2020-04-03 新华三技术有限公司 Message transmission method and device
CN109510751B (en) * 2018-12-19 2021-07-20 迈普通信技术股份有限公司 Message forwarding method and routing equipment
CN113852917B (en) * 2021-05-31 2023-04-07 山东浪潮科学研究院有限公司 Multicast-based downlink data packet addressing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103503413A (en) * 2012-12-28 2014-01-08 华为技术有限公司 Method and device for transmitting network information
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
US9397931B1 (en) * 2013-08-16 2016-07-19 Juniper Networks, Inc. Fast convergence in singly-homed ethernet virtual private networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103503413A (en) * 2012-12-28 2014-01-08 华为技术有限公司 Method and device for transmitting network information
US9397931B1 (en) * 2013-08-16 2016-07-19 Juniper Networks, Inc. Fast convergence in singly-homed ethernet virtual private networks
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device

Also Published As

Publication number Publication date
CN106230727A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
US10333836B2 (en) Convergence for EVPN multi-homed networks
US10749742B2 (en) Managing virtual port channel switch peers from software-defined network controller
US10666561B2 (en) Virtual machine migration
JP2023065418A (en) Method and apparatus for implementing and managing virtual switches
CN106878048B (en) Fault processing method and device
US9590902B2 (en) Signaling aliasing capability in data centers
CN104243318B (en) MAC address learning method and device in VXLAN networks
EP3222011B1 (en) Recovering from virtual port channel peer failure
ES2748376T3 (en) Method and apparatus for exchanging IP packets between network layer 2 pairs
CN105471740A (en) Gateway migration processing method and gateway migration processing device based on software defined network
CN105656796B (en) The method and apparatus for realizing three layers of virtual extended local area network forwarding
CN105577417B (en) Message forwarding method and device based on VXLAN network
JP2014135721A (en) Device and method for distributing traffic of data center network
CN103227843A (en) Physical link address management method and device
CN106230727B (en) Message forwarding method and device
CN113381931B (en) Method and device for supporting MLAG (Multi-level Access gateway) dual-active access in VXLAN (virtual extensible local area network)
CN106059946A (en) Message forwarding method and message forwarding device
CN103825815B (en) Method, equipment and the system of redundancy backup are carried out between network virtual edge device
CN105591872B (en) A kind of method and apparatus for realizing multiple data centers interconnection
EP3018866A1 (en) Signaling aliasing capability in data centers
US11115316B2 (en) Learning orphan ports in a multi-chassis link aggregation group
CN109302344B (en) Message forwarding method and device
CN117997825A (en) Redirection method, device, network equipment and readable storage medium
CN105471939A (en) Service chain data packet correlation method and correlation device

Legal Events

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

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant