CN114070723B - Virtual network configuration method and system of bare metal server and intelligent network card - Google Patents

Virtual network configuration method and system of bare metal server and intelligent network card Download PDF

Info

Publication number
CN114070723B
CN114070723B CN202010757005.4A CN202010757005A CN114070723B CN 114070723 B CN114070723 B CN 114070723B CN 202010757005 A CN202010757005 A CN 202010757005A CN 114070723 B CN114070723 B CN 114070723B
Authority
CN
China
Prior art keywords
network
bare metal
virtual
network configuration
metal server
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.)
Active
Application number
CN202010757005.4A
Other languages
Chinese (zh)
Other versions
CN114070723A (en
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 CN202010757005.4A priority Critical patent/CN114070723B/en
Publication of CN114070723A publication Critical patent/CN114070723A/en
Application granted granted Critical
Publication of CN114070723B publication Critical patent/CN114070723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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
    • 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/45562Creating, deleting, cloning virtual machine instances
    • 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/45591Monitoring or debugging support
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a virtual network configuration method, a virtual network configuration system and an intelligent network card of a bare metal server, wherein the virtual network configuration system comprises: the cloud server is used for acquiring a network configuration request and triggering the controller to distribute network configuration information for the bare metal server to be configured; the network configuration request is used for requesting to configure a virtual network of the bare metal server; the intelligent network card is used for acquiring the network configuration information and transmitting the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the bare metal server is used for acquiring the network configuration information, and after the operating system is successfully installed, the virtual network is configured according to the network configuration information.

Description

Virtual network configuration method and system of bare metal server and intelligent network card
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a virtual network configuration method, a virtual network configuration system, and an intelligent network card for a bare metal server.
Background
Bare metal server (Bare Metal Server, BMS) refers to a physical server that does not have an operating system installed. The BMS supports user-defined installation of an Operating System (OS). Compared with a virtual machine, the physical server has the advantages of strong computing capacity, exclusive resources, safety isolation and the like. In the related art, openStack Ironic may be used to provide bare metal services, where OpenStack is an open-source cloud computing management platform item, and Ironic is a sub-item of OpenStack, and is specifically used to provide bare metal services. The Ironic may provide self-service bare metal server management services to users.
In OpenStack infrared technology, for a managed bare metal server, the OpenStack infrared technology mainly includes three stages of an on-shelf self-checking stage (Inspection), a deployment stage (provisioning), and a recovery stage (Clean). The self-checking stage is that when the physical server completes the hardware installation, network connection and other works, the manager registers the bare metal information into the Ironic architecture for nano-tube. In the stage, the function of the Ironic Insector can be applied as required to realize the automatic collection of bare metal hardware configuration information and uplink switch information, namely the self-checking of the bare metal server. The deployment stage refers to that when the physical server is put on shelf, the physical server is in an available state, and a tenant (or a user) designates information such as a mirror image, a network and the like to create a bare metal server instance according to service requirements. The recovery stage refers to when the physical server is finished using, the tenant (or user) applies for releasing the resource.
In the related art, in the on-shelf self-checking stage and the deployment stage, network information of the bare metal server needs to be configured by matching an intelligent platform management interface (Intelligent Platform Management Interface, IPMI) with a physical switch, so that the bare metal server can access a local area network and a public network. In the stage of on-shelf self-checking, bare metal service is discovered through IPMI; in the deployment stage, a user manually configures network information for the bare metal server through an IPMI platform management tool and a physical switch.
In the related art, a network of a bare metal server needs to be manually configured, and a human error has a great influence on network connectivity, which results in poor manageability of the network of the bare metal server.
Disclosure of Invention
In view of the above, the embodiments of the present invention are expected to provide a virtual network configuration method, system and intelligent network card for a bare metal server, so as to solve the problem that the network of the bare metal server needs to be manually configured in the related art.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a virtual network configuration system of a bare metal server, which comprises the following components:
the cloud server is used for acquiring a network configuration request and triggering the controller to distribute network configuration information for the bare metal server to be configured; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
the intelligent network card is used for acquiring the network configuration information and transmitting the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-unloaded in the intelligent network card;
the bare metal server is used for acquiring the network configuration information, and after the operating system is successfully installed, the virtual network is configured according to the network configuration information.
In the above scheme, the intelligent network card is further configured to: acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
In the above scheme, the intelligent network card is further configured to:
after the bare metal server is successfully accessed, creating a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
acquiring two Internet Protocol (IP) addresses belonging to different network segments, and creating a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
In the above scheme, the controller is used for: and acquiring a network configuration request sent by the cloud server, distributing the network configuration information to the bare metal server according to the network configuration request, and sending the network configuration information to the intelligent network card.
In the above scheme, the controller is pre-unloaded in the intelligent network card; the intelligent network card is used for: and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
The embodiment of the invention also provides a virtual network configuration method of the bare metal server, which is applied to the intelligent network card and comprises the following steps:
acquiring network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured after the cloud server acquires the network configuration request; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
transmitting the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
In the above solution, after the virtual switch sends the network configuration information to the bare metal server, the method further includes:
acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
In the above solution, before the obtaining the network configuration information, the method further includes:
after the bare metal server is successfully accessed, creating a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
acquiring two Internet Protocol (IP) addresses belonging to different network segments, and creating a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
In the above scheme, the controller is pre-unloaded in the intelligent network card;
wherein, the obtaining the network configuration information includes:
and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
The embodiment of the invention also provides a virtual network configuration device of the bare metal server, which comprises:
an acquisition unit configured to acquire network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured by triggering the controller after the network configuration request is acquired; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
a transmitting unit configured to transmit the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
The embodiment of the invention also provides an intelligent network card, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
and the processor is used for executing the steps of any virtual network configuration method of the bare metal server when running the computer program.
The embodiment of the invention also provides a storage medium, on which a computer program is stored, the computer program realizing the steps of any one of the virtual network configuration methods of the bare metal server when being executed by a processor.
In the scheme provided by the embodiment of the invention, after the cloud server acquires the network configuration request, the controller is triggered to distribute network configuration information to the bare metal server, the intelligent network card can acquire the network configuration information, the network configuration information is sent to the bare metal server based on the virtual switch pre-unloaded in the intelligent network card, and the bare metal server is triggered to configure the virtual network according to the network configuration information after the operating system is successfully installed. By the mode, the virtual switch is unloaded in the intelligent network card, so that the computing resources and the storage resources of the bare metal server can be saved, and the data processing efficiency of the bare metal server is improved; the controller can distribute network configuration information for the bare metal server, and the network configuration information is transmitted to the bare metal server through the virtual switch in the intelligent network card so as to realize automatic configuration of the virtual network of the bare metal server, and a user does not need to manually configure the virtual network of the bare metal server by means of a physical switch, so that manual intervention can be reduced, and the influence of manual operation on the virtual network connectivity of the bare metal server is reduced.
Drawings
FIG. 1 is a schematic diagram of a system architecture according to an embodiment of the present invention;
FIG. 2 is an interaction diagram of a virtual network configuration system of a bare metal server according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another system architecture according to an embodiment of the present invention;
FIG. 4 is another interaction diagram of a virtual network configuration system of a bare metal server according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a virtual network configuration method of a bare metal server according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a composition structure of a virtual network configuration device of a bare metal server according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware composition structure of an intelligent network card according to an embodiment of the present invention.
Detailed Description
The acronyms and terms used in the present invention are described below.
Ovs: openvswitch, virtual switch or software switch; virtual switching is the formation of switch elements by means of software using virtual platforms.
Ovs-agent: openvswitch agent a virtual switch agent, which is mainly used for driving a virtual switch to establish a tunnel (tunnel), and is used for establishing a main flow table and default rules required by the tunnel forwarding data packets; a tunnel is a virtual interface similar to a loopback interface that can be used to hide paths.
SDN: software Defined Network, software defined networking.
SDN controller: is a functional entity in the SDN and is responsible for flow control.
Smart NIC, smart Network Interface Card, intelligent network card, its core is that the processor of the assistance server of field programmable gate array in the intelligent network card processes the network load, programming the network interface function; the intelligent network card has the following characteristics: typically comprising a plurality of physical ports and internal switches, forwarding data quickly; network traffic is detected and managed. Smart NICs are capable of achieving many of the advantages of SDN and network function virtualization (Network Functions Virtualization, NFV), removing network virtualization, load balancing, and other low-level functions from the server's processor, ensuring maximum processing power is provided for the application.
SRIOV: single Root I/O Virtualization, single Root Virtualization.
VF: virtual Function is an instance of a Virtual "network card" or Virtual out of a physical network card supporting SRIOV; SRIOV VF may be understood as a virtual network card.
VN: virtual networks are a type of computer Network that includes Virtual Network connections. Virtual network connections are implemented by network virtualization without involving physical connections between two computing devices (e.g., bare metal servers and switches in the present invention). Two of the most common forms of virtual networks are protocol-based virtual networks and virtual device-based virtual networks, such as the virtual network implemented by the intelligent network card-based virtual switch and virtual portal of the present invention.
The technical scheme of the invention is further elaborated below by referring to the drawings in the specification and the specific embodiments.
Fig. 1 shows a schematic diagram of a system architecture according to an embodiment of the present invention. Fig. 1 includes a cloud server 11, a controller 12, at least one intelligent network card 13, and at least one bare metal server 14, one intelligent network card 13 and a corresponding one bare metal server 14.
The cloud server 11 is used for managing a bare metal server, a user can log in the cloud server 11 through a user terminal to manage the bare metal server, for example, the user can apply for creating a bare metal server instance according to service requirements, and when the user uses up the configured bare metal server, apply for cleaning data in the bare metal server, and the like.
The controller 12 may be a node device with a domain name resolution system (Domain Name System, SDN) controller or Ovs-agent built in. It should be noted that the controller 12 and the intelligent network card 13 shown in fig. 1 are divided into functional modules. The controller 12 and the intelligent network card 13 may be separately provided to different devices. The controller 12 and the intelligent network card 13 may be incorporated in the same device. When the controller 12 is an SDN controller or Ovs-agent and the SDN controller or Ovs-agent is pre-unloaded in the intelligent network card, the situation corresponds to the situation that the controller 12 and the intelligent network card 13 are co-located in the same device.
The intelligent network card 13 may be installed as a hardware component in the bare metal server 14, or may be connected to the bare metal server 14 as a separate device. The virtual switch may be deployed in the intelligent network card 13, that is, the virtual switch is pre-offloaded in the intelligent network card.
Having introduced the architecture of the virtual network configuration system of the bare metal server, a detailed description of the implementation of the virtual network configuration by each device is provided below in conjunction with fig. 2.
Fig. 2 shows an interaction diagram of a virtual network configuration system of a bare metal server according to an embodiment of the present invention. The following description will take the controller and the intelligent network card as two separate independent devices as an example. Referring to fig. 2, the virtual network configuration method of the bare metal server may include the steps of:
s201, a cloud server acquires a network configuration request; the network configuration request is for requesting configuration of a virtual network of the bare metal server.
The network configuration request may include identification information and network demand information of the bare metal server to be configured. The bare metal server to be configured is a bare metal server for completing the pre-configuration operations such as hardware installation, network connection and the like. The identification information of the bare metal server may be unique identification information of the bare metal server, for example, a device identification, a media access control (Media Access Control Address, MAC) address, etc.
The network demand information may include network type, bandwidth, etc. The network types may include: virtual private cloud (Virtual Private Cloud, VPC), high-speed network, custom virtual local area network (Virtual Local Area Network, VLAN) network and InfiniBand (IB) network, which are isolated from each other and not interworking. The network requirement information is used by the controller to determine network configuration information. Here, the network demand information may be input or selected by the user, or may be set.
In an embodiment, the cloud server may receive a network configuration request sent by the user terminal, where the network configuration request is generated when the user terminal receives the network configuration requirement information input or selected by the user.
For example, after the user completes the pre-configuration operation, the user may log in a cloud server for managing the bare metal server through a user interface of the user terminal, select the bare metal server to be configured, and input network configuration requirement information according to service requirements, or select the network configuration requirement information from the user interface; and then, the user can trigger the user terminal to send a network configuration request to the cloud server through the user interface. The pre-configuration operation may include: assembling hardware of the bare metal server, unloading (i.e. installing) the virtual switch in the intelligent network card, inserting the intelligent network card into a preset interface of the bare metal server to be configured, establishing communication connection between the intelligent network card and the controller, and the like.
The preset interface of the bare metal server is used for being connected with the intelligent network card. After the intelligent network card detects that the communication connection with the bare metal server is successfully established, the identification information of the bare metal server can be acquired, and the association relation between the identification information of the intelligent network card and the identification information of the bare metal server is established. The intelligent network card may then send the association to the controller so that the controller stores the association, or the intelligent network card may also send the association to the cloud server through the controller so that the cloud server stores the association. That is, the association relationship between the identification information of the intelligent network card and the identification information of the bare metal server may be stored in the cloud server or in the controller, which is not limited herein.
In another embodiment, the cloud server may obtain the resource configuration requirement information and generate the network configuration request based on the network configuration requirement information in the resource configuration information.
For example, a user selects a bare metal server to be configured in an interactive interface of the user terminal, and inputs or selects resource configuration requirement information of the bare metal server according to service requirements, and the user terminal sends the acquired resource configuration requirement information to the cloud server when acquiring the resource configuration requirement information of the bare metal server to be configured.
The resource allocation requirement information includes identification information, mirror type, network requirement information, etc. of the bare metal server to be configured. The image type may be a public image, a private image, or a shared image. The network requirement information is described above.
Under the condition that the cloud server acquires the resource configuration requirement information, an image file corresponding to the image type can be acquired according to the image type in the resource configuration requirement information, and the acquired image file is sent to the bare metal server to be configured through the controller and the intelligent network card, so that the operating system corresponding to the image file is installed after the bare metal server acquires the image file.
After the bare metal server successfully installs the operating system, a notification message indicating that the bare metal server has successfully installed the operating system may be sent to the cloud server via the intelligent network card and the controller.
The cloud server may execute S202 after sending the obtained image file to the bare metal server to be configured via the controller and the intelligent network card; the cloud server may also perform S202 after acquiring a notification message indicating that the bare metal server has successfully installed the operating system.
S202, the cloud server sends the network configuration request to the controller to trigger the controller to distribute network configuration information for the bare metal server to be configured.
And S203, the controller receives the network configuration request and distributes network configuration information for the bare metal server to be configured.
The controller may allocate network configuration information based on the network demand information in the resource configuration request. The network configuration information may include IP addresses, subnet masks, gateway addresses, DNS server addresses, and the like.
S204, the controller sends the network configuration information to the intelligent network card.
After the intelligent network card and the bare metal server are successfully connected in a communication manner, the association relationship between the identification information of the intelligent network card and the identification information of the bare metal server is stored in the controller or the cloud server, so that the controller can acquire the association relationship between the identification information of the intelligent network card and the identification information of the bare metal server from the local or cloud server, and determine the identification information of the intelligent network card corresponding to the bare metal server to be configured based on the association relationship between the identification information of the intelligent network card and the identification information of the bare metal server, thereby sending network configuration information to the intelligent network card according to the determined identification information of the intelligent network card.
S205, the intelligent network card acquires network configuration information sent by the controller.
The network configuration information sent by the controller can be transmitted through a physical network port of the intelligent network card, and the intelligent network card can acquire the network configuration information received by the physical network port.
Wherein, before executing S205, the intelligent network card may further execute the following pre-configuration steps:
after the intelligent network card is successfully accessed to a bare metal server to be configured, a virtual network port is created, wherein the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
the intelligent network card obtains two internet protocol addresses (Internet Protocol Address, IP addresses) belonging to different network segments, and creates a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting data packets of a virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information. Here, the management network is used to manage or control the bare metal server. That is, control information related to the bare metal server is transmitted through the management network.
It should be noted that, the intelligent network card can create a plurality of virtual network interfaces for the bare metal server, and the bare metal server does not need to add a physical network card, so that the cost can be saved. The maximum number of virtual network ports is limited by the number of physical network ports of the intelligent network card.
Referring to fig. 3, fig. 3 shows another system architecture schematic provided by the embodiment of the present invention, where an intelligent network card may be connected to a bare metal server through a hardware interface, and the intelligent network card may be connected to a switch through a physical network port C1 and/or C2, and the switch is used to build a local area network. It should be noted that the intelligent network card includes at least one physical network port, and the intelligent network card shown in fig. 3 includes two physical network ports, and in some embodiments, the intelligent network card may also include more or fewer physical network ports. In the following, an example of creating 1 virtual portal by using the intelligent network card will be described with reference to fig. 3.
After the intelligent network card and the bare metal server successfully establish communication connection and the driver is successfully installed, a virtual network port (or SRIOV VF) corresponding to the physical network port C1 shown in fig. 3 can be created according to a virtual network port creation instruction triggered by a user, and a presentation port (representator port) B corresponding to the virtual network port is created. The representation port B corresponding to the virtual network port is a virtual port. The virtual network port creation instruction may include the number of virtual network ports to be created, so that the intelligent network card may create a corresponding number of virtual network ports, so that the bare metal server may configure a virtual network corresponding to the virtual network ports according to corresponding network configuration information.
After the intelligent network card successfully installs the driver, when two IP addresses belonging to different network segments are acquired, the two IP addresses can be respectively distributed to two physical network ports C1 and C2, and a service network and a management network are created. For example, the physical network port C1 corresponds to a service network, and the physical network port C2 corresponds to a management network. Here, one IP address corresponds to one physical portal. The intelligent network card acquires network configuration information sent by the controller through the physical network port C2.
The management network is used for the cloud server and the controller to transmit control information corresponding to the bare metal server, such as network configuration information, a flow table sent to the intelligent network card by the controller, and the like. The service network is used for transmitting the data packet of the virtual network port corresponding to the virtual network after the virtual network of the bare metal server is successfully configured. That is, the data packets transmitted through the virtual network card a, the representation port B corresponding to the virtual network port, and the physical network port C1 in fig. 3 are transmitted to the switch through the service network. The data packet via the physical network port C2 is transmitted through the management network.
The virtual network card A is obtained by mapping the representation port B based on the virtual network port when the representation port B corresponding to the virtual network port of the intelligent network card is detected after the bare metal server successfully installs the operating system. Although the virtual port B is a virtual port, the virtual port B is actually present with respect to the virtual network card a.
S206, the intelligent network card sends the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-offloaded in the intelligent network card.
The virtual switch in the intelligent network card may be used to forward network configuration information from the controller to the bare metal server.
In fig. 3, a virtual switch in the intelligent network card may control the virtual network card a, and when the intelligent network card obtains the network configuration information sent by the controller via the physical network port C2, the virtual switch in the intelligent network card may forward the network configuration information received from the physical network port C2 to the virtual network card a for use by the bare metal server, so that the bare metal server may obtain the network configuration information transmitted via the virtual network card a.
S207, the bare metal server acquires the network configuration information and configures a virtual network according to the network configuration information.
After the bare metal server successfully installs the operating system, the virtual network of the bare metal server is configured according to the acquired network configuration information. For example, the bare metal server may configure, according to the obtained network configuration information, a virtual network corresponding to the virtual network card a mapped by the representation port B corresponding to the virtual network port.
For example, the bare metal server may configure the IP address, subnet mask, gateway address, DNS server address, etc. of the virtual network card a according to the network configuration information, and after the configuration is successful, the virtual network corresponding to the virtual network card a may be successfully created.
When the virtual network corresponding to the virtual network card A is successfully configured, the virtual switch in the intelligent network card can forward the data packet sent by the bare metal server through the virtual network out of the physical network port C1. Specifically, the bare metal server may transmit a data packet to the switch connected to the physical network port C1 of the intelligent network card through a virtual network link, where the virtual network link may be composed of the virtual network card a, the representation port B corresponding to the virtual network port, the virtual switch, and the physical network port C1.
Optionally, in some embodiments, in order to uniformly manage the traffic of the virtual network, the virtual network configuration method of the bare metal server may further include: s208, the intelligent network card acquires a flow table, and the virtual switch controls the network flow of the virtual network according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
The controller may configure the flow table according to a user-triggered flow table configuration instruction, and the controller may also receive a flow table configured by the user. Here, the user-triggered flow table configuration instruction and the user-configured flow table are both sent to the controller via the user terminal and the cloud server.
When the controller and the intelligent network card are separate devices, the controller sends the flow table to the intelligent network card through a management network created by the intelligent network card under the condition that the flow table is acquired, and the intelligent network card can store the acquired flow table in the virtual switch.
When the function of the controller is integrated into the intelligent network card, the controller can transmit the flow table to the virtual switch through the communication interface under the condition that the flow table transmitted through the management network is acquired.
After the bare metal server successfully configures the virtual network, the virtual switch in the intelligent network card can control the network flow of the virtual network according to the flow table. Security group rules, firewall rules, quality of service (Quality of Service, qoS) rules, etc. may be set in the flow table.
The security group is a virtual firewall with state detection and data packet filtering capabilities and is used for dividing security domains. The security group rules are used to control ingress and egress traffic of bare metal servers within the security group.
"Firewall" refers to a method of separating an intranet from a public access network, such as the Internet. A firewall is an access control dimension that is implemented when two networks communicate. Firewall rules may be used to define the flow of information that is allowed or denied access to the network. QoS rules are used to guarantee quality of service.
One flow table contains at least one flow entry. The flow table entry is used to define forwarding rules for the data packet.
Each flow entry may include at least: match Fields (Match Fields), instructions (Instructions), and Counters (Counters).
Matching field: the method is used for matching the packet head content of the data packet received by the virtual switch. The matching field may include an ingress port and a data header, as well as optional metadata specified by the previous table.
A counter: maintenance may be performed for each flow table, each data flow, each device port, each forwarding queue in the switch for statistics of relevant information of data traffic.
Instructions to: the action set or pipeline process is modified to instruct the virtual switch how the matching packet should be processed after it is received.
In this embodiment, after the cloud server acquires the network configuration request, the controller may be triggered to allocate network configuration information for the bare metal server, and the intelligent network card sends the network configuration information to the bare metal server based on the virtual switch unloaded in the intelligent network card when acquiring the network configuration information, and after the bare metal server is triggered to successfully install the operating system, the virtual network is configured according to the network configuration information. By the mode, the virtual switch is unloaded in the intelligent network card, so that the computing resources and the storage resources of the bare metal server can be saved, and the data processing efficiency of the bare metal server is improved; the controller can distribute network configuration information for the bare metal server, the network configuration information is transmitted to the bare metal server through the virtual switch of the intelligent network card, the virtual network of the bare metal server can be automatically configured, a user does not need to manually configure the virtual network of the bare metal server by means of the physical switch, manual intervention can be reduced, and the influence of manual operation on the virtual network connectivity of the bare metal server is reduced.
The controller can send the flow table to the virtual switch in the intelligent network card, the virtual switch in the intelligent network card can control the network flow of the virtual network according to the flow table, and the network flow of the virtual network can be uniformly controlled through the controller and the virtual switch.
The virtual network configuration method of the bare metal server is described above by taking the controller and the intelligent network card as two separate independent devices as an example. In some embodiments, the functionality of the controller may be integrated in the intelligent network card, that is, the SDN controller or Ovs-agent may be offloaded in the intelligent network card. The virtual network configuration method of the bare metal server is described below by taking the integration of the functions of the controller into the intelligent network card as an example. In this embodiment, the virtual switch is installed in the intelligent network card, and an SDN controller or Ovs-agent is also installed.
Referring to fig. 4, fig. 4 shows another interaction diagram of a virtual network configuration system of a bare metal server according to an embodiment of the present invention. The virtual network configuration method of the bare metal server comprises the following steps:
s401, a cloud server acquires a network configuration request; the network configuration request is for requesting configuration of a virtual network of the bare metal server.
For a specific implementation method of the cloud server to obtain the network configuration request, please refer to the related description in S201, which is not described herein.
After the intelligent network card detects that communication connection with the bare metal server is successfully established, the identification information of the bare metal server can be acquired, and an association relationship between the identification information of the intelligent network card and the identification information of the bare metal server is established. And then, the intelligent network card sends the association relation to the cloud server so that the cloud server stores the association relation.
Under the condition that the cloud server acquires the resource configuration requirement information sent by the user through the user terminal, the cloud server can acquire the image file corresponding to the image type according to the image type in the resource configuration requirement information, and the acquired image file is sent to the bare metal server to be configured through the intelligent network card, so that the bare metal server installs an operating system corresponding to the image file after acquiring the image file.
After the bare metal server successfully installs the operating system, a notification message indicating that the bare metal server has successfully installed the operating system may be sent to the cloud server via the intelligent network card.
The cloud server may perform S402 after transmitting the acquired image file to the bare metal server to be configured via the intelligent network card; the cloud server may also perform S402 after acquiring a notification message indicating that the bare metal server has successfully installed the operating system.
And S402, the cloud server sends the network configuration request to the intelligent network card so as to trigger a controller pre-unloaded in the intelligent network card to distribute network configuration information for the bare metal server to be configured.
Because the association relation between the identification information of the intelligent network card and the identification information of the bare metal server is stored in the cloud server, the cloud server can determine the identification information of the intelligent network card corresponding to the bare metal server to be configured based on the association relation between the identification information of the intelligent network card and the identification information of the bare metal server, and accordingly network configuration information is sent to the intelligent network card according to the determined identification information of the intelligent network card. The network configuration request may include identification information of the bare metal server to be configured and network demand information. The network configuration request is used for triggering a controller in the intelligent network card to distribute network configuration information to the bare metal server according to the network demand information in the network configuration request, so that the bare metal server configures the virtual network based on the network configuration information.
S403, the intelligent network card receives the network configuration request, and a controller pre-unloaded in the intelligent network card distributes network configuration information for the bare metal server to be configured.
The controller pre-unloaded in the intelligent network card comprises: SDN controller or Ovs-agent. For example, the intelligent network card receives a network configuration request sent by the cloud server, starts an SDN controller or Ovs-agent, and distributes network configuration information for a bare metal server to be configured by the SDN controller or Ovs-agent. The network configuration information may include IP addresses, subnet masks, gateway addresses, DNS server addresses, and the like.
The SDN controller or Ovs-agent in the intelligent network card transmits the network configuration information to the virtual switch in the intelligent network card through the corresponding communication interface.
S404, the intelligent network card sends the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-unloaded in the intelligent network card.
And pre-unloading the virtual switch in the intelligent network card, acquiring network configuration information transmitted by the SDN controller or the Ovs-agent through a corresponding communication interface, and forwarding the acquired network configuration information to the bare metal server.
The specific implementation method of forwarding the network configuration information to the bare metal server by the intelligent network card based on the virtual switch is described in S206, which is not repeated here.
Wherein, before executing S404, the intelligent network card may further execute the following pre-configuration steps:
after the intelligent network card is successfully accessed to a bare metal server to be configured, a virtual network port is created; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
the intelligent network card acquires two IP addresses belonging to different network segments, and creates a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting data packets of a virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information. Here, the management network is used to manage or control the bare metal server. That is, control information related to the bare metal server is transmitted through the management network.
The implementation method of the pre-configuration step is referred to the related description in S205, which is not repeated here
S405, the bare metal server acquires the network configuration information and configures a virtual network according to the network configuration information.
S405 in this embodiment is the same as S207 in the previous embodiment, and the specific implementation method is described in reference to S207, which is not repeated here.
Optionally, in some embodiments, in order to uniformly manage the traffic of the virtual network, the virtual network configuration method of the bare metal server may further include:
s406, obtaining a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
The controller in the intelligent network card can configure the flow table according to the flow table configuration instruction triggered by the user, and the intelligent network card can also receive the flow table configured by the user. The user-triggered flow table configuration instruction and the user-configured flow table are both sent to the intelligent network card through the user terminal and the cloud server.
In this embodiment, the specific implementation method of controlling the network traffic of the virtual network by the virtual switch according to the flow table is described in S208, which is not repeated herein.
In this embodiment, after the cloud server acquires the network configuration request, the cloud server may trigger the controller pre-uninstalled in the intelligent network card to allocate network configuration information for the bare metal server, and the intelligent network card may send the network configuration information to the bare metal server based on the virtual switch, and trigger the bare metal server to configure the virtual network according to the network configuration information after the operating system is successfully installed. By the mode, the virtual switch is unloaded in the intelligent network card, so that the computing resources and the storage resources of the bare metal server can be saved, and the data processing efficiency of the bare metal server is improved; the SDN controller or Ovs-agent in the intelligent network card can distribute network configuration information for the bare metal server, the network configuration information is transmitted to the bare metal server through the virtual switch of the intelligent network card, the virtual network of the bare metal server can be automatically configured, a user does not need to manually configure the virtual network of the bare metal server by means of a physical switch, manual intervention can be reduced, and the influence of manual operation on the virtual network connectivity of the bare metal server is reduced.
Fig. 5 is a schematic flow chart of a virtual network configuration method of a bare metal server according to an embodiment of the present invention. In this embodiment, the execution subject of the virtual network configuration method of the bare metal server is an intelligent network card. The specific implementation manner of each step in this embodiment may refer to the relevant description of each step executed by the intelligent network card in the embodiment corresponding to fig. 2, which is not repeated herein.
Referring to fig. 5, the virtual network configuration method of the bare metal server includes the steps of:
s501, acquiring network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured by triggering the controller after the network configuration request is acquired; the network configuration request is for requesting configuration of a virtual network of the bare metal server.
S502, sending the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
Optionally, in some embodiments, before the network configuration information is acquired based on the virtual switch, the method may further include:
After the bare metal server is successfully accessed, creating a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
acquiring two Internet Protocol (IP) addresses belonging to different network segments, and creating a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
Optionally, in some embodiments, in order to uniformly control the traffic of the virtual network of the bare metal server, the virtual network configuration method of the bare metal server may further include: acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller. The specific implementation process is referred to the related description in S208, and will not be described herein.
Alternatively, in some embodiments, the controller may be pre-offloaded in the intelligent network card; the acquiring network configuration information in S501 includes: and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
For a specific implementation process of obtaining the network configuration information, please refer to the related descriptions in S402 to S403 in the corresponding embodiment of fig. 4, which are not described herein again.
In this embodiment, when the intelligent network card obtains the network configuration information allocated by the controller, the network configuration information may be sent to the bare metal server based on the virtual switch, so that the bare metal server configures the virtual network according to the network configuration information. Because the virtual network of the bare metal server can be automatically configured in the process of configuring the virtual network of the bare metal server, a user does not need to manually configure the virtual network of the bare metal server by means of a physical switch, manual intervention can be reduced, and the influence of manual operation on the connectivity of the virtual network of the bare metal server is reduced.
The virtual switch can uniformly control the flow of the virtual network of the bare metal server based on the flow table configured by the controller.
In order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides a virtual network configuration device of a bare metal server, which is disposed on an intelligent network card, as shown in fig. 6, where the virtual network configuration device of the bare metal server includes:
an acquiring unit 601, configured to acquire network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured by triggering the controller after the network configuration request is acquired; the network configuration request is used for requesting to configure a virtual network of the bare metal server; a transmitting unit 602, configured to transmit the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
In an embodiment, the acquisition unit 601 may further be configured to: acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
In an embodiment, the method may further include:
The first creating unit is used for creating a virtual network port after the bare metal server is successfully accessed; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
a second creating unit, configured to obtain two IP addresses belonging to different network segments, and create a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
In one embodiment, the controller is pre-offloaded in the intelligent network card; the acquisition unit 601 is configured to: and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
In practical application, each unit included in the virtual network configuration device of the bare metal server can be implemented by a processor in the virtual network configuration device of the bare metal server. Of course, the processor needs to execute the program stored in the memory to realize the functions of the program modules.
It should be noted that: in the virtual network configuration apparatus of a bare metal server provided in the foregoing embodiment, when configuring a virtual network of a bare metal, only the division of each program module is used for illustration, and in practical application, the processing allocation may be performed by different program modules according to needs, that is, the internal structure of the virtual network configuration apparatus of a bare metal server is divided into different program modules, so as to complete all or part of the processing described above. In addition, the virtual network configuration apparatus of the bare metal server provided in the foregoing embodiment and the virtual network configuration method embodiment of the bare metal server belong to the same concept, and detailed implementation processes of the virtual network configuration apparatus of the bare metal server are shown in the method embodiment, and are not repeated herein.
Based on the hardware implementation of the program modules, and in order to implement the method of the embodiment of the invention, the embodiment of the invention also provides an intelligent network card. Fig. 7 is a schematic diagram of a hardware composition structure of an intelligent network card according to an embodiment of the present invention, where, as shown in fig. 7, the intelligent network card includes:
a communication interface 1 capable of information interaction with other devices such as a switch, bare metal server, etc.;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other devices and is used for executing the virtual network configuration method of the bare metal server provided by one or more technical schemes when running the computer program. And the computer program is stored on the memory 3.
Of course, in practice, the various components of the intelligent network card are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. But for clarity of illustration the various buses are labeled as bus system 4 in fig. 7.
The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the intelligent network card. Examples of such data include: any computer program for operating on a smart network card.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, sync Link Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 3 described in the embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present invention may be applied to the processor 2 or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. The processor 2 described above may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the invention can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The process corresponding to the intelligent network card in each method of the embodiment of the present invention is implemented when the processor 2 executes the program, and for brevity, will not be described herein.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program executable by the processor 2 to perform the steps described in the foregoing embodiment corresponding to fig. 5, or to perform the steps described in the foregoing embodiment corresponding to fig. 4, performed by the smart network card. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing module, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
The methods disclosed in the method embodiments provided by the invention can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the invention can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the invention can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A virtual network configuration system of a bare metal server, comprising:
the cloud server is used for acquiring a network configuration request and triggering the controller to distribute network configuration information for the bare metal server to be configured; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
The intelligent network card is used for acquiring the network configuration information and transmitting the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-unloaded in the intelligent network card;
the bare metal server is used for acquiring the network configuration information, and after the operating system is successfully installed, the virtual network is configured according to the network configuration information.
2. The virtual network configuration system of claim 1, wherein the intelligent network card is further configured to: acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
3. The virtual network configuration system of claim 1 or 2, wherein the intelligent network card is further configured to:
after the bare metal server is successfully accessed, creating a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
acquiring two Internet Protocol (IP) addresses belonging to different network segments, and creating a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
4. The virtual network configuration system according to claim 1 or 2, wherein the controller is configured to: and acquiring a network configuration request sent by the cloud server, distributing the network configuration information to the bare metal server according to the network configuration request, and sending the network configuration information to the intelligent network card.
5. The virtual network configuration system of claim 1 or 2, wherein the controller is pre-offloaded in the intelligent network card; the intelligent network card is used for: and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
6. The virtual network configuration method of the bare metal server is characterized by being applied to an intelligent network card, and comprises the following steps:
acquiring network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured by triggering the controller after the network configuration request is acquired; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
transmitting the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
7. The virtual network configuration method of claim 6, wherein after the virtual switch-based sending the network configuration information to the bare metal server, further comprising:
acquiring a flow table, and controlling the network flow of the virtual network by the virtual switch according to the flow table; the flow table is configured by the controller based on the acquired flow table configuration instruction or received by the controller.
8. The virtual network configuration method according to claim 6 or 7, wherein before the acquiring the network configuration information, further comprising:
after the bare metal server is successfully accessed, creating a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
acquiring two Internet Protocol (IP) addresses belonging to different network segments, and creating a service network and a management network according to the two IP addresses belonging to different network segments; the service network characterizes a physical network carrying the virtual network and is used for transmitting a data packet of the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network characterizes a physical network carrying communications between the cloud server, the controller, and the bare metal server for transmitting the network configuration information.
9. The virtual network configuration method according to claim 6 or 7, wherein the controller is pre-offloaded in the intelligent network card;
wherein, the obtaining the network configuration information includes:
and acquiring a network configuration request sent by the cloud server, and determining the network configuration information by the controller according to the network configuration request.
10. A virtual network configuration apparatus of a bare metal server, comprising:
an acquisition unit configured to acquire network configuration information; the network configuration information is distributed by the cloud server for the bare metal server to be configured by triggering the controller after the network configuration request is acquired; the network configuration request is used for requesting to configure a virtual network of the bare metal server;
a transmitting unit configured to transmit the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-unloaded in the intelligent network card; the network configuration information is used for configuring a virtual network of the bare metal server.
11. An intelligent network card, comprising: a processor and a memory for storing a computer program capable of running on the processor,
Wherein the processor is adapted to perform the steps of the method of any of claims 6 to 9 when the computer program is run.
12. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 6 to 9.
CN202010757005.4A 2020-07-31 2020-07-31 Virtual network configuration method and system of bare metal server and intelligent network card Active CN114070723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010757005.4A CN114070723B (en) 2020-07-31 2020-07-31 Virtual network configuration method and system of bare metal server and intelligent network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010757005.4A CN114070723B (en) 2020-07-31 2020-07-31 Virtual network configuration method and system of bare metal server and intelligent network card

Publications (2)

Publication Number Publication Date
CN114070723A CN114070723A (en) 2022-02-18
CN114070723B true CN114070723B (en) 2023-11-03

Family

ID=80227449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010757005.4A Active CN114070723B (en) 2020-07-31 2020-07-31 Virtual network configuration method and system of bare metal server and intelligent network card

Country Status (1)

Country Link
CN (1) CN114070723B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546920B (en) * 2022-02-20 2024-02-20 中电云计算技术有限公司 Hot plug method for bare metal server data disc under Feiteng CPU architecture based on intelligent network card
CN114884810A (en) * 2022-03-25 2022-08-09 阿里云计算有限公司 Network data transmission method, access method and storage medium based on SDN
CN115134194A (en) * 2022-06-22 2022-09-30 北京百度网讯科技有限公司 Method, system, device and program product for implementing network virtualization
CN115189987A (en) * 2022-06-22 2022-10-14 北京百度网讯科技有限公司 Method, system, device and program product for implementing network virtualization
CN115509563B (en) * 2022-11-15 2023-02-28 济南浪潮数据技术有限公司 Mirror image file manufacturing method, device, equipment and medium
CN115720181A (en) * 2022-11-18 2023-02-28 济南浪潮数据技术有限公司 Control method and system of bare metal node, electronic device and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012160981A (en) * 2011-02-02 2012-08-23 Nec Corp Management server device, inter-virtual-machine network configuration system, and network configuration method for them
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN106803786A (en) * 2015-11-26 2017-06-06 中国移动通信集团公司 A kind of network element update method, system based on network function virtualization
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN109697142A (en) * 2017-10-20 2019-04-30 中移(苏州)软件技术有限公司 Method and device for detecting bare metal server in cloud computing environment
CN110532065A (en) * 2019-09-02 2019-12-03 广州市品高软件股份有限公司 A kind of dispositions method and device of bare metal server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10419243B2 (en) * 2016-09-09 2019-09-17 Johnson Controls Technology Company Smart gateway devices, systems and methods for providing communication between HVAC system networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012160981A (en) * 2011-02-02 2012-08-23 Nec Corp Management server device, inter-virtual-machine network configuration system, and network configuration method for them
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN106803786A (en) * 2015-11-26 2017-06-06 中国移动通信集团公司 A kind of network element update method, system based on network function virtualization
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
CN109697142A (en) * 2017-10-20 2019-04-30 中移(苏州)软件技术有限公司 Method and device for detecting bare metal server in cloud computing environment
CN109120494A (en) * 2018-08-28 2019-01-01 无锡华云数据技术服务有限公司 The method of physical machine is accessed in cloud computing system
CN110532065A (en) * 2019-09-02 2019-12-03 广州市品高软件股份有限公司 A kind of dispositions method and device of bare metal server

Also Published As

Publication number Publication date
CN114070723A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN110113441B (en) Computer equipment, system and method for realizing load balance
US10375015B2 (en) Methods and system for allocating an IP address for an instance in a network function virtualization (NFV) system
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US10541877B2 (en) Dynamic reservation protocol for 5G network slicing
EP3261300B1 (en) Method and device for establishing link between virtual network functions
US9847967B2 (en) DHCP proxy in a subscriber environment
US10091274B2 (en) Method, device, and system for controlling network device auto-provisioning
EP2866389B1 (en) Method and device thereof for automatically finding and configuring virtual network
CN106464534B (en) Sheet for provisioning and managing customer premises equipment devices
WO2019214560A1 (en) Dhcp packet processing method and device
JP5203346B2 (en) Apparatus and method for managing subscription requests for network interface components
US10594586B2 (en) Dialing test method, dialing test system, and computing node
US10361970B2 (en) Automated instantiation of wireless virtual private networks
US20140068703A1 (en) System and method providing policy based data center network automation
WO2020024413A1 (en) Method for controlling deployment of cloud computing platform, server, and storage medium
CA2753747C (en) Method for operating a node cluster system in a network and node cluster system
EP1737161A1 (en) Device and method for managing two types of devices
CN112688814B (en) Equipment access method, device, equipment and machine readable storage medium
US9432474B2 (en) Control method, control device, and processor in software defined network
EP3788772B1 (en) On-node dhcp implementation for virtual machines
JP4873960B2 (en) Method for facilitating application server functions and access nodes including application server functions
US10778467B2 (en) Method for providing virtual CPE service by using single internet line and network function virtualization cloud
JP6445408B2 (en) Communication system and setting method
US20060212560A1 (en) Systems and methods for denying rogue DHCP services

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
GR01 Patent grant
GR01 Patent grant