Method and system for containerizing to realize stateless configuration and networking of IPv6 address

Through container cluster and RA message notification mechanism, stateless configuration and networking of IPv6 addresses are realized, solving the problems of IPv6 address allocation complexity and gateway burden in the existing technology, improving the reliability of address allocation and networking simplification , supports IPv4 to IPv6 migration.

CN118921352AActive Publication Date: 2024-11-08SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411049427.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-08
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The existing IPv6 address configuration method is complex and has burdened the gateway device, making it difficult to achieve efficient stateless address allocation. Especially in the context of exhaustion of IPv4 addresses, a simplified IPv6 address allocation method is needed.

Method used

The stateless configuration and networking of IPv6 addresses are realized through container clusters, and components such as data center controller, network manager, virtual machine manager and IPv6 gateway manager are used, and the RA message notification mechanism is adopted. The virtual machine passes the EUI-64 algorithm. Generate global unicast addresses, reduce dependence on DHCP servers, improve the reliability of address allocation and simplify networking process.

Benefits of technology

It realizes efficient allocation and reliability of IPv6 stateless addresses, reduces the load of gateway equipment, simplifies the networking process, and supports IPv4 to IPv6 migration, ensuring the rapid adaptability of the network when prefix changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921352A_ABST
    Figure CN118921352A_ABST
Patent Text Reader

Abstract

The invention discloses a containerized method and system for realizing stateless configuration and networking of an IPv6 address, and belongs to the technical field of computer network communication, stateless configuration and IPv6 networking communication of the IPv6 address are realized based on a container cluster, the container cluster manages a service component of a data center, and equipment of the data center is controlled and configured through the service component. Stateless IPv6 address configuration of the data center is realized; the service assembly comprises a data center controller, a network manager, a virtual machine manager, an IPv6 gateway manager and a uniform resource management interface. According to the invention, the problem of IPv6 address allocation lag in automatic configuration of the IPv6 stateless address is solved, the reliability of IPv6 stateless address allocation can be improved, networking is simplified, and the load pressure of the gateway is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer network communications, and in particular to a method and system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner. Background Art

[0002] In the context of artificial intelligence, big data, and the Internet of Things, the number of mobile, storage, database, server and other devices has increased dramatically. In 2019, the IPv4 global unicast addresses have been exhausted, and the Chinese government has also fully called for support for the IPv6 protocol.

[0003] In the IPv6 stateful address automatic configuration mode, it is mainly through DHCP, which requires a dedicated DHCP server. The user equipment obtains the address configuration information from the DHCP server through the C / S mode. The network architecture of this mode is relatively complex, and the allocated IPv6 addresses are all 128 bits. For virtual machines in the same local link domain, they can only communicate through the three-layer network, which increases the burden on the gateway devices in the network. Therefore, a simpler and more efficient IPv6 address allocation method is needed. Summary of the invention

[0004] The technical task of the present invention is to address the above shortcomings and provide a method and system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, which can improve the reliability of IPv6 stateless address allocation; simplify networking and reduce the load pressure on the gateway.

[0005] The technical solution adopted by the present invention to solve its technical problem is:

[0006] A method for implementing stateless configuration and networking of IPv6 addresses through containerization, which implements stateless configuration of IPv6 addresses and IPv6 networking communication based on a container cluster. The container cluster manages the service components of a data center, controls and configures the devices of the data center through the service components, and implements stateless IPv6 address configuration of the data center.

[0007] The service components include the data center controller, network manager, virtual machine manager, IPv6 gateway manager and unified resource management interface; users operate the unified resource management interface to initiate requests, including applying for network resources, access control policies, and virtual machine configuration requests. The network manager receives the network configuration request to allocate network prefixes and gateways, and notifies the network prefix and gateway information to the data center controller. The data center controller then notifies the network prefix and gateway to the IPv6 gateway manager. The IPv6 gateway manager configures IPv6 routing exchange with the core switch, configures RA notifications, and sends RA messages to the link local virtual machine at regular intervals; the virtual machine activation message is received by the data center controller, and responds to the RS request sent by the virtual machine to respond to the RA to the virtual machine. The virtual machine generates the mac address as 64 bits through the EUI-64 algorithm, and splices the network prefix to generate a global unicast address. This method is different from the DHCP address allocation method, which requires the DHCP server to process and manage IPv6 addresses. It only needs to store the network prefix, eliminating the cumbersome process of managing IPv6 addresses. And the data center controller replies to the RA message to improve the reliability of IPv6 stateless address allocation.

[0008] This method uses the advantages of container clusters to integrate components such as data center controllers, network managers, virtual machine managers, IPv6 gateway managers, and unified resource management interfaces into container clusters in the form of microservices, realizing automated deployment and rapid update and iteration of applications. In addition, based on container clusters, it is possible to easily realize elastic scaling of resources and improve resource utilization. Based on the IPv6 stateless address allocation scheme, the networking architecture can be simplified, and through the data center controller and IPv6 gateway manager, IPv6 stateless address allocation can be realized, and the reliability of address allocation can be improved, thereby achieving the purpose of migrating from IPv4 networking to IPv6 networking.

