Flow control method and device for server network port

By detecting the service type and data transmission level of the multi-server network interface and assigning appropriate data transmission parameters, the problem of low traffic control efficiency of the multi-server network interface is solved, and more reasonable data transmission resource allocation and improved traffic control efficiency are achieved. .

CN118740754BActive Publication Date: 2024-11-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411210897.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-29
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In the prior art, the network interfaces of multiple servers lack effective regulation in data traffic transmission, resulting in some network interfaces being overly busy while other interfaces being idle, the overall resources are not reasonably allocated, and the traffic control efficiency is low.

Method used

By detecting the service type of server services processed by the processors corresponding to each network interface in a plurality of network interfaces, and detecting the data transmission level according to the service type, matching data transmission parameters are allocated to control the data transmission traffic of the network interface.

Benefits of technology

The reasonable allocation of data transmission capabilities of multiple server network interfaces is achieved, the efficiency of traffic control is improved, and the problem of low traffic control efficiency is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740754B_ABST
    Figure CN118740754B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for controlling the flow of a server network port, which is applied to a network adapter, the network adapter is used to connect a multi-way server, the multi-way server is a server with multiple processors, the network adapter provides multiple network interfaces for the multi-way server, and the multiple network interfaces correspond to multiple processors one by one. The method includes: detecting the service type of the server service processed by the processor corresponding to each network interface in the multiple network interfaces, and obtaining the network interface and service type with a corresponding relationship; detecting the data transmission level of each network interface in the multiple network interfaces according to the network interface and service type with a corresponding relationship; and allocating data transmission parameters matching the corresponding data transmission level to each network interface in the multiple network interfaces. Through the present application, the problem of low flow control efficiency of the server network interface is solved, thereby achieving the effect of improving the flow control efficiency of the server network interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and in particular, to a flow control method and device for a server network port. Background Art

[0002] A network adapter is a hardware device used by a server to connect to a network. For a multi-way server including multiple processors, each of the multiple network adapters needs to be inserted into the corresponding processor slot to provide a network interface for the corresponding processor. However, this method of using network adapters cannot regulate the data flow transmission capacity of multiple network interfaces on a multi-way server through the network adapters. The data transmission capacity of the above multiple network interfaces is the same. When different network interfaces are set to transmit data of different servers, some network interfaces may be overly busy while other network interfaces are idle at the same time. The overall network interface resources are not reasonably allocated, and the flow control efficiency of the server network interface is low. Summary of the invention

[0003] The embodiments of the present application provide a method and device for flow control of a server network port, so as to at least solve the problem of low flow control efficiency of a server network interface in the related art.

[0004] According to an embodiment of the present application, a method for controlling the flow of a server network port is provided, which is applied to a network adapter device, wherein the network adapter device is used to connect a multi-way server, wherein the multi-way server is a server having multiple processors, and the network adapter device provides multiple network interfaces for the multi-way server, wherein the multiple network interfaces correspond to the multiple processors one by one, and the method comprises:

[0005] Detecting a service type of a server service processed by a processor corresponding to each of the plurality of network interfaces, and obtaining a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate a data volume of server data to be transmitted by the network interface under the corresponding server service;

[0006] Detecting a data transmission level of each of the plurality of network interfaces according to the network interfaces and service types having a corresponding relationship, wherein the data transmission level is used to indicate a demand of the data transmission capacity of the network interface for server data to be transmitted by the network interface under the corresponding server service;

[0007] A data transmission parameter matching the corresponding data transmission level is allocated to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

[0008] In an exemplary embodiment, allocating a data transmission parameter matching the corresponding data transmission level to each of the plurality of network interfaces includes:

[0009] According to the proportional relationship between the first data flow of the first network interface belonging to the first data transmission level in the first time period before the current moment and the second data flow of the second network interface belonging to the second data transmission level in the first time period, and the total data transmission parameter corresponding to the network adapter device, the first total parameter is allocated to the first data transmission level and the second total parameter is allocated to the second data transmission level, wherein the multiple network interfaces include one or more of the first network interfaces and one or more of the second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold, the second data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is greater than the target demand threshold, the first data flow is the total amount of server data correspondingly transmitted by the first network interface in the first time period, the second data flow is the total amount of server data correspondingly transmitted by the second network interface in the first time period, and the total data transmission parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-channel server;

[0010] The first overall parameter is assigned to one or more of the first network interfaces, and the second overall parameter is assigned to one or more of the second network interfaces.

[0011] In an exemplary embodiment, the allocating a first total parameter to the first data transmission level and allocating a second total parameter to the second data transmission level according to a proportional relationship between a first data flow of a first network interface belonging to a first data transmission level in a first time period before a current moment and a second data flow of a second network interface belonging to a second data transmission level in the first time period, and a total data transmission parameter corresponding to the network adapter device, includes:

[0012] Extracting the sum of the data flows of the first network interface belonging to the first data transmission level in the first time period from the historical data flows recorded by the network adapter device to obtain the first data flow, and extracting the sum of the data flows of the second network interface belonging to the second data transmission level in the first time period from the historical data flows to obtain the second data flow;

[0013] Calculating a first ratio between the first data flow and the second data flow;

[0014] Dividing the data transmission total parameter according to the first ratio to obtain the first total parameter and the second total parameter;

[0015] The first overall parameter is assigned to the first data transmission class and the second overall parameter is assigned to the second data transmission class.

[0016] In an exemplary embodiment, allocating a data transmission parameter matching the corresponding data transmission level to each of the plurality of network interfaces includes:

[0017] Allocating preset total parameters to a first network interface belonging to a first data transmission class, wherein the plurality of network interfaces include one or more of the first network interfaces;

[0018] The data transmission parameter is allocated to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period before the current moment and the remaining total parameter, wherein the multiple network interfaces also include multiple second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target demand threshold, the third data flow is the amount of server data transmitted by the corresponding second network interface in the second time period, and the remaining total parameter is the difference between the corresponding data transmission total parameter of the network adapter device and the preset total parameter, and the data transmission total parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-way server.

[0019] In an exemplary embodiment, allocating the data transmission parameter to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period before the current moment and the remaining total parameter includes:

[0020] Extracting data flows corresponding to the second network interfaces belonging to the second data transmission level in the second time period from historical data flows recorded by the network adapter device, and obtaining the second network interfaces and the third data flows having a corresponding relationship;

[0021] Calculating a second ratio between the third data flows according to the second network interface and the third data flows that have a corresponding relationship;

[0022] Dividing the remaining total parameters according to the second ratio to obtain the second network interface and the data transmission parameter having a corresponding relationship;

[0023] The data transmission parameter is allocated to the corresponding second network interface.

[0024] In an exemplary embodiment, detecting the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes:

[0025] Extracting data flows corresponding to each network interface in a third time period before the current moment from the historical data flows recorded by the network adapter device, and obtaining the network interface and fourth data flows having a corresponding relationship, wherein the fourth data flows are the amount of server data correspondingly transmitted by a corresponding network interface among the plurality of network interfaces in the third time period;

[0026] Convert each of the fourth data flows into a unit data flow per unit time, to obtain the network interface and the unit data flow having a corresponding relationship;

[0027] In a case where the unit data flow is less than or equal to the data volume threshold, determining that the service type of the corresponding network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold;

[0028] When the unit data flow is greater than the data volume threshold, the service type of the corresponding network interface is determined to be a service service type, wherein the service service type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0029] In an exemplary embodiment, detecting the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes:

