Flow control method and apparatus for server network interface

By detecting the service type of multiple server network interfaces and assigning matching data transmission parameters, the problem of unreasonable resource allocation of multiple server network interfaces is solved, and more efficient traffic control is achieved.

WO2026046314A1PCT designated stage Publication Date: 2026-03-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-28
Publication Date
2026-03-05

AI Technical Summary

Technical Problem

In existing technologies, the network interfaces of multi-path servers are inefficient in controlling data flow, resulting in some network interfaces being overloaded while others are idle, leading to unreasonable allocation of network interface resources.

Method used

By detecting the service type of the processor corresponding to each network interface, and assigning data transmission levels and parameters that match the service type, the data transmission traffic of the network interface can be controlled, thereby achieving reasonable allocation of network data transmission capacity.

Benefits of technology

It improves the efficiency of traffic control for server network interfaces, ensuring that the data transmission capabilities of each network interface meet actual needs and avoiding waste of interface resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025117635_05032026_PF_FP_ABST
    Figure CN2025117635_05032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a flow control method and apparatus for a server network interface, the method being applied to a network adapter. The network adapter is used to connect a multi-channel server. The multi-channel server is a server having a plurality of processors. The network adapter provides a plurality of network interfaces for the multi-channel server, the plurality of network interfaces corresponding one-to-one to the plurality of processors. The method comprises: detecting a service type of a server service processed by a processor corresponding to each network interface among a plurality of network interfaces, and obtaining a network interface and a service type having a correspondence relationship; on the basis of the network interface and the service type having the correspondence relationship, detecting a data transmission level of each network interface among the plurality of network interfaces; and assigning a data transmission parameter matching the corresponding data transmission level for each network interface among the plurality of network interfaces. By means of the present application, the problem of flow control efficiency being poor for a server network interface is solved, and an effect of improving the flow control efficiency of the server network interface is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Methods and devices for controlling the flow of server network ports

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202411210897.0, filed on August 30, 2024, entitled "Flow Control Method and Apparatus for Server Network Port", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of computers, and in particular, to a method and apparatus for controlling the flow of a server network port. Background Technology

[0004] Network adapters are hardware devices used by servers to connect to networks. For multi-processor servers, each network adapter needs to be inserted into its corresponding processor slot to provide a network interface for that processor. However, this method of using network adapters cannot control the data transmission capacity of multiple network interfaces on a multi-processor server. Since the data transmission capacity of these multiple network interfaces is the same, when different network interfaces are configured to transmit different server data, some network interfaces may become overloaded while others are idle at the same time. Overall, network interface resources are not allocated reasonably, resulting in low efficiency in server network interface traffic control. Summary of the Invention

[0005] This application provides a method and apparatus for controlling the flow of a server network interface, so as to at least solve the problem of low flow control efficiency of server network interfaces in related technologies.

[0006] According to one embodiment of this application, a flow control method for a server network port is provided, applied to a network adapter. The network adapter is used to connect a multi-processor server, which is a server with multiple processors. The network adapter provides multiple network interfaces for the multi-processor server, with each network interface corresponding to one of the multiple processors. The method includes: detecting the service type of the server service processed by the processor corresponding to each of the multiple network interfaces to obtain a corresponding relationship between the network interface and the service type, wherein the service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service; detecting the data transmission level of each of the multiple network interfaces based on the corresponding network interface and service type, wherein the data transmission level is used to indicate the data transmission capability requirement of the network interface for the server data to be transmitted under the corresponding server service; and allocating data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission flow of the network interface.

[0007] In one exemplary embodiment, detecting the data transmission level of each network interface among multiple network interfaces based on corresponding network interfaces and service types includes: when the service type of the target network interface among the multiple network interfaces is detected to be a management service type, determining the data transmission level of the target network interface as a first data transmission level, wherein the management service type corresponds to the first data transmission level; when the service type of the target network interface is detected to be a service service type, determining the data transmission level of the target network interface as a second data transmission level, wherein the service service type corresponds to the second data transmission level, and the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the management service type is less than the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the service service type.

[0008] In one exemplary embodiment, assigning data transmission parameters matching the corresponding data transmission level to each of a plurality of network interfaces includes: allocating a first total parameter to the first data transmission level and a second total parameter to the second data transmission level based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level within a first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter. The plurality of network interfaces include one or more first network interfaces and one or more second network interfaces, and the data transmission levels include a first data transmission level and a second data transmission level. The first data transmission level is used to indicate... The data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is less than or equal to the target requirement threshold. The second data transmission level is used to indicate that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is greater than the target requirement threshold. The first data flow is the total amount of server data transmitted by the first network interface in the first time period, and the second data flow is the total amount of server data transmitted by the second network interface in the first time period. The total data transmission parameter is used to indicate the data transmission capacity that the network adapter is allowed to provide for multiple servers. The first total parameter is assigned to one or more first network interfaces, and the second total parameter is assigned to one or more second network interfaces.

[0009] In one exemplary embodiment, allocating a first total parameter to one or more first network interfaces includes: in the case where the multiple network interfaces include multiple first network interfaces, distributing the first total parameter equally among the multiple first network interfaces, or allocating the first total parameter to the multiple first network interfaces according to the data traffic volume of the multiple first network interfaces within a first time period.

[0010] In one exemplary embodiment, allocating the second total parameter to one or more second network interfaces includes: in the case where the multiple network interfaces include multiple second network interfaces, distributing the second total parameter equally among the multiple second network interfaces, or allocating the second total parameter to the multiple second network interfaces according to the data traffic volume of the multiple second network interfaces during a first time period.

[0011] In an exemplary embodiment, allocating a first total parameter to the first data transmission level and a second total parameter to the second data transmission level based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level within a first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter, includes: extracting the sum of the data traffic of the first network interface belonging to the first data transmission level within the first time period from the historical data traffic recorded by the network adapter to obtain the first data traffic, and extracting the sum of the data traffic of the second network interface belonging to the second data transmission level within the first time period from the historical data traffic to obtain the second data traffic; calculating a first ratio between the first data traffic and the second data traffic; dividing the total data transmission parameters according to the first ratio to obtain the first total parameter and the second total parameter; allocating the first total parameter to the first data transmission level and the second total parameter to the second data transmission level.

[0012] In one exemplary embodiment, allocating data transmission parameters matching the corresponding data transmission level to each of a plurality of network interfaces includes: allocating a preset total parameter to a first network interface belonging to a first data transmission level, wherein the plurality of network interfaces includes one or more first network interfaces; allocating data transmission parameters to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level during a second time period prior to the current time and the remaining total parameter, wherein the plurality of network interfaces also includes multiple second network interfaces, the data transmission level includes a first data transmission level and a second data transmission level, the first data transmission level is used to indicate that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is less than or equal to a target requirement threshold, the third data traffic is the amount of server data transmitted by the corresponding second network interface during the second time period, and the remaining total parameter is the difference between the data transmission total parameter corresponding to the network adapter and the preset total parameter, the data transmission total parameter is used to indicate the data transmission capacity that the network adapter is allowed to provide for multiple servers.

[0013] In one exemplary embodiment, allocating data transmission parameters to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level within a second time period prior to the current time and the remaining total parameters includes: extracting the data traffic corresponding to the second network interfaces belonging to the second data transmission level within the second time period from the historical data traffic recorded by the network adapter, to obtain corresponding second network interfaces and third data traffic; calculating a second ratio between the third data traffic according to the corresponding second network interfaces and third data traffic; dividing the remaining total parameters according to the second ratio to obtain corresponding second network interfaces and data transmission parameters; and allocating the data transmission parameters to the corresponding second network interfaces.

