Network connection method and device, electronic equipment, storage medium and program product
The hardware accelerator detects the logical port and server address of the virtual private network, automatically updates the routing configuration rules, solves the problem of automatic configuration of network connections between virtual machines and bare metal servers in the cloud computing platform, and achieves efficient network isolation and resource utilization.
Patent Information
- Application Number
- CN202410620332.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, the network connection between the virtual machine and the bare metal server in the cloud computing platform requires manual configuration, which results in high labor costs and difficulty in automation. Moreover, due to different physical switch suppliers, the configuration is not uniform and it is difficult to realize automation.
The hardware accelerator is used to detect whether the physical address of the logical port of the virtual private network is the same as the server address. If they are the same, the associated identifier is detected and the routing configuration rules are updated. The dynamic host configuration protocol request is responded to establish a network connection and realize automated unified configuration.
There is no need to manually configure different types of switches. The hardware accelerator automatically controls the server's access to the virtual private network to achieve network isolation, reduce labor costs, and improve resource utilization.
Smart Images

Figure CN118659965A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network communication technology, and in particular to a network connection method, device, electronic device, storage medium, and program product. Background Art
[0002] With the development of cloud computing platforms, the introduction of virtual machines due to traditional virtualization technologies (such as qemu, kvm, etc.) will increase the performance overhead of physical servers, because they require a virtualization layer to simulate hardware and run additional operating system kernels. These overheads may have an adverse effect on certain high-performance workloads; each virtual machine contains its own operating system, which means that they occupy additional memory, storage and computing resources; in large-scale deployments, this may lead to a waste of resources; although virtual machines provide resource isolation, in some cases, there may still be a certain amount of resource contention between virtual machines, especially when running multiple virtual machines on a physical server.
[0003] Therefore, in order to solve the problem of virtual machines occupying more physical server resources, virtual machines can be run in cloud computing platforms. Because bare metal servers have the advantages of high performance and physical isolation, bare metal servers are usually used as hosts and connected to virtual machines in cloud computing platforms, thereby realizing automated deployment, configuration and management of virtual machines in cloud computing platforms.
[0004] However, the network connection between the virtual machines and bare metal servers in the current cloud computing platform needs to be connected through a physical switch. However, different switch vendors provide different technical implementations and configurations, making it difficult to have a unified configuration, and almost impossible to automate the configuration, which increases labor costs. Summary of the invention
[0005] Based on this, it is necessary to provide a network connection method, device, electronic device, storage medium, and program product that can automatically and uniformly configure the network connection between the virtual machines and bare metal servers in the cloud computing platform to address the above technical problems.
[0006] In a first aspect, the present disclosure provides a network connection method. The method comprises:
[0007] In the case of monitoring a logical port for creating a virtual private network, detecting whether a first physical address of the logical port is the same as a second physical address of the server;
[0008] If the first physical address and the second physical address are the same, detecting an association identifier in a hardware accelerator, the association identifier being used to indicate establishment of a connection between the server and the virtual private network;
[0009] In response to detecting the association identifier in the hardware accelerator, updating a routing configuration rule of the hardware accelerator, the routing configuration rule being used to route transmission data between the server and the virtual private network through the hardware accelerator;
[0010] In response to a dynamic host configuration protocol request initiated by the server, a network address of the virtual private network is determined based on an updated routing configuration rule, and the network address of the virtual private network is sent to the server, where the network address is used by the server to establish a network connection with the virtual private network.
[0011] In one embodiment, the hardware accelerator runs a first thread and a second thread, and the detecting whether the first physical address of the logical port is the same as the second physical address of the server includes:
[0012] Acquire, in the first thread, first parameter information of the logical port according to a preset time period, where the first parameter information includes the first physical address;
[0013] Using the first thread to compare the first parameter information with pre-stored second parameter information, where the second parameter information includes the second physical address;
[0014] When the comparison results of the first parameter information and the second parameter information are inconsistent, using the first thread to send a first message to the second thread, the first message is used to instruct the second thread to run;
[0015] In a case where the second thread receives the first message, it is determined based on the second thread whether the first physical address and the second physical address are the same.
[0016] In one embodiment, detecting the association identifier in the hardware accelerator includes:
[0017] If it is determined based on the second thread that the first physical address is the same as the second physical address, the second thread is used to detect an association identifier in the hardware accelerator.
[0018] In one of the embodiments, after detecting the association identifier in the hardware accelerator, the method further includes:
[0019] If the association identifier is not detected in the hardware accelerator, an association identifier is added to the hardware accelerator according to the first parameter information.
[0020] In one embodiment, the first parameter information further includes: a control field and a name of a logical port, and adding an association identifier in the hardware accelerator according to the first parameter information includes:
[0021] When the state of the control field is the first state, determining the target information based on the name of the logical port;
[0022] An association identifier is added in the hardware accelerator according to the target information, wherein the first state indicates that the first parameter information of the logical port is not modified.
[0023] In one of the embodiments, before detecting the association identifier in the hardware accelerator, the method further includes:
[0024] A communication request is received, and the hardware accelerator is initialized based on the communication request, wherein the communication request indicates address information of an open virtual network; the initialization includes: configuring a data forwarding path of the hardware accelerator; registering a node with the open virtual network; configuring connection information with the open virtual network; configuring identification information of the hardware accelerator; and configuring a tunnel encapsulation mode as a network virtualization encapsulation protocol.
[0025] In a second aspect, the present disclosure further provides a network connection device. The device comprises:
[0026] a detection module, configured to detect whether a first physical address of the logical port is the same as a second physical address of the server when monitoring a logical port for creating a virtual private network; if the first physical address is the same as the second physical address, detecting an association identifier in the hardware accelerator, the association identifier being used to indicate establishment of a connection between the server and the virtual private network;
[0027] a rule updating module, configured to update a routing configuration rule of the hardware accelerator in response to detecting the association identifier in the hardware accelerator, wherein the routing configuration rule is used to route transmission data between the server and the virtual private network through the hardware accelerator;
[0028] A network connection module is used to respond to a dynamic host configuration protocol request initiated by the server, determine the network address of the virtual private network based on the updated routing configuration rules, and send the network address of the virtual private network to the server, wherein the network address is used by the server to establish a network connection with the private network.
[0029] In a third aspect, the present disclosure further provides an electronic device, wherein the electronic device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in any of the above method embodiments are implemented.
[0030] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0031] In a fifth aspect, the present disclosure further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0032] In the above embodiments, the hardware accelerator is used as the connection middleware between the server and the cloud computing platform. Programming can be performed in the hardware accelerator to automatically control the connection between the server and the cloud computing platform. There is no need to manually configure different types of switches. Only one configuration is performed in the hardware accelerator to detect the association identifier and use the association identifier to update the routing configuration rules, thereby enabling the server to access the virtual private network. In addition, the hardware accelerator is used to control the communication between the cloud computing platform and the server. The network communication between the cloud computing platform and the server is carried out through the hardware accelerator, which can ensure that the relationship between the server and the hardware accelerator is like the relationship between the virtual machine and the host (hypervisor), and the server can have all the advantages of the VPC private network, such as network isolation, just like an ordinary virtual machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0034] Figure 1 A schematic diagram of an application environment of a network connection method in an embodiment;
[0035] Figure 2 A schematic diagram of a flow chart of a network connection method in an embodiment;
[0036] Figure 3 Schematic diagram of the process of step S202 in one embodiment;
[0037] Figure 4A schematic diagram of a traffic path between a bare metal server and a cloud computing platform in one embodiment;
[0038] Figure 5 is a timing diagram of a network connection method in another embodiment;
[0039] Figure 6 A schematic block diagram of the structure of a network connection method device in one embodiment;
[0040] Figure 7 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0043] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.
[0044] As described in the background technology, in the traditional technology, the data flow path between the cloud computing platform and the bare metal server may include the following process: the virtual machine of the cloud computing platform is usually connected to the host machine of the cloud computing platform through a tap device. Then, after the vxlan tunnel encapsulation, the data packet is sent to the VTEP Gateway physical switch. The VTEP Gateway physical switch disassembles the vxlan tunnel encapsulation and sends the data packet to the bare metal server. Usually, the virtual machine and the bare metal server need to belong to the same VPC. VPC (Virtual Private Cloud) is a network virtualization technology in cloud computing, which is usually provided by cloud service providers (such as Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), etc.). VPC allows users to create and manage a virtual private network for hosting their cloud resources, such as virtual machines, databases, storage, etc., while providing a high degree of network isolation and security. VTEP Gateway is used to establish tunnel connections in the virtual network, which are used to transmit data flows in the virtual network across the physical network. VTEP Gateway acts as a bridge between the virtual network and the physical network. Bare Metal Server is a physical server that has no virtualization layer or virtual machine monitor and runs directly on physical hardware. Unlike traditional virtual machines, bare metal servers do not require virtualization or simulated hardware, and therefore provide performance and resource access close to physical hardware. VXLAN (Virtual Extensible LAN) tunnel is a tunnel technology for virtual networks. It is used to expand the number of virtual local area networks (VLANs) in data center networks to meet the needs of large-scale virtualization and cloud computing environments. VXLAN tunnel creates a logical tunnel on the underlying IP (Internet Protocol) network and encapsulates the virtual network's data packets in UDP (User Datagram Protocol) packets for transmission. In this way, virtual networks can communicate across physical networks.
[0045] During the data interaction process, the operation and maintenance personnel are usually required to manually configure the relevant parameters on the VTEP Gateway physical switch. Different physical switch vendors provide different technical implementation methods, so the configuration of relevant parameters is also different. It is difficult to have a unified configuration, so it is difficult to achieve automation. Manual maintenance is required according to different physical switches, which increases labor costs. In addition, since physical switches generally only support vxlan channels, the networks that VPC can support are very limited. In addition, due to the limitation of the extensible field of the vxlan header, it is impossible to match the ingress port, so the support for security groups and ACLs is also incomplete. Ingress port refers to the port where the data packet enters the network. When a data packet enters a network from an external network, it enters the network through a specific ingress port. ACL (Access Control List), that is, access control list. In network communication, ACL is used to control the traffic on network devices and determine which data packets can pass through the device and which need to be blocked. ACL can be configured based on conditions such as source IP address, destination IP address, protocol type, port number, etc., allowing network administrators to limit network traffic according to specific security policies. Through ACL, network administrators can control user access rights to network resources and improve network security.
[0046] Therefore, in order to solve the above problems, the present disclosure provides a network connection method, which can be applied to Figure 1In the application environment shown. Among them, the server 102 is connected to the cloud computing platform server 104 through the hardware accelerator 106. The server 102 and the hardware accelerator 106 are connected by a connection device. When the hardware accelerator 106 monitors the logical port of the cloud computing platform server 104 to create a virtual private network, the hardware accelerator 106 detects whether the first physical address of the logical port is the same as the second physical address of the server 102. If the first physical address and the second physical address are the same, the association identifier is detected in the hardware accelerator 106. The association identifier is used to indicate the establishment of a connection between the server 102 and the virtual private network. In response to the detection of the association identifier in the hardware accelerator 106, the routing configuration rule of the hardware accelerator 106 is updated. The routing configuration rule is used to route the transmission data between the server and the virtual private network through the hardware accelerator. In response to the dynamic host configuration protocol request initiated by the server 102, the hardware accelerator 106 determines the network address of the virtual private network based on the updated routing configuration rule, and sends the network address of the virtual private network to the server 102. The network address is used for the server 102 to establish a network connection with the virtual private network. Among them, the cloud computing platform server 104 can be Open Stack, SUSE Open Stack Cloud, Microsoft Azure Stack, AWS Outposts, etc. The hardware accelerator 106 can be a DPU (Data Processing Unit) in some embodiments of the present disclosure, which can be a smart network card, a dedicated hardware accelerator for high-performance computing, data processing and AI workloads, and can significantly improve computing performance and efficiency. It is suitable for multiple fields, including scientific research, data centers, communications, and machine learning. The server 102 can be a bare metal server.
[0047] In one embodiment, first, various components running in a cloud computing platform server and a hardware accelerator in some embodiments of the present disclosure are described. Generally, a bm (baremetal)-conductor component can be run in a cloud computing platform server, and bm-conductor can be a control component. Ovn (Open Virtual Network) can also be run in a cloud computing platform server. Ovn-controller and bm (baremetal)-agent can be run in a hardware accelerator. Bm-conductor interacts with bm-agent to configure and initialize the hardware accelerator. Bm-conductor can initiate instructions to bm-agent (through http requests) to control various operations of bm-agent. Ovn-controller is the core control plane component in the Ovn (Open Virtual Network) solution.
[0048] In one embodiment, Figure 2 As shown, a network connection method is provided, which is applied to Figure 1 The hardware accelerator 106 in the embodiment is taken as an example to illustrate, and the following steps are included:
[0049] S202: When a logical port for creating a virtual private network is monitored, detect whether a first physical address of the logical port is the same as a second physical address of the server.
[0050] Among them, the virtual private network can be a VPC private network. VPC (Virtual Private Cloud) private network is a virtual network created in a cloud computing platform to isolate and protect users' computing resources in a public cloud. VPC allows users to create an independent, private network space in a cloud computing platform, in which users can define their own IP address ranges, subnets, routing tables, and access control rules to achieve full control and customization of the network. Through the VPC private network, users can create virtual servers, storage resources, and other cloud services, and can connect to the enterprise's internal network or other cloud services in a secure manner. VPC private networks provide security, isolation, and flexibility to help users better manage and protect their applications and data deployed in cloud computing platforms. Logical ports are created in open virtual networks by cloud computing platforms when cloud computing platforms detect that cloud ports have been created. Open virtual networks can usually be ovn (OpenVirtual Network), which is an open source virtual network project. It is a component based on Open v Switch (OVS) and aims to provide scalable, programmable, and multi-tenant virtual network solutions. Ovn can be used to build and manage virtual networks, support communications between virtual machines, containers, and physical hosts, and provide functions such as network isolation, routing, load balancing, and security policies. The physical address is usually a MAC (Media Access Control Address) address.
[0051] In addition, it should be noted that since the disclosed embodiments are described by taking the application to the hardware accelerator as an example, the hardware accelerator needs to work in the embedded function (ECPF) mode, and the network communication with the server is carried out through the virtual switch control plane (open v switch) in the hardware accelerator system, and then passed to the server. The server can be a bare metal server in some embodiments of the present disclosure.
[0052] Specifically, first, the application environment in this case is described. The bare metal server is connected to the cloud computing platform through a hardware accelerator, and the bare metal server and the hardware accelerator are connected using a connection device. In some embodiments of the present disclosure, the connection device can be a PF Representor, which is a Representor of the bare metal server's internal network card on the hardware accelerator, similar to a tun / tap device, which is equivalent to the two ends of a network cable, one end is plugged into the bare metal server, and the other end is plugged into the hardware accelerator.
[0053] When users connect bare metal servers to cloud computing platforms, they usually need to connect bare metal servers to the virtual private network of the cloud computing platform to achieve network connection between bare metal servers and cloud computing platforms. At this time, users can create cloud ports in the cloud computing platform. Usually, the type of cloud ports can be normal. Normal means that the hardware accelerator will use geneve tunnel encapsulation (i.e., the form of overlay network) when connecting. When the cloud computing platform monitors the creation of cloud ports, it can create a logical port of the virtual private network in the open virtual network. For example, a logical port (logical_switch_port) can be created in ovn north DB. The type can be VIF. VIF (Virtual Interface) type refers to the interface type used to connect virtual machines to physical networks in computer networks. VIF types can be selected according to different network requirements and technical standards. Common VIF types include the following: Bridge VIF: Bridge the network traffic of virtual machines to the physical network, so that virtual machines can communicate directly with other devices in the physical network. VLAN (Virtual LAN) VIF: Isolate and mark the network traffic of virtual machines through VLAN to achieve the division and management of virtual LANs. Private Network VIF: Limits the network traffic of virtual machines to a private network, isolating it from other virtual machines or physical networks. Virtual Switch VIF: Processes and forwards the network traffic of virtual machines through virtual switches to achieve communication between virtual machines. Virtual Router VIF: Forwards and routes the network traffic of virtual machines through virtual routers to achieve communication between virtual machines and between virtual machines and physical networks.
[0054] In addition, after creating a logical port, you can check whether the first physical address of the logical port is the same as the second physical address of the bare metal server. Usually, in the process of creating a logical port, in order to ensure that the bare metal server and the cloud computing platform can be connected to the network, the MAC address (first physical address) of the logical port can be set to be the same as the MAC address (second physical address) of the bare metal server.
[0055] S204: If the first physical address and the second physical address are the same, detecting an association identifier in a hardware accelerator.
[0056] The association identifier is used to indicate establishment of a connection between the server and the virtual private network.
[0057] Specifically, when the hardware accelerator detects that the first physical address and the second physical address are the same, the hardware accelerator may continue to detect the association identifier. Typically, the association identifier may be detected in a connection device of the hardware accelerator.
[0058] S206: In response to detecting the association identifier in the hardware accelerator, updating a routing configuration rule of the hardware accelerator.
[0059] Wherein, the routing configuration rules are used to route the transmission data between the server and the virtual private network through the hardware accelerator. The routing configuration rules may be openflow rules, which are a set of rules used to control the way data packets are processed in network switches. Openflow rules generally include a match field and an action field. The match field is used to define the matching conditions of the data packet, such as the source IP address, the destination IP address, the protocol type, etc. The action field is used to define the operation that should be performed when the data packet matches the rule conditions, such as forwarding to a specific port, discarding the data packet, modifying the data packet header, etc. In some embodiments of the present disclosure, the routing configuration rules are used to route the transmission data between the server and the virtual private network through a hardware accelerator, that is, to route the data in the server to the virtual private network or to route the data in the virtual private network to the server.
[0060] Specifically, when the hardware accelerator detects that an association identifier has been added to the connected device, the hardware accelerator may update the routing configuration rule.
[0061] In some exemplary embodiments, when the bm-agent of the hardware accelerator monitors that a logical_switch_port is created in ovn, it can interact with the open v switch to associate the association identifier with the connected device in the hardware accelerator. Then the ovn-controller component is triggered, and the parameter information of the ovn-controller component and the logical_switch_port is used to update the openflow rule.
[0062] In other exemplary embodiments, when the bm-agent of the hardware accelerator monitors the creation of the ovn northDB logical_switch_port according to northdb_address (ovn's address), and finds that the MAC address is the bare metal MAC address, it can set the iface-id for the PF Representor, and the format of the iface-id is iface-id="lsp_name", and then trigger the ovn-controller to update the openflow rules.
[0063] S208, responding to the dynamic host configuration protocol request initiated by the server, determining the network address of the virtual private network based on the updated routing configuration rule, and sending the network address of the virtual private network to the server, wherein the network address is used by the server to establish a network connection with the virtual private network.
[0064] The dynamic host configuration protocol request may be a DHCP (Dynamic Host Configuration Protocol) request, and the network address may be an IP (Internet Protocol) address.
[0065] Specifically, the bare metal server can initiate a DHCP request to the hardware accelerator. In response to the dynamic host configuration protocol request initiated by the bare metal server, the ovs in the hardware accelerator determines the network address of the virtual private network according to the updated routing configuration rules, and sends the network address of the virtual private network to the bare metal server, thereby responding to the DHCP request issued by the bare metal server. After receiving the network address, the bare metal server can establish a connection with the virtual private network based on the network address to achieve network connection with the cloud computing platform.
[0066] In the above network connection method, a hardware accelerator is used as the connection middleware between the server and the cloud computing platform. Since the hardware accelerator is different from the traditional network card, the hardware accelerator itself also runs an operating system. Programming can be performed in the hardware accelerator to automatically control the connection between the server and the cloud computing platform. There is no need to manually configure different types of switches. Only one configuration is performed in the hardware accelerator to detect the association identifier and use the association identifier to update the routing configuration rules, thereby enabling the server to access the virtual private network. In addition, the hardware accelerator is used to control the communication between the cloud computing platform and the server. The network communication between the cloud computing platform and the server is carried out through the hardware accelerator, which can ensure that the relationship between the server and the hardware accelerator is like the relationship between the virtual machine and the host (hypervisor), and the server can have all the advantages of the VPC private network, such as network isolation, just like an ordinary virtual machine.
[0067] At the same time, the server in this case is a bare metal server, so it can also have the advantages of high performance and hardware-level isolation of bare metal servers, and is suitable for high-performance scenarios such as databases or middleware (High-performance computing).
[0068] In one embodiment, Figure 3As shown, the hardware accelerator runs a first thread and a second thread. Generally, two threads can be newly started in the bm-agent of the hardware accelerator, namely the first thread and the second thread. The detecting whether the first physical address of the logical port is the same as the second physical address of the server includes:
[0069] S302: acquiring, in the first thread, first parameter information of the logical port according to a preset time period, where the first parameter information includes the first physical address;
[0070] The preset time period can be determined according to actual needs, for example, the preset time period can be 5s, 15s or 1 minute, etc. In some embodiments of the present disclosure, the preset time period is not limited. The first parameter information includes a first physical address. In addition to the first physical address, the first parameter information may also include the name of the logical port obtained in the current time period and other information, such as the creation time of the logical port.
[0071] Specifically, the first thread and the second thread may be started in the bm-agent, and the first thread is used to obtain the first parameter information of the logical port according to a preset time period.
[0072] S304: Use the first thread to compare the first parameter information with pre-stored second parameter information, where the second parameter information includes the second physical address.
[0073] Among them, the second parameter information includes a pre-stored second physical address. In addition to the second physical address, the second parameter information may also include a pre-stored logical port name and other information. The other information may also include, for example: the creation time of the logical port, and a control field that characterizes whether the information of the logical port has been modified.
[0074] Specifically, the second parameter information is obtained in advance and stored. Generally, the second parameter information can be iterated according to time. For example, the second parameter information is obtained at the 10th second and the second parameter information is obtained again at the 20th second. The second parameter information obtained at the 10th second can be replaced by the second parameter information obtained at the 20th second. Then the first parameter information of the obtained logical port is compared with the stored second parameter information. It should be noted that the above-mentioned iteration time is only used for illustration, and in some embodiments of the present disclosure, the time for iterating the second parameter information is not limited.
[0075] In some exemplary embodiments, the first thread can obtain the full amount of logical_switch_port from ovn northDB every second time period (for example, 10s), and obtain the name (name), mac address, and some other types of information of the logical_switch_port. Then store it in a map (map is a data structure). Then, every first time period (for example, 15s), the name (name), mac address, and some other types of information of the logical_switch_port can be obtained. Then compare it with the information in the map. Usually, the first time period and the second time period can be set by a timer. Other types of information are not limited to specific types in this embodiment.
[0076] S306: When the comparison results of the first parameter information and the second parameter information are inconsistent, use the first thread to send a first message to the second thread, where the first message is used to instruct the second thread to run.
[0077] S308: When the second thread receives the first message, determine whether the first physical address is the same as the second physical address based on the second thread.
[0078] Specifically, when the comparison results of the first parameter information and the second parameter information are inconsistent, it is usually possible that the port in the cloud computing platform needs to be adjusted or a new port is added. For example, in the 10th second, no cloud port is created in the cloud computing platform, and there is no logical port for creating a virtual private network. At this time, the data in the map can be empty. The data stored in the map is the second parameter information. In the 12th second, the cloud port is created, and after the cloud port is created, the corresponding logical port of the virtual private network is created. If the various information of the logical port of the virtual private network is obtained and stored in the map at the 15th second, the data in the map has not been updated at this time (the second parameter information has not been updated and is empty), and the first thread has obtained various information of the logical port of the virtual private network at 12 seconds, and the various information of the logical port of the virtual private network can be the first parameter information. Therefore, at 12 seconds, the first parameter information obtained is the various information of the logical port of the virtual private network created at 12 seconds, and the second parameter obtained is empty. At this time, the comparison result will change, that is, the comparison result of the first parameter information and the second parameter information is inconsistent. Alternatively, at the 10th second, the first parameter information and the second parameter information obtained are the same, and at the 12th second, a cloud port is re-created, and the corresponding virtual private network logical port is created at this time, and the various information of the virtual private network logical port is obtained and stored in the map at 15th second, so the data in the map has not been updated at this time (the second parameter information has not been updated to the information at the 10th second), and at the 12th second, the logical port (first parameter information) of the re-created corresponding virtual private network has been obtained, so at the 12th second, the first parameter information obtained is the logical port of the corresponding virtual private network created at the 12th second, and the second parameter information obtained is the information at the 10th second that has not been updated, so the comparison result will also change. Whether the current logical port has been adjusted can be determined by comparing the results of the comparison. If the logical port has been adjusted, the first thread can send a first message to the second thread, and the second thread runs after receiving the first message. The second thread is used to determine whether the first physical address of the logical port is the same as the second physical address of the server in the second parameter information.
[0079] In this embodiment, by comparing the first parameter information and the second parameter information, it is possible to accurately determine when the user needs to connect the virtual private network to the bare metal server, thereby improving the efficiency of network connection. By having two threads perform different operations respectively and then the two threads interact with each other, different responsibilities can be separated and mutual interference between different operations can be reduced.
[0080] In one embodiment, detecting the association identifier in the hardware accelerator includes:
[0081] If it is determined based on the second thread that the first physical address is the same as the second physical address, the second thread is used to detect an association identifier in the hardware accelerator.
[0082] Specifically, if it is determined based on the second thread that the first physical address has not been adjusted and is still the same as the second physical address of the server, the second thread may be used to detect the association identifier in the hardware accelerator.
[0083] In one embodiment, after detecting the association identifier in the hardware accelerator, the method further includes:
[0084] If the association identifier is not detected in the hardware accelerator, an association identifier is added to the hardware accelerator according to the first parameter information.
[0085] Specifically, when the association identifier is not detected in the hardware accelerator, the association identifier may be added to the hardware accelerator according to the first parameter information. Furthermore, the second thread may be used to add the association identifier to the connection device of the hardware accelerator according to the first parameter information.
[0086] In one embodiment, the first parameter information further includes: a control field and a name, and adding an association identifier in the hardware accelerator according to the first parameter information includes:
[0087] In a case where the state of the control field is a first state, target information is determined based on the name of the logical port.
[0088] The target information may generally be the value of an associated identifier.
[0089] An association identifier is added in the hardware accelerator according to the target information, wherein the first state indicates that the first parameter information of the logical port is not modified.
[0090] Specifically, after creating a logical port, usually, the various parameter information (such as the name) of the logical port has not been modified, that is, in the default state, the control field of the logical port can be set to the first state. If the state of the control field is the first state, it can be generally determined that the various information of the logical port has not been modified. In order to ensure that the bare metal server can access the virtual private network through the logical port, the target information can be determined based on the name of the logical port, the value of the association identifier can be set based on the target information, and the association identifier can be added in the connection device of the hardware accelerator.
[0091] In some exemplary embodiments, when the state of the control field is the first state (down), the association identifier (iface-id) can be set in the connection device (PF Representor), and the value of the association identifier can be set to lsp_name through ovs-vsctl setInterface PF_Representor external-ids:iface-id=' lsp_name', where lsp_name can be the name of the logical port. When the state of the control field is the second state (up), it can be determined that the association identifier has been set and no subsequent processing is required.
[0092] In this embodiment, it is possible to accurately determine whether various settings have been completed based on the status of the control field, thereby accurately controlling, reducing errors caused by repeated setting of association identifiers, and improving efficiency.
[0093] In one embodiment, before adding the association identifier to the connection device, the method further includes:
[0094] A communication request is received, and the hardware accelerator is initialized based on the communication request, wherein the communication request indicates address information of an open virtual network, and the initialization includes: configuring a data forwarding path of the hardware accelerator; registering a node with the open virtual network; configuring connection information with the open virtual network; configuring identification information of the hardware accelerator; and configuring a tunnel encapsulation mode as a network virtualization encapsulation protocol.
[0095] The address information of the open virtual network may be the IP address information of the ovn. Tunnel encapsulation mode is a network communication technology used to establish a secure and private connection between two networks. In tunnel encapsulation mode, data packets are encapsulated and transmitted through a tunnel between a source network and a target network to ensure the security and integrity of the data. The network virtualization encapsulation protocol may be the Geneve (Generic Network Virtualization Encapsulation) protocol. The Geneve protocol is a flexible tunnel encapsulation protocol that can be used on various network devices and network virtualization platforms. It can encapsulate different types of data packets, including Ethernet frames, IPv4 and IPv6 data packets, etc. The data forwarding path of the hardware accelerator can be configured by configuring the open vswitch table. The open v switch table is a data structure for storing flow table rules, which contains information such as forwarding rules, matching conditions and actions, and is used to determine the forwarding path of data packets. The connection information with the open virtual network includes: the address of the connection of the open virtual network, port information, health check interval information, etc.
[0096] Specifically, since the hardware accelerator is needed in this case to complete the bare metal server access to the virtual private network of the cloud computing platform, it is necessary to process the hardware accelerator, that is, to initialize the hardware accelerator. The initialization process may include operations such as the development and configuration of various functions. The development and configuration of various functions may include: configuring the connection information with the open virtual network, configuring the tunnel encapsulation mode, configuring the data forwarding path of the hardware accelerator, registering the node with OVN, etc.
[0097] Since bm-agent is running in the hardware accelerator, bm-agent needs to expose the http (Hypertext Transfer Protocol) service, that is, open the http service. At this time, bm-conductor in the cloud computing platform will send a communication request to bm-agent through http. The hardware accelerator receives the communication request and can initialize itself according to the communication request.
[0098] In some exemplary embodiments, the communication request may be an http request, and the parameter is the IP address of ovn, and the IP address of ovn may include: the IP address of ovn southDB and the IP address of ovn northDB. ovnsouthDB and ovn northDB are two components, which are part of ovn (OpenVirtualNetwork). ovnsouthDB is part of ovn and is responsible for storing and managing the logical network topology information of ovn. It stores information of objects such as logical switches, logical ports, logical routers, and related configuration and status information. ovn southDB is also responsible for handling updates and event notifications of logical networks.
[0099] ovn northDB is ovn's distributed database, which stores information about virtual machines and physical hosts. It contains the network configuration of the physical host, the network connection information of the virtual machine, traffic mirroring rules, etc. ovn northDB is used to support ovn's data plane functions, such as communication between virtual machines and communication between virtual machines and external networks.
[0100] The two communicate through northbound and southbound connections. ovn southDB synchronizes logical network changes to ovnnorthDB, and ovn northDB feeds back data plane information to ovn southDB to realize the functions of the entire ovn.
[0101] The IP address format of ovn southDB is:
[0102] southdb_address: tcp:IP1:PORT1,tcp:IP2:PORT1,tcp:IP3:PORT1,
[0103] Among them, sourthdb_address can be a key;
[0104] tcp:IP1:PORT1,tcp:IP2:PORT1,tcp:IP3:PORT1 can be value;
[0105] The IP address format of ovn northDB is:
[0106] northdb_address: tcp:IP1:PORT2,tcp:IP2:PORT2,tcp:IP3:PORT2,
[0107] Among them, northdb_address can be a key;
[0108] tcp:IP1:PORT2,tcp:IP2:PORT2,tcp:IP3:PORT2 can be value. bm-conductor initiates an http request to bm-agent, passing two parameters, namely the IP address of ovn southDB and the IP address of ovn northDB. According to the IP address of ovn southDB and the IP address of ovn northDB, ovn can be connected.
[0109] When bm-agent receives a request from bm-conductor, it can configure the open v switch table to implement network functions, register the node with ovn and add itself to ovn management as a network node for network management and communication, so that the hardware accelerator can connect to the virtual private network.
[0110] The purpose of configuring the open v switch table and registering nodes with ovn is to achieve flexible control and management of virtual networks to meet network requirements in different scenarios. In addition, you can also configure the tunnel encapsulation mode, set the tunnel encapsulation mode to Geneve, and configure the Geneve tunnel encapsulation IP of the hardware accelerator. You can set the tunnel encapsulation mode with the following command:
[0111] ovs-vsctl set open . external-ids:ovn-encap-type=geneve;
[0112] You can configure the hardware accelerator's geneve tunnel encapsulation IP through the following command:
[0113] ovs-vsctl set open . external-ids:ovn-encap-ip="IP:PORT". When the tunnel encapsulation mode is configured as Geneve, the Geneve protocol can be used to encapsulate and transmit data packets in the virtualized network to achieve communication and isolation between virtual networks.
[0114] In addition, you can also configure the connection information related to ovn southDB in ovn. You can use the following command to configure the connection information and other types of information related to ovn southDB (other types of information can be the identification information of the hardware accelerator, such as the host name, identifier, etc.)
[0115] ovs-vsctl set open.
[0116] external-ids:ovn-remote="tcp:IP1:PORT1,tcp:IP2:PORT1,tcp:IP3:PORT1"
[0117] ovs-vsctl set open . external-ids:ovn-openflow-probe-interval="60"
[0118] ovs-vsctl set open . external-ids:ovn-remote-probe-interval="60000"
[0119] ovs-vsctl set open . external-ids:system-id="test-dpu"
[0120] ovs-vsctl set open . external-ids:hostname="test-dpu"
[0121] This command can set the value of the ovn-remote attribute to:
[0122] "tcp:IP1:PORT1,tcp:IP2:PORT1,tcp:IP3:PORT1". This property is used to specify the IP address and port for connecting to ovnsouthDB. You can specify multiple IP addresses and ports separated by commas, which means that you can connect to multiple ovn southDB instances to improve reliability and redundancy.
[0123] Set the value of the ovn-openflow-probe-interval attribute to "60". This attribute is used to specify the health check interval of the openflow rule, the time interval for detecting whether the openflow connection is normal. The unit is seconds.
[0124] Set the value of the ovn-remote-probe-interval property to "60000". This property is used to specify the health check interval, which specifies the time interval for whether the connection with ovn southDB is normal.
[0125] Set the value of the system-id property to "test-dpu". This property is used to specify the identifier of the hardware accelerator.
[0126] Set the value of the hostname property to "test-dpu". This property is used to specify the host name of the hardware accelerator.
[0127] These configuration items are used to establish a connection with ovn southDB and periodically detect the health status of the connection. At the same time, the hardware accelerator can also be identified by system-id and hostname.
[0128] In this embodiment, by initializing the hardware accelerator, it can be ensured that the program running in the system of the hardware accelerator can control the connection between the bare metal server and the virtual private network.
[0129] In one embodiment, Figure 4As shown in the figure, after the bare metal server is connected to the virtual private network in the cloud computing platform through the hardware accelerator, the traffic path between the virtual machine in the cloud computing platform and the bare metal server may include: the data packet of the bare metal server is sent from its own network card (eth0) to the connection device (PFRepresentor) on the hardware accelerator. Then it reaches the br-int bridge of the hardware accelerator, passes through the geneve tunnel, and sends the data packet to the host where the virtual machine in the cloud computing platform is located through the tunnel interface. Tunnel interface is a virtual interface used to create a tunnel connection in the network to transmit data between two networks. The tunnel interface realizes the connection and communication between networks by encapsulating the original data packet and transmitting it in the network. Tunnel interface is usually used to connect different networks or cross different network technologies, such as connecting IPv4 and IPv6 networks, connecting different physical networks or connecting remote offices through tunnel interfaces in IP networks. Tunnel interface can realize data packet encapsulation and transmission through various tunnel protocols (such as GRE, IPsec, L2TP, etc.). Through tunnel interface, network administrators can create secure and private communication channels in the network to realize interconnection between different networks. Tunnel interfaces can also be used to implement virtual network connections, remote access, and data encryption. The host where the virtual machine is located receives data packets from the tunnel interface. The data packets reach the br-int bridge and reach the virtual machine through the tap port. The tap device is a virtual network device in Linux that is used to connect the virtual machine and the host.
[0130] In one embodiment, Figure 5 As shown, the present disclosure also provides a network connection method, including:
[0131] The user deploys bm-agent in the hardware accelerator and deploys ovn controller in the hardware accelerator. bm-agent and ovn controller return the deployment results. The user can run the bm-conductor component in the cloud computing platform. And initiate a request to configure the open v switch to the bm-conductor component. bm-conductor sends an http request to bm-agent, which is used to instruct bm-agent to configure the open v switch and the initialization of the hardware accelerator. When bm-agent successfully configures the open v switch, it returns the result to the user. The user creates a port in the cloud computing platform. The type of port can be normal. The cloud computing platform creates a logical_switch_port corresponding to the port in ovn. The bm-agent of the hardware accelerator listens to the creation of the logical_switch_port, associates the name of the logical_switch_port with the association identifier, that is, associates the association identifier (iface-id=name) with the PFRepresentor of the hardware accelerator. The ovn controller of the hardware accelerator listens to the change of iface-id and updates the routing configuration rules according to the result of the change. Bare metal servers can connect to the network according to the updated routing configuration rules.
[0132] For some implementation methods of this embodiment, please refer to the above embodiments, which will not be repeated here.
[0133] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0134] Based on the same inventive concept, the embodiment of the present disclosure also provides a network connection device for implementing the network connection method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more network connection device embodiments provided below can refer to the limitations on the network connection method above, and will not be repeated here.
[0135] In one embodiment, Figure 6 As shown, a network connection device 400 is provided, including: a detection 402, a rule updating module 404, and a network connection module 406, wherein:
[0136] A detection module 402 is used to detect whether a first physical address of the logical port is the same as a second physical address of the server when monitoring a logical port for creating a virtual private network; if the first physical address is the same as the second physical address, an association identifier is detected in the hardware accelerator, where the association identifier is used to indicate that a connection between the server and the virtual private network is established;
[0137] A rule updating module 404, configured to update a routing configuration rule of the hardware accelerator in response to detecting the association identifier in the hardware accelerator, wherein the routing configuration rule is used to route transmission data between the server and the virtual private network through the hardware accelerator;
[0138] The network connection module 406 is used to respond to the dynamic host configuration protocol request initiated by the server, determine the network address of the virtual private network based on the updated routing configuration rules, and send the network address of the virtual private network to the server. The network address is used by the server to establish a network connection with the private network.
[0139] In one embodiment of the device, the hardware accelerator runs a first thread and a second thread, and the detection module 402 includes:
[0140] The first thread acquisition module is used to acquire first parameter information of the logical port in the first thread according to a preset time period, where the first parameter information includes the first physical address.
[0141] The first thread comparison module is used to compare the first parameter information with pre-stored second parameter information by using the first thread, where the second parameter information includes the second physical address.
[0142] The information sending module is used to use the first thread to send a first message to the second thread when the comparison results of the first parameter information and the second parameter information are inconsistent, and the first message is used to instruct the second thread to run.
[0143] The second thread processing module is configured to determine, based on the second thread, whether the first physical address is the same as the second physical address when the second thread receives the first message.
[0144] In one embodiment of the device, the detection module 402 further includes: a second thread detection module, configured to detect an association identifier in the hardware accelerator using the second thread if it is determined based on the second thread that the first physical address and the second physical address are the same.
[0145] In one embodiment of the device, the detection module 402 further includes: an association identifier adding module, configured to add an association identifier in the hardware accelerator according to the first parameter information if the association identifier is not detected in the hardware accelerator.
[0146] In one embodiment of the device, the first parameter information also includes: a control field and a name, and the association identifier adding module is further used to determine the target information based on the name of the logical port when the state of the control field is a first state; and add an association identifier in the hardware accelerator according to the target information, wherein the first state indicates that the first parameter information of the logical port has not been modified.
[0147] In one embodiment of the device, the device also includes: an initialization module, used to receive a communication request, and initialize the hardware accelerator based on the communication request, wherein the communication request indicates address information of an open virtual network; the initialization includes: configuring a data forwarding path of the hardware accelerator; registering a node with the open virtual network; configuring connection information with the open virtual network; configuring identification information of the hardware accelerator; and configuring a tunnel encapsulation mode as a network virtualization encapsulation protocol.
[0148] Each module in the above network connection device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0149] In one embodiment, an electronic device is provided. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The electronic device includes a processor, a memory and a network interface connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store parameter information (first parameter information, second parameter information) and associated identifiers of the logical port. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a network connection method is implemented.
[0150] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0151] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in any of the above method embodiments are implemented.
[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0153] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0154] It should be noted that the various information involved in this application, such as parameter information of logical ports, association identifiers, various information in the server, etc., are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.
[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.
[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0157] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.
Claims
1. A network connection method, characterized in that: include: In the case of monitoring a logical port for creating a virtual private network, detecting whether a first physical address of the logical port is the same as a second physical address of the server; If the first physical address and the second physical address are the same, detecting an association identifier in a hardware accelerator, the association identifier being used to indicate establishment of a connection between the server and the virtual private network; In response to detecting the association identifier in the hardware accelerator, updating a routing configuration rule of the hardware accelerator, the routing configuration rule being used to route transmission data between the server and the virtual private network through the hardware accelerator; In response to a dynamic host configuration protocol request initiated by the server, a network address of the virtual private network is determined based on an updated routing configuration rule, and the network address of the virtual private network is sent to the server, where the network address is used by the server to establish a network connection with the virtual private network.
2. The method according to claim 1, characterized in that The hardware accelerator runs a first thread and a second thread, and the detecting whether the first physical address of the logical port is the same as the second physical address of the server includes: Acquire, in the first thread, first parameter information of the logical port according to a preset time period, where the first parameter information includes the first physical address; Using the first thread to compare the first parameter information with pre-stored second parameter information, where the second parameter information includes the second physical address; When the comparison results of the first parameter information and the second parameter information are inconsistent, using the first thread to send a first message to the second thread, the first message is used to instruct the second thread to run; In a case where the second thread receives the first message, it is determined based on the second thread whether the first physical address and the second physical address are the same.
3. The method according to claim 2, characterized in that The detecting the association identifier in the hardware accelerator includes: If it is determined based on the second thread that the first physical address is the same as the second physical address, the second thread is used to detect an association identifier in the hardware accelerator.
4. The method according to claim 3, characterized in that After detecting the association identifier in the hardware accelerator, the method further includes: If the association identifier is not detected in the hardware accelerator, an association identifier is added to the hardware accelerator according to the first parameter information.
5. The method according to claim 4, characterized in that The first parameter information further includes: a name of a control field and a logical port, and adding an association identifier in the hardware accelerator according to the first parameter information includes: When the state of the control field is the first state, determining the target information based on the name of the logical port; An association identifier is added in the hardware accelerator according to the target information, wherein the first state indicates that the first parameter information of the logical port is not modified.
6. The method according to any one of claims 1 to 5, characterized in that Before detecting the association identifier in the hardware accelerator, the method further includes: A communication request is received, and the hardware accelerator is initialized based on the communication request, wherein the communication request indicates address information of an open virtual network; the initialization includes: configuring a data forwarding path of the hardware accelerator; registering a node with the open virtual network; configuring connection information with the open virtual network; configuring identification information of the hardware accelerator; and configuring a tunnel encapsulation mode as a network virtualization encapsulation protocol.
7. A network connection device, characterized in that: The device comprises: a detection module, configured to detect whether a first physical address of the logical port is the same as a second physical address of the server when monitoring a logical port for creating a virtual private network; if the first physical address is the same as the second physical address, detecting an association identifier in the hardware accelerator, the association identifier being used to indicate establishment of a connection between the server and the virtual private network; a rule updating module, configured to update a routing configuration rule of the hardware accelerator in response to detecting the association identifier in the hardware accelerator, wherein the routing configuration rule is used to route transmission data between the server and the virtual private network through the hardware accelerator; A network connection module is used to respond to a dynamic host configuration protocol request initiated by the server, determine the network address of the virtual private network based on the updated routing configuration rules, and send the network address of the virtual private network to the server, wherein the network address is used by the server to establish a network connection with the private network.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
TCP service network state detection method based on OVN
CN119814615A
An OVN-based TCP service network state detection method
CN119814615B
