VXLAN configuration method and equipment

The configuration information of VXLAN tunnel endpoints is managed through the SDN controller, which solves the problem of changes in VTEP IP address and lease period, and realizes dynamic update of VXLAN tunnel and VTEP online status monitoring, improving the efficiency and reliability of network management.

CN115766434BActive Publication Date: 2024-11-15CHINA MOBILE GROUP SHANDONG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111030100.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-03
Publication Date
2024-11-15
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

In VXLAN tunnels, the dynamic IP address obtained by user equipment may change, resulting in the change of the IP address of VTEP. The tunnel configuration needs to be updated in time and the lease information is tracked when the IP address lease period changes. It is difficult to effectively manage the existing technology.

Method used

Manage the configuration information of VTEP through a software-defined network (SDN) controller, update the configuration information in a timely manner when the IP address and/or lease period changes, and send the updated information to the relevant VTEP to realize the VTEP IP address and lease period Tracking of changes and tear down tunneling or BGP EVPN relationships when VTEP is offline.

Benefits of technology

It realizes timely tracking and management of changes in VTEP IP addresses and lease periods, ensures dynamic updates and stable operation of VXLAN tunnels, and promptly removes offline VTEP tunnels or BGP EVPN relationships, improving the efficiency and reliability of network management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115766434B_ABST
    Figure CN115766434B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communications, and in particular to a configuration method and device for VXLAN, characterized in that it is applied to an SDN controller, and includes: receiving a configuration update request sent by a first VTEP, the configuration update request including a first MAC address and IP update information; determining first configuration information associated with the first MAC address from stored configuration information; determining stored IP information associated with the first MAC address according to the first configuration information, and at least one second VTEP having a tunnel connection or a BGPEVPN peer relationship with the first VTEP; changing the stored IP information of the first configuration information to IP update information. The configuration method for VXLAN provided by an embodiment of the present invention can timely track the IP address changes of VTEP.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of communications, and in particular to a VXLAN configuration method and device. [Background technology]

[0002] Virtual eXtensible Local Area Network (VXLAN) is a tunnel technology. VXLAN can establish a VXLAN tunnel based on the Internet Protocol Address (IP) address of the VXLAN Tunnel Endpoints (VTEP), thereby enabling communication between VTEPs. The IP address of the VTEP is the VTEP address, and a pair of VTEP addresses corresponds to a VXLAN tunnel.

[0003] Currently, there are two deployment methods for establishing VXLAN tunnels: static and Border Gateway Protocol Ethernet Virtual Private Network (BGP EVPN). In the static deployment method, you need to manually configure parameters such as the IP address and VXLAN network identifier (VNI) of the VTEPs at both ends of the tunnel. In the BGP EVPN deployment method, you need to establish a BGP EVPN peer between the VTEPs at both ends of the tunnel. BGP EVPN peers can use BGP EVPN routing to transmit VNI and IP address information to each other, thereby realizing the dynamic creation of VXLAN tunnels.

[0004] Usually, user devices need to obtain dynamic IP addresses from carrier network devices and complete the establishment of VXLAN tunnels based on the dynamic IP addresses. In this case, the IP addresses obtained by user devices each time they go online may be different, that is, the IP address of the VTEP may change. If the IP address of the VTEP changes, it means that the VXLAN tunnel configuration needs to be updated according to the new IP address. In addition, in order to facilitate the management of VXLAN tunnels, when the IP address of a VTEP does not change, but the IP address lease changes, it is also necessary to promptly understand the new address lease of the VTEP. Therefore, how to promptly track changes in the IP address and IP address lease of the VTEP is a problem that needs to be solved. [Summary of the invention]

[0005] In view of this, an embodiment of the present invention provides a configuration method and device for an extensible virtual local area network VXLAN, which manages the configuration information of each VTEP through a software defined network (SDN) controller. When the IP address of a VTEP changes, the configuration information is modified in time and the modified configuration information is sent to the relevant VTEP.

[0006] In a first aspect, an embodiment of the present invention provides a method for configuring a scalable virtual local area network (VXLAN), the method being applied to a software defined network (SDN) controller, comprising:

[0007] Receiving a configuration update request sent by a first scalable virtual local area network tunnel endpoint VTEP, wherein the configuration update request includes a first media access control MAC address and Internet protocol IP update information;

[0008] Determining first configuration information associated with the first MAC address from the stored configuration information;

[0009] Determine, according to the first configuration information, the stored IP information associated with the first MAC address, and at least one second VTEP having a tunnel connection or a Border Gateway Protocol Ethernet Virtual Private Network (BGP EVPN) peer relationship established with the first VTEP;