[0014] In an exemplary embodiment, detecting the service type of the server service processed by the processor corresponding to each of the multiple network interfaces includes: extracting the data traffic corresponding to each network interface within a third time period before the current moment from the historical data traffic recorded by the network adapter, to obtain network interfaces and fourth data traffic with a corresponding relationship, wherein the fourth data traffic is the amount of server data transmitted by the corresponding network interface in the third time period; converting each fourth data traffic into unit data traffic per unit time, to obtain network interfaces and unit data traffic with a corresponding relationship; and determining the service type of the corresponding network interface when the unit data traffic is less than or equal to a data volume threshold. The network interface is classified as a management service type, which corresponds to a first data transmission level. This first data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is less than or equal to a target requirement threshold. When the unit data traffic exceeds the data volume threshold, the corresponding network interface is classified as a service service type. This service service type corresponds to a second data transmission level, which also includes a second data transmission level. This second data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service exceeds the target requirement threshold.

[0015] In one exemplary embodiment, detecting the service type of the server service processed by the processor corresponding to each of the multiple network interfaces includes: taking each network interface as a target network interface and detecting the target data type of the server data transmitted by the target network interface; if the target data type belongs to the data type generated in the management service processed by the multi-path 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, the data transmission level includes a first data transmission level, the first data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target requirement threshold; if the target data type belongs to the data type generated in the service service processed by the multi-path server, determining that the service type of the server service processed by the processor corresponding to the target network interface is a service service type, wherein the service service type corresponds to a second data transmission level, the data transmission level includes a second data transmission level, the second data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is greater than a target requirement threshold.

[0016] According to another embodiment of this application, a server system is provided, including: a network adapter and a multi-processor server. The multi-processor server is a server with multiple processors. The network adapter provides multiple network interfaces to the multi-processor server, with each network interface corresponding to one of the multiple processors. The multi-processor server is configured to process corresponding server services through the multiple processors. The network adapter is configured to detect the service type of the server service processed by the processor corresponding to each of the multiple network interfaces, obtaining a corresponding network interface and service type, wherein the service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service; detect the data transmission level of each of the multiple network interfaces according to the corresponding network interface and service type, wherein the data transmission level is used to indicate the data transmission capability requirement of the network interface for the server data to be transmitted under the corresponding server service; and allocate data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission traffic of the network interface.

[0017] In one exemplary embodiment, the network adapter is further configured to: when the service type of the target network interface among a plurality of network interfaces is detected to be a management service type, determine the data transmission level of the target network interface as a first data transmission level, wherein the management service type corresponds to the first data transmission level; and when the service type of the target network interface is detected to be a service service type, determine the data transmission level of the target network interface as a second data transmission level, wherein the service service type corresponds to the second data transmission level, and the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the management service type is less than the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the service service type.

[0018] In one exemplary embodiment, a network adapter is configured to deploy multiple multi-host network interface cards (NICs), and the network adapter is further configured to aggregate multiple network interfaces provided by the multiple multi-host NICs into multiple logical network interfaces that correspond one-to-one with the multiple processors.

[0019] In one exemplary embodiment, the network adapter is also configured to modify the media access control addresses of multiple network interfaces to the same address.

[0020] In one exemplary embodiment, the plurality of multi-host network interface cards (NICs) include a first multi-host NIC and a second multi-host NIC, and the plurality of processors include a first processor and a second processor. The first multi-host NIC provides a first physical network interface for the first processor and a second physical network interface for the second processor. The second multi-host NIC provides a third physical network interface for the first processor and a fourth physical network interface for the second processor. The first logical network interface includes both a first physical network interface and a third physical network interface, and the second logical network interface includes both a second physical network interface and a fourth physical network interface. The first logical network interface and the first processor have a corresponding relationship, and the second logical network interface and the second processor also have a corresponding relationship. The plurality of logical network interfaces include both the first logical network interface and the second logical network interface. The first multi-host NIC is further configured to: configure the physical address of the first physical network interface to a first physical address corresponding to the first processor, and configure the physical address of the second physical network interface to a second physical address corresponding to the second processor. The second multi-host NIC is further configured to: configure the physical address of the third physical network interface to a first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface to a second physical address corresponding to the second processor.

[0021] In one exemplary embodiment, the plurality of multi-host network interface cards (NICs) include a third multi-host NIC and a fourth multi-host NIC, and the plurality of processors include a third processor, a fourth processor, a fifth processor, and a sixth processor. The third multi-host NIC provides a fifth physical network interface to the third processor, a sixth physical network interface to the fourth processor, a seventh physical network interface to the fifth processor, and an eighth physical network interface to the sixth processor. The fourth multi-host NIC provides a ninth physical network interface to the third processor, a tenth physical network interface to the fourth processor, an eleventh physical network interface to the fifth processor, and a twelfth physical network interface to the sixth processor. The third logical network interface includes the fifth and ninth physical network interfaces; the fourth logical network interface includes the sixth and tenth physical network interfaces; the fifth logical network interface includes the seventh and eleventh physical network interfaces; and the sixth logical network interface includes the eighth and twelfth physical network interfaces. The third logical network interface corresponds to the third processor, and the fourth logical network interface corresponds to the fourth processor. The 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 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 also configured 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 configured 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.

[0022] According to another embodiment of this application, a flow control device for a server network port is provided, applied to a network adapter. The network adapter is used to connect a multi-port server, which is a server with multiple processors. The network adapter provides multiple network interfaces for the multi-port server, with each network interface corresponding to one of the multiple processors. The device includes: a first detection module, configured to detect the service type of the server service processed by the processor corresponding to each of the multiple network interfaces, to obtain a corresponding network interface and service type, wherein the service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service; a second detection module, configured to detect the data transmission level of each of the multiple network interfaces according to the corresponding network interface and service type, wherein the data transmission level is used to indicate the data transmission capability requirement of the network interface for the server data to be transmitted under the corresponding server service; and an allocation module, configured to allocate data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission flow of the network interface.

[0023] According to another embodiment of this application, a computer non-volatile readable storage medium is also provided, wherein a computer program is stored in the computer non-volatile readable storage medium, and the computer program is configured to execute the steps in any of the above method embodiments when running.

[0024] According to yet another embodiment of this application, an electronic device is also provided, 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 perform the steps in any of the above method embodiments.

[0025] According to yet another embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0026] This application addresses the issue of providing multiple network interfaces for connecting a multi-processor server. Each network interface corresponds one-to-one with a processor. The network adapter detects the service type of the server service processed by the processor corresponding to each network interface. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interfaces and service types, the application detects the data transmission level of each network interface, indicating the data transmission capacity requirement of the server data to be transmitted under the corresponding server service. Finally, each network interface is assigned a corresponding data transmission capacity. The data transmission parameters used to control the data transmission traffic of network interfaces are matched according to the transmission level. That is, the data transmission parameters allocated to each network interface to control the data transmission traffic of the network interface are matched with the data transmission capacity requirements of the server data to be transmitted under the corresponding server service. It can control the data transmission traffic of each network interface to meet the network data transmission capacity requirements of the server data to be transmitted on each network interface, so as to achieve reasonable allocation of network data transmission capacity of multiple server network interfaces and reasonable control of data transmission traffic of server network interfaces. Therefore, it can solve the problem of low traffic control efficiency of server network interfaces and achieve the effect of improving the traffic control efficiency of server network interfaces. Attached Figure Description

