Efficient virtual address learning in overlay networks

By performing deep packet inspection on virtual address control packets in the overlay network and generating structural routing packets with priority values, the problem of suppressed virtual MAC address learning is solved, efficient learning and failover of virtual addresses are achieved, and network security is ensured. High availability.

CN118869631APending Publication Date: 2024-10-29HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410121191.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-01-29
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In an overlay network, the learning of virtual MAC addresses is limited by the MAC address suppression mechanism. As a result, the backup device cannot take over in time when the primary device is unavailable, affecting the high availability of the network.

Method used

Allows switches to learn and share virtual MAC addresses, prevents MAC address suppression, and enables switches to learn and share virtual MAC addresses by performing deep packet inspection on control packets associated with virtual addresses, determining priority values, and generating fabric routing packets that contain the priority values. Quickly select a backup device as the new primary device.

Benefits of technology

Efficient learning and failover of virtual addresses in the overlay network are achieved, ensuring high availability and rapid recovery of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869631A_ABST
    Figure CN118869631A_ABST
Patent Text Reader

Abstract

The invention relates to efficient virtual address learning in overlay networks. A system for efficient multicast forwarding at a switch is provided. During operation, a switch may maintain a first tunnel with a first switch in a first overlay tunnel fabric and a second tunnel with a second switch in a second overlay tunnel fabric. The switch may function as a gateway of two fabrics. The system may obtain a first structure identifier and a second structure identifier from multicast control packets received via the first and second tunnels, respectively. The structure identifier may uniquely identify the structure. The system may then store a first network address of the first switch and a second network address of the second switch associated with the first and second fabric identifiers, respectively, in the data structure. The system may determine whether to forward multicast traffic to either of the first and second structures based on the first and second structure identifiers, respectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to communication networks. More particularly, the present disclosure relates to methods and systems for efficiently learning virtual addresses in a distributed tunnel structure (eg, without requiring replication). BRIEF DESCRIPTION OF THE DRAWINGS

[0002] Figure 1A An example of an overlay network that facilitates efficient learning of virtual addresses according to one aspect of the present application is described.

[0003] Figure 1B An example of a switch in a distributed tunnel structure according to one aspect of the present application is shown, which efficiently learns and distributes virtual addresses and associated priority values.

[0004] Figure 2 An example of an overlay routing packet for announcing a virtual address and an associated priority value in an overlay network according to one aspect of the present application is shown.

[0005] Figure 3 An example of efficient failover of virtual addresses based on associated priority values ​​according to one aspect of the present application is shown.

[0006] Figure 4A A flow chart illustrating a process by which a switch learns virtual addresses and associated priority values ​​according to one aspect of the present application is presented.

[0007] Figure 4B A flow chart illustrating a process by which a switch distributes virtual addresses and associated priority values ​​in an overlay network according to one aspect of the present application is presented.

[0008] Figure 4C A flow chart illustrating a process for a switch to program virtual addresses based on associated priority values ​​according to one aspect of the present application is presented.

[0009] Figure 5 A flow chart illustrating a process by which a switch facilitates failover associated with a virtual address in accordance with one aspect of the present application is presented.

[0010] Figure 6 An example of a switch supporting efficient learning of virtual addresses according to one aspect of the present application is shown.

[0011] In the drawings, like reference numerals denote like drawing elements. DETAILED DESCRIPTION

[0012] In various Internet applications, virtual addresses are often used to promote high availability between a group of devices. The virtual address can be a virtual media access control (MAC) address or an Internet Protocol (IP) address. Typically, a virtual address is associated with each device in the group of devices, wherein one or more of the devices can actively use the virtual address. For example, multiple devices can operate as a single virtual device based on the Virtual Router Redundancy Protocol (VRRP). One of the devices can be a master device, which can operate as an active device, while the other devices operate as backup devices. A corresponding priority value can be assigned to the device associated with the virtual address. The master device can then be selected based on the priority value. Therefore, the priority value can indicate the order of association between the virtual address and the master device.

[0013] Efficiently learning and programming virtual addresses can improve the performance of the network. In particular, if the network is a heterogeneous multi-layer network, such as an overlay network formed based on tunnels and virtual private networks (VPNs), the switches of the network may need to understand the accessibility information associated with virtual addresses at different layers. For example, a switch can learn a virtual address based on the overlay routing of a VPN on a tunnel, such as an Ethernet VPN (EVPN), which can be deployed as an overlay on a set of virtual extensible local area networks (VXLANs). In order to deploy a VPN on a tunnel, a corresponding tunnel endpoint can map a corresponding client virtual local area network (VLAN) to a corresponding tunnel network identifier (TNI), which can identify the virtual network of the tunnel. When a switch in the structure learns an address that can be a virtual address, the switch can share the address with other switches via an overlay routing packet.

[0014] The TNI may appear in a tunnel header that encapsulates an overlay routing packet and is used to forward the encapsulated packet via a tunnel. For example, if a tunnel is formed based on a VXLAN, the TNI may be a virtual network identifier (VNI) of the VXLAN header, and the tunnel endpoint may be a VXLAN tunnel endpoint (VTEP). If Layer 3 routing and forwarding is required, the TNI may also be mapped to a virtual routing and forwarding (VRF) associated with the tunnel. Since the VPN may be distributed across a tunnel structure, a VPN on a tunnel structure may also be referred to as a distributed tunnel structure. Since the structure is an overlay network, the corresponding switches in the structure may be tunnel endpoints for one or more tunnels. In addition, the gateway switch of the structure may be a virtual gateway switch (VGS) shared between multiple participating switches.