[0010] The stored IP information of the first configuration information is changed to the IP update information.

[0011] In one possible implementation, the IP update information includes an updated address lease of an in-use IP address and an in-use IP address; the stored IP information includes the in-use IP address and a stored lease of the in-use IP address;

[0012] Changing the stored IP information of the first configuration information to the IP update information includes:

[0013] The stored lease of the in-use IP address in the first configuration information is changed to the updated address lease.

[0014] In one possible implementation, the IP update information includes the first IP address and the first address lease corresponding to the first IP address; the stored IP information includes the in-use IP address and the stored lease of the in-use IP address;

[0015] Changing the stored IP information of the first configuration information to the IP update information includes:

[0016] Change the in-use IP address of the first configuration information to the first IP address, and change the stored lease to the first address lease;

[0017] The updated first configuration information is sent to the first VTEP and the at least one second VTEP.

[0018] In one possible implementation, the number of first configuration information associated with the first MAC address is multiple; each of the first configuration information includes the stored IP information, the VXLAN network identifier VNI, and a second VTEP information having a tunnel connection with the first VTEP; wherein the VNIs of the first configuration information are the same, and the second VTEPs are different; or,

[0019] The first configuration information includes the stored IP information and information of multiple second VTEPs that have established a BGP EVPN peer relationship with the first VTEP, and each second VTEP is different.

[0020] In one possible implementation manner, storing each of the first configuration information includes:

[0021] Receive a tunnel configuration request sent by each VTEP, where the tunnel configuration request includes a MAC address, an IP address, an IP address lease, and a VNI;

[0022] Determine the first VTEP from the VTEPs, and determine other VTEPs having the same VNI parameter as the first VTEP as the second VTEP;

[0023] Determine a plurality of VTEPs having the same VNI from among the VTEPs;

[0024] VXLAN tunnels are established between the multiple VTEPs with the same VNI, respectively, and a configuration information is stored for each of the VXLAN tunnels;

[0025] Among them, the multiple VTEPs with the same VNI include the first VTEP, and the configuration information corresponding to the first VTEP is the first configuration information.

[0026] In one possible implementation manner, storing the first configuration information includes:

[0027] Receive a peer relationship establishment request sent by each VTEP, where the peer relationship establishment request includes a MAC address, an IP address, and an IP address lease;

[0028] According to the peer relationship establishment request, a BGP EVPN peer relationship between the VTEPs is established, and the first configuration information is stored.

[0029] In one possible implementation, the method further includes:

[0030] When an online detection message is sent to the first VTEP and no online response message is received from the first VTEP, or when the first VTEP offline prompt information sent by N second VTEPs is received and N is greater than a first threshold, the tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP is dismantled, and the first configuration information is deleted or the first MAC address and the stored IP information are deleted.

[0031] In one possible implementation manner, sending an online detection message to the first VTEP includes:

[0032] The first configuration information includes an IP address and an IP address lease associated with the first MAC address, and when the usage time of the IP address reaches a predetermined proportion of the IP address lease, an online detection message is sent to the first VTEP; or,

[0033] When receiving a tunnel configuration request or a peer relationship establishment request sent by a third VTEP, if the IP address corresponding to the third VTEP is consistent with the IP address included in the first configuration information, an online detection message is sent to the first VTEP.

[0034] In a second aspect, an embodiment of the present invention provides a configuration device for a scalable virtual local area network VXLAN, the device being applied to a software defined network SDN controller, comprising:

[0035] A receiving module receives a configuration update request sent by a first scalable virtual local area network tunnel endpoint VTEP, wherein the configuration update request includes a first media access control MAC address and Internet protocol IP update information;

[0036] A determination module determines first configuration information associated with the first MAC address from the stored configuration information; determines stored IP information associated with the first MAC address according to the first configuration information, and at least one second VTEP having a tunnel connection or a Border Gateway Protocol Ethernet Virtual Private Network BGP EVPN peer relationship established with the first VTEP;

[0037] An updating module changes the stored IP information of the first configuration information to the IP update information.

[0038] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0039] at least one processor; and

[0040] at least one memory in communication with the processor, wherein:

[0041] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method provided by the first aspect.