[0027] Figure 1 is a hardware structure block diagram of a server device for a server network port flow control method according to an embodiment of this application;

[0028] Figure 2 is a flowchart of a server network port traffic control method according to an embodiment of this application;

[0029] Figure 3 is a schematic diagram of a flow control method for two server network ports according to an embodiment of this application;

[0030] Figure 4 is a schematic diagram of a flow control method for a four-way server network port according to an embodiment of this application;

[0031] Figure 5 is a schematic diagram of a two-way server network port flow control method according to an embodiment of this application;

[0032] Figure 6 is a schematic diagram of a flow control method for a four-way server network port according to an embodiment of this application;

[0033] Figure 7 is a structural block diagram of a server network port flow control device according to an embodiment of this application. Detailed Implementation

[0034] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

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

[0036] The methods and embodiments provided in this application can be executed in a server device or a similar computing device. Taking a server device as an example, FIG1 is a hardware structure block diagram of a server device for a server network port flow control method according to an embodiment of this application. As shown in FIG1, the server device may include one or more (only one is shown in FIG1) processors 102 (processors 102 may include, but are not limited to, microprocessors MCUs or programmable logic devices FPGAs, etc.) and a memory 104 configured to store data. The server device may also include a transmission device 106 configured to implement communication functions and an input / output device 108. It will be understood by those skilled in the art that the structure shown in FIG1 is only illustrative and does not limit the structure of the server device. For example, the server device may also include more or fewer components than shown in FIG1, or have a different configuration than shown in FIG1.

[0037] The memory 104 may be configured to store computer programs, such as application software programs and modules, like the computer program corresponding to the server network port flow control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may include memory remotely located relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0038] The transmission device 106 is configured to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the server device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module configured to communicate wirelessly with the Internet.

[0039] This embodiment provides a flow control method for a server network port, applied to a network adapter. The network adapter is used to connect to a multi-processor server, which is a server with multiple processors. The network adapter provides multiple network interfaces for the multi-processor server, with each network interface corresponding to one of the multiple processors. Figure 2 is a flowchart of the flow control method for a server network port according to an embodiment of this application. As shown in Figure 2, the process includes the following steps:

[0040] Step S202: Detect the service type of the server service processed by the processor corresponding to each of the multiple network interfaces, and obtain the network interfaces and service types with corresponding relationships. The service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service.

[0041] Step S204: Detect the data transmission level of each network interface among multiple network interfaces according to the corresponding network interfaces and service types. The data transmission level is used to indicate the data transmission capability requirements of the network interface for the server data to be transmitted under the corresponding server service.

[0042] Step S206: Assign data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces. The data transmission parameters are used to control the data transmission traffic of the network interface.

[0043] Through the above steps, since a multi-processor server is configured to connect to multiple processors, multiple network interfaces are provided for the multi-processor server. These multiple network interfaces correspond one-to-one with the multiple processors. The network adapter detects the service type of the server service processed by the processor corresponding to each of the multiple network interfaces. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interfaces and service types, the data transmission level of each of the multiple network interfaces is detected, indicating the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service. Finally, each of the multiple network interfaces is assigned a corresponding... The data transmission parameters used to control the data transmission traffic of network interfaces, which are matched to the data transmission level, are specifically assigned to each network interface to control its data transmission traffic. These parameters are tailored to the data transmission capacity requirements of the server data to be transmitted under the corresponding server service. This ensures that the data transmission traffic of each network interface meets the network data transmission capacity requirements of the server data to be transmitted, achieving a reasonable allocation and control of the data transmission capacity of multiple server network interfaces. Therefore, it can solve the problem of low traffic control efficiency of server network interfaces and improve the efficiency of traffic control for server network interfaces.

[0044] Optionally, in this embodiment, the network adapter includes a multi-host network interface card (NIC). A multi-host NIC is a network interface card based on multiple host interfaces, which can split a single network interface into multiple physical interfaces, thereby improving network performance and reliability. The multi-host NIC enables direct connection from multiple hosts to a single network controller (e.g., a switch), achieving direct data access, reducing latency, and overcoming performance bottlenecks, thus maximizing the efficiency of data processing and data transmission. The multi-host NIC allows for flexible and heterogeneous data center designs, enabling direct data access while reducing costs and operating expenses.

[0045] Optionally, in this embodiment of the application, a multi-processor server is a server with multiple processors. The multiple processors in the multi-processor server can be configured to handle different server services. For example, the four processors in a four-processor server can be configured to handle management services, handle ordinary service 1, handle ordinary service 2, and handle ordinary service 3, respectively.

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

[0047] In the embodiment provided in step S204, the data transmission level may include, 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 data transmission capability requirement of the network interface for the server data to be transmitted under the corresponding server service is relatively small, and the second data transmission level is used to indicate that the data transmission capability requirement of the network interface for the server data to be transmitted under the corresponding server service is relatively large.

[0048] Optionally, in this embodiment, detecting the data transmission level of each network interface among multiple network interfaces based on the corresponding network interfaces and service types includes, but is not limited to, determining the data transmission level of the target network interface as a first data transmission level when the service type of the target network interface is detected to be 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 the service type of the target network interface is detected to be a service service type, wherein the service service type corresponds to the second data transmission level.

[0049] Optionally, in this embodiment, detecting the data transmission level of each network interface among multiple network interfaces based on the corresponding network interfaces and service types includes, but is not limited to, detecting the service type change parameters corresponding to each network interface within multiple flow control time periods prior to the current time. The service type change parameters indicate the number of times the service type corresponding to each network interface changes within multiple flow control time periods. If the service type change parameter is greater than or equal to a change parameter threshold, the data transmission level of the target network interface is determined as the fourth data transmission level. The change parameter threshold corresponds to the number of flow control time periods in which the service type change parameters are detected. If the service type change parameter is less than the change parameter threshold, the latest data transmission level before the current time is detected. The system first identifies the target service type of each network interface among multiple detected network interfaces. If the target service type of the target network interface is a management service type, its data transmission level is determined to be the third data transmission level. If the target service type is a service type, its data transmission level is determined to be the fifth data transmission level. The data transmission capacity requirement indicated by the third data transmission level is lower than that indicated by the fourth data transmission level, and vice versa. These steps prevent inaccurate service type detection from leading to incorrect data transmission level determinations for network interfaces, thus further avoiding the allocation of unreasonable data transmission parameters to various network interfaces.

[0050] In the embodiment provided in step S206, the data transmission parameter includes, but is not limited to, a percentage of the data transmission capacity provided by the network adapter, or a value representing a percentage of the total bandwidth of the network adapter. For example, the data transmission parameter may be a percentage of the total bandwidth of the network adapter (e.g., 50%), or it may be a bandwidth value.

[0051] As an optional implementation, data transmission parameters matching the corresponding data transmission level are assigned to each of the multiple network interfaces, including:

[0052] Based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level within the first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter, a first total parameter is assigned to the first data transmission level and a second total parameter is assigned to the second data transmission level. Here, multiple network interfaces include one or more first network interfaces and one or more second network interfaces. The data transmission levels include a first data transmission level and a second data transmission level. The first data transmission level indicates that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target requirement threshold. The second data transmission level indicates that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is greater than the target requirement threshold. The first data traffic is the total amount of server data transmitted by the first network interface within the first time period, and the second data traffic is the total amount of server data transmitted by the second network interface within the first time period. The total data transmission parameters indicate the data transmission capacity that the network adapter is allowed to provide for multiple servers.

