CN112398960A - Network creation method, equipment, device and computer storage medium - Google Patents

Network creation method, equipment, device and computer storage medium Download PDF

Info

Publication number
CN112398960A
CN112398960A CN201910760097.9A CN201910760097A CN112398960A CN 112398960 A CN112398960 A CN 112398960A CN 201910760097 A CN201910760097 A CN 201910760097A CN 112398960 A CN112398960 A CN 112398960A
Authority
CN
China
Prior art keywords
virtual port
node
network
virtual
service
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.)
Withdrawn
Application number
CN201910760097.9A
Other languages
Chinese (zh)
Inventor
吕嘉伟
李宙洲
姚军
马琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910760097.9A priority Critical patent/CN112398960A/en
Publication of CN112398960A publication Critical patent/CN112398960A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The embodiment of the invention discloses a network creating method, equipment, a device and a computer readable storage medium, wherein the method comprises the following steps: monitoring a message for establishing a network on a first node of a cloud platform, which provides management service; and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding DNS service is configured for the virtual port. It can be seen that, since the virtual port is added to the virtual switch of the first node and the DNS service is configured for the virtual port, when the virtual machine is used to access the network, the virtual machine can access the first node based on the DNS service configured for the virtual port and the virtual switch, and the first node can provide the management service, so that the virtual machine can directly access the management service of the cloud platform.

Description

