WO2024065182A1 - 网络配置方法、装置、电子设备和存储介质 - Google Patents
网络配置方法、装置、电子设备和存储介质 Download PDFInfo
- Publication number
- WO2024065182A1 WO2024065182A1 PCT/CN2022/121753 CN2022121753W WO2024065182A1 WO 2024065182 A1 WO2024065182 A1 WO 2024065182A1 CN 2022121753 W CN2022121753 W CN 2022121753W WO 2024065182 A1 WO2024065182 A1 WO 2024065182A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- program
- applications
- communication
- program group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0895—Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Definitions
- the present application relates to the field of network communication technology, and in particular to a network configuration method, device, electronic device and storage medium.
- Containers are a mainstream way to deploy applications. Containers use a sandbox mechanism and there are no interfaces between them. That is, applications are isolated from the outside world when running in containers. Data exchange between containers and hosts or between containers requires data distribution services. Therefore, it is necessary to configure a communication network for data distribution services for each application running in the container and the host.
- network configuration is a complex and professional task. How to avoid the risk of network attacks when configuring communication networks and achieve better data exchange performance and balance requires network engineers to spend a lot of time testing and verifying. Therefore, the manual labor is high and the time is long when configuring communication networks for a large number of applications. Therefore, the existing network configuration methods are not suitable for configuring communication networks for a large number of applications.
- the network configuration method, device, electronic device and storage medium provided in the present application are suitable for configuring communication networks for a large number of applications.
- a network configuration method comprising: obtaining environmental information of at least two applications, wherein the environmental information is used to indicate a host where the applications are located and a communication method between the hosts; grouping the at least two applications according to the environmental information to obtain at least one program grouping, wherein each of the program groups includes at least two applications, different program groups correspond to different inter-program communication methods, and applications in the same program group communicate with each other through the inter-program communication method corresponding to the program group; determining at least one application pair that needs to communicate according to the communication requirements between the at least two applications; and performing a communication network configuration for the two applications included in the application pair according to the inter-program communication method corresponding to the program group including the application pair.
- grouping the at least two applications according to the environmental information to obtain at least one program group includes: performing at least one of the following operations according to the environmental information: (i) dividing the applications located on the same host into a program group; and (ii) grouping the applications located on different hosts according to a communication method between the hosts to obtain at least one program group.
- the application programs located on different hosts are grouped according to the communication method between the hosts to obtain at least one program group, including: dividing at least two application programs located on different hosts and communicating with each other through the same local area network into one program group; and dividing at least two application programs located on different hosts and communicating with each other through a wide area network into one program group.
- the communication network configuration is performed on the two applications included in the application pair according to the inter-program communication mode corresponding to the program group including the application pair, including: if the application pair is included in the first program group, the communication network configuration is performed on the two applications included in the application pair through a pre-created memory exchange configuration template, so that the application pair communicates through memory exchange, wherein the applications in the first program group are located on the same host; if the application pair is included in the second program group, the communication network configuration is performed on the two applications included in the application pair through a pre-created LAN configuration template, so that the application pair communicates through a LAN, wherein the applications in the second program group are located on different hosts that communicate through a LAN; if the application pair is included in the third program group, the communication network configuration is performed on the two applications included in the application pair through a pre-created WAN configuration template, so that the application pair communicates through a WAN, wherein the applications in the third program group are located on different hosts that communicate through
- the method further includes: if the operating environment of the application is a container, configuring a bridge network for the application so that the application accesses the default network and memory of the host where the application is located through the bridge network.
- the method further includes: generating configuration information, wherein the configuration information is used to indicate program grouping information, application pair information, and communication network configuration information; generating a configuration list including the configuration information, and outputting the configuration list.
- a network configuration device comprising: an acquisition module, for acquiring environmental information of at least two applications, wherein the environmental information is used to indicate the host where the application is located and the communication mode between the hosts; a grouping module, for grouping the at least two applications according to the environmental information to obtain at least one program grouping, wherein each of the program groups includes at least two applications, different program groups correspond to different communication modes, and the applications in the same program group communicate with each other through the communication mode corresponding to the program group; a pairing module, for determining at least one application pair that needs to communicate according to the communication requirements between the at least two applications; and a configuration module, for performing communication network configuration for the two applications included in the application pair according to the communication mode corresponding to the program group including the application pair.
- the network configuration device also includes: a first generation module, used to generate configuration information, wherein the configuration information is used to indicate program grouping information, application pair information and communication network configuration information; a second generation module, used to generate a configuration list including the configuration information, and output the configuration list.
- an electronic device comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the network configuration method provided in the first aspect above.
- a computer-readable storage medium on which computer instructions are stored.
- the processor executes operations corresponding to the network configuration method provided in the first aspect above.
- a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, cause at least one processor to perform a network configuration method provided in the first aspect or any possible implementation of the first aspect.
- the applications are divided into multiple program groups according to the different environmental information of each application, that is, the different hosts where the applications are located and the communication methods between the hosts. Therefore, each program group can correspond to a communication method between programs, and a large number of applications can be divided into a limited number of program groups.
- the communication method of each application pair is determined according to the communication method between programs in the program group where the application pair is located. There is no need to manually determine the communication method between the applications, which reduces the intensity of manual labor.
- this method is suitable for configuring the communication network for a large number of applications.
- FIG1 is a flow chart of a network configuration method provided by an embodiment of the present application.
- FIG2 is a topological diagram of a network configuration provided in an embodiment of the present application.
- FIG3 is a flow chart of another network configuration method provided in an embodiment of the present application.
- FIG4 is a schematic diagram of a network configuration device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of another network configuration device provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of an electronic device provided in an embodiment of the present application.
- Network configuration method 201-204 Application program 205: First host
- Second host 207 Cloud 400: Network configuration device
- containers are a mainstream way to deploy applications. Since containers use a sandbox mechanism, there is no interface between them, that is, when an application is running in a container, it is isolated from the outside world. Data exchange between containers and hosts or between containers requires data distribution services. Therefore, it is necessary to configure the communication network of the data distribution service for applications running in containers and running in hosts. At present, network engineers manually configure the communication network of the data distribution service for each application. However, network configuration is a complex and professional task. How to avoid the risk of network attacks when configuring the communication network and achieve better data exchange performance and balance requires network engineers to spend a lot of time to test and verify. Therefore, the existing network configuration method is labor-intensive and time-consuming when configuring the communication network for a large number of applications. Therefore, the existing network configuration method is not suitable for configuring the communication network for a large number of applications.
- environmental information of each application is obtained, and each application is grouped according to the environmental information to obtain a program group. Then, an application pair is determined according to the communication requirements between the applications, and a network is configured for each application in the application pair according to the inter-program communication method corresponding to the program group in which the application pair is located.
- the applications are divided into multiple program groups according to different environmental information, that is, the hosts where the applications are located and the communication methods between the hosts. Therefore, each program group can correspond to an inter-program communication method, and a large number of applications can be divided into a limited number of program groups.
- the communication method of each application pair is determined according to the inter-program communication method of the program group.
- the process of configuring the communication network for each application is automatically executed by the system without manual participation, which can reduce the time spent on configuring the communication network for a large number of applications. Therefore, the method is suitable for configuring the communication network for a large number of applications.
- FIG1 is a flow chart of a network configuration method provided by an embodiment of the present application. As shown in FIG1 , the network configuration method 100 includes the following steps:
- Step 101 Obtain environment information of at least two applications, wherein the environment information is used to indicate hosts where the applications are located and communication methods between the hosts.
- the environment information of each application is determined according to the behaviors of multiple applications, and the behaviors of the applications include: interactive behaviors, networking behaviors, etc.
- the environment information is used to indicate the host where the application is located and the communication mode between the hosts, and the communication mode includes but is not limited to host network communication, local area network communication, etc.
- the environment information includes the communication method between different hosts. If multiple applications come from the same host and the host does not need to communicate with other hosts, the environment information includes the hosts where the multiple applications are located.
- Step 102 group at least two applications according to the environmental information to obtain at least one program grouping, wherein each program grouping includes at least two applications, different program groups correspond to different inter-program communication methods, and applications in the same program group communicate with each other through the inter-program communication method corresponding to the program grouping.
- the applications are grouped according to their environment information, and multiple applications that communicate with each other in the same way are divided into a program group. Different program groups correspond to different communication methods between programs.
- the communication methods between applications are different depending on the environment information, that is, the hosts where the applications are located and the communication methods between the hosts. For example, if two applications are on the same host, they communicate through the host; if the two applications are on different hosts, they communicate through the network, and so on.
- Step 103 Determine at least one application pair that needs to communicate based on the communication requirements between at least two applications.
- a plurality of applications that need to communicate are determined, and the plurality of applications that need to communicate are paired two by two to obtain a plurality of application pairs.
- the communication requirements between applications need to be determined manually.
- the communication requirements are set manually based on the dependencies between the applications and the data exchange requirements. For example, if the use of the first application depends on the first application, then the first application and the second application are set to have communication requirements. After the system recognizes the requirement, it determines the first application and the second application as an application pair.
- Step 104 Perform communication network configuration for two applications included in the application pair according to the inter-program communication mode corresponding to the program group including the application pair.
- a communication network is configured for the two applications included in the application pair, and the configured network corresponds to the inter-program communication method corresponding to the program grouping. For example, if the inter-program communication method corresponding to the program grouping is LAN communication, then a LAN network is configured for the two applications included in the application pair.
- an application may be divided into different program groups, and different program groups correspond to different inter-program communication methods. Therefore, the same application may be configured with multiple networks. For example: the first application needs to communicate with the second application on the same host and the third application on a different host. When the first application configures the network, it will configure the same-host communication network and the different-host communication network.
- the applications are divided into a plurality of program groups according to the difference in environmental information of each application, that is, the difference in the host where the application is located and the communication method between the hosts.
- each program group can correspond to a communication method between programs, and a large number of applications can be divided into a limited number of program groups.
- the communication method of each pair of applications is determined according to the communication method between programs in the program group where the application pair is located. There is no need to manually determine the communication method between each application, thereby reducing the intensity of manual labor.
- the process of configuring the communication network for each application is automatically executed by the system without manual participation, the time spent on configuring the communication network for a large number of applications can be reduced. Therefore, the present method is suitable for configuring the communication network for a large number of applications.
- At least two application programs are grouped according to the environment information, and when at least one program group is obtained, at least one of the following operations may be performed according to the environment information:
- Different hosts cannot communicate directly and need to communicate through the network. Therefore, the data exchange between applications on different hosts depends on the communication mode of the hosts.
- grouping the applications on the same host are grouped together, that is, the applications in the program group communicate with each other through the host.
- Applications on different hosts are divided into different program groups according to different communication modes, that is, the applications in the program group communicate with each other through the communication mode between different hosts.
- applications located on the same host are divided into one program group, and applications located on different hosts are divided into multiple program groups according to the communication method between the hosts.
- the applications can be accurately divided into corresponding program groups when grouping, avoiding the situation where applications on different hosts are divided into program groups corresponding to applications on the same host due to application grouping errors, causing communication failures between applications.
- the network configuration of each application is more accurate according to the program grouping, thereby improving the accuracy and efficiency of network configuration of the application.
- the applications located on different hosts are grouped according to the communication mode between the hosts, and when at least one program group is obtained, at least two applications located on different hosts and communicating with the hosts through the same local area network are grouped into one program group. At least two applications located on different hosts and communicating with the hosts through a wide area network are grouped into one program group.
- applications located on different hosts are grouped according to the communication methods between different hosts, so that different communication networks can be configured for applications located on different hosts according to the different communication methods between programs corresponding to the groups.
- the grouping rules are refined, the network configuration of the applications is made more accurate, and the efficiency of configuring communication networks for a large number of applications is improved.
- a communication network when configuring a communication network for two applications included in an application pair according to an inter-program communication method corresponding to a program group including the application pair, if the application pair is included in a first program group, a communication network is configured for the two applications included in the application pair through a pre-created memory exchange configuration template, so that the application pair communicates through memory exchange, wherein the applications in the first program group are located on the same host.
- a memory exchange configuration template is created in advance.
- the memory exchange configuration template corresponds to the program grouping divided by the applications on the same host.
- the template can configure the memory exchange communication mode for two applications on the same host that need to communicate. That is, when two applications are located on the same host, they do not need a network to communicate and can exchange data by sharing the host's memory.
- the communication method between the two applications is configured through a memory exchange configuration template, so that the applications on the same host can communicate by sharing the host memory, thereby achieving optimal communication performance when communicating between the two applications on the same host, thereby improving the practicality of the network configuration method.
- a communication network for two applications included in an application pair when configuring a communication network for two applications included in an application pair according to an inter-program communication method corresponding to a program group including the application pair, if the application pair is included in a second program group, then configuring a communication network for the two applications included in the application pair through a pre-created LAN configuration template, so that the application pair communicates through the LAN, wherein the applications in the second program group are located on different hosts that communicate through the LAN.
- a LAN configuration template is created in advance.
- the LAN configuration template corresponds to the program grouping divided by applications located on different hosts and communicating through the same LAN. This template can configure LAN communication for two applications located on different hosts that need to communicate, that is, when the two applications are located on different hosts, data is exchanged through the LAN.
- an ipvlan or macvlan network can be configured for the two applications to optimize network performance and security during communication.
- IPvlan is a new shift in network virtualization technology.
- Linux implementation is lightweight because instead of using the traditional Linux bridge for isolation, it is associated with a Linux Ethernet interface or sub-interface to enforce separation between networks and connections to the physical network.
- IPvlan provides many unique features and provides ample room for further innovation in various modes.
- the macvlan network driver can be used to assign a MAC address to each container's virtual network interface, making it appear to be a physical network interface directly connected to the physical network.
- a physical interface can be specified on the container host for configuring macvlan, as well as the subnet and gateway of the macvlan.
- the communication method between the two applications is configured through the LAN configuration template, so that the two applications communicate through the LAN, thereby configuring the communication network for applications on different hosts.
- the system automatically configures the network of the application according to the pre-set LAN configuration template without manual intervention, so that the network configuration method can be applied to network configuration of a large number of applications.
- a communication network for two applications included in an application pair when configuring a communication network for two applications included in an application pair according to an inter-program communication method corresponding to a program group including the application pair, if the application pair is included in a third program group, then configuring a communication network for the two applications included in the application pair through a pre-created wide area network configuration template, so that the application pair communicates through the wide area network, wherein the applications in the third program group are located on different hosts that communicate through the wide area network.
- a WAN configuration template is created in advance.
- the WAN configuration template corresponds to the program grouping divided by applications located on different hosts and the hosts communicate through the WAN.
- the template can configure WAN communication for two applications located on different hosts that need to communicate, that is, when the two applications are located on different hosts, data is exchanged through the WAN.
- the Overlay network driver can create a distributed network between multiple hosts. This network is overlaid on the host's network, allowing connected hosts to communicate securely.
- Weave Net can create a virtual network that can connect containers on multiple hosts across hosts.
- microservice-based applications can be run anywhere, such as: one host, multiple hosts, even in the cloud and data center, etc.
- the application can be disconnected from the WAN.
- a database running on both the LAN and the WAN can be given access to another application running on the same LAN and disconnected from the WAN to prevent network attacks.
- the communication method between the two applications is configured through a wide area network configuration template, so that the two applications communicate through the wide area network, thereby configuring the communication network for applications on different hosts.
- the system automatically configures the network of the application according to a pre-set wide area network configuration template without manual intervention, so that the network configuration method can be applied to network configuration of a large number of applications.
- FIG2 is a topology diagram of a network configuration provided by an embodiment of the present application.
- application 201 and application 203 need to communicate, and both are located on the first host 205, so memory exchange communication N is configured for application 201 and application 203.
- Application 201 and application 204 need to communicate, application 201 is located on the first host 205, application 204 is located on the second host 206, and the first host 205 and the second host 206 are on a local area network, so local area network communication J is configured for application 201 and application 204.
- Application 202 and application 204 need to communicate, application 202 runs in the cloud 207, and application 204 is located on the second host 206, so wide area network communication G is configured for application 202 and application 204.
- a bridge network is configured for the application so that the application is connected to the default network and memory of the host where the application is located through the bridge network.
- the operating environment of the application is detected. If the operating environment of the application is a container, a bridge network is set for the container so that the container can be connected to the host through the bridge network.
- the host network is the default network of the host.
- Applications running directly on the host can use the host network by default without configuration.
- the operating environment of the application is detected. If the application runs in a container, a bridge network is set for the container so that the container can be connected to the host through the bridge network, so that the application running in the container can exchange data with other applications through the host, and thus the network configuration of the application running locally on the host and the application running in the container can be performed with the same configuration rules, thereby reducing the complexity of network configuration and improving the efficiency of network configuration for a large number of applications.
- FIG3 is a flow chart of another network configuration method provided in an embodiment of the present application. As shown in FIG3 , the network configuration method 300 further includes the following steps:
- Step 301 Obtain environment information of at least two applications, wherein the environment information is used to indicate the hosts where the applications are located and the communication methods between the hosts.
- Step 302 Group at least two applications according to the environmental information to obtain at least one program grouping, wherein each program grouping includes at least two applications, different program groups correspond to different inter-program communication methods, and applications in the same program group communicate with each other through the inter-program communication method corresponding to the program grouping.
- Step 303 Determine at least one application pair that needs to communicate based on the communication requirements between at least two applications.
- Step 304 Perform communication network configuration for two applications included in the application pair according to the inter-program communication mode corresponding to the program group including the application pair.
- steps 301 to 304 may refer to steps 101 to 104 in the above embodiment, and will not be described in detail here.
- Step 305 Generate configuration information, where the configuration information is used to indicate program grouping information, application pair information, and communication network configuration information.
- Configuration information including program grouping information of each application program, application pair information, and communication network configuration information of each application program is generated.
- Step 306 Generate a configuration list including configuration information, and output the configuration list.
- program grouping information, application pair information, and communication network configuration information are output as a configuration list.
- This list can help users diagnose faults in the configured network when the network configuration fails or the application cannot use the configured network communication, thereby reducing the knowledge threshold and workload of network diagnosis and improving the practicality of the network configuration method.
- FIG4 is a schematic diagram of a network configuration device provided in an embodiment of the present application. As shown in FIG4 , the network configuration device 400 includes:
- the acquisition module 401 is used to acquire environment information of at least two applications, wherein the environment information is used to indicate the host where the application is located and the communication mode between the hosts.
- the grouping module 402 is used to group at least two applications according to environmental information to obtain at least one program grouping, wherein each program grouping includes at least two applications, different program groups correspond to different communication methods, and the applications in the same program group communicate with each other through the communication method corresponding to the program grouping.
- the pairing module 403 is used to determine at least one application pair that needs to communicate based on the communication requirements between at least two applications.
- the configuration module 404 is used to perform communication network configuration for two applications included in the application pair according to the communication mode corresponding to the program group including the application pair.
- the acquisition module 401 can be used to execute step 101 in the above method embodiment
- the grouping module 402 can be used to execute step 102 in the above method embodiment
- the pairing module 403 can be used to execute step 103 in the above method embodiment
- the configuration module 404 can be used to execute step 104 in the above method embodiment.
- the grouping module 402 can be used to perform at least one of the following operations based on environmental information: (i) dividing the applications located on the same host into a program group; (ii) grouping the applications located on different hosts based on the communication method between the hosts to obtain at least one program group.
- the grouping module 402 can be used to group at least two applications located on different hosts and communicating with each other through the same local area network into one program group; and to group at least two applications located on different hosts and communicating with each other through a wide area network into one program group.
- the grouping module 402 may be used to, if the application pair is included in a first program grouping, perform a communication network configuration for two applications included in the application pair through a pre-created memory exchange configuration template, so that the application pair communicates through memory exchange, wherein the applications in the first program grouping are located on the same host; if the application pair is included in a second program grouping, perform a communication network configuration for the two applications included in the application pair through a pre-created LAN configuration template, so that the application pair communicates through a LAN, wherein the applications in the second program grouping are located on different hosts that communicate through the LAN; if the application pair is included in a third program grouping, perform a communication network configuration for the two applications included in the application pair through a pre-created WAN configuration template, so that the application pair communicates through a WAN, wherein the applications in the third program grouping are located on different hosts that communicate through a WAN.
- a bridge network is configured for the application so that the application is connected to the default network and memory of the host where the application is located through the bridge network.
- FIG5 is a schematic diagram of another network configuration device provided in an embodiment of the present application. As shown in FIG5, based on the network configuration device 400 shown in FIG4, the network configuration device 400 further includes:
- the first generating module 405 is used to generate configuration information, wherein the configuration information is used to indicate program grouping information, application program pair information and communication network configuration information.
- the second generating module 406 is used to generate a configuration list including configuration information and output the configuration list.
- the acquisition module 401 can be used to execute step 301 in the above method embodiment
- the grouping module 402 can be used to execute step 302 in the above method embodiment
- the pairing module 403 can be used to execute step 303 in the above method embodiment
- the configuration module 404 can be used to execute step 304 in the above method embodiment
- the first generation module 405 can be used to execute step 305 in the above method embodiment
- the second generation module 406 can be used to execute step 306 in the above method embodiment.
- FIG6 is a schematic diagram of an electronic device provided in an embodiment of the present application.
- the specific embodiment of the present application does not limit the specific implementation of the electronic device.
- the electronic device 600 provided in the embodiment of the present application includes: a processor 602, a communications interface 604, a memory 606, and a communication bus 608. Among them:
- the processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
- the communication interface 604 is used to communicate with other electronic devices or servers.
- the processor 602 is used to execute the program 610, and specifically can execute the relevant steps in any of the aforementioned network configuration method embodiments.
- the program 610 may include program codes, which include computer operation instructions.
- Processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
- the one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
- the memory 606 is used to store the program 610.
- the memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
- the program 610 may be specifically configured to enable the processor 602 to execute the network configuration method in any of the foregoing embodiments.
- each step in program 610 can refer to the corresponding description of the corresponding steps and units in any of the aforementioned network configuration method embodiments, which will not be repeated here.
- Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiments, which will not be repeated here.
- the applications are divided into multiple program groups according to the different environmental information of each application, that is, the different hosts where the applications are located and the communication methods between the hosts. Therefore, each program group can correspond to a communication method between programs, and a large number of applications can be divided into a limited number of program groups.
- the communication method of each application pair is determined according to the communication method between programs in the program group where the application pair is located. There is no need to manually determine the communication method between each application, which reduces the intensity of manual labor.
- the process of configuring the communication network for each application is automatically executed by the system without manual participation, the time spent on configuring the communication network for a large number of applications can be reduced. Therefore, the method is suitable for configuring the communication network for a large number of applications.
- the embodiment of the present application also provides a computer-readable storage medium storing instructions for causing a machine to execute the network configuration method as described herein.
- a system or device equipped with a storage medium can be provided, on which a software program code implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
- the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.
- the storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM.
- the program code can be downloaded from a server computer by a communication network.
- the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
- the embodiment of the present application also provides a computer program product, which is tangibly stored on a computer-readable medium and includes computer executable instructions, which, when executed, cause at least one processor to execute the network configuration method provided in the above embodiments. It should be understood that each solution in this embodiment has the corresponding technical effect in the above method embodiment, which will not be repeated here.
- the hardware module can be implemented mechanically or electrically.
- a hardware module can include permanent dedicated circuits or logic (such as special processors, FPGA or ASIC) to complete the corresponding operation.
- the hardware module can also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete the corresponding operation.
- the specific implementation method mechanical method, or dedicated permanent circuit, or temporarily set circuit
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
Claims (11)
- 一种网络配置方法(100),包括:获取至少两个应用程序的环境信息,其中,所述环境信息用于指示所述应用程序所在的主机及主机之间的通信方式;根据所述环境信息对所述至少两个应用程序进行分组,获得至少一个程序分组,其中,每个所述程序分组包括至少两个应用程序,不同的程序分组对应不同的程序间通信方式,同一程序分组中各应用程序之间通过该程序分组对应的程序间通信方式进行通信;根据所述至少两个应用程序之间的通信需求,确定至少一个需要进行通信的应用程序对;根据包括所述应用程序对的所述程序分组对应的程序间通信方式,对所述应用程序对包括的两个应用程序进行通信网络配置。
- 根据权利要求1所述的方法,其中,所述根据所述环境信息对所述至少两个应用程序进行分组,获得至少一个程序分组,包括:根据所述环境信息,执行如下至少一项操作:(i)将位于同一主机上的所述应用程序划分为一个程序分组;(ii)根据所在主机之间的通信方式,对位于不同主机上的应用程序进行分组,获得至少一个程序分组。
- 根据权利要求2所述的方法,其中,所述根据所在主机之间的通信方式,对位于不同主机上的应用程序进行分组,获得至少一个程序分组,包括:将位于不同主机且所在主机通过同一局域网进行通信的至少两个应用程序划分为一个程序分组;将位于不同主机且所在主机通过广域网进行通信的至少两个应用程序划分为一个程序分组。
- 根据权利要求3所述的方法,其中,所述根据包括所述应用程序对的所述程序分组对应的程序间通信方式,对所述应用程序对包括的两个应用程序进行通信网络配置,包括:若所述应用程序对包括在第一程序分组中,则通过预先创建的内存交换配置模板,对该应用程序对包括的两个应用程序进行通信网络配置,使该应用程序对通过内存交换进行通信,其中,所述第一程序分组中的应用程序位于同一主机上;若所述应用程序对包括在第二程序分组中,则通过预先创建的局域网配置模板,对该应用程序对包括的两个应用程序进行通信网络配置,使该应用程序对通过局域网进行通信,其中,所述第二程序分组中的应用程序位于通过局域网通信的不同主机上;若所述应用程序对包括在第三程序分组中,则通过预先创建的广域网配置模板,对该应用程序对包括的两个应用程序进行通信网络配置,使该应用程序对通过广域网进行通信,其 中,所述第三程序分组中的应用程序位于通过广域网通信的不同主机上。
- 根据权利要求1所述的方法,其中,所述方法还包括:若所述应用程序的运行环境为容器,则为该应用程序配置桥接网络,使该应用程序通过所述桥接网络接入该应用程序所在主机的默认网络和内存。
- 根据权利要求1-5中任一所述的方法,其中,所述方法还包括:生成配置信息,其中,所述配置信息用于指示程序分组信息、应用程序对信息和通信网络配置信息;生成包括所述配置信息的配置清单,并将所述配置清单输出。
- 一种网络配置装置(400),包括:获取模块(401),用于获取至少两个应用程序的环境信息,其中,所述环境信息用于指示所述应用程序所在的主机及主机之间的通信方式;分组模块(402),用于根据所述环境信息对所述至少两个应用程序进行分组,获得至少一个程序分组,其中,每个所述程序分组包括至少两个应用程序,不同的程序分组对应不同的通信方式,同一程序分组中各应用程序之间通过该程序分组对应的通信方式进行通信;配对模块(403),用于根据所述至少两个应用程序之间的通信需求,确定至少一个需要进行通信的应用程序对;配置模块(404),用于根据包括所述应用程序对的所述程序分组对应的通信方式,对所述应用程序对包括的两个应用程序进行通信网络配置。
- 根据权利要求6所述的装置,其中,所述网络配置装置(400)还包括:第一生成模块(405),用于生成配置信息,其中,所述配置信息用于指示程序分组信息、应用程序对信息和通信网络配置信息;第二生成模块(406),用于生成包括所述配置信息的配置清单,并将所述配置清单输出。
- 一种电子设备(600),其特征在于,包括:处理器(602)、通信接口(604)、存储器(606)和通信总线(608),所述处理器(602)、所述存储器(606)和所述通信接口(604)通过所述通信总线(608)完成相互间的通信;所述存储器(606)用于存放至少一可执行指令,所述可执行指令使所述处理器(602)执行如权利要求1-6中任一项所述的网络配置方法(100)对应的操作。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机指 令,所述计算机指令在被处理器执行时,使所述处理器执行权利要求1-7中任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1-6中任一项所述的方法。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202280099718.3A CN119866620A (zh) | 2022-09-27 | 2022-09-27 | 网络配置方法、装置、电子设备和存储介质 |
| EP22959832.1A EP4580135A4 (en) | 2022-09-27 | 2022-09-27 | METHOD AND APPARATUS FOR NETWORK CONFIGURATION, ELECTRONIC DEVICE AND STORAGE MEDIA |
| PCT/CN2022/121753 WO2024065182A1 (zh) | 2022-09-27 | 2022-09-27 | 网络配置方法、装置、电子设备和存储介质 |
| US19/114,553 US12549443B2 (en) | 2022-09-27 | 2022-09-27 | Network configuration method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/121753 WO2024065182A1 (zh) | 2022-09-27 | 2022-09-27 | 网络配置方法、装置、电子设备和存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024065182A1 true WO2024065182A1 (zh) | 2024-04-04 |
Family
ID=90475087
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/121753 Ceased WO2024065182A1 (zh) | 2022-09-27 | 2022-09-27 | 网络配置方法、装置、电子设备和存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12549443B2 (zh) |
| EP (1) | EP4580135A4 (zh) |
| CN (1) | CN119866620A (zh) |
| WO (1) | WO2024065182A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119172203A (zh) * | 2024-11-14 | 2024-12-20 | 河南嵩山实验室产业研究院有限公司洛阳分公司 | 基于dds通信中间件的网络参与者容器间自发现通信方法、系统、设备及可读存储介质 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024065182A1 (zh) * | 2022-09-27 | 2024-04-04 | 西门子股份公司 | 网络配置方法、装置、电子设备和存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107454207A (zh) * | 2017-08-14 | 2017-12-08 | 郑州云海信息技术有限公司 | 一种配置Overlay网络容器外部IP的方法及Docker集群 |
| US20180359218A1 (en) * | 2017-06-12 | 2018-12-13 | Ca, Inc. | Systems and methods for securing network traffic flow in a multi-service containerized application |
| CN110601949A (zh) * | 2019-09-10 | 2019-12-20 | 中国人民解放军国防科技大学 | 一种多虚拟设备容器组网方法 |
| CN111294827A (zh) * | 2019-02-28 | 2020-06-16 | 展讯通信(上海)有限公司 | 一种应用程序的自适应网络通信方法及装置 |
| CN111885075A (zh) * | 2020-07-30 | 2020-11-03 | 广州华多网络科技有限公司 | 容器通信方法、装置、网络设备及存储介质 |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070274230A1 (en) * | 2006-05-23 | 2007-11-29 | Werber Ryan A | System and method for modifying router firmware |
| US20070274285A1 (en) * | 2006-05-23 | 2007-11-29 | Werber Ryan A | System and method for configuring a router |
| US20140095716A1 (en) * | 2012-09-28 | 2014-04-03 | International Business Machines Corporation | Maximizing resources in a multi-application processing environement |
| US9990243B2 (en) * | 2015-04-02 | 2018-06-05 | Fixstream Networks Inc. | Using spanning tree protocol to determine a layer 2 topology of an ethernet type network |
| US10007538B2 (en) * | 2016-01-29 | 2018-06-26 | Oracle International Corporation | Assigning applications to virtual machines using constraint programming |
| US10476738B1 (en) * | 2016-06-13 | 2019-11-12 | Amazon Technologies, Inc. | Virtual network segmentation |
| KR102563790B1 (ko) * | 2018-05-18 | 2023-08-07 | 삼성전자주식회사 | 어플리케이션의 데이터 전송에 기반하여 네트워크 연결을 수행하기 위한 전자 장치 및 그에 관한 방법 |
| US11422868B2 (en) * | 2018-08-24 | 2022-08-23 | Exosite LLC | Product-as-a-service for connected devices |
| US10728145B2 (en) | 2018-08-30 | 2020-07-28 | Juniper Networks, Inc. | Multiple virtual network interface support for virtual execution elements |
| US11394627B1 (en) * | 2019-07-31 | 2022-07-19 | Express Scripts Strategie Development, Inc. | Systems and methods for monitoring inter-application communications in complex computing ecosystems |
| WO2021049794A1 (ko) * | 2019-09-10 | 2021-03-18 | 삼성전자 주식회사 | 전력 및/또는 발열 제어를 구현하는 방법 및 그 전자 장치 |
| CN114205226B (zh) * | 2020-09-18 | 2023-03-28 | 华为技术有限公司 | 一种保障业务应用体验的方法和系统 |
| CN114237812B (zh) * | 2021-11-10 | 2025-07-22 | 上海浦东发展银行股份有限公司 | 容器网络管理系统 |
| WO2024065182A1 (zh) * | 2022-09-27 | 2024-04-04 | 西门子股份公司 | 网络配置方法、装置、电子设备和存储介质 |
-
2022
- 2022-09-27 WO PCT/CN2022/121753 patent/WO2024065182A1/zh not_active Ceased
- 2022-09-27 CN CN202280099718.3A patent/CN119866620A/zh active Pending
- 2022-09-27 US US19/114,553 patent/US12549443B2/en active Active
- 2022-09-27 EP EP22959832.1A patent/EP4580135A4/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180359218A1 (en) * | 2017-06-12 | 2018-12-13 | Ca, Inc. | Systems and methods for securing network traffic flow in a multi-service containerized application |
| CN107454207A (zh) * | 2017-08-14 | 2017-12-08 | 郑州云海信息技术有限公司 | 一种配置Overlay网络容器外部IP的方法及Docker集群 |
| CN111294827A (zh) * | 2019-02-28 | 2020-06-16 | 展讯通信(上海)有限公司 | 一种应用程序的自适应网络通信方法及装置 |
| CN110601949A (zh) * | 2019-09-10 | 2019-12-20 | 中国人民解放军国防科技大学 | 一种多虚拟设备容器组网方法 |
| CN111885075A (zh) * | 2020-07-30 | 2020-11-03 | 广州华多网络科技有限公司 | 容器通信方法、装置、网络设备及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4580135A4 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119172203A (zh) * | 2024-11-14 | 2024-12-20 | 河南嵩山实验室产业研究院有限公司洛阳分公司 | 基于dds通信中间件的网络参与者容器间自发现通信方法、系统、设备及可读存储介质 |
| CN119172203B (zh) * | 2024-11-14 | 2025-03-21 | 河南嵩山实验室产业研究院有限公司洛阳分公司 | 基于dds通信中间件的网络参与者容器间自发现通信方法、系统、设备及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4580135A1 (en) | 2025-07-02 |
| CN119866620A (zh) | 2025-04-22 |
| US20250267066A1 (en) | 2025-08-21 |
| US12549443B2 (en) | 2026-02-10 |
| EP4580135A4 (en) | 2026-01-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107749807B (zh) | 一种面向nfv的网络功能验证方法及验证系统 | |
| CN106301829A (zh) | 一种网络业务扩容的方法和装置 | |
| US20230142573A1 (en) | Method, apparatus, and system for constructing knowledge graph, and computer storage medium | |
| US12549443B2 (en) | Network configuration method and apparatus | |
| CN109474443B (zh) | 一种新增服务器的配置方法、装置、系统和通信设备 | |
| US12199863B2 (en) | Ghost routing | |
| CN106716926A (zh) | 硬件库存的自动化独立式引导电路 | |
| EP4333403B1 (en) | Auto-scaling service mesh for virtual machines | |
| US10289762B2 (en) | Interconnection network simulator and method for simulating interconnection networks | |
| CN113238897B (zh) | 芯片的系统级测试方法、装置、计算机设备及存储介质 | |
| CN115629970A (zh) | 脚本测试方法、装置及电子设备 | |
| CN118426685A (zh) | 集群部署方法和计算设备 | |
| CN117857290A (zh) | 网络靶场中基于配置代理的自动配置方法与系统 | |
| CN113472558B (zh) | 网络部署的方法及装置 | |
| CN116319356A (zh) | 一种基于园区网络的业务部署方法、设备及介质 | |
| US11411819B2 (en) | Automatic network configuration in data protection operations | |
| JP2018018415A (ja) | 情報処理装置、情報処理システム、プログラム及び情報処理方法 | |
| WO2022017254A1 (zh) | 业务模板的生成方法、装置、设备及存储介质 | |
| CN100417100C (zh) | 一种大量设备的软件仿真方法 | |
| CN116614387B (zh) | 基于网络拓扑的验证方法、装置、电子设备及存储介质 | |
| JP7723035B2 (ja) | 負荷検証システム及び負荷検証方法 | |
| CN119402386B (zh) | 网卡测试方法、装置、计算机设备及存储介质 | |
| CN119814534B (zh) | 云物理机的故障诊断方法、装置、存储介质及电子设备 | |
| CN120856582B (zh) | 云网络仿真测试系统、方法、设备、存储介质和程序产品 | |
| CN119697017B (zh) | 一种部署验收边缘upf设备的方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22959832 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280099718.3 Country of ref document: CN |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2022959832 Country of ref document: EP |
|
| ENP | Entry into the national phase |
Ref document number: 2022959832 Country of ref document: EP Effective date: 20250325 |
|
| WWP | Wipo information: published in national office |
Ref document number: 202280099718.3 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWP | Wipo information: published in national office |
Ref document number: 2022959832 Country of ref document: EP |