[0030] Taking each of the network interfaces as a target network interface, detecting a target data type of the server data transmitted by the target network interface;

[0031] In a case where the target data type belongs to a data type generated in a management service processed by the multi-way server, determining that the service type of the server service processed by the processor corresponding to the target network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to a target demand threshold;

[0032] In the case that the target data type belongs to the data type generated in the service business processed by the multi-way server, the business type of the server business processed by the processor corresponding to the target network interface is determined to be a service business type, wherein the service business type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server business has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0033] According to another embodiment of the present application, a server system is provided, comprising: a network adapter device and a multi-way server, wherein the multi-way server is a server having multiple processors, the network adapter device provides multiple network interfaces for the multi-way server, and the multiple network interfaces correspond one-to-one to the multiple processors;

[0034] The multi-way server is used to process corresponding server services through the multiple processors;

[0035] The network adapter device is used to detect the service type of the server service processed by the processor corresponding to each network interface among the multiple network interfaces, and obtain a network interface and service type with a corresponding relationship, wherein the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service; detect the data transmission level of each network interface among the multiple network interfaces according to the network interface and service type with a corresponding relationship, wherein the data transmission level is used to indicate the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface; allocate data transmission parameters matching the corresponding data transmission level to each network interface among the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission flow of the network interface.

[0036] In an exemplary embodiment, a plurality of multi-host network cards are deployed in the network adapter device, and the network adapter device is further configured to aggregate a plurality of network interfaces respectively provided by the plurality of multi-host network cards into a plurality of logical network interfaces corresponding one-to-one to the plurality of processors.

[0037] In an exemplary embodiment, the multiple multi-host network cards include a first multi-host network card and a second multi-host network card, the multiple processors include a first processor and a second processor, the first multi-host network card provides a first physical network interface for the first processor and a second physical network interface for the second processor, the second multi-host network card provides a third physical network interface for the first processor and a fourth physical network interface for the second processor, wherein the first logical network interface includes the first physical network interface and the third physical network interface, the second logical network interface includes the second physical network interface and the fourth physical network interface, the first logical network interface and the first processor have a corresponding relationship, the second logical network interface and the second processor have a corresponding relationship, and the multiple logical network interfaces include the first logical network interface and the second logical network interface;

[0038] The first multi-host network card is also used to: configure the physical address of the first physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the second physical network interface as the second physical address corresponding to the second processor; the second multi-host network card is also used to: configure the physical address of the third physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface as the second physical address corresponding to the second processor.

[0039] In an exemplary embodiment, the plurality of multi-host network cards include a third multi-host network card and a fourth multi-host network card, the plurality of processors include a third processor, a fourth processor, a fifth processor and a sixth processor, the third multi-host network card provides a fifth physical network interface for the third processor, provides a sixth physical network interface for the fourth processor, provides a seventh physical network interface for the fifth processor, and provides an eighth physical network interface for the sixth processor, the fourth multi-host network card provides a ninth physical network interface for the third processor, provides a tenth physical network interface for the fourth processor, provides an eleventh physical network interface for the fifth processor, and provides a twelfth physical network interface for the sixth processor, wherein the third logical network interface includes the fifth physical network interface. the fourth logical network interface includes the sixth physical network interface and the tenth physical network interface, the fifth logical network interface includes the seventh physical network interface and the eleventh physical network interface, the sixth logical network interface includes the eighth physical network interface and the twelfth physical network interface, the third logical network interface and the third processor have a corresponding relationship, the fourth logical network interface and the fourth processor have a corresponding relationship, the fifth logical network interface and the fifth processor have a corresponding relationship, the sixth logical network interface and the sixth processor have a corresponding relationship, and the plurality of logical network interfaces include the fourth logical network interface, the fifth logical network interface, the sixth logical network interface and the seventh logical network interface;

[0040] The third multi-host network card is further used to: determine the physical address of the fifth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the sixth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the seventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the eighth physical network interface as the sixth physical address corresponding to the sixth processor;

[0041] The fourth multi-host network card is also used to: determine the physical address of the ninth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the tenth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the eleventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the twelfth physical network interface as the sixth physical address corresponding to the sixth processor.

[0042] According to another embodiment of the present application, a flow control device for a server network port is provided, which is applied to a network adapter device, wherein the network adapter device is used to connect a multi-way server, wherein the multi-way server is a server having multiple processors, and the network adapter device provides multiple network interfaces for the multi-way server, wherein the multiple network interfaces correspond to the multiple processors one by one, and the device comprises:

[0043] A first detection module is used to detect the service type of the server service processed by the processor corresponding to each network interface among the multiple network interfaces, and obtain a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service;

[0044] a second detection module, configured to detect a data transmission level of each of the plurality of network interfaces according to the corresponding network interfaces and service types, wherein the data transmission level is used to indicate a demand of the network interface for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service;

[0045] The allocation module is used to allocate a data transmission parameter matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

[0046] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0047] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0048] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0049] Through the present application, since a multi-way server with multiple processors is provided for connecting to the multi-way server, the above-mentioned multiple network interfaces correspond one-to-one to the multiple processors, the business type of the server business processed by the processor corresponding to each network interface in the multiple network interfaces is detected through the above-mentioned network adapter device, and the business type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server business. The data transmission level of each network interface in the multiple network interfaces is used to indicate the demand of the data transmission capacity of the network interface for the server data to be transmitted by the network interface under the corresponding server business according to the network interfaces and business types with corresponding relationships, and then the corresponding data transmission level is allocated to each network interface in the multiple network interfaces. The data transmission parameters for controlling the data transmission flow of the network interface matched according to the transmission level, that is, the data transmission parameters allocated to each network interface for controlling the data transmission flow of the network interface are matched with the requirements for the data transmission capacity of the network interface for indicating the server data to be transmitted by the network interface under the corresponding server service. The data transmission flow of each network interface can be controlled to meet the requirements for the network data transmission capacity of the server data to be transmitted by each network interface, so as to achieve reasonable allocation of the network data transmission capabilities of multiple server network interfaces and reasonable control of the data transmission flow of the server network interfaces. Therefore, the problem of low flow control efficiency of the server network interface can be solved, thereby achieving the effect of improving the flow control efficiency of the server network interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a hardware structure block diagram of a server device of a method for controlling flow of a server network port according to an embodiment of the present application;

[0051] Figure 2 is a flow chart of a method for controlling flow of a server network port according to an embodiment of the present application;

[0052] Figure 3 Schematic diagram of a flow control method for two server network ports according to an embodiment of the present application Figure 1 ;

[0053] Figure 4 Schematic diagram of a flow control method for a four-way server network port according to an embodiment of the present application Figure 1 ;

[0054] Figure 5 Schematic diagram of a flow control method for two server network ports according to an embodiment of the present application Figure 2 ;

[0055] Figure 6 Schematic diagram of a flow control method for a four-way server network port according to an embodiment of the present application Figure 2 ;

[0056] Figure 7 It is a structural block diagram of a flow control device for a server network port according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0059] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a method for controlling the flow of a server network port in an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0060] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the flow control method of the server network port in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0061] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0062] In this embodiment, a method for controlling the flow of a server network port is provided, which is applied to a network adapter device, wherein the network adapter device is used to connect a multi-way server, wherein the multi-way server is a server having multiple processors, and the network adapter device provides multiple network interfaces for the multi-way server, wherein the multiple network interfaces correspond to the multiple processors one by one. Figure 2 is a flow chart of a method for controlling the flow of a server network port according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0063] Step S202, detecting a service type of a server service processed by a processor corresponding to each of the plurality of network interfaces, and obtaining a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate a data volume of server data to be transmitted by the network interface under the corresponding server service;

