WO2021184589A1 - 流量调度方法、装置、服务器及存储介质 - Google Patents

流量调度方法、装置、服务器及存储介质 Download PDF

Info

Publication number
WO2021184589A1
WO2021184589A1 PCT/CN2020/099315 CN2020099315W WO2021184589A1 WO 2021184589 A1 WO2021184589 A1 WO 2021184589A1 CN 2020099315 W CN2020099315 W CN 2020099315W WO 2021184589 A1 WO2021184589 A1 WO 2021184589A1
Authority
WO
WIPO (PCT)
Prior art keywords
server node
traffic
node
area
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2020/099315
Other languages
English (en)
French (fr)
Inventor
张毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2021184589A1 publication Critical patent/WO2021184589A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2402Monitoring of the downstream path of the transmission network, e.g. bandwidth available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2407Monitoring of transmitted content, e.g. distribution time, number of downloads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a traffic scheduling method, device, server, and storage medium.
  • CDN Content Delivery Network
  • the first aspect of the present application provides a traffic scheduling method, the method includes:
  • the traffic of the target server node is greater than the preset traffic threshold, determine a first area and determine a second area, where the first area is the geographic area to which the target server node belongs, and the second area is the target The geographic area to which the server node’s traffic belongs;
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic, determining link quality scores and node attribute information of server nodes other than the first scheduling server node and the target server node;
  • a second aspect of the present application provides a server including a processor and a memory, and the processor is configured to execute computer-readable instructions stored in the memory to implement the following steps:
  • the traffic of the target server node is greater than the preset traffic threshold, determine a first area and determine a second area, where the first area is the geographic area to which the target server node belongs, and the second area is the target The geographic area to which the server node’s traffic belongs;
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic, determining link quality scores and node attribute information of server nodes other than the first scheduling server node and the target server node;
  • a third aspect of the present application provides a computer-readable storage medium having at least one computer-readable instruction stored thereon, and the at least one computer-readable instruction is executed by a processor to implement the following steps:
  • the traffic of the target server node is greater than the preset traffic threshold, determine a first area and determine a second area, where the first area is the geographic area to which the target server node belongs, and the second area is the target The geographic area to which the server node’s traffic belongs;
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic, determining link quality scores and node attribute information of server nodes other than the first scheduling server node and the target server node;
  • a fourth aspect of the present application provides a traffic scheduling device, the device including:
  • the determining module is configured to determine a first area and a second area when the traffic of the target server node is greater than a preset traffic threshold, where the first area is the geographic area to which the target server node belongs, and the second The area is the geographic area to which the traffic of the target server node belongs;
  • the determining module is further configured to, if there is a third area other than the first area in the second area, according to the distance between the first area and the third area and the target server The preset scheduling flow threshold of the node, and determining the flow to be scheduled from the flow of the target server node;
  • the determining module is further configured to determine the first scheduling server node according to the to-be-scheduled traffic
  • the determining module is further configured to determine links of server nodes other than the first scheduling server node and the target server node if the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic Quality score and node attribute information;
  • the determining module is further configured to determine a second scheduling server node according to the link quality score and the node attribute information
  • the scheduling module is configured to schedule the traffic to be scheduled to the first scheduling server node and the second scheduling server node.
  • the traffic to be scheduled can be determined, and the traffic to be scheduled can be scheduled to the first scheduling server node to slow down the current server node.
  • Fig. 1 is a flowchart of a preferred embodiment of a traffic scheduling method disclosed in the present application.
  • Fig. 2 is a functional module diagram of a preferred embodiment of a traffic scheduling device disclosed in the present application.
  • FIG. 3 is a schematic diagram of the structure of a server in a preferred embodiment of the traffic scheduling method according to the present application.
  • the traffic scheduling method of the embodiment of the present application is applied to a server, and can also be applied to a hardware environment formed by a server and an electronic device connected to the server through a network, and is executed by the server and the electronic device.
  • Networks include, but are not limited to: wide area networks, metropolitan area networks, or local area networks.
  • FIG. 1 is a flowchart of a preferred embodiment of a traffic scheduling method disclosed in the present application. Among them, according to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
  • the server determines a first area and determines a second area, where the first area is the geographic area to which the target server node belongs, and the second area is The geographic area to which the traffic of the target server node belongs.
  • a maximum traffic threshold can be preset, such as 95% of the bandwidth value purchased for the server node, when there is an average of server nodes (target server nodes) within a preset time range (for example, 10 minutes)
  • a preset time range for example, 10 minutes
  • the traffic of the server node needs to be scheduled, that is, part of the traffic is transferred to other server nodes to determine which server node’s traffic belongs to.
  • Geographical area the second area, such as Guangdong, Guangxi, etc.).
  • the server will schedule according to the distance between the first area and the third area and the preset schedule of the target server node.
  • the flow threshold is used to determine the flow to be scheduled from the flow of the target server node.
  • the preset scheduling flow threshold is a preset flow threshold, such as 30% of the total flow of the server node.
  • 30% of the flow of the server node can be scheduled.
  • the geographic area to which the target server node belongs is Beijing
  • the geographic area to which the traffic of the target server node belongs The second region
  • the second region includes Guangdong, Guangxi, and Beijing, that is, the target server node has access traffic from users in Guangdong, Guangxi, and Beijing (that is, there are access requests from users in Guangdong, Guangxi, and Beijing), which can be considered as the second
  • a third area (Guangdong and Guangxi) in addition to the first area in the area.
  • the geographic region to which the target server node belongs is Beijing
  • the geographic region to which the traffic of the target server node belongs is Beijing, it can be considered that there is no third region other than the first region in the second region.
  • the scheduling flow threshold in addition to determining how much traffic needs to be transferred based on the scheduling flow threshold, it is also necessary to determine which part of the traffic to transfer based on the distance between the first area and each third area, and priority can be given to the distance from the first area. For example, if the distance between Guangxi and Beijing is farther than the distance between Guangdong and Beijing, the traffic from Guangxi will be transferred away first. Therefore, it is necessary to determine the to-be-scheduled traffic of the server node and the fourth area to which the to-be-scheduled traffic belongs.
  • the server determines the first scheduling server node according to the traffic to be scheduled.
  • the determining the first scheduling server node according to the to-be-scheduled traffic includes:
  • the server node in the fourth area is determined as the first scheduling server node.
  • the server determines link quality scores and node attributes of server nodes other than the first scheduling server node and the target server node information.
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic. If the receivable traffic of the first scheduling server node is greater than or equal to the to-be-scheduled traffic, the to-be-scheduled traffic can be The scheduling traffic is scheduled to the first scheduling server node. If the receivable traffic of the first scheduling server node is less than the traffic to be scheduled, link quality scores and node attribute information of server nodes other than the first scheduling server node and the target server node may be determined.
  • the determining the link quality scores of server nodes other than the first scheduling server node and the target server node includes:
  • a normalization operation is performed on the response time and the download speed to obtain the link quality score of the network from the first server node to the fourth area.
  • the determining the response time and the download speed for the first server node to access the network of the fourth area includes:
  • the Internet packet explorer is a program used to test the network connection. It can use the uniqueness of the IP address of the machine on the network to send a data packet to the target IP address, and then ask the other party to return a data of the same size Package to determine whether two network machines are connected and what is the delay.
  • Agent refers to a software or hardware entity capable of autonomous activities.
  • the agent deployed on the server node can be used to ping the main route of the network in the fourth area to obtain the response time, and the server node can be obtained through historical access log data.
  • the download traffic and download time of accessing the network in the fourth area are calculated to obtain the download speed.
  • the preset weight includes a response weight and a download weight
  • the response time and download speed are normalized according to the preset weight to obtain the information from the first server node to the fourth area.
  • the link quality score of the network includes:
  • normalization is an algorithm proposed for the convenience of data processing and mapping data to a range of 0 to 1.
  • the response time of the first server node's access to the network in the fourth area can be multiplied by the response weight to obtain the response value
  • the download speed of the first server node's access to the network in the fourth area can be multiplied by Download the weight to obtain the download value, because the smaller the response time value, the better the service quality provided by the server node.
  • the larger the download speed value the better the service quality provided by the server node. Therefore, the response value is used as the denominator, and the download value is used as the The numerator, the larger the ratio of the response value to the download value, the larger the corresponding link quality score, and the better the service quality provided by the server node.
  • the server determines a second scheduling server node according to the link quality score and the node attribute information.
  • the first scheduling server node because the first scheduling server node cannot receive all the to-be-scheduled traffic, it needs to find other server nodes to receive the remaining to-be-scheduled traffic.
  • the node attribute information includes real-time availability status, real-time traffic percentage, operator, traffic cost, and traffic growth rate.
  • determining the second scheduling server node includes :
  • the node with the first arrangement order is determined as the second scheduling server node.
  • all first server nodes can be sorted according to their corresponding link quality scores from large to small to obtain the first queue, and according to the real-time availability status and real-time traffic percentage of the first server node , The operator and the traffic growth rate, determine the first server node that is not suitable for traffic scheduling, that is, the second server node, and delete the second server node in the first queue to obtain the second queue, and then consider the traffic cost in combination. Select the top-ranked server node to be scheduled from the second queue for traffic scheduling. The first server node can be selected. The server node to be scheduled for traffic scheduling has a higher link quality score, that is, the server node to be scheduled. The quality of services provided is high.
  • the first server node that is not suitable for scheduling is determined from the first server node.
  • the second server node includes:
  • the real-time available state of the node is a preset state, judging whether the real-time traffic percentage of the node is less than a preset percentage threshold;
  • the operator of the node is a preset operator, determine the traffic growth rate of the node within the preset time range according to the log file of the node;
  • the node is determined as a second server node that is not suitable for scheduling.
  • the node if the real-time availability status of a node indicates that the node is not operating normally, the node is considered to be a second server node that is not suitable for scheduling; if the real-time traffic percentage of the first server node is greater than or equal to the percentage Threshold (for example, the server node has purchased 90% of the bandwidth), the service pressure of the server node is relatively high, and it is not suitable for scheduling; if the operator of the first server node is not the preset operator, it is not suitable for receiving the traffic to be scheduled Scheduling; the log file of the first server node can be used to determine the traffic growth rate of the first server node in the most recent period.
  • Threshold for example, the server node has purchased 90% of the bandwidth
  • the service pressure of the first server node will increase quickly. It is unable to continue to provide good quality services and is not suitable for scheduling.
  • the first server node that is, the second server node
  • the server schedules the traffic to be scheduled to the first scheduling server node and the second scheduling server node.
  • the traffic to be scheduled needs to be divided into two parts for scheduling, and a part of the scheduled traffic is scheduled to the first scheduling server node , And scheduling another part of the traffic to be scheduled to the second scheduling server node. That is, the to-be-scheduled traffic can be scheduled to the currently most suitable server node, which can improve the service quality of the server node.
  • the traffic to be scheduled can be determined, and the traffic to be scheduled can be scheduled to the first scheduling server node to slow down the current server.
  • the service pressure of the node can improve the service quality, and the link quality scores of other server nodes can be calculated, and then the appropriate server node (second scheduling server node) can be determined according to the link quality score and the server node attribute information of other server nodes.
  • Part of the traffic is dispatched to these server nodes, and a suitable server node is found to share part of the service pressure, so that the service pressure of the current server node is reduced, and the service quality of the server node is improved.
  • FIG. 2 is a functional module diagram of a preferred embodiment of a traffic scheduling device disclosed in the present application.
  • the traffic scheduling device runs in a server.
  • the traffic scheduling device may include multiple functional modules composed of program code segments, and the program is a series of computer-readable instruction codes.
  • the program code of each program segment in the flow scheduling device may be stored in a memory and executed by at least one processor to execute part or all of the steps in the flow scheduling method described in FIG. 1. For details, refer to FIG. 1. The related description in the method will not be repeated here.
  • the traffic scheduling device can be divided into multiple functional modules according to the functions it performs.
  • the functional modules may include: a determining module 201 and a scheduling module 202.
  • the module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, and are stored in a memory.
  • the determining module 201 is configured to determine a first area and a second area when the traffic of the target server node is greater than a preset traffic threshold, wherein the first area is the geographic area to which the target server node belongs, and the first area is the geographic area to which the target server node belongs. The second area is the geographic area to which the traffic of the target server node belongs.
  • a maximum traffic threshold can be preset, such as 95% of the bandwidth value purchased for the server node, when there is an average of server nodes (target server nodes) within a preset time range (for example, 10 minutes)
  • a preset time range for example, 10 minutes
  • the traffic of the server node needs to be scheduled, that is, part of the traffic is transferred to other server nodes to determine which server node’s traffic belongs to.
  • Geographical area the second area, such as Guangdong, Guangxi, etc.).
  • the determining module 201 is further configured to: if there is a third area other than the first area in the second area, according to the distance between the first area and the third area and the target The preset scheduling flow threshold of the server node determines the flow to be scheduled from the flow of the target server node.
  • the preset scheduling flow threshold is a preset flow threshold, such as 30% of the total flow of the server node.
  • 30% of the flow of the server node can be scheduled.
  • the geographic area to which the target server node belongs is Beijing
  • the geographic area to which the traffic of the target server node belongs The second region
  • the second region includes Guangdong, Guangxi, and Beijing, that is, the target server node has access traffic from users in Guangdong, Guangxi, and Beijing (that is, there are access requests from users in Guangdong, Guangxi, and Beijing), which can be considered as the second
  • a third area (Guangdong and Guangxi) in addition to the first area in the area.
  • the geographic region to which the target server node belongs is Beijing
  • the geographic region to which the traffic of the target server node belongs is Beijing, it can be considered that there is no third region other than the first region in the second region.
  • the scheduling flow threshold in addition to determining how much traffic needs to be transferred based on the scheduling flow threshold, it is also necessary to determine which part of the traffic to transfer based on the distance between the first area and each third area, and priority can be given to the distance from the first area. For example, if the distance between Guangxi and Beijing is farther than the distance between Guangdong and Beijing, the traffic from Guangxi will be transferred away first. Therefore, it is necessary to determine the to-be-scheduled traffic of the server node and the fourth area to which the to-be-scheduled traffic belongs.
  • the determining module 201 is further configured to determine the first scheduling server node according to the traffic to be scheduled.
  • the determining module 201 is further configured to determine the chain of server nodes other than the first scheduling server node and the target server node if the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic. Road quality score and node attribute information.
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic. If the receivable traffic of the first scheduling server node is greater than or equal to the to-be-scheduled traffic, the to-be-scheduled traffic can be The scheduling traffic is scheduled to the first scheduling server node. If the receivable traffic of the first dispatch server node is less than the traffic to be dispatched, link quality scores and node attribute information of server nodes other than the first dispatch server node and the target server node may be determined.
  • the determining module 201 is further configured to determine a second scheduling server node according to the link quality score and the node attribute information.
  • the first scheduling server node because the first scheduling server node cannot receive all the to-be-scheduled traffic, it needs to find other server nodes to receive the remaining to-be-scheduled traffic.
  • the scheduling module 202 is configured to schedule the traffic to be scheduled to the first scheduling server node and the second scheduling server node.
  • the to-be-scheduled traffic needs to be divided into two parts for scheduling, and a part of the scheduled traffic is scheduled to the first scheduling server node , And scheduling another part of the traffic to be scheduled to the second scheduling server node. That is, the to-be-scheduled traffic can be scheduled to the currently most suitable server node, which can improve the service quality of the server node.
  • the method for the determining module 201 to determine the first scheduling server node according to the to-be-scheduled traffic is specifically as follows:
  • the server node in the fourth area is determined as the first scheduling server node.
  • the method for the determining module 201 to determine the link quality scores of server nodes other than the first scheduling server node and the target server node is specifically as follows:
  • a normalization operation is performed on the response time and the download speed to obtain the link quality score of the network from the first server node to the fourth area.
  • the node attribute information includes real-time availability status, real-time traffic percentage, operator, traffic cost, and traffic growth rate.
  • the determining module 201 is based on the link quality score and the node attribute. Information, the method for determining the second scheduling server node is specifically:
  • the node with the first arrangement order is determined as the second scheduling server node.
  • all first server nodes can be sorted according to their corresponding link quality scores from large to small to obtain the first queue, and according to the real-time availability status and real-time traffic percentage of the first server node , The operator and the traffic growth rate, determine the first server node that is not suitable for traffic scheduling, that is, the second server node, and delete the second server node in the first queue to obtain the second queue, and then consider the traffic cost in combination. Select the top-ranked server node to be scheduled from the second queue for traffic scheduling. The first server node can be selected. The server node to be scheduled for traffic scheduling has a higher link quality score, that is, the server node to be scheduled. The quality of services provided is high.
  • the determining module 201 obtains data from the first server node according to the real-time availability status, the real-time traffic percentage, the operator, and the traffic growth rate.
  • the method for determining the second server node that is not suitable for scheduling among the server nodes is specifically as follows:
  • the real-time available state of the node is a preset state, judging whether the real-time traffic percentage of the node is less than a preset percentage threshold;
  • the operator of the node is a preset operator, determine the traffic growth rate of the node within the preset time range according to the log file of the node;
  • the node is determined as a second server node that is not suitable for scheduling.
  • the node if the real-time availability status of a node indicates that the node is not operating normally, the node is considered to be a second server node that is not suitable for scheduling; if the real-time traffic percentage of the first server node is greater than or equal to the percentage Threshold (for example, the server node has purchased 90% of the bandwidth), the service pressure of the server node is relatively high, and it is not suitable for scheduling; if the operator of the first server node is not the preset operator, it is not suitable for receiving the traffic to be scheduled Scheduling; the log file of the first server node can be used to determine the traffic growth rate of the first server node in the most recent period.
  • Threshold for example, the server node has purchased 90% of the bandwidth
  • the service pressure of the first server node will increase quickly. It is unable to continue to provide good quality services and is not suitable for scheduling.
  • the first server node that is, the second server node
  • the manner in which the determining module 201 determines the response time and download speed of the first server node to access the network in the fourth area is specifically as follows:
  • the Internet packet explorer is a program used to test the network connection. It can use the uniqueness of the IP address of the machine on the network to send a data packet to the target IP address, and then ask the other party to return a data of the same size Package to determine whether two network machines are connected and what is the delay.
  • Agent refers to a software or hardware entity capable of autonomous activities.
  • the agent deployed on the server node can be used to ping the main route of the network in the fourth area to obtain the response time, and the server node can be obtained through historical access log data.
  • the download traffic and download time of accessing the network in the fourth area are calculated to obtain the download speed.
  • the preset weight includes a response weight and a download weight
  • the determination module 201 performs a normalization operation on the response time and download speed according to the preset weight to obtain the first
  • normalization is an algorithm proposed for the convenience of data processing and mapping data to a range of 0 to 1.
  • the response time of the first server node's access to the network in the fourth area can be multiplied by the response weight to obtain the response value
  • the download speed of the first server node's access to the network in the fourth area can be multiplied by Download the weight to obtain the download value, because the smaller the response time value, the better the service quality provided by the server node.
  • the larger the download speed value the better the service quality provided by the server node. Therefore, the response value is used as the denominator, and the download value is used as the The numerator, the larger the ratio of the response value to the download value, the larger the corresponding link quality score, and the better the service quality provided by the server node.
  • the traffic scheduling device described in Figure 2 when the traffic suddenly increases, that is, when the traffic of the target server node is greater than the preset traffic threshold, the traffic to be scheduled can be determined, and the traffic to be scheduled can be scheduled to the first scheduling server node to slow down the current
  • the service pressure of the server node can improve the service quality.
  • Fig. 3 is a schematic structural diagram of a server in a preferred embodiment of the traffic scheduling method according to the present application.
  • the server 3 includes a memory 31, at least one processor 32, computer readable instructions 33 stored in the memory 31 and executable on the at least one processor 32, and at least one communication bus 34.
  • FIG. 3 is only an example of the server 3, and does not constitute a limitation on the server 3. It may include more or less components than those shown in the figure, or combine some Components, or different components, for example, the server 3 may also include input and output devices, network access devices, and so on.
  • the server 3 also includes, but is not limited to, any electronic product that can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, and a personal computer.
  • Digital assistants Personal Digital Assistant, PDA
  • game consoles interactive network television (Internet Protocol Television, IPTV), smart wearable devices, etc.
  • the at least one processor 32 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (ASICs). ), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the processor 32 can be a microprocessor or the processor 32 can also be any conventional processor, etc.
  • the processor 32 is the control center of the server 3, and connects each of the entire server 3 through various interfaces and lines. part.
  • the memory 31 may be used to store the computer-readable instructions 33 and/or modules/units, and the processor 32 can run or execute the computer-readable instructions and/or modules/units stored in the memory 31, and
  • the data stored in the memory 31 is called to realize various functions of the server 3.
  • the memory 31 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may The data etc. created in accordance with the use of the server 3 are stored.
  • the memory 31 may include volatile memory such as high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), and a secure digital ( Secure Digital, SD card, Flash Card, at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • volatile memory such as high-speed random access memory
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), and a secure digital ( Secure Digital, SD card, Flash Card, at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), and a secure digital ( Secure Digital, SD card, Flash Card, at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage
  • the memory 31 in the server 3 stores multiple instructions to implement a traffic scheduling method, and the processor 32 can execute the multiple instructions to achieve:
  • the traffic of the target server node is greater than the preset traffic threshold, determine a first area and determine a second area, where the first area is the geographic area to which the target server node belongs, and the second area is the target The geographic area to which the server node’s traffic belongs;
  • the receivable traffic of the first scheduling server node is less than the to-be-scheduled traffic, determining link quality scores and node attribute information of server nodes other than the first scheduling server node and the target server node;
  • the traffic to be scheduled can be determined, and the traffic to be scheduled can be scheduled to the first scheduling server node to slow down the current server.
  • the service pressure of the node can improve the service quality, and the link quality scores of other server nodes can be calculated, and then the appropriate server node (second scheduling server node) can be determined according to the link quality score and the server node attribute information of other server nodes.
  • Part of the traffic is dispatched to these server nodes, and a suitable server node is found to share part of the service pressure, so that the service pressure of the current server node is reduced, and the service quality of the server node is improved.
  • the integrated modules/units of the server 3 When the integrated modules/units of the server 3 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium, which may be non-volatile.
  • the storage medium can also be a volatile storage medium.
  • the computer-readable instruction includes computer-readable instruction code
  • the computer-readable instruction code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable medium may include: any entity or device capable of carrying the computer-readable instruction code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory).
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请涉及人工智能技术领域,提供一种流量调度方法,包括:确定第一区域以及确定第二区域;若存在第三区域,根据第一区域与第三区域之间的距离以及目标服务器节点的预设调度流量阈值,从服务器节点的流量中确定待调度流量;根据待调度流量,确定第一调度服务器节点;若第一调度服务器节点的可接收流量小于待调度流量,确定除了第一调度服务器节点以及目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;根据链路质量分数以及节点属性信息,确定第二调度服务器节点;将待调度流量调度至第一调度服务器节点以及第二调度服务器节点。本申请还提供一种流量调度装置、服务器以及存储介质。本申请能提高服务器节点的服务质量。

