CN104243630A - MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network) - Google Patents

MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network) Download PDF

Info

Publication number
CN104243630A
CN104243630A CN201410512381.1A CN201410512381A CN104243630A CN 104243630 A CN104243630 A CN 104243630A CN 201410512381 A CN201410512381 A CN 201410512381A CN 104243630 A CN104243630 A CN 104243630A
Authority
CN
China
Prior art keywords
mac address
list item
vxlan
message
lsp message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410512381.1A
Other languages
Chinese (zh)
Other versions
CN104243630B (en
Inventor
羊俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410512381.1A priority Critical patent/CN104243630B/en
Publication of CN104243630A publication Critical patent/CN104243630A/en
Application granted granted Critical
Publication of CN104243630B publication Critical patent/CN104243630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a MAC (media access control) address learning method and an MAC address learning device in a VXLAN (virtual extensible local area network). The method comprises the following steps of carrying out learning on source MAC addresses after receiving a data report from a local network; adding learned local MAC address table items in an MAC address forwarding table; stopping learning on the source MAC addresses after receiving the data report from tunnels; transmitting synchronous reports by using the tunnels which are relevant to the VXLAN in the changed local MAC address table items when the local MAC address table items in the AMC address forwarding table are changed; storing the synchronous reports in a database on equipment so as to update the MAC address forwarding table on opposite terminal VTEPs (Virtual tunnel end points) by using the opposite terminal VTEPs according to the synchronous reports. Each VTEP is provided with a database. Synchronizing of information of MAC addresses of a control plane is realized in the VXLAN.

Description

MAC address learning method in VXLAN network and device
Technical field
The application relates to network communication technology field, a kind of MAC address learning method particularly in VXLAN network and device.
Background technology
VXLAN (Virtual eXtensible Local Area Network, virtual easily extensible local area network (LAN)) be the network technology of a kind of Overlay (overlapping), use MAC (Media Access Control, media interviews control) in UDP (User Datagram Protocol, User Datagram Protocol) method encapsulate, be encapsulated in UDP message by original message.
As shown in Figure 1, VXLAN network comprises: by multiple terminal equipment (such as, virtual machine) local network that forms and VTEP (VXLAN Tunnel End Point, VXLAN tunneling termination), wherein, VTEP is the edge device of VXLAN network, can be realized by physical switches or virtual switch, passes through three-layer network and carries out data communication between VTEP by setting up tunnel (TUNNEL).VXLAN network is by VNI (VXLAN Network Identifier, VXLAN network identity) unique identification, and the length of VNI is 24bit (bit).
In VXLAN network, the self study mode of what the MAC address learning of VTEP adopted is datum plane, namely, VTEP only just can learn by trigger MAC address when receiving Frame, concrete, when from local network or when receiving Frame from tunnel, by source MAC (the Media Access Control of this Frame, media interviews control) VXLAN of address and correspondence thereof learns on the inbound port of this Frame, and configure corresponding MAC Address list item in the mac address forwarding table as shown in table 1 of this locality.
Table 1
MAC Address VXLAN Outgoing interface
Wherein, when this Frame be receive from local network time, the outgoing interface in the MAC Address list item of configuration is for connecting the physical port of the source terminal equipment sending this Frame on VTEP; When this Frame be receive from tunnel time, the outgoing interface in the MAC Address list item of configuration is the tunnel receiving this Frame.For convenience, below the Frame in local network is triggered the MAC Address list item learnt and be called local mac address list item.
But, this MAC address learning mode have passivity, not in time with the slow shortcoming of convergence.
Summary of the invention
In view of this, this application provides a kind of MAC address learning method in VXLAN network and device.
The technical scheme of the application is as follows:
On the one hand, provide a kind of MAC address learning method in VXLAN network, be applied to VTEP, the method comprises:
After receiving the data message from local network, carry out the study of source MAC, the local mac address list item learnt is added in mac address forwarding table;
After receiving the data message from tunnel, do not carry out the study of source MAC;
When there is the change of local mac address list item in mac address forwarding table, sync message is sent by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message is saved in the database on this equipment, makes opposite end VTEP upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message; Wherein, a VTEP has a database.
On the other hand, additionally provide the MAC address learning device in a kind of VXLAN network, be applied in VTEP, this device comprises:
Receiver module, for receiving the data message from local network and the data message from tunnel;
Preserve module, for preserving mac address forwarding table and database; Wherein, a VTEP has a database;
Source MAC study module, for receive the data message from local network at receiver module after, carries out the study of source MAC, adds in mac address forwarding table by the local mac address list item learnt; Also for after receive the data message from tunnel at receiver module, do not carry out the study of source MAC;
Sending module, for when there is the change of local mac address list item in mac address forwarding table, sync message is sent by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message is saved in the database on this equipment, makes opposite end VTEP upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message.
In the technical scheme of the embodiment of the present application, the change of local mac address list item is there is in arbitrary VTEP in mac address forwarding table, during as newly-increased or minimizing, sync message can be sent to opposite end VTEP by the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, to notify that opposite end VTEP upgrades the mac address forwarding table on the VTEP of this opposite end, achieve the active synchronization of the mac address information in the local mac address list item between the VTEP of two ends, tunnel, the passivity that the self study mode that compensate for the datum plane of prior art exists, not in time with the shortcoming that convergence is slow, synchronous owing to having carried out MAC Address in time, accelerate network convergence speed, decrease the quantity of the unicast data message of destination address the unknown, decrease the waste of network bandwidth resources.And, a VTEP having one for preserving the database of the sync message that all tunnels on this VTEP are received and dispatched, saving memory source.
Accompanying drawing explanation
Fig. 1 is a kind of actual sets rack composition of VXLAN network;
Fig. 2 be the embodiment of the present application when having increased local mac address list item newly, VTEP perform operational flowchart;
Fig. 3 is the form schematic diagram of the TLV of the MAC Address for carrying VXLAN and correspondence thereof of the embodiment of the present application;
Fig. 4 be the embodiment of the present application when decreasing local mac address list item, VTEP perform operational flowchart;
Fig. 5 be the embodiment of the present application after receiving the ISIS LSP message that opposite end VTEP sends, the operational flowchart that VTEP performs;
Fig. 6 is a kind of structural representation of the MAC address learning device of the embodiment of the present application;
Fig. 7 is the another kind of structural representation of the MAC address learning device of the embodiment of the present application;
Fig. 8 is another structural representation of the MAC address learning device of the embodiment of the present application;
Fig. 9 is another structural representation of the MAC address learning device of the embodiment of the present application.
Embodiment
The passivity had in order to the MAC Address self study mode solving datum plane of the prior art, not in time with the shortcoming that convergence is slow, a kind of MAC address learning method in VXLAN network is provided in the application's following examples, and a kind of can device to apply the method, the mac address information achieving control plane is synchronous.
The application's following examples are applied on the arbitrary VTEP in the VXLAN network of full connection framework as shown in Figure 1.On VTEP, open the source MAC learning functionality of the data message from local network, close the source MAC learning functionality of the data message from tunnel.Because VXLAN network needs to run on TUNNEL, therefore, after VTEP configures VXLAN and TUNNEL respectively, also need VXLAN and TUNNEL to carry out associating or binding.In addition, each VTEP sets up a database, that is, a VTEP has a database, uses this database to store the sync message being sent by all tunnels on this equipment and received.
In the method for the embodiment of the present application, after arbitrary VTEP receives the data message from local network, carry out the study of source MAC, the local mac address list item learnt is added in mac address forwarding table; After receiving the data message from tunnel, do not carry out the study of source MAC; When there is the change of local mac address list item in mac address forwarding table, sending sync message by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message being saved in the database on this equipment.Like this, opposite end VTEP just can upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message.
Thus, the change of local mac address list item is there is in arbitrary VTEP in mac address forwarding table, during as newly-increased or minimizing, sync message can be sent to opposite end VTEP by the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, to notify that opposite end VTEP upgrades the mac address forwarding table on the VTEP of this opposite end, achieve the active synchronization of the mac address information in the local mac address list item between the VTEP of two ends, tunnel, the passivity that the self study mode that compensate for the datum plane of prior art exists, not in time with the slow shortcoming of convergence; Synchronous owing to having carried out MAC Address in time, accelerate network convergence speed, decrease the quantity of the unicast data message of destination address the unknown, decrease the waste of network bandwidth resources.And, a VTEP having one for preserving the database of the sync message that all tunnels on this VTEP are received and dispatched, saving memory source.
Wherein, above-mentioned sync message can use ISIS (Intermediate System to Intermediate System, Intermediate System-to-Intermediate System) protocol massages or other procotol message to realize, and the application does not limit this.
ISIS LSP (Link State Protocol Data Unit, Link State Protocol Data Unit) message is adopted to be embodied as example and to be described with sync message below.Enable ISIS agreement on VTEP, for each tunnel that this equipment configures, uses the opposite end VTEP in this tunnel and this tunnel to set up ISIS neighbours.Like this, arbitrary VTEP all can set up ISIS neighbours with the opposite end VTEP in tunnel that configures on this equipment, afterwards, just can send ISIS LSP message to the opposite end VETP in tunnel, and the ISIS LSP message that reception opposite end VTEP sends, and the ISIS LSP message of transmitting-receiving is saved in the LSDB (Link State DataBase, LSD) on this equipment.
For the ease of understanding, below first to the concept of two in ISIS agreement: primal system and virtual system are simply introduced.
Primal system: refer to primal system ID, is made up of 6 bytes, and the value of primal system ID is the bridge MAC Address of VTEP, for the VTEP of unique identification in VXLAN network.
Virtual system (also referred to as expanding system): refer to virtual system ID, be made up of 6 bytes, the value of virtual system ID, by user's manual configuration, can configure multiple virtual system ID in a VTEP, configures to ensure in VXLAN network it is unique by user.At other nodes of network, virtual system is exactly a node, and the node represented unlike virtual system ID is generated by the VTEP of reality.
Configuration virtual system can expand the ability of VTEP carry information, a system identifier can generate 256 ISIS LSP messages, each ISIS LSP message can encapsulate about 200 mac address informations, so a most multipotency of system identifier carries about 50,000 mac address informations, if VTEP has more than 50,000 mac address informations, it is inadequate for only carrying with primal system ID, needs configuration virtual system identifier to carry more mac address information.
Like this, in order to carry the mac address information of renewal, also need the one-to-one relationship configured on VTEP between VXLAN and virtual system, namely, a corresponding virtual system of VXLAN, the virtual system that different VXLAN is corresponding is different, like this, in the ISIS LSP message carrying a certain virtual system ID, can only encapsulate and this virtual system ID VXLAN and corresponding MAC Address thereof one to one.
As shown in Figure 2, arbitrary VTEP detect in the mac address forwarding table on this equipment increased local mac address list item newly time, following operation can be performed:
Step S102, determines the virtual system ID corresponding with the VXLAN in the local mac address list item that this is newly-increased; Perform step S104 afterwards;
Step S104, judge that whether there is meet the following conditions specific in the LSDB on this equipment has sent ISIS LSP message, do not exist if judge and specificly sent ISIS LSP message, then perform step S106, exist if judge and specificly sent ISIS LSP message, then perform step S110;
Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID determined, and, the ISIS of the transmission LSP message of the VXLAN of MAC Address in this newly-increased local mac address list item and correspondence thereof can be added, that is, sent in ISIS LSP message specific the VXLAN also having free space can carry MAC Address in this newly-increased local mac address list item and correspondence thereof.
Step S106, generates the ISIS LSP message of the VXLAN carrying virtual system ID, MAC Address in this newly-increased local mac address list item and the correspondence thereof determined in step S102, is saved in the LSDB on this equipment by the ISIS LSP message of generation; Perform step S108 afterwards;
In actual implementation process, when ascending serial number, in the ISIS LSP message of this generation, also can carry unappropriated minimum message ID (also can be described as burst number).
Step S108, for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, sends to opposite end VTEP by this tunnel by the ISIS LSP message of generation;
Step S110, the MAC Address in the local mac address list item newly-increased by this and the VXLAN of correspondence thereof add to and have specificly sent in ISIS LSP message; Perform step S112 afterwards;
Step S112, for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, sends to opposite end VTEP by the specific ISIS LSP message that sent after adding by this tunnel.
Obviously, the specific message ID having sent ISIS LSP message after interpolation can not change.
In actual implementation process, ISIS LSP message comprises heading and message body, and wherein, system identifier (virtual system ID or primal system ID) is carried in heading, message body is made up of at least one TLV, needs the various information of carrying all to be encapsulated in different TLV.In the embodiment of the present application, the VXLAN of MAC Address and correspondence thereof can be carried by the TLV expanding a kind of newtype.As shown in Figure 3, the TLV of this newtype comprises following field:
Type (type): for representing the type of this TLV, when the value of the type field is set to particular value, represent that this TLV is for carrying at least one MAC Address of VXLAN and correspondence thereof, such as, this particular value can be 147; The length of this field can be 1 byte;
Length (length): for carrying the length of other all field in this TLV except the type field and Length field, the value of Length field can be set to 7+6*N, and wherein, N represents the quantity of MAC Address; The length of this field can be 1 byte;
Topology-Id (topology identifier)/Nickname (pet name): for identifying sender according to actual application environment, in VXLAN network, this field is invalid, be set to 0, represent that MAC Address is below arrived by the source VTEP sending this TLV, topological sum Nickname need not be distinguished; The length of this field can be 2 bytes;
Confidence (confidence level): for conflict MAC Address preferred; The length of this field can be 1 byte;
RSV (reservation position): fill out 0;
TAG (flag): the value of this field is set to a certain value, such as 2 time, represent that carry immediately preceding field below is VXLAN;
VXLAN: for carrying VXLAN; The total length that RSV, TAG and VXLAN field takies can be 4 bytes;
MAC: for carrying the MAC Address corresponding with VXLAN above; The length of this field can be 6 bytes.
Thus, in step S104, judge that a certain method having sent in ISIS LSP message the VXLAN that whether can add MAC Address in this newly-increased local mac address list item and correspondence thereof can be: calculate packet maximum length (such as, 1400 bytes) and sent the difference A of the length of ISIS LSP message with this; Judge whether this difference A is not less than B, wherein, length required when B represents that the VXLAN of MAC Address in this newly-increased local mac address list item and correspondence thereof monopolizes a TLV as shown in Figure 3 can be 15 bytes; If be not less than, then determine that this has sent in ISIS LSP message the VXLAN that can add MAC Address in this newly-increased local mac address list item and correspondence thereof, otherwise, determine to add.
In addition, as shown in Figure 4, arbitrary VTEP detect in the mac address forwarding table on this equipment decrease local mac address list item time, following operation can be performed:
Step S202, determines the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing; Perform step S204 afterwards;
Step S204, finds the ISIS of the transmission LSP message of the MAC Address carried in the local mac address list item of virtual system ID and this minimizing determined in the LSDB from this equipment; Perform step S206 afterwards;
Be carried in ISIS LSP message before VXLAN due to the MAC Address in the local mac address list item of this minimizing and correspondence thereof, synchronously gone out by the tunnel that is associated with this VXLAN, therefore, in step S204, can in the LSDB on this equipment, find carry determine in step S202 virtual system ID, this minimizing local mac address list item in MAC Address and the ISIS of the transmission LSP message of VXLAN of correspondence.
Step S206, from the ISIS of the transmission LSP message found, deletes the VXLAN of MAC Address in the local mac address list item of this minimizing and correspondence thereof; Perform step S208 afterwards;
Step S208, for each tunnel be associated with the VXLAN in the local mac address list item of this minimizing, will send ISIS LSP message to send to this tunnel opposite end VTEP by this tunnel after deleting.
Obviously, the message ID sending ISIS LSP message after deletion can not change.
As can be seen from TLV form as shown in Figure 3, in step S206, MAC Address in the local mac address list item of this minimizing is deleted (for convenience from sending ISIS LSP message of finding, be designated as MAC1) and correspondence VXLAN (for convenience, be designated as VXLAN1) time, need to re-construct this and sent ISIS LSP message.Concrete, due to the ISIS of the transmission LSP message of the VXLAN1 carrying MAC1 and correspondence thereof can be found in step S204, and, can be found this further and sent the TLV carrying the VXLAN1 of MAC1 and correspondence thereof in ISIS LSP message, therefore, from the TLV found, MAC1 is deleted in step S206, if there is not any MAC Address in this TLV after deleting MAC1, then this TLV is deleted, if after deleting this TLV, this has sent in ISIS LSP message does not exist any TLV, then the ISIS LSP message only including heading after deletion is sent this opposite end VTEP, and at predetermined time interval, after 60 seconds, delete this ISIS LSP message, otherwise, also there is other MAC Address if delete after MAC1 in this TLV, or, if this has sent in ISIS LSP message and also there is other TLV after deleting this TLV, then the ISIS of the transmission LSP message after deleting is sent.
Like this, by method as shown in Figure 2 and Figure 4, arbitrary VTEP is newly-increased or when decreasing local mac address list item in discovery mac address forwarding table, ISIS LSP message can be used to be synchronized to opposite end VTEP, and, when synchronous, only can be synchronized to the opposite end VTEP in the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, namely, if the VXLAN in the newly-increased or local mac address list item that reduces and arbitrary tunnel all unconnected, MAC Address in the local mac address list item then increased newly or reduce and the VXLAN of correspondence thereof synchronously can not be gone out by any tunnel.Therefore, the MAC Address of synchronously being gone out by different tunnel and the VXLAN of correspondence thereof may be different.
Arbitrary VTEP can also by the tunnel that this equipment configures, the ISIS LSP message that the opposite end VTEP receiving this tunnel sends, and now, as shown in Figure 5, this VTEP can perform following operation:
Step S302, judge that whether there is meet the following conditions specific in the LSDB on this equipment has received ISIS LSP message, do not exist if judge and specificly received ISIS LSP message, then perform step S304, exist if judge and specificly received ISIS LSP message, then perform step S314;
Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID carried in the ISIS LSP message received, and, the ISIS of the reception LSP message that message ID is identical with the message ID of the ISIS LSP message received; That is, specific to have received ISIS LSP message identical with the virtual system ID that the ISIS LSP message received carries, and message ID is also identical.
Step S304, judges on this equipment, and whether the VXLAN carried in the ISIS LSP message received is associated with this tunnel, if so, then performs step S306, otherwise, process ends;
Step S306, according to the MAC Address of the VXLAN carried in the ISIS LSP message received and correspondence thereof, searches corresponding far-end MAC Address list item in mac address forwarding table; Perform step S308 afterwards;
Step S308, judges whether to have found corresponding far-end MAC Address list item, if so, then performs step S310, otherwise, perform step S312;
Step S310, is updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; Process ends afterwards;
Suppose, the VXLAN carried in the ISIS LSP message that this receives and the MAC Address of correspondence thereof are VXLAN1 and MAC1 respectively, the tunnel receiving this ISIS LSP message is TUNNEL1, the far-end MAC Address list item found in step S306 as shown in table 2-1, then have updated the far-end MAC Address list item after outgoing interface as shown in table 2-2 in step S310:
Table 2-1
MAC Address VXLAN Outgoing interface
MAC1 VXLAN1 TUNNEL2
Table 2-2
MAC Address VXLAN Outgoing interface
MAC1 VXLAN1 TUNNEL1
Step S312, adds far-end MAC Address list item in mac address forwarding table; Process ends afterwards;
Wherein, the far-end MAC Address list item of interpolation comprises: the VXLAN carried in the ISIS LSP message received and the MAC Address of correspondence thereof; Outgoing interface in the far-end MAC Address list item of this interpolation is set to this tunnel.
Suppose, the VXLAN carried in the ISIS LSP message that this receives and the MAC Address of correspondence thereof are VXLAN1 and MAC1 respectively, the tunnel receiving this ISIS LSP message is TUNNEL1, then the far-end MAC Address list item added in step S312 is as shown in table 2-3:
Table 2-3
MAC Address VXLAN Outgoing interface
MAC1 VXLAN1 TUNNEL1
Step S314, compares the ISIS LSP message that receives and has specificly received ISIS LSP message; Perform step S316 afterwards;
Because the ISIS LSP message that receives is identical with the specific virtual system ID having received ISIS LSP message, and message ID is also identical, therefore, the whole VXLAN carried in these two messages are all identical, be exactly and this virtual system ID VXLAN one to one, relatively during this two messages, only MAC Address need be compared.
Step S316, the comparative result in determining step S314 is comparative result 1 or comparative result 2, if comparative result 1, then performs step S318, if comparative result 2, then performs step S328;
Wherein, comparative result 1 is: a MAC Address of carrying in the ISIS LSP message received, and does not exist specific reception in ISIS LSP message; The local mac address list item having increased the VXLAN including this MAC Address and correspondence thereof in mac address forwarding table on the VTEP of this opposite end newly is described.
Comparative result 2 is: specificly received a MAC Address of carrying in ISIS LSP message, does not exist in the ISIS LSP message received; The local mac address list item decreasing the VXLAN including this MAC Address and correspondence thereof in mac address forwarding table on the VTEP of this opposite end is described.
Step S318, judges on this equipment, and whether the VXLAN carried in the ISIS LSP message received is associated with this tunnel, if so, then performs step S320, otherwise, process ends;
Step S320, according to this VXLAN and this MAC Address, searches corresponding far-end MAC Address list item in mac address forwarding table; Perform step S322 afterwards;
Step S322, judges whether to have found corresponding far-end MAC Address list item, if so, then performs step S324, otherwise, perform step S326;
Step S324, is updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; Process ends afterwards;
Suppose, the ISIS LSP message that this receives and the specific VXLAN carried in ISIS LSP message that received are VXLAN1, MAC2 is carried in the ISIS LSP message that this receives, and specific reception in ISIS LSP message does not carry MAC2, the tunnel receiving this ISIS LSP message is TUNNEL1, the far-end MAC Address list item found in step s 320 as shown in table 3-1, then have updated the far-end MAC Address list item after outgoing interface as shown in table 3-2 in step S324:
Table 3-1
MAC Address VXLAN Outgoing interface
MAC2 VXLAN1 TUNNEL2
Table 3-2
MAC Address VXLAN Outgoing interface
MAC2 VXLAN1 TUNNEL1
Step S326, adds the far-end MAC Address list item including the VXLAN of this MAC Address and correspondence thereof in mac address forwarding table; Process ends afterwards;
Suppose, the ISIS LSP message that this receives and the specific VXLAN carried in ISIS LSP message that received are VXLAN1, MAC2 is carried in the ISIS LSP message that this receives, and specific reception in ISIS LSP message does not carry MAC2, then the far-end MAC Address list item added in step S326 is as shown in table 3-3:
Table 3-3
MAC Address VXLAN Outgoing interface
MAC2 VXLAN1 TUNNEL1
Step S328, judges on this equipment, and whether the VXLAN carried in the ISIS LSP message received is associated with this tunnel, if so, then performs step S330, otherwise, process ends;
Step S330, according to this VXLAN, this MAC Address and this tunnel, searches corresponding far-end MAC Address list item in mac address forwarding table;
Step S332, the far-end MAC Address list item found in delete step S330, process ends afterwards.
In addition, in the above-mentioned methods, judge to exist specific received ISIS LSP message after, also need the specific ISIS LSP message that received in the LSDB on this equipment to replace with the ISIS LSP message received.
It is to be noted that improve existing ISIS agreement in the embodiment of the present application, the system identifier of carrying in the heading of the ISIS LSP message of the MAC Address of VXLAN and correspondence thereof that carries that arbitrary VTEP sends can only be virtual system ID (specifically corresponding with this VXLAN virtual system ID), that is, virtual system is only had just can to carry mac address information; And primal system can only carry the out of Memory except mac address information, that is, primal system can not carry mac address information.
By method as shown in Figure 5, after the ISIS LSP message that the opposite end VTEP that arbitrary VTEP receives tunnel sends, the ISIS of reception LSP message that can be identical with the virtual system ID carried in the ISIS LSP message received according to the virtual system ID carried preserved in the LSDB on this equipment, judges it this opposite end VTEP is increased newly to be also the reduction of local mac address list item.
In the above embodiments of the present application, propose the method that mac address information that a kind of ISIS of utilization LSP message realizes control plane is synchronous.Each VTEP have the VXLAN on LSDB, a VTEP and virtual system one_to_one corresponding, arbitrary VTEP there occurs change at discovery local mac address list item, during as newly-increased or minimizing, the ISIS LSP message of the virtual system ID that the VXLAN carried in local mac address list item that is newly-increased with this or that reduce is corresponding can be utilized, by the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, be synchronized to the opposite end VTEP in this tunnel, and this ISIS LSP message is saved in the LSDB on this equipment, after arbitrary VTEP receives the ISIS LSP message that opposite end VTEP sends, can according to this ISIS LSP message received, and the ISIS of the reception LSP message that the virtual system ID preserved in LSDB on this equipment is identical with the virtual system ID carried in the ISIS LSP message received, judge newly-increased in the VTEP of this opposite end or decrease local mac address list item, then determine on this equipment, after VXLAN in this newly-increased or local mac address list item of reducing is associated with this tunnel, mac address forwarding table on this equipment of local mac address entry updating increased newly according to this or reduce, namely, add in the mac address forwarding table of this equipment, delete or edit corresponding far-end MAC Address list item, achieve the active synchronization of the mac address information in the local mac address list item between the VTEP of two ends, tunnel, the passivity that the self study mode that compensate for the datum plane of prior art exists, not in time with the shortcoming that convergence is slow, synchronous owing to having carried out MAC Address in time, accelerate network convergence speed, decrease the quantity of the unicast data message of destination address the unknown, decrease the waste of network bandwidth resources.
And, due to VXLAN and virtual system one_to_one corresponding, therefore, carry in the ISIS LSP message of a certain virtual system ID and only encapsulate a VXLAN (namely corresponding with this virtual system ID VXLAN) and corresponding MAC Address thereof, the MAC Address that different VXLAN is corresponding is encapsulated in carries in the ISIS LSP message of different virtual system identifier.Because the ISIS LSP message between different virtual system is separate, so can be kept in same LSDB by the ISIS LSP of all virtual systems, only there is a information in the MAC Address that VXLAN is corresponding in LSDB.The ISIS LSP message sent by arbitrary TUNNEL, is all obtained, be there is not the situation of ISIS LSP message redundancy from same LSDB, and the ISIS LSP message that the multiple TUNNEL be associated with same VXLAN send is the same.Adopt this preserving type, the memory source total amount that whole ISIS LSP message takies can not increase along with the increase of the TUNNEL quantity be associated with VXLAN, can save the memory source of VTEP.
For the VXLAN network shown in Fig. 1, describe the MAC address learning method in above-described embodiment in detail.
VTEP1 is configured with VXLAN1 ~ VXLAN20, TUNNEL1 and TUNNEL2 of VXLAN type; Wherein, TUNNEL1 and VXLAN5 ~ VXLAN15 is associated, and TUNNEL2 and VXLAN10 ~ VXLAN20 is associated.The upper newly-increased local mac address list item of VTEP1 is as shown in table 4-1:
Table 4-1
MAC Address VXLAN Outgoing interface
MAC1 VXLAN1 XX
MAC10 VXLAN10 XX
VTEP2 is configured with VXLAN5 ~ VXLAN15, TUNNEL1 and TUNNEL3 of VXLAN type; TUNNEL1 and VXLAN5 ~ VXLAN15 is associated, and TUNNEL3 and VXLAN10 ~ VXLAN15 is associated.The upper newly-increased local mac address list item of VTEP2 is as shown in table 4-2:
Table 4-2
MAC Address VXLAN Outgoing interface
MAC5 VXLAN5 XX
MAC15 VXLAN15 XX
VTEP3 is configured with VXLAN10 ~ VXLAN30, TUNNEL2 and TUNNEL3 of VXLAN type; TUNNEL2 and VXLAN10 ~ VXLAN20 is associated, and TUNNEL3 and VXLAN10 ~ VXLAN15 is associated.The upper newly-increased local mac address list item of VTEP3 is as shown in table 4-3:
Table 4-3
MAC Address VXLAN Outgoing interface
MAC20 VXLAN20 XX
MAC30 VXLAN30 XX
VTEP1 establishes ISIS neighbours by TUNNEL1 and VTEP2, establishes ISIS neighbours by TUNNEL2 and VTEP3; VTEP2 establishes ISIS neighbours by TUNNEL1 and VTEP1, establishes ISIS neighbours by TUNNEL3 and VTEP3; VTEP3 establishes ISIS neighbours by TUNNEL2 and VTEP1, establishes ISIS neighbours by TUNNEL3 and VTEP2.
The mac learning method that VTEP1 ~ VTEP3 performs comprises:
Suppose, on VTEP1, VXLAN10 is corresponding with virtual system 0000.0000.0010, then VTEP1 will carry the ISIS LSP message of the VXLAN10 of virtual system ID:0000.0000.0010, MAC10 and correspondence thereof, send to VTEP2 by TUNNEL1 and send to VTEP3 by TUNNEL2, and this ISIS LSP message is saved in the LSDB on this equipment; All unconnected owing to including VXLAN1 in the local mac address list item of the VXLAN1 of MAC1 and correspondence thereof and any TUNNEL, then can not synchronously go out.
Suppose, on VTEP2, VXLAN5 is corresponding with virtual system 0000.0000.0005, VXLAN15 is corresponding with virtual system 0000.0000.0015, then VTEP2 will carry the ISIS LSP message of the VXLAN5 of virtual system ID:0000.0000.0005, MAC5 and correspondence thereof, send to VTEP1 by TUNNEL1, and this ISIS LSP message is saved in the LSDB on this equipment; The ISIS LSP message of the VXLAN15 of virtual system ID:0000.0000.0015, MAC15 and correspondence thereof will be carried, send to VTEP1 by TUNNEL1 and send to VTEP3 by TUNNEL3, and this ISIS LSP message is saved in the LSDB on this equipment.
Suppose, on VTEP3, VXLAN20 is corresponding with virtual system 0000.0000.0020, then VTEP3 will carry the ISIS LSP message of the VXLAN20 of virtual system ID:0000.0000.0020, MAC20 and correspondence thereof, send to VTEP1 by TUNNEL2, and this ISIS LSP message is saved in the LSDB on this equipment; All unconnected owing to including VXLAN30 in the local mac address list item of the VXLAN30 of MAC30 and correspondence thereof and any TUNNEL, then can not synchronously go out.
Therefore, VTEP1 can receive by TUNNEL1 the ISIS LSP message carrying the VXLAN5 of virtual system ID:0000.0000.0005, MAC5 and correspondence thereof that VTEP2 sends, and carry the ISIS LSP message of VXLAN15 of virtual system ID:0000.0000.0015, MAC15 and correspondence thereof, and these 2 ISIS LSP messages are saved in the LSDB on this equipment; Receive by TUNNEL2 the ISIS LSP message carrying the VXLAN20 of virtual system ID:0000.0000.0020, MAC20 and correspondence thereof that VTEP3 sends, and this ISIS LSP message is saved in the LSDB on this equipment; Such as showing to add far-end MAC Address list item in the mac address forwarding table shown in 4-1, the mac address forwarding table after interpolation as shown in Table 5-1:
Table 5-1
MAC Address VXLAN Outgoing interface
MAC1 VXLAN1 XX
MAC10 VXLAN10 XX
MAC5 VXLAN5 TUNNEL1
MAC15 VXLAN15 TUNNEL1
MAC20 VXLAN20 TUNNEL2
VTEP2 can receive by TUNNEL1 the ISIS LSP message carrying the VXLAN10 of virtual system ID:0000.0000.0010, MAC10 and correspondence thereof that VTEP1 sends, and is saved in the LSDB on this equipment by this ISIS LSP message; Such as showing to add far-end MAC Address list item in the mac address forwarding table shown in 4-2, the mac address forwarding table after interpolation is as shown in table 5-2:
Table 5-2
MAC Address VXLAN Outgoing interface
MAC5 VXLAN5 XX
MAC15 VXLAN15 XX
MAC10 VXLAN10 TUNNEL1
VTEP3 can receive by TUNNEL2 the ISIS LSP message carrying the VXLAN10 of virtual system ID:0000.0000.0010, MAC10 and correspondence thereof that VTEP1 sends, and is saved in the LSDB on this equipment by this ISIS LSP message; Receive by TUNNEL3 the ISIS LSP message carrying the VXLAN15 of virtual system ID:0000.0000.0015, MAC15 and correspondence thereof that VTEP2 sends, and this ISIS LSP message is saved in the LSDB on this equipment; Such as showing to add far-end MAC Address list item in the mac address forwarding table shown in 4-3, the mac address forwarding table after interpolation is as shown in table 5-3:
Table 5-3
MAC Address VXLAN Outgoing interface
MAC20 VXLAN20 XX
MAC30 VXLAN30 XX
MAC10 VXLAN10 TUNNEL2
MAC15 VXLAN15 TUNNEL3
Therefore, carry out the synchronous of the mac address information in local mac address list item between any two VTEP, save the ISIS LSP message that this equipment sends in the LSDB on each VTEP, also save the ISIS LSP message received from opposite end VTEP.Each VTEP only need a LSDB just can preserve the mutual mac address information of all TUNNEL.All the time only portion is there is in the MAC Address that each VXLAN is corresponding in LSDB.
For the method in above-described embodiment, additionally provide in the embodiment of the present application a kind of can MAC address learning device to apply the method, this application of installation is in VTEP.
As shown in Figure 6, this MAC address learning device comprises with lower module: receiver module 401, preservation module 402, source MAC study module 403 and sending module 404, wherein:
Receiver module 401, for receiving the data message from local network and the data message from tunnel;
Preserve module 402, for preserving mac address forwarding table and database; Wherein, a VTEP has a database;
Source MAC study module 403, for after the data message that receives from local network at receiver module 401, carries out the study of source MAC, by study to local mac address list item add in mac address forwarding table; Also for after the data message that receives from tunnel at receiver module 401, do not carry out the study of source MAC;
Sending module 404, for when there is the change of local mac address list item in mac address forwarding table, sync message is sent by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message is saved in the database on this equipment, makes opposite end VTEP upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message.
Wherein, can comprise with lower unit in sending module: virtual system determining unit, message judging unit, message generation unit, message adding device and packet sending unit, wherein:
Virtual system determining unit, for when having increased local mac address list item in mac address forwarding table newly, has determined the virtual system ID corresponding with the VXLAN in the local mac address list item that this is newly-increased; Wherein, VXLAN and virtual system one_to_one corresponding;
Message judging unit, for judging that whether there is meet the following conditions specific in the LSDB on this equipment has sent ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID determined, and, the ISIS of the transmission LSP message of the VXLAN of MAC Address in this newly-increased local mac address list item and correspondence thereof can be added;
Message generation unit, if judge not exist for message judging unit and specificly sent ISIS LSP message, then generate the ISIS LSP message of the VXLAN carrying MAC Address in virtual system ID that virtual system determining unit determines, this newly-increased local mac address list item and correspondence thereof, the ISIS LSP message of generation is saved in the LSDB on this equipment;
Message adding device, has specificly sent ISIS LSP message if judge to exist for message judging unit, then added to by the VXLAN of the MAC Address in this newly-increased local mac address list item and correspondence thereof specificly to have sent in ISIS LSP message;
Packet sending unit, for for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, the ISIS LSP message generated by message generation unit by this tunnel sends to opposite end VTEP; Also for for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, the specific ISIS LSP message that sent after the interpolation of message adding device is sent to opposite end VTEP by this tunnel.
In addition, can also comprise with lower unit in sending module: message searches unit and message delete cells, wherein:
Virtual system determining unit, also for when decreasing local mac address list item in mac address forwarding table, determines the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing;
Message searches unit, after determining the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing in virtual system determining unit, in the LSDB from this equipment, find the ISIS of the transmission LSP message of the MAC Address in the local mac address list item carrying this virtual system ID determined and this minimizing;
Message delete cells, for searching from message in the ISIS of transmission LSP message that unit finds, deletes the VXLAN of MAC Address in the local mac address list item of this minimizing and correspondence thereof;
Packet sending unit, also for for each tunnel be associated with the VXLAN in the local mac address list item of this minimizing, sends to opposite end VTEP by the ISIS of the transmission LSP message after the deletion of message delete cells by this tunnel.
In addition, as shown in Figure 7, also comprise with lower module in this MAC address learning device: judge module 405, first searches module 406 and the first processing module 407, wherein:
Receiver module 401, also for ISIS LSP message that the opposite end VTEP receiving tunnel sends;
Judge module 405, after the ISIS LSP message that the opposite end VTEP for receiving a tunnel at receiver module 401 sends, judges that whether there is meet the following conditions specific in the LSDB on this equipment has received ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID carried in the ISIS LSP message received, and, the ISIS of the reception LSP message that message ID is identical with the message ID of the ISIS LSP message received;
First searches module 406, if judge not exist for judge module 405 and specificly received ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received on this equipment is associated with this tunnel, according to the MAC Address of the VXLAN carried in the ISIS LSP message received and correspondence thereof, in mac address forwarding table, search corresponding far-end MAC Address list item;
First processing module 407, if search module 406 for first to have found corresponding far-end MAC Address list item, is then updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; If also search module 406 for first do not find corresponding far-end MAC Address list item, in mac address forwarding table, then add far-end MAC Address list item, wherein, the far-end MAC Address list item of interpolation comprises: the VXLAN carried in the ISIS LSP message received and the MAC Address of correspondence thereof.
In addition, as shown in Figure 8, can also comprise with lower module in this MAC address learning device: comparison module 408, second searches module 409, second processing module 410 and replacement module 411, wherein:
Comparison module 408, if specificly received ISIS LSP message for judging at judge module 405 to exist, has then compared the ISIS LSP message that receives and has specificly received ISIS LSP message;
Second searches module 409, if compare a MAC Address of carrying in the ISIS LSP message received for comparison module 408, do not exist specific reception in ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received on this equipment is associated with this tunnel, according to this VXLAN and this MAC Address, in mac address forwarding table, search corresponding far-end MAC Address list item;
Second processing module 410, if search module 409 for second to have found corresponding far-end MAC Address list item, is then updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; If also search module 409 for second do not find corresponding far-end MAC Address list item, then in mac address forwarding table, add the far-end MAC Address list item including this VXLAN and this MAC Address;
Replacement module 411, for replacing with the specific ISIS LSP message that received the ISIS LSP message received.
In addition, as shown in Figure 9, can also comprise with lower module in this MAC address learning device: the 3rd searches module 412 and the 3rd processing module 413, wherein:
3rd searches module 412, if compare for comparison module 408 and specificly received a MAC Address of carrying in ISIS LSP message, do not exist in the ISIS LSP message received, after then determining that the VXLAN carried in the ISIS LSP message received on this equipment is associated with this tunnel, according to this VXLAN, this MAC Address and this tunnel, in mac address forwarding table, find corresponding far-end MAC Address list item;
3rd processing module 413, searches for deleting the 3rd the far-end MAC Address list item that module 412 finds.
To sum up, the above embodiment of the application can reach following technique effect:
In the technical scheme of the embodiment of the present application, the change of local mac address list item is there is in arbitrary VTEP in mac address forwarding table, during as newly-increased or minimizing, sync message can be sent to opposite end VTEP by the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, to notify that opposite end VTEP upgrades the mac address forwarding table on the VTEP of this opposite end, achieve the active synchronization of the mac address information in the local mac address list item between the VTEP of two ends, tunnel, the passivity that the self study mode that compensate for the datum plane of prior art exists, not in time with the shortcoming that convergence is slow, synchronous owing to having carried out MAC Address in time, accelerate network convergence speed, decrease the quantity of the unicast data message of destination address the unknown, decrease the waste of network bandwidth resources.And, a VTEP having one for preserving the database of the sync message that all tunnels on this VTEP are received and dispatched, saving memory source.
When using ISIS LSP message to realize sync message, each VTEP have the VXLAN on LSDB, a VTEP and virtual system one_to_one corresponding, arbitrary VTEP there occurs change at discovery local mac address list item, during as newly-increased or minimizing, the ISIS LSP message of the virtual system ID that the VXLAN carried in local mac address list item that is newly-increased with this or that reduce is corresponding can be utilized, by the tunnel be associated with the VXLAN in local mac address list item that is newly-increased or that reduce, be synchronized to the opposite end VTEP in this tunnel, and this ISIS LSP message is saved in the LSDB on this equipment, after arbitrary VTEP receives the ISIS LSP message that opposite end VTEP sends, can according to this ISIS LSP message received, and the ISIS of the reception LSP message that the virtual system ID preserved in LSDB on this equipment is identical with the virtual system ID carried in the ISIS LSP message received, judge newly-increased in the VTEP of this opposite end or decrease local mac address list item, then determine on this equipment, after VXLAN in this newly-increased or local mac address list item of reducing is associated with this tunnel, mac address forwarding table on this equipment of local mac address entry updating increased newly according to this or reduce, namely, add in the mac address forwarding table of this equipment, delete or edit corresponding far-end MAC Address list item, achieve the active synchronization of the mac address information in the local mac address list item between the VTEP of two ends, tunnel, the passivity that the self study mode that compensate for the datum plane of prior art exists, not in time with the shortcoming that convergence is slow, synchronous owing to having carried out MAC Address in time, accelerate network convergence speed, decrease the quantity of the unicast data message of destination address the unknown, decrease the waste of network bandwidth resources.
And, due to VXLAN and virtual system one_to_one corresponding, therefore, carry in the ISIS LSP message of a certain virtual system ID and only encapsulate a VXLAN (namely corresponding with this virtual system ID VXLAN) and corresponding MAC Address thereof, the MAC Address that different VXLAN is corresponding is encapsulated in carries in the ISIS LSP message of different virtual system identifier.Because the ISIS LSP message between different virtual system is separate, so can be kept in same LSDB by the ISIS LSP of all virtual systems, only there is a information in the MAC Address that VXLAN is corresponding in LSDB.The ISIS LSP message sent by arbitrary TUNNEL, is all obtained, be there is not the situation of ISIS LSP message redundancy from same LSDB, and the ISIS LSP message that the multiple TUNNEL be associated with same VXLAN send is the same.Adopt this preserving type, the memory source total amount that whole ISIS LSP message takies can not increase along with the increase of the TUNNEL quantity be associated with VXLAN, can save the memory source of VTEP.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, within all spirit in the application and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.

Claims (13)

1. the MAC address learning method in virtual easily extensible local area network (LAN) VXLAN network, be applied to virtual easily extensible local area network (LAN) tunneling termination VTEP, it is characterized in that, described method comprises:
After receiving the data message from local network, carry out the study of source MAC, the local mac address list item learnt is added in mac address forwarding table;
After receiving the data message from tunnel, do not carry out the study of source MAC;
When there is the change of local mac address list item in mac address forwarding table, sync message is sent by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message is saved in the database on this equipment, makes opposite end VTEP upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message; Wherein, a VTEP has a database.
2. method according to claim 1, is characterized in that, described each tunnel by being associated with the VXLAN in the local mac address list item of change sends sync message, the method that this sync message is saved in the database of this equipment is comprised:
When having increased local mac address list item in mac address forwarding table newly, determine the virtual system ID corresponding with the VXLAN in the local mac address list item that this is newly-increased; Wherein, VXLAN and virtual system one_to_one corresponding;
Judge that whether there is meet the following conditions specific in the LSDB on this equipment has sent ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID determined, and, the ISIS of the transmission LSP message of the VXLAN of MAC Address in this newly-increased local mac address list item and correspondence thereof can be added;
Do not exist if judge and describedly specificly sent ISIS LSP message, then generate the ISIS LSP message of the VXLAN of virtual system ID, MAC Address in this newly-increased local mac address list item and the correspondence thereof determined described in carrying, the ISIS LSP message of generation is saved in the LSDB on this equipment; For each tunnel be associated with the VXLAN in this newly-increased local mac address list item, by this tunnel, the ISIS LSP message of described generation is sent to opposite end VTEP;
Exist if judge and describedly specificly sent ISIS LSP message, then the VXLAN of the MAC Address in this newly-increased local mac address list item and correspondence thereof is added to describedly specificly having sent in ISIS LSP message; For each tunnel be associated with the VXLAN in this newly-increased local mac address list item, the specific ISIS LSP message that sent after adding is sent to opposite end VTEP by this tunnel.
3. method according to claim 2, is characterized in that, described each tunnel by being associated with the VXLAN in the local mac address list item of change sends sync message, the method that this sync message is saved in the database of this equipment is also comprised:
When decreasing local mac address list item in mac address forwarding table, determine the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing;
The ISIS of the transmission LSP message of the MAC Address carried in the local mac address list item of virtual system ID and this minimizing determined is found in LSDB from this equipment;
From the ISIS of the transmission LSP message found, delete the VXLAN of MAC Address in the local mac address list item of this minimizing and correspondence thereof;
For each tunnel be associated with the VXLAN in the local mac address list item of this minimizing, the ISIS of the transmission LSP message after deleting is sent to opposite end VTEP by this tunnel.
4. method according to claim 3, is characterized in that, also comprises:
After the ISIS LSP message that the opposite end VTEP receiving a tunnel sends, judge that whether there is meet the following conditions specific in the LSDB on this equipment has received ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID carried in the described ISIS LSP message received, and, the ISIS of the reception LSP message that message ID is identical with the message ID of the described ISIS LSP message received;
Do not exist if judge and describedly specificly received ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to the MAC Address of the VXLAN carried in the described ISIS LSP message received and correspondence thereof, in mac address forwarding table, search corresponding far-end MAC Address list item;
If found corresponding far-end MAC Address list item, then the outgoing interface in the far-end MAC Address list item found is updated to this tunnel;
If do not find corresponding far-end MAC Address list item, in mac address forwarding table, then add far-end MAC Address list item, wherein, the far-end MAC Address list item of interpolation comprises: described in the MAC Address of the VXLAN that carries in the ISIS LSP message that receives and correspondence thereof.
5. method according to claim 4, is characterized in that, judge whether to exist in the LSDB on this equipment described specific received ISIS LSP message after, also comprise:
Exist if judge and describedly specificly received ISIS LSP message, then relatively described in the ISIS LSP message that receives and describedly specificly received ISIS LSP message;
If a MAC Address of carrying in the ISIS LSP message received described in comparing, do not exist described specific reception in ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to this VXLAN and this MAC Address, in mac address forwarding table, search corresponding far-end MAC Address list item;
If found corresponding far-end MAC Address list item, then the outgoing interface in the far-end MAC Address list item found is updated to this tunnel; If do not find corresponding far-end MAC Address list item, then in mac address forwarding table, add the far-end MAC Address list item including this VXLAN and this MAC Address;
By described specific received ISIS LSP message replace with described in the ISIS LSP message that receives.
6. method according to claim 5, is characterized in that, the ISIS LSP message received described in relatively and described specific received ISIS LSP message after, also comprise:
Describedly specificly a MAC Address of carrying in ISIS LSP message has been received if compare, do not exist in the described ISIS LSP message received, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to this VXLAN, this MAC Address and this tunnel, in mac address forwarding table, find corresponding far-end MAC Address list item and delete.
7. method according to any one of claim 1 to 6, is characterized in that, ISIS LSP message is made up of at least one type lengths values TLV field, and described TLV field is for carrying at least one MAC Address of a VXLAN and correspondence thereof.
8. the MAC address learning device in virtual easily extensible local area network (LAN) VXLAN network, be applied in virtual easily extensible local area network (LAN) tunneling termination VTEP, it is characterized in that, described device comprises:
Receiver module, for receiving the data message from local network and the data message from tunnel;
Preserve module, for preserving mac address forwarding table and database; Wherein, a VTEP has a database;
Source MAC study module, for after the data message that receives from local network at described receiver module, carries out the study of source MAC, by study to local mac address list item add in mac address forwarding table; Also for after the data message that receives from tunnel at described receiver module, do not carry out the study of source MAC;
Sending module, for when there is the change of local mac address list item in mac address forwarding table, sync message is sent by each tunnel be associated with the VXLAN in the local mac address list item of change, this sync message is saved in the database on this equipment, makes opposite end VTEP upgrade the mac address forwarding table on the VTEP of this opposite end according to this sync message.
9. device according to claim 8, is characterized in that, described sending module comprises:
Virtual system determining unit, for when having increased local mac address list item in mac address forwarding table newly, has determined the virtual system ID corresponding with the VXLAN in the local mac address list item that this is newly-increased; Wherein, VXLAN and virtual system one_to_one corresponding;
Message judging unit, for judging that whether there is meet the following conditions specific in the LSDB on this equipment has sent ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID determined, and, the ISIS of the transmission LSP message of the VXLAN of MAC Address in this newly-increased local mac address list item and correspondence thereof can be added;
Message generation unit, if judge not exist for described message judging unit and describedly specificly sent ISIS LSP message, then generate the ISIS LSP message of the VXLAN carrying MAC Address in virtual system ID that described virtual system determining unit determines, this newly-increased local mac address list item and correspondence thereof, the ISIS LSP message of generation is saved in the LSDB on this equipment;
Message adding device, if judge to exist for described message judging unit and describedly specificly sent ISIS LSP message, then the VXLAN of the MAC Address in this newly-increased local mac address list item and correspondence thereof is added to describedly specificly having sent in ISIS LSP message;
Packet sending unit, for for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, the ISIS LSP message generated by described message generation unit by this tunnel sends to opposite end VTEP; Also for for each tunnel be associated with the VXLAN in this newly-increased local mac address list item, the specific ISIS LSP message that sent after described message adding device interpolation is sent to opposite end VTEP by this tunnel.
10. device according to claim 9, is characterized in that, described sending module also comprises: message searches unit and message delete cells, wherein:
Described virtual system determining unit, also for when decreasing local mac address list item in mac address forwarding table, determines the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing;
Described message searches unit, after determining the virtual system ID corresponding with the VXLAN in the local mac address list item of this minimizing in described virtual system determining unit, in the LSDB from this equipment, find the ISIS of the transmission LSP message of the MAC Address in the local mac address list item carrying this virtual system ID determined and this minimizing;
Described message delete cells, for searching from described message in the ISIS of transmission LSP message that unit finds, deletes the VXLAN of MAC Address in the local mac address list item of this minimizing and correspondence thereof;
Described packet sending unit, also for for each tunnel be associated with the VXLAN in the local mac address list item of this minimizing, sends to opposite end VTEP by the ISIS of the transmission LSP message after described message delete cells deletion by this tunnel.
11. devices according to claim 10, is characterized in that, also comprise: judge module, first searches module and the first processing module, wherein:
Described receiver module, also for ISIS LSP message that the opposite end VTEP receiving tunnel sends;
Described judge module, after the ISIS LSP message that the opposite end VTEP for receiving a tunnel at described receiver module sends, judges that whether there is meet the following conditions specific in the LSDB on this equipment has received ISIS LSP message; Wherein, this condition comprises: the virtual system ID carried is identical with the virtual system ID carried in the described ISIS LSP message received, and, the ISIS of the reception LSP message that message ID is identical with the message ID of the described ISIS LSP message received;
Described first searches module, if judge not exist for described judge module and describedly specificly received ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to the MAC Address of the VXLAN carried in the described ISIS LSP message received and correspondence thereof, in mac address forwarding table, search corresponding far-end MAC Address list item;
Described first processing module, if search module searches for described first to have arrived corresponding far-end MAC Address list item, is then updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; If also search module for described first do not find corresponding far-end MAC Address list item, in mac address forwarding table, then add far-end MAC Address list item, wherein, the far-end MAC Address list item of interpolation comprises: described in the MAC Address of the VXLAN that carries in the ISIS LSP message that receives and correspondence thereof.
12. devices according to claim 11, is characterized in that, also comprise:
Comparison module, if describedly specificly received ISIS LSP message for judging at described judge module to exist, then relatively described in the ISIS LSP message that receives and describedly specificly received ISIS LSP message;
Second searches module, if a MAC Address of carrying in the ISIS LSP message received described in comparing for described comparison module, do not exist described specific reception in ISIS LSP message, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to this VXLAN and this MAC Address, in mac address forwarding table, search corresponding far-end MAC Address list item;
Second processing module, if search module searches for described second to have arrived corresponding far-end MAC Address list item, is then updated to this tunnel by the outgoing interface in the far-end MAC Address list item found; If also search module for described second do not find corresponding far-end MAC Address list item, then in mac address forwarding table, add the far-end MAC Address list item including this VXLAN and this MAC Address;
Replacement module, for by described specific received ISIS LSP message replace with described in the ISIS LSP message that receives.
13. devices according to claim 12, is characterized in that, also comprise:
3rd searches module, if compare for described comparison module and describedly specificly received a MAC Address of carrying in ISIS LSP message, do not exist in the described ISIS LSP message received, after then determining that the VXLAN carried in the ISIS LSP message received described on this equipment is associated with this tunnel, according to this VXLAN, this MAC Address and this tunnel, in mac address forwarding table, find corresponding far-end MAC Address list item;
3rd processing module, searches for deleting the described 3rd the far-end MAC Address list item that module searches arrives.
CN201410512381.1A 2014-09-29 2014-09-29 MAC address learning method and device in VXLAN networks Active CN104243630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410512381.1A CN104243630B (en) 2014-09-29 2014-09-29 MAC address learning method and device in VXLAN networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410512381.1A CN104243630B (en) 2014-09-29 2014-09-29 MAC address learning method and device in VXLAN networks

Publications (2)

Publication Number Publication Date
CN104243630A true CN104243630A (en) 2014-12-24
CN104243630B CN104243630B (en) 2017-10-03

Family

ID=52230957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410512381.1A Active CN104243630B (en) 2014-09-29 2014-09-29 MAC address learning method and device in VXLAN networks

Country Status (1)

Country Link
CN (1) CN104243630B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016050158A1 (en) * 2014-09-29 2016-04-07 Hangzhou H3C Technologies Co., Ltd. Learning a mac address in vxlan
CN105634901A (en) * 2015-12-28 2016-06-01 杭州华三通信技术有限公司 MAC address information synchronization method and device based on CAS VXLAN
CN106921577A (en) * 2017-03-10 2017-07-04 新华三技术有限公司 MAC address learning method and device
CN108259347A (en) * 2017-05-19 2018-07-06 新华三技术有限公司 A kind of message transmitting method and device
CN108512949A (en) * 2018-03-23 2018-09-07 烽火通信科技股份有限公司 A kind of MAC Address synchronous method and system
CN105391612B (en) * 2015-10-15 2018-09-11 北京星网锐捷网络技术有限公司 A kind of method and device of VXLAN VTEP adjoinings study
CN108540386A (en) * 2018-04-19 2018-09-14 新华三技术有限公司 One kind preventing Business Stream interrupt method and device
CN108965131A (en) * 2018-07-27 2018-12-07 新华三技术有限公司 A kind of method and device of message forwarding
CN109412925A (en) * 2018-09-30 2019-03-01 锐捷网络股份有限公司 Forwarding-table item update method and VTEP based on VTEP
CN109617817A (en) * 2019-01-22 2019-04-12 新华三技术有限公司 A kind of generation method and device of the forwarding-table item of MLAG networking
US10397114B2 (en) 2015-04-29 2019-08-27 Hewlett Packard Enterprise Development Lp Client communications in multi-tenant data center networks
CN111107182A (en) * 2019-12-31 2020-05-05 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN111327717A (en) * 2020-01-20 2020-06-23 新华三大数据技术有限公司 MAC address learning method and device
CN111736958A (en) * 2020-06-29 2020-10-02 中国联合网络通信集团有限公司 Virtual machine migration method, system, computer equipment and storage medium
CN113286011A (en) * 2021-04-27 2021-08-20 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113595849A (en) * 2021-08-17 2021-11-02 中国联合网络通信集团有限公司 Message forwarding method, sending end VTEP and gateway VTEP

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1672850A2 (en) * 2003-09-06 2006-06-21 Fujitsu Limited Method for a virtual private network (VPN) with channelized Ethernet over Sonet (EoS)
CN103095546A (en) * 2013-01-28 2013-05-08 华为技术有限公司 Method, device and data center network for processing messages
CN103200085A (en) * 2013-04-16 2013-07-10 中航网信(北京)科技有限公司 Method and system for achieving transmission and receiving of VXLAN message line speed
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1672850A2 (en) * 2003-09-06 2006-06-21 Fujitsu Limited Method for a virtual private network (VPN) with channelized Ethernet over Sonet (EoS)
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
CN103095546A (en) * 2013-01-28 2013-05-08 华为技术有限公司 Method, device and data center network for processing messages
CN103200085A (en) * 2013-04-16 2013-07-10 中航网信(北京)科技有限公司 Method and system for achieving transmission and receiving of VXLAN message line speed
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
X. XU等: "NVo3 Control Plane Protocol Using IS-IS,draft-xu-nvo3-isis-cp-00", 《IETF》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10956194B2 (en) 2014-09-29 2021-03-23 Hewlett Packard Enterprise Development Lp Learning a MAC address in VXLAN
WO2016050158A1 (en) * 2014-09-29 2016-04-07 Hangzhou H3C Technologies Co., Ltd. Learning a mac address in vxlan
US10397114B2 (en) 2015-04-29 2019-08-27 Hewlett Packard Enterprise Development Lp Client communications in multi-tenant data center networks
CN105391612B (en) * 2015-10-15 2018-09-11 北京星网锐捷网络技术有限公司 A kind of method and device of VXLAN VTEP adjoinings study
CN105634901A (en) * 2015-12-28 2016-06-01 杭州华三通信技术有限公司 MAC address information synchronization method and device based on CAS VXLAN
CN105634901B (en) * 2015-12-28 2019-05-03 新华三技术有限公司 Mac address information synchronous method and device based on CAS VXLAN
CN106921577B (en) * 2017-03-10 2019-06-07 新华三技术有限公司 MAC address learning method and device
CN106921577A (en) * 2017-03-10 2017-07-04 新华三技术有限公司 MAC address learning method and device
CN108259347A (en) * 2017-05-19 2018-07-06 新华三技术有限公司 A kind of message transmitting method and device
US11184192B2 (en) 2017-05-19 2021-11-23 New H3C Technologies Co., Ltd. Packet transmission
CN108259347B (en) * 2017-05-19 2020-01-03 新华三技术有限公司 Message transmission method and device
CN108512949A (en) * 2018-03-23 2018-09-07 烽火通信科技股份有限公司 A kind of MAC Address synchronous method and system
CN108512949B (en) * 2018-03-23 2021-05-07 烽火通信科技股份有限公司 MAC address synchronization method and system
CN108540386A (en) * 2018-04-19 2018-09-14 新华三技术有限公司 One kind preventing Business Stream interrupt method and device
CN108965131A (en) * 2018-07-27 2018-12-07 新华三技术有限公司 A kind of method and device of message forwarding
CN109412925A (en) * 2018-09-30 2019-03-01 锐捷网络股份有限公司 Forwarding-table item update method and VTEP based on VTEP
CN109617817A (en) * 2019-01-22 2019-04-12 新华三技术有限公司 A kind of generation method and device of the forwarding-table item of MLAG networking
CN109617817B (en) * 2019-01-22 2021-06-04 新华三技术有限公司 Method and device for generating forwarding table entry of MLAG networking
CN111107182A (en) * 2019-12-31 2020-05-05 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN111107182B (en) * 2019-12-31 2022-09-20 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN111327717A (en) * 2020-01-20 2020-06-23 新华三大数据技术有限公司 MAC address learning method and device
CN111327717B (en) * 2020-01-20 2022-04-01 新华三大数据技术有限公司 MAC address learning method and device
CN111736958A (en) * 2020-06-29 2020-10-02 中国联合网络通信集团有限公司 Virtual machine migration method, system, computer equipment and storage medium
CN111736958B (en) * 2020-06-29 2023-06-30 中国联合网络通信集团有限公司 Virtual machine migration method, system, computer equipment and storage medium
CN113286011A (en) * 2021-04-27 2021-08-20 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113286011B (en) * 2021-04-27 2023-08-22 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113595849A (en) * 2021-08-17 2021-11-02 中国联合网络通信集团有限公司 Message forwarding method, sending end VTEP and gateway VTEP
CN113595849B (en) * 2021-08-17 2022-05-20 中国联合网络通信集团有限公司 Message forwarding method, sending end VTEP and gateway VTEP

Also Published As

Publication number Publication date
CN104243630B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN104243318A (en) MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network)
CN104243630A (en) MAC (media access control) address learning method and MAC address learning device in VXLAN (virtual extensible local area network)
CN101764751B (en) Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN102186221B (en) Method and device for updating routing table item
CN107547243B (en) Message forwarding method and device
CN106878288B (en) message forwarding method and device
CN104378296A (en) Message forwarding method and device
US20110149986A1 (en) Switching hub, line card and frame relay method
CN106130819B (en) The detection method and device of VTEP exception
CN103501250A (en) Data flow processing method and device in distribution type link aggregation network
CN101577722A (en) Method for realizing MAC forced forwarding function and device
CN101820435A (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN104243268A (en) Association method and device between virtual extensible local area networks (VXLAN) and tunnel
US20140301403A1 (en) Node device and method for path switching control in a ring network
CN103795573B (en) A kind of network topology generation method, apparatus and system
CN105337855A (en) Method and device used for processing modified message
CN104125128A (en) Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge
CN105634901A (en) MAC address information synchronization method and device based on CAS VXLAN
CN108540386B (en) Method and device for preventing service flow interruption
CN105991795A (en) ARP (address resolution protocol) table item updating method and device
CN103763750A (en) Method for fast achieving packet forwarding in wireless ad hoc network of TDMA protocol
CN105634952A (en) Fast notification method and apparatus for LSP message
CN109412925A (en) Forwarding-table item update method and VTEP based on VTEP
CN103532851A (en) Method and device for processing data flow in distributed link aggregation network
CN102065508B (en) Wireless bridge forwarding equipment and method

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
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.

GR01 Patent grant
GR01 Patent grant