[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the method described in the first aspect.

[0043] It should be understood that the second to fourth aspects of the embodiments of the present invention are consistent with the technical solutions of the first aspect of the embodiments of the present invention, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be described in detail.

[0044] The VXLAN configuration method and device provided by the embodiment of the present invention manages the configuration information of each VTEP through a software defined network (SDN) controller, and promptly modifies the configuration information when the IP address and / or IP address lease of a certain VTEP changes; if both the IP address and the lease change, the modified configuration information can also be sent to the relevant VTEP, thereby timely tracking the changes of the IP address and IP address lease of the VTEP. In addition, the VXLAN configuration method and device provided by the embodiment of the present invention can also track the online status of each VTEP. When it is determined that a certain VTEP is in an offline state, the VXLAN tunnel or BGP EVPN peer relationship between the VTEP and other VTEPs is promptly dismantled, and the configuration information related to the VTEP is deleted.

Brief Description of the Drawings

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 A flowchart of a VXLAN configuration method provided by an embodiment of the present invention;

[0047] Figure 2A flowchart of a method for storing first configuration information provided by an embodiment of the present invention;

[0048] Figure 3 A flowchart of another method for storing first configuration information provided by an embodiment of the present invention;

[0049] Figure 4 A flow chart of a connection removal method provided by an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of a VXLAN configuration device provided by an embodiment of the present invention;

[0051] Figure 6 A schematic diagram of another VXLAN configuration device provided by an embodiment of the present invention;

[0052] Figure 7 A schematic diagram of another VXLAN configuration device provided by an embodiment of the present invention;

[0053] Figure 8 A schematic structural diagram of an electronic device provided for the implementation of the present invention. [Specific implementation method]

[0054] In order to better understand the technical solution of the present invention, the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0055] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0056] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms "a", "said" and "the" used in the embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0057] In the related art, user equipment usually needs to obtain a dynamic IP address from the operator's network equipment and complete the establishment of a VXLAN tunnel based on the dynamic IP address. In this case, the IP address obtained by the user equipment each time it goes online may be different, that is, the IP address of the VTEP may change. If the IP address of the VTEP changes, it means that the VXLAN tunnel configuration needs to be updated according to the new IP address. In addition, in order to facilitate the management of the VXLAN tunnel, when the IP address of a VTEP has not changed, but the IP address lease period has changed, it is also necessary to promptly understand the new address lease period of the VTEP. In order to timely track the changes in the IP address and IP address lease period of the VTEP, an embodiment of the present invention provides a configuration method for an extensible virtual local area network VXLAN, which manages the configuration information of each VTEP through an SDN controller, and when the IP address of a VTEP changes, the configuration information is modified in a timely manner, and the modified configuration information is sent to the relevant VTEP.

[0058] Figure 1 A flowchart of a VXLAN configuration method provided by an embodiment of the present invention. Figure 1 The method shown is applied to SDN controller. Figure 1 As shown, the configuration method of the above VXLAN may include:

[0059] Step 101: Receive a configuration update request sent by a first VTEP, where the configuration update request includes a first Media Access Control Address (MAC) address and IP update information.

[0060] It should be noted that when the first VTEP goes online, it will obtain a dynamic IP address from the operator's network equipment as the in-use IP address, and the in-use IP address has a corresponding IP address lease period; the first VTEP can send the in-use IP address and the corresponding lease period together with the first MAC address to the SDN controller, and the SDN controller will store the received first MAC address, in-use IP address and the corresponding lease period.

[0061] Before the lease of the IP address in use expires, the first VTEP can apply to the operator network equipment for renewal of the IP address in use. If the renewal is successful, the first VTEP can obtain an updated address lease for the IP address in use; if the renewal fails, it may cause the IP address of the first VTEP to change, and then obtain a new IP address and the corresponding lease, that is, the first IP address and the first address lease corresponding to the first IP address.

[0062] If the IP address of the first VTEP changes, or the lease of the in-use IP address changes, the first VTEP will send a configuration update request to the SDN controller, and the configuration update request includes the first MAC address and IP update information. If the IP address of the first VTEP changes, the IP update information includes the first IP address and the first address lease corresponding to the first IP address; if the IP address of the first VTEP does not change, but only the lease of the in-use IP address changes, the IP update information includes the in-use IP address and the updated address lease of the in-use IP address.

[0063] Step 102: Determine first configuration information associated with the first MAC address from the stored configuration information.

[0064] It should be noted that the MAC address is also called a physical address or a hardware address, and the first MAC address can be used as identification information indicating the first VTEP.

[0065] Specifically, the SDN controller may store multiple configuration information, wherein the configuration information may be configuration information of a VXLAN tunnel or configuration information of a BGP EVPN peer. According to the first MAC address, the first configuration information associated with the first MAC address, i.e., the first configuration information associated with the first VTEP, may be determined from the multiple stored configuration information.

[0066] Step 103: Determine, according to the first configuration information, the stored IP information associated with the first MAC address, and at least one second VTEP that has established a tunnel connection or a BGP EVPN peer relationship with the first VTEP.