Network creation method, equipment, device and computer storage medium
Technical Field
The present invention relates to the field of cloud computing, and in particular, to a network creation method, device, and apparatus, and a computer storage medium.
Background
At present, in a common cloud platform such as an openstack platform, a virtual machine cannot directly access a cloud platform management service, because a network used by the cloud platform management service is different from a virtual machine service network, the two networks are generally isolated, and if a virtual machine needs to access the cloud platform management service, additional modification on network equipment configuration is required.
Disclosure of Invention
Embodiments of the present invention are intended to provide a network creation method, device, apparatus, and computer storage medium.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a network creation method, which is characterized by comprising the following steps:
monitoring a message for establishing a network on a first node of a cloud platform, which provides management service;
and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into a virtual switch of the first node, and corresponding Domain Name System (DNS) service is configured for the virtual port.
In the foregoing solution, the configuring, for the virtual port, the corresponding DNS service includes:
sending a mapping relation between identification information of a first host and an Internet Protocol (IP) address of the virtual port to a DNS server, wherein the first host is a host corresponding to the first node.
In the foregoing solution, the creating a virtual port includes:
sending a virtual port creation request to a first component in the first node, the first component being used to implement management services of the first node;
and when a response result which is sent by the first component and aims at the virtual port creating request is received, creating the virtual port according to the response result.
In the above scheme, the method further comprises:
and after sending a virtual port creation request to the first component, receiving routing information, wherein a destination IP address indicated by the routing information is the virtual port IP address.
In the above scheme, the routing information is obtained by a second node of the cloud platform according to a port creation packet sent by the first component, the second node is configured to provide a computing service, and the port creation packet carries the virtual port IP address.
An embodiment of the present invention further provides a network creation device, where the device includes: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute the following steps when running the computer program:
monitoring a message for establishing a network on a first node of a cloud platform, which provides management service;
and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding DNS service is configured for the virtual port.
In the foregoing solution, when the processor is configured to run the computer program, the following steps are specifically executed:
and sending the mapping relation between the identification information of the first host and the IP address of the virtual port to a DNS (domain name server), wherein the first host is a host corresponding to the first node.
In the foregoing solution, when the processor is configured to run the computer program, the following steps are specifically executed:
sending a virtual port creation request to a first component in the first node, the first component being used to implement management services of the first node;
and when a response result which is sent by the first component and aims at the virtual port creating request is received, creating the virtual port according to the response result.
In the foregoing solution, when the processor is configured to run the computer program, the processor further executes the following steps:
and after sending a virtual port creation request to the first component, receiving routing information, wherein a destination IP address indicated by the routing information is the virtual port IP address.
In the above scheme, the routing information is obtained by a second node of the cloud platform according to a port creation packet sent by the first component, the second node is configured to provide a computing service, and the port creation packet carries the virtual port IP address.
An embodiment of the present invention further provides a network creation apparatus, where the apparatus includes: a monitoring module and a processing module, wherein,
the monitoring module is used for monitoring a message for establishing a network on a first node of the cloud platform, which provides management service;
and the processing module is used for creating a virtual port when monitoring the message for creating the network, adding the virtual port into the virtual switch of the first node, and configuring corresponding domain name system DNS service for the virtual port.
An embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the above-mentioned network creation methods.
In the embodiment of the invention, a first node of a cloud platform, which provides management service, monitors a message for establishing a network; and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding DNS service is configured for the virtual port. It can be seen that, since the virtual port is added to the virtual switch of the first node and the DNS service is configured for the virtual port, when the virtual machine is used to access the network, the virtual machine can access the first node based on the DNS service configured for the virtual port and the virtual switch, and the first node can provide the management service, so that the virtual machine can directly access the management service of the cloud platform.
Drawings
FIG. 1 is a flow chart of a network creation method of an embodiment of the present invention;
fig. 2 is a schematic diagram of a deployment model of an openstack cloud platform according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interaction flow of a network creation method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a virtual machine accessing a virtual port of a first node according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network creation device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network creation apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as partial embodiments for implementing the present invention, not all embodiments for implementing the present invention, and the technical solutions described in the embodiments of the present invention may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, the use of the phrase "including a. -. said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
For example, the network creation method provided in the embodiment of the present invention includes a series of steps, but the network creation method provided in the embodiment of the present invention is not limited to the described steps, and similarly, the network creation apparatus provided in the embodiment of the present invention includes a series of modules, but the apparatus provided in the embodiment of the present invention is not limited to include the explicitly described modules, and may also include modules that are required to be set for acquiring relevant information or performing processing based on the information.
The embodiment of the invention can be applied to the cloud platform, and the type of the cloud platform is not limited in the embodiment of the invention. The cloud platform may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. In a computing environment of a cloud platform, tasks are performed by remote processing devices that are linked through a communications network. In a cloud platform computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
The above is merely an example scenario of the application scenario of the embodiment of the present invention, and the application scenario of the embodiment of the present invention is not limited to the above-described application scenario.
In some embodiments of the invention, a network model of the openstack cloud platform cannot ensure that the virtual machine can directly access the management service provided by the openstack, because the network used by the openstack management service is different from the service network of the virtual machine, the two networks are generally isolated, if there is a requirement that the virtual machine accesses the openstack management service, additional manual modification (for example, special rules for configuring the network device) needs to be performed on the configuration of the network device, the manual workload is large, the labor cost is increased, and the modification of the configuration of the network device may cause a security risk.
In view of the foregoing technical problems, embodiments of the present invention provide a network creation method, device, apparatus, and computer storage medium, which may be used to implement a virtual machine direct access management service in a cloud platform.
Based on the above description, the following examples are proposed
First embodiment
An embodiment of the present invention provides a network creation method, and fig. 1 is a flowchart of the network creation method according to the embodiment of the present invention, and as shown in fig. 1, the flowchart may include:
step 101: and monitoring a message for creating a network on a first node of the cloud platform, which provides a management service.
In practical application, a node for providing management service by the cloud platform may be one node or a plurality of nodes; the embodiment of the present invention does not limit this.
As an embodiment, a management-service-agent (management-service-agent) component may be added to the first node, and then the management-service-agent component may be used to listen to the message for creating the network.
In practical applications, a first component for implementing the management service of the first node may be disposed on the first node, and the first component may broadcast the message for creating the network when receiving the request for creating the network, so that the management-service-proxy component may listen to the message for creating the network.
Step 102: and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding DNS service is configured for the virtual port.
In practical application, a virtual port may be created in a first host, where the first host is a host corresponding to the first node.
It can be understood that, since the virtual port is added to the virtual switch of the first node and the DNS service is configured for the virtual port, when the virtual machine is used to access the network, the virtual machine can access the first node based on the DNS service configured for the virtual port and the virtual switch, and the first node can provide the management service, and further, the virtual machine can directly access the management service of the cloud platform; that is to say, the network creation method of the embodiment of the present invention replaces a method for implementing a virtual machine to access a cloud platform management service by manually configuring a network device in the related art, and can meet a requirement for interworking between the virtual machine and the cloud platform management service.
In practical applications, the steps 101 to 102 may be implemented by a Processor in the first node, and the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.
For the implementation manner of configuring the corresponding DNS service for the virtual port, for example, a mapping relationship between the identification information of the first host and the IP address of the virtual port may be sent to the DNS server; here, the DNS server is a device outside the first node, and the DNS server may store a mapping relationship between the identification information of the first host and the IP address of the virtual port, and may further configure a corresponding DNS service for the virtual port; in this manner, virtual machine access to a virtual port in the first host through the DNS server is facilitated.
In the embodiment of the present invention, the type of the identification information of the first host is not limited, for example, the identification information of the first host may be a name or other types of identification information.
For a specific implementation of creating a virtual port, illustratively, a virtual port creation request may be sent to a first component in a first node; then receiving a response result aiming at the virtual port creating request sent by the first component, and creating the virtual port according to the response result; because the first component is a necessary component for realizing network creation on the cloud platform, the process of creating the virtual port conforms to the service logic of the cloud platform, and the realization is more convenient.
In practical applications, the management-service-agent component may be used to send a virtual port creation request to the first component, and the first component may send a response result to the virtual port creation request to the management-service-agent component after receiving the virtual port creation request.
Further, after sending the virtual port creation request to the first component, routing information may also be received, where a destination IP address indicated by the routing information is a virtual port IP address. Therefore, the virtual machine can conveniently access the virtual port according to the routing information.
Optionally, after receiving the virtual port creation request, the first component may further broadcast a corresponding port creation packet. In practical application, after the first component broadcasts a port creation message to the outside, a second node of the cloud platform can receive the port creation message, the second node is used for providing computing service, and the port creation message carries a virtual port IP address; thus, the second node can generate corresponding routing information according to the virtual port IP address in the port creation message, and can send the generated routing information to the first node; because the existing cloud platform has nodes for calculating the routing information, the manner for acquiring the routing information conforms to the service logic of the cloud platform.
Second embodiment
In order to further embody the object of the present invention, the first embodiment of the present invention is further illustrated.
In the second embodiment of the present invention, a cloud platform is taken as an openstack cloud platform for example; a management-service-proxy component is newly added in the openstack cloud platform, and the management-service-proxy component runs on all management nodes (i.e. nodes providing management services) for exposing services for the virtual machine, and can be responsible for monitoring the creation of network resources, creating virtual ports (such as neutron ports) and registering service domain names with a DNS server.
Here, the management-service-agent component runs on each node where the openstack management service is installed, for example, the openstack management service may be a neutron-service (neutron-server), nova-api, or the like; the management-service-agent component can be responsible for monitoring the message for establishing the network, if the administrator establishes the management network, the management-service-agent component sends a request for establishing a port to the neutron-server, and simultaneously establishes a virtual port on the node provided with the openstack management service and adds the virtual port into the openvswitch; after the network is created, the management-service-proxy component writes the host name (hostname) of the host where the management-service-proxy component is located and the IP address of the virtual port into the DNS server.
Fig. 2 is a schematic diagram of a deployment model of an openstack cloud platform according to an embodiment of the present invention, and referring to fig. 2, a management node 1 and a management node 2 are first nodes, a computing node is a second node, in the management node 1, a Neutron-server represents a first component, an Openvswitch represents a virtual switch, a management-service-agent represents a management-service-agent component, and a Neutron-Openvswitch-agent represents an agent component of the virtual switch; in the management node 2, nova-api represents a first component, openvswitch represents a virtual switch, management-service-agent represents a management-service-agent component, and neutron-openvswitch-agent represents an agent component of the virtual switch; in the computing node, neutron-openvswitch-agent represents a proxy component of a virtual switch, openvswitch represents the virtual switch, and nova-computer represents a computing component in the computing node. In fig. 2, eth0 indicates a communication port of the management network, and eth1 indicates a communication port of the service network.
Fig. 3 is a schematic diagram of an interaction flow of a network creation method according to an embodiment of the present invention, and with reference to fig. 2 and fig. 3, the interaction flow of the network creation method may include:
1. a network named management-service-net is created by an administrator user, the name being predefined.
2. Creating a network triggers the neutron-server to send a network creation (create-net) broadcast, to which the management-service-broker component subscribes; thus, the management-service-agent component, upon receiving the broadcast, is equivalent to listening for messages that create the network.
3. After receiving the network creation broadcast, the manager-service-agent component calls a network-server representational state transfer (rest) application programming interface (api) and sends a virtual port creation (create port) request to the network-server, so that a port (virtual port) is created in the network named management-service-net, and the type of the port is management port.
4. After receiving the virtual port creation request, the neutron-server broadcasts a port creation message.
5. After receiving the virtual port creation request, the neutron-server may return a response result for the virtual port creation request to the management-service-proxy component.
After receiving the response result, the management-service-agent component may create a virtual port on the host corresponding to the first node and configure an IP address of the virtual port; the management-service-agent component may also add virtual ports to the virtual switch openvswitch.
6. The manage-service-proxy component configures the DNS service.
Specifically, the management-service-proxy component may send a mapping of the host name of the first host and the IP address of the virtual port to an external DNS server.
7. After receiving the port creation message, the neutron-openvswitch-agent located in the compute node may configure the flow table of the compute node. Specifically, a flow table may be configured to route a packet having a destination IP address that is an IP address of a virtual port to a first node that exposes a management service.
Fig. 4 is a schematic diagram of a virtual port of a virtual machine accessing a first node in an embodiment of the present invention, and referring to fig. 3, openstack-tap is a virtual port created by a management-service-agent component, openvswitch is a virtual switch, VM denotes a virtual machine, and eth1 denotes a communication port of a service network.
With reference to fig. 2, fig. 3 and fig. 4, it can be seen that after the management node 1 creates a virtual port, the virtual machine can access the openstack management service, which is described in detail below.
Referring to fig. 4, after a virtual machine needing to access openstack management service is started, a DNS service needs to be configured, then the openstack management service is accessed by accessing a "domain name + port", the domain name is resolved by the DNS and finally converted into an IP address of a virtual port created by a management-service-proxy component, and an access packet of the virtual machine is influenced by an ovs (openvswitch) flow table and routed to a designated node (i.e., a management node 1); obviously, when the traffic reaches the virtual port, it is equivalent to reaching the management node 1 providing the management service, i.e., the traffic can be received by the openstack management service process.
It can be seen that, in the embodiment of the present invention, by adding a management-service-agent component in the framework of the openstack cloud platform, creation of a network, such as a management network, can be automatically discovered, and a virtual port is automatically created on the first node exposing the management service, so that the configuration of a network device does not need to be modified manually, and meanwhile, the business logic of the openstack cloud platform is met.
Further, in the embodiment of the present invention, by registering the host name of the first host and the IP address of the created virtual port in the DNS server, the problem that the address of the virtual machine for accessing the management service changes due to a change in the IP address can be avoided, that is, the virtual machine directly uses the domain name to access the openstack management service, thereby avoiding inconvenience caused by using a fixed IP.
Furthermore, the embodiment of the invention can configure a special flow table for the flow of the virtual machine access management service by reasonably configuring the service logic of the management-service-agent component, so that the flow can directly reach the first node; in addition, the embodiment of the invention also illustrates how to implement the business process of the virtual machine access management service in the neutron framework.
Third embodiment
Based on the network creating method proposed by the foregoing embodiment, a third embodiment of the present invention proposes a network creating device, fig. 5 is a schematic structural diagram of the network creating device according to the embodiment of the present invention, as shown in fig. 5, the device includes a processor 501 and a memory 502 for storing a computer program capable of running on the processor, and when the processor 501 is used for running the computer program, any one of the network creating methods described above is executed.
In practical applications, the Memory 502 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 501.
The processor 501 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices used to implement the processor functions described above may be other devices, and embodiments of the present invention are not limited in particular.
Fourth embodiment
Based on the network creation method proposed by the foregoing embodiment, a fourth embodiment of the present invention proposes a network creation apparatus.
Fig. 6 is a schematic structural diagram of a network creation apparatus according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes: a listening module 601 and a processing module 602, wherein,
a monitoring module 601, configured to monitor a message for creating a network on a first node of a cloud platform that provides a management service;
a processing module 602, configured to create a virtual port when monitoring the message for creating the network, add the virtual port to the virtual switch of the first node, and configure a corresponding domain name system DNS service for the virtual port.
Illustratively, the processing module 602 is specifically configured to send, to a DNS server, a mapping relationship between identification information of a first host and the virtual port IP address, where the first host is a host corresponding to the first node.
Exemplarily, the processing module 602 is specifically configured to send a virtual port creation request to a first component in the first node, and when a response result to the virtual port creation request sent by the first component is received, create a virtual port according to the response result; the first component is for implementing management services for the first node.
Illustratively, the processing module 602 is further configured to receive routing information after sending the virtual port creation request to the first component, where a destination IP address indicated by the routing information is the virtual port IP address.
Illustratively, the routing information is obtained by a second node of the cloud platform according to a port creation packet sent by the first component, where the second node is configured to provide a computing service, and the port creation packet carries the virtual port IP address.
In practical applications, the monitoring module 601 and the processing module 602 may be implemented by a processor located in a node where a cloud platform provides management services; the processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.
Fifth embodiment
A fifth embodiment of the present invention provides a computer storage medium storing a computer program that, when executed by a processor, implements any one of the network creation methods in the foregoing embodiments of the present invention.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method for network creation, the method comprising:
monitoring a message for establishing a network on a first node of a cloud platform, which provides management service;
and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding domain name system DNS service is configured for the virtual port.
2. The method of claim 1, wherein configuring the corresponding DNS service for the virtual port comprises:
and sending a mapping relation between the identification information of a first host and the IP address of the virtual port to a DNS (domain name server), wherein the first host is a host corresponding to the first node.
3. The method of claim 1 or 2, wherein the creating a virtual port comprises:
sending a virtual port creation request to a first component in the first node, the first component being used to implement management services of the first node;
and when a response result which is sent by the first component and aims at the virtual port creating request is received, creating the virtual port according to the response result.
4. The method of claim 3, further comprising:
and after sending a virtual port creation request to the first component, receiving routing information, wherein a destination IP address indicated by the routing information is the virtual port IP address.
5. The method according to claim 4, wherein the routing information is obtained by a second node of the cloud platform according to a port creation packet sent by the first component, the second node is configured to provide a computing service, and the port creation packet carries the virtual port IP address.
6. A network creation device, the device comprising: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute the following steps when running the computer program:
monitoring a message for establishing a network on a first node of a cloud platform, which provides management service;
and when the message for establishing the network is monitored, a virtual port is established, the virtual port is added into the virtual switch of the first node, and corresponding domain name system DNS service is configured for the virtual port.
7. The apparatus according to claim 6, wherein the processor, when executing the computer program, is configured to perform the following steps:
and sending a mapping relation between the identification information of a first host and the IP address of the virtual port to a DNS (domain name server), wherein the first host is a host corresponding to the first node.
8. The apparatus according to claim 6 or 7, wherein the processor is configured to perform the following steps in particular when running the computer program:
sending a virtual port creation request to a first component in the first node, the first component being used to implement management services of the first node;
and when a response result which is sent by the first component and aims at the virtual port creating request is received, creating the virtual port according to the response result.
9. An apparatus for creating a network, the apparatus comprising: a monitoring module and a processing module, wherein,
the monitoring module is used for monitoring a message for establishing a network on a first node of the cloud platform, which provides management service;
and the processing module is used for creating a virtual port when monitoring the message for creating the network, adding the virtual port into the virtual switch of the first node, and configuring corresponding domain name system DNS service for the virtual port.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program realizes the method of any one of claims 1 to 5 when executed by a processor.
CN201910760097.9A 2019-08-16 2019-08-16 Network creation method, equipment, device and computer storage medium Withdrawn CN112398960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910760097.9A CN112398960A (en) 2019-08-16 2019-08-16 Network creation method, equipment, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910760097.9A CN112398960A (en) 2019-08-16 2019-08-16 Network creation method, equipment, device and computer storage medium

