Talking about the Network Flooding Technology in the data center, talking about the flood in the data center
People engaged in network technology should be familiar with the concept of flooding. In essence, network devices send data received from an interface from all interfaces of devices except this interface, the reason for this is that data packets cannot be found in the forwarding table of the network device that is consistent with the destination address of the data packet. In this case, data packets are sent from all interfaces, in order to find the target host to receive data packets, it can be understood as a layer-2 forwarding behavior. Some people call this forwarding phenomenon a flood or a flood. The flood technology does not require network devices to maintain the network topology and related route table items. It only requires nodes that receive information to forward data packets in broadcast mode, and then cascade devices to transmit data packets. Pan-flood is a common phenomenon in the data center network. In many cases, pan-flood Forwarding is benign and has no impact on the network. The requirements of Ethernet standards for network devices are also to allow a short period of flooding, especially for Frame-based devices. As long as the flood ends in a very short period of time, is a normal network phenomenon.
From the technical implementation point of view, it is easy to confuse flooding with traffic broadcast. Actually, there are essential differences between the two. The destination address of a broadcast packet is a user of the whole network. When a broadcast address is used to send data packets on all ports, the behavior is active and can be understood as layer-3 behavior, broadcast is used in the interaction of many protocols. For example, when ARP learning does not know the MAC address corresponding to the destination IP address, it is obtained by broadcasting ARP packets. When DHCP gets the address from the DHCP server, all requests must be sent through broadcast, waiting for the DHCP server to respond, as well as OSFP/BGP/ISIS Hello packets, LLDP/STP/VRRP and other Protocol Status Monitoring packets, although the destination address is not broadcast, but multicast address, it is actually sent through broadcast. The target address of pan-flood is not a broadcast address. For a specific unicast address, the forwarding table item is not found on the network device. Therefore, pan-flood occurs, this is also in line with the purpose of Ethernet best effort to forward. The essence of broadcast is to forward data across the network, while Pan-flood is a result of forwarding lookup and passively generated. We certainly hope that the less flood traffic in the network, the better. If the processing of broadcast packets is poor, it is easy to occupy too much network bandwidth, or even cause a broadcast storm, which seriously affects network services. If the processing of flood packets is poor, it will also occupy too much network bandwidth, it has an impact on network services. Sometimes, although the network bandwidth is not fully occupied, too much useless traffic will rush to the server, which will also affect the forwarding performance of the server, resulting in extremely slow service processing, until the business is interrupted. Broadcast and flood, the two have the same effect on the network.
The network of the data center allows a flood of traffic. Specifically, it cannot be completely avoided. Especially before the forwarding table item is established, the traffic is learned by the flood, after learning the complete forwarding table item, the volume of flood naturally disappears. In the latest network technology, such as VXLAN, address learning is also implemented using the flood mode to learn the ing between VTEP and MAC. Of course, the EVPN environment saves off the pan-flood learning process. The network of the data center must have a certain degree of network bandwidth redundancy, so as to avoid traffic flooding for a short period of time and fill up the bandwidth, affecting normal traffic interaction. The data center's network traffic is flooded for a long time from two sources: first, the network structure is special or the network device has problems, and the forwarding table item cannot be learned for a long time on the network device, A large volume of traffic flooding occurs. Second, flood attacks occur. Many network attack methods are also implemented using the characteristics of flood attacks. For example, a SYN Flood attack uses a forged IP address to send a request to the attacked device, and the response message sent by the attacked device will never reach the destination, the attacked end consumes resources while waiting to close the connection. If there are thousands of such connections, the host resources will be exhausted to achieve the purpose of the attack; UDP flood attacks allow attackers to send a large number of UDP packets to the server and send a large number of replies to the server. ARP packets flood attacks are similar to UDP flood attacks, and malicious users send a large number of ARP packets, this results in an overflow of ARP entries on the layer-3 network device, affecting normal user forwarding. A long flood of traffic causes a great deal of damage to the network, consuming a large amount of network bandwidth resources, making normal network services unable to be forwarded, and even paralyzing the network of the entire data center.
The causes and attack types of pan-flood are varied. In terms of technology, pan-flood in each case is different, so we need to treat it differently. Because of this, different attack types are also prevented accordingly. To defend against flood attacks, the data center network can develop preventive measures for different types of flood attacks. An effective method is to improve the attack protection performance of network devices and add network filtering. According to the Filtering Application description in RFC 2827, deploy Filtering for input sources, the ISP rejects a data packet whose source IP address does not belong to its source subnet for further routing. You can also add a dedicated firewall to filter out various network protocol attacks to protect network devices from interference. Also, narrow the broadcast domain. For example, the layer-3 forwarding and interconnection method is used to avoid the production of broadcast domains. In this way, even if flood occurs, the broadcast domain is small, the usage of network bandwidth is not very serious. Many technical implementations have been available for reference in the aspect of flood suppression. We will not detail them one by one here.
We need to rationally look at the Pan-flood phenomenon. Although the pan-flood phenomenon causes great harm to the data center, we should not talk about the pan-flood, only sustained traffic flooding can have a substantial impact on network services. When the network of a data center does not add new services, but the bandwidth usage continues to decline, pay attention to whether there is a long period of traffic flooding. When the access speed of servers in the same broadcast domain of a data center starts to slow down, you also need to check whether there is a flooding problem. It is also very easy to determine whether a flooding problem has occurred, as long as the laptop is connected to any port of the network device through a network cable for packet capture, if it is forwarded to a large number of persistent packets, it is not forwarded to the connection port of the notebook, this proves that traffic flooding occurs. In this case, we need to take corresponding solutions based on the causes of flooding to eliminate traffic flooding as soon as possible and reduce the occupation of network bandwidth.