[0067] Specifically, if the first VTEP establishes VXLAN tunnel relationships with multiple second VTEPs respectively, the number of the first configuration information may be multiple.

[0068] If the first configuration information is the configuration information of the VXLAN tunnel, each piece of the first configuration information includes the VNI of the tunnel, the first MAC address and the stored IP information of the first VTEP. The stored IP information of the first VTEP includes the IP address in use of the first VTEP and the stored lease of the IP address in use. In addition, since each VXLAN tunnel includes two tunnel endpoints, each piece of the first configuration information also includes information of a second VTEP that establishes a tunnel connection with the first VTEP. The information of the second VTEP includes the MAC address, IP address and corresponding IP address lease of the second VTEP. If there are multiple pieces of the first configuration information, the VNI of each piece of the first configuration information is the same as the stored IP information of the first VTEP, but the second VTEP is different.

[0069] If the first configuration information is the configuration information of a BGP EVPN peer, the first configuration information may include the first MAC address and stored IP information of the first VTEP, and information of multiple second VTEPs that have established a BGP EVPN peer relationship with the first VTEP, wherein the second VTEP information may include the MAC address, IP address and corresponding IP address lease of each second VTEP.

[0070] It can be seen that, according to the first configuration information, at least one second VTEP that has established a VXLAN tunnel connection or a BGP EVPN peer relationship with the first VTEP can be determined.

[0071] Step 104: Change the stored IP information of the first configuration information to IP update information.

[0072] Specifically, if the IP update information includes the updated address lease of the used IP address and the IP address in use, and the stored IP information includes the stored lease of the used IP address and the IP address in use, then the stored lease of the used IP address in the first configuration information is changed to the updated address lease.

[0073] If the IP update information includes the first IP address and the first address lease corresponding to the first IP address; the stored IP information includes the in-use IP address and the stored lease of the in-use IP address, then the in-use IP address of the first configuration information is changed to the first IP address, and the stored lease is changed to the first address lease. At this time, the IP update information replaces the stored IP information and becomes the new stored IP information.

[0074] In addition, if both the IP address of the first VTEP and the corresponding IP address lease are updated in this step, that is, if the IP update information includes the first IP address and the first address lease corresponding to the first IP address, then, after completing the update of the first configuration information, the updated first configuration information needs to be sent to the first VTEP and at least one second VTEP. Specifically, after completing the update of the first configuration information, the SDN controller needs to send the updated first configuration information to the first VTEP and at least one second VTEP that has established a VXLAN tunnel or a BGP EVPN peer relationship with the first VTEP, so as to complete the configuration update of the VXLAN tunnel or the configuration update of the BGP EVPN peer relationship. If the second VTEPs included in each piece of the first configuration information are different, then in this step, when sending the updated first configuration information to at least one second VTEP, each piece of the first configuration information needs to be sent to the corresponding second VTEP respectively.

[0075] When the IP address or lease period of the first VTEP changes, the first VTEP can send configuration update information to the SDN controller; the SDN controller updates the stored first configuration information according to the configuration update information, and sends the updated first configuration information to the first VTEP and each second VTEP that has established a VXLAN tunnel connection or a BGP EVPN peer relationship with the first VTEP, thereby realizing that when the IP information of a certain VTEP changes, the configuration information of the VXLAN tunnel is updated according to the new IP information.

[0076] Figure 2 A flowchart of a method for storing first configuration information provided by an embodiment of the present invention is applied to an SDN controller, such as Figure 2 As shown, the above method may include:

[0077] Step 201: Receive a tunnel configuration request sent by each VTEP, where the tunnel configuration request includes a MAC address, an IP address, an IP address lease, and a VNI.

[0078] Specifically, this step is performed before step 101. Steps 201 to 203 take establishing a VXLAN tunnel between the first VTEP and the second VTEP as an example to illustrate the method of storing the first configuration information.

[0079] In step 201, the SDN controller may receive tunnel configuration requests sent by multiple VTEPs, wherein each tunnel configuration request includes the MAC address, IP address, IP address lease, and VNI of the VTEP sending the tunnel configuration request.

[0080] Step 202: Determine multiple VTEPs with the same VNI from each VTEP.

[0081] It should be noted that the VXLAN tunnel in the embodiment of the present invention can be established between any two VTEPs with the same VNI parameters. Therefore, in this step, VTEPs with the same VNI can be grouped into a group to obtain multiple groups of VTEPs. Each group of VTEPs includes multiple VTEPs, and each VTEP in each group has the same VNI.