[0009] The container cluster implements IPv6 stateless address configuration and networking communication; dual RA message notifications by the data center controller and the IPv6 gateway manager improve the reliability of the virtual machine's stateless IPv6 address configuration; the virtual machine configures the routing segment and default gateway route of the network prefix through the RA message, and realizes communication within the network through the Layer 2 network, reducing the load pressure on the IPv6 gateway; stateless address configuration simplifies IPv6 communication networking, does not require a DHCP server, and facilitates overall network migration. When the network prefix of a site changes, the virtual machine in the data center can be quickly re-compiled without affecting the network connection.

[0010] Furthermore, the data center controller manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring of the network manager, virtual machine manager and IPv6 gateway manager to timely remedy abnormal services;

[0011] The data center controller manages the network manager and virtual machine manager through the northbound interface, including receiving the network prefix and gateway information of the network manager, and receiving the status change information of virtual machine activation and deactivation; and sending the network prefix and gateway information to the IPv6 gateway manager through the message queue; responding to the virtual machine activation message, controlling the addition of virtual machine ports and the delivery of flow tables through ovs+openflow, and responding to the RS request sent by the virtual machine, encapsulating the RA message to notify the virtual machine. The message contains the network prefix and gateway information, improving the reliability of the virtual machine allocation of stateless addresses; the data center controller detects the operating status of several other components in real time through detection, and when an abnormality is detected, promptly starts service rescue measures, including network detection, configuration verification, and service restart.

[0012] Furthermore, the network manager is a configuration component that provides basic network information, receives network resource requests from the unified resource management interface and releases network resources, verifies the legitimacy of network resource configuration, and persists network resource configuration to the database; at the same time, it notifies the network prefix and gateway information to the data center controller through the northbound interface, and the data center controller provides the network prefix and gateway information to the virtual machine through the RA message. Obviously, the network manager is a basic component in the system, providing a valid address prefix.

[0013] Furthermore, the virtual machine manager is used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines; the virtual machine manager receives virtual machine resource requests from the unified resource management interface, verifies the legitimacy of the information carried in the virtual machine request, and then sends the virtual machine activation information to the data center controller, receives the virtual machine configuration information returned by the data center controller, and forwards the RA message to the virtual machine so that the virtual machine generates a global unicast IPv6 address through the EUI-64 algorithm.

[0014] Furthermore, the IPv6 gateway manager is the routing switch of the system, providing forwarding routes across network segments and to the external network; firstly, it receives the network prefix and gateway announcement information of the data center controller, configures the gateway port and network segment routing, and is the basis for routing forwarding requests across network segments; secondly, it configures RADVD to periodically notify RA messages to the virtual machines in the local domain of the link, thereby improving the reliability of the virtual machine configuration of the IPv6 global unicast address; finally, the IPv6 gateway manager exchanges the IPv6 routing information in the data center with the core switch in real time, and provides routing information for communication between the data center and the external network.

[0015] Furthermore, the network configuration process is the process initiated by the user to apply for network resources, including the network manager verifying the network information, persisting the network information, and notifying the network information to the data center controller. The data center controller then notifies the network information to the IPv6 gateway manager. The IPv6 gateway manager configures the gateway port and network segment routing information, and starts RADVD to notify the network segment routing to the virtual machine in the link domain. The specific implementation method is as follows:

[0016] 1) The user initiates a network resource application through the unified resource management interface and sends the application to the network manager, including the application for the IPv6 network prefix, gateway, and DNS server address. The IPv6 network defaults to stateless address allocation mode, and the network prefix is ​​a 64-bit mask;

[0017] 2) The network manager receives the network resource request and verifies the validity of the network resource, including the legitimacy of the network prefix, the legitimacy of the gateway address, the network prefix mask, whether the network prefix address conflicts, the validity of the DNS domain name address, and the legitimacy of the description and name. The legal network resource information will be persisted in the database; finally, the network manager notifies the network prefix and gateway information to the data center controller;

[0018] 3) The data center controller receives the network configuration information, encapsulates the information into JSON format and notifies the IPv6 gateway manager through the socket;

[0019] 4) After receiving the notification from the data center controller, the IPv6 gateway manager configures the gateway port and IPv6 network segment routing, adds the newly added network prefix to the RADVD configuration file, and restarts RADVD to start sending RA messages regularly in the link local domain.

[0020] Furthermore, the virtual machine configuration process is the process of the user initiating the activation of the virtual machine, which includes the virtual machine activation and network prefix request process, as follows:

[0021] 1) The user initiates a virtual machine resource application request through the unified resource management interface, and the application is sent to the virtual machine resource manager, including the network resources, specifications, images, disks, names, and descriptions requested by the virtual machine;

[0022] 2) After receiving the virtual machine activation request, the virtual machine manager starts to verify the validity of the virtual machine configuration, check whether the network resources are available, whether there are access control restrictions, the validity of the virtual machine specifications, and whether the system resource availability is met. After the verification is completed, this information is pre-stored in the database for persistence, and then the virtual machine activation message is sent to the data center controller;