[0015] Aspects described herein solve the problem of efficiently learning virtual addresses distributed across an overlay network by: (i) performing deep packet inspection (DPI) on packets associated with the virtual addresses to determine a priority value indicating an order of association; (ii) including the priority value in overlay routing packets for shared virtual addresses; and (iii) using the priority value to prevent MAC address suppression and select an active device for the virtual address. Once the priority value in the packet is identified, the corresponding receiving switch of the overlay network can determine that MAC address suppression should be disabled for the virtual address. In addition, the switch can select which device should be the active device based on the priority value. As a result, switches in an overlay network can efficiently learn virtual addresses even if the virtual addresses are distributed across the overlay network.

[0016] A distributed tunnel structure in an overlay network can be coupled to other networks via a gateway switch of the structure that may include a VGS. Typically, at least two switches can operate in conjunction with each other as a single switch to facilitate the VGS. Switches participating in the VGS may be referred to as participating switches. Each participating switch may view other participating switches as peer participating switches (or peer switches). Each participating switch pair may be coupled to each other via an inter-switch link (ISL). The VGS may be associated with one or more virtual addresses (e.g., a virtual Internet Protocol (IP) address and / or a virtual Media Access Control (MAC) address). The corresponding tunnel formed at the VGS may use the virtual address to form a tunnel endpoint. As a result, other tunnel endpoints of the structure (i.e., other switches) may view the VGS as other tunnel endpoints for the tunnel, rather than any participating switch. Even though the switches in the distributed tunnel structure may not be

[0017] To forward traffic to the VGS, the corresponding switches in the fabric may perform a load balancing operation (e.g., based on a hash of the corresponding packets) and select one of the participating switches as the destination (i.e., as another tunnel endpoint). The switch may then forward the packet via the tunnel between the tunnel endpoints. Thus, the endpoint may forward the multicast control packet to one of the participating switches, which in turn may share the control packet with a peer participating switch via the ISL. If the fabric is a multi-fabric network, the fabric may be one of a plurality of fabrics forming the network. The corresponding fabric may then include a gateway switch, which may include a VGS, which may be coupled to a remote gateway switch of another fabric, an external network, or both.

[0018] For example, a gateway switch may be coupled to a remote gateway switch via an inter-fabric tunnel (i.e., a tunnel coupling two fabrics). Packets received at the gateway switch via an intra-fabric tunnel (i.e., a tunnel within a fabric) may be encapsulated with a tunnel header associated with the intra-fabric tunnel. The gateway switch may decapsulate the tunnel header and recapsulate the packet with another tunnel header associated with the inter-fabric tunnel. The corresponding switches operating as tunnel endpoints in the fabric may use a routing protocol, such as the Border Gateway Protocol (BGP). In a multi-fabric overlay network, routing for intra-fabric tunnels may be determined using internal BGP (iBGP), while routing for inter-fabric tunnels may be determined using external BGP (eBGP).

[0019] Many protocols in the network are accessed using virtual addresses. For example, a single virtual MAC address can be assigned to multiple devices that act as a single virtual device based on VRRP, which can be used as the source MAC address in the control packet. If the device is a switch, the virtual device can be a virtual switch. However, one of the devices can be a master device and use the virtual MAC address as the source MAC address of the data packet in the data plane. If the devices are distributed across an overlay network (e.g., across one or more overlay tunnel structures), the access switches that couple their overlay networks can learn the same virtual MAC address from the control packet. However, the underlying structure control plane (e.g., the EVPN control plane) may need to share the MAC address learned in the overlay network. The access switch can use the structure routing packet to notify other switches about the learned MAC address.

[0020] Thus, each of these access switches can advertise the virtual MAC address in the overlay network. Thus, the switches in the network can be aware that the MAC address is migrating. If the migration occurs more than a threshold number of times, the fabric control plane on the switch can perform a MAC address suppression operation, which limits the learning of the virtual MAC address to a predefined time period. However, if the primary device becomes unavailable during the MAC address suppression time period, the backup device will not be able to provide high availability because the access switch coupled to the new primary device may not be able to learn the virtual MAC address.

[0021] To address this issue, each access switch can perform DPI on a control packet received from a device associated with a virtual address and determine a priority value associated with the device. The master device can be associated with the highest priority value. Once the virtual MAC address is learned based on the control packet, the switch can store the virtual MAC address, the ingress interface of the control packet, and the corresponding priority value in a local routing data structure (e.g., in a routing information base (RIB)). The switch can also generate a structure routing packet (e.g., an EVPN type 2 routing update packet) that can include the virtual MAC address and the priority value. The switch can then send the structure routing packet via the corresponding tunnel of the coupled switch. This allows another switch of the overlay network to learn the virtual MAC address and priority value associated with the ingress tunnel of the structure routing packet.

[0022] When another switch receives a structured routing packet including a priority value, the receiving switch can suspend MAC address suppression for the MAC address in the packet and prevent the suppression period from occurring simultaneously with a potential failover event. In addition, the priority value can allow the switch to determine the order in which devices can take over the role of the master device. When the switch receives a structured routing packet, the switch can store the virtual MAC address, the ingress tunnel of the packet, and the corresponding priority value in a local routing data structure. As a result, the switch can determine the master device based on the priority value even when learning virtual MAC addresses from different tunnels (or interfaces). Therefore, the switch can program the entry with the most important priority in the local forwarding data structure (e.g., in the forwarding information base (FIB)). Here, the most important priority can be indicated by the highest or lowest priority value.

[0023] In addition, if the master device becomes unavailable, the switch coupled to the unavailable device can generate another structure routing packet indicating the unavailability and distribute the packet in the overlay network. Once the packet is received, another switch of the overlay network can be aware of the unavailability. Instead of waiting for the underlying protocol (such as VRRP) associated with the virtual address to converge, the switch can determine which backup device can take over the role of the new master device based on the priority value. Therefore, the switch can program an entry corresponding to the new master device in the local forwarding data structure. Therefore, traffic to the virtual MAC address can be redirected to the new master device. This allows the switch to easily change routing when a new master device is selected based on the protocol.