[0082] Step 203, VXLAN tunnels are established between multiple VTEPs with the same VNI respectively, and a configuration information is stored for each VXLAN tunnel; wherein, the multiple VTEPs with the same VNI include the first VTEP, and the configuration information corresponding to the first VTEP is the first configuration information.

[0083] For each group of VTEPs obtained in step 202, the SDN controller can establish a VXLAN tunnel between each VTEP in the group. For example, a group of VTEPs contains four VTEPs with the same VNI, and these four VTEPs are called A, B, C, and D; then the SDN controller needs to establish six VXLAN tunnels for this group of VTEPs, namely AB, AC, AD, BC, BD, and CD.

[0084] Specifically, the SDN controller completes the VXLAN tunnel establishment operation by sending the IP address and head-end replication list of the source VTEP to each VTEP respectively. The source VTEP and the destination VTEP are the two endpoints of a VXLAN tunnel, and the two endpoints of each VXLAN tunnel are the source VTEP and the destination VTEP to each other. The VTEP to which the SDN controller sends the IP address and the head-end replication list can be used as the source VTEP. The head-end replication list includes the IP addresses of all VTEPs that establish VXLAN tunnels with the source VTEP, that is, the IP addresses of all other VTEPs that have the same VNI parameters as the source VTEP.

[0085] For example, when the SDN controller sends the IP address of the source VTEP and the head-end replication list to A, A serves as the source VTEP, the IP address of the source VTEP is the IP address of A, and the head-end replication list includes the IP addresses of B, C, and D.

[0086] After VXLAN tunnels are established between multiple VTEPs with the same VNI, a configuration information needs to be stored for each VXLAN tunnel. Among them, the multiple VTEPs with the same VNI include the first VTEP, and the configuration information corresponding to the first VTEP is the first configuration information; the configuration information of each VXLAN tunnel may include the VNI of the VXLAN tunnel, the MAC addresses and IP addresses of the two VTEPs, and the corresponding address lease. The SDN controller can store the configuration information of each VXLAN tunnel one by one in the form of a table to facilitate the subsequent update and management of each configuration information.

[0087] Since the first configuration information is the configuration information associated with the first MAC address of the first VTEP, the configuration information of each VXLAN tunnel whose endpoint includes the first VTEP is the first configuration information. It can be understood that the first configuration information has as many VXLAN tunnels as the first VTEP has established with the second VTEPs.

[0088] Figure 3 A flowchart of another method for storing first configuration information provided by an embodiment of the present invention is applied to an SDN controller, such as Figure 3As shown, the above method may include:

[0089] Step 301: Receive a peer relationship establishment request sent by each VTEP, where the peer relationship establishment request includes a MAC address, an IP address, and an IP address lease.

[0090] Specifically, this step is performed before step 101. Steps 301 and 302 take the establishment of a BGP EVPN peer relationship between the first VTEP and the second VTEP as an example to illustrate the method for storing the first configuration information.

[0091] The SDN controller may receive peer relationship establishment requests respectively sent by multiple VTEPs, wherein each peer relationship establishment request includes the MAC address, IP address and corresponding IP address lease of the VTEP sending the peer relationship establishment request.

[0092] Step 302: Establish a BGP EVPN peer relationship between the VTEPs and store the first configuration information.

[0093] It should be noted that the SDN controller usually needs to establish a BGP EVPN peer relationship between each VTEP so that each VTEP forms a full mesh connection. For example, if there are three VTEPs, a BGP EVPN peer relationship needs to be established between the three VTEPs so that each VTEP can connect to the other two VTEPs.

[0094] At this time, in order to reduce the number of BGP EVPN peer relationships, simplify the configuration workload, and reduce the difficulty of deployment and maintenance, a route reflector (RR) can be introduced. After the introduction of RR, it is only necessary to establish a BGP EVPN peer relationship between RR and each VTEP to achieve connectivity between any two VTEPs.

[0095] Specifically, the SDN controller can complete the operation of establishing the BGP EVPN peer relationship by sending peer configuration information to each VTEP. When the SDN controller sends peer configuration information to each VTEP, it can send the EVPN routing type and the IP address of other VTEPs as peer configuration information to the VTEP, thereby completing the establishment of the BGP EVPN peer relationship.

[0096] After the BGP EVPN peer relationship is established, each VTEP can exchange VNI information and IP address information through the agreed EVPN routing type, and then establish a VXLAN tunnel with the VTEP with the same VNI parameters.

[0097] In addition, to facilitate the management of BGP EVPN peer relationships, after the SDN controller establishes the BGP EVPN peer relationships between the VTEPs, it is also necessary to store the configuration information of the BGP EVPN peer relationships.