[0023] 3) After receiving the virtual machine activation message, the data center controller allocates a host machine, configures ovs information and flow table information on the host machine to guide the virtual machine traffic forwarding, and then sends an RA notification to the virtual machine to notify the virtual machine of the network prefix and gateway information, and then sends the virtual machine information to the virtual machine manager;

[0024] 4) The virtual machine manager receives the virtual machine information and persists it in the database. Persisting the data in the database makes it convenient for users to view and modify and delete it later through the unified resource management interface;

[0025] 5) After receiving the RA message, the virtual machine uses the EUI-64 algorithm to generate a global unicast address based on the network prefix and mac address, sends a DAD to detect the uniqueness of the address, and configures the network segment route, which is a 64-bit mask. The virtual machines in the same network can communicate through the second layer without going through the IPv6 gateway manager.

[0026] The present invention also claims a system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, including a data center controller, a network manager, a virtual machine manager, an IPv6 gateway manager, and a unified resource management interface.

[0027] The data center controller manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring of the network manager, virtual machine manager, and IPv6 gateway manager to promptly remedy abnormal services;

[0028] The network manager is a configuration component that provides basic network information, receives network resource requests and releases from the unified resource management interface, verifies the legitimacy of network resource configuration, and persists network resource configuration to the database;

[0029] The virtual machine manager is used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines;

[0030] The IPv6 Gateway Manager is the system's routing switch, providing forwarding routing across network segments and outbound networks;

[0031] The unified resource management interface provides users with a convenient resource application page, through which users initiate network and virtual machine applications;

[0032] The system realizes stateless configuration and networking of IPv6 addresses through the above method.

[0033] The present invention also claims a containerized device for implementing stateless configuration and networking of IPv6 addresses, comprising: at least one memory and at least one processor;

[0034] The at least one memory is used to store a machine-readable program;

[0035] The at least one processor is used to call the machine-readable program to implement the above method.

[0036] The present invention also claims protection for a computer-readable medium having computer instructions stored thereon, which, when executed by a processor, cause the processor to perform the above-mentioned method.

[0037] Compared with the prior art, the method and system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner of the present invention have the following beneficial effects:

[0038] The present invention realizes the stateless configuration of IPv6 addresses based on container clusters, and at the same time improves the reliability of IPv6 address allocation by controlling the sending of RA messages. The network segment routing is sent by RA, and the virtual machine can realize layer 2 communication through the network segment routing, which reduces the load pressure of the gateway. The scheme can also realize automatic configuration of IPv6 addresses without relying on DHCP servers. The networking is simple and convenient for overall network migration. When the network prefix of a site changes, the virtual machine of the data center can be quickly recompiled without affecting the network connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram showing the principle of a method for implementing stateless configuration and networking of IPv6 addresses through containerization provided by an embodiment of the present invention;

[0040] Figure 2 is a diagram of a network configuration process provided by an embodiment of the present invention;

[0041] Figure 3 It is a flowchart of the virtual machine IPv6 address configuration process provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0043] The embodiment of the present invention provides a method for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, and implements stateless configuration of IPv6 addresses and IPv6 networking communication based on a container cluster. The container cluster of the present method is a k8s cluster, and the k8s cluster manages the service components of the data center. The equipment of the data center is controlled and configured through the service components to implement stateless IPv6 address configuration of the data center; improve the reliability of address configuration, and complete IPv6 networking communication.

[0044] The service components include a data center controller, a network manager, a virtual machine manager, an IPv6 gateway manager, and a unified resource management interface; the user operates the unified resource management interface to initiate a request for network resources, access control policies, virtual machine configuration, etc. The network manager receives the network configuration request to allocate a network prefix and a gateway, and notifies the network prefix and gateway information to the data center controller. The data center controller then notifies the network prefix and gateway to the IPv6 gateway manager. The IPv6 gateway manager configures IPv6 routing exchange with the core switch, configures RA notifications, and sends RA messages to the link local virtual machine at regular intervals; the virtual machine activation message is received by the data center controller, and responds to the RS request sent by the virtual machine to respond to the RA to the virtual machine. The virtual machine generates the mac address as 64 bits through the EUI-64 algorithm, and splices the network prefix to generate a global unicast address. This method is different from the DHCP address allocation method, which requires the DHCP server to process and manage the IPv6 address. It only needs to store the network prefix, which eliminates the cumbersome process of managing the IPv6 address. And the data center controller replies to the RA message to improve the reliability of the allocation of IPv6 stateless addresses.

[0045] The container cluster implements IPv6 stateless address configuration and networking communication; dual RA message notifications by the data center controller and the IPv6 gateway manager improve the reliability of the virtual machine's stateless IPv6 address configuration; the virtual machine configures the routing segment and default gateway route of the network prefix through the RA message, and realizes communication within the network through the Layer 2 network, reducing the load pressure on the IPv6 gateway; stateless address configuration simplifies IPv6 communication networking, does not require a DHCP server, and facilitates overall network migration. When the network prefix of a site changes, the virtual machine in the data center can be quickly re-compiled without affecting the network connection.

[0046] The following is a detailed introduction to the functions and roles of the main service components of the data center. The organizational structure between the container cluster and service components is as follows: Figure 1 shown.