[0064] Step S204, detecting a data transmission level of each of the plurality of network interfaces according to the corresponding network interfaces and service types, wherein the data transmission level is used to indicate a demand of the network interface for the data transmission capacity of the server data to be transmitted by the network interface under the corresponding server service;

[0065] Step S206: Allocate a data transmission parameter that matches the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

[0066] Through the above steps, since a multi-way server having multiple processors is provided for connecting to the multi-way server, the above-mentioned multiple network interfaces correspond to the multiple processors one by one, and the service type of the server service processed by the processor corresponding to each network interface in the multiple network interfaces is detected through the above-mentioned network adapter device, and the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service. The data transmission level of each network interface in the multiple network interfaces is used to indicate the demand of the data transmission capacity of the network interface for the server data to be transmitted by the network interface under the corresponding server service, and then the corresponding network interface is allocated to each network interface in the multiple network interfaces. The data transmission parameters for controlling the data transmission flow of the network interface matched with the data transmission level, that is, the data transmission parameters allocated to each network interface for controlling the data transmission flow of the network interface are matched with the requirements for the data transmission capacity of the network interface for indicating the server data to be transmitted by the network interface under the corresponding server service. The data transmission flow of each network interface can be controlled to meet the requirements for the network data transmission capacity of the server data to be transmitted by each network interface, so as to achieve reasonable allocation of the network data transmission capacity of multiple server network interfaces and reasonable control of the data transmission flow of the server network interface. Therefore, the problem of low flow control efficiency of the server network interface can be solved, thereby achieving the effect of improving the flow control efficiency of the server network interface.

[0067] Optionally, in an embodiment of the present application, the network adapter device includes a multi-host network card, which is a network interface card based on multiple host interfaces, and can split a network interface into multiple physical interfaces, thereby improving network performance and reliability. The multi-host network card realizes direct connection from multiple hosts to a single network controller (such as a switch), realizes direct data access, reduces latency and overcomes performance bottlenecks, thereby maximizing the efficiency of data processing and data transmission. The multi-host network card allows flexible and heterogeneous data center design, with direct access to data while reducing costs and operating expenses.

[0068] Optionally, in an embodiment of the present application, a multi-way server is a server having multiple processors, and the multiple processors in the multi-way server can be configured to process different server services. For example, the four processors in a four-way server can be configured to process management services, process normal business 1, process normal business 2, and process normal business 3, respectively.

[0069] In the embodiment provided in step S202, the business types of the server business processed by the processor include but are not limited to management business types and service business types. The management business type is used to indicate that the amount of server data to be transmitted by the network interface under the corresponding server business is relatively small, and the service business type is used to indicate that the amount of server data to be transmitted by the network interface under the corresponding server business is relatively large.

[0070] In the embodiment provided in step S204, the data transmission level includes but is not limited to a first data transmission level and a second data transmission level, the first data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a relatively small demand for the data transmission capacity of the network interface, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a relatively large demand for the data transmission capacity of the network interface.

[0071] Optionally, in an embodiment of the present application, detecting the data transmission level of each of the multiple network interfaces according to the network interfaces and service types having a corresponding relationship includes but is not limited to determining the data transmission level of the target network interface as a first data transmission level when it is detected that the service type of the target network interface is a management service type, wherein the management service type corresponds to the first data transmission level; and determining the data transmission level of the target network interface as a second data transmission level when it is detected that the service type of the target network interface is a service service type, wherein the service service type corresponds to the second data transmission level.

[0072] Optionally, in an embodiment of the present application, detecting the data transmission level of each of the multiple network interfaces according to the network interfaces and service types having a corresponding relationship includes but is not limited to detecting the service type change parameter corresponding to each of the multiple network interfaces in the multiple flow control time periods before the current moment, wherein the service type change parameter is used to indicate the number of times the service type corresponding to each of the multiple network interfaces in the multiple flow control time periods changes; when the service type change parameter is greater than or equal to the change parameter threshold, determining the data transmission level of the target network interface as the fourth data transmission level, wherein the change parameter threshold has a corresponding relationship with the number of flow control time periods in which the service type change parameter is detected; when the service type change parameter is less than the change parameter threshold, detecting the service type change parameter in the most flow control time periods before the current moment. The target service type corresponding to each of the multiple network interfaces detected later; when the target service type of the target network interface among the multiple network interfaces is detected to be the management service type, the data transmission level of the target network interface is determined to be the third data transmission level, wherein the management service type corresponds to the third data transmission level; when the target service type of the target network interface is detected to be the service service type, the data transmission level of the target network interface is determined to be the fifth data transmission level, wherein the service service type corresponds to the fifth data transmission level, the demand for data transmission capacity indicated by the third data transmission level is lower than the demand for data transmission capacity indicated by the fourth data transmission level, and the demand for data transmission capacity indicated by the fourth data transmission level is lower than the demand for data transmission capacity indicated by the fifth data transmission level. Through the above steps, the erroneous judgment of the data transmission level of the network interface caused by inaccurate service type detection is avoided, so as to further avoid the occurrence of the situation where unreasonable data transmission parameters are allocated to each network interface.

[0073] In the embodiment provided in step S206, the data transmission parameter includes but is not limited to a percentage of the data transmission capacity that the network adapter device can provide, or a value of the data transmission capacity that the network adapter device can provide. For example, the data transmission parameter can be a percentage of the total bandwidth of the network adapter device (e.g., 50%), or can be a bandwidth value.

[0074] As an optional implementation manner, allocating a data transmission parameter matching the corresponding data transmission level to each of the multiple network interfaces includes:

[0075] According to the proportional relationship between the first data flow of the first network interface belonging to the first data transmission level in the first time period before the current moment and the second data flow of the second network interface belonging to the second data transmission level in the first time period, and the total data transmission parameter corresponding to the network adapter device, the first total parameter is allocated to the first data transmission level and the second total parameter is allocated to the second data transmission level, wherein the multiple network interfaces include one or more of the first network interfaces and one or more of the second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold, the second data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is greater than the target demand threshold, the first data flow is the total amount of server data correspondingly transmitted by the first network interface in the first time period, the second data flow is the total amount of server data correspondingly transmitted by the second network interface in the first time period, and the total data transmission parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-channel server;

[0076] The first overall parameter is assigned to one or more of the first network interfaces, and the second overall parameter is assigned to one or more of the second network interfaces.

[0077] Optionally, in an embodiment of the present application, the target demand threshold includes but is not limited to being continuously adjusted according to multiple network port traffic regulation processes.

[0078] Optionally, in an embodiment of the present application, when there are multiple first network interfaces, allocating the first total parameter to one or more of the first network interfaces includes but is not limited to evenly distributing the first total parameter to multiple first network interfaces or allocating the first total parameter to multiple first network interfaces according to the data traffic size of the multiple first network interfaces within the first time period; when there are multiple second network interfaces, allocating the second total parameter to one or more of the second network interfaces, evenly distributing the second total parameter to multiple second network interfaces or allocating the second total parameter to multiple second network interfaces according to the data traffic size of the multiple second network interfaces within the first time period.

