CN109412925B - Forwarding table item updating method based on VTEP and VTEP - Google Patents

Forwarding table item updating method based on VTEP and VTEP Download PDF

Info

Publication number
CN109412925B
CN109412925B CN201811156568.7A CN201811156568A CN109412925B CN 109412925 B CN109412925 B CN 109412925B CN 201811156568 A CN201811156568 A CN 201811156568A CN 109412925 B CN109412925 B CN 109412925B
Authority
CN
China
Prior art keywords
module
forwarding table
carrying
deletion notification
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811156568.7A
Other languages
Chinese (zh)
Other versions
CN109412925A (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201811156568.7A priority Critical patent/CN109412925B/en
Publication of CN109412925A publication Critical patent/CN109412925A/en
Application granted granted Critical
Publication of CN109412925B publication Critical patent/CN109412925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes

Abstract

The invention discloses a forwarding table item updating method based on VTEP and VTEP, the method comprises: after receiving the first synchronization notification sent by the Bridge module, the SS MAC module updates the stored first forwarding table entry according to the first forwarding table entry which carries the remote identifier and is included in the first synchronization notification, and sends a first deletion notification to the Bridge module; after receiving the first deletion notification, the Bridge module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the VXLAN PI module; after receiving the first deletion notification, the VXLAN PI module determines whether to delete the first forwarding table item carrying the local identifier and sends the first deletion notification to the BGP module; after receiving the first deletion notification, the BGP module determines whether to delete the first forwarding entry carrying the local identifier, and sends a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier. The scheme can ensure that the forwarding table entries of each module in the VTEP can be updated in time.

Description

Forwarding table item updating method based on VTEP and VTEP
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a Virtual eXtensible Local Area Network Tunnel End Point (VTEP) -based forwarding table item updating method and a VTEP.
Background
A Virtual eXtensible Local Area Network (VXLAN) is an Overlay Network technology established on an Internet Protocol (IP) Network, and is encapsulated by using a Media Access Control (MAC) in User Datagram Protocol (UDP) method, that is, a common ethernet packet is encapsulated in a UDP packet, and the common ethernet packet is transmitted as UDP data.
Fig. 1 shows a topology diagram of a VXLAN network, which includes terminals (e.g., servers, etc.), local network devices within the domain (e.g., network devices inside Site (Site) a), VTEP, and IP networks. The VTEP is an edge device of the VXLAN network, is connected with the physical network, is distributed with an IP address of the physical network, and is used for encapsulating and decapsulating VXLAN messages.
The demand of the current data center for server virtualization is increasing day by day, and one server can support a plurality of mutually independent virtual machines through a server virtualization technology. After the server is virtualized, the virtual machine may need to be migrated to another VTEP due to hardware resources or machine room relocation and transfer.
In order to ensure that the service is not interrupted in the migration process of the virtual machine, the MAC address and the IP address of the virtual machine are required to be unchanged before and after the migration. And updating a forwarding table item formed by the MAC address and the IP address stored on the accessed VTEP equipment before and after the virtual machine migration. Generally, a VTEP includes a Switch Service (SS) MAC module, a Bridge module, a VXLN Product Independence (PI) module, and a Border Gateway Protocol (BGP) module, where each module stores a corresponding forwarding entry, and updating of the forwarding entry brought by virtual machine migration involves these modules, and in the virtual machine migration process, some modules in the VTEP cannot update the forwarding entry in time due to network anomaly or congestion, and further causes problems such as packet loss and Service forwarding anomaly.
Disclosure of Invention
The embodiment of the invention provides a forwarding table item updating method based on a virtual machine context protocol (VTEP) and the VTEP, which are used for solving the problems that certain modules in the VTEP cannot update the forwarding table item in time due to network abnormity or congestion and the like in the migration process of a virtual machine, so that packet loss, service forwarding abnormity and the like occur in the prior art.
According to the embodiment of the invention, a forwarding table item updating method based on VTEP is provided, which is applied to the VTEP, wherein the VTEP comprises a switching service SS media access control MAC module, a Bridge module, a virtual extensible local area network VXLAN product independence PI module and a border gateway protocol BGP module, and the method comprises the following steps:
after receiving a first synchronization notification sent by the Bridge module, the SS MAC module updates the stored first forwarding table entry according to a first forwarding table entry carrying a remote identifier included in the first synchronization notification, and sends a first deletion notification to the Bridge module, where the first deletion notification includes the first forwarding table entry carrying a local identifier;
after receiving the first deletion notification, the Bridge module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the VXLAN PI module;
after receiving the first deletion notification, the VXLAN PI module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the BGP module;
and after receiving the first deletion notification, the BGP module determines whether to delete the first forwarding entry carrying the local identifier, and sends a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier.
Specifically, the updating, by the SS MAC module, the stored first forwarding table entry according to the first forwarding table entry carrying the remote identifier included in the first synchronization notification specifically includes:
the SS MAC module determines whether to store the first forwarding table item carrying the local identifier, and if the first forwarding table item carrying the local identifier is determined to be stored, the local identifier is replaced by the remote identifier;
the determining, by the Bridge module, the VXLAN PI module, or the BGP module, whether to delete the first forwarding entry carrying the local identifier specifically includes:
the Bridge module, the VXLAN PI module or the BGP module determines whether to store the first forwarding table entry carrying the local identifier, and deletes the first forwarding table entry carrying the local identifier if determining to store the first forwarding table entry carrying the local identifier.
Optionally, the method further includes:
after receiving a third deletion notification sent by the VTEP at the opposite end, the BGP module determines whether to delete the second forwarding table entry carrying the remote identifier according to a second forwarding table entry carrying the remote identifier included in the third deletion notification, and sends the third deletion notification to the VXLAN PI module;
after receiving the third deletion notification, the VXLAN PI module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the Bridge module;
after receiving the third deletion notification, the Bridge module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the SS MAC module;
and after receiving the third deletion notification, the SS MAC module determines whether to delete the second forwarding table entry carrying the remote identifier.
Specifically, the determining, by the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module, whether to delete the second forwarding entry carrying the remote identifier includes:
the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module determines whether to store the second forwarding entry carrying the remote identifier, and deletes the second forwarding entry carrying the remote identifier if it is determined to store the second forwarding entry carrying the remote identifier.
According to the embodiment of the present invention, there is also provided a forwarding table update method based on a VTEP, which is applied to the VTEP, where the VTEP includes a BGP module, a VXLAN PI module, a Bridge module, and an SS MAC module, and the method includes:
after receiving a third deletion notification sent by an opposite-end VTEP, the BGP module determines whether to delete a second forwarding table item carrying a far-end identifier according to a second forwarding table item carrying the far-end identifier and included in the third deletion notification, and sends the third deletion notification to the VXLAN PI module;
after receiving the third deletion notification, the VXLAN PI module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the Bridge module;
after receiving the third deletion notification, the Bridge module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the SS MAC module;
and after receiving the third deletion notification, the SS MAC module determines whether to delete the second forwarding table entry carrying the remote identifier.
Specifically, the determining, by the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module, whether to delete the second forwarding entry carrying the remote identifier includes:
the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module determines whether to store the second forwarding entry carrying the remote identifier, and deletes the second forwarding entry carrying the remote identifier if it is determined to store the second forwarding entry carrying the remote identifier.
According to an embodiment of the present invention, there is also provided a VTEP, which includes an SS MAC module, a Bridge module, a VXLAN PI module, and a BGP module, wherein:
the SS MAC module is configured to update the stored first forwarding table entry according to a first forwarding table entry that carries a remote identifier and is included in the first synchronization notification after receiving the first synchronization notification sent by the Bridge module, and send a first deletion notification to the Bridge module, where the first deletion notification includes the first forwarding table entry that carries a local identifier;
the Bridge module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the VXLAN PI module;
the VXLAN PI module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the BGP module;
and the BGP module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier.
Specifically, the SS MAC module is configured to update the stored first forwarding table entry according to the first forwarding table entry that carries the remote identifier and is included in the first synchronization notification, and specifically is configured to:
determining whether to store the first forwarding table entry carrying a local identifier, and replacing the local identifier with the remote identifier if determining to store the first forwarding table entry carrying the local identifier;
the Bridge module, the VXLAN PI module, or the BGP module is configured to determine whether to delete the first forwarding entry carrying the local identifier, and specifically configured to:
and determining whether to store the first forwarding table entry carrying the local identifier, and if so, deleting the first forwarding table entry carrying the local identifier.
Optionally, the BGP module is further configured to, after receiving a third deletion notification sent by the VTEP at the opposite end, determine whether to delete the second forwarding entry carrying the remote identifier according to a second forwarding entry carrying the remote identifier and included in the third deletion notification, and send the third deletion notification to the VXLAN PI module;
the VXLAN PI module is further configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module;
the Bridge module is further configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module;
the SS MAC module is further configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification.
Specifically, the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module is configured to determine whether to delete the second forwarding entry carrying the remote identifier, and specifically configured to:
and determining whether to store the second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if determining to store the second forwarding table item carrying the remote identifier.
According to an embodiment of the present invention, there is also provided a VTEP, including a BGP module, a VXLAN PI module, a Bridge module, and an SS MAC module, wherein:
the BGP module is configured to determine, after receiving a third deletion notification sent by an opposite-end VTEP, whether to delete the second forwarding table entry carrying the remote identifier according to a second forwarding table entry carrying the remote identifier included in the third deletion notification, and send the third deletion notification to the VXLAN PI module;
the VXLAN PI module is configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module;
the Bridge module is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module;
and the SS MAC module is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification.
Specifically, the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module is configured to determine whether to delete the second forwarding entry carrying the remote identifier, and specifically configured to:
and determining whether to store the second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if determining to store the second forwarding table item carrying the remote identifier.
The invention has the following beneficial effects:
after receiving a first synchronization notification sent by a Bridge module through an SS MAC module, updating a stored first forwarding table entry according to the first forwarding table entry carrying a remote identifier included in the first synchronization notification, and sending a first deletion notification to the Bridge module, wherein the first deletion notification includes the first forwarding table entry carrying a local identifier; after receiving the first deletion notification, the Bridge module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the VXLAN PI module; after receiving the first deletion notification, the VXLAN PI module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the BGP module; and after receiving the first deletion notification, the BGP module determines whether to delete the first forwarding entry carrying the local identifier, and sends a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier. In the scheme, after receiving a first synchronization notification sent by a Bridge module, an SSMC module not only updates a stored first forwarding table entry according to a first forwarding table entry carrying a remote identifier included in the first synchronization notification, but also sends a first deletion notification to the Bridge module to notify the Bridge module to delete the first forwarding table entry of a local identifier, the Bridge module not only determines whether to delete the first forwarding table entry carrying the local identifier, but also transparently transmits the first deletion notification, and the VXLAN PI module and the BGP module also execute the same operation as the Bridge module, so that forwarding table entries of each module in the VTEP can be ensured to be updated in time, and the problems of packet loss, abnormal service forwarding and the like are avoided.
Drawings
Fig. 1 is a schematic diagram of forwarding entries stored by each module in VTEP before and after migration of a virtual machine;
fig. 2 is a flowchart of a forwarding table entry updating method based on VTEP in the embodiment of the present invention;
fig. 3 is a flowchart of another forwarding entry updating method based on VTEP in the embodiment of the present invention;
FIG. 4 is a schematic diagram of a VTEP corresponding to FIG. 2 in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a VTEP corresponding to fig. 3 in an embodiment of the present invention.
Detailed Description
The inventor has conducted intensive research aiming at the problems that in the prior art, in the virtual machine migration process, some modules in the VTEP cannot update forwarding table entries in time due to network abnormality or congestion and the like, and further packet loss and service forwarding abnormality occur.
Assuming that the virtual machine is connected to VTEP2, the SS MAC module in VTEP2 learns the forwarding table entry of the virtual machine and adds a local identifier to the forwarding table entry, which may be, but is not limited to, denoted by L; then the virtual machine migrates to VTEP1, the SS MAC module in VTEP1 also learns the forwarding table entry of the virtual machine, the SS MAC module in VTEP1 and the SS MAC module in VTEP2 send forwarding table entries carrying L identifiers to their respective Bridge modules, the Bridge modules in VTEP1 and VTEP2 continue to pass through downwards, the BGP modules on VTEP1 and VTPE2 send forwarding table entries to the opposite end, only the sent forwarding table entries carry remote identifiers, which may be but not limited to R identifiers, after the BGP module in VTEP2 receives the forwarding table entries carrying R, the forwarding table entries continue to pass through to the VXLAN PI module, as shown in fig. 1, it indicates that the forwarding table entries carried by the respective modules at time T1 ep1 and VTEP2 have not been stopped, the passing through of the respective modules does not stop until the forwarding table entry of the SS MAC module in VTEP1 stops passing through the ep2, as shown in fig. 1, the forwarding table entry of the VTEP 46module stops passing through the same as the ep 398985. And each module will later receive a forwarding entry that will overwrite the previous forwarding entry. As shown in fig. 1, it is shown that, at time T2, forwarding table entries carried by forwarding table entries stored in respective modules on VTEP1 and VTEP2 are inconsistent, forwarding table entries carried by forwarding table entries of a BGP module and a VXLAN PI module are L, forwarding table entries carried by forwarding table entries of a Bridge module and an SS MAC module are R, since forwarding table entries of a remote identity are not allowed to age, a forwarding table entry serving as a source is located in an opposite VTEP2, and a VTEP2 connected to a virtual machine has been migrated to a VTEP1, and a forwarding table entry carrying L is not located in VTEP2, and there is no aging on VTEP2, which results in that forwarding table entries carrying R in VTEP1 are not deleted and remain.
The inventor of the present invention has found through intensive research that the above phenomenon is caused by that the forwarding table entry on the VTEP1 is not updated in time, and therefore, the embodiment of the present invention provides a VTEP-based forwarding table entry updating method, which is applied to the VTEP1 and VTEP2, and a flow of the method is as shown in fig. 2, and the method executes the following steps:
s21: and after receiving the first synchronization notification sent by the Bridge module, the SS MAC module updates the stored first forwarding table entry according to the first forwarding table entry which carries the remote identifier and is included in the first synchronization notification, and sends a first deletion notification to the Bridge module, wherein the first deletion notification comprises the first forwarding table entry which carries the local identifier.
As described in fig. 1, it can be seen that after the SS MAC module of the local VTEP learns the forwarding table entry, the SS MAC module of the local VTEP continues to pass through to the forwarding table entries and sequentially passes through to the respective modules of the peer VTEP, and accordingly, the SS MAC module of the local VTEP also receives the forwarding table entry learned by the SS MAC module of the peer VTEP, specifically, the forwarding table entry is received by the Bridge module of the local VTEP, and is defined as a first forwarding table entry, and the first forwarding table entry can be sent in a first synchronization notification carried in the first synchronization notification, and when the SS MAC module of the local VTEP receives the first synchronization notification sent by the Bridge module, the SS MAC module of the local VTEP not only updates the stored first forwarding table entry, but also sends a first deletion notification to the Bridge module, because the received first synchronization notification includes the first forwarding table entry carrying the remote identity, therefore, the first forwarding table entry carrying the local identity learned by the SS MAC module is covered, i.e. the forwarding table entry as the source is not already present, the Bridge module may be informed to delete the first forwarding table entry carrying the local identity.
S22: and after receiving the first deletion notification, the Bridge module determines whether to delete the first forwarding table entry carrying the local identifier and sends the first deletion notification to the VXLAN PI module.
S23: and after receiving the first deletion notification, the VXLAN PI module determines whether to delete the first forwarding table entry carrying the local identifier and sends the first deletion notification to the BGP module.
S24: after receiving the first deletion notification, the BGP module determines whether to delete the first forwarding entry carrying the local identifier, and sends a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier.
In the scheme, after receiving a first synchronization notification sent by a Bridge module, an SSMC module not only updates a stored first forwarding table entry according to a first forwarding table entry carrying a remote identifier included in the first synchronization notification, but also sends a first deletion notification to the Bridge module to notify the Bridge module to delete the first forwarding table entry of a local identifier, the Bridge module not only determines whether to delete the first forwarding table entry carrying the local identifier, but also transparently transmits the first deletion notification, and the VXLAN PI module and the BGP module also execute the same operation as the Bridge module, so that forwarding table entries of each module in the VTEP can be ensured to be updated in time, and the problems of packet loss, abnormal service forwarding and the like are avoided.
Specifically, the updating, by the SS MAC module in S21, the stored first forwarding table entry according to the first forwarding table entry carrying the remote identifier included in the first synchronization notification specifically includes: and the SS MAC module determines whether to store a first forwarding table item carrying the local identifier, and replaces the local identifier with the remote identifier if determining to store the first forwarding table item carrying the local identifier.
After receiving the first synchronization notification, it may be locally searched whether to store a first forwarding entry carrying the local identifier, where the address forwarding entry carrying the local identifier is learned by the SS MAC module from the connected virtual machine. If the first forwarding table entry carrying the local identifier is determined to be saved, because the first forwarding table entry in the first synchronization notification carries the remote identifier, it is described that the previously connected virtual machine is migrated to the VTEP at the opposite end, and therefore, the first forwarding table entries carrying the local identifier do not need to be saved any more, and because the first forwarding table entries are all the same, only the local identifier needs to be replaced by the remote identifier.
Correspondingly, the determining, by the Bridge module, the VXLAN PI module, or the BGP module, whether to delete the first forwarding entry carrying the local identifier specifically includes: the Bridge module, the VXLAN PI module or the BGP module determines whether to store the first forwarding table entry carrying the local identifier, and if the first forwarding table entry carrying the local identifier is determined to be stored, the first forwarding table entry carrying the local identifier is deleted. The first deletion notification is received and comprises a first forwarding table entry carrying the local identifier, so that whether the first forwarding table entry carrying the local identifier is stored or not can be searched locally, and if the first forwarding table entry carrying the local identifier is stored, the first forwarding table entry can be directly deleted, and the existence of the forwarding table entry without the source can be ensured.
Based on the same inventive concept, an embodiment of the present invention further provides a forwarding table item updating method based on VTEP, where the method is applied to the VTEP a and the VTEP B, and a flow of the method is shown in fig. 3, and the method includes the following steps:
s31: after receiving a third deletion notification sent by the VTEP at the opposite end, the BGP module determines whether to delete the second forwarding table entry carrying the remote identity according to the second forwarding table entry carrying the remote identity included in the third deletion notification, and sends the third deletion notification to the VXLAN PI module.
S32: and after receiving the third deletion notification, the VXLAN PI module determines whether to delete the second forwarding table item carrying the remote identifier and sends the third deletion notification to the Bridge module.
S33: and after receiving the third deletion notification, the Bridge module determines whether to delete the second forwarding table item carrying the remote identifier, and sends the third deletion notification to the SS MAC module.
S34: and after receiving the third deletion notice, the SS MAC module determines whether to delete the second forwarding table item carrying the remote identifier.
In the scheme, after receiving a third deletion notification sent by the VTEP at the opposite end, the BGP module determines whether to delete the second forwarding table entry carrying the remote identifier, and also transparently transmits the third deletion notification, and the VXLAN PI module and the Bridge module also perform the same operation as the BGP module, so that the forwarding table entries of the modules in the VTEP can be ensured to be updated in time, and problems such as packet loss and abnormal service forwarding are avoided.
Specifically, the determining, by the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module, whether to delete the second forwarding entry carrying the remote identifier includes: and the BGP module, the VXLAN PI module, the Bridge module or the SS MAC module determines whether to store the second forwarding table item carrying the remote identifier, and deletes the second forwarding table item carrying the remote identifier if determining to store the second forwarding table item carrying the remote identifier. The third deletion notice including the second forwarding table entry carrying the remote identifier is received, so that whether the second forwarding table entry carrying the remote identifier is saved can be locally searched, and if the second forwarding table entry carrying the remote identifier is saved, the second forwarding table entry can be directly deleted, so that the existence of the lost forwarding table entry can be ensured.
The methods shown in fig. 2 and fig. 3 use VTEP as operations performed when actively sending and passively receiving a deletion notification, respectively, and of course, for the same VTEP, the deletion notification can be actively sent and also passively received, so that the methods shown in fig. 2 and fig. 3 can be performed simultaneously on the VTEP.
Based on the same inventive concept, the embodiment of the present invention provides a VTEP, which corresponds to the method shown in fig. 2, and the structure of the VTEP is shown in fig. 4, and the VTEP includes an SS MAC module 401, a Bridge module 402, a VXLAN PI module 403, and a BGP module 404, where:
the SS MAC module 401 is configured to, after receiving the first synchronization notification sent by the Bridge module 402, update the stored first forwarding table entry according to the first forwarding table entry that carries the remote identifier and is included in the first synchronization notification, and send a first deletion notification to the Bridge module 402, where the first deletion notification includes the first forwarding table entry that carries the local identifier;
a Bridge module 402, configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the VXLAN PI module 403;
the VXLAN PI module 403 is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the BGP module 402;
the BGP module 404 is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the far-end identifier.
In the scheme, after receiving a first synchronization notification sent by a Bridge module, an SSMC module not only updates a stored first forwarding table entry according to a first forwarding table entry carrying a remote identifier included in the first synchronization notification, but also sends a first deletion notification to the Bridge module to notify the Bridge module to delete the first forwarding table entry of a local identifier, the Bridge module not only determines whether to delete the first forwarding table entry carrying the local identifier, but also transparently transmits the first deletion notification, and the VXLAN PI module and the BGP module also execute the same operation as the Bridge module, so that forwarding table entries of each module in the VTEP can be ensured to be updated in time, and the problems of packet loss, abnormal service forwarding and the like are avoided.
Specifically, the SS MAC module 401 is configured to update the stored first forwarding table entry according to the first forwarding table entry that carries the remote identifier and is included in the first synchronization notification, and specifically configured to:
determining whether a first forwarding table item carrying a local identifier is stored, and replacing the local identifier with a remote identifier if the first forwarding table item carrying the local identifier is determined to be stored;
the Bridge module 402, the VXLAN PI module 403, or the BGP module 404 is configured to determine whether to delete the first forwarding entry carrying the local identifier, and specifically configured to:
and determining whether to store the first forwarding table entry carrying the local identifier, and deleting the first forwarding table entry carrying the local identifier if the first forwarding table entry carrying the local identifier is determined to be stored.
Optionally, the BGP module 404 is further configured to determine, after receiving a third deletion notification sent by the VTEP at the opposite end, whether to delete the second forwarding entry carrying the remote identifier according to the second forwarding entry carrying the remote identifier included in the third deletion notification, and send the third deletion notification to the VXLAN PI module;
the VXLAN PI module 403 is further configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module;
the Bridge module 402 is further configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module;
the SS MAC module 401 is further configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification.
Specifically, the BGP module 404, the VXLAN PI module 403, the Bridge module 402, or the SS MAC module 401 is configured to determine whether to delete the second forwarding entry carrying the remote identifier, and specifically configured to:
and determining whether to store the second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
Based on the same inventive concept, the embodiment of the present invention provides a VTEP, the apparatus corresponds to the method shown in fig. 3, and the apparatus has a structure shown in fig. 5, and includes a BGP module 501, a VXLAN PI module 502, a Bridge module 503, and an SS MAC module 504, where:
a BGP module 501, configured to determine whether to delete the second forwarding table entry carrying the remote identifier according to the second forwarding table entry carrying the remote identifier included in the third deletion notification after receiving the third deletion notification sent by the VTEP at the opposite end, and send the third deletion notification to the VXLAN PI module 502;
the VXLAN PI module 502 is configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module 503;
the Bridge module 503 is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module 504;
the SS MAC module 504 is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification.
In the scheme, after receiving a third deletion notification sent by an opposite-end VTEP, a BGP module determines whether to delete a second forwarding table item carrying a remote-end identifier, and also transparently transmits the second deletion notification, and the VXLAN PI module and the Bridge module execute the same operation as the BGP module, so that the forwarding table items of each module in the VTEP can be ensured to be updated in time, and the problems of packet loss, abnormal service forwarding and the like are avoided.
Specifically, the BGP module 501, the VXLAN PI module 502, the Bridge module 503, or the SS MAC module 504 are configured to determine whether to delete the second forwarding entry carrying the remote identifier, and specifically configured to:
and determining whether to store the second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A forwarding table item updating method based on a virtual extensible local area network tunnel terminal (VTEP) is applied to the VTEP, and the VTEP comprises a switching service SS Media Access Control (MAC) module, a Bridge module, a virtual extensible local area network VXLAN product independence PI module and a Border Gateway Protocol (BGP) module, and is characterized by comprising the following steps:
after receiving the first synchronization notification sent by the Bridge module, the SS MAC module updates and saves a first forwarding table entry carrying a local identifier according to a first forwarding table entry carrying a remote identifier included in the first synchronization notification, and sends a first deletion notification to the Bridge module, where the first deletion notification includes the first forwarding table entry carrying the local identifier;
after receiving the first deletion notification, the Bridge module determines whether to delete the first forwarding table entry carrying the local identifier, and sends the first deletion notification to the VXLAN PI module;
after receiving the first deletion notification, the VXLAN PI module determines whether to delete a first forwarding table entry carrying the local identifier, and sends the first deletion notification to the BGP module;
and after receiving the first deletion notification, the BGP module determines whether to delete the first forwarding table entry carrying the local identifier, and sends a second deletion notification to an opposite-end VTEP, wherein the second deletion notification comprises the first forwarding table entry carrying the far-end identifier.
2. The method according to claim 1, wherein the SS MAC module updates and saves the first forwarding table entry carrying the local identifier according to the first forwarding table entry carrying the remote identifier included in the first synchronization notification, specifically including:
the SS MAC module determines whether to store a first forwarding table item carrying a local identifier, and if the first forwarding table item carrying the local identifier is determined to be stored, the local identifier is replaced by the remote identifier;
the determining, by the Bridge module, the VXLAN PI module, or the BGP module, whether to delete the first forwarding entry carrying the local identifier specifically includes:
and the Bridge module, the VXLAN PI module or the BGP module determines whether to store a first forwarding table item carrying the local identifier, and deletes the first forwarding table item carrying the local identifier if the first forwarding table item carrying the local identifier is determined to be stored.
3. The method of claim 1 or 2, further comprising:
after receiving a third deletion notification sent by the VTEP at the opposite end, the BGP module determines whether to delete a second forwarding entry carrying the remote identity according to a second forwarding entry carrying the remote identity included in the third deletion notification, and sends the third deletion notification to the VXLAN PI module;
after receiving the third deletion notification, the VXLAN PI module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the Bridge module;
after receiving the third deletion notification, the Bridge module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the SS MAC module;
and after receiving the third deletion notification, the SS MAC module determines whether to delete the second forwarding table entry carrying the remote identifier.
4. The method of claim 3, wherein the determining, by the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module, whether to delete the second forwarding entry carrying the remote identity comprises:
and the BGP module, the VXLAN PI module, the Bridge module or the SS MAC module determines whether to store a second forwarding table item carrying a remote identifier, and deletes the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
5. A forwarding table item updating method based on VTEP is applied to the VTEP, the VTEP comprises a border gateway protocol BGP module, a virtual extensible local area network VXLAN product independence PI module, a Bridge module and a switching service SS media access control MAC module, and the method is characterized by comprising the following steps:
after receiving a third deletion notification sent by an opposite-end VTEP, the BGP module determines whether to delete a second forwarding table item carrying a far-end identifier according to a second forwarding table item carrying the far-end identifier and included in the third deletion notification, and sends the third deletion notification to the VXLAN PI module;
after receiving the third deletion notification, the VXLAN PI module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the Bridge module;
after receiving the third deletion notification, the Bridge module determines whether to delete the second forwarding table entry carrying the remote identifier, and sends the third deletion notification to the SS MAC module;
and after receiving the third deletion notification, the SS MAC module determines whether to delete the second forwarding table entry carrying the remote identifier.
6. The method of claim 5, wherein the determining, by the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module, whether to delete the second forwarding entry carrying the remote identity comprises:
and the BGP module, the VXLAN PI module, the Bridge module or the SS MAC module determines whether to store a second forwarding table item carrying a remote identifier, and deletes the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
7. A VTEP comprising a switching service SS media access control, MAC, module, a Bridge module, a virtual extensible local area network, VXLAN, product independent PI, module, and a border gateway protocol, BGP, module, wherein:
the SS MAC module is configured to update and store a first forwarding table entry carrying a local identifier according to a first forwarding table entry carrying a remote identifier and included in the first synchronization notification after receiving the first synchronization notification sent by the Bridge module, and send a first deletion notification to the Bridge module, where the first deletion notification includes the first forwarding table entry carrying the local identifier;
the Bridge module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the VXLAN PI module;
the VXLAN PI module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send the first deletion notification to the BGP module;
and the BGP module is configured to determine whether to delete the first forwarding entry carrying the local identifier after receiving the first deletion notification, and send a second deletion notification to the VTEP at the opposite end, where the second deletion notification includes the first forwarding entry carrying the remote identifier.
8. The VTEP of claim 7, wherein the SS MAC module is configured to update and store the first forwarding table entry carrying the local identifier according to the first forwarding table entry carrying the remote identifier included in the first synchronization notification, and is specifically configured to:
determining whether a first forwarding table item carrying a local identifier is stored, and replacing the local identifier with the remote identifier if the first forwarding table item carrying the local identifier is determined to be stored;
the Bridge module, the VXLAN PI module, or the BGP module is configured to determine whether to delete the first forwarding entry carrying the local identifier, and specifically configured to:
and determining whether to store the first forwarding table entry carrying the local identifier, and deleting the first forwarding table entry carrying the local identifier if the first forwarding table entry carrying the local identifier is determined to be stored.
9. The VTEP of claim 7 or 8, wherein the BGP module is further configured to, after receiving a third deletion notification sent by the peer VTEP, determine whether to delete the second forwarding entry carrying the remote identifier according to a second forwarding entry carrying the remote identifier included in the third deletion notification, and send the third deletion notification to the VXLAN PI module;
the VXLAN PI module is further configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module;
the Bridge module is further configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module;
and the SS MAC module is further configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification.
10. The VTEP of claim 9, wherein the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module is configured to determine whether to delete the second forwarding entry carrying the remote identity, and is specifically configured to:
and determining whether to store a second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
11. A VTEP comprising a border gateway protocol BGP module, a virtual extensible local area network VXLAN product independence PI module, a Bridge module, and a switching service SS media access control MAC module, wherein:
the BGP module is configured to determine, after receiving a third deletion notification sent by an opposite-end VTEP, whether to delete a second forwarding entry carrying a remote identifier according to a second forwarding entry carrying the remote identifier included in the third deletion notification, and send the third deletion notification to the VXLAN PI module;
the VXLAN PI module is configured to determine whether to delete the second forwarding entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the Bridge module;
the Bridge module is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification, and send the third deletion notification to the SS MAC module;
and the SS MAC module is configured to determine whether to delete the second forwarding table entry carrying the remote identifier after receiving the third deletion notification.
12. The VTEP of claim 11, wherein the BGP module, the VXLAN PI module, the Bridge module, or the SS MAC module is configured to determine whether to delete the second forwarding entry carrying the remote identity, and is specifically configured to:
and determining whether to store a second forwarding table item carrying the remote identifier, and deleting the second forwarding table item carrying the remote identifier if the second forwarding table item carrying the remote identifier is determined to be stored.
CN201811156568.7A 2018-09-30 2018-09-30 Forwarding table item updating method based on VTEP and VTEP Active CN109412925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811156568.7A CN109412925B (en) 2018-09-30 2018-09-30 Forwarding table item updating method based on VTEP and VTEP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811156568.7A CN109412925B (en) 2018-09-30 2018-09-30 Forwarding table item updating method based on VTEP and VTEP

Publications (2)

Publication Number Publication Date
CN109412925A CN109412925A (en) 2019-03-01
CN109412925B true CN109412925B (en) 2021-06-18

Family

ID=65466760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811156568.7A Active CN109412925B (en) 2018-09-30 2018-09-30 Forwarding table item updating method based on VTEP and VTEP

Country Status (1)

Country Link
CN (1) CN109412925B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055216B (en) * 2019-12-27 2022-06-03 广东博智林机器人有限公司 Mesh network upgrading method and system, computer device and storage medium
CN111736958B (en) * 2020-06-29 2023-06-30 中国联合网络通信集团有限公司 Virtual machine migration method, system, computer equipment and storage medium
CN113949658B (en) * 2021-10-25 2023-05-23 迈普通信技术股份有限公司 Table entry processing method, system, device, electronic equipment and storage medium
CN114598645A (en) * 2022-01-30 2022-06-07 阿里云计算有限公司 Control method and device of flow table item

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471744A (en) * 2014-09-19 2016-04-06 杭州华三通信技术有限公司 Virtual machine migration method and device
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN106878288A (en) * 2017-01-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN106992918A (en) * 2017-03-30 2017-07-28 杭州迪普科技股份有限公司 Message forwarding method and device
CN107733793A (en) * 2017-11-28 2018-02-23 新华三技术有限公司 A kind of forwarding-table item maintaining method and device
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769618B (en) * 2012-07-18 2015-03-11 北京星网锐捷网络技术有限公司 WEB access processing method, network equipment and communication system
CN104243630B (en) * 2014-09-29 2017-10-03 新华三技术有限公司 MAC address learning method and device in VXLAN networks
US9900250B2 (en) * 2015-03-26 2018-02-20 Cisco Technology, Inc. Scalable handling of BGP route information in VXLAN with EVPN control plane
CN104796338B (en) * 2015-04-24 2018-08-24 新华三技术有限公司 Virtual machine migration method and device
US9985837B2 (en) * 2015-07-23 2018-05-29 Cisco Technology, Inc. Refresh of the binding tables between data-link-layer and network-layer addresses on mobility in a data center environment
CN107547349B (en) * 2017-07-31 2021-02-05 新华三技术有限公司 Virtual machine migration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471744A (en) * 2014-09-19 2016-04-06 杭州华三通信技术有限公司 Virtual machine migration method and device
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration
CN106453092A (en) * 2016-11-07 2017-02-22 锐捷网络股份有限公司 Routing update method and device
CN106878288A (en) * 2017-01-20 2017-06-20 新华三技术有限公司 A kind of message forwarding method and device
CN106992918A (en) * 2017-03-30 2017-07-28 杭州迪普科技股份有限公司 Message forwarding method and device
CN107733793A (en) * 2017-11-28 2018-02-23 新华三技术有限公司 A kind of forwarding-table item maintaining method and device

Also Published As

Publication number Publication date
CN109412925A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109412925B (en) Forwarding table item updating method based on VTEP and VTEP
US10785186B2 (en) Control plane based technique for handling multi-destination traffic in overlay networks
US10545750B2 (en) Distributed upgrade in virtualized computing environments
US11290373B2 (en) Method and system to avoid temporary traffic loss with BGP ethernet VPN multi-homing with data-plane mac address learning
US9264362B2 (en) Proxy address resolution protocol on a controller device
US10296374B2 (en) Migration of virtual machines
CN113273142B (en) Communication system and communication method
CN103974380B (en) A kind of method and device of terminal access position keep-alive
CN113261242B (en) Communication system and method implemented by communication system
US10263808B2 (en) Deployment of virtual extensible local area network
US9531566B2 (en) Control apparatus, a communication system, a communication method and a recording medium having recorded thereon a communication program including a control unit, a network configuration information management unit, and a path control unit
US8842577B2 (en) Enabling media access control address mobility in an ethernet virtual private network
US20140250220A1 (en) Optimizing Handling of Virtual Machine Mobility in Data Center Environments
CN113302898A (en) Virtual routing controller for peer-to-peer interconnection of client devices
CN106302076B (en) Method and system for establishing VXLAN tunnel and SDN controller
CN105162704A (en) Multicast replication method and device in Overlay network
CN111934969B (en) Maintenance method and device of MAC forwarding table
CN108540386B (en) Method and device for preventing service flow interruption
US9553764B2 (en) Migration of guest bridge
CN105634952A (en) Fast notification method and apparatus for LSP message
CN106230667A (en) VTEP keep-alive detection method and device
CN111682968B (en) Network access management method and system for communication equipment
CN105338127A (en) Media access control MAC address table updating method, switch and system
CN109617779B (en) Routing table maintenance method and device based on VTEP
CN108259352B (en) SDN and non-SDN interworking method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant