In the Underlay network, how to recycle zombie IPs? The cloud native network open source project--Spiderpool provides a corresponding solution. Let's take a look. 01Underlay Network SolutionWhy do we need an Underlay network solution? In a data center private cloud, there are many application scenarios that require an Underlay network:
With the increasing popularity of private cloud in data centers, underlay networks, as an important part of data center network architecture, have been widely used in data center network architecture to provide more efficient network transmission and better network topology management capabilities. 02Zombie IP Problem in Underlay NetworkWhat is a zombie IP? The IP addresses assigned to Pods are recorded in IPAM, but these Pods no longer exist in the Kubernetes cluster. These IPs can be called zombie IPs. In actual production, it is inevitable that zombie IPs will appear in the cluster, such as:
In a Kubernetes cluster using an Underlay network, when zombie IPs appear, the following problems may occur:
03Solution: SpiderpoolSpiderpool (https://github.com/spidernet-io/spiderpool) is an Underlay network solution for Kubernetes. By providing lightweight meta plug-ins and IPAM plug-ins, Spiderpool flexibly integrates and strengthens the existing CNI projects in the open source community, simplifies the operation and maintenance of IPAM in the Underlay network to the greatest extent, and makes multi-CNI collaboration truly feasible. It supports running in bare metal, virtual machines, public clouds and other environments. Spiderpool uses the following IP recovery mechanism to solve the problem of faulty IP in the Underlay network:
04Equal Proportional IP Allocation TestIPAM requires the ability to accurately allocate IP addresses, and Spiderpool also has a robust faulty IP recovery capability. The author conducted the following proportional IP allocation test to verify this. This proportional IP allocation test is based on the 0.3.1 version of the CNI Specification, using Macvlan with Spiderpool (version v0.6.0) as the test solution, and selected the open source community's Whereabouts (version v0.6.2) with Macvlan, Kube-ovn (version v1.11.8) Calico-ipam (version v3.26.1) several network solutions for comparison, the test scenario is as follows: 1. Create 1,000 Pods and limit the number of available IPv4/IPv6 addresses to 1,000 each, ensuring that the ratio of available IP addresses to Pods is 1:1. 2. Use the following command to rebuild the 1,000 Pods at once, and record the time taken for all the 1,000 rebuilt Pods to run. Verify that when the IP address is fixed, in the case of concurrently rebuilt Pods involving IP address recovery, preemption, and conflict, each IPAM plug-in can quickly adjust the limited IP address resources to ensure the speed of application recovery. 3. Power off all nodes and then power them on again to simulate fault recovery, and record the time it takes for 1,000 Pods to reach the Running state again. 4. Delete all Deployments and record the time it takes for all Pods to completely disappear. The test data is as follows: Spiderpool and Kube-ovn's IPAM allocation principle is that all Pods of the entire cluster node are allocated IPs from the same CIDR, so IP allocation and release need to face fierce competition, and the IP allocation performance challenge will be greater; Whereabouts and Calico's IPAM allocation principle is that each node has a small IP set, so IP allocation competition is relatively small, and IP allocation performance challenges will be small. However, from the experimental data, although Spdierpool's IPAM principle is "disadvantaged", its IP allocation performance is very good. During the test of the Macvlan + Whereabouts combination, 922 Pods in the created scenario reached the Running state at a relatively uniform rate within 14m25s. The Pod growth rate has since been greatly reduced, and it took 21m49s for 1,000 Pods to reach the Running state. As for the rebuilt scenario, after 55 Pods reached the Running state, Whereabouts could no longer allocate IPs to Pods. Since the number of IP addresses and Pods in the test scenario is 1:1, if the IPAM component fails to recycle IPs correctly, the new Pod will not be able to start due to lack of IP resources and inability to obtain available IPs. 05 ConclusionFrom the above tests, we can see that Spiderpool performs well in various test scenarios. Although Spiderpool is an IPAM solution for Underlay networks, its IP allocation and recovery capabilities are comparable to those of mainstream Overlay CNI (such as Calico), although Spiderpool faces more complex IP address preemption and conflict issues. |
<<: What are LPWAN technologies?
>>: V2X communication: A new era of cooperation between vehicles and infrastructure
LocVps is a long-established Chinese hosting comp...
Now, China Telecom and China Unicom's 100M fi...
In the 5G era, the demand for ultra-broadband acc...
Improving battery life has been a challenge for a...
On October 26, the Ministry of Industry and Infor...
2013 was the first year of 4G in China. Seven yea...
The so-called 5G commercialization requires beare...
What is the most valuable thing in a data center?...
It is well known that the number of women working...
As early as several years ago, major market resea...
For many people, the cold winter months are upon ...
The networking world is known for widespread chan...
Hostwinds is a long-established foreign hosting c...
The results of the bidding for 5G wireless main e...
I just shared the news about XenSpec a few days a...