[0053] The first total parameter is assigned to one or more first network interfaces, and the second total parameter is assigned to one or more second network interfaces.

[0054] Optionally, in the embodiments of this application, the target demand threshold may be, but is not limited to, continuously adjusted based on multiple network port traffic control processes.

[0055] Optionally, in the embodiments of this application, when there are multiple first network interfaces, allocating the first total parameter to one or more first network interfaces includes, but is not limited to, distributing the first total parameter equally among the multiple first network interfaces or allocating the first total parameter to the multiple first network interfaces according to the data traffic volume of the multiple first network interfaces in the first time period; when there are multiple second network interfaces, allocating the second total parameter to one or more second network interfaces may include, but is not limited to, distributing the second total parameter equally among the multiple second network interfaces or allocating the second total parameter to the multiple second network interfaces according to the data traffic volume of the multiple second network interfaces in the first time period.

[0056] As an optional implementation, based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level within a first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter, a first total parameter is assigned to the first data transmission level and a second total parameter is assigned to the second data transmission level, including:

[0057] The first data traffic is obtained by extracting the sum of the data traffic of the first network interface belonging to the first data transmission level within the first time period from the historical data traffic recorded by the network adapter, and the second data traffic is obtained by extracting the sum of the data traffic of the second network interface belonging to the second data transmission level within the first time period from the historical data traffic.

[0058] Calculate the first ratio between the first data traffic and the second data traffic;

[0059] The total data transmission parameters are divided according to the first ratio to obtain the first total parameter and the second total parameter.

[0060] The first total parameter is assigned to the first data transmission level, and the second total parameter is assigned to the second data transmission level.

[0061] 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 traffic and the second data traffic. When allocating data transmission parameters, the data traffic performance of the corresponding data transmission level in the first time period is taken into account, so that the allocated data transmission parameters match its data traffic requirements and improve the rationality of data transmission resource allocation.

[0062] As an optional implementation, data transmission parameters matching the corresponding data transmission level are assigned to each of the multiple network interfaces, including:

[0063] Assign preset total parameters to the first network interface belonging to the first data transmission level in the second time period before the current time, wherein multiple network interfaces include one or more first network interfaces;

[0064] Based on the third data traffic of each second network interface belonging to the second data transmission level during the second time period and the remaining total parameters, data transmission parameters are assigned to each second network interface. Multiple network interfaces include multiple second network interfaces. The data transmission levels include a first data transmission level and a second data transmission level. The first data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is less than or equal to the target requirement threshold. The second data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is greater than the target requirement threshold. Each third data traffic is the amount of server data transmitted by the corresponding second network interface during the second time period. The remaining total parameters are the difference between the total data transmission parameters corresponding to the network adapter and the preset total parameters. The total data transmission parameters indicate the data transmission capacity that the network adapter is allowed to provide for multiple servers.

[0065] Optionally, in this embodiment, the preset total parameter may be determined, but is not limited to, based on the maximum value of the data traffic transmitted by the first network interface belonging to the first data transmission level over a relatively long period of time.

[0066] By following the steps above, a preset total parameter is allocated to the first network interface belonging to the first data transmission level. While meeting the data transmission requirements of the first network interface, more data transmission capacity is reserved for the network interface belonging to the second data transmission level, which has relatively higher data transmission requirements. This makes the allocation of data transmission capacity more reasonable and improves the traffic control efficiency of the server network interface.

[0067] As an optional implementation, data transmission parameters are allocated to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level during the second time period and the remaining total parameters, including:

[0068] Extract the data traffic corresponding to the second network interface that belongs to the second data transmission level in the second time period from the historical data traffic recorded by the network adapter device, and obtain the second network interface and the third data traffic with corresponding relationship;

[0069] Calculate the second ratio between each third data traffic according to the corresponding second network interface and third data traffic;

[0070] The remaining total parameters are divided according to the second ratio to obtain the corresponding second network interface and data transmission parameters;

[0071] Assign the data transmission parameters to the corresponding second network interface.

[0072] As an optional implementation, the service type of the server service processed by the processor corresponding to each of the multiple network interfaces is detected, including:

[0073] Extract the data traffic corresponding to each network interface in the third time period before the current moment from the historical data traffic recorded by the network adapter device, and obtain the network interfaces with corresponding relationships and the fourth data traffic. The fourth data traffic is the amount of server data transmitted by the corresponding network interface in the third time period among multiple network interfaces.

[0074] Each fourth data traffic is converted into a unit data traffic per unit time, resulting in a network interface and unit data traffic with a corresponding relationship.

[0075] When the unit data traffic is less than or equal to the data volume threshold, the service type of the corresponding network interface is determined to be the management service type. The management service type corresponds to the first data transmission level. The data transmission level includes the first data transmission level, which is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target requirement threshold.

[0076] When the unit data traffic exceeds the data volume threshold, the service type of the corresponding network interface is determined as the service service type. The service service type corresponds to the second data transmission level, which also includes a second data transmission level. The second data transmission level is used to indicate that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service exceeds the target requirement threshold.

[0077] Optionally, in the embodiments of this application, the unit time and the duration of the third time period may or may not have a corresponding relationship, and the shorter the duration of the third time period, the shorter the unit time.

[0078] Optionally, in this embodiment, the amount of server data to be transmitted on the network interface of a service-type business is generally larger under the corresponding server business, while the amount of server data to be transmitted on the network interface of a management-type business is smaller under the corresponding server business.

[0079] By taking the above steps, the service type of the network interface is determined by the unit data traffic per unit time corresponding to the third time period. The amount of server data to be transmitted is predicted based on the traffic performance over a period of time. This simple and accurate method determines the service type of the server service processed by the processor corresponding to the network interface, providing a basis for accurately and reasonably allocating data transmission parameters and improving the traffic control efficiency of the server network interface to a certain extent.

[0080] As an optional implementation, the service type of the server service processed by the processor corresponding to each of the multiple network interfaces is detected, including:

[0081] Each network interface is used as the target network interface to detect the target data type of the server data transmitted by the target network interface;

[0082] When the target data type belongs to the data type generated in the management 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 the management business type. The management business type corresponds to the first data transmission level. The data transmission level includes the first data transmission level, which is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server business is less than or equal to the target requirement threshold.

[0083] When the target data type belongs to the data type generated in the service business processed by the multi-way server, the service business type of the server business processed by the processor corresponding to the target network interface is determined as the service business type. The service business type corresponds to the second data transmission level, which also includes the second data transmission level. The second data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server business is greater than the target requirement threshold.

[0084] By following the above steps, the service type of the server service processed by the processor corresponding to the network interface is determined based on the data type of the transmitted server data. This accurately reveals the service type of the server service processed by the processor corresponding to the network interface, ensuring the accuracy of the basis for allocating data transmission parameters.