Description

流量调度方法、装置、服务器及存储介质
本申请要求于2020年03月19日提交中国专利局,申请号为202010196010.2发明名称为“流量调度方法、装置、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域,尤其涉及一种流量调度方法、装置、服务器及存储介质。
背景技术
目前,随着视频和其他内容流量的迅猛增长,使得负责内容传输的CDN(Content Delivery Network,内容分发网络)的重要性日益凸显,但发明人意识到,某个地区的服务器节点的流量会突然增加,使得该服务器节点的服务压力变大,一旦超出该服务器节点的流量承载范围,该服务器节点的服务质量会下降。
因此,如何提高服务器节点的服务质量是一个亟需解决的技术问题。
发明内容
鉴于以上内容,有必要提供一种流量调度方法、装置、服务器及存储介质,能够提高服务器节点的服务质量。
本申请的第一方面提供一种流量调度方法,所述方法包括:
当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
根据所述待调度流量,确定第一调度服务器节点;
若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
本申请的第二方面提供一种服务器,所述服务器包括处理器和存储器,所述处理器用于执行所述存储器中存储的计算机可读指令以实现以下步骤:
当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
根据所述待调度流量,确定第一调度服务器节点;
若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
本申请的第三方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有至少一个计算机可读指令,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
根据所述待调度流量,确定第一调度服务器节点;
若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
本申请的第四方面提供一种流量调度装置,所述装置包括:
确定模块,用于当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
所述确定模块,还用于若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
所述确定模块,还用于根据所述待调度流量,确定第一调度服务器节点;
所述确定模块,还用于若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
所述确定模块,还用于根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
调度模块,用于将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
由以上技术方案,本申请中,当流量突增时,即目标服务器节点的流量大于预设流量阈值时,可以确定待调度流量,将待流量调度至第一调度服务器节点,以减缓当前服务器节点的服务压力,提高服务质量,还可以算出其他服务器节点的链路质量分数,然后根据链路质量分数以及其他服务器节点的服务器节点属性信息,确定合适的服务器节点(第二调度服务器节点),将一部分流量调度至这些服务器节点中,寻找合适的服务器节点分担部分服务压力,使得当前服务器节点的服务压力减少,提高了服务器节点的服务质量。
附图说明
图1是本申请公开的一种流量调度方法的较佳实施例的流程图。
图2是本申请公开的一种流量调度装置的较佳实施例的功能模块图。
图3是本申请实现流量调度方法的较佳实施例的服务器的结构示意图。
具体实施方式
本申请实施例的流量调度方法应用在服务器中,也可以应用在服务器和通过网络与所述服务器进行连接的电子设备所构成的硬件环境中,由服务器和电子设备共同执行。网络包括但不限于:广域网、城域网或局域网。
请参见图1,图1是本申请公开的一种流量调度方法的较佳实施例的流程图。其中,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。
S11、当目标服务器节点的流量大于预设流量阈值时,服务器确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域。
本申请实施例中,可以预先设置一个最大流量阈值,比如为该服务器节点采购的带宽值的95%,当存在服务器节点(目标服务器节点)在预设时间范围内(比如10分钟内)的平均流量大于最大流量阈值时,会影响目标服务器的服务质量,为了确保服务器节点的服务质量,需要对服务器节点的流量进行调度,即将一部分流量调去别的服务器节点,可以确定服务器节点的流量所属的地理区域(第二区域,比如:广东、广西等)。
S12、若所述第二区域中存在除了所述第一区域之外的第三区域,服务器根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量。
其中,所述预设调度流量阈值为预先设置的一个流量阈值,比如服务器节点总流量的30%,当服务器节点需要进行流量调度时,可以将服务器节点的30%流量进行调度。
可选的,可以判断流量所属的地理区域是否存在除了第一区域之外的第三区域,假设目标服务器节点所属的地理区域(第一区域)为北京,目标服务器节点的流量所属的地理区域(第二区域)包括广东、广西以及北京,即目标服务器节点中有来自广东、广西以及北京地区的用户的访问流量(即有来广东、广西以及北京地区的用户的访问请求),可以认为第二区域中存在除了第一区域之外的第三区域(广东以及广西)。假设目标服务器节点所属的地理区域为北京,目标服务器节点的流量所属的地理区域为北京,可以认为第二区域中不存在除了第一区域之外的第三区域。
本申请实施例中,除了根据调度流量阈值决定需要调走多少流量,还需要根据第一区域与每个第三区域的距离决定调走哪一部分流量,可以优先考虑将与第一区域距离最远的第三区域的流量调走,比如,广西与北京的距离比广东与北京的距离更远,则优先考虑将广西的流量调走。因此,需要确定服务器节点的待调度流量以及待调度流量所属的第四区域。
S13、服务器根据所述待调度流量,确定第一调度服务器节点。
具体的,所述根据所述待调度流量,确定第一调度服务器节点包括:
将所述待调度流量所属的地理区域确定为第四区域;
将所述第四区域的服务器节点确定为所述第一调度服务器节点。
S14、若所述第一调度服务器节点的可接收流量小于所述待调度流量,服务器确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息。
本申请实施例中,可以判断第一调度服务器节点的可接收流量是否小于所述待调度流量,若第一调度服务器节点的可接收流量大于或等于所述待调度流量,则可以将所述待调度流量调度至所述第一调度服务器节点。若第一调度服务器节点的可接收流量小于所述待调度流量,可以确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息。
具体的,所述确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器 节点的链路质量分数包括:
将所述除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点确定为第一服务器节点;
确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度;
根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
具体的,所述确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度包括:
通过所述第一服务器节点的代理程序调用因特网包探索器命令,确定所述第一服务器节点访问所述第四区域的网络的响应时间;
根据所述第一服务器节点的历史访问日志,获取所述第一服务器节点访问第四区域的网络的下载流量以及下载时间;
根据所述下载流量以及所述下载时间,确定所述第一服务器节点访问所述第四区域的网络的下载速度。
其中,所述因特网包探索器(Ping)是用于测试网络连接量的程序,可以利用网络上机器IP地址的唯一性,给目标IP地址发送一个数据包,再要求对方返回一个同样大小的数据包来确定两台网络机器是否连接相通,时延是多少。
其中,代理(Agent)是指能够自主活动的软件或者硬件实体。
在该可选的实施方式中,可以通过部署在服务器节点(第一服务器节点)上的代理去Ping第四区域的网络的主路由,获取响应时间,可以通过历史访问日志的数据,获取服务器节点访问第四区域的网络的下载流量以及下载时间,通过计算获得下载速度。
具体的,所述预设权重包括响应权重以及下载权重,所述根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数包括:
根据所述响应权重以及所述第一服务器节点访问所述第四区域的网络的响应时间,确定所述第一服务器节点的响应值,并根据所述下载权重以及所述第一服务器节点访问所述第四区域的网络的下载速度,确定所述第一服务器节点的下载值;
计算所述第一服务器节点的下载值与所述第一服务器节点的响应值的比值;
对所述比值进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
其中,归一化是一种为了数据处理方便提出来的,把数据映射到0~1范围之内的算法。
作为一种可选的实施方式,可以将第一服务器节点访问第四区域的网络的响应时间乘以响应权重,获得响应值,可以将第一服务器节点访问第四区域的网络的下载速度乘以下载权重,获得下载值,因为响应时间的值越小,服务器节点提供的服务质量越好,下载速度的值越大,服务器节点提供的服务质量越好,因此将响应值作为分母,下载值作为分子,响应值与下载值的比值越大,其对应的链路质量分数越大,服务器节点提供的服务质量也就越好。
S15、服务器根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点。
本申请实施例中,因为第一调度服务器节点无法接收全部的所述待调度流量,需要寻找其他服务器节点来接收剩余的待调度流量。
具体的,所述节点属性信息包括实时可用状态、实时流量百分比、运营商、流量成本以及流量增长速度,所述根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点包括:
将所述第一服务器节点按照所述链路质量分数从大到小进行排序,获得第一队列;
根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及 所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点;
从所述第一队列的所有节点中,删除所述第二服务器节点,获得第二队列;
根据所述流量成本,从所述第二队列的所有节点中,将排列顺序在第一的节点确定为第二调度服务器节点。
在该可选的实施方式中,可以将所有第一服务器节点按照其对应的链路质量分数从大到小进行排序,获得第一队列,并根据第一服务器节点的实时可用状态、实时流量百分比、运营商以及流量增长速度,确定不适合进行流量调度的第一服务器节点,即第二服务器节点,并删除第一队列中的第二服务器节点,获得第二队列,然后可以结合考虑流量成本,从第二队列中挑选排序靠前的待调度服务器节点进行流量调度,可以选取排在第一的服务器节点,用于流量调度的待调度服务器节点的链路质量分数较高,即待调度服务器节点提供的服务质量较高。
具体的,所述根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点包括:
针对所述第一服务器节点中的每个节点,判断所述节点的实时可用状态是否为预设状态;
若所述节点的实时可用状态为预设状态,判断所述节点的实时流量百分比是否小于预设百分比阈值;
若所述节点的实时流量百分比小于预设百分比阈值,判断所述节点的运营商是否为预设运营商;
若所述节点的运营商为预设运营商,根据所述节点的日志文件,确定所述节点在预设时间范围内的流量增长速度;
判断所述流量增长速度是否大于预设速度阈值;
若所述流量增长速度大于预设速度阈值,将所述节点确定为不适合调度的第二服务器节点。
在该可选的实施方式中,若有节点的实时可用状态指示该节点不正常运行,则认为该节点为不适合调度的第二服务器节点;若第一服务器节点的实时流量百分比大于或等于百分比阈值(比如该服务器节点已采购带宽的90%),该服务器节点的服务压力比较大,不适合调度;若第一服务器节点的运营商不是预设运营商,无法接收待调度流量,也不适合调度;可以通过第一服务器节点的日志文件,确定第一服务器节点最近一段时间的流量增长速度,若流量增长速度大于预设速度阈值,则该第一服务器节点的服务压力会很快增大,无法继续提供质量好的服务,也不适合调度。通过筛选出不适合调度的第一服务器节点(即第二服务器节点),可以确保待调度流量可以调度至适合的服务器节点。
S16、服务器将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
本申请实施例中,因为所述第一调度服务器节点无法接收全部的所述待调度流量,因此需要将所述待调度流量分成两部分进行调度,将一部分带调度流量调度至第一调度服务器节点,以及将另一部分待调度流量调度至所述第二调度服务器节点。即可以将待调度流量调度至当前最适合的服务器节点,可以提高服务器节点的服务质量。
在图1所描述的方法流程中,当流量突增时,即目标服务器节点的流量大于预设流量阈值时,可以确定待调度流量,将待流量调度至第一调度服务器节点,以减缓当前服务器节点的服务压力,提高服务质量,还可以算出其他服务器节点的链路质量分数,然后根据链路质量分数以及其他服务器节点的服务器节点属性信息,确定合适的服务器节点(第二调度服务器节点),将一部分流量调度至这些服务器节点中,寻找合适的服务器节点分担部分服务压力,使得当前服务器节点的服务压力减少,提高了服务器节点的服务质量。
以上所述,仅是本申请的具体实施方式,但本申请的保护范围并不局限于此,对于本领域的普通技术人员来说,在不脱离本申请创造构思的前提下,还可以做出改进,但这些均属于本申请的保护范围。
请参见图2,图2是本申请公开的一种流量调度装置的较佳实施例的功能模块图。
在一些实施例中,所述流量调度装置运行于服务器中。所述流量调度装置可以包括多个由程序代码段所组成的功能模块,所述程序是一系列的计算机可读指令代码。所述流量调度装置中的各个程序段的程序代码可以存储于存储器中,并由至少一个处理器所执行,以执行图1所描述的流量调度方法中的部分或全部步骤,具体可以参照图1所述方法中的相关描述,在此不再赘述。
本实施例中,所述流量调度装置根据其所执行的功能,可以被划分为多个功能模块。所述功能模块可以包括:确定模块201及调度模块202。本申请所称的模块是指一种能够被至少一个处理器所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器中。
确定模块201,用于当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域。
本申请实施例中,可以预先设置一个最大流量阈值,比如为该服务器节点采购的带宽值的95%,当存在服务器节点(目标服务器节点)在预设时间范围内(比如10分钟内)的平均流量大于最大流量阈值时,会影响目标服务器的服务质量,为了确保服务器节点的服务质量,需要对服务器节点的流量进行调度,即将一部分流量调去别的服务器节点,可以确定服务器节点的流量所属的地理区域(第二区域,比如:广东、广西等)。
所述确定模块201,还用于若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量。
其中,所述预设调度流量阈值为预先设置的一个流量阈值,比如服务器节点总流量的30%,当服务器节点需要进行流量调度时,可以将服务器节点的30%流量进行调度。
可选的,可以判断流量所属的地理区域是否存在除了第一区域之外的第三区域,假设目标服务器节点所属的地理区域(第一区域)为北京,目标服务器节点的流量所属的地理区域(第二区域)包括广东、广西以及北京,即目标服务器节点中有来自广东、广西以及北京地区的用户的访问流量(即有来广东、广西以及北京地区的用户的访问请求),可以认为第二区域中存在除了第一区域之外的第三区域(广东以及广西)。假设目标服务器节点所属的地理区域为北京,目标服务器节点的流量所属的地理区域为北京,可以认为第二区域中不存在除了第一区域之外的第三区域。
本申请实施例中,除了根据调度流量阈值决定需要调走多少流量,还需要根据第一区域与每个第三区域的距离决定调走哪一部分流量,可以优先考虑将与第一区域距离最远的第三区域的流量调走,比如,广西与北京的距离比广东与北京的距离更远,则优先考虑将广西的流量调走。因此,需要确定服务器节点的待调度流量以及待调度流量所属的第四区域。
所述确定模块201,还用于根据所述待调度流量,确定第一调度服务器节点。
所述确定模块201,还用于若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息。
本申请实施例中,可以判断第一调度服务器节点的可接收流量是否小于所述待调度流量,若第一调度服务器节点的可接收流量大于或等于所述待调度流量,则可以将所述待调度流量调度至所述第一调度服务器节点。若第一调度服务器节点的可接收流量小于所述待调度流量,可以确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质 量分数以及节点属性信息。
所述确定模块201,还用于根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点。
本申请实施例中,因为第一调度服务器节点无法接收全部的所述待调度流量,需要寻找其他服务器节点来接收剩余的待调度流量。
调度模块202,用于将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。本申请实施例中,因为所述第一调度服务器节点无法接收全部的所述待调度流量,因此需要将所述待调度流量分成两部分进行调度,将一部分带调度流量调度至第一调度服务器节点,以及将另一部分待调度流量调度至所述第二调度服务器节点。即可以将待调度流量调度至当前最适合的服务器节点,可以提高服务器节点的服务质量。
作为一种可选的实施方式,所述确定模块201根据所述待调度流量,确定第一调度服务器节点的方式具体为:
将所述待调度流量所属的地理区域确定为第四区域;
将所述第四区域的服务器节点确定为所述第一调度服务器节点。
作为一种可选的实施方式,所述确定模块201确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数的方式具体为:
将所述除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点确定为第一服务器节点;
确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度;
根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
作为一种可选的实施方式,所述节点属性信息包括实时可用状态、实时流量百分比、运营商、流量成本以及流量增长速度,所述确定模块201根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点的方式具体为:
将所述第一服务器节点按照所述链路质量分数从大到小进行排序,获得第一队列;
根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点;
从所述第一队列的所有节点中,删除所述第二服务器节点,获得第二队列;
根据所述流量成本,从所述第二队列的所有节点中,将排列顺序在第一的节点确定为第二调度服务器节点。
在该可选的实施方式中,可以将所有第一服务器节点按照其对应的链路质量分数从大到小进行排序,获得第一队列,并根据第一服务器节点的实时可用状态、实时流量百分比、运营商以及流量增长速度,确定不适合进行流量调度的第一服务器节点,即第二服务器节点,并删除第一队列中的第二服务器节点,获得第二队列,然后可以结合考虑流量成本,从第二队列中挑选排序靠前的待调度服务器节点进行流量调度,可以选取排在第一的服务器节点,用于流量调度的待调度服务器节点的链路质量分数较高,即待调度服务器节点提供的服务质量较高。
作为一种可选的实施方式,所述确定模块201根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点的方式具体为:
针对所述第一服务器节点中的每个节点,判断所述节点的实时可用状态是否为预设状态;
若所述节点的实时可用状态为预设状态,判断所述节点的实时流量百分比是否小于预设百分比阈值;
若所述节点的实时流量百分比小于预设百分比阈值,判断所述节点的运营商是否为预设 运营商;
若所述节点的运营商为预设运营商,根据所述节点的日志文件,确定所述节点在预设时间范围内的流量增长速度;
判断所述流量增长速度是否大于预设速度阈值;
若所述流量增长速度大于预设速度阈值,将所述节点确定为不适合调度的第二服务器节点。
在该可选的实施方式中,若有节点的实时可用状态指示该节点不正常运行,则认为该节点为不适合调度的第二服务器节点;若第一服务器节点的实时流量百分比大于或等于百分比阈值(比如该服务器节点已采购带宽的90%),该服务器节点的服务压力比较大,不适合调度;若第一服务器节点的运营商不是预设运营商,无法接收待调度流量,也不适合调度;可以通过第一服务器节点的日志文件,确定第一服务器节点最近一段时间的流量增长速度,若流量增长速度大于预设速度阈值,则该第一服务器节点的服务压力会很快增大,无法继续提供质量好的服务,也不适合调度。通过筛选出不适合调度的第一服务器节点(即第二服务器节点),可以确保待调度流量可以调度至适合的服务器节点。
作为一种可选的实施方式,所述确定模块201确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度的方式具体为:
通过所述第一服务器节点的代理程序调用因特网包探索器命令,确定所述第一服务器节点访问所述第四区域的网络的响应时间;
根据所述第一服务器节点的历史访问日志,获取所述第一服务器节点访问第四区域的网络的下载流量以及下载时间;
根据所述下载流量以及所述下载时间,确定所述第一服务器节点访问所述第四区域的网络的下载速度。
其中,所述因特网包探索器(Ping)是用于测试网络连接量的程序,可以利用网络上机器IP地址的唯一性,给目标IP地址发送一个数据包,再要求对方返回一个同样大小的数据包来确定两台网络机器是否连接相通,时延是多少。
其中,代理(Agent)是指能够自主活动的软件或者硬件实体。
在该可选的实施方式中,可以通过部署在服务器节点(第一服务器节点)上的代理去Ping第四区域的网络的主路由,获取响应时间,可以通过历史访问日志的数据,获取服务器节点访问第四区域的网络的下载流量以及下载时间,通过计算获得下载速度。
作为一种可选的实施方式,所述预设权重包括响应权重以及下载权重,所述确定模块201根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数的方式具体为:
根据所述响应权重以及所述第一服务器节点访问所述第四区域的网络的响应时间,确定所述第一服务器节点的响应值,并根据所述下载权重以及所述第一服务器节点访问所述第四区域的网络的下载速度,确定所述第一服务器节点的下载值;
计算所述第一服务器节点的下载值与所述第一服务器节点的响应值的比值;
对所述比值进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
其中,归一化是一种为了数据处理方便提出来的,把数据映射到0~1范围之内的算法。
作为一种可选的实施方式,可以将第一服务器节点访问第四区域的网络的响应时间乘以响应权重,获得响应值,可以将第一服务器节点访问第四区域的网络的下载速度乘以下载权重,获得下载值,因为响应时间的值越小,服务器节点提供的服务质量越好,下载速度的值越大,服务器节点提供的服务质量越好,因此将响应值作为分母,下载值作为分子,响应值与下载值的比值越大,其对应的链路质量分数越大,服务器节点提供的服务质量也就越好。
在图2所描述的流量调度装置中,当流量突增时,即目标服务器节点的流量大于预设流量阈值时,可以确定待调度流量,将待流量调度至第一调度服务器节点,以减缓当前服务器节点的服务压力,提高服务质量,还可以算出其他服务器节点的链路质量分数,然后根据链路质量分数以及其他服务器节点的服务器节点属性信息,确定合适的服务器节点(第二调度服务器节点),将一部分流量调度至这些服务器节点中,寻找合适的服务器节点分担部分服务压力,使得当前服务器节点的服务压力减少,提高了服务器节点的服务质量。
如图3所示,图3是本申请实现流量调度方法的较佳实施例的服务器的结构示意图。所述服务器3包括存储器31、至少一个处理器32、存储在所述存储器31中并可在所述至少一个处理器32上运行的计算机可读指令33及至少一条通讯总线34。
本领域技术人员可以理解,图3所示的示意图仅仅是所述服务器3的示例,并不构成对所述服务器3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述服务器3还可以包括输入输出设备、网络接入设备等。
所述服务器3还包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。
所述至少一个处理器32可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。该处理器32可以是微处理器或者该处理器32也可以是任何常规的处理器等,所述处理器32是所述服务器3的控制中心,利用各种接口和线路连接整个服务器3的各个部分。
所述存储器31可用于存储所述计算机可读指令33和/或模块/单元,所述处理器32通过运行或执行存储在所述存储器31内的计算机可读指令和/或模块/单元,以及调用存储在存储器31内的数据,实现所述服务器3的各种功能。所述存储器31可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器3的使用所创建的数据等。此外,存储器31可以包括高速随机存取存储器等易失性存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。
结合图1,所述服务器3中的所述存储器31存储多个指令以实现一种流量调度方法,所述处理器32可执行所述多个指令从而实现:
当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
根据所述待调度流量,确定第一调度服务器节点;
若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
具体地,所述处理器32对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。
在图3所描述的服务器3中,当流量突增时,即目标服务器节点的流量大于预设流量阈值时,可以确定待调度流量,将待流量调度至第一调度服务器节点,以减缓当前服务器节点的服务压力,提高服务质量,还可以算出其他服务器节点的链路质量分数,然后根据链路质量分数以及其他服务器节点的服务器节点属性信息,确定合适的服务器节点(第二调度服务器节点),将一部分流量调度至这些服务器节点中,寻找合适的服务器节点分担部分服务压力,使得当前服务器节点的服务压力减少,提高了服务器节点的服务质量。
所述服务器3集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中,所述计算机可读存储介质可以是非易失性的存储介质,也可以是易失性的存储介质。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存储器(RAM,Random Access Memory)。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (20)

  1. 一种流量调度方法,其中,所述流量调度方法包括:
    当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
    若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
    根据所述待调度流量,确定第一调度服务器节点;
    若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
    根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
    将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
  2. 根据权利要求1所述的流量调度方法,其中,所述根据所述待调度流量,确定第一调度服务器节点包括:
    将所述待调度流量所属的地理区域确定为第四区域;
    将所述第四区域的服务器节点确定为所述第一调度服务器节点。
  3. 根据权利要求2所述的流量调度方法,其中,所述确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数包括:
    将所述除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点确定为第一服务器节点;
    确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度;
    根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
  4. 根据权利要求3所述的流量调度方法,其中,所述节点属性信息包括实时可用状态、实时流量百分比、运营商、流量成本以及流量增长速度,所述根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点包括:
    将所述第一服务器节点按照所述链路质量分数从大到小进行排序,获得第一队列;
    根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点;
    从所述第一队列的所有节点中,删除所述第二服务器节点,获得第二队列;
    根据所述流量成本,从所述第二队列的所有节点中,将排列顺序在第一的节点确定为第二调度服务器节点。
  5. 根据权利要求4所述的流量调度方法,其中,所述根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点包括:
    针对所述第一服务器节点中的每个节点,判断所述节点的实时可用状态是否为预设状态;
    若所述节点的实时可用状态为预设状态,判断所述节点的实时流量百分比是否小于预设百分比阈值;
    若所述节点的实时流量百分比小于预设百分比阈值,判断所述节点的运营商是否为预设运营商;
    若所述节点的运营商为预设运营商,根据所述节点的日志文件,确定所述节点在预设时间范围内的流量增长速度;
    判断所述流量增长速度是否大于预设速度阈值;
    若所述流量增长速度大于预设速度阈值,将所述节点确定为不适合调度的第二服务器节点。
  6. 根据权利要求3所述的流量调度方法,其中,所述确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度包括:
    通过所述第一服务器节点的代理程序调用因特网包探索器命令,确定所述第一服务器节点访问所述第四区域的网络的响应时间;
    根据所述第一服务器节点的历史访问日志,获取所述第一服务器节点访问第四区域的网络的下载流量以及下载时间;
    根据所述下载流量以及所述下载时间,确定所述第一服务器节点访问所述第四区域的网络的下载速度。
  7. 根据权利要求3所述的流量调度方法,其中,所述预设权重包括响应权重以及下载权重,所述根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数包括:
    根据所述响应权重以及所述第一服务器节点访问所述第四区域的网络的响应时间,确定所述第一服务器节点的响应值,并根据所述下载权重以及所述第一服务器节点访问所述第四区域的网络的下载速度,确定所述第一服务器节点的下载值;
    计算所述第一服务器节点的下载值与所述第一服务器节点的响应值的比值;
    对所述比值进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
  8. 一种服务器,其中,所述服务器包括处理器和存储器,所述处理器用于执行存储器中存储的至少一个计算机可读指令以实现以下步骤:
    当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
    若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
    根据所述待调度流量,确定第一调度服务器节点;
    若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
    根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
    将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
  9. 根据权利要求8所述的服务器,其中,在所述根据所述待调度流量,确定第一调度服务器节点时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    将所述待调度流量所属的地理区域确定为第四区域;
    将所述第四区域的服务器节点确定为所述第一调度服务器节点。
  10. 根据权利要求9所述的服务器,其中,在所述确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    将所述除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点确定为第一服务器节点;
    确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度;
    根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
  11. 根据权利要求10所述的服务器,其中,所述节点属性信息包括实时可用状态、实时流量百分比、运营商、流量成本以及流量增长速度,在所述根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    将所述第一服务器节点按照所述链路质量分数从大到小进行排序,获得第一队列;
    根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点;
    从所述第一队列的所有节点中,删除所述第二服务器节点,获得第二队列;
    根据所述流量成本,从所述第二队列的所有节点中,将排列顺序在第一的节点确定为第二调度服务器节点。
  12. 根据权利要求11所述的服务器,其中,在所述根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    针对所述第一服务器节点中的每个节点,判断所述节点的实时可用状态是否为预设状态;
    若所述节点的实时可用状态为预设状态,判断所述节点的实时流量百分比是否小于预设百分比阈值;
    若所述节点的实时流量百分比小于预设百分比阈值,判断所述节点的运营商是否为预设运营商;
    若所述节点的运营商为预设运营商,根据所述节点的日志文件,确定所述节点在预设时间范围内的流量增长速度;
    判断所述流量增长速度是否大于预设速度阈值;
    若所述流量增长速度大于预设速度阈值,将所述节点确定为不适合调度的第二服务器节点。
  13. 根据权利要求10所述的服务器,其中,在所述确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    通过所述第一服务器节点的代理程序调用因特网包探索器命令,确定所述第一服务器节点访问所述第四区域的网络的响应时间;
    根据所述第一服务器节点的历史访问日志,获取所述第一服务器节点访问第四区域的网络的下载流量以及下载时间;
    根据所述下载流量以及所述下载时间,确定所述第一服务器节点访问所述第四区域的网络的下载速度。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有至少一个计算机可读指令,所述至少一个计算机可读指令被处理器执行时实现以下步骤:
    当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
    若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
    根据所述待调度流量,确定第一调度服务器节点;
    若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
    根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
    将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
  15. 根据权利要求14所述的存储介质,其中,在所述根据所述待调度流量,确定第一调度服务器节点时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    将所述待调度流量所属的地理区域确定为第四区域;
    将所述第四区域的服务器节点确定为所述第一调度服务器节点。
  16. 根据权利要求15所述的存储介质,其中,在所述确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    将所述除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点确定为第一服务器节点;
    确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度;
    根据预设权重,对所述响应时间以及下载速度进行归一化运算,获得所述第一服务器节点到所述第四区域的网络的链路质量分数。
  17. 根据权利要求16所述的存储介质,其中,所述节点属性信息包括实时可用状态、实时流量百分比、运营商、流量成本以及流量增长速度,在所述根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    将所述第一服务器节点按照所述链路质量分数从大到小进行排序,获得第一队列;
    根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点;
    从所述第一队列的所有节点中,删除所述第二服务器节点,获得第二队列;
    根据所述流量成本,从所述第二队列的所有节点中,将排列顺序在第一的节点确定为第二调度服务器节点。
  18. 根据权利要求17所述的存储介质,其中,在所述根据所述第一服务器节点的所述实时可用状态、所述实时流量百分比、所述运营商以及所述流量增长速度,从所述第一服务器节点中确定不适合调度的第二服务器节点时,所述至少一个计算机可读指令被处理器执行时还用以实现以下步骤:
    针对所述第一服务器节点中的每个节点,判断所述节点的实时可用状态是否为预设状态;
    若所述节点的实时可用状态为预设状态,判断所述节点的实时流量百分比是否小于预设百分比阈值;
    若所述节点的实时流量百分比小于预设百分比阈值,判断所述节点的运营商是否为预设运营商;
    若所述节点的运营商为预设运营商,根据所述节点的日志文件,确定所述节点在预设时间范围内的流量增长速度;
    判断所述流量增长速度是否大于预设速度阈值;
    若所述流量增长速度大于预设速度阈值,将所述节点确定为不适合调度的第二服务器节点。
  19. 根据权利要求16所述的存储介质,其中,在所述确定所述第一服务器节点访问所述第四区域的网络的响应时间以及下载速度时,所述至少一个计算机可读指令被处理器执行时还用以实现以下步骤:
    通过所述第一服务器节点的代理程序调用因特网包探索器命令,确定所述第一服务器节点访问所述第四区域的网络的响应时间;
    根据所述第一服务器节点的历史访问日志,获取所述第一服务器节点访问第四区域的网络的下载流量以及下载时间;
    根据所述下载流量以及所述下载时间,确定所述第一服务器节点访问所述第四区域的网络的下载速度。
  20. 一种流量调度装置,其中,所述流量调度装置包括:
    确定模块,用于当目标服务器节点的流量大于预设流量阈值时,确定第一区域以及确定第二区域,其中,所述第一区域是所述目标服务器节点所属的地理区域,所述第二区域是所述目标服务器节点的流量所属的地理区域;
    所述确定模块,还用于若所述第二区域中存在除了所述第一区域之外的第三区域,根据所述第一区域与所述第三区域之间的距离以及所述目标服务器节点的预设调度流量阈值,从所述目标服务器节点的流量中确定待调度流量;
    所述确定模块,还用于根据所述待调度流量,确定第一调度服务器节点;
    所述确定模块,还用于若所述第一调度服务器节点的可接收流量小于所述待调度流量,确定除了所述第一调度服务器节点以及所述目标服务器节点之外的服务器节点的链路质量分数以及节点属性信息;
    所述确定模块,还用于根据所述链路质量分数以及所述节点属性信息,确定第二调度服务器节点;
    调度模块,用于将所述待调度流量调度至所述第一调度服务器节点以及所述第二调度服务器节点。
