Network card parameter configuration method and device and electronic equipment
By sending detection streams to business nodes to calculate network congestion parameters and update smart network card parameters, the problem of difficulty and high cost in network card parameter configuration and maintenance in the existing technology is solved, and network performance optimization and cost reduction are achieved.
Patent Information
- Application Number
- CN202410989354.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-01
AI Technical Summary
Existing network card parameter configuration methods are difficult to maintain, cost high, and have poor maintenance effects, making it difficult to maintain network performance at its best.
By sending detection streams to service nodes, network congestion parameters are calculated, decision results are analyzed and intelligent network card parameters are updated, and centralized management is adopted to ensure network parameter consistency.
It reduces the management and maintenance costs caused by independent maintenance of each node, improves the flexibility and responsiveness of network performance, and ensures the optimal status of network parameters.
Smart Images

Figure CN118740618A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a network card parameter configuration method, device and electronic device. Background Art
[0002] Smart NIC is a network adapter that highly integrates computing and network processing functions, designed to improve the performance and efficiency of servers and data centers. Smart NIC can reduce the burden on the host CPU and improve the performance and efficiency of virtual machines by offloading data transmission and network processing between virtual machines. Specifically, in high-performance computing, RDMA (Remote Direct Memory Access) technology can achieve fast data transmission between nodes, thereby improving the computing power of computing clusters; in cloud computing, it can improve the communication efficiency between virtual machines, thereby improving the overall performance of cloud computing systems; in storage, it can improve the throughput of storage networks to achieve higher IOPS (input output per second, IOPS) performance. However, once network congestion occurs in the network, it will reduce the reliability of the overall network and cause switch cache accumulation, increasing the queuing delay of network transmission. Therefore, it becomes crucial to control congestion for the entire network.
[0003] In related technologies, DCQCN (Data Centre Quantized Congestion Notification) is usually used as a congestion control protocol. However, the congestion control protocol requires many parameters to be set, and they are distributed in the switches and network cards of each node in the network. Periodic maintenance is required according to demand, which is complex and difficult, and it is difficult to keep the performance in the best state.
[0004] Therefore, the current network card parameter configuration method has technical problems such as high maintenance difficulty, high cost and poor maintenance effect. Summary of the invention
[0005] In view of this, the present application provides a network card parameter configuration method, device and electronic device, the main purpose of which is to improve the technical problems of the current network card parameter configuration method, such as high maintenance difficulty, high cost and poor maintenance effect.
[0006] In a first aspect, the present application provides a method for configuring network card parameters, including:
[0007] Send a detection stream to each service node;
[0008] Calculating network congestion parameters according to the returned detection flow;
[0009] Analyze the network congestion parameters to obtain a decision result; the decision result includes smart network card parameters suitable for the current network;
[0010] The parameter configuration of the smart network card is updated according to the decision result.
[0011] Optionally, sending the detection stream to each service node includes: sending the detection stream of a preset priority to each service node, wherein the preset priority is a low priority.
[0012] Optionally, the network congestion parameters include bandwidth availability and link busy rate; the calculation of the network congestion parameters based on the returned detection stream includes: calculating the number of the detection streams returned within a unit time and the return time of each detection stream; calculating the bandwidth availability based on the number of the detection streams returned within a unit time, and calculating the link busy rate based on the return time of each detection stream.
[0013] Optionally, the bandwidth utilization is calculated based on the number of the detection streams returned within a unit time, and the link busy rate is calculated based on the return time of each detection stream, including: calculating the bandwidth utilization based on the relationship between the number of the detection streams returned within a unit time and the total number of detection streams sent; calculating the link busy rate based on the return time of each detection stream and the actual delay value.
[0014] Optionally, the analyzing the network congestion parameters to obtain a decision result includes: fuzzifying the network congestion parameters through a membership function to obtain a fuzzified result; analyzing the fuzzified result according to preset rules to determine an initial decision result; and defuzzifying the initial decision result to obtain the decision result.
[0015] Optionally, the fuzzification result includes a bandwidth availability level and a link busy level; and analyzing the fuzzification result according to preset rules to determine an initial decision result includes: determining the initial decision result according to preset rules based on the bandwidth availability level and the link busy level.
[0016] In a second aspect, the present application provides a network card parameter configuration device, including:
[0017] A sending unit, configured to send a detection stream to each service node;
[0018] A calculation unit, configured to calculate a network congestion parameter according to the returned detection flow;
[0019] An analysis unit configured to analyze the network congestion parameters to obtain a decision result; the decision result includes smart network card parameters suitable for the current network;
[0020] The configuration unit is configured to update the parameter configuration of the smart network card according to the decision result.
[0021] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network card parameter configuration method described in the first aspect is implemented.
[0022] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the network card parameter configuration method described in the first aspect when executing the computer program.
[0023] In a fifth aspect, the present application provides a computer program product having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the network card parameter configuration method described in the first aspect is implemented.
[0024] By means of the above technical scheme, the present application provides a network card parameter configuration method, device and electronic device, which first sends a detection stream to each business node, and then calculates the network congestion parameters based on the returned detection stream. The network congestion parameters are analyzed to obtain a decision result, wherein the decision result includes the smart network card parameters suitable for the current network; finally, the parameter configuration of the smart network card is updated according to the decision result. Compared with the related art, by sending a detection stream to each business node to calculate the network congestion parameters, the congestion situation of the global network is understood, and then a decision result including the smart network card parameters suitable for the current network is generated and the parameters of the smart network card are updated. The consistency of network parameters is ensured through centralized management, and the management and maintenance costs caused by the separate maintenance of each node are reduced.
[0025] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0028] Figure 1 A schematic diagram of a flow chart of a network card parameter configuration method provided in an embodiment of the present application is shown;
[0029] Figure 2 A schematic diagram of a network architecture for configuring network card parameters provided by an embodiment of the present application is shown;
[0030] Figure 3 A decision flow chart provided by an embodiment of the present application is shown;
[0031] Figure 4 A schematic diagram of the structure of a network card parameter configuration device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0032] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0033] A network card parameter configuration method proposed in this embodiment is applied to a network card parameter configuration device or electronic device. The device or electronic device can be installed or integrated in some smart network cards or cloud computing cluster systems, and can execute any of the network card parameter configuration methods mentioned below during operation.
[0034] In order to improve the technical problems of the current network card parameter configuration method, such as high maintenance difficulty, high cost and poor maintenance effect. Figure 1 As shown, the method includes:
[0035] S101: Send a detection flow to each service node.
[0036] The subject that executes the sending of the detection flow here can be the device or system mentioned above. Furthermore, the device or system can also be some management nodes, which can send the detection flow to each business node by controlling certain functional modules. Business nodes refer to computing nodes that execute specific business logic or services. These nodes can be physical servers, virtual machines (VMs) or containers (such as Docker containers). They are configured to run specific applications, services or workloads to meet user needs and business needs. A detection flow is a set of data packets sent to a network to measure or evaluate the performance, reachability or health status of the network. These data packets will be returned (or responded to) after being sent, providing information about the status of the network.
[0037] S102: Calculate network congestion parameters according to the returned detection flow.
[0038] After reaching the service node, these detection flows are returned to the management node, and the completion time of the detection flow is also obtained. This is actually a global network congestion perception process, which perceives the congestion of the overall network by sending detection flows. Network congestion refers to network congestion when the data flow in the network exceeds its processing capacity. This may lead to problems such as packet loss, increased latency, and decreased throughput. Network congestion is an important issue in network performance management because it directly affects the user experience and the performance of the application. According to the returned detection flow, the transmission of these data packets in the network can be analyzed to calculate the network congestion parameters. In this embodiment, the network congestion parameters include bandwidth availability and link busy rate. Specifically, the number of detection flows returned in a unit time and the return time of each detection flow are calculated, the bandwidth availability is calculated based on the number of detection flows returned in a unit time, and the link busy rate is calculated based on the return time of each detection flow.
[0039] S103, analyzing the network congestion parameters to obtain a decision result.
[0040] Based on the analysis of the network congestion parameters, a decision result can be obtained, and the decision result refers to an adjustment amount for the current network card parameters. In a feasible embodiment, the decision result can also be a target adjustment value of the network card parameters.
[0041] S104: Update the parameter configuration of the smart network card according to the decision result.
[0042] According to the decision results obtained by analyzing the network congestion parameters, the parameter configuration of the smart network card is adjusted or updated accordingly. Specifically, the decision results can be sent to the parameter maintenance module of the smart network card or each service node. The parameter maintenance module changes the parameter configuration of the smart network card through script commands to optimize network performance. Allowing the system to make adaptive adjustments based on real-time data and needs, thereby improving the flexibility and responsiveness of the network.
[0043] The decision result includes the parameters of the smart NIC suitable for the current network. Among them, the smart NIC (Smart NIC) is a network interface card (NIC) with additional processing power, which can perform some tasks traditionally performed by the central processing unit (CPU), such as packet processing, encryption / decryption, routing, etc. The smart NIC improves the overall performance of the network by reducing the load on the CPU. However, in the related art, the DCQCN protocol for the design of smart NIC parameters requires more than ten parameters to be set (see Table 1), and the parameters required to be set for the DCQCN protocol for these parameter designs are as high as more than ten, which is not easy to maintain. At the same time, in the data center, the network load situation is constantly changing, and the network load is quite different at different times of the month, week, and day. Under different network load conditions, the same smart NIC parameter configuration leads to large differences in network performance.
[0044] This embodiment performs global congestion perception, and distributes the decision results to each service node after obtaining the decision results according to the perception results (network congestion parameters) according to the parameter matching strategy. The centralized management ensures the consistency of network parameters and reduces the management and maintenance costs caused by the individual maintenance of each node.
[0045] parameter describe <![CDATA[K min ]]> Switch ECN waterline (low) <![CDATA[K max ]]> Switch ECN waterline (high) <![CDATA[P max ]]> Switch ECN marking probability <![CDATA[T pfc ]]> Switch PFC threshold g Source network card speed adjustment iteration factor <![CDATA[T K ]]> Source network card α update cycle B Bandwidth increase byte counter T Bandwidth increase time counter F Fast bandwidth recovery phase count <![CDATA[R AI ]]> Fixed bandwidth step size during fast bandwidth recovery phase <![CDATA[T N ]]> Target NIC CNP update cycle
[0046] Table 1
[0047] In this embodiment, a detection stream is first sent to each service node, and then the network congestion parameters are calculated based on the returned detection stream. The network congestion parameters are analyzed to obtain a decision result, wherein the decision result includes the smart network card parameters suitable for the current network; finally, the parameter configuration of the smart network card is updated according to the decision result. Compared with the related art, by sending a detection stream to each service node to calculate the network congestion parameters, the congestion situation of the global network is understood, and then a decision result including the smart network card parameters suitable for the current network is generated and the parameters of the smart network card are updated. The consistency of network parameters is ensured by centralized management, and the management and maintenance costs caused by the separate maintenance of each node are reduced.
[0048] Optionally, sending the detection stream to each service node includes: sending the detection stream of a preset priority to each service node, wherein the preset priority is a low priority.
[0049] In this embodiment, since the detection message flows all adopt low priority, the number of them passing through represents the idle bandwidth in the current network. In addition, it can also bring other benefits. First, the use of low-priority message packets does not affect the sending and receiving of normal business data; second, after multiple detection messages are hashed by the switch ECMP (Equal Cost Multipath), they can be evenly covered in the entire network and can reflect global congestion information; third, it can reflect global congestion from the two perspectives of bandwidth utilization and link busy rate.
[0050] Optionally, the network congestion parameters include bandwidth availability and link busy rate; the network congestion parameters are calculated based on the returned detection streams, including: calculating the number of detection streams returned within a unit time and the return time of each detection stream; calculating the bandwidth availability based on the number of detection streams returned within a unit time, and calculating the link busy rate based on the return time of each detection stream.
[0051] In this embodiment, since the detection message flows all adopt low priority, the number of them passing through represents the idle bandwidth in the current network. Bandwidth availability is an indicator to measure the degree to which the network bandwidth is actually used. High bandwidth availability usually means that the network is using its bandwidth resources efficiently, but it may also be close to the critical point of congestion. The link busy rate indicates the time that the switch is continuously busy serving normal traffic. A high link busy rate means that there is a large amount of data transmission in the network, that is, the interval between normal data packets is reduced, which is an early indicator of congestion. These two indicators serve as the main reference inputs for subsequent decision modules.
[0052] The number of probe flows returned per unit time can be used to understand the activity of the network during this period. The return time of each probe flow refers to the time it takes for the probe flow to be sent and received, which usually includes network transmission time, device processing time, and queuing delay. The bandwidth availability is calculated based on the number of probe flows returned per unit time, and the link busy rate is calculated based on the return time of each probe flow.
[0053] Optionally, the bandwidth utilization is calculated based on the number of detection streams returned within a unit time, and the link busy rate is calculated based on the return time of each detection stream, including: calculating the bandwidth utilization based on the relationship between the number of detection streams returned within a unit time and the total number of detection streams sent; calculating the link busy rate based on the return time of each detection stream and the actual delay value.
[0054] In this embodiment, the management node sends M*N messages to N service nodes every period T. The total number of data packets in the sending process is defined as S. 0 =M*N, the time for the management node to count the returned messages is:
[0055] T c =T+M*d tar (Formula 1)
[0056] Among them, d tar The target delay is set based on the actual measured RTT value of the basic network in the actual data center. c The number of collected data packets is defined as S c , represents the number of probe packets received before the deadline. Therefore, the normalized bandwidth availability formula is:
[0057] I s =1-S c / S 0 (Formula 2)
[0058] The start time of sending the detection message is T begin After the message is confirmed, the global congestion awareness module is returned to the application of T end , then the actual delay measurement value d mea for:
[0059] d mea =T end -T begin (Formula 3)
[0060] After expanding to N business nodes, the overall delay measurement value will get an average value:
[0061]
[0062] Among them, I s It represents the available bandwidth in the business network. Since the detection message flows are all low priority, the number of them passing represents the idle bandwidth in the current network. d Represents the current link busy rate. The link busy rate indicates the time the switch is continuously busy serving normal traffic. An increase in the link busy rate, i.e. a decrease in the intervals between normal packets, is an early indicator of congestion.
[0063] Optionally, the network congestion parameters are analyzed to obtain a decision result, including: fuzzifying the network congestion parameters through a membership function to obtain a fuzzified result; analyzing the fuzzified result according to preset rules to determine an initial decision result; and defuzzifying the initial decision result to obtain a decision result.
[0064] In this embodiment, in fuzzy logic, the membership function is used to describe the degree to which an element belongs to a fuzzy set. In network congestion analysis, the membership function can map specific network congestion parameter values to fuzzy sets, such as "low congestion", "medium congestion" and "high congestion". The fuzzification process is that the specific network congestion parameter values are converted into membership values on the fuzzy set through the membership function, which converts the precise numerical value into a fuzzy logical representation for more flexible reasoning and decision-making. Specifically, the bandwidth availability I obtained above is s and link busy rate I d is a specific value, and the value is divided into three levels of "low congestion", "medium congestion" and "high congestion" through a membership function (such as through threshold judgment, etc.), and a fuzzy result is obtained. The fuzzy result here is also a low, medium and high level. Further, the fuzzy result is analyzed according to a preset rule to determine the initial decision result. In a feasible embodiment, the process of analyzing the fuzzy result according to the preset rule to determine the initial decision result is shown in Table 2.
[0065]
[0066] Table 2
[0067] Optionally, the fuzzification result includes a bandwidth availability level and a link busy level; analyzing the fuzzification result according to preset rules to determine an initial decision result includes: determining the initial decision result according to preset rules based on the bandwidth availability level and the link busy level.
[0068] In this embodiment, in the network congestion analysis, the original congestion parameters (bandwidth utilization and link busy rate) are fuzzified and converted into fuzzified results. These fuzzified results are expressed in the form of levels, such as "bandwidth availability level" and "link busy level". The fuzzification process is implemented through a membership function, which maps a specific value (such as a specific percentage of bandwidth utilization) to a fuzzy set (such as "low", "medium", "high" and other levels) to obtain a fuzzified result. The preset rules may include a series of conditions and corresponding action suggestions, for example: "If the bandwidth availability level is high and the link busy level is medium, the strength of the rule is set to a parameter biased towards efficiency." After obtaining the fuzzified results, these results are analyzed according to the preset rules. The analysis process involves matching the bandwidth availability level and the link busy level with the conditions in the preset rules, and determining the corresponding initial decision results based on the matching results.
[0069] In fuzzy logic analysis, preset rules are used to guide how to derive decision results from fuzzification results. For example, if both bandwidth utilization and link busy rate belong to the "high congestion" fuzzy set, a rule may be triggered to recommend urgent measures to alleviate network congestion. After analyzing the fuzzification results according to the preset rules, one or more initial decision results can be obtained.
[0070] Since the initial decision results are based on fuzzy logic, they may contain multiple options or fuzzy descriptions. Then, the initial decision results need to be defuzzified to obtain the decision results. The decision results here are the specific network card parameter adjustment amounts, and the parameter adjustment amounts of the decision are sent to the business node to adjust the parameters. Of course, the target adjustment value can also be sent directly. The specific defuzzification formula is as follows:
[0071]
[0072] Among them, Q(i) is the strength of the i-th rule, U(i) is the strength of the i-th policy, and these results are a kind of adjustment amount for the current network card parameters, or they can be the results of the adjusted network card parameters. This method has advantages in dealing with network problems with high uncertainty and high complexity. According to the above scheme, the difficulty of intelligent network card parameter operation and maintenance tuning is reduced, and reliable network tuning is achieved, which can solve the problem of existing intelligent network card parameter maintenance overhead.
[0073] Furthermore, if Figure 2 As shown, a schematic diagram of the network architecture of the network card parameter configuration proposed in this embodiment is shown. The RDMA network card parameter maintenance system based on global congestion perception in this embodiment mainly involves three components: a global congestion perception module, which is mainly used to perceive the congestion situation of the global network and obtain network congestion parameters; a classification decision module, which is mainly used to obtain decision results according to the network congestion parameters, so as to obtain specific network card adjustment parameters; a network card parameter update and maintenance module, which is used to configure and update network card parameters.
[0074] The congestion control architecture of this solution is based on the detection data to calculate the load of the entire network, and uses this as the basis for decision-making and configuration of optimal parameters. It has better practicality for the congestion control and operation and maintenance of enterprise-level cloud computing high-performance RDMA networks, and can also improve the real-time network transmission efficiency of data centers. Figure 2 The overall system flow of this embodiment is as follows:
[0075] Step 1: Periodically start parameter maintenance work. In the management node server, in the server-side parameter configuration module, start the periodic task through the timer and send the service start request Para_updata_REQ to the global detection module.
[0076] Step 2: Start the active congestion detection task. After receiving the request, the global congestion perception module in the management node server constructs a low-priority detection message to each service node, writes the message data into the local cache, and sends a WRITE request WRITE_REQ to the smart network card, including the IP address of the target host, the target memory address, the data length and other information.
[0077] Step 3: Send the detection message. The smart network card sends the WRITE request of the detection message to the target server in a reliable data packet. At the same time, the sending time is returned to the global congestion perception module.
[0078] Step 4: Message confirmation. After the data transmission is completed, the target server's smart network card sends an ACK (confirmation) message to the source server's smart network card. After receiving the ACK message, the source server returns the message completion time to the global congestion perception module. The global congestion perception module calculates the difference between the message completion time and the message sending time to obtain the completion time of each detection message and writes it to local storage.
[0079] Step 5: Inference decision. After the message completion time is calculated, the global congestion perception module sends a task request Para_infer_REQ to the parameter configuration module. The parameter configuration module notifies the decision module, which makes an inference decision based on the current input detection message completion time and returns the decision result to the parameter configuration module.
[0080] Step 6: Configuration delivery. After receiving the decision result generated by the decision module, the parameter maintenance module Sever delivers the network card update parameters to the parameter maintenance module Client of the service node through the management network. The parameter maintenance module Client changes the parameter configuration of the smart network card through script commands.
[0081] For the global perception module, this embodiment provides a global congestion perception scheme. This perception mechanism senses the global congestion of the network from two aspects by sending low-priority detection flows. On the one hand, it is the number of detection flows returned per unit time, and on the other hand, it is the flow completion time returned by the detection flow. Thus, the network congestion parameter I is calculated. s and I d .
[0082] Among them, I s It represents the available bandwidth in the business network. Since the detection message flows are all low priority, the number of them passing represents the idle bandwidth in the current network. dRepresents the current link busy rate. The link busy rate indicates the time the switch is continuously busy serving normal traffic. An increase in the link busy rate, i.e. a decrease in the intervals between normal packets, is an early indicator of congestion.
[0083] Global perception uses low-priority messages without affecting the sending and receiving of normal business data. Second, multiple detection messages can be evenly covered in the entire network after being hashed by the switch ECMP (Equal Cost Multipath), which can reflect global congestion information. Third, it can reflect global congestion from the perspectives of bandwidth utilization and link busy rate.
[0084] For the decision module, for example, during the parameter adjustment process, the following logic exists:
[0085] (1) When the idle bandwidth in the network is large, it is necessary to adjust the g, B, T, F, and R of the smart network card. AI Increase it to make better use of the idle bandwidth in the network. When the idle bandwidth of the network is small, lower the corresponding parameters of the network card to avoid competition for the network card bandwidth.
[0086] (2) When the network traffic rate increases, the g, B, T, F, and R of the smart network card need to be appropriately adjusted. AI When the busy rate decreases, you need to increase the corresponding parameters of the network card to allow the messages squeezed on the network card to pass quickly.
[0087] (3) When I s and I d When the trend is opposite, the parameter tends to remain unchanged to avoid parameter misconfiguration.
[0088] Furthermore, if Figure 3 As shown, the decision flow chart proposed in this embodiment is shown, which specifically includes: in the fuzzy reasoning decision system, firstly, the bandwidth availability I s and link busy rate I d Fuzzification processing is performed, and its membership function is set according to the specific data center network characteristics. According to the membership function, after the input signal is fuzzified, the fuzzified input corresponds to the fuzzy decision rule table to activate the decision rule (parameter adjustment step). According to the minimum value method, the strength of the corresponding decision rule is determined. According to the strength of the given fuzzy rule, a weighted sum is performed to obtain the defuzzified decision result, and the parameter adjustment amount of the decision is sent to the business node to complete the workflow.
[0089] In summary, in this embodiment, through the interaction between the management node and the business node, through centralized management, more accurate global congestion perception information is used at the management node to evaluate the current network load in real time, make decisions based on the reasoning algorithm, and update and maintain the configuration parameters in the business node smart network card in real time to achieve optimal network performance and reduce the cost and difficulty of maintenance.
[0090] Further, as Figures 1 to 3 The specific implementation of the method shown in the embodiment provides a network card parameter configuration device, such as Figure 4 As shown, the device includes: a sending unit 401, a calculating unit 402, an analyzing unit 403 and a configuring unit 404.
[0091] The sending unit 401 is configured to send a detection stream to each service node;
[0092] A calculation unit 402 is configured to calculate a network congestion parameter according to the returned detection flow;
[0093] The analysis unit 403 is configured to analyze the network congestion parameters to obtain a decision result; the decision result includes smart network card parameters suitable for the current network;
[0094] The configuration unit 404 is configured to update the parameter configuration of the smart network card according to the decision result.
[0095] In a specific application scenario, the sending unit 401 is specifically configured to send a detection flow of a preset priority to each service node, wherein the preset priority is a low priority.
[0096] In a specific application scenario, the calculation unit 402 is further configured to calculate the number of the detection streams returned within a unit time and the return time of each detection stream; calculate the bandwidth availability based on the number of the detection streams returned within the unit time, and calculate the link busy rate based on the return time of each detection stream.
[0097] In a specific application scenario, the calculation unit 402 is further configured to calculate the bandwidth availability based on the relationship between the number of detection streams returned within a unit time and the total number of detection streams sent; and calculate the link busy rate based on the return time and actual delay value of each detection stream.
[0098] In a specific application scenario, the analysis unit 403 is further configured to fuzzify the network congestion parameter through a membership function to obtain a fuzzified result; analyze the fuzzified result according to preset rules to determine an initial decision result; and defuzzify the initial decision result to obtain the decision result.
[0099] In a specific application scenario, the configuration unit 404 is further configured to analyze the fuzzification result according to preset rules to determine an initial decision result, including: determining the initial decision result according to preset rules based on the bandwidth availability level and the link busy level.
[0100] It should be noted that for other corresponding descriptions of the functional units involved in the network card parameter configuration device provided in this embodiment, reference can be made to Figures 1 to 3 The corresponding description in will not be repeated here.
[0101] Based on the above Figures 1 to 3 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figures 1 to 3 The method shown.
[0102] Based on the above Figures 1 to 3 The method shown in the embodiment also provides a computer program product, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 3 The method shown.
[0103] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0104] Based on the above Figures 1 to 3 The method shown, and Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be configured on a computer terminal, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 3 The method shown.
[0105] Based on the above Figures 1 to 3 The method shown, and Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the virtual device shown in the embodiment of the present application further provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, the signal including the computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the above-mentioned Figures 1 to 3 The method shown.
[0106] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0107] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0108] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, compared with the related art, the network congestion parameters are calculated by sending a detection flow to each service node, so as to understand the congestion of the global network, and then generate a decision result including the parameters of the smart network card suitable for the current network and update the parameters of the smart network card. The consistency of network parameters is ensured by centralized management, and the management and maintenance costs caused by the separate maintenance of each node are reduced.
[0110] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0111] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A network card parameter configuration method, It is characterized in that include: Send a detection stream to each service node; Calculating network congestion parameters according to the returned detection flow; Analyzing the network congestion parameters to obtain a decision result; The decision result includes smart network card parameters suitable for the current network; The parameter configuration of the smart network card is updated according to the decision result.
2. The method according to claim 1, It is characterized in that The sending of the detection stream to each service node includes: A detection flow of a preset priority is sent to each service node, wherein the preset priority is a low priority.
3. The method according to claim 1, It is characterized in that The network congestion parameters include bandwidth availability and link busy rate; The calculating of network congestion parameters according to the returned detection flow includes: Calculate the number of the detection flows returned within a unit time and the return time of each detection flow; The bandwidth availability is calculated according to the number of the detection flows returned within a unit time, and the link busy rate is calculated according to the return time of each detection flow.
4. The method according to claim 3, It is characterized in that The calculating the bandwidth availability according to the number of the detection flows returned within a unit time, and calculating the link busy rate according to the return time of each detection flow, comprises: Calculating the bandwidth availability according to the relationship between the number of the detection streams returned within a unit time and the total number of detection streams sent; The link busy rate is calculated according to the return time and the actual delay value of each detection flow.
5. The method according to claim 1, It is characterized in that The analyzing the network congestion parameter to obtain a decision result includes: By means of a membership function, the network congestion parameter is fuzzified to obtain a fuzzified result; Analyze the fuzzy results according to preset rules to determine the initial decision result; The initial decision result is defuzzified to obtain the decision result.
6. The method according to claim 5, It is characterized in that The fuzzification results include bandwidth availability level and link busy level; The step of analyzing the fuzzification result according to preset rules to determine the initial decision result includes: An initial decision result is determined according to the bandwidth availability level and the link busy level according to a preset rule.
7. A network card parameter configuration device, It is characterized in that include: A sending unit, configured to send a detection stream to each service node; A calculation unit, configured to calculate a network congestion parameter according to the returned detection flow; An analysis unit, configured to analyze the network congestion parameter to obtain a decision result; The decision result includes smart network card parameters suitable for the current network; The configuration unit is configured to update the parameter configuration of the smart network card according to the decision result.
8. An electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