[0047] The data center controller is the central system of the system. It manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring for the network manager, virtual machine manager and IPv6 gateway manager to promptly remedy abnormal services. The data center controller manages the network manager and virtual machine manager through the northbound interface, including receiving the network prefix and gateway information of the network manager, and receiving the status change information of the virtual machine activation and deactivation. And send the network prefix and gateway information to the IPv6 gateway manager through the message queue; respond to the virtual machine activation message, control the addition of virtual machine ports and the delivery of flow tables through ovs+openflow, and respond to the RS request sent by the virtual machine, encapsulate the RA message to the virtual machine, and the message contains information such as the network prefix and gateway, so as to improve the reliability of the virtual machine allocation of stateless addresses. The data center controller detects the operating status of several other components in real time through detection, and promptly starts service rescue measures when an abnormality is detected, such as detecting the network, verifying the configuration, restarting the service, etc.

[0048] The network manager is a configuration component that provides basic network information. It receives network resource requests and releases from the unified resource management interface, verifies the legitimacy of network resource configuration, and persists network resource configuration to the database. At the same time, it also notifies the network prefix and gateway information to the data center controller through the northbound interface, and the data center controller provides the network prefix and gateway information to the virtual machine through the RA message. Obviously, the network manager is a basic component in the system, providing valid address prefixes.

[0049] The virtual machine manager is mainly used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines. The virtual machine manager receives virtual machine resource requests from the unified resource management interface, verifies the legitimacy of the information carried in the virtual machine request, and then sends the virtual machine activation information to the data center controller, receives the virtual machine configuration information returned by the data center controller, and forwards the RA message to the virtual machine so that the virtual machine can generate a global unicast IPv6 address through the EUI-64 algorithm.

[0050] The IPv6 Gateway Manager is the routing switch of the system, providing forwarding routes across network segments and to the external network. First, it receives the network prefix and gateway announcement information of the data center controller, configures the gateway port and network segment routing, and is the basis for routing forwarding requests across network segments. Secondly, it configures RADVD to periodically notify RA messages to the virtual machines in the link local domain to improve the reliability of the virtual machine configuration IPv6 global unicast address. Finally, the IPv6 Gateway Manager exchanges IPv6 routing information in the data center with the core switch in real time, providing routing information for communication between the data center and the external network.

[0051] The unified resource management interface provides users with a convenient resource application page, through which users can initiate network and virtual machine applications, making user operations more convenient.

[0052] This method can be divided into two processes: network configuration process and virtual machine IPv6 address configuration process.

[0053] The network configuration process is the process initiated by the user to apply for network resources, including the network manager verifying the network information, persisting the network information, and notifying the network information to the data center controller. The data center controller then notifies the network information to the IPv6 gateway manager. The IPv6 gateway manager configures the gateway port and network segment routing information, and starts RADVD to notify the network segment routing to the virtual machines in this link domain. See the flowchart. Figure 2 As shown:

[0054] 1. The user initiates a network resource application through the unified resource management interface and sends the application to the network manager, including the application for the IPv6 network prefix, gateway, DNS server address, etc. The IPv6 network defaults to the stateless address allocation mode, and the network prefix is ​​a 64-bit mask;

[0055] 2. The network manager receives the network resource request and verifies the validity of the network resource, including the legitimacy of the network prefix, the legitimacy of the gateway address, the network prefix mask, whether the network prefix address conflicts, the validity of the DNS domain name address, and the legitimacy of the description and name. The legal network resource information will be persisted in the database. Finally, the network manager notifies the network prefix and gateway information to the data center controller;

[0056] 3. The data center controller receives the network configuration information, encapsulates the information into JSON format and notifies the IPv6 gateway manager through the socket;

[0057] 4. After receiving the notification from the data center controller, the IPv6 gateway manager configures the gateway port and IPv6 network segment routing, adds the newly added network prefix to the RADVD configuration file, and restarts RADVD to start sending RA messages regularly in the link local domain.

[0058] The virtual machine configuration process is the process of the user initiating the activation of the virtual machine. The process includes the virtual machine activation and network prefix request process. The following is a detailed description of the process. The flowchart is as follows Figure 3 As shown:

[0059] 1. The user initiates a virtual machine resource application request through the unified resource management interface, and the application is sent to the virtual machine resource manager, including the network resources, specifications, images, disks, names, descriptions, etc. requested by the virtual machine;

[0060] 2. After receiving the VM activation request, the VM manager starts to verify the validity of the VM configuration, including whether the network resources are available, whether there are access control restrictions, the validity of the VM specifications, whether the system resource availability is met, etc. After the verification is completed, this information is stored in the database for persistence, and then the VM activation message is sent to the data center controller;

[0061] 3. After receiving the virtual machine activation message, the data center controller allocates a host machine and configures ovs information and flow table information on the host machine to guide the virtual machine traffic forwarding. Then, it sends an RA notification to the virtual machine to notify the virtual machine of the network prefix and gateway information, and then sends the virtual machine information to the virtual machine manager;

[0062] 4. The virtual machine manager receives virtual machine information and persists it in the database. Persisting data in the database makes it convenient for users to view and modify and delete data later through the unified resource management interface;