Publications (1)

Publication Number Publication Date
CN112398960A true CN112398960A (en) 2021-02-23

Family

ID=74602848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910760097.9A Withdrawn CN112398960A (en) 2019-08-16 2019-08-16 Network creation method, equipment, device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112398960A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055327A (en) * 2017-12-15 2018-05-18 佛山三维二次方科技有限公司 Cloud computing experiment porch based on OpenStack
CN109254831A (en) * 2018-09-06 2019-01-22 山东师范大学 Virtual machine network method for managing security based on cloud management platform
CN109936641A (en) * 2019-01-25 2019-06-25 华为技术有限公司 Method, virtual switch and the distributed DNS system of domain name mapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055327A (en) * 2017-12-15 2018-05-18 佛山三维二次方科技有限公司 Cloud computing experiment porch based on OpenStack
CN109254831A (en) * 2018-09-06 2019-01-22 山东师范大学 Virtual machine network method for managing security based on cloud management platform
CN109936641A (en) * 2019-01-25 2019-06-25 华为技术有限公司 Method, virtual switch and the distributed DNS system of domain name mapping

Similar Documents

Publication Publication Date Title
US10516590B2 (en) External health checking of virtual private cloud network environments
US10547463B2 (en) Multicast helper to link virtual extensible LANs
US11218420B2 (en) Virtual network interface objects
CN109428749B (en) Network management method and related equipment
US8959185B2 (en) Multitenant server for virtual networks within datacenter
US20180069787A1 (en) Exposing a subset of hosts on an overlay network to components external to the overlay network without exposing another subset of hosts on the overlay network
CN114095430B (en) Access message processing method, system and working node
US11212260B2 (en) Dynamic firewall configuration and control for accessing services hosted in virtual networks
CN114070723A (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN112637332A (en) Service registration discovery method and system
CN115314353A (en) Device and method for realizing single-pod multi-network card based on kubernets
CN107404410B (en) Method and device for constructing virtual network function platform in cloud environment
CN110247778A (en) Installation method of operating system, device, electronic equipment and storage medium
CN115695374A (en) IPv6 subnet prefix advertisement implementation method, device, equipment and storage medium
CN112398960A (en) Network creation method, equipment, device and computer storage medium
US20130282923A1 (en) Managing overlapping address domains
CN113923149A (en) Network access method, device, network system, electronic equipment and storage medium
CN111917858B (en) Remote management system, method, device and server
CN117221110A (en) Container network creation method, device, equipment and storage medium
CN114466011A (en) Metadata service request method, device, equipment and medium
CN117081888A (en) Physical network creation method, related device, electronic equipment and storage medium
TW202309745A (en) Monitoring method, monitoring system and monitoring device of virtual machine operation
CN116489245A (en) Message sending method, message receiving method, information sending method and device
CN117319137A (en) Physical network creation method, related device, electronic equipment and storage medium
CN116781599A (en) Route monitoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210223