[0079] As an optional implementation manner, allocating a first total parameter to the first data transmission level and allocating a second total parameter to the second data transmission level according to a proportional relationship between a first data flow of a first network interface belonging to a first data transmission level in a first time period before a current moment and a second data flow of a second network interface belonging to a second data transmission level in the first time period, and a total data transmission parameter corresponding to the network adapter device, includes:

[0080] Extracting the sum of the data flows of the first network interface belonging to the first data transmission level in the first time period from the historical data flows recorded by the network adapter device to obtain the first data flow, and extracting the sum of the data flows of the second network interface belonging to the second data transmission level in the first time period from the historical data flows to obtain the second data flow;

[0081] Calculating a first ratio between the first data flow and the second data flow;

[0082] Dividing the data transmission total parameter according to the first ratio to obtain the first total parameter and the second total parameter;

[0083] The first overall parameter is assigned to the first data transmission class and the second overall parameter is assigned to the second data transmission class.

[0084] Through the above steps, data transmission parameters are allocated to the first data transmission level and the second data transmission level according to the first ratio of the first data flow and the second data flow. When allocating data transmission parameters, the data flow performance of the corresponding data transmission level in the first time period is taken into consideration, so that the allocated data transmission parameters match its data flow requirements, thereby improving the rationality of data transmission resource allocation.

[0085] As an optional implementation manner, allocating a data transmission parameter matching the corresponding data transmission level to each of the multiple network interfaces includes:

[0086] Allocating preset total parameters to a first network interface belonging to a first data transmission class, wherein the plurality of network interfaces include one or more of the first network interfaces;

[0087] The data transmission parameter is allocated to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period before the current moment and the remaining total parameter, wherein the multiple network interfaces also include multiple second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target demand threshold, the third data flow is the amount of server data transmitted by the corresponding second network interface in the second time period, and the remaining total parameter is the difference between the corresponding data transmission total parameter of the network adapter device and the preset total parameter, and the data transmission total parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-way server.

[0088] Optionally, in an embodiment of the present application, the preset total parameter includes but is not limited to being determined based on a maximum value of the transmission data flow of the first network interface belonging to the first data transmission level over a long period of time.

[0089] Through the above steps, preset total parameters are allocated to the first network interface belonging to the first data transmission level, so as to reserve more data transmission capacity for the network interface belonging to the second data transmission level with relatively higher data transmission demand while meeting the data transmission demand of the first network interface. This can make the allocation of data transmission capacity more reasonable and improve the flow control efficiency of the server network port.

[0090] As an optional implementation manner, allocating the data transmission parameter to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period before the current moment and the remaining total parameter includes:

[0091] Extracting data flows corresponding to the second network interfaces belonging to the second data transmission level in the second time period from historical data flows recorded by the network adapter device, and obtaining the second network interfaces and the third data flows having a corresponding relationship;

[0092] Calculating a second ratio between the third data flows according to the second network interface and the third data flows that have a corresponding relationship;

[0093] Dividing the remaining total parameters according to the second ratio to obtain the second network interface and the data transmission parameter having a corresponding relationship;

[0094] The data transmission parameter is allocated to the corresponding second network interface.

[0095] As an optional implementation manner, the detecting a service type of a server service processed by a processor corresponding to each of the multiple network interfaces includes:

[0096] Extracting data flows corresponding to each network interface in a third time period before the current moment from the historical data flows recorded by the network adapter device, and obtaining the network interface and fourth data flows having a corresponding relationship, wherein the fourth data flows are the amount of server data correspondingly transmitted by a corresponding network interface among the plurality of network interfaces in the third time period;

[0097] Convert each of the fourth data flows into a unit data flow per unit time, to obtain the network interface and the unit data flow having a corresponding relationship;

[0098] In a case where the unit data flow is less than or equal to the data volume threshold, determining that the service type of the corresponding network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold;

[0099] When the unit data flow is greater than the data volume threshold, the service type of the corresponding network interface is determined to be a service service type, wherein the service service type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0100] Optionally, in the embodiment of the present application, the unit time and the duration of the third time period include but are not limited to having a corresponding relationship, and when the duration of the third time period is shorter, the unit time is also shorter.

[0101] Optionally, in an embodiment of the present application, the service business type business usually has a larger amount of server data to be transmitted on the network interface under the corresponding server business, while the management business type business has a smaller amount of server data to be transmitted on the network interface under the corresponding server business.

[0102] Through the above steps, the service type of the network interface is determined by the unit data flow per unit time corresponding to the third time period, and the data volume of the server data to be transmitted is predicted according to the traffic performance within a period of time. The service type of the server service processed by the processor corresponding to the network interface is simply and accurately determined, which provides a basis for the accurate and reasonable allocation of data transmission parameters and improves the traffic control efficiency of the server network port to a certain extent.

[0103] As an optional implementation manner, the detecting a service type of a server service processed by a processor corresponding to each of the multiple network interfaces includes:

[0104] Taking each of the network interfaces as a target network interface, detecting a target data type of the server data transmitted by the target network interface;

[0105] In a case where the target data type belongs to a data type generated in a management service processed by the multi-way server, determining that the service type of the server service processed by the processor corresponding to the target network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to a target demand threshold;

[0106] In the case that the target data type belongs to the data type generated in the service business processed by the multi-way server, the business type of the server business processed by the processor corresponding to the target network interface is determined to be a service business type, wherein the service business type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server business has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0107] Through the above steps, the business type of the server service processed by the processor corresponding to the network interface is determined according to the data type of the transmitted server data, and the business type of the server service processed by the processor corresponding to the network interface is accurately learned, ensuring the accuracy of the basis for allocating data transmission parameters.

[0108] As an optional implementation, the embodiment of the present application also provides a method for controlling the network port traffic of two servers. Figure 3 Schematic diagram of a flow control method for two server network ports according to an embodiment of the present application Figure 1 ,like Figure 3As shown in FIG. 1 , a single multi-host network card (i.e., network adapter device) can be divided into two X8 network interfaces on a two-way server (i.e., multi-way server). Figure 3 In the multi-host networking shown, a single network port is split into two network interfaces, each of which is an X8 device. The network ports split by two multi-host network cards of the same server are bonded (bound and aggregated) separately, such as network port PF0 and network port PF00 are bound to generate logical network port bond0, and network port PF1 and network port PF01 are bound to generate logical network port bond1. In actual customer service deployment, bond0 can be used as the entrance and exit of the service side, and bond1 can be used as the entrance and exit of the management class. Customers can appropriately allocate the bandwidth limit ratio of bond0 and bond1 according to their own service categories. Usually, the bandwidth ratio of bond0 can be increased when the business volume is relatively large, and the bandwidth ratio of the management class entrance is usually small, so the bandwidth ratio of the management class entrance can be reduced accordingly. This solution adopts a relatively flexible allocation scheme, and the traffic of bond0 and bond1 can be allocated according to the ratio of 1:9, 2:8, 3:7, 4:6, 5:5. Therefore, when the business traffic is large, the traffic proportion of bond1 can be reduced and the traffic proportion of bond0 can be increased, achieving a relatively reasonable resource utilization ratio and improving resource utilization.

