A method, device and equipment for determining configuration information
By obtaining the server's network card information and network topology information, and automatically determining the configuration information using the network card binding strategy, the problems of low configuration efficiency and high resource consumption in the cloud computing environment are solved, and efficient and automated equipment configuration is achieved.
Patent Information
- Application Number
- CN202010967780.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-15
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-09-15
AI Technical Summary
In a cloud computing environment, the configuration of servers and TOR switches needs to meet high availability and isolation requirements, resulting in low manual inspection and configuration efficiency and high resource consumption.
By obtaining the server's network card information and network topology information, using the network card binding strategy to determine the configuration information, and automatically configure the device to avoid manual inspection and connection.
Reduces configuration resource consumption, improves configuration efficiency, reduces manual errors, and realizes automated equipment configuration.
Smart Images

Figure CN114189443B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a method, apparatus and device for determining configuration information. Background Art
[0002] With the development of communication technology, in the process of automatic delivery of infrastructure as a service (IaaS) cloud products (private cloud, hybrid cloud, edge cloud, etc.), efficient delivery (evaluated from the two dimensions of "delivery time and delivery success rate") requires the server and the top of rack (TOR) switch to be connected and correctly configured, and the configuration of the server and the TOR switch needs to meet the requirements of high availability and isolation.
[0003] At present, in order to meet the requirements of high availability and isolation, each network card port of each server needs to be connected to a port of a TOR switch, and then a one-to-one connection is performed according to the design. In order to ensure that the wiring is correct, a one-to-one check is performed according to the design, and the server network card binding and virtual local area network (VLAN) configuration and TOR switch port configuration correspond one-to-one according to the design.
[0004] However, the configuration of the TOR switch port and the server network card binding must be designed to be consistent, and it depends on manual construction to check whether the connection between the server and the switch is correct. Due to the large-scale characteristics of cloud computing (many servers and switches), the actual delivery process often requires a complex process of connection, inspection, and correction to meet the design requirements, resulting in high resource consumption and low configuration efficiency. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus and device for determining configuration information, which are used to reduce configuration resource consumption and improve configuration efficiency.
[0006] A first aspect of an embodiment of the present application provides a method for determining configuration information, including: a network device obtains first network card information collected by a first device through a message collection module, the first network card information includes network card information corresponding to at least two network cards in the first device, and then the network device obtains connection relationships obtained by multiple second devices through the message collection module, thereby obtaining first network topology information; further, the network device determines the configuration information corresponding to the first device through a network card binding policy including at least two binding sub-policies based on the obtained first network card information and the first network topology information, the configuration information includes network card information corresponding to the network card that meets the sub-policies included in the network card binding policy, and network topology information corresponding to the switch, and the determined configuration information is used for binding configuration of the first device and the second device.
[0007] In this implementation, since the first network card information and the first network topology information have a one-to-one correspondence with the device, the devices can be configured through configuration information. There is no need to manually connect the devices one-to-one, nor is there any need to manually check whether the connection between the devices is correct. This can reduce configuration resource consumption and improve configuration efficiency.
[0008] In combination with the first aspect of the embodiment of the present application, in a first implementation of the first aspect of the embodiment of the present application, the network device needs to obtain a network card binding policy. Since the first network card information includes the number of network card ports included in the first device, and each network card includes at least two network card ports, all network card ports included in the first device can be numbered by the number of network card ports, thereby obtaining the corresponding first network card port number. Then, according to the first network card port number and the first network topology information, the configuration information corresponding to the first device is determined by the network card binding policy.
[0009] In this implementation, the network card port in the first device is numbered to obtain the first network card port number. Since the first network card port number corresponds to the network card port one-to-one, the corresponding network card port can be determined by the first network card port number, and then the configuration information is determined, which can reduce the amount of configuration data and calculation, thereby improving configuration efficiency.
[0010] In combination with the first implementation of the first aspect of the embodiment of the present application, in the second implementation of the first aspect of the embodiment of the present application, the first network topology information includes port configuration information and virtual LAN configuration information, and the network card binding policy includes a port binding sub-policy and a virtual LAN binding sub-policy. Since the first network card port number corresponds to the network card port one by one, the network device can determine the network card information corresponding to the network card port according to the first network card port number, select the first network card port number that satisfies the port binding sub-policy and the virtual LAN binding sub-policy according to the port configuration information and virtual LAN configuration information indicated by all the first network card port numbers, determine multiple second network card port numbers, and then determine the configuration information corresponding to the first device through the network card binding policy according to the second network card port number.
[0011] In this implementation, the network card information corresponding to the network card port is determined according to the first network card port number, and the first network card port number that satisfies the port binding sub-policy and the virtual LAN binding sub-policy is screened out and determined as the second network card port number, which can reduce the amount of configuration data and the amount of calculation and improve the efficiency of configuration. Secondly, further judging the port binding sub-policy and the virtual LAN binding sub-policy can improve the accuracy of the configuration information determination.
[0012] In combination with the second implementation of the first aspect of the embodiment of the present application, in the third implementation of the first aspect of the embodiment of the present application, the first network card information includes network card port bandwidth information, and the network card binding policy also includes a bandwidth binding sub-policy. Therefore, after the network device determines the second network card port number, it further groups the second network card port numbers that meet the bandwidth binding sub-policy according to the network card port bandwidth information indicated by all the second network card port numbers, determines multiple first network card port groups, and determines the configuration information corresponding to the first device through the network card binding policy according to at least two first network card port groups.
[0013] In this implementation, the second network card port number is further grouped according to the bandwidth binding sub-strategy, and the network card ports that meet different bandwidth binding sub-strategies are grouped into one group, which can process and judge data of different bandwidths respectively, thereby improving the configuration efficiency. Secondly, since the ports that meet different bandwidth binding sub-strategies are grouped and the configuration information is determined, the accuracy of the configuration information determination can be further improved.
[0014] In combination with the third implementation of the first aspect of the embodiment of the present application, in the fourth implementation of the first aspect of the embodiment of the present application, the network card binding policy also includes a network card port quantity binding sub-policy. Therefore, after the network device determines the first network card port group, the second network card port numbers included in the second network card port group are arranged and combined through the network card port quantity binding sub-policy, so as to determine the second network card port group, and the second network card port numbers in the second network card port group meet the network card port quantity binding sub-policy, and then according to at least two second network card port groups, the configuration information corresponding to the first device is determined through the network card binding policy.
[0015] In this implementation, the first network card port group is further arranged and combined according to the network card port quantity binding sub-strategy to determine multiple second network card port groups, and the second network card port numbers in the second network card port groups satisfy the network card port quantity binding sub-strategy. Therefore, based on the configuration information determined by the second network card port group, on the basis of satisfying the network card binding strategy, the accuracy of the configuration information determination can be further improved.
[0016] In combination with the fourth implementation of the first aspect of the embodiment of the present application, in the fifth implementation of the first aspect of the embodiment of the present application, the first network card information also includes network card high-speed serial computer expansion bus standard PCIE information, and the network card binding strategy also includes an affinity binding sub-strategy, and the affinity binding sub-strategy is that the PCIE information corresponding to each network card port is inconsistent. Therefore, after the network device determines the second network card port group, the group in which the PCIE information corresponding to each network card in the second network card port group is different can be determined as the third network card port group, and then according to the third network card port group, the configuration information corresponding to the first device is determined through the network card binding strategy.
[0017] In this implementation, since the PCIE information corresponding to each network card in the third network card port group is different, according to the configuration information determined by the third network card port group, when a network card port in the network card group fails or has problems, since the PCIE information is different, other network card ports can continue to provide services, thereby ensuring the service quality of the network card ports, thereby improving the practicality of the determined configuration information.
[0018] In combination with the fifth implementation of the first aspect of the embodiment of the present application, in the sixth implementation of the first aspect of the embodiment of the present application, the first network card information also includes network card connection status information, and the network card binding policy also includes a connectivity binding sub-policy, and the connectivity binding sub-policy is that the network card connection status information corresponding to each network card port is all in a connected state. Therefore, after the network device can determine the third network card port group, it can determine the group in which the network card connection status information corresponding to each network card port in the third network card port group is all in a connected state as the fourth network card port group, and then determine the configuration information corresponding to the first device through the network card binding policy according to the fourth network card port group.
[0019] In this implementation, since the network card connection status information corresponding to each network card in the fourth network card port group is in a connected state, the configuration information determined by the fourth network card port group can ensure successful configuration between the first device and the second device, thereby ensuring the network card port service requirements, thereby improving the practicality of the determined configuration information.
[0020] In combination with the sixth implementation of the first aspect of the embodiment of the present application, in the seventh implementation of the first aspect of the embodiment of the present application, the network card binding strategy also includes a combination quantity binding sub-strategy. Therefore, after the network device determines the fourth network card port group, the fourth network card port group that meets the combination quantity is selected from multiple fourth network card port groups through the combination quantity binding sub-strategy, and the first network card information and the first network topology information corresponding to the selected fourth network card port group are determined, thereby generating configuration information.
[0021] In this implementation, selecting the fourth network card port group that satisfies the combination quantity binding sub-strategy can further improve the accuracy of determining the configuration information.
[0022] In combination with any one of the first aspect to the seventh implementation method of the first aspect of the embodiments of the present application, in the eighth implementation method of the first aspect of the embodiments of the present application, when the first device is powered on, the first device can be booted to miniDiscoverOS through a preboot execute environment (PXE) to collect the first network card information of the first device, and then the network device obtains the first network card information collected by the first device through a message collection module.
[0023] In this implementation, it is specifically limited to obtain the first network card information of the first device through the pre-boot execution environment PXE, so as to improve the feasibility of the embodiment of the present application.
[0024] In combination with any one of the first aspect to the seventh implementation method of the first aspect of the embodiment of the present application, in the ninth implementation method of the first aspect of the embodiment of the present application, in miniDiscoverOS, the top-level model TOR switch to be configured obtains the connection relationship between the first device and multiple second devices according to the link layer discovery protocol LLDP, and then the network device obtains the connection relationship obtained by the multiple second devices through the message collection module, thereby obtaining the first network topology information.
[0025] In this implementation, it is specifically limited to obtain the first network topology information according to the link layer discovery protocol LLDP, so as to improve the feasibility of the embodiment of the present application.
[0026] In combination with any one of the first aspect to the seventh implementation method of the first aspect of the embodiment of the present application, in the tenth implementation method of the first aspect of the embodiment of the present application, after determining the configuration information corresponding to the first device through the network card binding policy based on the first network card information and the first network topology information, the configuration information is sent to the first device and multiple second devices. After the first device receives the configuration information, it connects to the second device according to the configuration information, and after the second device receives the configuration information, it can also connect to the first device according to the configuration information, thereby completing the network card binding and switch port configuration that meets the requirements.
[0027] In this implementation, after the configuration information is determined, the configuration information is sent to the first device and multiple second devices, so that the first device and the second device are bound and configured according to the configuration information, thereby improving the feasibility of the embodiment of the present application.
[0028] In combination with any one of the first aspect to the tenth implementation manner of the first aspect of the embodiments of the present application, in the eleventh implementation manner of the first aspect of the embodiments of the present application, the first network topology information also includes switch name information.
[0029] In this implementation, the information included in the first network topology information is specifically refined to improve the feasibility of the embodiment of the present application.
[0030] In combination with any one of the first aspect to the tenth implementation manner of the first aspect of the embodiments of the present application, in the twelfth implementation manner of the first aspect of the embodiments of the present application, the first network card information also includes network card message authentication code MAC information.
[0031] In this implementation, the information included in the first network card information is specifically refined to improve the feasibility of the embodiment of the present application.
[0032] In combination with any one of the first aspect to the tenth implementation manner of the first aspect of the embodiments of the present application, in the thirteenth implementation manner of the first aspect of the embodiments of the present application, since the first network card information and the first network topology information corresponding to the selected fourth network card port group are determined to generate configuration information, the configuration information has a corresponding relationship with the first network card information, and the configuration information has a corresponding relationship with the first network topology information.
[0033] In this implementation, since the configuration information corresponds to the first network card information and the configuration information corresponds to the first network topology information, the corresponding network card port and switch port can be determined according to the configuration information, thereby improving the accuracy of the configuration information.
[0034] A second aspect of an embodiment of the present application provides a configuration information determination device, the configuration information determination device comprising:
[0035] An acquisition module, configured to acquire first network card information of a first device, wherein the first network card information includes network card information corresponding to at least two network cards;
[0036] The acquisition module is further used to acquire first network topology information, wherein the first network topology information represents a connection relationship between the first device and N second devices, where N is an integer greater than or equal to 1;
[0037] A determination module is used to determine configuration information corresponding to the first device through a network card binding policy based on the first network card information and the first network topology information, wherein the network card binding policy includes at least two binding sub-policies, and the configuration information includes at least two configuration sub-information, each configuration sub-information has a corresponding relationship with the binding sub-policy, and the configuration information is used for binding configuration of the first device and the second device.
[0038] In combination with the second aspect of the embodiment of the present application, in a first implementation of the second aspect of the embodiment of the present application, a determining module is specifically used to obtain a network card binding policy;
[0039] Determine at least two first network card port numbers according to the first network card information, wherein each network card includes at least two network card ports, and the first network card port numbers correspond to the network card ports one by one;
[0040] According to the first network card port number and the first network topology information, configuration information corresponding to the first device is determined through the network card binding policy.
[0041] In combination with the first implementation of the second aspect of the embodiment of the present application, in the second implementation of the second aspect of the embodiment of the present application, the first network topology information includes port configuration information and virtual local area network configuration information;
[0042] The NIC binding policy includes the port binding sub-policy and the virtual LAN binding sub-policy;
[0043] A determination module is specifically used to determine at least two second network card port numbers according to the first network card port number, the port configuration information and the virtual local area network configuration information through the port binding sub-policy and the virtual local area network binding sub-policy, wherein the port configuration information corresponding to each second network card port number satisfies the port binding sub-policy, and the virtual local area network configuration information corresponding to each network card port number satisfies the virtual local area network binding sub-policy;
[0044] According to at least two second network card port numbers, configuration information corresponding to the first device is determined through a network card binding policy.
[0045] In combination with the second implementation of the second aspect of the embodiment of the present application, in a third implementation of the second aspect of the embodiment of the present application, the first network card information includes network card port bandwidth information;
[0046] The NIC binding policy also includes bandwidth binding sub-policy;
[0047] A determination module, specifically configured to determine at least two first network card port groups through a bandwidth binding sub-strategy according to at least two second network card port numbers and network card port bandwidth information, wherein each first network card port group includes at least two first network card ports, and the network card port bandwidth information corresponding to each first network card port group satisfies the bandwidth binding sub-strategy;
[0048] According to at least two first network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0049] In combination with the third implementation of the second aspect of the embodiment of the present application, in a fourth implementation of the second aspect of the embodiment of the present application, the network card binding strategy also includes a network card port quantity binding sub-strategy;
[0050] A determination module, specifically configured to determine at least two second network card port groups according to at least two first network card port groups through a network card port quantity binding sub-strategy, wherein each second network card port group includes at least two second network card ports, and each second network card port group has a corresponding relationship with a network card port quantity binding sub-strategy;
[0051] According to at least two second network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0052] In combination with the fourth implementation of the second aspect of the embodiment of the present application, in a fifth implementation of the second aspect of the embodiment of the present application, the first network card information further includes network card high-speed serial computer expansion bus standard PCIE information;
[0053] The network card binding strategy also includes an affinity binding sub-strategy, wherein the affinity binding sub-strategy is that the PCIE information corresponding to each network card port is inconsistent;
[0054] A determination module, specifically configured to determine at least two third network card port groups through an affinity binding sub-strategy according to at least two second network card port groups and PCIE information, wherein each third network card port group includes at least two third network card ports, and the PCIE information corresponding to each third network card port group satisfies the affinity binding sub-strategy;
[0055] According to at least two third network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0056] In combination with the fifth implementation of the second aspect of the embodiment of the present application, in a sixth implementation of the second aspect of the embodiment of the present application, the first network card information further includes network card connection status information;
[0057] The network card binding strategy also includes a connectivity binding sub-strategy, wherein the connectivity binding sub-strategy is that the network card connection state information corresponding to each network card port is in a connected state;
[0058] A determination module, specifically configured to determine at least two fourth network card port groups according to at least two third network card port groups through a connectivity binding sub-strategy, wherein each fourth network card port group includes at least two fourth network card ports, and the network card connection state information corresponding to each fourth network card port group satisfies the connectivity binding sub-strategy;
[0059] According to at least two fourth network card port groups, configuration information corresponding to the first device is determined through a network card binding policy.
[0060] In combination with the sixth implementation of the second aspect of the embodiment of the present application, in a seventh implementation of the second aspect of the embodiment of the present application, the network card binding strategy further includes a combination quantity binding sub-strategy;
[0061] The determination module is specifically used to determine the configuration information corresponding to the first device according to at least two fourth network card port groups by combining the quantity binding sub-strategies, wherein the configuration information has a corresponding relationship with the at least two fourth network card ports.
[0062] In combination with any one of the second aspect to the seventh implementation method of the second aspect of the embodiments of the present application, in the eighth implementation method of the second aspect of the embodiments of the present application, the acquisition module is specifically used to obtain the first network card information of the first device through the pre-boot execution environment PXE.
[0063] In combination with any one of the second aspect to the seventh implementation manner of the second aspect of the embodiments of the present application, in the ninth implementation manner of the second aspect of the embodiments of the present application, the acquisition module is specifically used to obtain the first network topology information according to the link layer discovery protocol LLDP.
[0064] In combination with any one of the second aspect to the seventh implementation manner of the second aspect of the embodiments of the present application, in a tenth implementation manner of the second aspect of the embodiments of the present application, the configuration information determination device further includes a sending module,
[0065] The sending module is used to send the configuration information to the first device and N second devices after determining the configuration information corresponding to the first device through the network card binding strategy according to the first network card information and the first network topology information.
[0066] In combination with any one of the second aspect to the tenth implementation manner of the second aspect of the embodiments of the present application, in the eleventh implementation manner of the second aspect of the embodiments of the present application, the first network topology information also includes switch name information.
[0067] In combination with any one of the second aspect to the tenth implementation manner of the second aspect of the embodiments of the present application, in the twelfth implementation manner of the second aspect of the embodiments of the present application, the first network card information also includes network card message authentication code MAC information.
[0068] In combination with any one of the second aspect to the tenth implementation manner of the second aspect of the embodiments of the present application, in the thirteenth implementation manner of the second aspect of the embodiments of the present application, the configuration information has a corresponding relationship with the first network card information, and the configuration information has a corresponding relationship with the first network topology information.
[0069] In a third aspect of an embodiment of the present application, a server is provided, which may be a configuration information determination device in the above-mentioned method design, or a chip set in the configuration information determination device. The server includes: a processor, coupled to a memory, and can be used to execute instructions in the memory to implement the method executed by the configuration information determination device in the above-mentioned first aspect and any possible implementation thereof. Optionally, the server also includes a memory. Optionally, the server also includes a communication interface, and the processor is coupled to the communication interface.
[0070] When the server is configured as the configuration information determining device, the communication interface may be a transceiver, or an input / output interface.
[0071] When the server is a chip provided in the configuration information determining device, the communication interface may be an input / output interface.
[0072] Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.
[0073] According to a fourth aspect of an embodiment of the present application, a program is provided, which, when executed by a processor, is used to execute any method in the first aspect and any possible implementation manner thereof.
[0074] According to a fifth aspect of an embodiment of the present application, a computer program product (or computer program) storing one or more computers is provided. When the computer program product is executed by the processor, the processor executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.
[0075] In the sixth aspect of the embodiments of the present application, a chip is provided, which includes at least one processor for supporting a terminal device to implement the functions involved in the above-mentioned first aspect or any possible implementation of the first aspect. In one possible design, the chip system may also include a memory, at least one processor is communicatively connected to at least one memory, and at least one memory stores instructions for storing necessary program instructions and data for the terminal device and the server. Optionally, the chip system also includes an interface circuit, which provides program instructions and / or data for the at least one processor.
[0076] In a seventh aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, wherein the program enables a terminal device to execute any method in the above-mentioned first aspect and any possible implementation manner thereof.
[0077] It should be noted that the beneficial effects brought about by the implementation methods of the second to seventh aspects of the present application can be understood by referring to the implementation method of the first aspect, and therefore they are not repeated.
[0078] Through the technical solution provided by the present application, the configuration information that satisfies the network card binding policy can be determined through the acquired first network card information and the first network topology information. Since the first network card information and the first network topology information have a one-to-one correspondence with the device, the devices can be configured through the configuration information. There is no need to manually connect the devices one-to-one, nor is there any need to manually check whether the connection between the devices is correct. This can reduce configuration resource consumption and improve configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 A schematic diagram of the system architecture of a configuration information determination system according to an embodiment of the present application;
[0080] Figure 2 A schematic diagram of an embodiment of a method for determining configuration information in this embodiment of the present application;
[0081] Figure 3A schematic diagram of another embodiment of the method for determining configuration information in this embodiment of the present application;
[0082] Figure 4 This is a schematic diagram of an embodiment of a configuration information determination device in this embodiment of the present application. DETAILED DESCRIPTION
[0083] The embodiments of the present application provide a method, apparatus and device for determining configuration information, which are used to reduce configuration resource consumption and improve configuration efficiency.
[0084] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0085] It should be understood that the names of all nodes and messages in this application are merely names set for the convenience of description in this application. The names in the actual network may be different. This application should not be understood to limit the names of various nodes and messages. On the contrary, any name that has the same or similar function as the node or message used in this application is regarded as the method of this application or an equivalent replacement, and is within the scope of protection of this application, and will not be repeated below.
[0086] In order to better understand the method, apparatus and device for determining configuration information disclosed in the embodiments of the present application, the system architecture of the configuration information determination system used in the embodiments of the present invention is described below. Figure 1 , Figure 1 This is a schematic diagram of the system architecture of the configuration information determination system of the embodiment of the present application. As shown in the figure, the configuration information determination system includes a configuration information determination system server, a configuration information determination system switch agent, a configuration information determination system server agent, and a configuration information determination system dedicated operating system (operating system, OS). Specifically, the configuration information determination system dedicated operating system described in the embodiment of the present application is a server hardware information collection memory operating system (miniDiscoverOS).
[0087] Specifically, the configuration information determination system server runs in the terminal device or network device used in the delivery of infrastructure as a service (IaaS) products, and installs a general operating system, such as Windows or Linux. The configuration information determination system server includes four modules, namely, an information collection module, a binding calculation module, a server configuration module, and a switch configuration module, wherein the information collection module is used to connect and communicate with the configuration information determination system switch agent and the configuration information determination system server agent to collect all server information and switch information, while the binding calculation module is used to calculate the network card binding members, the server configuration module is used to perform server configuration, and the switch configuration module is used to perform switch configuration. Secondly, miniDiscoverOS runs in the server to be configured, and the configuration information determination system server agent is deployed in miniDiscoverOS, so that miniDiscoverOS can run the configuration information determination system server agent. The configuration information determination system server agent is used to collect information of the connected server to be configured, including but not limited to network card and switch connection. The configuration information determination system switch agent is used to configure the switch port to be configured, and specifically runs in the operating system corresponding to the switch.
[0088] Secondly, some terms or concepts involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0089] 1. Top of rack (TOR) switch.
[0090] A TOR switch is a switch that can be directly connected to a server.
[0091] 2. Network card binding (Nic Bonding).
[0092] NIC binding is a way to achieve high reliability and high availability of server Layer 2 network communication. It requires aggregating and binding multiple network cards to form a logical network port, and configuring the Layer 3 network protocol (Internet protocol, IP) on this logical network port. As long as more than or equal to half of the members of the aggregated network port can be connected, the communication between the server and the switch can be guaranteed to proceed normally.
[0093] 3. Virtual local area network (VLAN).
[0094] VLAN mainly uses this technology to solve the isolation problem in the cloud computing network environment, and the switch port needs to be configured with different VLAN identity documents (IDs) according to the communication isolation requirements.
[0095] 4. Link Layer Discovery Protocol (LLDP).
[0096] The Link Layer Discovery Protocol is a link layer protocol for computer network devices, used for automatic discovery of network neighbors.
[0097] Furthermore, IaaS products have two requirements for server and TOR switch configuration, namely high availability and isolation. High availability is the key link of cloud computing network communication, which is server configuration. To ensure the high availability of the entire communication chain, the server's network card configuration must be highly available. Usually, at least two network cards are used in active-standby or multi-active mode for binding configuration. Secondly, isolation is the need for physical isolation of different business flows in a multi-tenant virtualization environment. Multiple groups of network cards form different bindings, each binding is configured with a different VLAN, and the switch port connected to the server network card is configured accordingly, such as the trunk VLAN ID and the port VLAN ID, etc., to ensure that the configurations at both ends match each other for normal communication.
[0098] In order to meet the requirements of IaaS products for server and TOR switch configuration, this embodiment provides a method for determining configuration information. Figure 2 , Figure 2 This is a schematic diagram of an embodiment of a method for determining configuration information in this embodiment of the present application. As shown in the figure, the method for determining configuration information includes the following steps.
[0099] S101. Obtain first network card information of a first device.
[0100] In this embodiment, the first device is a server to be configured, so when the server to be configured is powered on, the server to be configured can be booted to miniDiscoverOS through PXE to collect the first network card information of the server to be configured, and then the network device obtains the first network card information collected by the server to be configured through the message collection module. Specifically, the first network card information includes the number of network card ports included in the server to be configured, the network card port bandwidth information corresponding to each network card, and the network card high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) information corresponding to each network card. It should be understood that in actual applications, the first network card information may also include but is not limited to the network card connection (link) status information corresponding to each network card and the network card message authentication code (MAC) information corresponding to each network card, which is not specifically limited here.
[0101] S102: Obtain first network topology information.
[0102] In this embodiment, the first network topology information represents the connection relationship between the first device and the second device. In this embodiment, the second device is a switch to be configured. Therefore, in miniDiscoverOS, the TOR switch to be configured obtains the connection relationship between the server to be configured and the switch to be configured according to LLDP, and then the network device obtains the connection relationship obtained by multiple switches to be configured through the message collection module, for example, the connection relationship obtained by the switch A to be configured and the switch B to be configured is obtained, thereby obtaining the first network topology information. Specifically, the first network topology information includes the port configuration information corresponding to the switch to be configured and the virtual local area network (port vlan ID) configuration information corresponding to the switch to be configured.
[0103] Optionally, in actual applications, the first network topology information may also include but is not limited to switch name information, and each switch to be configured corresponds to corresponding information.
[0104] S103: Obtain a network card binding policy.
[0105] In this embodiment, the network device obtains the network card binding policy, wherein the network card binding policy may include a combination quantity binding sub-policy, a network card port quantity binding sub-policy and a port binding sub-policy. It should be understood that in actual applications, the network card binding policy may also include but is not limited to a virtual LAN binding sub-policy, a bandwidth binding sub-policy, an affinity binding sub-policy and a connectivity binding sub-policy.
[0106] For example, the following network card binding policy obtained by the network device is used as an example for description:
[0107] bond0|AB|2*1GB-AntiAffnt|vlan 96|trunk 96
[0108] bond1|AB|2*10GB-AntiAffnt|vlan 97|trunk 97
[0109] Among them, bond0 and bond1 are used to indicate the two sets of active and standby configuration names created. Since two sets of active and standby binding names are created, the combination quantity binding sub-policy is indicated to be 2, that is, two sets of active and standby configuration combinations need to be configured. The specific number of combinations and the corresponding specific active and standby binding names can be flexibly determined according to needs in actual applications.
[0110] Secondly, 2 is used to indicate the network card port quantity binding sub-strategy, that is, each group needs to be configured with two member network cards. The specific number of network card ports should be flexibly determined according to needs in actual applications.
[0111] Again, 1GB (1000MB) and 10GB (10000MB) are used to indicate the bandwidth binding sub-policy corresponding to each configuration combination, that is, for the configuration combination with the binding name bond0, each member network card therein should meet the bandwidth requirement of 1GB, and for the configuration combination with the binding name bond1, each member network card therein should meet the bandwidth requirement of 10GB.
[0112] Furthermore, AntiAffnt is used to indicate the affinity binding sub-strategy. In this embodiment, the affinity binding sub-strategy is anti-affinity. Anti-affinity indicates that the two member network cards of each group of binding belong to different network cards, that is, the PCIE information corresponding to each network card is different.
[0113] Furthermore, vlan 96 and vlan 97 are used to indicate the virtual LAN binding sub-policy, that is, for the configuration combination with the binding name bond0, the virtual LAN identifier corresponding to each member network card should be 96, and for the configuration combination with the binding name bond1, the virtual LAN identifier corresponding to each member network card should be 97.
[0114] Furthermore, trunk 96 and trunk 97 are used to indicate the port binding sub-policy, that is, for the configuration combination with the binding name bond0, the configured switch port is configured as trunk 96, and for the configuration combination with the binding name bond1, the configured switch port is configured as trunk 97.
[0115] Finally, in the embodiment of the present application, the network card binding policy includes a connectivity binding sub-policy, and the connectivity binding sub-policy is that the network card connection status information corresponding to each network card port is in a connected state.
[0116] It should be understood that the above examples are only used to understand the present solution. In actual applications, the specific network card binding strategy needs to be determined according to the actual binding requirements.
[0117] S104: Determine configuration information corresponding to the first device through a network card binding policy according to the first network card information and the first network topology information.
[0118] In this embodiment, the network device determines the configuration information corresponding to the first device through the network card binding policy of step S103 according to the acquired first network card information and the first network topology information. The configuration information includes the network card information corresponding to the network card that meets the sub-policies included in the network card binding policy, and the network topology information corresponding to the switch.
[0119] S105. Send configuration information to the first device and multiple second devices.
[0120] In this embodiment, the first network device and the plurality of second network devices send configuration information. Specifically, the network device transmits the configuration information to the OS installation stage. During the OS installation process, the server to be configured can determine the configurable network card according to the network card information in the configuration information, and the configurable switch port according to the network topology information in the configuration information, thereby configuring and connecting the network card and the switch port. Similarly, the switch to be configured can determine the configurable network card according to the configuration information, and configure the switch port using the switch management channel, thereby completing the network card binding and switch port configuration.
[0121] Specifically, the network card binding policy in this embodiment includes a combination quantity binding sub-policy, a network card port quantity binding sub-policy, a port binding sub-policy, a virtual local area network binding sub-policy, a bandwidth binding sub-policy, an affinity binding sub-policy, and a connectivity binding sub-policy. The following describes in detail how to determine the configuration information corresponding to the first device through the network card binding policy. Figure 3 , Figure 3 This is a schematic diagram of another embodiment of the method for determining configuration information in this embodiment of the present application. As shown in the figure, the method for determining configuration information includes the following steps.
[0122] S201. Obtain first network card information of a first device.
[0123] In this embodiment, the network device obtains the first network card information of the first device in a similar manner to step S101, which will not be described in detail herein.
[0124] S202: Obtain first network topology information.
[0125] In this embodiment, the network device obtains the first network topology information in a similar manner to step S102, which will not be described in detail herein.
[0126] S203: Obtain a network card binding policy.
[0127] In this embodiment, the network device obtains the network card binding policy in a similar manner to step S103, which will not be described in detail herein.
[0128] 204. Determine at least two first network card port numbers according to the first network card information.
[0129] In this embodiment, since the first network card information includes the number of network card ports included in the server to be configured, and each network card includes at least two network card ports, all network card ports included in the server to be configured can be numbered according to the number of network card ports to obtain the corresponding first network card port number.
[0130] For ease of understanding, the number of network card ports included in the server to be configured is 16 as an example for explanation. Then the 16 network card ports can be numbered, for example, from 0 to 15, that is, the first network card port corresponding to network card port A is numbered 0, the first network card port corresponding to network card port B is numbered 1, and so on. Then the first network card port corresponding to the 16th network card port (for example, network card port P) is numbered 15. It should be understood that the above examples are only used to understand this solution. In actual applications, the first network card port numbers corresponding to the 16 network card ports can be 1 to 16, or 1, 3, 5, 7 to 31, etc., as long as the first network card port number corresponds to the network card port one-to-one, and no specific limitation is made here. It should be understood that the above examples are only used to understand this solution. In actual applications, the specific first network card port number needs to be flexibly determined according to actual conditions.
[0131] 205. Determine at least two second network card port numbers according to the first network card port number, port configuration information, and virtual local area network configuration information through a port binding sub-policy and a virtual local area network binding sub-policy.
[0132] In this embodiment, after the first network card port number is determined through step S204, since the first network card port number corresponds to the network card port one-to-one, the network card information corresponding to the network card port can be determined according to the first network card port number, and according to the port configuration information indicated by all first network card port numbers and the virtual LAN configuration information, the first network card port number that satisfies the port binding sub-strategy and satisfies the virtual LAN binding sub-strategy is selected to determine multiple second network card port numbers.
[0133] For ease of understanding, the first network card port numbering of step 204 and the network card binding policy of step S103 are introduced as an example. In the network card binding policy of step S103, the virtual LAN binding sub-policy indicates that the virtual LAN identifier corresponding to the network card needs to be any one of 96 or 97, and the port binding sub-policy indicates that the configured switch port needs to be configured as any one of trunk 96 or trunk 97. If the information corresponding to numbers 5 to 15 of the 16 first network card port numbers satisfies the port binding sub-policy and satisfies the virtual LAN binding sub-policy, then numbers 5 to 15 can be determined as the second network card port numbers. It should be understood that the aforementioned examples are only used to understand this solution. In actual applications, the specific second network card port number needs to be flexibly determined according to actual conditions.
[0134] 206. Determine at least two first network card port groups through a bandwidth binding sub-strategy according to at least two second network card port numbers and network card port bandwidth information.
[0135] In this embodiment, after the second network card port numbers are determined in step S205, the second network card port numbers that meet the bandwidth binding sub-strategy are further grouped according to the network card port bandwidth information indicated by all the second network card port numbers to determine multiple first network card port groups.
[0136] For ease of understanding, the second network card port numbering of step 205 and the network card binding policy of step S103 are introduced as an example. In the network card binding policy of step S103, the bandwidth binding sub-policy indicates that the network card should meet the bandwidth requirements of either 1GB or 10GB. If the bandwidth corresponding to the network card is not 1GB or 10GB, it will not be grouped. Then the network cards that meet the 1GB bandwidth requirement are grouped into one group, and the network cards that meet the 10GB bandwidth requirement are grouped into one group. If the network card corresponding to the second network card port number 9 does not meet the 1GB bandwidth requirement or the 10GB bandwidth requirement among the 11 first network card port numbers, it will not be grouped. Secondly, if the network card corresponding to the 1GB bandwidth requirement is 5 to 8, then a first network card port group A includes the second network card port numbers 5 to 8, and the network card corresponding to the 10GB bandwidth requirement is 10 to 15, then another first network card port group B includes the second network card port numbers 10 to 15. It should be understood that the above examples are only used to understand the present solution. In actual applications, the specific first network card port group needs to be flexibly determined according to actual conditions.
[0137] 207. Determine at least two second network card port groups according to the at least two first network card port groups by using the network card port quantity binding sub-strategy.
[0138] In this embodiment, after the first network card port group is determined through step S206, the second network card port numbers included in the second network card port group are arranged and combined through the network card port quantity binding sub-strategy to determine the second network card port group, and the second network card port numbers in the second network card port group satisfy the network card port quantity binding sub-strategy.
[0139] For ease of understanding, the first network card port group illustrated in step 206 and the network card binding policy illustrated in step S103 are used as an example for introduction. In the network card binding policy of step S103, the network card port quantity binding sub-policy indicates that each group needs to be configured with two member network cards, that is, for the first network card port group A, the second network card port numbers 5 to 8 need to be arranged and combined into a group of 2 second network card port numbers, and the possible repeated second network card port numbers are removed, so that the second network card port group corresponding to the first network card port group A can be obtained, specifically (5, 6), (5, 7), (5, 8), (6, 7), (6, 8) and (7, 8), a total of 6 second network card port groups. Similarly, for the first network card port group B, it is necessary to arrange and combine the second network card port numbers 10 to 15 into a group of 2 second network card port numbers, and remove the possible repeated second network card port numbers, so that the second network card port group corresponding to the first network card port group B can be obtained, specifically (10, 11), (10, 12), (10, 13), (10, 14), (10, 15), (11, 12), (11, 13), (11, 14), (11, 15), (12, 13), (12, 14), (12, 15), (13, 14), (13, 15), and (14, 15), a total of 15 second network card port groups. In this way, a total of 21 second network card port groups corresponding to the first network card port group A and the first network card port group B can be obtained.
[0140] It should be understood that the above examples are only used to understand the present solution. In actual applications, the specific second network card port group needs to be flexibly determined according to actual conditions.
[0141] 208. Determine at least two third network card port groups through affinity binding sub-strategies according to the at least two second network card port groups and PCIE information.
[0142] In this embodiment, after the second network card port group is determined in step S207, the second network card port group is determined by the affinity binding sub-strategy. Specifically, the PCIE information corresponding to the network cards in the third network card port group satisfies the affinity binding sub-strategy, that is, the PCIE information corresponding to each network card in the third network card port group is different.
[0143] For ease of understanding, the second network card port group illustrated in step 207 and the affinity binding sub-strategy illustrated in step S103 are introduced as an example. In the network card binding strategy of step S103, the affinity binding sub-strategy indicates that the PCIE information corresponding to each network card is different. If, among the six second network card port groups corresponding to the first network card port group A determined in step 207, there are four second network card port groups whose two network cards have different PCIE information, and the four second network card port groups are (5, 6), (5, 7), (5, 8) and (6, 7), then it can be determined that these four second network card ports are the third network card port group. If among the 15 second network card port groups corresponding to the first network card port group B determined in step 207, the PCIE information corresponding to the two network cards in 12 second network card port groups are different, and the 12 second network card port groups are (10, 11), (10, 13), (10, 14), (11, 12), (11, 13), (11, 14), (12, 13), (12, 14), (12, 15), (13, 14), (13, 15), and (14, 15), then it can be determined that these 12 second network card ports are the third network card port group.
[0144] It should be understood that the above examples are only used to understand the present solution. In actual applications, the specific third network card port group needs to be flexibly determined according to actual conditions.
[0145] 209. Determine at least two fourth network card port groups according to the at least two third network card port groups through the connectivity binding sub-strategy.
[0146] In this embodiment, after the third network card port group is determined in step S208, the fourth network card port group is determined by the connectivity binding sub-strategy. Specifically, the network card connection status information corresponding to each network card port in the fourth network card port group is in the connected state.
[0147] For ease of understanding, the third network card port group illustrated in step 208 and the connectivity binding sub-strategy illustrated in step S103 are used as an example for introduction. In the network card binding strategy of step S103, the connectivity binding sub-strategy indicates that the network card connection status information corresponding to each network card port is in a connected state. If, among the four third network card port groups corresponding to the first network card port group A determined in step 208, the network card connection status information corresponding to the two network card ports in two third network card port groups is in a connected state, and the two third network card port groups are (5, 6) and (6, 7), then it can be determined that these two third network card ports are the fourth network card port group. If among the 12 third network card port groups corresponding to the first network card port group B determined in step 208, the network card connection status information corresponding to two network card ports in 6 third network card port groups are both in the connected state, and the 6 third network card port groups are (10, 13), (11, 12), (11, 14), (12, 14), (13, 15) and (14, 15), then it can be determined that these 6 third network card ports are the fourth network card port group.
[0148] It should be understood that the above examples are only used to understand the present solution. In actual applications, the specific fourth network card port group needs to be flexibly determined according to actual conditions.
[0149] 210. Determine configuration information corresponding to the first device by combining quantity binding sub-strategies according to at least two fourth network card port groups.
[0150] In this embodiment, after the fourth network card port group is determined through step S209, a fourth network card port group that meets the combination quantity is selected from multiple fourth network card port groups through the combination quantity binding sub-strategy, and the first network card information and the first network topology information corresponding to the selected fourth network card port group are determined, thereby generating configuration information. Therefore, the configuration information has a corresponding relationship with the first network card information, and the configuration information has a corresponding relationship with the first network topology information.
[0151] For ease of understanding, the fourth network card port group illustrated in step 209 and the combination quantity binding sub-policy illustrated in step S103 are used as an example for introduction. In the network card binding policy of step S103, the combination quantity binding sub-policy indicates that two sets of primary and standby configuration combinations need to be configured. That is, a set of network card port groups corresponding to 1GB width and a set of network card port groups corresponding to 10GB width are required. Therefore, a fourth network card port group can be selected from the two fourth network card port groups corresponding to 1GB as the configuration combination of bond0, and a fourth network card port group can be selected from the two fourth network card port groups corresponding to 10GB as the configuration combination of bond1.
[0152] If the selected fourth network card port groups are (5, 6) and (13, 15), respectively, then configuration information can be generated according to the first network card information and the first network topology information corresponding to (5, 6) and (13, 15). Please refer to Table 1, which is an example of the determined configuration information.
[0153] Table 1
[0154]
[0155] 211. Send configuration information to a first device and multiple second devices.
[0156] In this embodiment, the network device sends the configuration information to the first device and the plurality of second devices in a similar manner to step S105, which will not be described in detail herein.
[0157] For ease of understanding, the configuration information shown in Table 1 is used as an example for explanation. After the first device receives the configuration information, for the bandwidth requirement of 1GB, it can be connected to the switch through port 1 of network card No. 0 and port 1 of network card No. 1. Specifically, the port with MAC address "bc:62:0e:20:77:9f" is bound to switch port TOR0-1, and the port with MAC address "bc:62:0e:20:77:a0" is bound to switch port TOR1-1, thereby completing the network card binding and switch port configuration corresponding to the bandwidth requirement of 1GB. Secondly, for the bandwidth requirement of 10GB, you can connect to the switch through port No. 2 of network card No. 0 and port No. 2 of network card No. 1. Specifically, the port with MAC address "bc:62:0e:20:77:a2" is connected to switch port TOR0-2, and the port with MAC address "bc:62:0e:09:5a:af" is connected to switch port TOR1-2, thereby completing the network card binding and switch port configuration corresponding to the bandwidth requirement of 10GB.
[0158] It should be understood that since the network card binding policy may include but is not limited to sub-policies such as combination quantity binding sub-policy, network card port quantity binding sub-policy, port binding sub-policy, virtual LAN binding sub-policy, bandwidth binding sub-policy, affinity binding sub-policy and connectivity binding sub-policy, the aforementioned embodiment only introduces a method of determining whether the first network card information and the first network topology information meet different sub-policies in turn, thereby determining the configuration information. In actual applications, different sub-policies can also be used to make judgments in other orders. The judgment order of the sub-policies should not be understood as a limitation of the embodiments of the present application.
[0159] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the configuration information determination device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0160] The embodiment of the present application can divide the functional modules of the configuration information determination device based on the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0161] The following is a detailed description of the configuration information determination device in this application. Figure 4 , Figure 4 This is a schematic diagram of an embodiment of a configuration information determination device in an embodiment of the present application. As shown in the figure, the configuration information determination device 400 includes:
[0162] An acquisition module 401 is used to acquire first network card information of a first device, wherein the first network card information includes network card information corresponding to at least two network cards;
[0163] The acquisition module 401 is further used to acquire first network topology information, wherein the first network topology information represents a connection relationship between the first device and N second devices, where N is an integer greater than or equal to 1;
[0164] Determination module 402 is used to determine the configuration information corresponding to the first device through the network card binding policy based on the first network card information and the first network topology information, wherein the network card binding policy includes at least two binding sub-policies, and the configuration information includes at least two configuration sub-information, each configuration sub-information has a corresponding relationship with the binding sub-policy, and the configuration information is used for binding configuration of the first device and the second device.
[0165] In some optional embodiments of the present application,
[0166] Determine module 402, specifically used to obtain network card binding policy;
[0167] Determine at least two first network card port numbers according to the first network card information, wherein each network card includes at least two network card ports, and the first network card port numbers correspond to the network card ports one by one;
[0168] According to the first network card port number and the first network topology information, configuration information corresponding to the first device is determined through the network card binding policy.
[0169] In some optional embodiments of the present application, the first network topology information includes port configuration information and virtual local area network configuration information;
[0170] The NIC binding policy includes the port binding sub-policy and the virtual LAN binding sub-policy;
[0171] The determination module 402 is specifically used to determine at least two second network card port numbers according to the first network card port number, the port configuration information and the virtual local area network configuration information through the port binding sub-policy and the virtual local area network binding sub-policy, wherein the port configuration information corresponding to each second network card port number satisfies the port binding sub-policy, and the virtual local area network configuration information corresponding to each network card port number satisfies the virtual local area network binding sub-policy;
[0172] According to at least two second network card port numbers, configuration information corresponding to the first device is determined through a network card binding policy.
[0173] In some optional embodiments of the present application, the first network card information includes network card port bandwidth information;
[0174] The NIC binding policy also includes bandwidth binding sub-policy;
[0175] The determination module 402 is specifically configured to determine at least two first network card port groups through a bandwidth binding sub-strategy according to at least two second network card port numbers and the network card port bandwidth information, wherein each first network card port group includes at least two first network card ports, and the network card port bandwidth information corresponding to each first network card port group satisfies the bandwidth binding sub-strategy;
[0176] According to at least two first network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0177] In some optional embodiments of the present application, the network card binding policy further includes a network card port quantity binding sub-policy;
[0178] The determination module 402 is specifically configured to determine at least two second network card port groups according to the at least two first network card port groups through the network card port quantity binding sub-strategy, wherein each second network card port group includes at least two second network card ports, and each second network card port group has a corresponding relationship with the network card port quantity binding sub-strategy;
[0179] According to at least two second network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0180] In some optional embodiments of the present application, the first network card information further includes network card high-speed serial computer expansion bus standard PCIE information;
[0181] The network card binding strategy also includes an affinity binding sub-strategy, wherein the affinity binding sub-strategy is that the PCIE information corresponding to each network card port is inconsistent;
[0182] The determination module 402 is specifically configured to determine at least two third network card port groups through an affinity binding sub-strategy according to the at least two second network card port groups and the PCIE information, wherein each third network card port group includes at least two third network card ports, and the PCIE information corresponding to each third network card port group satisfies the affinity binding sub-strategy;
[0183] According to at least two third network card port groups, configuration information corresponding to the first device is determined through a network card binding strategy.
[0184] In some optional embodiments of the present application, the first network card information further includes network card connection status information;
[0185] The network card binding strategy also includes a connectivity binding sub-strategy, wherein the connectivity binding sub-strategy is that the network card connection state information corresponding to each network card port is in a connected state;
[0186] The determination module 402 is specifically configured to determine at least two fourth network card port groups according to the at least two third network card port groups through the connectivity binding sub-strategy, wherein each fourth network card port group includes at least two fourth network card ports, and the network card connection state information corresponding to each fourth network card port group satisfies the connectivity binding sub-strategy;
[0187] According to at least two fourth network card port groups, configuration information corresponding to the first device is determined through a network card binding policy.
[0188] In some optional embodiments of the present application, the network card binding policy further includes a combination quantity binding sub-policy;
[0189] The determination module 402 is specifically configured to determine configuration information corresponding to the first device according to at least two fourth network card port groups by combining quantity binding sub-strategies, wherein the configuration information has a corresponding relationship with the at least two fourth network card ports.
[0190] In some optional embodiments of the present application,
[0191] The acquisition module 401 is specifically configured to acquire the first network card information of the first device through the pre-boot execution environment PXE.
[0192] In some optional embodiments of the present application,
[0193] The acquisition module 401 is specifically configured to acquire first network topology information according to the Link Layer Discovery Protocol LLDP.
[0194] In some optional embodiments of the present application, the configuration information determining device 400 further includes a sending module 403.
[0195] The sending module 403 is used to send the configuration information to the first device and N second devices after determining the configuration information corresponding to the first device through the network card binding policy according to the first network card information and the first network topology information.
[0196] In some optional embodiments of the present application, the first network topology information also includes switch name information.
[0197] In some optional embodiments of the present application, the first network card information also includes network card message authentication code MAC information.
[0198] In some optional embodiments of the present application, the configuration information has a corresponding relationship with the first network card information, and the configuration information has a corresponding relationship with the first network topology information.
[0199] The configuration information determination device in the embodiment of the present application may be a network device, or a chip used in the network device, or other combined devices, components, etc. that can realize the functions of the above-mentioned network device. When the communication device is a network device, the acquisition module and the sending module may be a transceiver, which may include an antenna and a radio frequency circuit, etc., and the determination module may be a processor, such as a baseband chip, etc. When the communication device is a component having the functions of the above-mentioned network device, the acquisition module and the sending module may be a radio frequency unit, and the determination module may be a processor. When the communication device is a chip system, the acquisition module may be the input port of the chip system, the sending module may be the output interface of the chip system, and the determination module may be the processor of the chip system, such as a central processing unit (CPU).
[0200] It should be understood that Figures 2 to 4 The examples are only for the convenience of those skilled in the art to understand the embodiments of the present application, and are not intended to limit the embodiments of the present application to the specific scenarios illustrated. Figures 2 to 4 It is obvious that various equivalent modifications or changes can be made, and such modifications or changes also fall within the scope of the embodiments of the present application.
[0201] It should also be understood that the various schemes of the embodiments of the present application can be used in reasonable combination, and the explanations or descriptions of the various terms appearing in the embodiments can be mutually referenced or explained in the various embodiments, without limitation.
[0202] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0203] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0204] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0205] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0206] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0207] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
[0208] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0209] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0210] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining configuration information, characterized in that: include: Acquire first network card information of a first device, wherein the first network card information includes network card information corresponding to at least two network cards, wherein each network card includes at least two network card ports; Acquire first network topology information, wherein the first network topology information represents a connection relationship between the first device and N second devices, where N is an integer greater than or equal to 1; According to the first network card information and the first network topology information, the configuration information corresponding to the first device is determined through the network card binding policy, wherein the network card binding policy includes at least two binding sub-policies, the configuration information includes at least two configuration sub-information, each configuration sub-information has a corresponding relationship with the binding sub-policy, the configuration information is used to perform binding configuration between the first device and the second device, the network card binding policy is used to determine at least two network card port groups, each of the network card port groups includes at least two network card ports, the first network card information and the first topology information corresponding to the network card ports in each of the network card port groups meet the network card binding policy, and the configuration information is obtained according to the first network card information and the first topology information corresponding to the at least two network card port groups.
2. The method according to claim 1, characterized in that The determining, according to the first network card information and the first network topology information, configuration information corresponding to the first device through a network card binding policy includes: Obtain the network card binding policy; Determine at least two first network card port numbers according to the first network card information, wherein the first network card port numbers correspond to the network card ports one by one; According to the first network card port number and the first network topology information, configuration information corresponding to the first device is determined through the network card binding policy.
3. The method according to claim 2, characterized in that The first network topology information includes port configuration information and virtual local area network configuration information; The network card binding strategy includes a port binding sub-strategy and a virtual local area network binding sub-strategy; The determining, according to the first network card port number and the first network topology information, the configuration information corresponding to the first device through the network card binding policy includes: According to the first network card port number, the port configuration information and the virtual local area network configuration information, at least two second network card port numbers are determined through the port binding sub-strategy and the virtual local area network binding sub-strategy, wherein the port configuration information corresponding to each second network card port number satisfies the port binding sub-strategy, and the virtual local area network configuration information corresponding to each network card port number satisfies the virtual local area network binding sub-strategy; According to the at least two second network card port numbers, configuration information corresponding to the first device is determined through the network card binding policy.
4. The method according to claim 3, characterized in that The first network card information includes network card port bandwidth information; The network card binding strategy also includes a bandwidth binding sub-strategy; The determining, according to the at least two second network card port numbers, the configuration information corresponding to the first device through the network card binding policy includes: According to the at least two second network card port numbers and the network card port bandwidth information, at least two first network card port groups are determined through the bandwidth binding sub-strategy, wherein each first network card port group includes at least two first network card ports, and the network card port bandwidth information corresponding to each first network card port group satisfies the bandwidth binding sub-strategy; According to the at least two first network card port groups, configuration information corresponding to the first device is determined through the network card binding policy.
5. The method according to claim 4, characterized in that The network card binding strategy also includes a network card port quantity binding sub-strategy; The determining, according to the at least two first network card port groups, the configuration information corresponding to the first device through the network card binding policy includes: According to the at least two first network card port groups, at least two second network card port groups are determined by the network card port quantity binding sub-strategy, wherein each second network card port group includes at least two second network card ports, and each second network card port group has a corresponding relationship with the network card port quantity binding sub-strategy; According to the at least two second network card port groups, configuration information corresponding to the first device is determined through the network card binding policy.
6. The method according to claim 5, characterized in that The first network card information also includes network card high-speed serial computer expansion bus standard PCIE information; The network card binding strategy also includes an affinity binding sub-strategy, wherein the affinity binding sub-strategy is that the PCIE information corresponding to each network card port is inconsistent; The determining, according to the at least two second network card port groups, the configuration information corresponding to the first device through the network card binding policy includes: Determine at least two third network card port groups according to the at least two second network card port groups and the PCIE information through the affinity binding sub-strategy, wherein each third network card port group includes at least two third network card ports, and the PCIE information corresponding to each third network card port group satisfies the affinity binding sub-strategy; According to the at least two third network card port groups, configuration information corresponding to the first device is determined through the network card binding policy.
7. The method according to claim 6, characterized in that The first network card information also includes network card connection status information; The network card binding strategy also includes a connectivity binding sub-strategy, wherein the connectivity binding sub-strategy is that the network card connection status information corresponding to each network card port is in a connected state; The determining, according to the at least two third network card port groups, the configuration information corresponding to the first device through the network card binding policy includes: According to the at least two third network card port groups, at least two fourth network card port groups are determined through the connectivity binding sub-strategy, wherein each fourth network card port group includes at least two fourth network card ports, and the network card connection state information corresponding to each fourth network card port group satisfies the connectivity binding sub-strategy; The configuration information corresponding to the first device is determined according to the at least two fourth network card port groups through the network card binding policy.
8. The method according to claim 7, characterized in that The network card binding strategy also includes a combination quantity binding sub-strategy; The determining, according to the at least two fourth network card port groups, configuration information corresponding to the first device through the network card binding policy includes: According to the at least two fourth network card port groups, configuration information corresponding to the first device is determined through the combined quantity binding sub-strategy, wherein the configuration information has a corresponding relationship with the at least two fourth network card ports.
9. The method according to any one of claims 1 to 8, characterized in that: The obtaining the first network card information of the first device includes: The first network card information of the first device is obtained through a pre-boot execution environment PXE.
10. A configuration information determination device, characterized in that: include: An acquisition module, configured to acquire first network card information of a first device, wherein the first network card information includes network card information corresponding to at least two network cards, wherein each network card includes at least two network card ports; The acquisition module is further used to acquire first network topology information, wherein the first network topology information represents a connection relationship between the first device and N second devices, where N is an integer greater than or equal to 1; A determination module is used to determine the configuration information corresponding to the first device through a network card binding policy according to the first network card information and the first network topology information, wherein the network card binding policy includes at least two binding sub-policies, the configuration information includes at least two configuration sub-information, each configuration sub-information has a corresponding relationship with the binding sub-policy, the configuration information is used to perform binding configuration between the first device and the second device, the network card binding policy is used to determine at least two network card port groups, each of the network card port groups includes at least two network card ports, the first network card information and the first topology information corresponding to the network card ports in each of the network card port groups satisfy the network card binding policy, and the configuration information is obtained according to the first network card information and the first topology information corresponding to the at least two network card port groups.
11. A server, characterized in that: include: Processor, memory; The processor is connected to the memory; The processor executes the code in the memory to perform the method according to any one of claims 1 to 9.
12. A computer-readable storage medium comprising instructions, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method for realizing network virtualization by utilizing binding and VLANs (Virtual Local Area Networks)
CN103873338A
In-band management interface with user space datapath
US20190020501A1