[0098] If RR is introduced, only the information of each VTEP that establishes a BGP EVPN peer relationship with RR needs to be stored. At this time, the information of each VTEP can be recorded one by one in the form of a table. The information of each VTEP includes the MAC address, IP address and lease of the VTEP. The multiple VTEPs that establish a BGP EVPN peer relationship with RR include the first VTEP. All other VTEPs except the first VTEP can serve as the second VTEP. The information of all VTEPs together constitutes the first configuration information.

[0099] Figure 4 A flow chart of a connection removal method provided by an embodiment of the present invention is applied to an SDN controller, such as Figure 4 As shown, the above method may include:

[0100] Step 401, when an online detection message is sent to the first VTEP and no online response message is received from the first VTEP, or when offline prompt messages of the first VTEP sent by N second VTEPs are received and N is greater than a first threshold, the tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP is dismantled, and the first configuration information is deleted or the first MAC address and the stored IP information are deleted.

[0101] It should be noted that step 401 can be understood as dismantling the VXLAN tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP when it is confirmed that the first VTEP is in an offline state, and deleting the first configuration information or deleting the first MAC address and the stored IP information. If a VXLAN tunnel connection is established between the first VTEP and each second VTEP, the first configuration information is deleted; if a BGP EVPN peer relationship is established between the first VTEP and each second VTEP, the first MAC address and the stored IP information are deleted from the first configuration information.

[0102] Specifically, the embodiment of the present invention provides the following three offline perception methods. When any one of the offline perception methods is met, it can be determined that the first VTEP is in an offline state.

[0103] Method 1: When the usage time of the IP address lease associated with the first MAC address in the first configuration information reaches a predetermined proportion of the IP address lease, an online detection message is sent to the first VTEP. As an optional solution, an online detection message can be sent to the first VTEP when the usage time of the IP address lease of the first VTEP reaches 90%. If no online response information is received from the first VTEP within the preset time range, it can be determined that the first VTEP is in an offline state. In actual operation, online detection messages can also be sent to the first VTEP multiple times within the preset time range. The preset time range and the number of times the online detection message is sent can be set according to actual needs.

[0104] Method 2: When a tunnel configuration request or a peer relationship establishment request is received from a third VTEP, if it is found that the IP address of the third VTEP is the same as the IP address of the first VTEP in the stored configuration information, an online detection message is sent to the first VTEP; if no online response message is received from the first VTEP within a preset time range, it is determined that the first VTEP is in an offline state; if an online response message is received from the first VTEP within the preset time range, an address conflict message is sent to the third VTEP to instruct the newly online third VTEP to change its IP address.

[0105] Method three: If offline prompt information of the first VTEP sent by N second VTEPs is received and N is greater than a first threshold, it is determined that the first VTEP is in an offline state.

[0106] Among them, the second VTEP is a VTEP that has established a VXLAN tunnel or BGP EVPN peer relationship with the first VTEP. When a second VTEP sends data packets to the first VTEP for multiple consecutive times and has not received a response packet from the first VTEP, the second VTEP can send the first VTEP offline prompt information to the SDN controller. When the SDN controller receives the first VTEP offline prompt information sent by N second VTEPs, and N is greater than the first threshold, it can be determined that the first VTEP is in an offline state. In order to avoid misjudgment of whether the first VTEP is offline due to network link quality problems, the value of the first threshold here should be greater than 1.

[0107] Alternatively, after receiving the first VTEP offline prompt information sent by any second VTEP, an online detection message may be sent to the first VTEP; if no online response message is received from the first VTEP within a preset time range, it is determined that the first VTEP is in an offline state.

[0108] Through the above three offline perception methods, the SDN controller can timely grasp the online / offline status of each VTEP it manages. When a VTEP is offline, the VXLAN tunnel connection or BGPEVPN peer relationship corresponding to the VTEP is promptly removed.

[0109] Figure 5 A schematic diagram of a VXLAN configuration device provided by an embodiment of the present invention. Figure 5 As shown, the above VXLAN configuration device is applied to the SDN controller and may include:

[0110] The receiving module 51 receives a configuration update request sent by a first scalable virtual local area network tunnel endpoint VTEP, wherein the configuration update request includes a first media access control MAC address and Internet protocol IP update information.

[0111] The determination module 52 determines the first configuration information associated with the first MAC address from the stored configuration information; determines the stored IP information associated with the first MAC address based on the first configuration information, and at least one second VTEP that establishes a tunnel connection or a Border Gateway Protocol Ethernet Virtual Private Network BGP EVPN peer relationship with the first VTEP.