[0109] As an optional implementation, the embodiment of the present application also provides a method for controlling the network port traffic of a four-way server. Figure 4 Schematic diagram of a flow control method for a four-way server network port according to an embodiment of the present application Figure 1 ,like Figure 4As shown in the figure, the single-port multi-host network card (i.e., network adapter) in the four-way server (i.e., multi-way server) is split into 4 x4 network interfaces, namely PF0, PF1, PF2, and PF3; another single-port multi-host network card is split into 4 x4 network interfaces, namely PF00, PF01, PF02, and PF03. At this time, PF0 and PF00, PF1 and PF01, PF2 and PF02, PF3 and PF03 can be bound and aggregated to obtain bond0, bond1, bond2, bond3, etc. At this time, the allocation of traffic control is more flexible, and bandwidth can be allocated according to 1:2:3:4 or other customized ratios. At this time, specific allocation can be made according to four types of services, such as management entrance and exit, business entrance and exit 1, business entrance and exit 2, and business entrance and exit 3, so that customers have more choices. Usually, the management-class inlet and outlet traffic can be configured at the lowest ratio of 1, and the other three types of services can be configured at a total ratio of 9. The ratio of the bandwidth occupied by the three types of services at a ratio of 9 is adjusted according to the specific traffic performance, which can be 3:3:3 or 1:2:6, etc. The corresponding bond0 can be configured according to the management-class inlet and outlet, and bond1, bond2, and bond3 can be configured according to the business-class inlet and outlet.

[0110] Optionally, in the embodiment of the present application, resource allocation of multiple network ports can be automatically completed by setting the egress and ingress speed limits of multiple host network cards. The service static mode or shared mode can be selected according to the needs, wherein the static mode ensures fairness between hosts; the shared mode is a competitive mode, which can compete according to traffic between different devices of the same device, and in the shared mode, more resources can be used.

[0111] As an optional implementation, the present application further provides a server system, comprising: a network adapter device and a multi-way server, wherein the multi-way server is a server having multiple processors, the network adapter device provides multiple network interfaces for the multi-way server, and the multiple network interfaces correspond one-to-one to the multiple processors;

[0112] The multi-way server is used to process corresponding server services through the multiple processors;

[0113] The network adapter device is used to detect the service type of the server service processed by the processor corresponding to each network interface among the multiple network interfaces, and obtain a network interface and service type with a corresponding relationship, wherein the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service; detect the data transmission level of each network interface among the multiple network interfaces according to the network interface and service type with a corresponding relationship, wherein the data transmission level is used to indicate the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface; allocate data transmission parameters matching the corresponding data transmission level to each network interface among the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission flow of the network interface.

[0114] Through the above server system, since it is configured to connect a multi-way server with multiple processors and provide multiple network interfaces for the multi-way server, the above-mentioned multiple network interfaces correspond one-to-one to the multiple processors, the service type of the server service processed by the processor corresponding to each network interface in the multiple network interfaces is detected through the above-mentioned network adapter device, and the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service. The data transmission level of each network interface in the multiple network interfaces is used to indicate the demand of the data transmission capacity of the network interface for the server data to be transmitted by the network interface under the corresponding server service, and then the corresponding network interface is allocated to each network interface in the multiple network interfaces. The data transmission parameters for controlling the data transmission flow of the network interface are matched with the data transmission level, that is, the data transmission parameters allocated to each network interface for controlling the data transmission flow of the network interface are matched with the requirements for the data transmission capacity of the network interface for indicating the server data to be transmitted by the network interface under the corresponding server service. The data transmission flow of each network interface can be controlled to meet the requirements for the network data transmission capacity of the server data to be transmitted by each network interface, so as to achieve reasonable allocation of the network data transmission capacity of multiple server network interfaces and reasonable control of the data transmission flow of the server network interfaces. Therefore, the problem of low flow control efficiency of the server network interface can be solved, and the effect of improving the flow control efficiency of the server network interface can be achieved.

[0115] As an optional implementation, a plurality of multi-host network cards are deployed in the network adapter device, and the network adapter device is further used to aggregate a plurality of network interfaces respectively provided by the plurality of multi-host network cards into a plurality of logical network interfaces corresponding one-to-one to the plurality of processors.

[0116] Optionally, in an embodiment of the present application, multiple network ports split from multiple host network cards are bound into one logical interface, which can simplify network configuration and management and reduce network complexity.

[0117] Optionally, in the embodiment of the present application, the MAC addresses of multiple physical network ports are modified to the same address through bonding technology, so that these physical network ports can appear as a single logical interface in the network. Network bonding, also known as link aggregation, allows multiple physical network interfaces to be combined into one logical interface, thereby increasing bandwidth, improving availability and redundancy, and is very practical for scenarios that require high bandwidth and high availability.

[0118] Optionally, in an embodiment of the present application, including but not limited to, the bandwidth inlet and outlet speed limit ratio of the logical network interface can be adjusted to ensure that the customer's business side traffic and management side traffic can be allocated in an appropriate ratio.

[0119] Through the above steps, multiple network interfaces corresponding to the processor are aggregated into a logical interface corresponding to the aforementioned processor, and the bandwidths of multiple physical links can be integrated together to provide a higher total bandwidth for the corresponding processor.

[0120] As an optional implementation manner, the multiple multi-host network cards include a first multi-host network card and a second multi-host network card, the multiple processors include a first processor and a second processor, the first multi-host network card provides a first physical network interface for the first processor and provides a second physical network interface for the second processor, the second multi-host network card provides a third physical network interface for the first processor and provides a fourth physical network interface for the second processor, wherein the first logical network interface includes the first physical network interface and the third physical network interface, the second logical network interface includes the second physical network interface and the fourth physical network interface, the first logical network interface and the first processor have a corresponding relationship, the second logical network interface and the second processor have a corresponding relationship, and the multiple logical network interfaces include the first logical network interface and the second logical network interface;

[0121] The first multi-host network card is also used to: configure the physical address of the first physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the second physical network interface as the second physical address corresponding to the second processor; the second multi-host network card is also used to: configure the physical address of the third physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface as the second physical address corresponding to the second processor.

[0122] Optionally, in the embodiments of the present application, Figure 5 Schematic diagram of a flow control method for two server network ports according to an embodiment of the present application Figure 2 ,like Figure 5 As shown, the first multi-host network card and the second multi-host network card deployed in the network adapter respectively provide the first physical network interface and the second physical network interface, as well as the third physical network interface and the fourth physical network interface for the multi-way server, and the X16 pin of the first multi-host network card is divided into two parts, namely the X8 pin of the first physical network interface and the X8 pin of the second physical network interface, the X8 pin of the first physical network interface is divided into the first processor, and the X8 pin of the second physical network interface is divided into the second processor, and the pin allocation method of the second multi-host network card is similar to that of the first multi-host network card. By configuring the physical addresses of the first physical network interface and the third physical network interface as the first physical address corresponding to the first processor, it is equivalent to providing the first processor with a first logical network interface with a larger bandwidth, and by configuring the physical addresses of the second physical network interface and the fourth physical network interface as the second physical address corresponding to the second processor, it is equivalent to providing the second processor with a second logical network interface with a larger bandwidth.

[0123] Through the above steps, the first processor in the two-way server is allocated the first physical network port provided by the first multi-host network card and the third physical network port provided by the second multi-host network card, and the second processor is allocated the second physical network port provided by the first multi-host network card and the fourth physical network port provided by the second multi-host network card. The physical network ports corresponding to the same processor are aggregated, so that the transmission flow of the server data of the first processor and the second processor can be adjusted while enhancing the data transmission capacity of the data of the first processor and the second processor, thereby improving the data transmission efficiency of the entire server system.