[0024] In the present disclosure, the term "switch" is used in a general sense, and it may refer to any stand-alone or structural switch operating in any network layer. "Switch" should not be interpreted as a non-limiting example of the present invention to a layer 2 network. Any device that can forward traffic to an external device or another switch may be referred to as a "switch". Any physical or virtual device (e.g., a virtual machine or switch operating on a computing device) that can forward traffic to a terminal device may be referred to as a "switch". Examples of "switch" include, but are not limited to, a layer 2 switch, a layer 3 router, a routing switch, a component of a Gen-Z network, or a structural switch comprising multiple similar or heterogeneous smaller physical and / or virtual switches.

[0025] The term "packet" refers to a group of bits that can be transmitted together across a network. "Packet" should not be interpreted as limiting the examples of the present invention to a specific layer of the network protocol stack. "Packet" can be replaced by other terms related to a group of bits, such as "message", "frame", "cell", "datagram" or "transaction". In addition, the term "port" can refer to a port that can receive or send data. "Port" can also refer to hardware, software and / or firmware logic that can facilitate the operation of the port.

[0026] Figure 1A An example of an overlay network that promotes efficient learning of virtual addresses according to one aspect of the present application is described. Overlay network 100 may include multiple switches and devices, and may include heterogeneous network components, such as layer 2 and layer 3 hops and tunnels. In some examples, network 100 may be Ethernet, InfiniBand, or other networks, and may use corresponding communication protocols, such as Internet Protocol (IP), Fiber Channel over Ethernet (FCoE), or other protocols. Network 100 may include multiple distributed tunnel structures 110 and 120. Therefore, network 100 may be a multi-structure network. Structure 110 may include switches 111, 113, 114, 116, and 118; and structure 120 may include switches 121, 123, 124, and 128. Respective switches in corresponding structures may be associated with MAC addresses and IP addresses. In corresponding structures of network 100, switches may be coupled to each other via tunnels.

[0027] exist Figure 1A, each link represented by a solid line between a pair of switches may represent a tunnel. The switches of the corresponding structures in the network 100 may form a mesh of tunnels. Examples of tunnels may include, but are not limited to, VXLAN, Generic Routing Encapsulation (GRE), Network Virtualization Using GRE (NVGRE), Generic Networking Virtualization Encapsulation (Geneve), Internet Protocol Security (IPsec), and Multi-Protocol Label Switching (MPLS). Tunnels in the structure may be formed on a lower layer network (or underlying network). The underlying network may be a physical network, and the corresponding links of the underlying network may be physical links. The corresponding switch pairs in the underlying network may be Border Gateway Protocol (BGP) peers. VPN 102 such as Ethernet VPN (EVPN) may be deployed on structure 110. Similarly, VPN 104 may be deployed on structure 120.

[0028] VGS 112 may operate as a gateway switch for fabric 110 and facilitate external communications for fabric 110. In fabric 110, switches 111 and 113 may operate in conjunction with each other as a single switch to facilitate VGS 112. Similarly, VGS 122 may operate as a gateway switch for fabric 120 and facilitate external communications for fabric 120. In fabric 120, switches 121 and 123 may operate in conjunction with each other as a single switch to facilitate VGS 122. VGS 112 and 122 may couple fabrics 110 and 120, respectively, to a wide area network (WAN) 160, such as an enterprise network or the Internet.

[0029] In structure 110, switches 111 and 113 can operate in conjunction with each other as a single switch to facilitate VGS112. VGS112 can be associated with one or more virtual addresses (e.g., a virtual IP address and / or a virtual MAC address). The corresponding tunnel formed at VGS112 can use the virtual address to form a tunnel endpoint. In order to efficiently manage data forwarding, switches 111 and 113 can maintain an ISL between them to share control and / or data packets. The ISL can be a layer 2 or layer 3 connection that allows data forwarding between switches 111 and 113. The ISL can also be based on a tunnel (e.g., a VXLAN tunnel) between switches 111 and 113.

[0030] Because the virtual address of VGS102 is associated with both switches 111 and 113, other tunnel endpoints of fabric 110 (such as switches 114, 116, and 118) may view VGS112 as another tunnel endpoint for a tunnel other than switches 111 and 113. To forward traffic to VGS112 in fabric 110, a remote switch such as switch 114, 116, or 118 may operate as a tunnel endpoint, while VGS112 may be another tunnel endpoint. From the corresponding remote switches of fabric 110, there may be a set of paths (e.g., equal cost multiple paths or ECMP) to VGS112. For example, the ECMP may include a path to switch 111 and another path to switch 113. Thus, a corresponding path in the underlying network may lead to one of the participating switches of VGS112.

[0031] In network 100, VGS112 can be coupled to VGS122 via an inter-structure tunnel (i.e., a tunnel coupling structures 110 and 120). Packets between structures 110 and 120 can be received at VGS112 via an intra-structure tunnel within structure 110 and can be encapsulated with a tunnel header associated with the intra-structure tunnel. VGS112 can decapsulate the tunnel header and recapsulate the packet with another tunnel header associated with the inter-structure tunnel. Once the packet is received, VGS122 can decapsulate the tunnel header and recapsulate the packet with another tunnel header associated with the intra-structure tunnel to send the packet to the intended recipient. In order to facilitate the forwarding of packets, VGS112 can determine the route for the intra-structure tunnel using iBGP and the route for the inter-structure tunnel using eBGP.