[0112] The updating module 53 changes the stored IP information of the first configuration information into the IP update information.

[0113] The update module 53 is specifically used to change the stored lease of the in-use IP address in the first configuration information to the updated address lease, the IP update information includes the in-use IP address and the updated address lease of the in-use IP address, and the stored IP information includes the in-use IP address and the stored lease of the in-use IP address; or change the in-use IP address of the first configuration information to the first IP address, change the stored lease to the first address lease, and send the updated first configuration information to the first VTEP and the at least one second VTEP, the IP update information includes the first IP address and the first address lease corresponding to the first IP address; the stored IP information includes the in-use IP address and the stored lease of the in-use IP address.

[0114] Figure 5 The VXLAN configuration device provided in the illustrated embodiment can be used to implement the present invention Figure 1 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0115] Figure 6 A schematic diagram of another VXLAN configuration device provided by an embodiment of the present invention. Figure 6 As shown, the above-mentioned VXLAN configuration device may also include:

[0116] The VXLAN tunnel establishment module 61 is used to receive a tunnel configuration request sent by each VTEP, wherein the tunnel configuration request includes a MAC address, an IP address, an IP address lease and a VNI; determine multiple VTEPs with the same VNI from the various VTEPs; establish VXLAN tunnels between the multiple VTEPs with the same VNI respectively, and store a configuration information for each of the VXLAN tunnels; wherein the multiple VTEPs with the same VNI include a first VTEP, and the configuration information corresponding to the first VTEP is the first configuration information.

[0117] The BGP EVPN peer relationship establishment module 62 is used to receive a peer relationship establishment request sent by each VTEP, wherein the peer relationship establishment request includes a MAC address, an IP address, and an IP address lease; establish a BGP EVPN peer relationship between the VTEPs according to the peer relationship establishment request, and store the first configuration information.

[0118] Figure 6 The VXLAN configuration device provided in the illustrated embodiment can be used to implement the present invention Figure 2-Figure 3 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0119] Figure 7 A schematic diagram of another VXLAN configuration device provided by an embodiment of the present invention. Figure 7 As shown, the above-mentioned VXLAN configuration device may also include:

[0120] The connection removal module 71 is used to remove the tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP when an online detection message is sent to the first VTEP and no online response message is received from the first VTEP, or when first VTEP offline prompt information is received from N second VTEPs and N is greater than a first threshold, and to delete the first configuration information or delete the first MAC address and the stored IP information.

[0121] The connection dismantling module 71 is specifically used for sending an online detection message to the first VTEP when the first configuration information includes an IP address and an IP address lease associated with the first MAC address and when the usage time of the IP address reaches a predetermined proportion of the IP address lease; or, when receiving a tunnel configuration request or a peer relationship establishment request sent by a third VTEP, if the IP address corresponding to the third VTEP is consistent with the IP address included in the first configuration information, sending an online detection message to the first VTEP.

[0122] Figure 7 The VXLAN configuration device provided in the illustrated embodiment can be used to implement the present invention Figure 4 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0123] Figure 8 A schematic structural diagram of an electronic device provided for the implementation of the present invention. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0124] like Figure 8 As shown, the electronic device may include at least one processor; and at least one memory connected to the processor in communication, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the present invention. Figure 1-Figure 4 The configuration method of VXLAN provided in the illustrated embodiment. The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: one or more processors 410, a communication interface 420, a memory 430, and a communication bus 440 connecting different system components (including the memory 430 and the processing unit 410).

[0125] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0126] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0127] The memory 430 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0128] A program / utility having a set (at least one) of program modules may be stored in memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described herein.

[0129] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the present invention. Figure 1-Figure 4 The illustrated embodiment provides a method for configuring VXLAN.

[0130] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the present invention. Figure 1-Figure 4 The illustrated embodiment provides a method for configuring VXLAN.

[0131] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0132] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0133] Computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (Local Area Network; hereinafter referred to as: LAN) or a wide area network (Wide Area Network; hereinafter referred to as: WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0134] The above describes specific embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0135] In the description of the present invention, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In the present invention, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in the present invention and the features of the different embodiments or examples, without contradiction.