[0124] As an optional implementation, the multiple multi-host network cards include a third multi-host network card and a fourth multi-host network card, the multiple processors include a third processor, a fourth processor, a fifth processor and a sixth processor, the third multi-host network card provides a fifth physical network interface for the third processor, provides a sixth physical network interface for the fourth processor, provides a seventh physical network interface for the fifth processor, and provides an eighth physical network interface for the sixth processor, the fourth multi-host network card provides a ninth physical network interface for the third processor, provides a tenth physical network interface for the fourth processor, provides an eleventh physical network interface for the fifth processor, and provides a twelfth physical network interface for the sixth processor, wherein the third logical network interface includes the fifth physical network interface a network interface and the ninth physical network interface, a fourth logical network interface includes the sixth physical network interface and the tenth physical network interface, a fifth logical network interface includes the seventh physical network interface and the eleventh physical network interface, a sixth logical network interface includes the eighth physical network interface and the twelfth physical network interface, a third logical network interface and the third processor have a corresponding relationship, a fourth logical network interface and the fourth processor have a corresponding relationship, a fifth logical network interface and the fifth processor have a corresponding relationship, a sixth logical network interface and the sixth processor have a corresponding relationship, and the plurality of logical network interfaces include the fourth logical network interface, the fifth logical network interface, the sixth logical network interface and the seventh logical network interface;

[0125] The third multi-host network card is further used to: determine the physical address of the fifth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the sixth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the seventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the eighth physical network interface as the sixth physical address corresponding to the sixth processor;

[0126] The fourth multi-host network card is also used to: determine the physical address of the ninth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the tenth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the eleventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the twelfth physical network interface as the sixth physical address corresponding to the sixth processor.

[0127] Optionally, in the embodiments of the present application, Figure 6 Schematic diagram of a flow control method for a four-way server network port according to an embodiment of the present application Figure 2 ,like Figure 6 As shown, the third multi-host network card and the fourth multi-host network card deployed in the network adapter respectively provide the fifth physical network interface, the sixth physical network interface, the seventh physical network interface, and the eighth physical network interface, as well as the ninth physical network interface, the tenth physical network interface, the eleventh physical network interface, and the twelfth physical network interface for the multi-way server, and the X16 pin of the third multi-host network card is divided into four parts, namely, the X4 pin of the fifth physical network interface, the X4 pin of the sixth physical network interface, the X4 pin of the seventh physical network interface and the X4 pin of the eighth physical network interface, the X4 pin of the fifth physical network interface is divided into the third processor, the X4 pin of the sixth physical network interface is divided into the fourth processor, the X4 pin of the seventh physical network interface is divided into the fifth processor, and the X4 pin of the eighth physical network interface is divided into the sixth processor, and the pin allocation method of the fourth multi-host network card is similar to that of the third multi-host network card. By configuring the physical addresses of the fifth physical network interface and the ninth physical network interface as the third physical address corresponding to the third processor, it is equivalent to providing the third processor with a third logical network interface with a larger bandwidth; by configuring the physical addresses of the sixth physical network interface and the tenth physical network interface as the fourth physical address corresponding to the fourth processor, it is equivalent to providing the fourth processor with a fourth logical network interface with a larger bandwidth; by configuring the physical addresses of the seventh physical network interface and the eleventh physical network interface as the fifth physical address corresponding to the fifth processor, it is equivalent to providing the fifth processor with a fifth logical network interface with a larger bandwidth; by configuring the physical addresses of the eighth physical network interface and the twelfth physical network interface as the sixth physical address corresponding to the sixth processor, it is equivalent to providing the sixth processor with a sixth logical network interface with a larger bandwidth.

[0128] Optionally, in the embodiment of the present application, a multi-host network card is used to replace a common network card for network bonding, so that more functions of a single network port can be realized under the premise that the overall slot of the server remains unchanged. The physical network ports split out by the multi-host network card can be bonded to achieve redundancy or aggregation.

[0129] Through the above steps, the fifth physical network port provided by the third multi-host network card and the ninth physical network port provided by the fourth multi-host network card are allocated to the third processor in the four-way server, the sixth physical network port provided by the third multi-host network card and the tenth physical network port provided by the fourth multi-host network card are allocated to the fourth processor, the seventh physical network port provided by the third multi-host network card and the eleventh physical network port provided by the fourth multi-host network card are allocated to the fifth processor, the eighth physical network port provided by the third multi-host network card and the twelfth physical network port provided by the fourth multi-host network card are allocated to the sixth processor, and the physical network ports corresponding to the same processor are aggregated, so that the transmission flow of the server data of the third processor, the fourth processor, the fifth processor and the sixth processor can be adjusted while enhancing the data transmission capacity of the data of the third processor, the fourth processor, the fifth processor and the sixth processor, thereby improving the data transmission efficiency of the entire server system.

[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0131] In this embodiment, a flow control device for a server network port is also provided, which is applied to a network adapter device, and the network adapter device is used to connect a multi-way server, and the multi-way server is a server with multiple processors. The network adapter device provides multiple network interfaces for the multi-way server, and the multiple network interfaces correspond one to one with the multiple processors. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have been explained will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0132] Figure 7 is a structural block diagram of a flow control device for a server network port according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0133] A first detection module 702 is used to detect a service type of a server service processed by a processor corresponding to each of the multiple network interfaces, and obtain a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate a data volume of server data to be transmitted by the network interface under the corresponding server service;

[0134] A second detection module 704 is used to detect the data transmission level of each network interface among the multiple network interfaces according to the network interfaces and service types having a corresponding relationship, wherein the data transmission level is used to indicate the demand of the data transmission capacity of the network interface for the server data to be transmitted by the network interface under the corresponding server service;

[0135] The allocation module 706 is used to allocate a data transmission parameter matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

[0136] Through the present application, since a multi-way server with multiple processors is provided for connecting to the multi-way server, the above-mentioned multiple network interfaces correspond one-to-one to the multiple processors, the business type of the server business processed by the processor corresponding to each network interface in the multiple network interfaces is detected through the above-mentioned network adapter device, and the business type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server business. The data transmission level of each network interface in the multiple network interfaces is used to indicate the demand of the data transmission capacity of the network interface for the server data to be transmitted by the network interface under the corresponding server business according to the network interfaces and business types with corresponding relationships, and then the corresponding data transmission level is allocated to each network interface in the multiple network interfaces. The data transmission parameters for controlling the data transmission flow of the network interface matched according to the transmission level, that is, the data transmission parameters allocated to each network interface for controlling the data transmission flow of the network interface are matched with the requirements for the data transmission capacity of the network interface for indicating the server data to be transmitted by the network interface under the corresponding server service. The data transmission flow of each network interface can be controlled to meet the requirements for the network data transmission capacity of the server data to be transmitted by each network interface, so as to achieve reasonable allocation of the network data transmission capabilities of multiple server network interfaces and reasonable control of the data transmission flow of the server network interfaces. Therefore, the problem of low flow control efficiency of the server network interface can be solved, thereby achieving the effect of improving the flow control efficiency of the server network interface.

[0137] As an optional implementation, the allocation module includes:

[0138] a first allocation unit, configured to allocate a first total parameter to the first data transmission level and a second total parameter to the second data transmission level according to a proportional relationship between a first data flow of a first network interface belonging to a first data transmission level in a first time period before a current moment and a second data flow of a second network interface belonging to a second data transmission level in the first time period, and a total data transmission parameter corresponding to the network adapter device, wherein the multiple network interfaces include one or more of the first network interfaces and one or more of the second network interfaces, the data transmission levels include the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to a target demand threshold, the second data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is greater than the target demand threshold, the first data flow is the total amount of server data correspondingly transmitted by the first network interface in the first time period, the second data flow is the total amount of server data correspondingly transmitted by the second network interface in the first time period, and the total data transmission parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-channel server;

[0139] The second allocation unit is configured to allocate the first total parameter to one or more of the first network interfaces, and allocate the second total parameter to one or more of the second network interfaces.

[0140] Optionally, the first allocation unit is further used for:

[0141] Extracting the sum of the data flows of the first network interface belonging to the first data transmission level in the first time period from the historical data flows recorded by the network adapter device to obtain the first data flow, and extracting the sum of the data flows of the second network interface belonging to the second data transmission level in the first time period from the historical data flows to obtain the second data flow;

[0142] Calculating a first ratio between the first data flow and the second data flow;

[0143] Dividing the data transmission total parameter according to the first ratio to obtain the first total parameter and the second total parameter;

[0144] The first overall parameter is assigned to the first data transmission class and the second overall parameter is assigned to the second data transmission class.

[0145] As an optional implementation, the allocation module further includes:

[0146] a third allocating unit, configured to allocate a preset total parameter to a first network interface belonging to a first data transmission level, wherein the plurality of network interfaces include one or more of the first network interfaces;

[0147] A fourth allocation unit is used to allocate the data transmission parameter to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in a second time period before the current moment and the remaining total parameter, wherein the multiple network interfaces also include multiple second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target demand threshold, the third data flow is the amount of server data transmitted by the corresponding second network interface in the second time period, and the remaining total parameter is the difference between the data transmission total parameter corresponding to the network adapter device and the preset total parameter, and the data transmission total parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-way server.

[0148] Optionally, the fourth allocation unit is further used for:

[0149] Extracting data flows corresponding to the second network interfaces belonging to the second data transmission level in the second time period from historical data flows recorded by the network adapter device, and obtaining the second network interfaces and the third data flows having a corresponding relationship;

[0150] Calculating a second ratio between the third data flows according to the second network interface and the third data flows that have a corresponding relationship;

[0151] Dividing the remaining total parameters according to the second ratio to obtain the second network interface and the data transmission parameter having a corresponding relationship;

[0152] The data transmission parameter is allocated to the corresponding second network interface.

[0153] As an optional implementation manner, the first detection module includes:

[0154] an extracting unit, configured to extract data flows corresponding to each network interface in a third time period before a current moment from the historical data flows recorded by the network adapter device, and obtain the network interface and fourth data flows having a corresponding relationship, wherein the fourth data flows are the amount of server data correspondingly transmitted by a corresponding network interface among the plurality of network interfaces in the third time period;

[0155] A conversion unit, used for converting each of the fourth data flows into a unit data flow per unit time, to obtain the network interface and the unit data flow having a corresponding relationship;

[0156] a first determining unit, configured to determine, when the unit data flow is less than or equal to a data volume threshold, that the service type of the corresponding network interface is a management service type, wherein the management service type corresponds to a first data transmission level, the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to a target demand threshold;

[0157] A second determination unit is used to determine that the service type of the corresponding network interface is a service service type when the unit data flow is greater than the data volume threshold, wherein the service service type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0158] As an optional implementation manner, the first detection module further includes:

[0159] a detection unit, configured to use each of the network interfaces as a target network interface and detect a target data type of the server data transmitted by the target network interface;

[0160] a third determining unit, configured to determine, when the target data type belongs to a data type generated in a management service processed by the multi-way server, that a service type of the server service processed by the processor corresponding to the target network interface is a management service type, wherein the management service type corresponds to a first data transmission level, the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that a demand for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target demand threshold;

[0161] A fourth determination unit is used to determine that the business type of the server business processed by the processor corresponding to the target network interface is a service business type when the target data type belongs to the data type generated in the service business processed by the multi-way server, wherein the service business type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server business has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

[0162] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0163] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0164] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0165] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0166] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0167] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0168] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0169] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0170] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0171] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0172] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling flow of a server network port, characterized in that: Applied to a network adapter device, the network adapter device is used to connect a multi-way server, the multi-way server is a server with multiple processors, the network adapter device provides multiple network interfaces for the multi-way server, the multiple network interfaces correspond to the multiple processors one by one, the method includes: Detecting a service type of a server service processed by a processor corresponding to each of the plurality of network interfaces, and obtaining a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate a data volume of server data to be transmitted by the network interface under the corresponding server service; Detecting a data transmission level of each of the plurality of network interfaces according to the network interfaces and service types having a corresponding relationship, wherein the data transmission level is used to indicate a demand of the data transmission capacity of the network interface for server data to be transmitted by the network interface under the corresponding server service; A data transmission parameter matching the corresponding data transmission level is allocated to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

2. The method according to claim 1, characterized in that: The allocating a data transmission parameter matching the corresponding data transmission level to each of the plurality of network interfaces comprises: According to the proportional relationship between the first data flow of the first network interface belonging to the first data transmission level in the first time period before the current moment and the second data flow of the second network interface belonging to the second data transmission level in the first time period, and the total data transmission parameter corresponding to the network adapter device, the first total parameter is allocated to the first data transmission level and the second total parameter is allocated to the second data transmission level, wherein the multiple network interfaces include one or more of the first network interfaces and one or more of the second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold, the second data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is greater than the target demand threshold, the first data flow is the total amount of server data correspondingly transmitted by the first network interface in the first time period, the second data flow is the total amount of server data correspondingly transmitted by the second network interface in the first time period, and the total data transmission parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-channel server; The first overall parameter is assigned to one or more of the first network interfaces, and the second overall parameter is assigned to one or more of the second network interfaces.

3. The method according to claim 2, characterized in that The method allocates a first total parameter to the first data transmission level and allocates a second total parameter to the second data transmission level according to a proportional relationship between a first data flow of a first network interface belonging to a first data transmission level in a first time period before a current moment and a second data flow of a second network interface belonging to a second data transmission level in the first time period, and a total data transmission parameter corresponding to the network adapter device, comprising: Extracting the sum of the data flows of the first network interface belonging to the first data transmission level in the first time period from the historical data flows recorded by the network adapter device to obtain the first data flow, and extracting the sum of the data flows of the second network interface belonging to the second data transmission level in the first time period from the historical data flows to obtain the second data flow; Calculating a first ratio between the first data flow and the second data flow; Dividing the data transmission total parameter according to the first ratio to obtain the first total parameter and the second total parameter; The first overall parameter is assigned to the first data transmission class and the second overall parameter is assigned to the second data transmission class.

4. The method according to claim 1, characterized in that The allocating a data transmission parameter matching the corresponding data transmission level to each of the plurality of network interfaces comprises: Allocating a preset total parameter to a first network interface belonging to a first data transmission level in a second time period before a current moment, wherein the plurality of network interfaces include one or more of the first network interfaces; The data transmission parameter is allocated to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period and the remaining total parameter, wherein the multiple network interfaces also include multiple second network interfaces, the data transmission level includes the first data transmission level and the second data transmission level, the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold, the second data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is greater than the target demand threshold, each of the third data flows is the amount of server data transmitted by the corresponding second network interface in the second time period, the remaining total parameter is the difference between the corresponding data transmission total parameter of the network adapter device and the preset total parameter, and the data transmission total parameter is used to indicate the data transmission capacity that the network adapter device is allowed to provide for the multi-way server.