[0063] 5. After receiving the RA message, the virtual machine uses the EUI-64 algorithm to generate a global unicast address based on the network prefix and mac address, sends a DAD to detect the uniqueness of the address, and configures the network segment route. The route is a 64-bit mask. The virtual machines in the same network can communicate through the second layer without going through the IPv6 gateway manager.

[0064] This solution is based on the container cluster, which uses the dual RA message notification of the data center controller and the IPv6 gateway manager to ensure that the virtual machine can normally receive the network prefix and gateway information. The virtual machine uses the EUI-64 algorithm to generate a stateless global unicast address based on the network prefix and mac address, achieving the purpose of containerized IPv6 stateless address configuration and networking. Configuring the 64-bit mask segment routing eliminates the need for Layer 2 traffic between virtual machines to pass through the gateway, reducing the load pressure on the IPv6 gateway manager. At the same time, the solution is simple to network, does not require the management of IP addresses like a DHCP server, and can also realize the automatic configuration of IPv6 addresses. This solution also facilitates the overall migration of the network. When the network prefix of a site changes, the virtual machines in the data center can be quickly recompiled without affecting the network connection.

[0065] like Figure 1 The figure shows the overall diagram of the stateless configuration networking of IPv6 addresses implemented by containers. The data center is uniformly managed by the container cluster, and users complete resource operations on the data center through the unified resource management interface. The data center controller plays the role of a central system in the entire solution system. It manages the network manager and virtual machine manager downwards, controls the IPv6 gateway manager upwards to configure the gateway, responds to the RS message sent by the virtual machine to reduce the communication pressure of the IPv6 gateway manager, and combines it with the RA announcement sent by the IPv6 gateway manager to improve the reliability of IPv6 stateless address allocation.

[0066] Figure 2 It is the network configuration process. The network configuration process is to complete the application and issuance process of the basic network resources of the data center. The unified resource manager receives the user request and sends the application to the network resource manager. The network manager verifies the validity of the network resources and persists the network resources. It notifies the data center controller of the network configuration information. The data center controller then encapsulates the information in JSON format and sends it to the IPv6 gateway manager through socket. The IPv6 gateway manager configures the gateway port and routing information, and starts the scheduled notification of RA messages.

[0067] Figure 3 This is the process of configuring the IPv6 address of a virtual machine. The virtual machine configuration process is the process of applying for a stateless IPv6 address for a virtual machine. The virtual machine manager verifies the validity of the virtual machine information. The data center controller is responsible for allocating hosts and configuring ovs and flow table information, and sending RA messages to the virtual machines. After receiving the RA messages, the virtual machines use the EUI-64 algorithm to generate a stateless IPv6 address based on the network prefix and mac address, configure the default gateway route and network segment route, guide the Layer 2 traffic forwarding, and reduce the load pressure on the IPv6 gateway manager.

[0068] Container cluster is a cluster architecture based on container technology, which is mainly used to manage and run a large number of containerized applications. Container technology allows applications and other dependencies to be packaged into a portable container, which can be deployed and run in different environments. Container clusters combine multiple containers to form a highly scalable, elastic and manageable system. Through container clusters, it is easier to realize the automated deployment, expansion and management of applications, thereby improving the availability and stability of the system, and quickly responding to changes in business needs to achieve rapid iteration and upgrade of business.

[0069] IPv6 Stateless Address Autoconfiguration (SLAAC) is an IPv6 address autoconfiguration mechanism that can obtain an IPv6 global unicast address without the service of a DHCP server. In this mechanism, the device uses the MAC address to generate a 64-bit address based on the EUI-64 algorithm, and then uses this address and the network address prefix to construct the device's IPv6 address. In this way, the device can automatically obtain a globally unique IPv6 address without manual configuration.

[0070] IPv6 stateless address autoconfiguration uses ICMPv6 Router Solicitation and Router Advertisement messages to provide network edits and other configuration information:

[0071] Router Solicitation (RS) message: When a client is configured to use IPv6 stateless address autoconfiguration to automatically obtain its addressing information, the client will send an RS message to the router. The RS message is sent to the IPv6 all-router multicast address FF02::2. This message is an ICMPv6 message and is identified by a number. The ICMPv6 type of the RS message is 133.

[0072] Router Advertisement (RA) message: The router sends RA messages to provide the configured clients with network addressing information to automatically obtain their IPv6 addresses. RA messages include the prefix and prefix length of the local data segment. The client uses this information to create an IPv6 global unicast address. Routers periodically send RA messages or respond to RS messages. The periodically sent RA messages are also multicast packets, which are sent to the multicast address representing all nodes. Their ICMPv6 type is 134. If the client sends an RS message, the router will immediately respond to the RS message after receiving the message.

[0073] The client verifies the global uniqueness of the IPv6 address through a Neighbor Discovery Request (ND). IPv6 stateless address autoconfiguration does not have a server that maintains network address information. The IPv6 address allocation process is simple and the networking is relatively simple, but there may be a problem of IPv6 address allocation lag during use. This method provides a solution to this problem and improves the reliability of IPv6 address allocation.