PCT/CN2020/099315 2020-03-19 2020-06-30 流量调度方法、装置、服务器及存储介质 Ceased WO2021184589A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010196010.2 2020-03-19
CN202010196010.2A CN111432247B (zh) 2020-03-19 2020-03-19 流量调度方法、装置、服务器及存储介质

Publications (1)

Publication Number Publication Date
WO2021184589A1 true WO2021184589A1 (zh) 2021-09-23

Family

ID=71548153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099315 Ceased WO2021184589A1 (zh) 2020-03-19 2020-06-30 流量调度方法、装置、服务器及存储介质

Country Status (2)

Country Link
CN (1) CN111432247B (zh)
WO (1) WO2021184589A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604188A (zh) * 2022-09-09 2023-01-13 建信金融科技有限责任公司(Cn) 流量调度方法、装置、设备及存储介质
WO2023098702A1 (zh) * 2021-11-30 2023-06-08 中兴通讯股份有限公司 流量均衡方法、电子设备、计算机可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194042B (zh) * 2021-03-19 2023-02-21 迅雷计算机(深圳)有限公司 一种流量传输速度的控制方法、装置以及存储介质
CN113157460B (zh) * 2021-05-20 2023-06-30 苏州达家迎信息技术有限公司 服务节点分裂方法、装置、存储介质及电子设备
CN115277565B (zh) * 2022-08-09 2024-05-07 北京有竹居网络技术有限公司 流量通路的调度方法、装置、电子设备及存储介质
CN118101567A (zh) * 2022-11-21 2024-05-28 华为云计算技术有限公司 流量调度方法、装置、设备集群及计算机可读存储介质
CN118826831B (zh) * 2024-06-21 2025-03-18 中国人民解放军军事科学院系统工程研究院 一种卫星通信网络流量适配方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103547994A (zh) * 2011-05-20 2014-01-29 微软公司 用于容量管理和灾难恢复的跨云计算
CN104168300A (zh) * 2013-05-17 2014-11-26 中国电信股份有限公司 内容加速方法与系统
CN106330962A (zh) * 2016-09-30 2017-01-11 中国联合网络通信集团有限公司 一种流量清洗管理方法及装置
CN107205030A (zh) * 2017-05-31 2017-09-26 成都博视美达文化传播有限公司 服务器资源调度方法及系统
US20180152510A1 (en) * 2016-11-29 2018-05-31 Level 3 Communications, Llc Cross-cluster direct server return in a content delivery network (cdn)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198267B (zh) * 2018-04-26 2022-01-14 腾讯科技(深圳)有限公司 一种流量调度方法、系统及服务器
CN109040190B (zh) * 2018-07-02 2022-03-22 咪咕文化科技有限公司 一种调度方法、装置及计算机可读存储介质
CN110830540A (zh) * 2018-08-14 2020-02-21 深圳Tcl新技术有限公司 智能电视接入云服务器的方法、存储介质及应用服务器
CN109558152A (zh) * 2018-10-26 2019-04-02 深圳壹账通智能科技有限公司 系统灰度发布时流量切换方法、装置、介质及电子设备
CN109510778A (zh) * 2019-01-03 2019-03-22 Oppo广东移动通信有限公司 流量调度的方法、装置、系统、设备及存储介质
CN109951716B (zh) * 2019-03-26 2020-10-30 北京达佳互联信息技术有限公司 一种主播调度方法、装置、电子设备及可读存储介质
CN110708369B (zh) * 2019-09-25 2022-09-16 深圳市网心科技有限公司 设备节点的文件部署方法、装置、调度服务器及存储介质
CN110661879B (zh) * 2019-10-12 2023-03-24 北京奇艺世纪科技有限公司 节点调度方法、装置、系统、调度服务器及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103547994A (zh) * 2011-05-20 2014-01-29 微软公司 用于容量管理和灾难恢复的跨云计算
CN104168300A (zh) * 2013-05-17 2014-11-26 中国电信股份有限公司 内容加速方法与系统
CN106330962A (zh) * 2016-09-30 2017-01-11 中国联合网络通信集团有限公司 一种流量清洗管理方法及装置
US20180152510A1 (en) * 2016-11-29 2018-05-31 Level 3 Communications, Llc Cross-cluster direct server return in a content delivery network (cdn)
CN107205030A (zh) * 2017-05-31 2017-09-26 成都博视美达文化传播有限公司 服务器资源调度方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098702A1 (zh) * 2021-11-30 2023-06-08 中兴通讯股份有限公司 流量均衡方法、电子设备、计算机可读存储介质
CN115604188A (zh) * 2022-09-09 2023-01-13 建信金融科技有限责任公司(Cn) 流量调度方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN111432247B (zh) 2022-10-18
CN111432247A (zh) 2020-07-17