5. The method according to claim 4, characterized in that The allocating the data transmission parameter to each second network interface according to the third data flow of each second network interface belonging to the second data transmission level in the second time period and the remaining total parameter includes: Extracting data flows corresponding to each of the second network interfaces belonging to the second data transmission level in the second time period from the historical data flows recorded by the network adapter device, and obtaining the second network interfaces and the third data flows having a corresponding relationship; Calculate a second ratio between each of the third data flows according to the second network interfaces and the third data flows that have a corresponding relationship; Dividing the remaining total parameters according to the second ratio to obtain the second network interface and the data transmission parameter having a corresponding relationship; The data transmission parameter is allocated to the corresponding second network interface.

6. The method according to claim 1, characterized in that The detecting the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes: Extracting data flows corresponding to each network interface in a third time period before the current moment from the historical data flows recorded by the network adapter device, and obtaining the network interface and fourth data flows having a corresponding relationship, wherein each fourth data flow is the amount of server data correspondingly transmitted by a corresponding network interface among the plurality of network interfaces in the third time period; Convert each of the fourth data flows into a unit data flow per unit time, to obtain the network interface and the unit data flow having a corresponding relationship; In a case where the unit data flow is less than or equal to the data volume threshold, determining that the service type of the corresponding network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to the target demand threshold; When the unit data flow is greater than the data volume threshold, the service type of the corresponding network interface is determined to be a service service type, wherein the service service type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server service has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

7. The method according to claim 1, characterized in that The detecting the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes: Taking each of the network interfaces as a target network interface, detecting a target data type of the server data transmitted by the target network interface; In a case where the target data type belongs to a data type generated in a management service processed by the multi-way server, determining that the service type of the server service processed by the processor corresponding to the target network interface is a management service type, wherein the management service type corresponds to a first data transmission level, and the data transmission level includes the first data transmission level, and the first data transmission level is used to indicate that the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface is less than or equal to a target demand threshold; In the case that the target data type belongs to the data type generated in the service business processed by the multi-way server, the business type of the server business processed by the processor corresponding to the target network interface is determined to be a service business type, wherein the service business type corresponds to a second data transmission level, and the data transmission level also includes the second data transmission level, and the second data transmission level is used to indicate that the server data to be transmitted by the network interface under the corresponding server business has a demand for the data transmission capacity of the network interface that is greater than the target demand threshold.

8. A server system, characterized in that: The invention comprises: a network adapter device and a multi-way server, wherein the multi-way server is a server having multiple processors, the network adapter device provides multiple network interfaces for the multi-way server, and the multiple network interfaces correspond to the multiple processors one by one; The multi-way server is used to process corresponding server services through the multiple processors; The network adapter device is used to detect the service type of the server service processed by the processor corresponding to each network interface among the multiple network interfaces, and obtain a network interface and service type with a corresponding relationship, wherein the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service; detect the data transmission level of each network interface among the multiple network interfaces according to the network interface and service type with a corresponding relationship, wherein the data transmission level is used to indicate the demand of the server data to be transmitted by the network interface under the corresponding server service for the data transmission capacity of the network interface; allocate data transmission parameters matching the corresponding data transmission level to each network interface among the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission flow of the network interface.

9. The system according to claim 8, characterized in that A plurality of multi-host network cards are deployed in the network adapter device, and the network adapter device is further used to aggregate a plurality of network interfaces respectively provided by the plurality of multi-host network cards into a plurality of logical network interfaces corresponding to the plurality of processors one by one.

10. The system according to claim 9, characterized in that The multiple multi-host network cards include a first multi-host network card and a second multi-host network card, the multiple processors include a first processor and a second processor, the first multi-host network card provides a first physical network interface for the first processor and a second physical network interface for the second processor, the second multi-host network card provides a third physical network interface for the first processor and a fourth physical network interface for the second processor, wherein the first logical network interface includes the first physical network interface and the third physical network interface, the second logical network interface includes the second physical network interface and the fourth physical network interface, the first logical network interface and the first processor have a corresponding relationship, the second logical network interface and the second processor have a corresponding relationship, and the multiple logical network interfaces include the first logical network interface and the second logical network interface; The first multi-host network card is also used to: configure the physical address of the first physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the second physical network interface as the second physical address corresponding to the second processor; the second multi-host network card is also used to: configure the physical address of the third physical network interface as the first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface as the second physical address corresponding to the second processor.

11. The system according to claim 9, characterized in that The multiple multi-host network cards include a third multi-host network card and a fourth multi-host network card, the multiple processors include a third processor, a fourth processor, a fifth processor and a sixth processor, the third multi-host network card provides a fifth physical network interface for the third processor, a sixth physical network interface for the fourth processor, a seventh physical network interface for the fifth processor, and an eighth physical network interface for the sixth processor, the fourth multi-host network card provides a ninth physical network interface for the third processor, a tenth physical network interface for the fourth processor, an eleventh physical network interface for the fifth processor, and a twelfth physical network interface for the sixth processor, wherein the third logical network interface includes the fifth physical network interface and the ninth physical network interface, the fourth logical network interface includes the sixth physical network interface and the tenth physical network interface, the fifth logical network interface includes the seventh physical network interface and the eleventh physical network interface, the sixth logical network interface includes the eighth physical network interface and the twelfth physical network interface, the third logical network interface and the third processor have a corresponding relationship, the fourth logical network interface and the fourth processor have a corresponding relationship, the fifth logical network interface and the fifth processor have a corresponding relationship, the sixth logical network interface and the sixth processor have a corresponding relationship, and the multiple logical network interfaces include the fourth logical network interface, the fifth logical network interface, the sixth logical network interface and the seventh logical network interface; The third multi-host network card is further used to: determine the physical address of the fifth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the sixth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the seventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the eighth physical network interface as the sixth physical address corresponding to the sixth processor; The fourth multi-host network card is also used to: determine the physical address of the ninth physical network interface as the third physical address corresponding to the third processor, determine the physical address of the tenth physical network interface as the fourth physical address corresponding to the fourth processor, determine the physical address of the eleventh physical network interface as the fifth physical address corresponding to the fifth processor, and determine the physical address of the twelfth physical network interface as the sixth physical address corresponding to the sixth processor.

12. A flow control device for a server network port, characterized in that: Applied to a network adapter device, the network adapter device is used to connect a multi-way server, the multi-way server is a server with multiple processors, the network adapter device provides multiple network interfaces for the multi-way server, the multiple network interfaces correspond to the multiple processors one by one, the device comprises: A first detection module is used to detect the service type of the server service processed by the processor corresponding to each network interface among the multiple network interfaces, and obtain a network interface and a service type having a corresponding relationship, wherein the service type is used to indicate the data volume of the server data to be transmitted by the network interface under the corresponding server service; a second detection module, configured to detect a data transmission level of each of the plurality of network interfaces according to the corresponding network interfaces and service types, wherein the data transmission level is used to indicate a demand of the network interface for the data transmission capacity of the network interface by the server data to be transmitted by the network interface under the corresponding server service; The allocation module is used to allocate a data transmission parameter matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameter is used to control the data transmission flow of the network interface.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Data transmission method and device of cloud data center

    CN114500540A

  • Network configuration method, host server, equipment and storage medium

    CN115567383A