[0032] Many protocols in network 100 can be accessed using virtual addresses. For example, VRRP acts as a single virtual device ( Figure 1A Multiple devices 142, 144, and 146 (not shown) can be assigned a single virtual MAC address 140. Similarly, devices 142, 144, and 146 can be associated with a single virtual IP address 150. Virtual MAC address 140 can be the source MAC address of control packets sent from devices 142, 144, and 146. If devices 142, 144, and 146 are switches, the virtual device can be a virtual switch. On the other hand, if devices 142, 144, and 146 are servers that provide a shared set of services, the virtual device can be a virtual server. Typically, one of devices 142, 144, and 146 (such as device 144) can be a master device and use virtual MAC address 140 as the source MAC address for data packets in the data plane.

[0033] Devices 142, 144, and 146 may be distributed across network 100. Devices 142 and 146 may be coupled to switches 118 and 114 of fabric 110, while device 144 may be coupled to switch 126 of fabric 120. When protocol daemon (e.g., VRRP daemon) instances on devices 142, 144, and 146 are initialized, devices 142, 144, and 146 may send control messages to switches 118, 126, and 114, respectively. For example, device 142 may send control packet 138 to switch 118 with virtual MAC address 140 as a source address. Thus, switch 118 may receive control packet 138 via local port 106 of coupled device 142 and learn virtual MAC address 140 from a source address field of a header of packet 138. An underlying fabric control plane (e.g., EVPN control plane) of switch 118 may then share the learning of virtual MAC address 140 with other switches of network 100. In the same manner, switches 126 and 114 may also share the learning of virtual MAC address 140 as they learn it from devices 144 and 146, respectively.

[0034] Because multiple switches can advertise the virtual MAC address 140 in the network 100, the switches in the network 100 can be aware that the virtual MAC address 140 is migrating. If the migration occurs more than a threshold number of times, the fabric control plane on the network 100 can perform a MAC address throttling operation, which limits the learning of the virtual MAC address 140 to a period of time. However, if the master device 144 becomes unavailable during the MAC address throttling period, the devices 142 and 146 will not be able to provide high availability to the device 144 because the switches 118 and 144 may not be able to learn the virtual MAC address 140.

[0035] To address this issue, the switch 118 can deploy a priority management system 182. The system 182 can snoop the packets 138 and perform DPI on the packets 138 received from the device 142. The DPI allows the system 182 to determine a priority value 152 associated with the device 142. The priority value 152 can indicate the order in which the device 142 can be selected to provide services based on the protocol. For example, if the protocol is VRRP, the priority value 152 can indicate the order in which the device 142 can be selected as a master device. The system 182 can determine the priority value 152 based on the protocol priority defined for the protocol associated with the virtual MAC address 140.

[0036] If the virtual MAC address 140 is defined for VRRP, the priority value 152 may be determined based on the priority value associated with VRRP. The priority value 152 may be the same as the value of the protocol priority or a derived value (e.g., a smaller value). The priority value 152 may be consistent with the order of importance defined for the protocol. As a result, the priority value 152 may indicate the order of the master devices that should be selected. For example, since there are three devices associated with the virtual MAC address 140, the derived values ​​may be 0, 1, and 2. These values ​​may be assigned to devices 142, 144, and 146 according to the order of importance.

[0037] In the same manner, switches 126 and 114 can determine priority values ​​154 and 156 associated with devices 144 and 146, respectively. The master device can be associated with the most significant (e.g., highest or lowest) priority value of the priority values ​​152, 154, and 156. Once the virtual MAC address 140 is learned from the packet 138, the switch 118 can store the virtual MAC address 140, the ingress port 106, and the priority value 152 in the local routing data structure. The daemon 184 can be responsible for managing information consistency in the network 100. The daemon 184 can also generate a structure routing packet 132 that can include the virtual MAC address 140 and the priority value 152.

[0038] The packet 132 may include a set of fields specific to the priority value 152. For example, if the packet 132 is an EVPN type 2 routing update packet, the packet 132 may include a transitive and optional extended community, which may be referred to as a MAC priority community. The daemon 184 may send the packet 132 via the corresponding tunnel-coupled switch 118. This allows other switches of the network 100 to learn the virtual MAC address 140 and the priority value 152. For example, upon receiving the packet 132 via the tunnel 108, the fabric daemon 188 of the switch 116 may learn the virtual MAC address 140 and the priority value 152 and store them in a local routing data structure in association with the tunnel 108.

[0039] Similarly, when the switch 126 learns the virtual MAC address 140 and the priority 154 from the device 144, the fabric daemon of the switch 126 can send a fabric routing packet 134 to notify other switches of the network 100. In the same manner, when the switch 114 learns the virtual MAC address 140 and the priority 156 from the device 146, the fabric daemon of the switch 114 can send a fabric routing packet 136 to notify other switches of the network 100. The daemon 188 can then learn the virtual MAC address 140 and the associated priority from the fabric routing packet. When the switch 116 receives a fabric routing packet including a corresponding priority value from all devices associated with the virtual MAC address 140, the daemon 188 can suspend MAC address suppression for the virtual MAC address 140 and prevent the suppression period from coinciding with a potential failover event. However, if any of the packets 132, 134, and 136 do not include a corresponding priority value, the daemon 188 may not suspend suppression for the virtual MAC address 140.

[0040] In addition, the priority values ​​152, 154, and 156 can allow the priority management system 186 of the switch 116 to determine the order in which the devices 142, 144, and 146, respectively, take over the role of the master device for the virtual MAC address 140. The daemon 188 can store the virtual MAC address 140 and the corresponding priority value in the local routing data structure. As a result, even when the switch 116 learns the virtual MAC address 140 from different sources, the system 186 can determine the master device based on the priority value. Therefore, the system 186 can program the entry with the most important priority in the local forwarding data structure. In addition, if the master device becomes unavailable, the system 186 can select a backup device associated with the next most important priority from the data structure and program it for the virtual MAC address 140. Therefore, traffic to the virtual MAC address 140 can be redirected toward the new master device. This allows the switch 116 to easily change routing when a new master device is selected based on a protocol (e.g., VRRP).

[0041] Figure 1BAn example of a switch in a distributed tunnel structure according to one aspect of the present application is shown, which efficiently learns and distributes virtual addresses and associated priority values. During operation, switch 118 can receive packet 138 from device 142. System 182 can then perform DPI on packet 138. Switch 118 can be programmed with rules (e.g., access control list (ACL) rules) that allow the forwarding hardware of switch 118 to determine which packets to snoop and perform DPI. For example, a rule can be defined for VRRP control packets. Therefore, if packet 138 is a VRRP control packet, the rule can indicate that a VRRP control packet received from an edge port should be selected for snooping. The rule can also prevent system 182 from snooping VRRP control packets received via a tunnel.

[0042] Once the virtual MAC address 140 is learned from the packet 138, the system 182 can provide the learned information to the daemon 184. The system 182 can also cache the virtual MAC address 140 and the corresponding priority value 152. For subsequent control packets from the device 142, the system 182 can check the cache to determine whether any changes are detected. For example, the priority value 152 of the device 142 can change. As a result, the order of importance for the priority values ​​152 can change. If a change is detected, the system 182 can act accordingly. For example, if the priority value 152 becomes the most important one due to the change, the system 182 can select the device 142 as the master device.

[0043] The daemon 184 may store the virtual MAC address 140, the ingress port 106, and the priority value 152 in an entry 172 of the local routing data structure 170. The entry 172 may also include a virtual IP address 150 associated with the virtual MAC address 140. The switch 118 may also receive the packet 134 from the switch 126 via a tunnel 162 coupled to the VGS 112 (e.g., based on inter-fabric and intra-fabric encapsulation and decapsulation). The daemon 184 may learn the virtual MAC address 140 and may obtain the priority value 154 from the packet 134. If the packet 134 is an EVPN type 2 routing update packet, the packet 134 may indicate that the virtual MAC address 140 has been learned in the network 100. The packet 134 may also include an extended community indicating the priority value 154. The daemon 184 may then store the virtual MAC address 140, the ingress tunnel 162, and the priority value 154 in the entry 174 of the routing data structure 170. In the same manner, switch 118 may also receive packet 136 from switch 114 via tunnel 164. Daemon 184 may then learn virtual MAC address 140 and obtain priority value 156. Daemon 184 may store virtual MAC address 140, ingress tunnel 164, and priority value 156 in entry 176 of routing data structure 170.

[0044] Since the switch 118 has received the corresponding priority values ​​152, 154, and 156 associated with the virtual MAC address 140, the daemon 184 can suspend MAC address suppression for the virtual MAC address 140. In addition, the priority values ​​152, 154, and 156 can allow the system 182 to determine the order in which the devices 142, 144, and 146, respectively, can take over the role of the master device for the virtual MAC address 140. Therefore, the order of importance of the priority values ​​152, 154, and 156 can indicate which device should be selected as the master device. If the priority value 154 is the most important, the system 182 can determine the device 144 as the master device based on the importance of the priority value 154 in the entry 174. Therefore, the switch 118 can program the entry in the forwarding hardware 180 of the switch 118 based on the entry 174.

[0045] Figure 2An example of an overlay routing packet for announcing a virtual address and an associated priority value in an overlay network according to one aspect of the present application is shown. An overlay routing packet 200, such as an EVPN type 2 routing update, may be used to announce a virtual MAC address. The packet 200 may then include a field 202 for including a virtual IP address and another field 204 for including a virtual MAC address. The packet 260 may also include a set of extended community fields 210 to indicate a priority value associated with a source from which the virtual MAC address 140 was learned. The community field 210 may represent a BGP extended community attribute, as defined in Internet Engineering Task Force (IETF) Request for Comments (RFC) 4360. For example, the community field 210 may indicate a transitive opaque extended community (TOEC).

[0046] Community field 210 may include a group of subfields representing a priority value. The group of subfields may include type 212, subtype 214, and value 216. Type 212 may indicate a generic type of a field (e.g., a PDEC field) that may be defined according to a standard (e.g., a BGP extended community attribute) associated with community field 210. Subtype 214 may be a dedicated value indicating that community field 210 corresponds to a priority value. Value 216 may then indicate a priority value. Therefore, type 212 may include a value "0x03" that may indicate a PDEC field. Subtype 214 may include a dedicated value "0x0N".

[0047] Any switch supporting subtype 214 can recognize the dedicated value and determine that field 210 includes information indicating a priority value, and can obtain the corresponding priority value specified in value 216 (e.g., a priority value of "XYZ"). Community field 210 can be transitive because the community can be defined to be opaque to TOEC-based interoperability. As a result, if a switch does not support subtype 214, conventional route advertisements can remain operational in the network. In addition, since community field 210 can be relayed via a tunnel, the switch can relay community field 210 to an upstream switch even if the switch does not support subtype 214. Therefore, efficient learning of virtual MAC addresses 140 can be supported in a heterogeneous overlay network with switches distributed in multiple fabrics.

[0048] Figure 3An example of efficient failover of a virtual address based on an associated priority value according to one aspect of the present application is shown. The order of importance of the priority values ​​152, 154, and 156 can allow the switch 118 to determine the order in which devices 142, 144, and 146 can respectively take over the role of the master device for the virtual MAC address 140. If the priority value 154 is the most important one, then the device 144 can be selected as the master device associated with the virtual MAC address 140. Assume that the master device 144 becomes unavailable due to event 302 (e.g., a link or node failure, a power cycle, or a scheduled update).

[0049] The switch 126 coupled to the device 144 may generate a fabric routing packet 304 indicating the unavailability of the device 144. The switch 126 may then send the packet 304 in the network 100. Upon receiving the packet 304 via the tunnel 162, the switch 118 may be aware of the unavailability. The switch 118 may then extract the entry 174 associated with the device 144 from the routing data structure 170. Thus, the switch 118 is precluded from considering the priority value 154 to select a master device. Instead of waiting for the underlying protocol (such as VRRP) associated with the virtual MAC address 140 to converge, the switch 118 may determine which backup device may take over the role of the new master device based on the remaining priority values ​​152 and 156. Assume that the priority value 152 is more important than the priority value 156. Therefore, the switch 118 may select the device 142 as the new master device associated with the virtual MAC address 140.

[0050] The switch 118 may then program an entry 172 corresponding to the master device 142 in the forwarding hardware 180. As a result, traffic to the virtual MAC address 140 may be redirected toward the device 142 via the interface 106. This allows the switch 118 to easily change the routing in the forwarding hardware 180 while the protocol daemon 350 (e.g., VRRP daemon) performs the master selection process. Because the protocol daemon 350 may also use the remaining priority values ​​152 and 156 to select the next master, the protocol daemon 350 may independently select the device 142 as the master and instruct the forwarding hardware 180 to program the interface 106 as the forwarding interface for the virtual MAC address 140. By pre-programming such entries in the forwarding hardware 180, the switch 118 may facilitate fast convergence for the failover process.

[0051] Figure 4AA flow chart illustrating a process for a switch to learn a virtual address and an associated priority value according to one aspect of the present application is presented. Operations associated with the process may be supported by a priority management system of the switch. During operation, the switch may select a received control packet for snooping based on one or more rules (operation 402). For example, if the control packet is a VRRP control packet, one of the rules may indicate that the VRRP control packet should be snooped when received from an edge port. Another rule may prevent the switch from snooping VRRP control packets received via a tunnel. The switch may then perform DPI on the snooped control packet (operation 404) and determine a virtual address and a protocol priority (e.g., a VRRP priority) based on the DPI (operation 406).

[0052] The switch may determine a priority value from the protocol priority according to the importance of the priority (operation 408). The switch may then provide the virtual address and the priority value to a fabric daemon (e.g., an EVPN daemon) (operation 410). The switch may also compare the priority value to a currently cached priority value (if any) (operation 412). The switch may determine whether a change is detected (operation 414). If a change is detected, the switch may indicate the change to the fabric daemon (operation 416) and update the cache with the virtual address and the priority value (operation 418).

[0053] Figure 4B A flow chart illustrating a process for a switch according to one aspect of the present application to distribute virtual addresses and associated priority values ​​in an overlay network is presented. Operations associated with the process may be supported by a fabric daemon of the switch. During operation, the switch may obtain a virtual address and a priority value for a device associated with the virtual address (operation 432). The switch may generate an overlay routing packet for the virtual address (operation 434) and incorporate the priority value into the overlay routing packet (operation 436). The switch may then send the overlay routing packet via the corresponding tunnel (operation 438). The switch may generate an overlay routing packet with the virtual address and the priority value for the corresponding tunnel of the coupled switch, thereby distributing information in the overlay network.

[0054] Figure 4CA flow chart illustrating a process for a switch to program a virtual address based on an associated priority value according to one aspect of the present application is presented. During operation, the switch may receive an overlay routing packet with a priority value (operation 452) and update a local routing structure (e.g., by creating an entry or updating an entry) based on the overlay routing packet (operation 454). The switch may determine whether the priority value in the overlay routing packet is recognized (operation 456). If the priority value is recognized, the switch may incorporate the priority value into the routing data structure (operation 458).

[0055] On the other hand, if no priority value is identified, the switch may bypass processing of the priority value in the overlay routing packet (operation 460). Once the priority value is processed, the switch may also determine whether the priority value is received from all devices associated with the address in the overlay routing packet (operation 462). If the priority value is received from all devices, the switch may suspend suppression of the address in the overlay routing packet (operation 464). Once it is determined whether the priority value is received from all devices (operation 462) or suppression is suspended (operation 464), the switch may determine whether there are multiple entries associated with the address in the overlay routing packet (operation 466).

[0056] If there are multiple entries, the switch may select the entry associated with the most significant priority value (operation 468). On the other hand, if there are not multiple entries, the routing data structure may include a single entry for the address. The switch may then select an entry from the routing data structure (operation 470). Once an entry is selected (operation 468 or 470), the switch may program local forwarding hardware based on the entry (operation 472). This allows the forwarding hardware to forward packets destined for the address toward the device with the most significant priority value.

[0057] Figure 5 A flow chart illustrating a process by which a switch facilitates failover associated with a virtual address according to one aspect of the present application is presented. During operation, the switch may receive an overlay routing packet indicating extraction of a virtual address from a remote device (operation 502). The switch may then update a local routing structure by removing an entry associated with the remote device (operation 504). Subsequently, the switch may determine whether there are multiple entries associated with the remaining virtual address (operation 504).

[0058] If multiple entries remain, the switch may select the entry associated with the most significant priority value (operation 508). On the other hand, if multiple entries are not left, the routing data structure may include a single entry for the virtual address. The switch may then select an entry from the routing data structure (operation 510). Once an entry is selected (operation 508 or 510), the switch may program the local forwarding hardware based on the entry (operation 512).

[0059] Figure 6 An example of a switch supporting efficient learning of virtual addresses according to one aspect of the present application is shown. In this example, the switch 600 may include multiple communication ports 602, a packet processor 610, and a storage device 650. The switch 600 may also include switch hardware 660 (e.g., processing hardware of the switch 600, such as its application-specific integrated circuit (ASIC) chip), which includes information based on which the switch 600 processes the packet (e.g., determines the output port for the packet). The packet processor 610 can extract and process header information from the received packet. The packet processor 610 can identify a switch identifier (e.g., a MAC address and / or an IP address) associated with the switch 600 in the header of the packet.

[0060] The communication port 602 may include an inter-switch communication channel for communicating with other switches and / or user equipment. The communication channel may be implemented via a conventional communication port and based on any open or proprietary format. The communication port 602 may include one or more Ethernet ports that can receive frames encapsulated in an Ethernet header. The communication port 602 may also include one or more IP ports that can receive IP packets. The IP port can receive IP packets and may be configured with an IP address. The packet processor 610 may process Ethernet frames and / or IP packets. The various ports of the communication port 602 may be used as an inlet port and / or an outlet port.

[0061] The switch 600 may maintain a database 652 (e.g., in a storage device 650). The database 652 may be a relational database and may run on one or more database management system (DBMS) instances. The database 652 may store information associated with routing, configuration, and interfaces of the switch 600. The database 652 may store routing data structures (e.g., RIBs) for the switch 600. The switch 600 may include a tunnel logic block 670 that may establish a tunnel with a remote switch in the overlay network, thereby allowing the switch 600 to operate as a tunnel endpoint. The switch 600 may include a priority logic block 630 that may allow the switch 600 to efficiently learn virtual addresses associated with multiple devices across the overlay network.

[0062] The priority logic block 630 may include a DPI logic block 632, an update logic block 634, and a selection logic block 636. The DPI logic block 632 may select a control packet for snooping based on one or more rules (e.g., programmed in the switch hardware 660). The DPI logic block 632 may also snoop the control packet and perform DPI on the control packet to determine a priority value associated with the virtual address based on the control packet. The priority logic block 630 may suspend MAC address suppression when all priority values ​​associated with the virtual address are obtained. The update logic block 634 may update the local routing data structure based on information from the control packet, which may include a priority value. The update logic block 634 may also notify various remote switches of the network about the virtual address and the priority value. The selection logic block 636 may select a master device based on the importance of the priority value. The selection logic block 636 may also select a new master device based on the importance of the remaining priority values ​​to facilitate failover.

[0063] The description herein is given to enable any person skilled in the art to make and use the invention, and is provided in the context of a specific application and its requirements. Various modifications to the disclosed examples will be apparent to those skilled in the art, and the general principles defined herein may be applied to other examples and applications without departing from the spirit and scope of the invention. Therefore, the invention is not limited to the examples shown, but is in the widest scope consistent with the claims.

[0064] One aspect of the present technology may provide a system for efficiently learning virtual addresses in a network. During operation, the system may receive a control packet associated with a network protocol that operates based on virtual addresses assigned to multiple devices from a first device. The multiple devices may include a first device and provide services using virtual addresses. If the control packet is associated with a protocol, the system may perform a deep packet inspection on the control packet. Based on the inspection, the system may determine a first priority value indicated in the control packet. The first priority value may indicate the order in which the first device provides services based on the protocol. The system may then generate a notification packet including a virtual address and a first priority value for a remote switch in the network, thereby allowing the remote switch to learn the virtual address associated with the first priority value.

[0065] In a variation of this aspect, the protocol may include a Virtual Router Redundancy Protocol (VRRP).The first priority value may then indicate an order in which the first device is selected as a master VRRP device for the virtual address.

[0066] In a variation of this aspect, the network may include an overlay tunnel structure including a plurality of tunnels. The switch and the remote switch may then be coupled via the tunnels.

[0067] In another variation, the structure may include an Ethernet Virtual Private Network (EVPN).The notification packet may then include an EVPN routing update.

[0068] In another variation, the first priority value may be included in a transitive extended community in the EVPN routing update.

[0069] In a variation of this aspect, the system may learn the virtual address from a source address field of a header of a control packet received via the local port.

[0070] In a variation of this aspect, the system may receive a notification packet including a second priority value and a virtual address associated with a second device for a second switch in the network. Here, the second priority value may indicate an order in which the second device provides services based on the protocol. The system may store the virtual address in a local routing data structure in association with the second priority value. The local routing data structure may also include a virtual address associated with the first priority value. The system may then select a master device associated with the virtual address from the first and second devices based on the first and second priority values.

[0071] In a variation of this aspect, once it is determined that the master is unavailable, the system may select a new master and program the virtual address in the forwarding hardware of the switch associated with the new master before receiving updates from the protocol.

[0072] In a variation of this aspect, the system can determine whether the switch has received corresponding priority values ​​for all devices associated with the virtual address. Once corresponding priority values ​​for all devices are received, the system can suspend address suppression in the network, wherein address suppression prevents learning of the virtual address in the network for a predefined period of time.

[0073] In a variation of this aspect, the system may maintain a cache associated with the virtual address and determine whether the first priority value has changed from a previous priority value stored in the cache.

[0074] The data structures and codes described in this detailed description are typically stored on a computer-readable storage medium, which can be any device or medium capable of storing code and / or data for use by a computer system. Computer-readable storage media include, but are not limited to, volatile memory, non-volatile memory, magnetic and optical storage devices such as disks, tapes, CDs (compact disks), DVDs (digital versatile disks or digital video disks), or other media capable of storing computer-readable media now known or later developed.

[0075] The methods and processes described in the detailed description section can be implemented as code and / or data, which can be stored in a computer-readable storage medium as described above. When a computer system reads and executes the code and / or data stored on the computer-readable storage medium, the computer system executes the methods and processes embodied as data structures and code and stored in the computer-readable storage medium.

[0076] The methods and processes described herein may be performed by and / or included in hardware logic blocks or devices. These logic blocks or devices may include, but are not limited to, application specific integrated circuit (ASIC) chips, field programmable gate arrays (FPGAs), dedicated or shared processors that execute a specific software logic block or piece of code at a specific time, and / or other programmable logic devices now known or later developed. When the hardware logic blocks or devices are activated, they execute the methods and processes included therein.

[0077] The above descriptions of the embodiments of the present invention are for illustration and description purposes only. They are not intended to be exhaustive or limit the present disclosure. Therefore, many modifications and variations will be apparent to those skilled in the art. The scope of the present invention is defined by the appended claims.

Claims

1. A method comprising: receiving, by a switch in a network, from a first device a control packet associated with a network protocol, wherein the network protocol operates based on a virtual address assigned to a plurality of devices, the plurality of devices including the first device and providing a service using the virtual address; performing deep packet inspection on the control packet at the switch in response to the control packet being associated with the protocol; determining, based on the inspecting, a first priority value indicated in the control packet, wherein the first priority value indicates an order in which the first device provides the service based on the protocol; as well as A notification packet including the virtual address and a first priority value is generated for a remote switch in the network, thereby allowing the remote switch to learn the virtual address associated with the first priority value.

2. The method of claim 1, wherein the protocol comprises a Virtual Router Redundancy Protocol (VRRP), and wherein the first priority value indicates an order in which the first device is selected as a master VRRP device for the virtual address. 3 . The method of claim 1 , wherein the network comprises an overlay tunnel structure comprising a plurality of tunnels, wherein the switch and the remote switch are coupled via the tunnels.

4. The method of claim 3, wherein the fabric comprises an Ethernet Virtual Private Network (EVPN), and wherein the notification packet comprises an EVPN routing update.

5. The method of claim 4, wherein the first priority value is included in a transitive extended community in the EVPN routing update.

6. The method of claim 1, further comprising learning the virtual address from a source address field of a header of the control packet received via a local port.

7. The method according to claim 1, further comprising: receiving, for a second switch in the network, a notification packet including a second priority value and the virtual address associated with a second device, wherein the second priority value indicates an order in which the second device provides the service based on the protocol; storing the virtual address associated with the second priority value in a local routing data structure, wherein the local routing data structure also includes the virtual address associated with the first priority value; and A master device associated with the virtual address is selected from the first device and the second device based on the first priority value and the second priority value.

8. The method according to claim 7, further comprising: In response to determining unavailability of the master device, selecting a new master device; as well as The virtual address is programmed in forwarding hardware of the switch associated with the new master device prior to receiving an update from the protocol.

9. The method according to claim 1, further comprising: determining whether the switch has received corresponding priority values ​​for all devices associated with the virtual address; as well as In response to the switch receiving corresponding priority values ​​for all devices, address suppression in the network is suspended, wherein the address suppression prevents learning of the virtual address in the network for a predefined period of time.

10. The method according to claim 1, further comprising: maintaining a cache associated with the virtual address; as well as A determination is made as to whether the first priority value has changed from a previous priority value stored in the cache.

11. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor of a network switch, cause the processor to perform a method comprising: receiving a control packet associated with a network protocol from a first device, wherein the network protocol operates based on a virtual address assigned to a plurality of devices, the plurality of devices including the first device and providing services using the virtual address; performing deep packet inspection on the control packet at the switch in response to the control packet being associated with the protocol; determining, based on the inspecting, a first priority value indicated in the control packet, wherein the first priority value indicates an order in which the first device provides the service based on the protocol; as well as A notification packet including the virtual address and the first priority value is generated for a remote switch in the network, thereby allowing the remote switch to learn the virtual address associated with the first priority value.

12. The non-transitory computer-readable storage medium of claim 11, wherein the protocol comprises a Virtual Router Redundancy Protocol (VRRP), and wherein the first priority value indicates an order in which the first device is selected as a master VRRP device for the virtual address.

13. The non-transitory computer-readable storage medium of claim 11, wherein the network comprises an overlay tunnel structure comprising a plurality of tunnels, wherein the switch and the remote switch are coupled via a tunnel.

14. The non-transitory computer-readable storage medium of claim 13, wherein the structure comprises an Ethernet virtual private network (EVPN), and wherein the notification packet comprises an EVPN routing update, and wherein the first priority value is included in a transitive extended community in the EVPN routing update.

15. The non-transitory computer-readable storage medium of claim 11, wherein the method further comprises learning the virtual address from a source address field of a header of the control packet received via a local port.

16. The non-transitory computer-readable storage medium of claim 11, wherein the method further comprises: receiving, for a second switch in the network, a notification packet including a second priority value and a virtual address associated with a second device, wherein the second priority value indicates an order in which the second device provides the service based on the protocol; storing the virtual address associated with the second priority value in a local routing data structure, wherein the local routing data structure also includes the virtual address associated with the first priority value; and A master device associated with the virtual address is selected from the first device and the second device based on the first priority value and the second priority value.

17. The non-transitory computer readable storage medium of claim 16, wherein the method further comprises: In response to determining unavailability of the master device, selecting a new master device; as well as The virtual address is programmed in forwarding hardware of the switch associated with the new master device prior to receiving an update from the protocol.

18. The non-transitory computer-readable storage medium of claim 11, wherein the method further comprises: determining whether the switch has received corresponding priority values ​​for all devices associated with the virtual address; as well as In response to the switch receiving corresponding priority values ​​for all devices, address suppression in the network is suspended, wherein the address suppression prevents learning of the virtual address in the network for a predefined period of time.

19. The non-transitory computer readable storage medium of claim 11, wherein the method further comprises: maintaining a cache associated with the virtual address; as well as A determination is made as to whether the first priority value has changed from a previous priority value stored in the cache.

20. A computer system comprising: processor; Storage devices; a communication port for receiving a control packet associated with a network protocol from a first device, wherein the network protocol operates based on a virtual address assigned to a plurality of devices, the plurality of devices including the first device and providing a service using the virtual address; control circuitry for facilitating checking the logic block and updating the logic block; The checking logic block is used to: In response to the control packet being associated with the protocol, performing deep packet inspection on the control packet; and determining, based on the inspecting, a first priority value indicated in the control packet, wherein the first priority value indicates an order in which the first device provides the service based on the protocol; and The update logic block generates a notification packet including the virtual address and the first priority value for a remote computer system in the network, thereby allowing the remote computer system to learn the virtual address associated with the first priority value.