Similar Documents

Publication Publication Date Title
WO2021184589A1 (zh) 流量调度方法、装置、服务器及存储介质
CN110830564B (zh) Cdn调度方法、装置、系统及计算机可读存储介质
US10305968B2 (en) Reputation-based strategy for forwarding and responding to interests over a content centric network
US10592578B1 (en) Predictive content push-enabled content delivery network
US9722950B2 (en) Processing resource access request in network
CN107404530B (zh) 基于用户兴趣相似度的社交网络协作缓存方法及装置
WO2019232927A1 (zh) 分布式数据删除流控方法、装置、电子设备及存储介质
WO2017181587A1 (zh) Cdn网络中的节点管理方法和电子设备
WO2022089321A1 (zh) 调度接入点的方法、装置、服务器以及存储介质
CN113328953A (zh) 网络拥塞调整的方法、装置和存储介质
US20220329511A1 (en) Systems and Methods for Restricting the Routing Scope of an Anycast Service
CN116915606A (zh) 一种熔断方法、装置、电子设备和存储介质
CN115002117A (zh) 内容分发网络动态调度方法、系统、设备及存储介质
CN108153803A (zh) 一种数据获取方法、装置及电子设备
CN113824689A (zh) 边缘计算网络、数据传输方法、装置、设备和存储介质
CN115567590B (zh) 数据包调度方法、装置、设备及可读存储介质
CN112217727B (zh) 多度量维度的路由选择方法、装置、计算机设备及存储介质
CN108540375A (zh) 资源传播方法、装置、服务器及计算机可读存储介质
CN115988574B (zh) 基于流表的数据处理方法、系统、设备和存储介质
CN115086300B (zh) 一种视频文件调度方法和装置
CN115297015B (zh) 边缘节点接入方法及装置、存储介质和电子设备
US11909646B2 (en) Controlling network throughput using application-level throttling
CN105897828A (zh) 节点缓存机制的确定方法及系统
US20230119538A1 (en) Predetermining network route for content steering
CN116996481B (zh) 直播数据获取方法、装置、电子设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20926014

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20926014

Country of ref document: EP

Kind code of ref document: A1