[0074] This method uses the advantages of container clusters to integrate components such as data center controllers, network managers, virtual machine managers, IPv6 gateway managers, and unified resource management interfaces into container clusters in the form of microservices, realizing automated deployment and rapid update and iteration of applications. In addition, based on container clusters, it is possible to easily realize elastic scaling of resources and improve resource utilization. Based on the IPv6 stateless address allocation scheme, the networking architecture can be simplified, and through the data center controller and IPv6 gateway manager, IPv6 stateless address allocation can be realized, and the reliability of address allocation can be improved, thereby achieving the purpose of migrating from IPv4 networking to IPv6 networking.

[0075] The embodiment of the present invention also provides a system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, including a data center controller, a network manager, a virtual machine manager, an IPv6 gateway manager, and a unified resource management interface.

[0076] The data center controller is the central system of the system. It manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring for the network manager, virtual machine manager and IPv6 gateway manager to promptly remedy abnormal services. The data center controller manages the network manager and virtual machine manager through the northbound interface, including receiving the network prefix and gateway information of the network manager, and receiving the status change information of the virtual machine activation and deactivation. And send the network prefix and gateway information to the IPv6 gateway manager through the message queue; respond to the virtual machine activation message, control the addition of virtual machine ports and the delivery of flow tables through ovs+openflow, and respond to the RS request sent by the virtual machine, encapsulate the RA message to the virtual machine, and the message contains information such as the network prefix and gateway, so as to improve the reliability of the virtual machine allocation of stateless addresses. The data center controller detects the operating status of several other components in real time through detection, and promptly starts service rescue measures when an abnormality is detected, such as detecting the network, verifying the configuration, restarting the service, etc.

[0077] The network manager is a configuration component that provides basic network information. It receives network resource requests and releases from the unified resource management interface, verifies the legitimacy of network resource configuration, and persists network resource configuration to the database. At the same time, it also notifies the network prefix and gateway information to the data center controller through the northbound interface, and the data center controller provides the network prefix and gateway information to the virtual machine through the RA message. Obviously, the network manager is a basic component in the system, providing valid address prefixes.

[0078] The virtual machine manager is mainly used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines. The virtual machine manager receives virtual machine resource requests from the unified resource management interface, verifies the legitimacy of the information carried in the virtual machine request, and then sends the virtual machine activation information to the data center controller, receives the virtual machine configuration information returned by the data center controller, and forwards the RA message to the virtual machine so that the virtual machine can generate a global unicast IPv6 address through the EUI-64 algorithm.

[0079] The IPv6 Gateway Manager is the routing switch of the system, providing forwarding routes across network segments and to the external network. First, it receives the network prefix and gateway announcement information of the data center controller, configures the gateway port and network segment routing, and is the basis for routing forwarding requests across network segments. Secondly, it configures RADVD to periodically notify RA messages to the virtual machines in the link local domain to improve the reliability of the virtual machine configuration IPv6 global unicast address. Finally, the IPv6 Gateway Manager exchanges IPv6 routing information in the data center with the core switch in real time, providing routing information for communication between the data center and the external network.

[0080] The unified resource management interface provides users with a convenient resource application page, through which users can initiate network and virtual machine applications, making user operations more convenient.

[0081] The system implements the method for implementing stateless IPv6 address configuration and networking through containerization described in the above embodiment, which is divided into two processes: network configuration process and virtual machine IPv6 address configuration process.

[0082] The network configuration process is the process initiated by the user to apply for network resources, including the network manager verifying network information, persisting network information, and notifying the network information to the data center controller. The data center controller then notifies the network information to the IPv6 gateway manager. The IPv6 gateway manager configures the gateway port and network segment routing information, and starts RADVD to notify the network segment routing to the virtual machines in the link domain. The details are as follows:

[0083] 1. The user initiates a network resource application through the unified resource management interface and sends the application to the network manager, including the application for the IPv6 network prefix, gateway, DNS server address, etc. The IPv6 network defaults to the stateless address allocation mode, and the network prefix is ​​a 64-bit mask;

[0084] 2. The network manager receives the network resource request and verifies the validity of the network resource, including the legitimacy of the network prefix, the legitimacy of the gateway address, the network prefix mask, whether the network prefix address conflicts, the validity of the DNS domain name address, and the legitimacy of the description and name. The legal network resource information will be persisted in the database. Finally, the network manager notifies the network prefix and gateway information to the data center controller;

[0085] 3. The data center controller receives the network configuration information, encapsulates the information into JSON format and notifies the IPv6 gateway manager through the socket;

[0086] 4. After receiving the notification from the data center controller, the IPv6 gateway manager configures the gateway port and IPv6 network segment routing, adds the newly added network prefix to the RADVD configuration file, and restarts RADVD to start sending RA messages regularly in the link local domain.

[0087] The virtual machine configuration process is the process of the user initiating the activation of the virtual machine. The process includes the virtual machine activation and network prefix request process, as follows:

[0088] 1. The user initiates a virtual machine resource application request through the unified resource management interface, and the application is sent to the virtual machine resource manager, including the network resources, specifications, images, disks, names, descriptions, etc. requested by the virtual machine;

