信息网络安全 ›› 2020, Vol. 20 ›› Issue (3): 36-44.doi: 10.3969/j.issn.1671-1122.2020.03.005

• 技术研究 • 上一篇    下一篇

云环境下基于Kubernetes集群系统的容器网络研究与优化

刘渊, 乔巍()   

  1. 江南大学数字媒体学院,无锡 214122
  • 收稿日期:2019-12-28 出版日期:2020-03-10 发布日期:2020-05-11
  • 作者简介:

    作者简介:刘渊(1967—),男,江苏,教授,硕士,主要研究方向为网络信息系统、网络安全、社交网络;乔巍(1991—),男,甘肃,硕士研究生,主要研究方向为云计算、容器虚拟化技术。

  • 基金资助:
    国家自然科学基金[61972182]

Research and Optimization of Container Network Based on Kubernetes Cluster System in Cloud Environment

LIU Yuan, QIAO Wei()   

  1. School of Digital Media, Jiangnan University, Wuxi 214122, China
  • Received:2019-12-28 Online:2020-03-10 Published:2020-05-11

摘要:

轻量级云基础架构对微服务的重要性不言而喻,很多基于容器的虚拟化服务被相继提出。在网络方面,容器网络接口技术保证了基于虚拟机的云和容器之间的连接异构网络服务。为了提高云系统的网络性能,文章研究了基于CNI技术的网络配置的详细设计,对基于Flannel的Kubernetes集群系统进行优化,提出了一种自适应Overlay Network与Directrouting结合模式的容器网络,并与多种基于CNI的网络拓展件性能进行了对比。针对集群网络无网络策略的缺陷,文章将Canal引入Flannel构架,增加了集群系统的网络策略功能,提高了网络访问安全性。文章搭建了测试集群系统,利用网络性能测试工具Iperf3对常见容器网络进行了性能测试。结果显示,该方案比原Flannel集群系统的容器网络传输速率平均提升25%左右,与其他方案相比,传输速率也有提升。该方案有利于实际环境集群系统的性能提升,实现了网络访问控制,增加了安全性。

关键词: 容器网络, 云计算, 网络性能, 容器集群

Abstract:

The importance of lightweight cloud infrastructure for microservices is self-evident, and many container-based virtualization services have been proposed. On the network side, a container network interface technology is proposed to ensure that heterogeneous network services are connected between the virtual machine-based cloud and the container. In order to improve the network performance of the cloud system, the detailed design of the network configuration based on CNI technology is studied, and the Kubernetes cluster system based on Flannel is optimized. An adaptive overlay network and directrouting combined container network model is proposed, and a variety of CNI-based container networks are compared. In view of the lack of network strategy in cluster networks, Canal was introduced into the Flannel architecture to increase the network strategy function of the cluster system and improve network access security; set up a test cluster system and use the network performance test tool Iperf3 to perform common container networks Perform performance tests. The results show that compared with the original Flannel cluster network, the transmission rate of this solution is increased by about 25% on average, and it is also improved compared with other solutions. Overall, it is beneficial to the performance improvement of the actual environment cluster system; the network access control is realized, and the security is also increased.

Key words: container network, cloud computing, network performance, container cluster

中图分类号: