A network configuration method, device, system, edge device and storage medium

By creating virtual network configurations in edge devices, the problem of wasted network resources in edge computing is solved, enabling virtual machines to connect to the network using multiple dial-up lines simultaneously, thus ensuring full utilization of resources.

CN116566830BActive Publication Date: 2026-05-08SHENZHEN YUNWANG WULIAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN YUNWANG WULIAN TECH CO LTD
Filing Date
2023-05-23
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

In edge computing scenarios, the difference in network resources among edge devices leads to the problem of wasted network resources.

Method used

By creating multiple sets of virtual network configurations in the edge device, including virtual network adapters, virtual bridges, and policy routing tables, virtual machines connect to multiple dial-up lines through these configurations, ensuring full utilization of all dial-up lines.

Benefits of technology

This enables virtual machines to connect to the network using multiple dial-up lines simultaneously, avoiding waste of network resources and ensuring full utilization of network resources for edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116566830B_ABST
    Figure CN116566830B_ABST
Patent Text Reader

Abstract

The application discloses a network configuration method, device, system, edge device and storage medium, relates to the field of edge computing, and the method is applied to the edge device and includes the following steps: creating corresponding multiple groups of virtual network configurations according to multiple dial-up lines; the virtual network configuration includes a virtual network card, a virtual network bridge and a policy routing table; connecting the virtual machine to the virtual network bridge in the same group through the virtual network card in each group of virtual network configurations, so that the virtual machine is connected to each dial-up line through each group of virtual network configurations and simultaneously connected to the network by using the multiple dial-up lines; the multiple dial-up lines can be created with corresponding multiple groups of virtual network configurations containing the virtual network card, the virtual network bridge and the policy routing table, the virtual machine can be connected to the virtual network bridge in the same group through the virtual network card in each group, the virtual machine can be connected to each dial-up line through each group of virtual network configurations, and the network can be simultaneously connected by using the multiple dial-up lines, so that all the dial-up lines on the edge device can be fully utilized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of edge computing, and in particular to a network configuration method, apparatus, system, edge device, and computer-readable storage medium. Background Technology

[0002] In traditional cluster environments, worker nodes typically have identical hardware and network resources. However, in edge computing scenarios, edge devices have varying access to network resources, such as different numbers of dial-up lines. This can easily lead to wasted network resources on edge devices. Summary of the Invention

[0003] The purpose of this application is to provide a network configuration method, apparatus, system, edge device, and computer-readable storage medium that can create virtual network configurations in the edge device, enabling virtual machines to simultaneously use multiple dial-up lines to connect to the network through these virtual network configurations, thereby avoiding waste of network resources.

[0004] To address the aforementioned technical problems, this application provides a network configuration method applied to an edge device, the method comprising:

[0005] Multiple virtual network configurations are created based on multiple dial-up lines; the virtual network configurations include virtual network cards, virtual bridges, and policy routing tables.

[0006] The virtual machine is connected to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations, so that the virtual machine is connected to each of the dial-up lines through each group of virtual network configurations, and simultaneously uses the multiple dial-up lines to connect to the network.

[0007] Optionally, before creating multiple sets of virtual network configurations corresponding to multiple dial-up lines, the following steps are also included:

[0008] When it is determined that the configuration information issued by the control device contains an edge virtual machine flag, the multiple dial-up lines are obtained.

[0009] Optionally, obtaining the plurality of dialing lines includes:

[0010] The multiple sets of dialing configuration information in the configuration information are sent to the dialing management program so that the dialing management program can make dialing according to the multiple sets of dialing configuration information;

[0011] The multiple dialing lines are determined based on the multiple sets of dialing configuration information; or, the multiple dialing lines are determined based on the dialing line information of successfully dialed numbers returned by the dialing management program.

[0012] Optionally, obtaining the plurality of dialing lines includes:

[0013] The dialing management program receives dialing line information returned after completing dialing based on multiple sets of dialing configuration information input by the user, and determines the multiple dialing lines based on the dialing line information.

[0014] Optionally, the step of creating multiple sets of virtual network configurations corresponding to multiple dial-up lines includes:

[0015] Create virtual network cards and virtual bridges for each of the dial-up lines;

[0016] Configure a virtual network for the virtual network card and virtual bridge corresponding to the same dial-up line, and set the virtual bridge as the default gateway of the virtual network;

[0017] Create a policy routing table between the virtual network and the default gateway of the corresponding dial-up line, so as to map the virtual network card and virtual bridge corresponding to the dial-up line to the default gateway of the dial-up line one by one through the policy routing table;

[0018] The virtual network configuration is formed by using the virtual network card, virtual bridge, and policy routing table corresponding to the same dial-up line.

[0019] Optionally, creating virtual network cards and virtual bridges corresponding to each of the dial-up lines includes:

[0020] Create virtual network cards corresponding to each dial-up line within the virtual machine, and create virtual bridges corresponding to each dial-up line outside the virtual machine;

[0021] Accordingly, connecting the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations includes:

[0022] Connect each virtual network card in the virtual machine to a virtual bridge in the same group.

[0023] Optionally, creating virtual network cards and virtual bridges corresponding to each of the dial-up lines includes:

[0024] Create virtual network cards and virtual bridges corresponding to each dial-up line outside the virtual machine, and connect the virtual network cards and virtual bridges corresponding to the same dial-up line.

[0025] Accordingly, connecting the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations includes:

[0026] Configure the virtual network cards in each group of virtual network configurations to the virtual machine.

[0027] This application also provides a network configuration apparatus for use in an edge device, the apparatus comprising:

[0028] A creation module is used to create multiple sets of virtual network configurations corresponding to multiple dial-up lines; the virtual network configurations include virtual network cards, virtual bridges, and policy routing tables.

[0029] The connection module is used to connect the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations, so that the virtual machine can connect to each dial-up line through each group of virtual network configurations and simultaneously use the multiple dial-up lines to connect to the network.

[0030] This application also provides a network configuration system, including: a control device and an edge device;

[0031] The control device is used to send configuration information containing an edge virtual machine identifier to the edge device;

[0032] The edge device is used to perform the network configuration method described above.

[0033] This application also provides an edge device, including:

[0034] Memory, used to store computer programs;

[0035] A processor for implementing the network configuration method as described above when executing the computer program.

[0036] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the network configuration method described above.

[0037] This application provides a network configuration method applied to an edge device. The method includes: creating multiple sets of virtual network configurations corresponding to multiple dial-up lines; the virtual network configuration includes a virtual network interface card (NIC), a virtual bridge, and a policy routing table; connecting a virtual machine to a virtual bridge in the same set of virtual network configurations through the virtual NICs in each set of virtual network configurations, so that the virtual machine can connect to each set of dial-up lines through each set of virtual network configurations, and simultaneously use the multiple dial-up lines to connect to the network.

[0038] As can be seen, the edge device in this application can create multiple sets of virtual network configurations corresponding to multiple dial-up lines. Each virtual network configuration includes a virtual network interface card (NIC), a virtual bridge, and a policy routing table. Local virtual machines can connect to the same group of virtual bridges through the virtual NICs in various virtual network configurations. This allows virtual machines to connect to the corresponding dial-up lines through each set of virtual network configurations and simultaneously use multiple dial-up lines to connect to the network. This fully utilizes all dial-up lines on the edge device and avoids wasting network resources on the edge device. This application also provides a network configuration device, system, edge device, and computer-readable storage medium, which have the aforementioned beneficial effects. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0040] Figure 1 A flowchart illustrating a network configuration method provided in an embodiment of this application;

[0041] Figure 2 A flowchart illustrating another network configuration method provided in an embodiment of this application;

[0042] Figure 3 This is a structural block diagram of a network configuration device provided in an embodiment of this application;

[0043] Figure 4 This is a structural block diagram of a network configuration system provided in an embodiment of this application;

[0044] Figure 5 This is a structural block diagram of an edge device provided in an embodiment of this application. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0046] In traditional cluster environments, worker nodes typically have identical hardware and network resources, allowing virtual machines (VMs) to be configured using a uniform template. However, in edge computing scenarios, edge devices have varying network resources, such as different numbers of dial-up lines. Configuring VMs on an edge device using a uniform template can lead to insufficient utilization of all dial-up lines, resulting in wasted network resources. Therefore, this application provides a network configuration method that creates virtual network configurations for each dial-up line on the edge device. This allows VMs to simultaneously connect to the network using multiple dial-up lines, ensuring that VMs on the edge device fully utilize all dial-up networks on the device and avoiding network resource waste.

[0047] It should be noted that this method is applied to edge devices, which can run in a cluster environment. It should also be noted that the embodiments of this application do not limit the specific form of the edge device; for example, it can be a personal computer, a server, or other dedicated equipment. Furthermore, the embodiments of this application do not limit the specific cluster environment; for example, it can be k8s (Kubernetes) or other cluster environments.

[0048] Please refer to Figure 1 , Figure 1 A flowchart illustrating a network configuration method provided in an embodiment of this application. This method may include:

[0049] S101. Create multiple virtual network configurations corresponding to multiple dial-up lines; the virtual network configurations include virtual network cards, virtual bridges, and policy routing tables.

[0050] In this embodiment, the edge device can create multiple sets of virtual network configurations corresponding to multiple dial-up lines. Each virtual network configuration can include a virtual network interface card (NIC), a virtual bridge, and a policy routing table. Specifically, each dial-up line is configured with a corresponding virtual NIC, a virtual bridge, and a policy routing table. The virtual NIC can be deployed in a virtual machine to enable network communication. The virtual bridge connects the virtual NIC to the corresponding dial-up line and acts as a gateway between the virtual NIC and the dial-up line. The policy routing table establishes a one-to-one mapping between the virtual bridge, the virtual NIC, and the dial-up line, ensuring that traffic generated by the virtual NIC is only sent to the corresponding dial-up line via the virtual bridge, and traffic returned by the dial-up line is only sent to the corresponding virtual NIC via the virtual bridge. In this way, the edge device can ensure that the virtual machine can connect to each dial-up line through each set of virtual NICs, virtual bridges, and policy routing tables, and can simultaneously connect to the external network through these multiple dial-up lines.

[0051] Furthermore, to ensure that virtual network interface cards (NICs) and virtual bridges corresponding to the same dial-up line can communicate with each other, and that the virtual NIC can correctly send traffic to the virtual bridge, the virtual NIC and the virtual bridge need to be configured to the same virtual network, and the virtual bridge needs to be set as the default gateway of the virtual network. In addition, to ensure that the virtual network can exchange traffic with the corresponding dial-up line, the policy routing table corresponding to the dial-up line needs to record the mapping relationship between the virtual network and the default gateway of the dial-up line. Therefore, the edge device only needs to forward traffic in the virtual network to the default gateway of the corresponding dial-up line according to the policy routing table, and return traffic sent by the default gateway of the dial-up line to the corresponding virtual network. It should be noted that the configuration method of the virtual network in this application embodiment is not limited, as long as it can be determined that the IP addresses of the virtual NIC and the virtual bridge are configured based on the same network segment. The creation method of the policy routing table in this application embodiment is also not limited; relevant technologies of policy routing can be referred to.

[0052] Based on this, multiple virtual network configurations can be created corresponding to multiple dial-up lines, which may include:

[0053] Step 11: Create virtual network cards and virtual bridges for each dial-up line;

[0054] Step 12: Configure virtual networks for the virtual network card and virtual bridge corresponding to the same dial-up line, and set the virtual bridge as the default gateway of the virtual network;

[0055] Step 13: Create a policy routing table between the virtual network and the default gateway of the corresponding dial-up line, so as to map the virtual network card and virtual bridge corresponding to the dial-up line to the default gateway of the dial-up line one by one through the policy routing table.

[0056] Step 14: Configure a virtual network using the virtual network card, virtual bridge, and policy routing table corresponding to the same dial-up line.

[0057] Furthermore, the embodiments of this application do not limit the specific methods for creating virtual network interfaces and virtual bridges; for details, please refer to relevant technologies of virtual network interfaces and virtual bridges (such as Linux Bridge). For ease of management, a dedicated network management service for creating virtual network interfaces, virtual bridges, and policy routing tables can be set up in the edge device, allowing the edge device to create the aforementioned objects. The embodiments of this application also do not limit whether the virtual network interface is created inside or outside the virtual machine; it can be set according to actual application requirements.

[0058] S102. Connect the virtual machine to the virtual bridge in the same group through the virtual network card in each group's virtual network configuration, so that the virtual machine can connect to each dial-up line through each group's virtual network configuration and use multiple dial-up lines to connect to the network at the same time.

[0059] After creating the virtual network adapter and virtual bridge, the virtual machine needs to be connected to the virtual bridge in the same group through the virtual network adapter in each group's virtual network configuration, so as to connect the virtual machine to multiple dial-up lines and ensure that the virtual machine can communicate with multiple dial-up lines at the same time.

[0060] As mentioned above, virtual network adapters can be created outside the virtual machine. In this case, to connect the virtual machine to a virtual bridge via the virtual network adapter, the virtual network adapter must first be connected to a virtual bridge in the same group, and then the network adapter must be configured inside the virtual machine.

[0061] Based on this, creating virtual network cards and virtual bridges corresponding to each dial-up line can include:

[0062] Step 21: Create virtual network cards and virtual bridges for each dial-up line outside the virtual machine, and connect the virtual network cards and virtual bridges for the same dial-up line.

[0063] Correspondingly, connecting virtual machines to virtual bridges within the same group via virtual network adapters in each group's virtual network configuration can include:

[0064] Step 22: Configure the virtual network adapters in each group of virtual network configurations to the virtual machines.

[0065] As mentioned above, virtual network adapters can also be created inside the virtual machine. In this case, simply connect the network adapter to a virtual bridge in the same group outside the virtual machine.

[0066] Based on this, creating virtual network cards and virtual bridges corresponding to each dial-up line can include:

[0067] Step 31: Create virtual network cards corresponding to each dial-up line inside the virtual machine, and create virtual bridges corresponding to each dial-up line outside the virtual machine;

[0068] Correspondingly, connecting virtual machines to virtual bridges within the same group via virtual network adapters in each group's virtual network configuration can include:

[0069] Step 32: Connect each virtual network card in the virtual machine to the virtual bridge in the same group.

[0070] Furthermore, to facilitate virtual machine management, a virtual machine management service can also be set up in the edge device. Specifically, the virtual machine management service can initiate a virtual machine network card configuration request to the aforementioned network management service based on the dial-up line information of each dial-up line. Upon receiving the request, the network management service can obtain the dial-up line information of multiple dial-up lines from the dial-up management program, create corresponding virtual network cards, virtual bridges, and policy routing tables for each dial-up line, and send the network card configuration information of the virtual network cards (such as IPv4 address, subnet mask, MAC address, gateway address, etc.) to the virtual machine management service. The virtual machine management service can then configure the virtual network cards for the virtual machines according to the network card configuration information.

[0071] Based on the above embodiments, the edge device in this application can create multiple sets of virtual network cards, virtual bridges and policy routing tables corresponding to multiple dial-up lines, and can connect local virtual machines through the virtual network cards and virtual bridges. This allows virtual machines to connect to the corresponding dial-up lines through each set of virtual network cards, virtual bridges and policy routing tables, and can use these multiple dial-up lines to connect to the network simultaneously. This makes full use of all dial-up lines on the edge device and avoids network resource waste on the edge device.

[0072] Based on the above embodiments, considering that a cluster environment can simultaneously have traditional worker nodes and edge nodes, in order to configure virtual machines in the edge nodes individually, the cluster control device can send a special configuration file to the edge device to trigger the edge device to execute the network configuration method provided in this application. The specific details of the configuration file and the method for triggering the edge device to execute this network configuration method will be described below. In one possible case, this method may further include:

[0073] S201. When it is determined that the configuration information issued by the control device contains the edge virtual machine flag, obtain multiple dial-up lines.

[0074] In this embodiment, when the edge device receives configuration information for configuring a virtual machine from the control device, it only acquires multiple local dial-up lines if it determines that the configuration information contains an edge virtual machine identifier. If the edge device determines that the configuration information does not contain the edge virtual machine identifier, it can directly create a virtual machine network card according to the configuration file. In this way, the control device can ensure that the worker nodes and edge devices can use different methods to configure the network for the virtual machine by setting different configuration files for the worker nodes and edge devices, thus adapting to different configuration conditions on the worker nodes and edge devices. It should be noted that this embodiment does not limit the specific way the control device adds the edge virtual machine identifier to the configuration information; it depends on the type of configuration information. For example, when the configuration information is YAML configuration information, the control device can add the edge virtual machine identifier to the configuration information through annotations.

[0075] Furthermore, the embodiments of this application do not limit the dialing line obtained in this step to a pre-dialed dialing line. It also requires a dialing line dialed on-site based on the dialing configuration information, which can be selected according to actual application needs. For example, in some embodiments, the user can pre-diale on the edge device, and the edge device can directly obtain the pre-dialed dialing line; in other embodiments, the edge device can also obtain the dialing configuration information and perform on-site dialing based on that information to obtain the dialing line. It is worth noting that a dedicated dialing management program can be pre-set in the edge device, allowing the user or the edge device to dial based on this program.

[0076] Furthermore, this application embodiment does not limit the source of the dialing configuration information. It can be uploaded by the user to the control device and then distributed to the edge device by the control device through configuration information; or it can be directly input by the user into the dialing management program of the edge device. In the former case, when the edge device receives the configuration information distributed by the control device and determines that the information contains the edge virtual machine flag, it will further extract multiple sets of dialing configuration information from the configuration information and send them to the dialing management program for dialing. Subsequently, the edge device can either directly determine these multiple dialing lines according to the dialing configuration information in the configuration information, or determine multiple dialing lines according to the dialing line information of successfully dialed lines returned by the dialing management program.

[0077] Therefore, obtaining multiple dial-up lines can include:

[0078] Step 41: Send multiple sets of dialing configuration information from the configuration information to the dialing management program so that the dialing management program can make dialing based on the multiple sets of dialing configuration information;

[0079] Step 42: Determine multiple dialing lines based on multiple sets of dialing configuration information; or, determine multiple dialing lines based on the dialing line information of successfully dialed lines returned by the dialing management program.

[0080] It should be noted that the embodiments of this application do not limit the specific dialing process, nor do they limit the specific source of dialing configuration information (such as account, password, network port, etc.), which can be set according to actual application needs. It is worth pointing out that the dialing management program can be set up with a dedicated interface to receive dialing configuration information transmitted from edge devices. The embodiments of this application do not limit the specific form of this interface; for example, it can be an HTTP interface (Hypertext Transfer Protocol) or a CLI interface (command-line interface).

[0081] Furthermore, when the dialing configuration information can be directly entered by the user into the dialing management program of the edge device, the edge device can also directly obtain the dialing line information of successfully dialed lines from the program, and determine these multiple dialing lines based on this dialing line information.

[0082] Therefore, obtaining multiple dial-up lines can include:

[0083] Step 51: Receive the dialing line information returned by the dialing management program after completing the dialing based on the multiple sets of dialing configuration information entered by the user, and determine multiple dialing lines based on the dialing line information.

[0084] It should be noted that the dial-up lines mentioned in step 51 are all dial-up lines that have been pre-dialed on the edge device and are already connected to the external network. As mentioned above, a dial-up management program can be set up in the edge device to perform dialing and manage dial-up lines. Thus, the device only needs to obtain the aforementioned multiple dial-up lines from this dial-up management program.

[0085] Combining the two dialing methods mentioned above, this application can flexibly handle dialing tasks, thereby meeting various dialing needs.

[0086] S202. Create multiple virtual network configurations corresponding to multiple dial-up lines; the virtual network configurations include virtual network cards, virtual bridges, and policy routing tables.

[0087] S203. Connect the virtual machine to the virtual bridge in the same group through the virtual network card in each group's virtual network configuration, so that the virtual machine can connect to each dial-up line through each group's virtual network configuration and use multiple dial-up lines to connect to the network at the same time.

[0088] It should be noted that the descriptions of steps S202 and S203 are consistent with those of S101 and S102, and will not be repeated here.

[0089] Based on the above embodiments, the cluster control device in this application can specially issue configuration files with edge virtual machine flags to edge nodes, so as to trigger the edge devices to create corresponding virtual network configurations based on multiple local dial-up lines, thereby enabling individual configuration of edge devices.

[0090] Based on the above embodiments, the network configuration method described below will be fully explained with reference to specific flowcharts. Please refer to... Figure 2 , Figure 2 A flowchart illustrating another network configuration method provided in this application embodiment, the method may include:

[0091] 1. The network administrator of the Kubernetes edge device submits dial-up-related account, password, network port and other information to the dial-up program using the interface (HTTP and CLI) provided by the dial-up management program on the edge device, according to the dial-up configuration assigned by the telecom operator.

[0092] 2. The dial-up management program of the Kubernetes edge device dials up to the external network according to the dial-up configuration set by the administrator;

[0093] 3. When the Kubernetes control device distributes virtual machine YAML configuration files, it includes the edge virtual machine flag in the annotations of the YAML file: vm.xycloud.com / edge:'true';

[0094] 4. After receiving the virtual machine YAML configuration file from the Kubernetes control device, the virtual machine management service of the Kubernetes edge device checks whether the annotation of the configuration file contains the edge virtual machine flag vm.xycloud.com / edge:'true'. If it does not exist, it generates a direct virtual machine network card according to the configuration; otherwise, it proceeds to the next step.

[0095] 5. The virtual machine management service of the Kubernetes edge device initiates a request to the network management service to allocate virtual machine network interface card configurations;

[0096] 6. After receiving the request from the virtual machine management service, the Kubernetes edge device network management service reads the dial-up line information stored in the dial-up management program and obtains all dial-up line names.

[0097] 7. The Kubernetes edge device network management service creates a virtual bridge (Linux bridge) and a virtual network interface card (NIC) for each dial-up line, and adds the virtual NIC to the virtual bridge. Both the virtual NIC and the virtual bridge have statically configured IPv4 addresses, and the virtual bridge serves as the default gateway within that virtual network. The Kubernetes edge device network management service adds a policy route based on the source IP address (network segment) for each virtual network (the network connected by the virtual bridge). The default gateway in the policy routing table is the same as the default gateway obtained by the dial-up management program on that line. The purpose of this step is to ensure a strict one-to-one mapping between the virtual machine's virtual NIC and the dial-up line; that is, traffic from the virtual NIC will only pass through the corresponding dial-up line.

[0098] 8. The Kubernetes edge device network management service returns the generated list of virtual network interface card (NIC) configurations to the virtual machine management service. The configurations include the virtual NIC name, IPv4 address, subnet mask, MAC address, gateway address, etc.

[0099] 9. After receiving the virtual machine network card configuration returned from the network management service, the virtual machine management service of the Kubernetes edge device adds the virtual network card to the virtual machine.

[0100] The network configuration apparatus, system, edge device, and computer-readable storage medium provided in the embodiments of this application are described below. The network configuration apparatus, system, edge device, and computer-readable storage medium described below can be referred to in correspondence with the network configuration method described above.

[0101] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a network configuration device provided in an embodiment of this application. The device is applied to an edge device and may include:

[0102] Module 301 is used to create multiple virtual network configurations corresponding to multiple dial-up lines; the virtual network configurations include virtual network cards, virtual bridges, and policy routing tables.

[0103] The connection module 302 is used to connect the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configuration, so that the virtual machine can connect to each dial-up line through each group of virtual network configuration and use multiple dial-up lines to connect to the network at the same time.

[0104] Optionally, the device may further include:

[0105] The dial-up line acquisition module is used to acquire multiple dial-up lines when it is determined that the configuration information issued by the control device contains an edge virtual machine flag.

[0106] Optionally, the dial-up line acquisition module may include:

[0107] The dialing configuration information sending submodule is used to send multiple sets of dialing configuration information from the configuration information to the dialing management program, so that the dialing management program can make dialing based on the multiple sets of dialing configuration information;

[0108] The dialing line confirmation submodule is used to determine multiple dialing lines based on multiple sets of dialing configuration information; or, based on the dialing line information of successfully dialed numbers returned by the dialing management program.

[0109] Optionally, the dial-up line acquisition module may include:

[0110] The dialing line acquisition submodule is used to receive dialing line information returned by the dialing management program after completing dialing based on multiple sets of dialing configuration information input by the user, and to determine multiple dialing lines based on the dialing line information.

[0111] Optionally, module 301 may include:

[0112] The first creation submodule is used to create virtual network cards and virtual bridges corresponding to each dial-up line;

[0113] The second creation submodule is used to configure virtual networks for virtual network cards and virtual bridges corresponding to the same dial-up line, and to set the virtual bridge as the default gateway of the virtual network.

[0114] The third creation submodule is used to create a policy routing table between the virtual network and the default gateway of the corresponding dial-up line, so as to map the virtual network card and virtual bridge corresponding to the dial-up line to the default gateway of the dial-up line one by one through the policy routing table.

[0115] The fourth submodule is used to create a virtual network configuration using virtual network cards, virtual bridges, and policy routing tables corresponding to the same dial-up line.

[0116] Optionally, the first submodule created can be used for:

[0117] Create virtual network cards corresponding to each dial-up line inside the virtual machine, and create virtual bridges corresponding to each dial-up line outside the virtual machine;

[0118] Accordingly, the connection module 302 can be used for:

[0119] Connect each virtual network adapter in the virtual machine to a virtual bridge in the same group.

[0120] Optionally, the first submodule created can be used for:

[0121] Create virtual network cards and virtual bridges for each dial-up line outside the virtual machine, and connect the virtual network cards and virtual bridges for the same dial-up line.

[0122] Accordingly, the connection module 302 can be used for:

[0123] Configure the virtual network adapters in each group of virtual network configurations to the virtual machines.

[0124] Furthermore, embodiments of this application also provide a network configuration system. Please refer to... Figure 4 , Figure 4 This is a structural block diagram of a network configuration system provided in an embodiment of the present application. The system may include: a control device and an edge device;

[0125] Control device 401 is used to send configuration information containing edge virtual machine identifiers to edge devices;

[0126] Edge device 402 is used to perform the network configuration method described above.

[0127] Since the embodiments of the computer-readable storage medium portion correspond to the embodiments of the network configuration method portion, the embodiments of the computer-readable storage medium portion are described in the description of the embodiments of the network configuration method portion, and will not be repeated here.

[0128] Furthermore, embodiments of this application also provide an edge device. Figure 5 This is a structural diagram of an edge device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0129] Figure 5 This is a schematic diagram of the structure of an edge device 20 provided in an embodiment of this application. The edge device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the network configuration method disclosed in any of the foregoing embodiments.

[0130] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the edge device 20; the communication interface 24 can create a data transmission channel between the edge device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0131] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222 and data 223, etc., and the storage method can be temporary storage or permanent storage.

[0132] The operating system 221 manages and controls the various hardware devices and computer programs 222 on the edge device 20 to enable the processor 21 to perform calculations and processing on the massive amounts of data 223 in the memory 22. The operating system 221 can be Windows Server, Netware, Unix, Linux, etc. In addition to including computer programs capable of performing the network configuration methods executed by the edge device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.

[0133] Furthermore, embodiments of this application also disclose a computer-readable storage medium storing a computer program, which, when loaded and executed by a processor, implements the steps of the network configuration method disclosed in any of the foregoing embodiments.

[0134] Since the embodiments of the computer-readable storage medium portion correspond to the embodiments of the network configuration method portion, the embodiments of the computer-readable storage medium portion are described in the description of the embodiments of the network configuration method portion, and will not be repeated here.

[0135] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0136] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0137] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0138] The foregoing has provided a detailed description of a network configuration method, apparatus, system, edge device, and storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A network configuration method, characterized in that, Applied to edge devices, the method includes: Obtain multiple dial-up lines; Multiple virtual network configurations are created based on multiple dial-up lines; the virtual network configuration includes virtual network interface cards (NICs), virtual bridges, and policy routing tables, and the policy routing tables record the mapping relationship between the virtual NICs and virtual bridges corresponding to the dial-up lines and the default gateways of the dial-up lines; The virtual machine is connected to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations, so that the virtual machine is connected to each dial-up line through each group of virtual network configurations, and simultaneously uses the multiple dial-up lines to connect to the network; The acquisition of multiple dialing lines includes: Multiple sets of dialing configuration information from the configuration information issued by the control device are sent to the dialing management program, so that the dialing management program can make dialing according to the multiple sets of dialing configuration information; The multiple dialing lines are determined based on the multiple sets of dialing configuration information.

2. The network configuration method according to claim 1, characterized in that, Before creating multiple virtual network configurations corresponding to multiple dial-up lines, the process also includes: When it is determined that the configuration information issued by the control device contains an edge virtual machine flag, the multiple dial-up lines are obtained.

3. The network configuration method according to claim 2, characterized in that, The acquisition of the multiple dialing lines includes: The multiple dialing lines are determined based on the dialing line information of successfully dialed numbers returned by the dialing management program.

4. The network configuration method according to claim 2, characterized in that, The acquisition of the multiple dialing lines includes: The dialing management program receives dialing line information returned after completing dialing based on multiple sets of dialing configuration information input by the user, and determines the multiple dialing lines based on the dialing line information.

5. The network configuration method according to any one of claims 1 to 4, characterized in that, The process of creating multiple virtual network configurations corresponding to multiple dial-up lines includes: Create virtual network cards and virtual bridges for each of the dial-up lines; Configure a virtual network for the virtual network card and virtual bridge corresponding to the same dial-up line, and set the virtual bridge as the default gateway of the virtual network; Create a policy routing table between the virtual network and the default gateway of the corresponding dial-up line, so as to map the virtual network card and virtual bridge corresponding to the dial-up line to the default gateway of the dial-up line one by one through the policy routing table; The virtual network configuration is formed by using the virtual network card, virtual bridge, and policy routing table corresponding to the same dial-up line.

6. The network configuration method according to claim 5, characterized in that, The creation of virtual network cards and virtual bridges corresponding to each of the dial-up lines includes: Create virtual network cards corresponding to each dial-up line within the virtual machine, and create virtual bridges corresponding to each dial-up line outside the virtual machine; Accordingly, connecting the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations includes: Connect each virtual network card in the virtual machine to a virtual bridge in the same group.

7. The network configuration method according to claim 5, characterized in that, The creation of virtual network cards and virtual bridges corresponding to each of the dial-up lines includes: Create virtual network cards and virtual bridges corresponding to each dial-up line outside the virtual machine, and connect the virtual network cards and virtual bridges corresponding to the same dial-up line. Accordingly, connecting the virtual machine to the virtual bridge in the same group through the virtual network card in each group of virtual network configurations includes: Configure the virtual network cards in each group of virtual network configurations to the virtual machine.

8. A network configuration device, characterized in that, Applied to edge devices, the device includes: The dialing line acquisition module is used to acquire multiple dialing lines; A creation module is used to create multiple sets of virtual network configurations corresponding to multiple dial-up lines; the virtual network configuration includes virtual network cards, virtual bridges and policy routing tables, and the policy routing tables record the mapping relationship between the virtual network cards and virtual bridges corresponding to the dial-up lines and the default gateways of the dial-up lines; A connection module is used to connect a virtual machine to a virtual bridge in the same group through the virtual network card in each group of virtual network configurations, so that the virtual machine can connect to each dial-up line through each group of virtual network configurations and simultaneously use the multiple dial-up lines to connect to the network. The dial-up line acquisition module includes: The dialing configuration information sending submodule is used to send multiple sets of dialing configuration information from the configuration information to the dialing management program, so that the dialing management program can make dialing based on the multiple sets of dialing configuration information; The dialing line confirmation submodule is used to determine multiple dialing lines based on multiple sets of dialing configuration information.

9. A network configuration system, characterized in that, include: Control equipment and edge devices; The control device is used to send configuration information containing an edge virtual machine identifier to the edge device; The edge device is configured to perform the network configuration method as described in any one of claims 1 to 7.

10. An edge device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the network configuration method as described in any one of claims 1 to 7.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the network configuration method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • PDN dialing and configuration method, system and device, equipment and storage medium

    CN115174310A