CN104243630B - MAC address learning method and device in VXLAN networks - Google Patents
MAC address learning method and device in VXLAN networks Download PDFInfo
- Publication number
- CN104243630B CN104243630B CN201410512381.1A CN201410512381A CN104243630B CN 104243630 B CN104243630 B CN 104243630B CN 201410512381 A CN201410512381 A CN 201410512381A CN 104243630 B CN104243630 B CN 104243630B
- Authority
- CN
- China
- Prior art keywords
- mac address
- list item
- vxlan
- lsp messages
- isis lsp
- 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
Links
Abstract
This application discloses the MAC address learning method and device in a kind of VXLAN networks, wherein, this method includes:Receive after 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;Receive after the data message from tunnel, without 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 associated tunnel of the VXLAN in the local mac address list item with change, the sync message is saved in the database in this equipment so that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message;Wherein, a VTEP has a database.The mac address information that the application realizes control plane in VXLAN networks is synchronous.
Description
Technical field
The application be related to MAC address learning method in network communication technology field, more particularly to a kind of VXLAN networks and
Device.
Background technology
VXLAN (Virtual eXtensible Local Area Network, virtual expansible LAN) is a kind of
Overlay (overlapping) network technology, uses MAC (Media Access Control, media access control) in UDP (User
Datagram Protocol, User Datagram Protocol) method be packaged, i.e., original message is encapsulated in UDP messages.
As shown in figure 1, VXLAN networks include:The local network that is made up of multiple terminal devices (for example, virtual machine) and
VTEP (VXLAN Tunnel End Point, VXLAN tunneling termination), wherein, VTEP is the edge device of VXLAN networks, can
To be entered between physical switches or virtual switch realization, VTEP by setting up tunnel (TUNNEL) to pass through three-layer network
Row data communication.VXLAN networks are by VNI (VXLAN Network Identifier, VXLAN network identity) unique mark, VNI
Length be 24bit (bit).
In VXLAN networks, VTEP MAC address learning uses the self study mode of datum plane, i.e. VTEP is only
MAC address learning can just be triggered when receiving data frame by having, and number is received from local network or from tunnel specifically, working as
During according to frame, by source MAC (Media Access Control, media access control) addresses of the data frame and its corresponding
VXLAN learns onto the inbound port of the data frame, and configures corresponding in local mac address forwarding table as shown in table 1
MAC Address list item.
Table 1
MAC Address | VXLAN | Outgoing interface |
Wherein, when the data frame is received from local network, the outgoing interface in the MAC Address list item of configuration is
It is used for the physical port for connecting the source terminal equipment for sending the data frame on VTEP;When the data frame is received from tunnel
When, the outgoing interface in the MAC Address list item of configuration is the tunnel for receiving the data frame.For convenience, below will be local
The MAC Address list item that data frame triggering in network learns is referred to as local mac address list item.
But, this MAC address learning mode have the shortcomings that passivity, not in time with restrain it is slow.
The content of the invention
In view of this, this application provides the MAC address learning method and device in a kind of VXLAN networks.
The technical scheme of the application is as follows:
On the one hand there is provided a kind of MAC address learning method in VXLAN networks, applied to VTEP, this method includes:
Receive after the data message from local network, the study of source MAC is carried out, by the local mac learnt
Address list item is added in mac address forwarding table;
Receive after the data message from tunnel, without the study of source MAC;
When there is the change of local mac address list item in mac address forwarding table, pass through the local mac address with change
Each tunnel that VXLAN in list item is associated sends sync message, and the sync message is saved in the data in this equipment
In storehouse so that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message;Wherein, a VTEP
With a database.
On the other hand, the MAC address learning device in a kind of VXLAN networks is additionally provided, applied in VTEP, the device
Including:
Receiving module, for receiving the data message from local network and the data message from tunnel;
Preserving module, for preserving mac address forwarding table and database;Wherein, a VTEP has a database;
Source MAC study module, for after receiving module receives the data message from local network, carrying out source
The study of MAC Address, the local mac address list item learnt is added in mac address forwarding table;It is additionally operable in receiving module
Receive after the data message from tunnel, without the study of source MAC;
Sending module, for when there is the change of local mac address list item in mac address forwarding table, by with change
Local mac address list item in associated each tunnel of VXLAN send sync message, the sync message is saved in this
In database in equipment so that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message.
In the technical scheme of the embodiment of the present application, there is local mac address list item in any VTEP in mac address forwarding table
Change, it is such as newly-increased or when reducing, can be by associated with the VXLAN in the newly-increased or local mac address list item of reduction
Tunnel sends sync message to opposite end VTEP, to notify opposite end VTEP to update the mac address forwarding table on the VTEP of the opposite end, realizes
The active synchronization of the mac address information in local mac address list item between tunnel two ends VTEP, compensate for prior art
Passivity that the self study mode of datum plane is present, not in time with restrain slow shortcoming;It is same due to having carried out MAC Address in time
Step, accelerates network convergence speed, reduces the quantity of the unknown unicast data message of destination address, reduces network bandwidth money
The waste in source.Moreover, there is one for preserving the sync message received and dispatched on all tunnels on the VTEP on a VTEP
Database, saves memory source.
Brief description of the drawings
Fig. 1 is a kind of actual group-network construction figure of VXLAN networks;
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 for being used to carry the TLV of VXLAN and its corresponding MAC Address of the embodiment of the present application;
Fig. 4 be the embodiment of the present application when reducing local mac address list item, VTEP perform operational flowchart;
Fig. 5 be the embodiment of the present application after the ISIS LSP messages that opposite end VTEP is sent are received, VTEP perform behaviour
Make flow chart;
Fig. 6 is a kind of structural representation of the MAC address learning device of the embodiment of the present application;
Fig. 7 is another 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
In order to solve passivity that the MAC Address self study mode of datum plane of the prior art has, not in time and
A kind of MAC address learning method in VXLAN networks, Yi Jiyi are provided in the slow shortcoming of convergence, the application following examples
The device of this method can be applied by planting, and the mac address information for realizing control plane is synchronous.
The application following examples are applied on any VTEP in the VXLAN networks of full connection framework as shown in Figure 1.
On VTEP, the source MAC learning functionality of the data message from local network is opened, the data message from tunnel is closed
Source MAC learning functionality.Because VXLAN networks need to run on TUNNEL, therefore, it is respectively configured on VTEP
After VXLAN and TUNNEL, in addition it is also necessary to which VXLAN is associated or bound with TUNNEL.In addition, being set up on each VTEP
One database a, i.e. VTEP has a database, is stored using the database by all tunnels in this equipment
The sync message sent and received.
In the method for the embodiment of the present application, any VTEP is received after the data message from local network, carries out source MAC
The study of address, the local mac address list item learnt is added in mac address forwarding table;Receive the number from tunnel
After message, without 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 associated tunnel of the VXLAN in the local mac address list item with change, this is synchronously reported
Text is saved in the database in this equipment.So, opposite end VTEP can just update on the VTEP of the opposite end according to the sync message
Mac address forwarding table.
So as to which any VTEP has the change of local mac address list item in mac address forwarding table, such as newly-increased or reduction
When, it can be sent together to opposite end VTEP by the tunnel associated with the VXLAN in the newly-increased or local mac address list item of reduction
Message is walked, to notify opposite end VTEP to update the mac address forwarding table on the VTEP of the opposite end, is realized between the VTEP of tunnel two ends
The active synchronization of mac address information in local mac address list item, compensate for the self study mode of the datum plane of prior art
The passivity of presence, not in time with restrain slow shortcoming;It is synchronous due to having carried out MAC Address in time, accelerate network convergence speed
Degree, reduces the quantity of the unknown unicast data message of destination address, reduces the waste of network bandwidth resources.Moreover, one
There is a database for being used to preserve the sync message received and dispatched on all tunnels on the VTEP on VTEP, internal memory money is saved
Source.
Wherein, above-mentioned sync message can use ISIS (Intermediate System to Intermediate
System, Intermediate System-to-Intermediate System) protocol massages or other procotol messages realize that the application is not limited this
It is fixed.
ISIS LSP (Link State Protocol Data Unit, link-state protocol are used with sync message below
Data cell) message realize exemplified by illustrate.ISIS agreements are enabled on VTEP, for each tunnel configured in this equipment
Road, ISIS neighbours are set up using the opposite end VTEP in the tunnel and the tunnel.So, any VTEP can be with configuring in this equipment
The opposite end VTEP in tunnel set up ISIS neighbours, afterwards, it is possible to send ISIS LSP messages to the opposite end VETP in tunnel, and
The ISIS LSP messages sent of opposite end VTEP are received, and the ISIS LSP messages of transmitting-receiving are saved in the LSDB in this equipment
In (Link State DataBase, LSD).
In order to make it easy to understand, below first to two concepts in ISIS agreements:Primal system and virtual system carry out simple
Introduce.
Primal system:Refer to primal system ID, be made up of 6 bytes, primal system ID value is VTEP bridge MAC Address,
For one VTEP of unique mark in VXLAN networks.
Virtual system (also referred to as extends system):Refer to virtual system ID, be made up of 6 bytes, virtual system ID value by
User's manual configuration, can configure multiple virtual system ID in a VTEP, ensured by user configuring be in VXLAN networks
Uniquely.In other nodes of network, virtual system is exactly a node, the difference is that the node that virtual system ID is represented
It is to be generated by actual VTEP.
Configuration virtual system can expand the ability that VTEP carries information, and a system identifier can generate 256 ISIS
LSP messages, each ISIS LSP messages can encapsulate about 200 mac address informations, then a system identifier most multipotency is carried
About 50,000 mac address informations, if having more than 50,000 mac address informations on VTEP, are only carried with primal system ID
It is inadequate, it is necessary to configure virtual system ID to carry more mac address informations.
So, in order to carry the mac address information of renewal, in addition it is also necessary to configured on VTEP between VXLAN and virtual system
One-to-one relationship, i.e. VXLAN one virtual system of correspondence, the corresponding virtual system of different VXLAN is different, so,
In a certain virtual system ID ISIS LSP messages are carried, it can only encapsulate and the one-to-one VXLAN of virtual system ID
And its corresponding MAC Address.
As shown in Fig. 2 having increased local mac address newly in mac address forwarding tables of any VTEP on this equipment is detected
During list item, following operation can be performed:
Step S102, it is determined that virtual system ID corresponding with the VXLAN in the newly-increased local mac address list item;Afterwards
Perform step S104;
Step S104, judges in the LSDB in this equipment to have sent ISIS LSP with the presence or absence of meeting the specific of following condition
Message, if judging to have sent ISIS LSP messages in the absence of specific, performs step S106, if judging to have specific sent out
ISIS LSP messages are sent, then perform step S110;
Wherein, the condition includes:The virtual system ID of carrying is identical with the virtual system ID determined, also, can add
The ISIS LSP messages of transmission of MAC Address and its corresponding VXLAN in the newly-increased local mac address list item, i.e. in spy
Fixed sent in ISIS LSP messages also has free space to carry the MAC Address in the newly-increased local mac address list item
And its corresponding VXLAN.
Step S106, generation carries the virtual system ID determined in step S102, the newly-increased local mac address table
The ISIS LSP messages of MAC Address and its corresponding VXLAN in, the ISIS LSP messages of generation are saved in this equipment
LSDB in;Step S108 is performed afterwards;
In actual implementation process, in the case of ascending serial number, in the ISIS LSP messages of the generation also
Unappropriated minimum message ID (alternatively referred to as burst number) can be carried.
Step S108, for each tunnel associated with the VXLAN in the newly-increased local mac address list item, leads to
Cross the tunnel and the ISIS LSP messages of generation are sent to opposite end VTEP;
Step S110, spy is added to by the MAC Address and its corresponding VXLAN in the newly-increased local mac address list item
It is fixed to have sent in ISIS LSP messages;Step S112 is performed afterwards;
Step S112, will for each tunnel associated with the VXLAN in the newly-increased local mac address list item
The specific ISIS LSP messages that sent after addition are sent to opposite end VTEP by the tunnel.
Obviously, the specific message ID for having sent ISIS LSP messages after addition will not change.
In actual implementation process, ISIS LSP messages include heading and message body, wherein, system identifier (virtual system
Unite ID or primal system ID) carry in heading, message body constitutes the various information, it is necessary to carry by least one TLV
All it is encapsulated in different TLV.In the embodiment of the present application, can be carried by extending a kind of TLV of new type MAC Address and
Its corresponding VXLAN.As shown in figure 3, the TLV of the new type includes following field:
Type (type):Type for representing this TLV, when the value of the type field is set to particular value, represents that this TLV is used
In carrying VXLAN and its at least one corresponding MAC Address, for example, the particular value can be 147;The length of the field can be with
For 1 byte;
Length (length):For carrying other all fields in this TLV in addition to the type field and Length fields
Length, the value of Length fields can be set to 7+6*N, wherein, N represents the quantity of MAC Address;The length of the field can be
1 byte;
Topology-Id (topology identifier)/Nickname (pet name):For identifying sender according to actual application environment,
The field is invalid in VXLAN networks, is arranged to 0, represents that MAC Address below is reached by sending this TLV source VTEP,
Without distinguishing topological sum Nickname;The length of the field can be 2 bytes;
Confidence (confidence level):For to the preferred of conflict MAC Address;The length of the field can be 1 byte;
RSV (reserved bit):Fill out 0;
TAG (flag):The value of the field is set to a certain value, such as when 2, and represent immediately following field carrying is
VXLAN;
VXLAN:For carrying VXLAN;The total length that RSV, TAG and VXLAN field take can be 4 bytes;
MAC:For carrying MAC Address corresponding with VXLAN above;The length of the field can be 6 bytes.
Thus, judge a certain to have sent whether can to add this in ISIS LSP messages newly-increased local in step S104
The method of MAC Address and its corresponding VXLAN in MAC Address list item can be:Packet maximum length is calculated (for example, 1400
Byte) and the length for having sent ISIS LSP messages difference A;Judge whether difference A is not less than B, wherein, B represents that this is new
MAC Address and its corresponding VXLAN in the local mac address list item of increasing monopolize length required during a TLV as shown in Figure 3
Degree, can be 15 bytes;If being not less than, it is determined that this, which has sent, can add the newly-increased local mac in ISIS LSP messages
MAC Address and its corresponding VXLAN in address list item, otherwise, it determines can not add.
In addition, as shown in figure 4, reducing local mac in mac address forwarding tables of any VTEP on this equipment is detected
During address list item, following operation can be performed:
Step S202, it is determined that the virtual system ID corresponding with the VXLAN in the local mac address list item of the reduction;It
Step S204 is performed afterwards;
The sheet for carrying the virtual system ID and reduction determined is found in step S204, the LSDB from this equipment
The ISIS LSP messages of transmission of MAC Address in ground MAC Address list item;Step S206 is performed afterwards;
Due to having been carried before the MAC Address and its corresponding VXLAN in the local mac address list item of the reduction
In ISIS LSP messages, by with the VXLAN be associated tunnel synchronously went out, therefore, in step S204, can this
In LSDB in equipment, find and carry the virtual system ID determined in step S202, the local mac address table of the reduction
The ISIS LSP messages of transmission of MAC Address and its corresponding VXLAN in.
Step S206, from the ISIS LSP messages of transmission found, in the local mac address list item for deleting the reduction
MAC Address and its corresponding VXLAN;Step S208 is performed afterwards;
Step S208, will for each associated tunnel of the VXLAN in the local mac address list item with the reduction
The opposite end VTEP that ISIS LSP messages are sent to the tunnel by the tunnel has been sent after deletion.
Obviously, the message ID for having sent ISIS LSP messages after deletion will not change.
It can be seen from TLV forms as shown in Figure 3 in step S206, from the ISIS of the transmission LSP reports found
MAC Address (for convenience, being designated as MAC1) in the local mac address list item of the reduction is deleted in text and its corresponding
, it is necessary to which reconfiguring this has sent ISIS LSP messages during VXLAN (for convenience, being designated as VXLAN1).Specifically, due to
The ISIS LSP messages of transmission for carrying MAC1 and its corresponding VXLAN1 can be found in step S204, also, can
To further search for this having sent the TLV for carrying MAC1 and its corresponding VXLAN1 in ISIS LSP messages, therefore, in step
MAC1 is deleted from the TLV found in rapid S206, any MAC Address is not present after MAC1 in the TLV if deleting, should
TLV is deleted, if deleting after the TLV, and this, which has sent, is not present any TLV in ISIS LSP messages, then by the only bag after deletion
ISIS LSP messages containing heading send opposite end VTEP, and at preset time intervals, such as after 60 seconds, delete the ISIS
LSP messages;Otherwise, also there are other MAC Address in the TLV if deleting after MAC1, or, sent if deleting after the TLV this
Also there are other TLV in ISIS LSP messages, then send the ISIS LSP messages of transmission after deletion.
So, by method as shown in Figure 2 and Figure 4, any VTEP is increased newly or reduced in mac address forwarding table is found
During local mac address list item, the ISIS LSP messages can be used to be synchronized to opposite end VTEP, moreover, when synchronous, only can be synchronous
Give the opposite end VTEP in the associated tunnel of VXLAN in the newly-increased or local mac address list item of reduction, i.e. if it is newly-increased or
VXLAN in the local mac address list item of reduction is unconnected to any tunnel, then the local mac address of newly-increased or reduction
MAC Address and its corresponding VXLAN in list item will not synchronously be gone out by any tunnel.Therefore, it is synchronous by different tunnels
The MAC Address and its corresponding VXLAN gone out are probably different.
What the opposite end VTEP that any VTEP by the tunnel that is configured in this equipment, can also receive the tunnel was sent
ISIS LSP messages, now, as shown in figure 5, the VTEP can perform following operation:
Step S302, judges in the LSDB in this equipment to have received ISIS LSP with the presence or absence of meeting the specific of following condition
Message, if judging to have received ISIS LSP messages in the absence of specific, performs step S304, if judging to have specific connect
ISIS LSP messages are received, then perform step S314;
Wherein, the condition includes:The virtual system ID of carrying and the virtual system carried in the ISIS LSP messages received
The ID that unites is identical, also, the message ID identicals of message ID and the ISIS LSP messages received have received ISIS LSP messages;
That is, the virtual system ID that the specific ISIS LSP messages for having received ISIS LSP messages with receiving are carried is identical, and message ID
Also it is identical.
Step S304, judges in this equipment, and whether the VXLAN carried in the ISIS LSP messages received and the tunnel
It is associated, if so, then performing step S306, otherwise, terminate this flow;
Step S306, according to the VXLAN and its corresponding MAC Address carried in the ISIS LSP messages received, in MAC
Corresponding distal end MAC Address list item is searched in addresses forwarding table;Step S308 is performed afterwards;
Step S308, judges whether to have found corresponding distal end MAC Address list item, if so, then execution step S310, no
Then, step S312 is performed;
Step S310, the tunnel is updated to by the outgoing interface in the distal end MAC Address list item found;Terminate this stream afterwards
Journey;
It is assumed that the VXLAN and its corresponding MAC Address that are carried in the ISIS LSP messages that receive are VXLAN1 respectively
And MAC1, the tunnel for receiving the ISIS LSP messages is TUNNEL1, the distal end mac address table found in step S306
Shown in Xiang Rubiao 2-1, then the distal end MAC Address list item after outgoing interface is have updated in step S310 as shown in table 2-2:
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 distal end MAC Address list item in mac address forwarding table;Terminate this flow afterwards;
Wherein, the distal end MAC Address list item of addition includes:The VXLAN that is carried in the ISIS LSP messages received and
Its corresponding MAC Address;Outgoing interface in the distal end MAC Address list item of the addition is set to the tunnel.
It is assumed that the VXLAN and its corresponding MAC Address that are carried in the ISIS LSP messages that receive are VXLAN1 respectively
And MAC1, the tunnel for receiving the ISIS LSP messages is TUNNEL1, then the distal end mac address table added in step S312
Shown in Xiang Rubiao 2-3:
Table 2-3
MAC Address | VXLAN | Outgoing interface |
MAC1 | VXLAN1 | TUNNEL1 |
Step S314, compares the ISIS LSP messages received and has received ISIS LSP messages with specific;Step is performed afterwards
Rapid S316;
Because the ISIS LSP messages received are identical with the specific virtual system ID for having received ISIS LSP messages, and report
Literary ID is also identical, therefore, the whole VXLAN all sames carried in the two messages, is exactly to be corresponded with virtual system ID
VXLAN, when comparing the two messages, only need to compare MAC Address.
Comparative result in step S316, judgment step S314 is comparative result 1 or comparative result 2, if comparing knot
Really 1, then step S318 is performed, if comparative result 2, then step S328 is performed;
Wherein, comparative result 1 is:The MAC Address carried in the ISIS LSP messages received, has been received specific
It is not present in ISIS LSP messages;Illustrate to have increased newly in the mac address forwarding table on the VTEP of the opposite end include the MAC Address and
Its corresponding VXLAN local mac address list item.
Comparative result 2 is:It is specific to have received the MAC Address carried in ISIS LSP messages, in the ISIS received
It is not present in LSP messages;Illustrate to reduce in the mac address forwarding table on the VTEP of the opposite end and include the MAC Address and its right
The VXLAN answered local mac address list item.
Step S318, judges in this equipment, and whether the VXLAN carried in the ISIS LSP messages received and the tunnel
It is associated, if so, then performing step S320, otherwise, terminate this flow;
Step S320, according to the VXLAN and the MAC Address, corresponding distal end MAC is searched in mac address forwarding table
Location list item;Step S322 is performed afterwards;
Step S322, judges whether to have found corresponding distal end MAC Address list item, if so, then execution step S324, no
Then, step S326 is performed;
Step S324, the tunnel is updated to by the outgoing interface in the distal end MAC Address list item found;Terminate this stream afterwards
Journey;
It is assumed that the ISIS LSP messages received are with the specific VXLAN carried in ISIS LSP messages that received
MAC2 is carried in VXLAN1, the ISIS LSP messages received, and specific received does not carry in ISIS LSP messages
MAC2, the tunnel for receiving the ISIS LSP messages is TUNNEL1, the distal end MAC Address list item found in step s 320
As shown in table 3-1, then the distal end MAC Address list item after outgoing interface is have updated in step S324 as shown in table 3-2:
Table 3-1
MAC Address | VXLAN | Outgoing interface |
MAC2 | VXLAN1 | TUNNEL2 |
Table 3-2
MAC Address | VXLAN | Outgoing interface |
MAC2 | VXLAN1 | TUNNEL1 |
Step S326, addition includes the MAC Address and its corresponding VXLAN distal end MAC in mac address forwarding table
Address list item;Terminate this flow afterwards;
It is assumed that the ISIS LSP messages received are with the specific VXLAN carried in ISIS LSP messages that received
MAC2 is carried in VXLAN1, the ISIS LSP messages received, and specific received does not carry in ISIS LSP messages
MAC2, then the distal 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 in this equipment, and whether the VXLAN carried in the ISIS LSP messages received and the tunnel
It is associated, if so, then performing step S330, otherwise, terminate this flow;
Step S330, according to the VXLAN, the MAC Address and the tunnel, is searched corresponding remote in mac address forwarding table
Hold MAC Address list item;
The distal end MAC Address list item found in step S332, delete step S330, terminates this flow afterwards.
In addition, in the above-mentioned methods, judge to exist it is specific received ISIS LSP messages after, in addition it is also necessary to will originally set
The specific ISIS LSP messages that received in standby upper LSDB replace with the ISIS LSP messages received.
It should be noted that:Existing ISIS agreements are improved in the embodiment of the present application, what any VTEP was sent
The system identifier carried in the heading for carrying the ISIS LSP messages of VXLAN and its corresponding MAC Address can only be virtual system
Unite ID (being specifically virtual system ID corresponding with the VXLAN), i.e. only virtual system could carry mac address information;And it is former
Beginning system can only carry the other information in addition to mac address information, i.e. primal system can not carry mac address information.
By method as shown in Figure 5, after the ISIS LSP messages that the opposite end VTEP that any VTEP receives tunnel is sent,
Can be according to carrying in the virtual system ID of the carrying preserved in the LSDB in this equipment and the ISIS LSP messages received
Virtual system ID identicals have received ISIS LSP messages, judge it is to have increased newly to be also the reduction of locally on the VTEP of the opposite end
MAC Address list item.
In the above embodiments of the present application, it is proposed that a kind of utilization ISIS LSP messages realize the MAC Address letter of control plane
Cease synchronous method.There is the VXLAN on a LSDB, VTEP to be corresponded with virtual system on each VTEP;It is any
VTEP is having found that local mac address list item is changed, during such as newly-increased or reduction, can utilize and carry and the newly-increased or reduction
Local mac address list item in the corresponding virtual system ID of VXLAN ISIS LSP messages, pass through the sheet with newly-increased or reduction
Tunnel associated VXLAN in ground MAC Address list item, is synchronized to the opposite end VTEP in the tunnel, and by the ISIS LSP messages
It is saved in the LSDB in this equipment;Any VTEP is received after the ISIS LSP messages that opposite end VTEP is sent, can be according to receiving
The ISIS LSP messages and this equipment on LSDB in the virtual system ID that preserves with being taken in the ISIS LSP messages that receive
The virtual system ID identicals of band have received ISIS LSP messages, judge to increase or reduce local mac in the VTEP of the opposite end newly
Address list item, it is determined that go out in this equipment, newly-increased or the VXLAN and the tunnel phase in the local mac address list item of reduction
After association, according to the mac address forwarding table in the newly-increased or local mac address entry updating of reduction this equipment, i.e. at this
Corresponding distal end MAC Address list item is added, deletes or edited in the mac address forwarding table of equipment, realizes tunnel two ends VTEP
Between local mac address list item in mac address information active synchronization, compensate for the self-study of the datum plane of prior art
Passivity that habit mode is present, not in time with restrain slow shortcoming;It is synchronous due to having carried out MAC Address in time, accelerate network
Convergence rate, reduces the quantity of the unknown unicast data message of destination address, reduces the waste of network bandwidth resources.
It is additionally, since VXLAN to correspond with virtual system, therefore, carries a certain virtual system ID ISIS LSP reports
A VXLAN (VXLAN i.e. corresponding with virtual system ID) and its corresponding MAC Address, different VXLAN pairs are only encapsulated in text
The MAC Address answered is encapsulated in the ISIS LSP messages for carrying different virtual system ID.Due between different virtual systems
ISIS LSP messages are separate, so, the ISIS LSP of all virtual systems can be stored in same LSDB, one
The corresponding MAC Address of individual VXLAN only exists a information in LSDB.The ISIS LSP messages sent by any TUNNEL,
All obtained from same LSDB, in the absence of the situation of ISIS LSP message redundancies, associated with same VXLAN is multiple
The ISIS LSP messages sent on TUNNEL are the same.Using this preserving type, it is interior that whole ISIS LSP messages take
Depositing total resources will not increase with the increase of the TUNNEL quantity associated with VXLAN, can save VTEP internal memory money
Source.
By taking the VXLAN networks shown in Fig. 1 as an example, the MAC address learning method in above-described embodiment is described in detail.
VXLAN1~VXLAN20, the TUNNEL1 and TUNNEL2 of VXLAN types are configured with VTEP1;Wherein, TUNNEL1
Associated with VXLAN5~VXLAN15, TUNNEL2 is associated with VXLAN10~VXLAN20.The local mac increased newly on VTEP1
Address list item is as shown in table 4-1:
Table 4-1
MAC Address | VXLAN | Outgoing interface |
MAC1 | VXLAN1 | XX |
MAC10 | VXLAN10 | XX |
VXLAN5~VXLAN15, the TUNNEL1 and TUNNEL3 of VXLAN types are configured with VTEP2;TUNNEL1 with
VXLAN5~VXLAN15 is associated, and TUNNEL3 is associated with VXLAN10~VXLAN15.The local mac increased newly on VTEP2
Location list item is as shown in table 4-2:
Table 4-2
MAC Address | VXLAN | Outgoing interface |
MAC5 | VXLAN5 | XX |
MAC15 | VXLAN15 | XX |
VXLAN10~VXLAN30, the TUNNEL2 and TUNNEL3 of VXLAN types are configured with VTEP3;TUNNEL2 with
VXLAN10~VXLAN20 is associated, and TUNNEL3 is associated with VXLAN10~VXLAN15.The local mac increased newly on VTEP3
Location list item 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, and it is adjacent to establish ISIS by TUNNEL2 and VTEP3
Occupy;VTEP2 establishes ISIS neighbours by TUNNEL1 and VTEP1, and ISIS neighbours are established by TUNNEL3 and VTEP3;
VTEP3 establishes ISIS neighbours by TUNNEL2 and VTEP1, and ISIS neighbours are established by TUNNEL3 and VTEP2.
The mac learning method that VTEP1~VTEP3 is performed includes:
It is assumed that on VTEP1, VXLAN10 is corresponding with virtual system 0000.0000.0010, then VTEP1 will carry void
Intend system identifier:0000.0000.0010, MAC10 and its corresponding VXLAN10 ISIS LSP messages, are sent by TUNNEL1
VTEP3 is sent to VTEP2 and by TUNNEL2, and the ISIS LSP messages are saved in the LSDB in this equipment;By
In including, the VXLAN1 in MAC1 and its corresponding VXLAN1 local mac address list item is uncorrelated to any TUNNEL
Connection, then will not synchronously go out.
It is assumed that on VTEP2, VXLAN5 is corresponding with virtual system 0000.0000.0005, VXLAN15 and virtual system
0000.0000.0015 correspond to, then VTEP2 will carry virtual system ID:0000.0000.0005, MAC5 and its corresponding
VXLAN5 ISIS LSP messages, are sent to VTEP1, and the ISIS LSP messages are saved in this equipment by TUNNEL1
LSDB in;Virtual system ID will be carried:0000.0000.0015, MAC15 and its corresponding VXLAN15 ISIS LSP reports
Text, is sent to VTEP1 by TUNNEL1 and is sent to VTEP3 by TUNNEL3, and the ISIS LSP messages are saved in
In LSDB in this equipment.
It is assumed that on VTEP3, VXLAN20 is corresponding with virtual system 0000.0000.0020, then VTEP3 will carry void
Intend system identifier:0000.0000.0020, MAC20 and its corresponding VXLAN20 ISIS LSP messages, are sent by TUNNEL2
It is saved in VTEP1, and by the ISIS LSP messages in the LSDB in this equipment;Due to including MAC30 and its corresponding
VXLAN30 in VXLAN30 local mac address list item is unconnected to any TUNNEL, then will not synchronously go out.
Therefore, what VTEP1 can receive that VTEP2 sends by TUNNEL1 carries virtual system ID:
0000.0000.0005, MAC5 and its corresponding VXLAN5 ISIS LSP messages, and carry virtual system ID:
0000.0000.0015, MAC15 and its corresponding VXLAN15 ISIS LSP messages, and this 2 ISIS LSP messages are preserved
In LSDB on to this equipment;Virtual system ID is carried by what TUNNEL2 received that VTEP3 sends:
0000.0000.0020, MAC20 and its corresponding VXLAN20 ISIS LSP messages, and the ISIS LSP messages are saved in
In LSDB in this equipment;Distal end MAC Address list item is added in the mac address forwarding table as shown in table 4-1, after addition
Mac address forwarding table is 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 |
What VTEP2 can receive that VTEP1 sends by TUNNEL1 carries virtual system ID:0000.0000.0010、
MAC10 and its corresponding VXLAN10 ISIS LSP messages, and the ISIS LSP messages are saved in the LSDB in this equipment
In;Distal end MAC Address list item is added in the mac address forwarding table as shown in table 4-2, the mac address forwarding table after addition is such as
Shown in table 5-2:
Table 5-2
MAC Address | VXLAN | Outgoing interface |
MAC5 | VXLAN5 | XX |
MAC15 | VXLAN15 | XX |
MAC10 | VXLAN10 | TUNNEL1 |
What VTEP3 can receive that VTEP1 sends by TUNNEL2 carries virtual system ID:0000.0000.0010、
MAC10 and its corresponding VXLAN10 ISIS LSP messages, and the ISIS LSP messages are saved in the LSDB in this equipment
In;Virtual system ID is carried by what TUNNEL3 received that VTEP2 sends:0000.0000.0015, MAC15 and its correspondingly
VXLAN15 ISIS LSP messages, and the ISIS LSP messages are saved in the LSDB in this equipment;In such as table 4-3 institutes
Distal end MAC Address list item is added in the mac address forwarding table shown, the mac address forwarding table after addition 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, the synchronization of the mac address information in local mac address list item is carried out between any two VTEP, it is each
The ISIS LSP messages of this equipment transmission are saved in LSDB on individual VTEP, the ISIS received from the VTEP of opposite end is also saved
LSP messages.A LSDB is only needed just to preserve the mac address information of all TUNNEL interactions on each VTEP.Each
The corresponding MAC Address of VXLAN only exists portion all the time in LSDB.
For the method in above-described embodiment, additionally provided in the embodiment of the present application it is a kind of can apply this method MAC
Address learning device, the device is applied in VTEP.
As shown in fig. 6, the MAC address learning device is included with lower module:Receiving module 401, preserving module 402, source
MAC address learning module 403 and sending module 404, wherein:
Receiving module 401, for receiving the data message from local network and the data message from tunnel;
Preserving module 402, for preserving mac address forwarding table and database;Wherein, a VTEP has a data
Storehouse;
Source MAC study module 403, for after receiving module 401 receives the data message from local network,
The study of source MAC is carried out, the local mac address list item learnt is added in mac address forwarding table;It is additionally operable to connecing
Receive module 401 to receive after the data message from tunnel, without 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, by with change
Each tunnel that VXLAN in the local mac address list item of change is associated sends sync message, and the sync message is saved in
In database in this equipment so that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message.
Wherein, it can include in sending module with lower unit:Virtual system determining unit, message judging unit, message life
Into 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, it is determined that with
The corresponding virtual system ID of VXLAN in the newly-increased local mac address list item;Wherein, a pair of VXLAN and virtual system 1
Should;
Message judging unit, for judging in the LSDB in this equipment to have sent with the presence or absence of meeting the specific of following condition
ISIS LSP messages;Wherein, the condition includes:The virtual system ID of carrying is identical with the virtual system ID determined, also, can
Add the ISIS LSP messages of transmission of the MAC Address and its corresponding VXLAN in the newly-increased local mac address list item;
Message generation unit, if judging to have sent ISIS LSP messages in the absence of specific for message judging unit,
Generation is with carrying the MAC in the virtual system ID that virtual system determining unit determines, the newly-increased local mac address list item
Location and its corresponding VXLAN ISIS LSP messages, the ISIS LSP messages of generation are saved in the LSDB in this equipment;
Message adding device, if for message judging unit judge to exist it is specific sent ISIS LSP messages, will
MAC Address and its corresponding VXLAN in the newly-increased local mac address list item, which are added to, specific has sent ISIS LSP messages
In;
Packet sending unit, for for each associated with the VXLAN in the newly-increased local mac address list item
Tunnel, opposite end VTEP is sent to by the tunnel by the ISIS LSP messages that message generation unit is generated;It is additionally operable to be directed to and this
Each associated VXLAN in newly-increased local mac address list item tunnel, after message adding device is added it is specific
Send ISIS LSP messages and opposite end VTEP is sent to by the tunnel.
In addition, can also include in sending module with lower unit:Message searching unit and message delete unit, wherein:
Virtual system determining unit, is additionally operable to when reducing local mac address list item in mac address forwarding table, it is determined that
The virtual system ID corresponding with the VXLAN in the local mac address list item of the reduction;
Message searching unit, used in determining the local mac address list item with the reduction in virtual system determining unit
The corresponding virtual system ID of VXLAN after, found in the LSDB from this equipment and carry the virtual system determined
System ID and the MAC Address in the local mac address list item of the reduction ISIS LSP messages of transmission;
Message deletes unit, in the ISIS LSP messages of transmission that are found from message searching unit, deleting this and subtracting
MAC Address and its corresponding VXLAN in few local mac address list item;
Packet sending unit, is additionally operable to for associated with the VXLAN in the local mac address list item of the reduction each
Individual tunnel, deletes the ISIS LSP messages of transmission after element deletion by message and is sent to opposite end VTEP by the tunnel.
In addition, as shown in fig. 7, also including in the MAC address learning device with lower module:Judge module 405, first is searched
Module 406 and first processing module 407, wherein:
Receiving module 401, is additionally operable to receive the ISIS LSP messages that the opposite end VTEP in tunnel is sent;
Judge module 405, for receiving the ISIS LSP messages that the opposite end VTEP in a tunnel is sent in receiving module 401
Afterwards, judge in the LSDB in this equipment to have received ISIS LSP messages with the presence or absence of meeting the specific of following condition;Wherein, should
Condition includes:The virtual system ID of carrying is identical with the virtual system ID carried in the ISIS LSP messages received, also, report
The message ID identicals of literary ID and the ISIS LSP messages received have received ISIS LSP messages;
First searching modul 406, if judging to have received ISIS LSP messages in the absence of specific for judge module 405,
After then determining that the VXLAN carried in the ISIS LSP messages received in this equipment is associated with the tunnel, according to connecing
The VXLAN and its corresponding MAC Address carried in the ISIS LSP messages received, is searched corresponding in mac address forwarding table
Distal end MAC Address list item;
First processing module 407, if having found corresponding distal end MAC Address list item for the first searching modul 406,
Outgoing interface in the distal end MAC Address list item found is updated to the tunnel;If being additionally operable to the first searching modul 406 not look into
Corresponding distal end MAC Address list item is found, then distal end MAC Address list item is added in mac address forwarding table, wherein, addition
Distal end MAC Address list item includes:The VXLAN and its corresponding MAC Address carried in the ISIS LSP messages received.
In addition, as shown in figure 8, can also include in the MAC address learning device with lower module:Comparison module 408, second
Searching modul 409, Second processing module 410 and replacement module 411, wherein:
Comparison module 408, if for judge module 405 judge to exist it is specific received ISIS LSP messages, compare
The ISIS LSP messages relatively received have received ISIS LSP messages with specific;
Second searching modul 409, if comparing one carried in the ISIS LSP messages received for comparison module 408
MAC Address, is not present in ISIS LSP messages in specific received, it is determined that go out the ISIS LSP reports received in this equipment
After the VXLAN carried in text is associated with the tunnel, according to the VXLAN and the MAC Address, looked into mac address forwarding table
Look for corresponding distal end MAC Address list item;
Second processing module 410, if having found corresponding distal end MAC Address list item for the second searching modul 409,
Outgoing interface in the distal end MAC Address list item found is updated to the tunnel;If being additionally operable to the second searching modul 409 not look into
Corresponding distal end MAC Address list item is found, then addition includes the remote of the VXLAN and the MAC Address in mac address forwarding table
Hold MAC Address list item;
Replacement module 411, for the specific ISIS LSP messages that received to be replaced with into the ISIS LSP messages received.
In addition, as shown in figure 9, can also include in the MAC address learning device with lower module:3rd searching modul 412
With the 3rd processing module 413, wherein:
3rd searching modul 412, specific has received what is carried in ISIS LSP messages if being compared for comparison module 408
One MAC Address, is not present in the ISIS LSP messages received, it is determined that go out the ISIS LSP reports received in this equipment
After the VXLAN carried in text is associated with the tunnel, according to the VXLAN, the MAC Address and the tunnel, in MAC Address forwarding
Corresponding distal end MAC Address list item is found in table;
3rd processing module 413, for deleting the distal end MAC Address list item that the 3rd searching modul 412 is found.
To sum up, the application above example can reach following technique effect:
In the technical scheme of the embodiment of the present application, there is local mac address list item in any VTEP in mac address forwarding table
Change, it is such as newly-increased or when reducing, can be by associated with the VXLAN in the newly-increased or local mac address list item of reduction
Tunnel sends sync message to opposite end VTEP, to notify opposite end VTEP to update the mac address forwarding table on the VTEP of the opposite end, realizes
The active synchronization of the mac address information in local mac address list item between tunnel two ends VTEP, compensate for prior art
Passivity that the self study mode of datum plane is present, not in time with restrain slow shortcoming;It is same due to having carried out MAC Address in time
Step, accelerates network convergence speed, reduces the quantity of the unknown unicast data message of destination address, reduces network bandwidth money
The waste in source.Moreover, there is one for preserving the sync message received and dispatched on all tunnels on the VTEP on a VTEP
Database, saves memory source.
When realizing sync message using ISIS LSP messages, have on each VTEP on a LSDB, VTEP
VXLAN is corresponded with virtual system;Any VTEP is having found that local mac address list item is changed, such as newly-increased or reduction
When, the ISIS for carrying virtual system ID corresponding with the VXLAN in the newly-increased or local mac address list item of reduction can be utilized
LSP messages, by the tunnel associated with the VXLAN in the newly-increased or local mac address list item of reduction, are synchronized to the tunnel
Opposite end VTEP, and the ISIS LSP messages are saved in the LSDB in this equipment;Any VTEP receives what opposite end VTEP was sent
, can be according to the virtual system preserved in the LSDB in the ISIS LSP messages received and this equipment after ISIS LSP messages
System ID has received ISIS LSP messages with the virtual system ID identicals carried in the ISIS LSP messages received, judges this pair
Local mac address list item is increased or reduces newly in the VTEP of end, it is determined that go out in this equipment, the local mac of the newly-increased or reduction
After VXLAN in address list item is associated with the tunnel, originally set according to the local mac address entry updating of the newly-increased or reduction
Standby upper mac address forwarding table, i.e. corresponding distal end MAC is added, deleted or edited in the mac address forwarding table of this equipment
Address list item, realizes the active synchronization of the mac address information in the local mac address list item between the VTEP of tunnel two ends, more
Mended passivity that the self study mode of the datum plane of prior art is present, not in time with restrain slow shortcoming;Due to timely
Carry out MAC Address synchronous, accelerated network convergence speed, reduce the quantity of the unknown unicast data message of destination address,
Reduce the waste of network bandwidth resources.
It is additionally, since VXLAN to correspond with virtual system, therefore, carries a certain virtual system ID ISIS LSP reports
A VXLAN (VXLAN i.e. corresponding with virtual system ID) and its corresponding MAC Address, different VXLAN pairs are only encapsulated in text
The MAC Address answered is encapsulated in the ISIS LSP messages for carrying different virtual system ID.Due between different virtual systems
ISIS LSP messages are separate, so, the ISIS LSP of all virtual systems can be stored in same LSDB, one
The corresponding MAC Address of individual VXLAN only exists a information in LSDB.The ISIS LSP messages sent by any TUNNEL,
All obtained from same LSDB, in the absence of the situation of ISIS LSP message redundancies, associated with same VXLAN is multiple
The ISIS LSP messages sent on TUNNEL are the same.Using this preserving type, it is interior that whole ISIS LSP messages take
Depositing total resources will not increase with the increase of the TUNNEL quantity associated with VXLAN, can save VTEP internal memory money
Source.
The preferred embodiment of the application is the foregoing is only, not to limit the application, all essences in the application
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.
Claims (13)
1. the MAC address learning method in a kind of virtual expansible LAN VXLAN networks, applied to virtual
Expansible LAN tunneling termination VTEP, it is characterised in that methods described includes:
Receive after the data message from local network, the study of source MAC is carried out, by the local mac address learnt
List item is added in mac address forwarding table;
Receive after the data message from tunnel, without the study of source MAC;
When there is the change of local mac address list item in mac address forwarding table, pass through the local mac address list item with change
In associated each tunnel of VXLAN send sync message, the sync message is saved in the database in this equipment,
So that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message;Wherein, a VTEP has one
Individual database.
2. according to the method described in claim 1, it is characterised in that in the local mac address list item by with change
Each associated VXLAN tunnel sends sync message, and the sync message is saved in the method in the database of this equipment
Including:
When having increased local mac address list item in mac address forwarding table newly, it is determined that in the local mac address list item newly-increased with this
The corresponding virtual system ID of VXLAN;Wherein, VXLAN is corresponded with virtual system;
Judge in the LSDB in this equipment to have sent ISIS LSP messages with the presence or absence of meeting the specific of following condition;Wherein, should
Condition includes:The virtual system ID of carrying is identical with the virtual system ID determined, further, it is possible to which it is newly-increased local to add this
The ISIS LSP messages of transmission of MAC Address and its corresponding VXLAN in MAC Address list item;
If judge to be not present it is described it is specific sent ISIS LSP messages, generation carries the virtual system determined
ID, the MAC Address in the newly-increased local mac address list item and its corresponding VXLAN ISIS LSP messages, by generation
ISIS LSP messages are saved in the LSDB in this equipment;For related to the VXLAN in the newly-increased local mac address list item
Each tunnel of connection, opposite end VTEP is sent to by the tunnel by the ISIS LSP messages of the generation;
If judge to exist it is described it is specific sent ISIS LSP messages, by the MAC in the newly-increased local mac address list item
Address and its corresponding VXLAN are added to described specific sent in ISIS LSP messages;For the local mac newly-increased with this
Each tunnel that VXLAN in the list item of location is associated, the tunnel is passed through by the specific ISIS LSP messages that sent after addition
It is sent to opposite end VTEP.
3. method according to claim 2, it is characterised in that in the local mac address list item by with change
Each associated VXLAN tunnel sends sync message, and the sync message is saved in the method in the database of this equipment
Also include:
When reducing local mac address list item in mac address forwarding table, it is determined that with the local mac address list item of the reduction
The corresponding virtual system ID of VXLAN;
The local mac address list item for carrying the virtual system ID and reduction determined is found in LSDB from this equipment
In MAC Address the ISIS LSP messages of transmission;
From the ISIS LSP messages of transmission found, delete MAC Address in the local mac address list item of the reduction and its
Corresponding VXLAN;
For each associated tunnel of the VXLAN in the local mac address list item with the reduction, by the transmission after deletion
ISIS LSP messages are sent to opposite end VTEP by the tunnel.
4. method according to claim 3, it is characterised in that also include:
Receive after the ISIS LSP messages that the opposite end VTEP in a tunnel is sent, judge to whether there is in the LSDB in this equipment
Meet the specific of following condition and receive ISIS LSP messages;Wherein, the condition includes:The virtual system ID of carrying connects with described
The virtual system ID carried in the ISIS LSP messages received is identical, also, the message ID and ISIS LSP received are reported
The message ID identicals of text have received ISIS LSP messages;
If judging to be not present described specific ISIS LSP messages are received, it is determined that go out described in this equipment receive
After the VXLAN that is carried in ISIS LSP messages is associated with the tunnel, taken according in the ISIS LSP messages received
The VXLAN of band and its corresponding MAC Address, search corresponding distal end MAC Address list item in mac address forwarding table;
If having found corresponding distal end MAC Address list item, the outgoing interface in the distal end MAC Address list item found is updated
For the tunnel;
If not finding corresponding distal end MAC Address list item, distal end MAC Address list item is added in mac address forwarding table,
Wherein, the distal end MAC Address list item of addition includes:The VXLAN that is carried in the ISIS LSP messages received and its right
The MAC Address answered.
5. method according to claim 4, it is characterised in that whether there is the spy in the LSDB on this equipment is judged
It is fixed received ISIS LSP messages after, in addition to:
If judge to exist it is described it is specific received ISIS LSP messages, the relatively more described ISIS LSP messages received and institute
State and specific received ISIS LSP messages;
If comparing the MAC Address carried in the ISIS LSP messages received, specific ISIS has been received described
It is not present in LSP messages, it is determined that go out the VXLAN and the tunnel carried in this equipment in the ISIS LSP messages received
After road is associated, according to the VXLAN and the MAC Address, corresponding distal end mac address table is searched in mac address forwarding table
;
If having found corresponding distal end MAC Address list item, the outgoing interface in the distal end MAC Address list item found is updated
For the tunnel;If not finding corresponding distal end MAC Address list item, addition includes this in mac address forwarding table
VXLAN and the MAC Address distal end MAC Address list item;
The specific ISIS LSP messages that received are replaced with into the ISIS LSP messages received.
6. method according to claim 5, it is characterised in that the ISIS LSP messages received described in relatively with it is described
It is specific received ISIS LSP messages after, in addition to:
If compare it is described it is specific received the MAC Address carried in ISIS LSP messages, in the ISIS received
It is not present in LSP messages, it is determined that go out the VXLAN and the tunnel carried in this equipment in the ISIS LSP messages received
After road is associated, according to the VXLAN, the MAC Address and the tunnel, corresponding distal end is found in mac address forwarding table
MAC Address list item is simultaneously deleted.
7. method according to any one of claim 1 to 6, it is characterised in that ISIS LSP messages are by least one class
Type length value TLV fields are constituted, and the TLV fields are used to carry a VXLAN and its at least one corresponding MAC Address.
8. the MAC address learning device in a kind of virtual expansible LAN VXLAN networks, applied to virtual
In expansible LAN tunneling termination VTEP, it is characterised in that described device includes:
Receiving module, for receiving the data message from local network and the data message from tunnel;
Preserving module, for preserving mac address forwarding table and database;Wherein, a VTEP has a database;
Source MAC study module, for after the receiving module receives the data message from local network, carrying out source
The study of MAC Address, the local mac address list item learnt is added in mac address forwarding table;It is additionally operable to receive described
Module is received after the data message from tunnel, without the study of source MAC;
Sending module, for when there is the change of local mac address list item in mac address forwarding table, passing through the sheet with change
Each tunnel that VXLAN in ground MAC Address list item is associated sends sync message, and the sync message is saved in into this equipment
On database in so that opposite end VTEP updates the mac address forwarding table on the VTEP of the opposite end according to the sync message.
9. device according to claim 8, it is characterised in that the sending module includes:
Virtual system determining unit, for when having increased local mac address list item in mac address forwarding table newly, it is determined that new with this
The corresponding virtual system ID of VXLAN in the local mac address list item of increasing;Wherein, VXLAN is corresponded with virtual system;
Message judging unit, for judging in the LSDB in this equipment to have sent ISIS with the presence or absence of meeting the specific of following condition
LSP messages;Wherein, the condition includes:The virtual system ID of carrying is identical with the virtual system ID determined, further, it is possible to add
Plus MAC Address and its corresponding VXLAN ISIS LSP messages of transmission in the newly-increased local mac address list item;
Message generation unit, if judging that the specific ISIS LSP that sent, which are not present, to be reported for the message judging unit
Text, then generation carries virtual system ID, newly-increased local mac address list item that the virtual system determining unit is determined
In MAC Address and its corresponding VXLAN ISIS LSP messages, the ISIS LSP messages of generation are saved in this equipment
In LSDB;
Message adding device, if for the message judging unit judge to exist it is described it is specific sent ISIS LSP messages,
Then the MAC Address and its corresponding VXLAN in the newly-increased local mac address list item are added to and described specific sent ISIS
In LSP messages;
Packet sending unit, for for each tunnel associated with the VXLAN in the newly-increased local mac address list item
Road, opposite end VTEP is sent to by the tunnel by the ISIS LSP messages that the message generation unit is generated;Be additionally operable to be directed to
Each tunnel that VXLAN in the newly-increased local mac address list item is associated, after the message adding device is added
The specific ISIS LSP messages that sent are sent to opposite end VTEP by the tunnel.
10. device according to claim 9, it is characterised in that the sending module also includes:Message searching unit and report
Text deletes unit, wherein:
The virtual system determining unit, is additionally operable to when reducing local mac address list item in mac address forwarding table, it is determined that
The virtual system ID corresponding with the VXLAN in the local mac address list item of the reduction;
The message searching unit, for determining the local mac address table with the reduction in the virtual system determining unit
After the corresponding virtual system ID of VXLAN in, found in the LSDB from this equipment and carry the void determined
Intend the ISIS LSP messages of transmission of the MAC Address in the local mac address list item of system identifier and the reduction;
The message deletes unit, in the ISIS LSP messages of transmission that are found from the message searching unit, deleting
MAC Address and its corresponding VXLAN in the local mac address list item of the reduction;
The packet sending unit, is additionally operable to for associated with the VXLAN in the local mac address list item of the reduction each
Individual tunnel, deletes the ISIS LSP messages of transmission after element deletion by the message and is sent to opposite end VTEP by the tunnel.
11. device according to claim 10, it is characterised in that also include:Judge module, the first searching modul and first
Processing module, wherein:
The receiving module, is additionally operable to receive the ISIS LSP messages that the opposite end VTEP in tunnel is sent;
The judge module, for received in the receiving module ISIS LSP messages that the opposite end VTEP in a tunnel sends it
Afterwards, judge in the LSDB in this equipment to have received ISIS LSP messages with the presence or absence of meeting the specific of following condition;Wherein, this
Part includes:The virtual system ID of carrying is identical with the virtual system ID carried in the ISIS LSP messages received, also,
Message ID and the ISIS LSP messages received message ID identicals have received ISIS LSP messages;
First searching modul, if judging that the specific ISIS LSP that received, which are not present, to be reported for the judge module
Text, it is determined that go out in this equipment the VXLAN carried in the ISIS LSP messages received it is associated with the tunnel after,
According to the VXLAN and its corresponding MAC Address carried in the ISIS LSP messages received, in mac address forwarding table
Search corresponding distal end MAC Address list item;
The first processing module, will if having found corresponding distal end MAC Address list item for first searching modul
Outgoing interface in the distal end MAC Address list item found is updated to the tunnel;If being additionally operable to first searching modul not look into
Corresponding distal end MAC Address list item is found, then distal end MAC Address list item is added in mac address forwarding table, wherein, addition
Distal end MAC Address list item includes:The VXLAN and its corresponding MAC Address carried in the ISIS LSP messages received.
12. device according to claim 11, it is characterised in that also include:
Comparison module, if for the judge module judge to exist it is described it is specific received ISIS LSP messages, compare
The ISIS LSP messages received specific have received ISIS LSP messages with described;
Second searching modul, if comparing carried in the ISIS LSP messages received one for the comparison module
MAC Address, be not present in ISIS LSP messages in specific received, it is determined that goes out described in this equipment receive
After the VXLAN that is carried in ISIS LSP messages is associated with the tunnel, according to the VXLAN and the MAC Address, in MAC Address
Corresponding distal end MAC Address list item is searched in forward table;
Second processing module, if having found corresponding distal end MAC Address list item for second searching modul, will be searched
To distal end MAC Address list item in outgoing interface be updated to the tunnel;If being additionally operable to second searching modul not find
Corresponding distal end MAC Address list item, then addition includes the VXLAN and the distal end of the MAC Address in mac address forwarding table
MAC Address list item;
Replacement module, for the specific ISIS LSP messages that received to be replaced with into the ISIS LSP messages received.
13. device according to claim 12, it is characterised in that also include:
3rd searching modul, described specific carried in ISIS LSP messages one has been received if being compared for the comparison module
MAC Address, is not present in the ISIS LSP messages received, it is determined that go out the ISIS received in this equipment
After the VXLAN carried in LSP messages is associated with the tunnel, according to the VXLAN, the MAC Address and the tunnel, in MAC
Corresponding distal end MAC Address list item is found in the forward table of location;
3rd processing module, for deleting the distal end MAC Address list item that the 3rd searching modul is found.
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 CN104243630A (en) | 2014-12-24 |
CN104243630B true 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) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243318B (en) | 2014-09-29 | 2018-10-09 | 新华三技术有限公司 | MAC address learning method and device in VXLAN networks |
WO2016175873A1 (en) | 2015-04-29 | 2016-11-03 | 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 |
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 |
CN108259347B (en) | 2017-05-19 | 2020-01-03 | 新华三技术有限公司 | Message transmission method and device |
CN108512949B (en) * | 2018-03-23 | 2021-05-07 | 烽火通信科技股份有限公司 | MAC address synchronization method and system |
CN108540386B (en) * | 2018-04-19 | 2021-07-23 | 新华三技术有限公司 | Method and device for preventing service flow interruption |
CN108965131A (en) * | 2018-07-27 | 2018-12-07 | 新华三技术有限公司 | A kind of method and device of message forwarding |
CN109412925B (en) * | 2018-09-30 | 2021-06-18 | 锐捷网络股份有限公司 | Forwarding table item updating method based on VTEP and VTEP |
CN109617817B (en) * | 2019-01-22 | 2021-06-04 | 新华三技术有限公司 | Method and device for generating forwarding table entry of MLAG networking |
CN111107182B (en) * | 2019-12-31 | 2022-09-20 | 瑞斯康达科技发展股份有限公司 | MAC address synchronization method, device, system, equipment and medium |
CN111327717B (en) * | 2020-01-20 | 2022-04-01 | 新华三大数据技术有限公司 | MAC address learning method and device |
CN111736958B (en) * | 2020-06-29 | 2023-06-30 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer equipment and storage medium |
CN113286011B (en) * | 2021-04-27 | 2023-08-22 | 锐捷网络股份有限公司 | IP address allocation method and device based on VXLAN |
CN113595849B (en) * | 2021-08-17 | 2022-05-20 | 中国联合网络通信集团有限公司 | Message forwarding method, sending end VTEP and gateway VTEP |
Citations (5)
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 |
-
2014
- 2014-09-29 CN CN201410512381.1A patent/CN104243630B/en active Active
Patent Citations (5)
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)
Title |
---|
NVo3 Control Plane Protocol Using IS-IS,draft-xu-nvo3-isis-cp-00;X. Xu等;《IETF》;20121015;正文第3.1-3.2节,3.5节 * |
Also Published As
Publication number | Publication date |
---|---|
CN104243630A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104243630B (en) | MAC address learning method and device in VXLAN networks | |
CN104243318B (en) | MAC address learning method and device in VXLAN networks | |
CN107733793B (en) | Forwarding table item maintenance method and device | |
CN105706400B (en) | The method and apparatus of grouping are forwarded on network | |
CN105450437B (en) | SID distribution method and SR node | |
CN105471744B (en) | A kind of virtual machine migration method and device | |
US10263808B2 (en) | Deployment of virtual extensible local area network | |
CN109660442B (en) | Method and device for multicast replication in Overlay network | |
CN104378296A (en) | Message forwarding method and device | |
CN106878288B (en) | message forwarding method and device | |
CN106130819B (en) | The detection method and device of VTEP exception | |
CN102333028A (en) | Method and communication equipment for sending messages by using layered bi-layer virtual private network | |
CN112511444A (en) | Multicast traffic transmission method, device, communication node and storage medium | |
CN101764751A (en) | Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN | |
US20140301403A1 (en) | Node device and method for path switching control in a ring network | |
CN105634901B (en) | Mac address information synchronous method and device based on CAS VXLAN | |
CN102711234A (en) | Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device | |
CN108418759B (en) | MAC address table item processing method and device | |
CN1964360A (en) | A method and device for MAC frame forwarding | |
CN101778035B (en) | Virtual private LAN service communication method and device | |
CN106453120A (en) | Dynamic clustering method and dynamic clustering system | |
CN104125128A (en) | Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge | |
CN108540386B (en) | Method and device for preventing service flow interruption | |
CN102045233B (en) | Method and device for controlling message forwarding in network communication | |
CN105634952A (en) | Fast notification method and apparatus for LSP message |
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 |