[0085] As an optional implementation method, this application also provides a method for controlling network port traffic for two servers. Figure 3 is a schematic diagram of a two-way server network interface traffic control method according to an embodiment of this application. As shown in Figure 3, a single multi-host network card (i.e., network adapter) can be divided into two X8 network interfaces on two-way servers (i.e., multi-way servers). In the multi-host networking shown in Figure 3, a single network interface is split into two network interfaces, each of which is an X8 device. The network interfaces split from the two multi-host network cards on the same server are bonded (bonded and aggregated) respectively. For example, network interface PF0 is bound to network interface PF00 to generate logical network interface bond0, and network interface PF1 is bound to network interface PF01 to generate logical network interface bond1. In actual customer business deployment, bond0 can be used as the entry and exit point on the business side, and bond1 can be used as the entry and exit point on the management side. Customers can appropriately allocate the bandwidth limit ratio of bond0 and bond1 according to their own business categories. Usually, when the business volume is relatively large, the bandwidth ratio of bond0 can be increased, while the bandwidth ratio of the management entry point is usually smaller. This solution employs a relatively flexible allocation scheme, allowing traffic to be distributed between bond0 and bond1 in ratios such as 1:9, 2:8, 3:7, 4:6, and 5:5. This enables a reduction in the proportion of bond1 traffic and an increase in the proportion of bond0 traffic during periods of high business traffic, achieving a relatively reasonable resource utilization ratio and improving resource efficiency.

[0086] As an optional implementation, this application also provides a method for controlling network port traffic of a four-way server. Figure 4 is a schematic diagram of the traffic control method for a four-way server network port according to an embodiment of this application. As shown in Figure 4, in a four-way server (i.e., a multi-way server), a single-port multi-host network card (i.e., a network adapter) is split into four x4 network interfaces, namely PF0, PF1, PF2, and PF3; another single-port multi-host network card is split into four x4 network interfaces, namely PF00, PF01, PF02, and PF03. These interfaces can be bound and aggregated according to PF0 and PF00, PF1 and PF01, PF2 and PF02, and PF3 and PF03 respectively to obtain bond0, bond1, bond2, bond3, etc. This allows for more flexible traffic control allocation, with bandwidth allocated according to a 1:2:3:4 ratio or other custom ratios. Furthermore, traffic can be specifically allocated according to four types of services, such as management entry / exit, service entry / exit 1, service entry / exit 2, and service entry / exit 3, giving customers more choices. Typically, management-type inbound and outbound traffic can be configured with a minimum ratio of 1, while the other three service types can be configured with a total ratio of 9. The bandwidth allocation for the three service types inbound and outbound traffic is adjusted according to specific traffic performance, and can be in various ways such as 3:3:3 or 1:2:6. Bond0 can be configured as a management-type inbound and outbound traffic, while bonds1, 2, and 3 can be configured as service-type inbound and outbound traffic.

[0087] Optionally, in this embodiment, resource allocation for multiple network ports can be automatically completed by setting rate limits for the outbound and inbound ports of the multi-host network interface cards. A static service mode or a shared mode can be selected according to requirements. The static mode ensures fairness among hosts; the shared mode is a competitive mode that allows different devices with the same device to compete based on traffic. In the shared mode, more resources can be used.

[0088] As an optional implementation, this application also provides a server system, including: a network adapter and a multi-processor server, wherein the multi-processor server is a server with multiple processors, and the network adapter provides multiple network interfaces for the multi-processor server, wherein each of the multiple network interfaces corresponds to one of the multiple processors.

[0089] A multi-processor server is configured to handle corresponding server tasks using multiple processors.

[0090] The network adapter is configured to detect the service type of the server service processed by the processor corresponding to each of the multiple network interfaces, thereby obtaining a corresponding network interface and service type. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interface and service type, the adapter detects the data transmission level of each of the multiple network interfaces. The data transmission level indicates the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service. Finally, the adapter assigns data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces, where the data transmission parameters control the data transmission traffic of the network interface.

[0091] The above server system, by providing multiple network interfaces for connecting multi-processor servers, ensures that each network interface corresponds one-to-one with a processor. The network adapter detects the service type of the server service processed by the processor corresponding to each network interface. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interfaces and service types, the system detects the data transmission level of each network interface, indicating the data transmission capacity requirement of the server data to be transmitted under the corresponding server service. Finally, each network interface is assigned a corresponding... The data transmission parameters used to control the data transmission traffic of network interfaces are matched with the data transmission level. That is, the data transmission parameters allocated to each network interface to control the data transmission traffic of the network interface are matched with the data transmission capacity requirements of the server data to be transmitted under the corresponding server service. This can control the data transmission traffic of each network interface to meet the network data transmission capacity requirements of the server data to be transmitted on each network interface, so as to achieve reasonable allocation of network data transmission capacity of multiple server network interfaces and reasonable control of data transmission traffic of server network interfaces. Therefore, it can solve the problem of low traffic control efficiency of server network interfaces and achieve the effect of improving the traffic control efficiency of server network interfaces.

[0092] As an optional implementation, the network adapter deploys multiple multi-host network interface cards (NICs), and the network adapter is also configured to aggregate the multiple network interfaces provided by the multiple multi-host NICs into multiple logical network interfaces that correspond one-to-one with the multiple processors.

[0093] Optionally, in this embodiment of the application, multiple network ports separated from a multi-host network card are bound into a single logical interface, which can simplify network configuration and management and reduce network complexity.

[0094] Optionally, in this embodiment, bonding technology is used to modify the MAC addresses (Media Access Control Addresses) of multiple physical network interfaces to the same address, allowing these physical network interfaces to 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 a single logical interface, thereby increasing bandwidth, improving availability and redundancy, which is very practical for scenarios requiring high bandwidth and high availability.

[0095] Optionally, in this embodiment of the application, the bandwidth ingress and egress rate limiting ratio of the logical network interface can be adjusted, but is not limited to, to ensure that the traffic on the customer's service side and the traffic on the management side can be allocated in an appropriate proportion.

[0096] By aggregating multiple network interfaces corresponding to the processor into a logical interface corresponding to the aforementioned processor through the above steps, the bandwidth of multiple physical links can be integrated together to provide higher total bandwidth for the corresponding processor.

[0097] As an optional implementation, the multiple multi-host network interface cards (NICs) include a first multi-host NIC and a second multi-host NIC, and the multiple processors include a first processor and a second processor. The first multi-host NIC provides a first physical network interface for the first processor and a second physical network interface for the second processor. The second multi-host NIC provides a third physical network interface for the first processor and a fourth physical network interface for the second processor. The first logical network interface includes a first physical network interface and a third physical network interface, and the second logical network interface includes a second physical network interface and a fourth physical network interface. The first logical network interface and the first processor have a corresponding relationship, and the second logical network interface and the second processor have a corresponding relationship. The multiple logical network interfaces include the first logical network interface and the second logical network interface.

[0098] The first multi-host network interface card is further configured to: configure the physical address of the first physical network interface to the first physical address corresponding to the first processor, and configure the physical address of the second physical network interface to the second physical address corresponding to the second processor; the second multi-host network interface card is further configured to: configure the physical address of the third physical network interface to the first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface to the second physical address corresponding to the second processor.

[0099] Optionally, in this embodiment, Figure 5 is a schematic diagram of the flow control method for two server network ports according to an embodiment of this application. As shown in Figure 5, the first multi-host network card and the second multi-host network card deployed in the network adapter provide a first physical network interface, a second physical network interface, a third physical network interface, and a fourth physical network interface for the multi-port server, respectively. 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 assigned to the first processor, and the X8 pin of the second physical network interface is assigned to the second processor. 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 to the first physical address corresponding to the first processor, it is equivalent to providing the first processor with a first logical network interface with greater bandwidth. By configuring the physical addresses of the second physical network interface and the fourth physical network interface to the second physical address corresponding to the second processor, it is equivalent to providing the second processor with a second logical network interface with greater bandwidth.