[0089] 2. After receiving the VM activation request, the VM manager starts to verify the validity of the VM configuration, including whether the network resources are available, whether there are access control restrictions, the validity of the VM specifications, whether the system resource availability is met, etc. After the verification is completed, this information is stored in the database for persistence, and then the VM activation message is sent to the data center controller;

[0090] 3. After receiving the virtual machine activation message, the data center controller allocates a host machine and configures ovs information and flow table information on the host machine to guide the virtual machine traffic forwarding. Then, it sends an RA notification to the virtual machine to notify the virtual machine of the network prefix and gateway information, and then sends the virtual machine information to the virtual machine manager;

[0091] 4. The virtual machine manager receives virtual machine information and persists it in the database. Persisting data in the database makes it convenient for users to view and modify and delete data later through the unified resource management interface;

[0092] 5. After receiving the RA message, the virtual machine uses the EUI-64 algorithm to generate a global unicast address based on the network prefix and mac address, sends a DAD to detect the uniqueness of the address, and configures the network segment route. The route is a 64-bit mask. The virtual machines in the same network can communicate through the second layer without going through the IPv6 gateway manager.

[0093] This system can allocate global unicast IPv6 addresses to cloud servers without manual allocation and configuration in the absence of a DHCP server, and respond to global unicast address application requests from cloud servers through the data center controller, thereby improving the reliability of IPv6 stateless address allocation; it also facilitates overall network migration. When the network prefix of a site changes, the cloud server in the data center can be quickly re-compiled without affecting network connectivity.

[0094] An embodiment of the present invention further provides a device for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, comprising: at least one memory and at least one processor;

[0095] The at least one memory is used to store a machine-readable program;

[0096] The at least one processor is used to call the machine-readable program to implement the method for implementing stateless configuration and networking of IPv6 addresses through containerization as described in the above embodiment.

[0097] An embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the processor executes the method for implementing stateless configuration and networking of IPv6 addresses in a container as described in the above embodiment. Specifically, a system or device equipped with a storage medium can be provided, on which software program codes implementing the functions of any of the above embodiments are stored, and a computer (or CPU or MPU) of the system or device is enabled to read and execute the program code stored in the storage medium.

[0098] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0099] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0100] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0101] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0102] The present invention is shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A method for implementing stateless configuration and networking of IPv6 addresses in a container, characterized in that: Implementing stateless configuration of IPv6 addresses and IPv6 networking communication based on a container cluster, wherein the container cluster manages service components of a data center, controls and configures devices in the data center through the service components, and implements stateless IPv6 address configuration in the data center; Service components include data center controller, network manager, virtual machine manager, IPv6 gateway manager and unified resource management interface; The user operates the unified resource management interface to initiate a request, including applying for network resources, access control policies, and virtual machine configuration requests. The network manager receives the network configuration request to allocate a network prefix and gateway, and notifies the network prefix and gateway information to the data center controller. The data center controller then notifies the network prefix and gateway to the IPv6 gateway manager. The IPv6 gateway manager configures IPv6 routing exchange with the core switch, configures RA notifications, and periodically sends RA messages to the local virtual machine on the link; the data center controller receives the virtual machine activation message, and responds to the RS request sent by the virtual machine and responds to the RA to the virtual machine. The virtual machine generates a 64-bit mac address through the EUI-64 algorithm, and splices the network prefix to generate a global unicast address.

2. According to claim 1, a method for implementing stateless configuration and networking of IPv6 addresses in a container, characterized in that: The data center controller manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring of the network manager, virtual machine manager and IPv6 gateway manager to timely remedy abnormal services; The data center controller manages the network manager and virtual machine manager through the northbound interface, including receiving the network prefix and gateway information of the network manager, and receiving the status change information of virtual machine activation and deactivation; and sending the network prefix and gateway information to the IPv6 gateway manager through the message queue; responding to the virtual machine activation message, controlling the addition of virtual machine ports and the delivery of flow tables through ovs+openflow, and responding to the RS request sent by the virtual machine, encapsulating the RA message to notify the virtual machine, the message contains the network prefix and gateway information; the data center controller detects the operating status of several other components in real time through detection, and when an abnormality is detected, promptly starts service rescue measures, including detecting the network, verifying the configuration, and restarting the service.

3. A method for implementing stateless configuration and networking of IPv6 addresses in a container according to claim 1 or 2, characterized in that: The network manager is a configuration component that provides basic network information, receives network resource requests from the unified resource management interface and releases network resources, verifies the legitimacy of network resource configuration, and persists the network resource configuration to the database; at the same time, it notifies the data center controller of the network prefix and gateway information through the northbound interface, and the data center controller provides the network prefix and gateway information to the virtual machine through the RA message.

4. According to claim 1, a method for implementing stateless configuration and networking of IPv6 addresses in a container, characterized in that: The virtual machine manager is used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines; the virtual machine manager receives virtual machine resource requests from the unified resource management interface, verifies the legitimacy of the information carried in the virtual machine request, and then sends the virtual machine activation information to the data center controller, receives the virtual machine configuration information returned by the data center controller, and forwards the RA message to the virtual machine so that the virtual machine generates a global unicast IPv6 address through the EUI-64 algorithm.