[0136] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0137] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0138] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0140] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0141] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for configuring an extensible virtual local area network VXLAN, characterized in that: Applied to software defined network (SDN) controllers, including: Receiving a configuration update request sent by a first scalable virtual local area network tunnel endpoint VTEP, wherein the configuration update request includes a first media access control MAC address and Internet protocol IP update information; Determining first configuration information associated with the first MAC address from the stored configuration information; Determine, according to the first configuration information, the stored IP information associated with the first MAC address, and at least one second VTEP having a tunnel connection or a Border Gateway Protocol Ethernet Virtual Private Network (BGP EVPN) peer relationship established with the first VTEP; Changing the stored IP information of the first configuration information to the IP update information; The method further comprises: When an online detection message is sent to the first VTEP and no online response message is received from the first VTEP, or when offline prompt information of the first VTEP sent by N second VTEPs is received and N is greater than a first threshold, the tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP is dismantled, and the first configuration information is deleted or the first MAC address and the stored IP information are deleted; Sending an online detection message to the first VTEP includes: The first configuration information includes an IP address and an IP address lease associated with the first MAC address, and when the usage time of the IP address reaches a predetermined proportion of the IP address lease, an online detection message is sent to the first VTEP; or, When receiving a tunnel configuration request or a peer relationship establishment request sent by a third VTEP, if the IP address corresponding to the third VTEP is consistent with the IP address included in the first configuration information, an online detection message is sent to the first VTEP.

2. The method according to claim 1, characterized in that The IP update information includes the updated address lease of the in-use IP address and the in-use IP address; the stored IP information includes the in-use IP address and the stored lease of the in-use IP address; Changing the stored IP information of the first configuration information to the IP update information includes: The stored lease of the in-use IP address in the first configuration information is changed to the updated address lease.

3. The method according to claim 1, characterized in that: The IP update information includes the first IP address and the first address lease corresponding to the first IP address; the stored IP information includes the in-use IP address and the stored lease of the in-use IP address; Changing the stored IP information of the first configuration information to the IP update information includes: Change the in-use IP address of the first configuration information to the first IP address, and change the stored lease to the first address lease; The updated first configuration information is sent to the first VTEP and the at least one second VTEP.

4. The method according to any one of claims 1 to 3, characterized in that: There are multiple first configuration information associated with the first MAC address; each of the first configuration information includes the stored IP information, the VXLAN network identifier VNI, and a second VTEP information having a tunnel connection with the first VTEP; wherein the VNIs of the first configuration information are the same, and the second VTEPs are different; or, The first configuration information includes the stored IP information and information of multiple second VTEPs that have established a BGP EVPN peer relationship with the first VTEP, and each second VTEP is different.

5. The method according to claim 4, characterized in that Also includes: Receive a tunnel configuration request sent by each VTEP, where the tunnel configuration request includes a MAC address, an IP address, an IP address lease, and a VNI; Determine a plurality of VTEPs having the same VNI from among the VTEPs; VXLAN tunnels are established between the multiple VTEPs with the same VNI, respectively, and a configuration information is stored for each of the VXLAN tunnels; Among them, the multiple VTEPs with the same VNI include the first VTEP, and the configuration information corresponding to the first VTEP is the first configuration information.

6. The method according to claim 4, characterized in that Also includes: Receive a peer relationship establishment request sent by each VTEP, where the peer relationship establishment request includes a MAC address, an IP address, and an IP address lease; According to the peer relationship establishment request, a BGP EVPN peer relationship between the VTEPs is established, and the first configuration information is stored.

7. A configuration device for an extensible virtual local area network VXLAN, characterized in that: Applied to software defined network (SDN) controllers, including: A receiving module receives a configuration update request sent by a first scalable virtual local area network tunnel endpoint VTEP, wherein the configuration update request includes a first media access control MAC address and Internet protocol IP update information; A determination module determines first configuration information associated with the first MAC address from the stored configuration information; determines stored IP information associated with the first MAC address according to the first configuration information, and at least one second VTEP having a tunnel connection or a Border Gateway Protocol Ethernet Virtual Private Network BGP EVPN peer relationship established with the first VTEP; An updating module, which changes the stored IP information of the first configuration information into the IP update information; A connection removal module, configured to remove the tunnel connection or BGP EVPN peer relationship between the first VTEP and each second VTEP, and delete the first configuration information or delete the first MAC address and the stored IP information when an online detection message is sent to the first VTEP and no online response message is received from the first VTEP, or when first VTEP offline prompt information sent by N second VTEPs is received and N is greater than a first threshold; The connection dismantling module is specifically used for sending an online detection message to the first VTEP when the first configuration information includes an IP address and an IP address lease associated with the first MAC address and when the usage time of the IP address reaches a predetermined proportion of the IP address lease; or, when receiving a tunnel configuration request or a peer relationship establishment request sent by a third VTEP, if the IP address corresponding to the third VTEP is consistent with the IP address included in the first configuration information, sending an online detection message to the first VTEP.

8. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 6 by calling the program instructions.