[0100] Through the above steps, the first processor in the two servers is assigned a first physical network port provided by the first multi-host network card and a third physical network port provided by the second multi-host network card. The second processor is assigned a second physical network port provided by the first multi-host network card and a fourth physical network port provided by the second multi-host network card. The physical network ports corresponding to the same processor are aggregated, which allows for the adjustment of the server data transmission traffic between the first and second processors while enhancing the data transmission capability of the first and second processors, thereby improving the data transmission efficiency of the entire server system.

[0101] As an optional implementation, the multiple multi-host network interface cards (NICs) include a third multi-host NIC and a fourth multi-host NIC, and the multiple processors include a third processor, a fourth processor, a fifth processor, and a sixth processor. The third multi-host NIC 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 NIC 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. The third logical network interface includes... It 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 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.

[0102] The third multi-host network interface card is also configured 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.

[0103] The fourth multi-host network interface card is also configured 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.

[0104] Optionally, in this embodiment of the application, Figure 6 is a schematic diagram of the flow control method of a four-way server network port according to the embodiment of the application. As shown in Figure 6, the third and fourth multi-host network cards deployed in the network adapter provide the fifth, sixth, seventh, and eighth physical network interfaces, as well as the ninth, tenth, eleventh, and twelfth physical network interfaces, respectively, for the multi-way server. 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 assigned to the third processor, the X4 pin of the sixth physical network interface is assigned to the fourth processor, the X4 pin of the seventh physical network interface is assigned to the fifth processor, and the X4 pin of the eighth physical network interface is assigned to the sixth processor. 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 and ninth physical network interfaces to the third physical address corresponding to the third processor, it is equivalent to providing the third processor with a third logical network interface with greater bandwidth. Similarly, by configuring the physical addresses of the sixth and tenth physical network interfaces to the fourth physical address corresponding to the fourth processor, it is equivalent to providing the fourth processor with a fourth logical network interface with greater bandwidth. Likewise, by configuring the physical addresses of the seventh and eleventh physical network interfaces to the fifth physical address corresponding to the fifth processor, it is equivalent to providing the fifth processor with a fifth logical network interface with greater bandwidth. Finally, by configuring the physical addresses of the eighth and twelfth physical network interfaces to the sixth physical address corresponding to the sixth processor, it is equivalent to providing the sixth processor with a sixth logical network interface with greater bandwidth.

[0105] Optionally, in this embodiment, multiple host network interface cards (NICs) are used instead of ordinary NICs for network bonding, enabling more individual network port functions to be implemented without changing the overall server slot size. The physical network ports separated by the multiple host NICs can be bonded together to achieve redundancy or aggregation.

[0106] Through the above steps, the third processor in the four-way server is assigned 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; the fourth processor is assigned the sixth and tenth physical network ports provided by the third multi-host network card; the fifth processor is assigned the seventh and eleventh physical network ports provided by the third multi-host network card and the fourth multi-host network card; and the sixth processor is assigned the eighth and twelfth physical network ports provided by the third multi-host network card and the fourth multi-host network card. Furthermore, physical network ports corresponding to the same processor are aggregated. This allows for adjustment of the server data transmission traffic of the third, fourth, fifth, and sixth processors while enhancing the data transmission capacity of these processors, thereby improving the overall data transmission efficiency of the server system.

[0107] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0108] This embodiment also provides a flow control device for a server network port, applied to a network adapter. The network adapter is used to connect to a multi-processor server, which is a server with multiple processors. The network adapter provides multiple network interfaces to the multi-processor server, with each network interface corresponding one-to-one with a processor. This device is used to implement the above embodiments and optional implementations; details already described will not be repeated. As used below, the term "module" can refer to software and / or a combination of hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0109] Figure 7 is a structural block diagram of a server network port flow control device according to an embodiment of this application. As shown in Figure 7, the device includes:

[0110] The first detection module 702 is configured to detect the service type of the server service processed by the processor corresponding to each of the multiple network interfaces, and obtain the network interfaces and service types with corresponding relationships. The service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service.

[0111] The second detection module 704 is configured to detect the data transmission level of each network interface among multiple network interfaces based on the corresponding network interfaces and service types. The data transmission level is used to indicate the data transmission capability requirements of the network interface for the server data to be transmitted under the corresponding server service.

[0112] The allocation module 706 is configured to allocate data transmission parameters matching the corresponding data transmission level to each of the multiple network interfaces, wherein the data transmission parameters are used to control the data transmission traffic of the network interface.

[0113] This application addresses the issue of providing multiple network interfaces for connecting a multi-processor server. Each network interface corresponds one-to-one with a processor. The network adapter detects the service type of the server service processed by the processor corresponding to each network interface. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interfaces and service types, the application detects the data transmission level of each network interface, indicating the data transmission capacity requirement of the server data to be transmitted under the corresponding server service. Finally, each network interface is assigned a corresponding data transmission capacity. The data transmission parameters used to control the data transmission traffic of network interfaces are matched according to the transmission level. That is, the data transmission parameters allocated to each network interface to control the data transmission traffic of the network interface are matched with the data transmission capacity requirements of the server data to be transmitted under the corresponding server service. It can control the data transmission traffic of each network interface to meet the network data transmission capacity requirements of the server data to be transmitted on each network interface, so as to achieve reasonable allocation of network data transmission capacity of multiple server network interfaces and reasonable control of data transmission traffic of server network interfaces. Therefore, it can solve the problem of low traffic control efficiency of server network interfaces and achieve the effect of improving the traffic control efficiency of server network interfaces.

[0114] As an optional implementation, the allocation module includes: 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 based on the ratio between the first data traffic of a first network interface belonging to a first data transmission level within a first time period prior to the current time and the second data traffic of a second network interface belonging to a second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter. The multiple network interfaces include one or more first network interfaces and one or more second network interfaces, and the data transmission levels include a first data transmission level and a second data transmission level. The first data transmission level is used to indicate the data transmission to be transmitted by the network interface under the corresponding server service. The data transmission capacity requirement of the network interface for the outgoing server data is less than or equal to the target requirement threshold. The second data transmission level is used to indicate that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is greater than the target requirement threshold. The first data flow is the total amount of server data transmitted by the first network interface in the first time period, and the second data flow is the total amount of server data transmitted by the second network interface in the first time period. The total data transmission parameter is used to indicate the data transmission capacity that the network adapter is allowed to provide for multiple servers. The second allocation unit is configured to allocate the first total parameter to one or more first network interfaces and allocate the second total parameter to one or more second network interfaces.

[0115] Optionally, the first allocation unit is further configured to: extract the sum of data traffic from the first network interface belonging to the first data transmission level within a first time period from the historical data traffic recorded by the network adapter to obtain the first data traffic, and extract the sum of data traffic from the second network interface belonging to the second data transmission level within the first time period from the historical data traffic to obtain the second data traffic; calculate the first ratio between the first data traffic and the second data traffic; divide the total data transmission parameters according to the first ratio to obtain the first total parameter and the second total parameter; allocate the first total parameter to the first data transmission level, and allocate the second total parameter to the second data transmission level.

