Communication traffic scheduling method and device, electronic equipment and storage medium
By scheduling according to the communication status and bandwidth of the network port, the problems of poor load balancing and high bandwidth costs in the DNS scheduling method are solved, more reasonable traffic distribution and fault handling are achieved, and data transmission costs are reduced.
Patent Information
- Application Number
- CN202411132769.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-09-27
AI Technical Summary
Existing DNS scheduling methods are difficult to provide refined scheduling from a business perspective, resulting in poor load balancing and high bandwidth costs, and cannot effectively control the traffic distribution and fault handling of network ports.
By determining scheduling conditions based on the communication status of multiple network ports, total bandwidth usage, and total bandwidth thresholds, communication traffic scheduling between different network ports is achieved, and network ports with different traffic metering modes are used for bandwidth management and failover.
It improves the load uniformity of network ports, reduces data transmission costs, and can handle client requests in a timely and effective manner, achieving more accurate traffic scheduling.
Smart Images

Figure CN118714097A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to the field of communications. More specifically, the present disclosure provides a communication traffic scheduling method, device, electronic device, storage medium, and computer program product. Background Art
[0002] The client can interact with the server to upload and download data. Summary of the invention
[0003] The present disclosure provides a communication traffic scheduling method, device, electronic device, storage medium and computer program product.
[0004] According to one aspect of the present disclosure, a communication traffic scheduling method is provided, comprising: determining whether a plurality of network ports meet a scheduling condition according to a communication state of each first port in at least one first port among a plurality of network ports, a total bandwidth usage of the at least one first port, and a total bandwidth threshold of the at least one first port; and in the case where it is determined that the plurality of network ports meet the scheduling condition, performing communication traffic scheduling between the at least one first port and at least one second port among the plurality of network ports, wherein a traffic metering mode of the first port is different from a traffic metering mode of the second port.
[0005] According to another aspect of the present disclosure, a communication traffic scheduling device is provided, comprising: a first determination module and a first scheduling module. The first determination module is used to determine whether a plurality of network ports meet a scheduling condition based on the communication state of each first port in at least one first port in a plurality of network ports, the total bandwidth usage of at least one first port, and the total bandwidth threshold of at least one first port. The first scheduling module is used to schedule communication traffic between at least one first port and at least one second port in a plurality of network ports when it is determined that the plurality of network ports meet the scheduling condition, wherein the traffic metering mode of the first port is different from the traffic metering mode of the second port.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided by the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method provided by the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method provided by the present disclosure is implemented.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0011] Figure 1 is a schematic diagram of an application scenario of the communication traffic scheduling method and device according to an embodiment of the present disclosure;
[0012] Figure 2 is a schematic flow chart of a communication traffic scheduling method according to an embodiment of the present disclosure;
[0013] Figure 3 is a schematic flow chart of a communication traffic scheduling method according to another embodiment of the present disclosure;
[0014] Figure 4 is a schematic diagram of a bandwidth waveform diagram according to an embodiment of the present disclosure;
[0015] Figure 5 is a schematic diagram of a communication traffic scheduling method according to an embodiment of the present disclosure;
[0016] Figure 6 is a schematic structural block diagram of a communication traffic scheduling device according to an embodiment of the present disclosure; and
[0017] Figure 7 It is a structural block diagram of an electronic device used to implement the communication traffic scheduling method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0020] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0021] When a client interacts with a server to upload or download data, it consumes the server's bandwidth and generates data transmission costs. In some embodiments, DNS (Domain Name System) scheduling can be used to optimize request distribution. However, DNS scheduling follows the principle of nearest resolution and cannot provide refined scheduling from a business perspective, resulting in poor load balancing and high bandwidth costs.
[0022] The embodiments of the present disclosure aim to provide a communication traffic scheduling method, which can be applied to multiple network ports, including a first port and a second port with different traffic metering modes. It can determine whether the multiple network ports meet the scheduling conditions based on the communication status of the first port, the total bandwidth usage of the first port, and the total bandwidth threshold of the first port, and perform communication traffic scheduling between the first port and the second port when the request is met.
[0023] On the one hand, since scheduling is performed based on the total bandwidth usage and the total bandwidth threshold of the first port, the total bandwidth usage of at least one first port can be controlled within a certain range, making the traffic distribution of each network port more reasonable, thereby improving the load uniformity of each network port and reducing the data transmission cost. In addition, the bandwidth of the first port can be controlled from a global perspective, rather than controlling the bandwidth of each first port separately, so that more accurate scheduling can be achieved. On the other hand, scheduling is performed based on the communication status of the first port, so the communication traffic of the failed first port can be scheduled to the second port, so that the client request can be processed promptly and effectively.
[0024] The technical solution provided by the present disclosure will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0025] Figure 1 It is a schematic diagram of an application scenario of the communication traffic scheduling method and device according to an embodiment of the present disclosure.
[0026] It should be noted that Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0027] like Figure 1As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, a server 105, and a scheduling system 106. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0028] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptops, desktop computers, etc.
[0029] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0030] The scheduling system 106 is used to allocate network ports of the server 105 for requests from terminal devices 101, 102, 103, so that multiple network ports of one or more servers 105 can receive requests from multiple terminal devices 101, 102, 103, thereby improving the load balancing of each network port and reducing data transmission costs.
[0031] It should be noted that the communication traffic scheduling method provided in the embodiment of the present disclosure can generally be executed by the scheduling system 106. Accordingly, the communication traffic scheduling device provided in the embodiment of the present disclosure can generally be set in the scheduling system 106. The scheduling system 106 can be a server or a server cluster.
[0032] It should be understood that Figure 1 The number of terminal devices, networks, servers and scheduling systems in the embodiment is only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0033] Figure 2 It is a schematic flow chart of a communication traffic scheduling method according to an embodiment of the present disclosure.
[0034] like Figure 2As shown, the communication traffic scheduling method 200 can be applied to multiple network ports, and the multiple network ports can include at least one first port and at least one second port. The number of the first port and the second port can be multiple, wherein the flow metering mode of the first port is different from the flow metering mode of the second port. The different flow metering modes can be different measurement units, for example, the first port is measured in units of bandwidth, and the second port is measured in units of flow. The communication traffic scheduling method 200 can include operations S210 to S220.
[0035] In operation S210, it is determined whether the plurality of network ports meet a scheduling condition according to a communication state of each first port of at least one first port among the plurality of network ports, a total bandwidth usage of the at least one first port, and a total bandwidth threshold of the at least one first port.
[0036] For example, the communication status may indicate whether the first port is faulty, the total bandwidth usage indicates the sum of the bandwidth usages of the first ports, the total bandwidth threshold may be a preconfigured value, and the total bandwidth threshold may be updated according to a predetermined period, which may be 1 week, 1 month, etc., and is not limited in this embodiment.
[0037] For example, when the total bandwidth usage exceeds the total bandwidth threshold, it can be determined that the scheduling condition is met. For another example, when the communication state of the first port is a fault state, it can be determined that the scheduling condition is met.
[0038] In operation S220, when it is determined that the plurality of network ports satisfy the scheduling condition, communication traffic scheduling is performed between the at least one first port and at least one second port among the plurality of network ports.
[0039] For example, during the scheduling process, the traffic of the first port may be scheduled to the second port, or the traffic of the second port may be scheduled to the first port.
[0040] For example, when multiple network ports do not meet the scheduling conditions, communication traffic scheduling may not be performed.
[0041] According to the technical solution provided by the embodiment of the present disclosure, on the one hand, since scheduling is performed according to the total bandwidth usage of the first port and the total bandwidth threshold, the total bandwidth usage of at least one first port can be controlled within a certain range, making the traffic distribution of each network port more reasonable, thereby improving the load uniformity of each network port and reducing the data transmission cost. In addition, the bandwidth of the first port can be controlled from a global perspective, rather than controlling the bandwidth of each first port separately, so that more accurate scheduling can be achieved. On the other hand, scheduling is performed according to the communication status of the first port, so the communication traffic of the failed first port can be scheduled to the second port, so that the client request can be processed promptly and effectively.
[0042] Figure 3 It is a schematic flow chart of a communication traffic scheduling method according to another embodiment of the present disclosure.
[0043] like Figure 3 As shown, the communication traffic scheduling method 300 may include operations S301 to S302, and may also include operations S310 to S320. The operations S310 to S320 may refer to the operations S210 to S220 mentioned above, and will not be described in detail in this embodiment.
[0044] In operation S301 , it is determined whether the priority of the business scenario is the first priority.
[0045] For example, business scenarios may include categories such as uploading data, downloading data, and online browsing. Uploading data may specifically include segmented business scenarios such as uploading pictures, uploading videos, and uploading files. Downloading data may include segmented business scenarios such as downloading pictures, downloading videos, and downloading files. Online browsing may include segmented business scenarios such as online browsing of pictures, online browsing of videos, and online browsing of file content.
[0046] For example, the priority of a business scenario may include a first priority and a second priority, the first priority being higher than the second priority, that is, the first priority is a high priority, and the second priority is a low priority. The priorities of business scenarios may be preconfigured. For example, the priority of business scenarios such as downloading videos and browsing videos online is the first priority, and the priorities of other business scenarios are the second priority.
[0047] If the priority of the business scenario is the first priority, then the process may proceed to operation S302. If the priority of the business scenario is the second priority, then the process may proceed to operation S310 to operation S320.
[0048] In operation S302, according to source information of the communication traffic used for the business scenario, the communication traffic used for the business scenario is scheduled to a network port that satisfies a matching relationship with the source information.
[0049] For example, the source information may indicate a region, such as Beijing, Guangdong, etc. For example, a matching relationship may be preconfigured, and the matching relationship may indicate a corresponding relationship between the source information and a network port, and the network port may be a first port or a second port.
[0050] Taking Beijing as an example, if Beijing matches a certain network port, client requests from Beijing can be dispatched to the network port. The matching relationship between Beijing and the network port means that client requests from Beijing can be transmitted to the network port more quickly than other network ports.
[0051] In operation S310, it is determined whether the plurality of network ports meet a scheduling condition according to a communication state of each first port of at least one first port among the plurality of network ports, a total bandwidth usage of the at least one first port, and a total bandwidth threshold of the at least one first port.
[0052] In operation S320, when it is determined that the plurality of network ports satisfy the scheduling condition, communication traffic scheduling is performed between the at least one first port and at least one second port among the plurality of network ports.
[0053] In this embodiment, different scheduling strategies are selected according to the priority of the business scenario. For high-priority business scenarios, the communication traffic is scheduled to the network port that matches the source information, so that the user experience of the high-priority business scenario can be ensured. For low-priority business scenarios, scheduling is performed between the first port and the second port according to whether the scheduling conditions are met, so that the load can be balanced and the data transmission cost can be reduced.
[0054] Next, this embodiment describes the process of determining the matching relationship between source information and network ports.
[0055] In one embodiment, multiple network quality evaluation values of multiple network ports can be determined based on multiple evaluation indicators of each network port in the multiple network ports for the source information, and then a network port corresponding to the maximum network quality evaluation value among the multiple network quality evaluation values is determined to satisfy a matching relationship with the source information.
[0056] In this embodiment, for a certain source information, the network quality evaluation value of each network port is calculated through multiple evaluation indicators. When the network quality evaluation value of a certain network port is the largest, it means that the network quality of the network port is higher than that of other ports, thereby improving the data transmission quality.
[0057] In the process of determining the network quality evaluation value, an evaluation index may be selected first, and the evaluation index may include at least one of the following: network connectivity, network delay, throughput, packet loss rate, etc. For example, a network probe may be pre-embedded in the client, and the client periodically pulls network detection tasks from the server and caches the tasks locally. According to the detection tasks sent by the server, the network connectivity, network delay, throughput, packet loss rate and other evaluation indicators of different network ports are detected, and the detection results are reported to the server.
[0058] After obtaining the above detection results, the server can calculate the network quality evaluation value. For example, for each of the multiple network ports, the network quality evaluation value of the network port can be determined according to the multiple evaluation indicators of the network port and the weights corresponding to the multiple evaluation indicators.
[0059] For example, the product of network connectivity and the first weight can be used as the first value. The ratio of the delay reference value to the network delay can be calculated, and the product of the ratio and the second weight can be used as the second value. The ratio of the throughput to the throughput reference value can be calculated, and the product of the ratio and the third weight can be used as the third value. The ratio of the packet loss reference value to the packet loss rate can be calculated, and the product of the ratio and the fourth weight can be used as the fourth value. The sum of the first value, the second value, the third value and the fourth value can be used as the network quality assessment value. In actual applications, the above-mentioned first weight, second weight, third weight, fourth weight, delay reference value, throughput reference value and packet loss reference value can be pre-configured according to actual needs.
[0060] In an example, the same weight may be used for different business scenarios. For example, the same first weight and the same second weight may be used for different business scenarios.
[0061] In another example, considering that different business scenarios have different requirements for network connectivity, network latency, throughput, and packet loss rate, for example, the business of downloading data has higher requirements for throughput, and the business scenario of playing videos online has higher requirements for network latency. Therefore, different weights can be configured for different business scenarios. For example, in one business scenario, the first weight is 0.3, and in another business scenario, the first weight is 0.5. In this example, the weights corresponding to multiple evaluation indicators are related to the business scenario, so that the network quality evaluation value calculated based on the weights can accurately reflect the network quality of the corresponding business scenario.
[0062] The above describes the process of determining the matching relationship between the source information and the network port.
[0063] According to another embodiment of the present disclosure, the flow metering mode of the first port is different from the flow metering mode of the second port. The first port is metered in units of bandwidth, for example, the first port is in a bandwidth peak billing mode, which is also called a 95 billing mode. The second port is metered in units of flow, for example, the second port is in a flow billing mode.
[0064] It should be noted that, for the bandwidth peak billing mode, the higher the peak value, the higher the cost. Therefore, the use cost of the first port can be reduced by peak shaving. Accordingly, the total bandwidth threshold can be determined according to the cost, and the data transmission cost can be reduced by the total bandwidth threshold. Next, the method of determining the total bandwidth threshold is described.
[0065] In this embodiment, bandwidth information of multiple network ports in the past predetermined time period can be obtained first, and the bandwidth information can include a bandwidth waveform graph, the multiple network ports include a first port and a second port, the abscissa of the bandwidth waveform graph is time, and the ordinate is the used bandwidth value. Then, the total bandwidth threshold can be determined according to the peak value in the bandwidth waveform graph.
[0066] In one example, the difference between the peak value and a predetermined value may be used as the total bandwidth threshold, or the product of the peak value and a predetermined ratio may be used as the total bandwidth threshold, where the predetermined ratio is a value between 0 and 1.
[0067] In another example, multiple candidate total bandwidths can be determined based on the peak value in the bandwidth waveform, and each candidate total bandwidth is less than the peak value. For example, if the value of the peak value is 100, the value of the candidate total bandwidth can be 95, 90, 85, 80, etc. Then, for each candidate total bandwidth in the multiple candidate total bandwidths, the following operations are performed: based on a predetermined allocation rule, the candidate total bandwidth is allocated to at least one first port. For example, the predetermined allocation rule can be: on the basis of ensuring that the network port is allocated with a predetermined minimum bandwidth, the first port with the lowest unit price is used first. Then, the cost of each first port is calculated based on the bandwidth allocated to each first port, so that the cost of at least one first port is then used as the first cost. In addition, the difference between the peak value and the candidate total bandwidth is the bandwidth that needs to be allocated to the second port, and then the second cost required to allocate the bandwidth to the second port is calculated. Then, the total cost is calculated based on the first cost and the second cost. In this way, multiple candidate total bandwidths correspond to multiple total costs. Then, the candidate total bandwidth corresponding to the minimum value of the multiple total costs can be determined as the total bandwidth threshold.
[0068] Figure 4 is a schematic diagram of a bandwidth waveform diagram according to an embodiment of the present disclosure.
[0069] Figure 4Bandwidth waveforms of multiple network ports are shown, for example, historical bandwidth waveforms of the first port and the second port in the past month, the horizontal axis of the waveform is time, and the vertical axis is bandwidth. It can be seen that the peak 401 in the historical bandwidth waveform is relatively high, and the total bandwidth threshold 402 determined based on the historical bandwidth waveform is less than the bandwidth corresponding to the peak 401. In this way, after scheduling, the peak of the total bandwidth usage of the first port is less than or equal to the total bandwidth threshold 402, which can avoid the short-term bandwidth peak of the first port from affecting the overall cost, and make full use of the bandwidth valley time period, thereby reducing the data transmission cost.
[0070] It should be noted that this embodiment describes the process of determining the total bandwidth threshold from the perspective of reducing the use cost. In other embodiments, the total bandwidth threshold may be determined in other ways. For example, if the bandwidth that can be transmitted by each network port is limited, the total bandwidth threshold may be determined based on the bandwidth, thereby balancing the load of each network port.
[0071] According to another embodiment of the present disclosure, the scheduling condition includes a first condition, and the first condition is that the total bandwidth usage is less than or equal to the total bandwidth threshold. Accordingly, when the first condition is met, at least part of the communication traffic of at least one second port is scheduled to at least one first port. In this embodiment, when the total bandwidth usage does not reach the total bandwidth threshold, the first port is used preferentially, which can reduce the use cost.
[0072] According to another embodiment of the present disclosure, the scheduling condition includes a second condition, and the second condition is that the total bandwidth usage is greater than the total bandwidth threshold. Accordingly, when the second condition is met, part of the communication traffic of at least one first port is scheduled to at least one second port, wherein the part of the communication traffic may be the difference between the total bandwidth usage and the total bandwidth threshold. In this embodiment, when the total bandwidth usage exceeds the total bandwidth threshold, the excess part of the communication traffic is scheduled to the second port, which can avoid the bandwidth peak of the first port being too high, thereby reducing the use cost.
[0073] In practical applications, a second port matching the business scenario can be determined from at least one second port according to the business scenario, and then at least part of the communication traffic of the first port can be dispatched to the matching second port. For example, there are multiple second ports, and the service quality of the multiple second ports is different. Business scenarios such as online video playback and video downloading have higher requirements for service quality, while business scenarios such as file backup have lower requirements for service quality. Therefore, the corresponding relationship between the second port and the business scenario can be pre-configured, and the communication traffic of the business scenario can be dispatched to the corresponding second port based on the corresponding relationship.
[0074] According to another embodiment of the present disclosure, the scheduling condition includes a third condition, and the third condition is that the communication state of the target port in at least one first port is a communication failure. Accordingly, when the third condition is met, the communication traffic of the target port is scheduled to at least one second port. In this embodiment, when a first port fails, the communication traffic of the first port is scheduled to other network ports to ensure that the loss can be stopped quickly at the moment of the failure, so as to avoid the first port failure affecting normal data transmission. In addition, when the failed first port is restored, the communication traffic of other network ports can be scheduled to the first port.
[0075] According to another embodiment of the present disclosure, in the process of determining the communication status of the first port, the port status of the first port can be determined for each of the at least one first port according to the connectivity result determined based on the client request and the network monitoring result determined based on the server log, and the port status is an abnormal state or a normal state. For example, if the client initiates 10 requests to the first port, 8 of which are successfully connected and 2 are not connected, the connectivity rate is 80%. If the connectivity rate is less than a threshold, the port status is considered to be an abnormal state. For another example, the server log records 100 records within one minute or other time period, of which 70 records indicate that the network port is abnormal, then the abnormality rate can be determined to be 70%. If the abnormality rate is greater than the threshold, the port status is considered to be an abnormal state.
[0076] After the port status of the first port is obtained, the communication status of the first port may be determined based on the port status of the first port, where the communication status indicates whether the first port is faulty.
[0077] In an example, when an abnormal state occurs once in the port state of a certain network port, it can be determined that the communication state of the first port is a communication failure.
[0078] In another example, according to the above method, statistics can be performed every predetermined period to obtain whether the port state of the first port is an abnormal state. Then, the predetermined time period can be continuously counted, so that multiple port states based on the timing of the first port can be obtained. If at least a predetermined number of abnormal states are included, the communication state of the first port can be determined to be a communication failure, otherwise the communication state can be determined to be no failure. For example, statistics are performed once every 1 minute, and statistics are continuously performed for 5 minutes, so that 5 port states are obtained. If the number of abnormal states is greater than or equal to 3 times, the communication state can be determined to be a communication failure. It can be seen that this example determines the communication state through multiple port states, which can avoid jitter in the data collected in a short period of time, which affects the accuracy of the communication state.
[0079] Figure 5 It is a schematic diagram of a communication traffic scheduling method according to an embodiment of the present disclosure.
[0080] In this embodiment, the scheduling system includes a data module 501 , a strategy generation module 502 and a scheduling module 503 .
[0081] The data module 501 is used to collect port information of each network port. The network port may include a first port 511 and a second port 512. The port information may include information such as port category, minimum bandwidth, unit price, etc. It may also include evaluation indicators of the network port. The evaluation indicators may include at least one of the following: network connectivity, network delay, throughput, packet loss rate, etc. The data module 501 may transmit the collected port information to the policy generation module 502.
[0082] The policy generation module 502 can regenerate a scheduling policy every predetermined period based on the port information collected by the data module 501. For example, the policy generation module 502 generates the latest scheduling policy at the beginning of each month. For example, the policy generation module 502 can calculate the total bandwidth threshold based on the bandwidth waveform of the past month, and then generate a scheduling policy based on the total bandwidth threshold. The scheduling policy may include: when the total bandwidth usage is less than or equal to the total bandwidth threshold, scheduling at least part of the communication traffic of the second port 512 to the first port 511; and when the total bandwidth usage is greater than the total bandwidth threshold, scheduling part of the communication traffic of the first port 511 to the second port 512. The policy generation module 502 can then transmit the scheduling policy to the scheduling module 503 through the message component.
[0083] The scheduling module 503 is used to schedule the traffic of each network port, for example, scheduling the traffic of the first port 511 to the second port 512 , or scheduling the traffic of the second port 512 to the first port 511 , so as to avoid a high bandwidth peak of the first port 511 .
[0084] This embodiment can smooth out the peaks and fill the valleys of the bandwidth curve of the first port 511 by scheduling the communication traffic of the network port.
[0085] Figure 6 It is a schematic structural block diagram of a communication traffic scheduling device according to an embodiment of the present disclosure.
[0086] like Figure 6 As shown, the communication traffic scheduling device 600 may include a first determination module 610 and a first scheduling module 620 .
[0087] The first determination module 610 is used to determine whether multiple network ports meet the scheduling condition according to the communication status of each first port of at least one first port among the multiple network ports, the total bandwidth usage of the at least one first port, and the total bandwidth threshold of the at least one first port.
[0088] The first scheduling module 620 is used to schedule communication traffic between at least one first port and at least one second port among the multiple network ports when it is determined that the multiple network ports meet the scheduling conditions, wherein the traffic metering mode of the first port is different from the traffic metering mode of the second port.
[0089] According to another embodiment of the present disclosure, it also includes: a second scheduling module, which is used to, in response to detecting that the priority of the business scenario is the first priority, schedule the communication traffic used for the business scenario to a network port that satisfies a matching relationship with the source information according to the source information of the communication traffic used for the business scenario; wherein the matching relationship is determined by the following modules: an evaluation value determination module and a relationship determination module. The evaluation value determination module is used to determine multiple network quality evaluation values of multiple network ports according to multiple evaluation indicators of each network port in the multiple network ports based on the source information. The relationship determination module is used to determine that the network port corresponding to the maximum network quality evaluation value among the multiple network quality evaluation values satisfies a matching relationship with the source information.
[0090] According to another embodiment of the present disclosure, an evaluation value determination module includes: a determination submodule, which is used to determine, for each of a plurality of network ports, a network quality evaluation value of the network port according to a plurality of evaluation indicators of the network port and weights corresponding to the plurality of evaluation indicators; wherein the weights corresponding to the plurality of evaluation indicators are related to a business scenario.
[0091] According to another embodiment of the present disclosure, it also includes: a trigger module, which is used to trigger an operation of determining whether multiple network ports meet scheduling conditions in response to detecting that the priority of the business scenario is a second priority; wherein the second priority is lower than the first priority.
[0092] According to another embodiment of the present disclosure, the first scheduling module includes: a first scheduling submodule, a second scheduling submodule and a third scheduling submodule. The first scheduling submodule is used to schedule at least part of the communication traffic of at least one second port to at least one first port in response to detecting that the total bandwidth usage is less than or equal to the total bandwidth threshold. The second scheduling submodule is used to schedule part of the communication traffic of at least one first port to at least one second port in response to detecting that the total bandwidth usage is greater than the total bandwidth threshold. The third scheduling submodule is used to schedule the communication traffic of the target port to at least one second port in response to detecting that the communication state of the target port in at least one first port is a communication failure.
[0093] According to another embodiment of the present disclosure, it also includes: a second determination module and a third determination module. The second determination module is used to determine the port state of the first port for each of the at least one first port according to the connectivity result determined based on the client request and the network monitoring result determined based on the server log, and the port state is an abnormal state or a normal state. The third determination module is used to determine that the communication state of the first port is a communication failure in response to detecting that the multiple port states of the first port based on the timing include at least a predetermined number of abnormal states.
[0094] According to another embodiment of the present disclosure, the second scheduling submodule includes: a determination unit and a scheduling unit. The determination unit is used to determine a second port matching the business scenario from at least one second port according to the business scenario. The scheduling unit is used to schedule at least part of the communication traffic of the first port to the matching second port.
[0095] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned communication traffic scheduling method.
[0096] According to an embodiment of the present disclosure, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the above-mentioned communication traffic scheduling method.
[0097] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, including a computer program, and the computer program implements the above communication traffic scheduling method when executed by a processor.
[0098] Figure 7 1 is a block diagram of an electronic device for implementing the communication traffic scheduling method of an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0099] like Figure 7As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0100] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0101] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the communication traffic scheduling method. For example, in some embodiments, the communication traffic scheduling method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the communication traffic scheduling method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the communication traffic scheduling method in any other appropriate manner (e.g., by means of firmware).
[0102] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0103] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0104] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0106] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0107] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0109] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A communication traffic scheduling method, comprising: Determining whether the plurality of network ports meet a scheduling condition according to a communication state of each first port of at least one first port among the plurality of network ports, a total bandwidth usage of the at least one first port, and a total bandwidth threshold of the at least one first port; as well as When it is determined that the multiple network ports meet the scheduling condition, communication traffic scheduling is performed between the at least one first port and at least one second port among the multiple network ports, wherein the traffic metering mode of the first port is different from the traffic metering mode of the second port.
2. The method according to claim 1, further comprising: In response to detecting that the priority of the business scenario is the first priority, according to source information of the communication traffic used for the business scenario, scheduling the communication traffic used for the business scenario to a network port that satisfies a matching relationship with the source information; The matching relationship is determined in the following manner: For the source information, determining a plurality of network quality evaluation values of the plurality of network ports according to a plurality of evaluation indicators of each of the plurality of network ports; and Determine a network port corresponding to a maximum network quality evaluation value among the multiple network quality evaluation values, which satisfies the matching relationship with the source information.
3. The method according to claim 2, wherein: The determining, for the source information, a plurality of network quality evaluation values of the plurality of network ports according to a plurality of evaluation indicators of each of the plurality of network ports comprises: For each of the multiple network ports, the network quality evaluation value of the network port is determined according to multiple evaluation indicators of the network port and weights corresponding to the multiple evaluation indicators; wherein the weights corresponding to the multiple evaluation indicators are related to the business scenario.
4. The method according to claim 2, further comprising: In response to detecting that the priority of the business scenario is a second priority, the operation of determining whether the plurality of network ports meet the scheduling condition is triggered; wherein the second priority is lower than the first priority.
5. The method according to claim 1, wherein: In the case where it is determined that the plurality of network ports meet the scheduling condition, performing communication traffic scheduling between the at least one first port and at least one second port among the plurality of network ports comprises: In response to detecting that the total bandwidth usage is less than or equal to the total bandwidth threshold, scheduling at least part of the communication traffic of the at least one second port to the at least one first port; In response to detecting that the total bandwidth usage is greater than the total bandwidth threshold, scheduling a portion of the communication traffic of the at least one first port to the at least one second port; and In response to detecting that the communication state of the target port in the at least one first port is a communication failure, the communication traffic of the target port is scheduled to the at least one second port.
6. The method according to claim 5, further comprising: For each of the at least one first port, determine a port state of the first port according to a connectivity result determined based on a client request and a network monitoring result determined based on a server log, wherein the port state is an abnormal state or a normal state; as well as In response to detecting that the plurality of the port states of the first port based on the timing include at least a predetermined number of abnormal states, the communication state of the first port is determined to be a communication failure.
7. The method according to claim 5, wherein: Scheduling part of the communication traffic of the at least one first port to the at least one second port comprises: According to the business scenario, determining a second port matching the business scenario from the at least one second port; and At least part of the communication traffic of the first port is dispatched to the matching second port.
8. A communication traffic scheduling device, comprising: A first determination module, configured to determine whether the plurality of network ports meet a scheduling condition according to a communication state of each first port of at least one first port among the plurality of network ports, a total bandwidth usage of the at least one first port, and a total bandwidth threshold of the at least one first port; as well as The first scheduling module is used to schedule communication traffic between the at least one first port and at least one second port among the multiple network ports when it is determined that the multiple network ports meet the scheduling condition, wherein the traffic metering mode of the first port is different from the traffic metering mode of the second port.
9. The apparatus according to claim 8, further comprising: A second scheduling module is used for, in response to detecting that the priority of the business scenario is the first priority, scheduling the communication traffic used for the business scenario to a network port that satisfies a matching relationship with the source information according to the source information of the communication traffic used for the business scenario; The matching relationship is determined by the following modules: an evaluation value determination module, configured to determine, with respect to the source information, a plurality of network quality evaluation values of the plurality of network ports according to a plurality of evaluation indicators of each of the plurality of network ports; and The relationship determination module is used to determine that the network port corresponding to the maximum network quality evaluation value among the multiple network quality evaluation values satisfies the matching relationship with the source information.
10. The device according to claim 9, wherein: The evaluation value determination module comprises: A determination submodule is used to determine, for each of the multiple network ports, the network quality evaluation value of the network port according to multiple evaluation indicators of the network port and weights corresponding to the multiple evaluation indicators; wherein the weights corresponding to the multiple evaluation indicators are related to the business scenario.
11. The apparatus according to claim 9, further comprising: A trigger module is used to trigger the operation of determining whether the multiple network ports meet the scheduling conditions in response to detecting that the priority of the business scenario is a second priority; wherein the second priority is lower than the first priority.
12. The device according to claim 8, wherein: The first scheduling module includes: A first scheduling submodule, configured to schedule at least part of the communication traffic of the at least one second port to the at least one first port in response to detecting that the total bandwidth usage is less than or equal to the total bandwidth threshold; A second scheduling submodule, configured to schedule part of the communication traffic of the at least one first port to the at least one second port in response to detecting that the total bandwidth usage is greater than the total bandwidth threshold; and The third scheduling submodule is configured to schedule the communication traffic of the target port to the at least one second port in response to detecting that the communication state of the target port in the at least one first port is a communication failure.
13. The apparatus according to claim 12, further comprising: A second determination module is used to determine, for each of the at least one first port, a port state of the first port according to a connectivity result determined based on a client request and a network monitoring result determined based on a server log, wherein the port state is an abnormal state or a normal state; as well as The third determination module is configured to determine that the communication state of the first port is a communication failure in response to detecting that the plurality of port states of the first port based on the timing include at least a predetermined number of abnormal states.
14. The device according to claim 12, wherein: The second scheduling submodule includes: a determining unit, configured to determine, according to a business scenario, from the at least one second port a second port matching the business scenario; and A scheduling unit is used to schedule at least part of the communication traffic of the first port to the matching second port.
15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.
17. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Cited By
Anti-unmanned aerial vehicle strategy generation method and system
CN122635567A
Anti-drone strategy generation method and system
CN122635567B
