Layer-2 networking storm control in a virtualized cloud environment
Techniques are described for communications in an L2 virtual network. In an example, the L2 virtual network includes a plurality of L2 compute instances hosted on a set of host machines and a plurality of L2 virtual network interfaces and L2 virtual switches hosted on a set of network virtualization devices. An L2 virtual network interface emulates an L2 port of the L2 virtual network. Storm control information applicable to the L2 port is sent to a network virtualization device that hosts the L2 virtual network interface.
1 . A method comprising:
hosting a Layer 2 virtual network interface and a Layer 2 virtual switch that belong to a Layer 2 virtual network of a customer, wherein:
the Layer 2 virtual network interface and the Layer 2 virtual switch are associated with a Layer 2 compute instance that belongs to the Layer 2 virtual network,
the Layer 2 compute instance is hosted on a host machine of a physical network that comprises a network virtualization device, the host machine and the network virtualization device being communicatively coupled, and
the Layer 2 virtual network is hosted on the physical network and comprises a plurality of Layer 2 compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of Layer 2 virtual switches;
storing storm control information that indicates a storm control policy and an action to be performed upon violation of the storm control policy, wherein the storm control information is generated based on a storm control configuration indicated by input of the customer and on mapping information that associates an address of the Layer 2 virtual network and an address of the physical network;
monitoring traffic flow to and/or from the Layer 2 virtual network interface;
determining that the traffic flow violates the storm control policy; and
initiating the action based on the traffic flow violating the storm control policy.
2 . The method of claim 1 , wherein the storm control policy indicates a maximum transmission rate for ingress traffic to the Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of ingress frames to the Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping an ingress frame.
3 . The method of claim 2 , wherein the storm control policy indicates an escalation policy with an escalation action to be applied upon repeated violations of the storm control policy.
4 . The method of claim 3 , wherein the storm control policy further indicates a time duration for the escalation action, wherein the escalation action comprises a link down, and wherein determining that the traffic flow violates the storm control policy further comprises determining that the transmission rate persisted longer than the time duration, and wherein initiating the action further comprises linking down the Layer 2 virtual network interface.
5 . The method of claim 1 , wherein the Layer 2 virtual network interface is a first Layer 2 virtual network interface, wherein the storm control policy indicates a maximum transmission rate for ingress traffic to a second Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of frames from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping a frame from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface.
6 . The method of claim 1 , wherein the input of the customer indicates a port to which the storm control configuration applies, and wherein the storm control information is further generated based on a correspondence between the port and the Layer 2 virtual network interface and applies to the Layer 2 virtual network interface based on the correspondence.
7 . The method of claim 1 , wherein the storm control policy applies to at least one of unicast, broadcast, or multicast frames.
8 . A network virtualization device comprising:
one or more processors; and
one or more non-transitory computer-readable storage media storing instructions that, upon execution by the one or more processors, configure the network virtualization device to:
host a Layer 2 virtual network interface and a Layer 2 virtual switch that belong to a Layer 2 virtual network of a customer, wherein:
the Layer 2 virtual network interface and the Layer 2 virtual switch are associated with a Layer 2 compute instance that belongs to the Layer 2 virtual network,
the Layer 2 compute instance is hosted on a host machine of a physical network that comprises the network virtualization device, the host machine and the network virtualization device being communicatively coupled, and
the Layer 2 virtual network is hosted on the physical network and comprises a plurality of Layer 2 compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of Layer 2 virtual switches;
store storm control information that indicates a storm control policy and an action to be performed upon violation of the storm control policy, wherein the storm control information is generated based on a storm control configuration indicated by input of the customer and on mapping information that associates an address of the Layer 2 virtual network and an address of the physical network;
monitor traffic flow to and/or from the Layer 2 virtual network interface;
determine that the traffic flow violates the storm control policy; and
initiate the action based on the traffic flow violating the storm control policy.
9 . The network virtualization device of claim 8 , wherein the storm control policy indicates a maximum transmission rate for ingress traffic to the Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of ingress frames to the Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping an ingress frame.
10 . The network virtualization device of claim 9 , wherein the storm control policy indicates an escalation policy with an escalation action to be applied upon repeated violations of the storm control policy.
11 . The network virtualization device of claim 10 , wherein the storm control policy further indicates a time duration for the escalation action, wherein the escalation action comprises a link down, and wherein determining that the traffic flow violates the storm control policy further comprises determining that the transmission rate persisted longer than the time duration, and wherein initiating the action further comprises linking down the Layer 2 virtual network interface.
12 . The network virtualization device of claim 8 , wherein the Layer 2 virtual network interface is a first Layer 2 virtual network interface, wherein the storm control policy indicates a maximum transmission rate for ingress traffic to a second Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of frames from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping a frame from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface.
13 . The network virtualization device of claim 8 , wherein the input of the customer indicates a port to which the storm control configuration applies, and wherein the storm control information is further generated based on a correspondence between the port and the Layer 2 virtual network interface and applies to the Layer 2 virtual network interface based on the correspondence.
14 . The network virtualization device of claim 8 , wherein the storm control policy applies to at least one of unicast, broadcast, or multicast frames.
15 . One or more non-transitory computer-readable storage media storing instructions that, upon execution by one or more processors, cause the one or more processors to perform operations comprising:
hosting a Layer 2 virtual network interface and a Layer 2 virtual switch that belong to a Layer 2 virtual network of a customer, wherein:
the Layer 2 virtual network interface and the Layer 2 virtual switch are associated with a Layer 2 compute instance that belongs to the Layer 2 virtual network,
the Layer 2 compute instance is hosted on a host machine of a physical network that comprises a network virtualization device, the host machine and the network virtualization device being communicatively coupled, and
the Layer 2 virtual network is hosted on the physical network and comprises a plurality of Layer 2 compute instances, a plurality of Layer 2 virtual network interfaces, and a plurality of Layer 2 virtual switches;
storing storm control information that indicates a storm control policy and an action to be performed upon violation of the storm control policy, wherein the storm control information is generated based on a storm control configuration indicated by input of the customer and on mapping information that associates an address of the Layer 2 virtual network and an address of the physical network;
monitoring traffic flow to and/or from the Layer 2 virtual network interface;
determining that the traffic flow violates the storm control policy; and
initiating the action based on the traffic flow violating the storm control policy.
16 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the storm control policy indicates a maximum transmission rate for ingress traffic to the Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of ingress frames to the Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping an ingress frame.
17 . The one or more non-transitory computer-readable storage media of claim 16 , wherein the storm control policy indicates an escalation policy with an escalation action to be applied upon repeated violations of the storm control policy.
18 . The one or more non-transitory computer-readable storage media of claim 17 , wherein the storm control policy further indicates a time duration for the escalation action, wherein the escalation action comprises a link down, and wherein determining that the traffic flow violates the storm control policy further comprises determining that the transmission rate persisted longer than the time duration, and wherein initiating the action further comprises linking down the Layer 2 virtual network interface.
19 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the Layer 2 virtual network interface is a first Layer 2 virtual network interface, wherein the storm control policy indicates a maximum transmission rate for ingress traffic to a second Layer 2 virtual network interface, wherein the action comprises frame dropping, wherein determining that the traffic flow violates the storm control policy comprises determining that a transmission rate of frames from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface exceeds the maximum transmission rate, and wherein initiating the action comprises dropping a frame from the first Layer 2 virtual network interface to the second Layer 2 virtual network interface.
20 . The one or more non-transitory computer-readable storage media of claim 15 , wherein the input of the customer indicates a port to which the storm control configuration applies, and wherein the storm control information is further generated based on a correspondence between the port and the Layer 2 virtual network interface and applies to the Layer 2 virtual network interface based on the correspondence.