[0116] As an optional implementation, the allocation module further includes: a third allocation unit configured to allocate a preset total parameter to a first network interface belonging to a first data transmission level, wherein the multiple network interfaces include one or more first network interfaces; and a fourth allocation unit configured to allocate data transmission parameters to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level during a second time period prior to the current time and the remaining total parameter, wherein the multiple network interfaces include multiple second network interfaces, the data transmission level includes a first data transmission level and a second data transmission level, the first data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target requirement threshold, the second data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is greater than the target requirement threshold, each third data traffic is the amount of server data transmitted by the corresponding second network interface during the second time period, and the remaining total parameter is the difference between the data transmission total parameter corresponding to the network adapter and the preset total parameter, the data transmission total parameter being used to indicate the data transmission capacity that the network adapter is allowed to provide to multiple servers.

[0117] Optionally, the fourth allocation unit is further configured to: extract the data traffic corresponding to the second network interface belonging to the second data transmission level within the second time period from the historical data traffic recorded by the network adapter, to obtain the corresponding second network interface and third data traffic; calculate the second ratio between each third data traffic according to the corresponding second network interface and third data traffic; divide the remaining total parameters according to the second ratio to obtain the corresponding second network interface and data transmission parameters; and allocate the data transmission parameters to the corresponding second network interface.

[0118] As an optional implementation, the first detection module includes: an extraction unit configured to extract data traffic corresponding to each network interface within a third time period prior to the current moment from historical data traffic recorded by the network adapter, obtaining network interfaces with a corresponding relationship and a fourth data traffic, wherein the fourth data traffic is the amount of server data transmitted by the corresponding network interface among multiple network interfaces within the third time period; a conversion unit configured to convert each fourth data traffic into unit data traffic per unit time, obtaining network interfaces with a corresponding relationship and unit data traffic; and a first determination unit configured to determine that the service type of the corresponding network interface is management service when the unit data traffic is less than or equal to a data volume threshold. The network interface is configured to: 1) be a service service type, wherein the management service type corresponds to a first data transmission level, which indicates that the data transmission capacity requirement of the server data to be transmitted on the network interface under the corresponding server service is less than or equal to a target requirement threshold; and 2) be a determining unit, configured to determine the service type of the corresponding network interface as a service service type when the unit data traffic exceeds a data volume threshold, wherein the service service type corresponds to a second data transmission level, which also includes a second data transmission level, indicating that the data transmission capacity requirement of the server data to be transmitted on the network interface under the corresponding server service is greater than a target requirement threshold.

[0119] As an optional implementation, the first detection module further includes: a detection unit configured to detect the target data type of the server data transmitted by the target network interface, taking each network interface as the target network interface; a third determination unit configured to determine, when the target data type belongs to the data type generated in the management service processed by the multi-path server, 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, the data transmission level includes a first data transmission level, the first data transmission level is used to indicate that the data transmission capability requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target requirement threshold; and a fourth determination unit configured to determine, when the target data type belongs to the data type generated in the service service processed by the multi-path server, the service type of the server service processed by the processor corresponding to the target network interface is a service service type, wherein the service service type corresponds to a second data transmission level, the data transmission level includes a second data transmission level, the second data transmission level is used to indicate that the data transmission capability requirement of the server data to be transmitted by the network interface under the corresponding server service is greater than a target requirement threshold.

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

[0121] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0122] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0123] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0124] In one 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.

[0125] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0126] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.

[0127] Embodiments of this application also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.

[0128] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0129] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0130] The above description is merely an optional embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling the flow of a server network port, characterized in that, The method is applied to a network adapter for connecting a multi-processor server, wherein the multi-processor server is a server with multiple processors, and the network adapter provides multiple network interfaces to the multi-processor server, each network interface corresponding one-to-one with one of the multiple processors. The service type of the server service processed by the processor corresponding to each of the plurality of network interfaces is detected to obtain the network interfaces and service types with corresponding relationships. The service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interfaces and service types, the data transmission level of each of the multiple network interfaces is detected, wherein the data transmission level is used to indicate the data transmission capability requirements of the network interface for the server data to be transmitted under the corresponding server service. Assign data transmission parameters matching the corresponding data transmission level to each of the plurality of network interfaces, wherein the data transmission parameters are used to control the data transmission traffic of the network interface.

2. The method according to claim 1, characterized in that, The step of detecting the data transmission level of each of the multiple network interfaces based on the corresponding network interfaces and service types includes: If the service type of the target network interface among the multiple network interfaces is detected to be a management service type, the data transmission level of the target network interface is determined to be a first data transmission level, wherein the management service type corresponds to the first data transmission level; If the service type of the target network interface is detected to be a service service type, the data transmission level of the target network interface is determined to be a second data transmission level. The service service type corresponds to the second data transmission level, and the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the management service type is less than the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the service service type.

3. The method according to claim 1, characterized in that, Assigning data transmission parameters matching the corresponding data transmission level to each of the plurality of network interfaces includes: Based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level within the first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level within the first time period, and the total data transmission parameters corresponding to the network adapter, a first total parameter is allocated to the first data transmission level and a second total parameter is allocated to the second data transmission level. The plurality of network interfaces includes one or more first network interfaces and one or more second network interfaces. The data transmission level includes the first data transmission level and the second data transmission level. The first data transmission level indicates that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to a target requirement threshold. The second data transmission level indicates that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is greater than the target requirement threshold. The first data traffic is the total amount of server data transmitted by the first network interface within the first time period, and the second data traffic is the total amount of server data transmitted by the second network interface within the first time period. The total data transmission parameter indicates the data transmission capacity that the network adapter is allowed to provide to the multi-path servers. The first total parameter is assigned to one or more of the first network interfaces, and the second total parameter is assigned to one or more of the second network interfaces.

4. The method according to claim 3, characterized in that, Assigning the first total parameter to one or more of the first network interfaces includes: In the case where the plurality of network interfaces includes a plurality of first network interfaces, the first total parameter is distributed equally among the plurality of first network interfaces, or the first total parameter is distributed among the plurality of first network interfaces according to the data traffic volume of the plurality of first network interfaces during the first time period.

5. The method according to claim 3, characterized in that, Assigning the second total parameter to one or more of the second network interfaces includes: In the case where the plurality of network interfaces includes a plurality of second network interfaces, the second total parameter is distributed equally among the plurality of second network interfaces, or the second total parameter is distributed among the plurality of second network interfaces according to the data traffic volume of the plurality of second network interfaces during the first time period.

6. The method according to claim 3, characterized in that, The step of allocating a first total parameter to the first data transmission level and a second total parameter to the second data transmission level based on the ratio between the first data traffic of the first network interface belonging to the first data transmission level during the first time period prior to the current time and the second data traffic of the second network interface belonging to the second data transmission level during the first time period, and the total data transmission parameters corresponding to the network adapter, includes: The first data traffic is obtained by extracting the sum of the data traffic of the first network interface belonging to the first data transmission level within the first time period from the historical data traffic recorded by the network adapter, and the second data traffic is obtained by extracting the sum of the data traffic of the second network interface belonging to the second data transmission level within the first time period from the historical data traffic. Calculate the first ratio between the first data traffic and the second data traffic; The total data transmission parameters are divided according to the first ratio to obtain the first total parameter and the second total parameter; The first total parameter is assigned to the first data transmission level, and the second total parameter is assigned to the second data transmission level.