5. According to claim 1, a method for implementing stateless configuration and networking of IPv6 addresses in a container, characterized in that: The IPv6 gateway manager is the routing switch of the system, providing forwarding routes across network segments and outbound networks; firstly, it receives the network prefix and gateway announcement information of the data center controller, and configures the gateway port and network segment routing; Secondly, configure RADVD to periodically notify RA messages to the virtual machines in the link local domain; finally, the IPv6 gateway manager and the core switch exchange IPv6 routing information in the data center in real time to provide routing information for communication between the data center and the external network.

6. According to claim 1, a method for implementing stateless configuration and networking of IPv6 addresses in a container, characterized in that: The network configuration process is the process initiated by the user to apply for network resources, including the network manager verifying the network information, persisting the network information, and notifying the network information to the data center controller. The data center controller then notifies the network information to the IPv6 gateway manager. The IPv6 gateway manager configures the gateway port and network segment routing information, and starts RADVD to notify the network segment routing to the virtual machines in the link domain. The specific implementation method is as follows: 1) The user initiates a network resource application through the unified resource management interface and sends the application to the network manager, including the application for the IPv6 network prefix, gateway, and DNS server address. The IPv6 network defaults to stateless address allocation mode, and the network prefix is ​​a 64-bit mask; 2) The network manager receives the network resource request and verifies the validity of the network resource, including the legitimacy of the network prefix, the legitimacy of the gateway address, the network prefix mask, whether the network prefix address conflicts, the validity of the DNS domain name address, and the legitimacy of the description and name. The legal network resource information will be persisted in the database; finally, the network manager notifies the network prefix and gateway information to the data center controller; 3) The data center controller receives the network configuration information, encapsulates the information into JSON format and notifies the IPv6 gateway manager through the socket; 4) After receiving the notification from the data center controller, the IPv6 gateway manager configures the gateway port and IPv6 network segment routing, adds the newly added network prefix to the RADVD configuration file, and restarts RADVD to start sending RA messages regularly in the link local domain.

7. According to claim 1, a method for implementing stateless configuration and networking of IPv6 addresses through containerization, characterized in that: The virtual machine configuration process is the process of the user initiating the activation of the virtual machine, which includes the virtual machine activation and network prefix request process, as follows: 1) The user initiates a virtual machine resource application request through the unified resource management interface, and the application is sent to the virtual machine resource manager, including the network resources, specifications, images, disks, names, and descriptions requested by the virtual machine; 2) After receiving the virtual machine activation request, the virtual machine manager starts to verify the validity of the virtual machine configuration, check whether the network resources are available, whether there are access control restrictions, the validity of the virtual machine specifications, and whether the system resource availability is met. After the verification is completed, this information is pre-stored in the database for persistence, and then the virtual machine activation message is sent to the data center controller; 3) After receiving the virtual machine activation message, the data center controller allocates a host machine, configures ovs information and flow table information on the host machine to guide the virtual machine traffic forwarding, and then sends an RA notification to the virtual machine to notify the virtual machine of the network prefix and gateway information, and then sends the virtual machine information to the virtual machine manager; 4) The virtual machine manager receives the virtual machine information and persists it in the database; 5) After receiving the RA message, the virtual machine uses the EUI-64 algorithm to generate a global unicast address based on the network prefix and mac address, sends a DAD to detect the uniqueness of the address, and configures the network segment route, which is a 64-bit mask. The virtual machines in the same network can communicate through the second layer without going through the IPv6 gateway manager.

8. A system for implementing stateless configuration and networking of IPv6 addresses in a containerized manner, characterized in that: Including data center controller, network manager, virtual machine manager, IPv6 gateway manager, unified resource management interface, The data center controller manages the network manager and virtual machine manager downwards, controls the gateway port configuration of the IPv6 gateway manager and the configuration of RADVD upwards, and enables status monitoring of the network manager, virtual machine manager, and IPv6 gateway manager to promptly remedy abnormal services; The network manager is a configuration component that provides basic network information, receives network resource requests and releases from the unified resource management interface, verifies the legitimacy of network resource configuration, and persists network resource configuration to the database; The virtual machine manager is used to activate and deactivate virtual machines and manage the entire life cycle of virtual machines; The IPv6 Gateway Manager is the system's routing switch, providing forwarding routing across network segments and outbound networks; The unified resource management interface provides users with a convenient resource application page, through which users initiate network and virtual machine applications; The system realizes stateless configuration and networking of IPv6 addresses through any method described in claims 1 to 7.

9. A containerized device for implementing stateless configuration and networking of IPv6 addresses, characterized in that: include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the method described in any one of claims 1 to 7.

10. A computer readable medium, characterized in that The computer readable medium stores computer instructions, which, when executed by a processor, cause the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Automatic IPv6 address allocation method for virtual machine

    CN111818197A

  • Deployment method, device and equipment of Kubernetes cluster

    CN115460203A

  • Containerized network system, containerized IPV6 communication method and device, medium and equipment

    CN115550316A

  • IPv6 (Internet Protocol Version 6) subnet prefix notification implementation method and device, equipment and storage medium

    CN115695374A

  • Method, device, and system for automatically selecting IPV6 address transmission mode

    US20150237007A1