7. The method according to claim 1, characterized in that, Assigning data transmission parameters matching the corresponding data transmission level to each of the plurality of network interfaces includes: A preset total parameter is assigned to the first network interface belonging to the first data transmission level during the second time period before the current time, wherein the plurality of network interfaces includes one or more of the first network interfaces; The data transmission parameters are allocated to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level during the second time period and the remaining total parameters. The plurality of network interfaces includes multiple second network interfaces. The data transmission level includes a first data transmission level and a second data transmission level. The first data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is less than or equal to a target requirement threshold. The second data transmission level indicates that the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service is greater than the target requirement threshold. Each third data traffic is the amount of server data transmitted by the corresponding second network interface during the second time period. The remaining total parameters are the difference between the total data transmission parameters corresponding to the network adapter and the preset total parameters. The total data transmission parameters indicate the data transmission capacity that the network adapter is allowed to provide to the multi-path servers.

8. The method according to claim 7, characterized in that, The step of allocating the data transmission parameters to each second network interface based on the third data traffic of each second network interface belonging to the second data transmission level during the second time period and the remaining total parameters includes: Extract the data traffic corresponding to each of the second network interfaces that belong to the second data transmission level during the second time period from the historical data traffic recorded by the network adapter, and obtain the second network interfaces and the third data traffic with corresponding relationship; Calculate the second ratio between each of the third data traffic according to the corresponding relationship between the second network interface and the third data traffic; The remaining total parameters are divided according to the second ratio to obtain the second network interface and the data transmission parameters with corresponding relationships; The data transmission parameters are assigned to the corresponding second network interface.

9. The method according to claim 1, characterized in that, The detection of the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes: Extract the data traffic corresponding to each network interface in the third time period before the current time from the historical data traffic recorded by the network adapter device, and obtain the network interface and the fourth data traffic with corresponding relationship, wherein each of the fourth data traffic is the amount of server data transmitted by the corresponding network interface in the third time period among the plurality of network interfaces. Each of the fourth data traffic flows is converted into a unit data flow per unit time to obtain the network interface and the unit data flow with a corresponding relationship; When the unit data traffic is less than or equal to the data volume threshold, the service type of the corresponding network interface is determined to be a management service type. The management service type corresponds to a first data transmission level. The data transmission level includes the first data transmission level, which is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target requirement threshold. When the unit data traffic exceeds the data volume threshold, the service type of the corresponding network interface is determined to be a service service type. The service service type corresponds to a second data transmission level, which further includes the second data transmission level. The second data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server service exceeds the target requirement threshold.

10. The method according to claim 1, characterized in that, The detection of the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces includes: Using each of the network interfaces as the target network interface, detect the target data type of the server data transmitted by the target network interface; When the target data type belongs to the data type generated in the management service processed by the multi-path server, the service type of the server service processed by the processor corresponding to the target network interface is determined to be the management service type. The management service type corresponds to the first data transmission level. The data transmission level includes the first data transmission level. The first data transmission level is used to indicate that the data transmission capability requirement of the server data to be transmitted by the network interface under the corresponding server service is less than or equal to the target requirement threshold. If the target data type belongs to the data type generated in the service business processed by the multi-path server, the service type of the server business processed by the processor corresponding to the target network interface is determined as the service business type. The service business type corresponds to the second data transmission level, and the data transmission level also includes the second data transmission level. The second data transmission level is used to indicate that the data transmission capacity requirement of the server data to be transmitted by the network interface under the corresponding server business is greater than the target requirement threshold.

11. A server system, characterized in that, It includes: a network adapter and a multi-processor server, wherein the multi-processor server is a server with multiple processors, and the network adapter provides multiple network interfaces for the multi-processor server, wherein each of the multiple network interfaces corresponds to one of the multiple processors; The multi-processor server is configured to process corresponding server services through the multiple processors. The network adapter is configured to detect the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces, thereby obtaining a corresponding network interface and service type. The service type indicates the amount of server data to be transmitted by the network interface under the corresponding server service. Based on the corresponding network interface and service type, the adapter detects the data transmission level of each of the plurality of network interfaces. The data transmission level indicates the data transmission capacity requirement of the network interface for the server data to be transmitted under the corresponding server service. The adapter then assigns data transmission parameters matching the corresponding data transmission level to each of the plurality of network interfaces, wherein the data transmission parameters control the data transmission traffic of the network interface.

12. The system according to claim 11, characterized in that, The network adapter is further configured to: If the service type of the target network interface among the multiple network interfaces is detected to be a management service type, the data transmission level of the target network interface is determined to be a first data transmission level, wherein the management service type corresponds to the first data transmission level; If the service type of the target network interface is detected to be a service service type, the data transmission level of the target network interface is determined to be a second data transmission level. The service service type corresponds to the second data transmission level, and the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the management service type is less than the amount of server data to be transmitted by the network interface under the corresponding server service indicated by the service service type.

13. The system according to claim 11, characterized in that, The network adapter is configured to deploy multiple multi-host network interface cards (NICs), and the network adapter is also configured to aggregate the multiple network interfaces provided by the multiple multi-host NICs into multiple logical network interfaces that correspond one-to-one with the multiple processors.

14. The system according to claim 13, characterized in that, The network adapter is also configured to modify the media access control addresses of the plurality of network interfaces to the same address.

15. The system according to claim 13, characterized in that, The plurality of multi-host network interface cards (NICs) include a first multi-host NIC and a second multi-host NIC. The plurality of processors include a first processor and a second processor. The first multi-host NIC provides a first physical network interface for the first processor and a second physical network interface for the second processor. The second multi-host NIC provides a third physical network interface for the first processor and a fourth physical network interface for the second processor. 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. The plurality of logical network interfaces include the first logical network interface and the second logical network interface. The first multi-host network interface card is further configured to: configure the physical address of the first physical network interface to a first physical address corresponding to the first processor, and configure the physical address of the second physical network interface to a second physical address corresponding to the second processor; the second multi-host network interface card is further configured to: configure the physical address of the third physical network interface to a first physical address corresponding to the first processor, and configure the physical address of the fourth physical network interface to a second physical address corresponding to the second processor.

16. The system according to claim 13, characterized in that, The plurality of multi-host network interface cards (NICs) includes a third multi-host NIC and a fourth multi-host NIC. The plurality of processors includes a third processor, a fourth processor, a fifth processor, and a sixth processor. The third multi-host NIC 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 NIC 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. 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 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; The third multi-host network interface card is further configured 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 interface card is further configured 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.

17. A flow control device for a server network port, characterized in that, A network adapter is used to connect to a multi-processor server, wherein the multi-processor server is a server with multiple processors, and the network adapter provides multiple network interfaces to the multi-processor server, each network interface corresponding one-to-one with one of the multiple processors. The device includes: The first detection module is configured to detect the service type of the server service processed by the processor corresponding to each of the plurality of network interfaces, and obtain the network interfaces and service types with corresponding relationships, wherein the service type is used to indicate the amount of server data to be transmitted by the network interface under the corresponding server service. The second detection module is configured to detect the data transmission level of each of the multiple network interfaces according to the corresponding network interfaces and service types. The data transmission level is used to indicate the data transmission capability requirements of the network interface for the server data to be transmitted under the corresponding server service. The allocation module is configured to allocate data transmission parameters matching the corresponding data transmission level to each of the plurality of network interfaces, wherein the data transmission parameters are used to control the data transmission traffic of the network interface.

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

19. 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, it implements the steps of the method described in any one of claims 1 to 10.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Multi-service bandwidth allocation method and device in passive optical network of Ethernet

    CN102821029A

  • Configuration method and system of network shunt

    CN112511349A

  • Data transmission method and device of cloud data center

    CN114500540A

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

    CN115567383A

  • Server network port flow control method and device

    CN118740754A