CN109818881B - CDN bandwidth scheduling method, acquisition and scheduling server and storage medium - Google Patents

CDN bandwidth scheduling method, acquisition and scheduling server and storage medium Download PDF

Info

Publication number
CN109818881B
CN109818881B CN201910209886.3A CN201910209886A CN109818881B CN 109818881 B CN109818881 B CN 109818881B CN 201910209886 A CN201910209886 A CN 201910209886A CN 109818881 B CN109818881 B CN 109818881B
Authority
CN
China
Prior art keywords
bandwidth
network
cdn
preset
real
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.)
Active
Application number
CN201910209886.3A
Other languages
Chinese (zh)
Other versions
CN109818881A (en
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910209886.3A priority Critical patent/CN109818881B/en
Publication of CN109818881A publication Critical patent/CN109818881A/en
Application granted granted Critical
Publication of CN109818881B publication Critical patent/CN109818881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention relates to the technical field of internet and discloses a CDN bandwidth scheduling method, a collection and scheduling server and a storage medium. The method comprises the following steps: acquiring a CDN real-time transmission quality parameter; the CDN is constructed in a preset network and a standby network; updating the bandwidth allocation ratio according to the real-time transmission quality parameter; the bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN on a preset network and a standby network; and issuing the updated bandwidth allocation ratio to an edge node of the CDN, so that the edge node of the CDN allocates bandwidths in corresponding proportions to a preset network and a standby network according to the updated bandwidth allocation ratio. The embodiment of the invention realizes the automatic allocation of the CDN bandwidth among different networks according to the transmission quality of different networks so as to reduce the cost and improve the CDN service quality.

Description

CDN bandwidth scheduling method, acquisition and scheduling server and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a CDN bandwidth scheduling method, a collection and scheduling server and a storage medium.
Background
In a Content Delivery Network (CDN), node servers are configured in various parts of the Network, and an intelligent virtual Network is constructed on the basis of the internet to deliver Content of a website to a Network edge closest to a user, so that the user can obtain required Content nearby. With the rapid development of the internet, applications such as 4K high-definition videos, interactive games, ARs, VRs and the like are continuously emerging, and the demand for bandwidth is increased.
The inventors found that the related art has at least the following problems: the CDN node server is generally built on an operator backbone network, and the rapid development of services enables the internal bandwidth consumption generated when a CDN edge node accesses a transit node to increase continuously, which is costly. In addition, the national operator's pattern of south telecommunication, north netcom' causes resource distribution imbalance, for example, telecommunication transit nodes are mostly concentrated in the south, netcom transit nodes are mostly concentrated in the north, and nodes need to pass through multi-hop transit from a machine room to an operator backbone network, resulting in long delay of edge node transit nodes. Therefore, the single operator network is not favorable for the further development of the CDN service.
Disclosure of Invention
The embodiment of the invention aims to provide a CDN bandwidth scheduling method, a collecting and scheduling server and a storage medium, which realize the automatic allocation of CDN bandwidth among different networks according to the transmission quality of the different networks so as to reduce the cost and improve the CDN service quality.
In order to solve the above technical problem, an embodiment of the present invention provides a CDN bandwidth scheduling method, which is applied to a scheduling server, and includes:
acquiring CDN real-time transmission quality parameters; the CDN is constructed in a preset network and a standby network;
updating a bandwidth allocation ratio according to the real-time transmission quality parameter; the bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN to the preset network and the standby network;
and issuing the updated bandwidth allocation ratio to an edge node of the CDN, so that the edge node of the CDN allocates bandwidths in a corresponding proportion to the preset network and the standby network according to the updated bandwidth allocation ratio.
The embodiment of the invention also provides a CDN bandwidth scheduling method, which comprises the following steps: acquiring real-time transmission quality parameters of the CDN;
the CDN real-time transmission quality parameters are sent to a CDN scheduling server, so that the CDN scheduling server can update a bandwidth allocation ratio according to the CDN real-time transmission quality parameters; the bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN on a preset network and a standby network.
The embodiment of the invention also provides a CDN bandwidth scheduling method, which comprises the following steps:
receiving the updated bandwidth allocation ratio; the bandwidth allocation ratio is issued by a scheduling server in the CDN bandwidth scheduling method;
setting a preset field value of an IP data packet according to the bandwidth allocation ratio;
and determining to adopt a preset network or a standby network of the CDN to transmit the IP data packet according to the preset field value.
The embodiment of the present invention further provides a scheduling server, including: the CDN bandwidth scheduling system comprises a memory storing a computer program and a processor running the computer program to implement the CDN bandwidth scheduling method as described above.
An embodiment of the present invention further provides an acquisition server, including: the CDN bandwidth scheduling system comprises a memory storing a computer program and a processor running the computer program to implement the CDN bandwidth scheduling method as described above.
Embodiments of the present invention also provide a storage medium for storing a computer readable program, where the computer readable program is used for a computer to execute the CDN bandwidth scheduling method as described above.
Compared with the prior art, the embodiment of the invention has the advantages that the CDN bandwidth (namely, internal flow) can be transmitted through the lines of the preset network and the standby network by simultaneously constructing the nodes in the CDN on the preset network and the standby network. The real-time transmission quality parameters of the CDN are obtained, the bandwidth allocation ratio is updated according to the real-time transmission quality parameters, and then the updated bandwidth allocation ratio is issued to the CDN, so that the CDN allocates bandwidths with corresponding proportions to a preset network and a standby network according to the updated bandwidth allocation ratio, and the allocation of the CDN bandwidths among different networks can be automatically updated according to the transmission quality. On the basis, when the transmission quality of a certain network is reduced, the bandwidth can be automatically switched to the network with better transmission quality, and the cost and quality advantages of different networks can be simultaneously utilized, so that the CDN service cost is reduced, and the service quality is improved.
As an embodiment, the real-time transmission quality parameter includes: the quality parameters of the preset network;
the updating of the bandwidth allocation ratio according to the real-time transmission quality parameter specifically includes:
if the quality parameter of the preset network is greater than a first threshold value, taking a first preset ratio as the updated bandwidth allocation ratio;
and if the quality parameter of the preset network is smaller than or equal to the first threshold and the corresponding bandwidth allocation ratio is the first preset ratio, updating the bandwidth allocation ratio. So that the bandwidth can be automatically switched to the standby network when the transmission quality of the preset network is reduced.
As an embodiment, the real-time transmission quality parameter includes: the quality parameters of the preset network and the quality parameters of the standby network;
the updating of the bandwidth allocation ratio according to the real-time transmission quality parameter specifically includes:
if the difference between the quality parameter of the preset network and the quality parameter of the standby network is greater than a second threshold value, taking a first preset ratio as the updated bandwidth allocation ratio;
and if the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than or equal to the second threshold, the quality parameter of the preset network is larger than the first threshold, and the bandwidth allocation ratio corresponding to the real-time transmission quality parameter is the first preset ratio, updating the bandwidth allocation ratio. Therefore, the bandwidth can be automatically switched to the standby network when the quality of the standby network is poorer than that of the preset network, and the preset network is preferentially adopted when the quality difference between the preset network and the standby network is smaller, so that the transmission quality and the operation cost are favorably considered at the same time.
As an embodiment, the real-time transmission quality parameter includes a packet loss rate or a transmission delay.
As an embodiment, the updating the bandwidth allocation ratio according to the real-time transmission quality parameter specifically includes:
acquiring the real-time total bandwidth of the CDN; wherein the real-time total bandwidth comprises: presetting real-time bandwidth of a network and real-time bandwidth of a standby network;
calculating to obtain a new bandwidth allocation ratio according to the real-time total bandwidth, the service bandwidth of the preset network and a principle of preferentially using the bandwidth of the preset network;
and determining whether the real-time transmission quality parameter meets a preset condition, and if so, updating the bandwidth allocation ratio to the new bandwidth allocation ratio.
As an embodiment, the calculating a new bandwidth allocation ratio according to the real-time total bandwidth, the service bandwidth of the preset network, and the principle of preferentially using the bandwidth of the preset network specifically includes:
determining whether the real-time bandwidth of the preset network is larger than the service bandwidth, and if so, calculating to obtain the new bandwidth allocation ratio according to a preset formula;
and if the real-time bandwidth of the preset network is smaller than or equal to the service bandwidth, taking a second preset ratio as the new bandwidth allocation ratio.
As an embodiment, the preset formula is:
P=T:(Z-T);
wherein, P is the new bandwidth allocation ratio, Z is the real-time total bandwidth, and T is the service bandwidth of the preset network. Therefore, the data can be transmitted by fully utilizing the preset network, and greater economic benefit can be brought. So that the bandwidth can be more sufficiently allocated to the predetermined network.
As an embodiment, further comprising:
and monitoring working parameters of the preset network and the standby network in real time.
As an embodiment, the operating parameter includes one or any combination of the following:
bandwidth of transmission lines of the preset network and the standby network;
the preset network and the standby network respectively have transmission bandwidth of one or any combination of the following service types:
on-demand broadcasting, live broadcasting and webpage data;
the transmission bandwidth of the domain name granularity of each of the preset network and the standby network;
the download rate, the download success rate and the download exception of the transmission lines of the preset network and the standby network are respectively used.
As an embodiment, the bandwidth allocation ratio comprises: an inflow distribution ratio and an outflow distribution ratio;
the receiving the updated bandwidth allocation ratio specifically comprises:
an edge node of the CDN receives the bandwidth allocation ratio;
the setting of a preset field value of an IP data packet according to the bandwidth allocation ratio and the determination of the adoption of a preset network or a standby network of the CDN to transmit the IP data packet according to the preset field value specifically include:
the edge node sets a preset field value of an outgoing IP data packet according to the outgoing distribution ratio, and a network device of the CDN determines to adopt a preset network or a standby network of the CDN to transmit the outgoing IP data packet according to the preset field value of the outgoing IP data packet;
the edge node sends the received inflow distribution ratio to a transit node of the CDN, the transit node sets a preset field value of an inflow IP data packet according to the inflow distribution ratio, and the network equipment determines to adopt a preset network or a standby network of the CDN to transmit the inflow IP data packet according to the preset field value of the inflow IP data packet.
As an embodiment, the preset field value is a differentiated services code point value.
Drawings
Fig. 1 is a flowchart of a CDN bandwidth scheduling method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a CDN system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a CDN bandwidth scheduling method according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a CDN bandwidth scheduling method according to a third embodiment of the present invention;
FIG. 5 is a flowchart of a CDN bandwidth scheduling method according to a fourth embodiment of the present invention;
FIG. 6 is a schematic diagram of the format of the IP protocol packet TOS;
fig. 7 is a schematic structural diagram of a scheduling server according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an acquisition server according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present invention in its various embodiments. However, the technical solution claimed in the present invention can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a CDN bandwidth scheduling method, which is applied to the scheduling server 109 in the CDN system shown in fig. 2. The CDN system is constructed on a default network 100 and a standby network 101. The default network 100 includes, but is not limited to, a network (e.g., a self-built cloud network) built by the CDN service provider itself, a preferred operator network, and the like. The network built by the CDN service provider may be more cost effective and have better quality of service, e.g., more balanced resource distribution and lower latency, than the operator network. The default network may of course be the operator network with better cost and quality of service. Currently, an operator network may generally be used as a backup network, which may have a relatively higher cost and a larger delay due to unbalanced resource distribution compared to a default network. The implementation manner of the preset network and the operator network is not particularly limited in this embodiment. The CDN system further includes: a plurality of edge nodes 102, a transit node 103, a first node switch 104, a second node switch 105, a first back source switch 106, a second back source switch 107, and an acquisition server 108. For simplicity of illustration, one edge node 102 and one transit node 103 are shown in fig. 2, respectively. The CDN bandwidth scheduling method of the present embodiment is applied to the scheduling server 109.
Referring to fig. 1, the CDN bandwidth scheduling method of the present embodiment includes steps 101 to 103.
Step 101: and acquiring the real-time transmission quality parameters of the CDN.
The real-time transmission quality parameter may include a packet loss rate or a transmission delay, but is not limited thereto. The default network and the backup network may respectively include a plurality of transmission lines, and the real-time transmission quality parameters of each transmission line are separately obtained, for example, the quality parameters of each transmission line are collected by the collection server 108 and reported to the scheduling server 109. The real-time transmission quality parameters of each transmission line may be divided into an ingress quality parameter, for example, a quality parameter of a bandwidth flowing from the transit node 103 to the edge node 102, and an egress quality parameter, for example, a quality parameter of a bandwidth flowing from the edge node 102 to the transit node 103. The quality parameter of the preset network may be obtained by collecting port data of the first back source switch 106 and the second back source switch 107. In some examples, quality parameters of the standby network may be collected in a similar manner.
Step 102: and updating the bandwidth allocation ratio according to the real-time transmission quality parameter.
The bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN on the preset network and the standby network.
Specifically, if the quality parameter of the preset network is greater than a first threshold, the first preset ratio is used as the updated bandwidth allocation ratio; if the quality parameter of the preset network is smaller than or equal to the first threshold value and the bandwidth allocation ratio corresponding to the quality parameter of the preset network is not the first preset ratio, maintaining the bandwidth allocation ratio; and if the quality parameter of the preset network is less than or equal to the first threshold value and the corresponding bandwidth allocation ratio is the first preset ratio, updating the bandwidth allocation ratio. In this embodiment, the quality parameter of the predetermined network is described by taking the packet loss rate as an example, but is not limited thereto. The first threshold is, for example, 50%, but is not limited thereto, and the first threshold may be determined according to tolerance of actual traffic to a packet loss rate. The first predetermined ratio is, for example, 0:100 (i.e., bandwidth is fully allocated to the standby network), but not limited thereto, the first predetermined ratio may also be determined according to tolerance of actual service to packet loss rate. Therefore, if the packet loss ratio of the preset network is less than 50%, and the corresponding bandwidth allocation ratio is not the first preset ratio when the packet loss ratio is acquired, for example, the packet loss ratio acquired when the bandwidth allocation ratio is 2:1 is 10%, the bandwidth allocation ratio is maintained unchanged in step 102, that is, the bandwidth allocation ratio does not need to be updated according to the real-time transmission quality parameter; if the packet loss ratio of the preset network is less than 50% and the corresponding bandwidth allocation ratio is the first preset ratio, for example, when the bandwidth allocation ratio is 0:100, the packet loss ratio of the preset network is acquired by means of testing and the like to be 35%, the bandwidth allocation ratio is updated, for example, the bandwidth allocation ratio can be updated to a default ratio, the default ratio is, for example, 1:1, but not limited thereto, for example, the planned bandwidth of the preset network is larger, and the default ratio can also be 1: 0; if the packet loss rate of the preset network is greater than or equal to 50%, the bandwidth allocation ratio updated in step 102 is 0:100, that is, all the bandwidths are allocated to the standby network, so that the data transmission quality can be ensured when the transmission quality of the preset network is reduced to a lower level.
The following describes the update of the bandwidth allocation ratio when the transmission quality of the predetermined network changes from better to worse to better, and the influence on the CDN service quality before and after the update.
The packet loss rate of the preset network is obtained for the first time and is 30%, that is, the packet loss rate is smaller than the first threshold 50%, and the bandwidth allocation ratio corresponding to the packet loss rate is not the first preset ratio, for example, 3:1, and at this time, the bandwidth allocation ratio is maintained unchanged.
And obtaining that the packet loss rate of the preset network is 80% for the second time, namely the packet loss rate is greater than the first threshold, updating the bandwidth allocation ratio to the first preset ratio, for example, 0:100, namely, allocating all the bandwidths to the standby network. Therefore, the bandwidth can be automatically switched to the standby network when the quality of the preset network is suddenly deteriorated, and the CDN service quality is guaranteed.
The packet loss ratio of the preset network obtained for the third time is 20%, that is, the packet loss ratio is smaller than the first threshold, and the current bandwidth allocation ratio is the first preset ratio, at this time, the bandwidth allocation ratio is updated, for example, the bandwidth allocation ratio may be updated to the default ratio. Therefore, the bandwidth can be automatically switched back to the default network when the transmission quality of the default network is restored to a better level.
In some examples, the real-time transmission quality parameters include: the quality parameters of the preset network and the quality parameters of the standby network. Step 102 specifically includes:
and if the difference between the quality parameter of the preset network and the quality parameter of the standby network is greater than a second threshold value, taking the first preset ratio as the updated bandwidth allocation ratio. The second threshold is, for example, 10%, that is, when the packet loss rate of the preset network is greater than the packet loss rate of the standby network by 10%, the first preset ratio is used as the updated bandwidth allocation ratio. The second threshold is not specifically limited in this embodiment, as long as it can reflect that the transmission quality of the preset network is relatively poor with respect to the standby network.
And if the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than or equal to a second threshold, the quality parameter of the preset network is larger than a first threshold, and the bandwidth allocation ratio corresponding to the real-time transmission quality parameter is not a first preset ratio, maintaining the bandwidth allocation ratio. In other words, if the difference between the transmission quality of the default network and the backup network is small, although the transmission quality of the default network is poor, the bandwidth is not switched to the backup network.
And if the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than or equal to a second threshold, the quality parameter of the preset network is larger than a first threshold, and the bandwidth allocation ratio corresponding to the real-time transmission quality parameter is a first preset ratio, updating the bandwidth allocation ratio. In other words, if the difference between the transmission quality of the default network and the backup network is small, i.e. the transmission quality of both the default network and the backup network is poor, the bandwidth can still be preferentially allocated to the default network.
For example, the packet loss rate of the first acquisition to the preset network is 45%, and the packet loss rate of the standby network is 10%, that is, the difference between the packet loss rate of the preset network and the packet loss rate of the standby network is greater than the second threshold, and at this time, the bandwidth allocation ratio is updated to the first preset ratio. Therefore, the network with better transmission quality can be preferentially adopted to transmit data, and better service quality is guaranteed.
The second round obtains the packet loss rate of the preset network is 52%, and the packet loss rate of the standby network is 50%, that is, the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than the second threshold, and the bandwidth allocation ratio is the first preset ratio, at this time, the bandwidth allocation ratio can be updated to the default ratio. That is, when the transmission quality of the default network is poor and is similar to that of the standby network, the bandwidth is preferentially allocated to the default network.
The third round obtains that the packet loss ratio of the preset network is 52% and the packet loss ratio of the standby network is 49%, that is, the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than the second threshold, and the bandwidth allocation ratio is not the first preset ratio, for example, 1:1, and at this time, the bandwidth allocation ratio is maintained unchanged.
Step 103: and issuing the updated bandwidth allocation ratio to the edge node of the CDN, so that the edge node of the CDN allocates the corresponding bandwidth to the preset network and the standby network according to the updated bandwidth allocation ratio.
The scheduling server 109 issues the updated bandwidth allocation ratio to each edge node in the CDN, so that each edge node allocates bandwidths in corresponding proportions to the preset network and the standby network according to the new bandwidth allocation ratio. In practical applications, the acquisition server 108 and the dispatch server 109 may be different servers, both connected back to the source switch, or the acquisition server 108 and the dispatch server 109 may be the same server based on cost considerations, as shown in fig. 2. The bandwidth allocation ratio is sent to the first node switch 104 and the second node switch 105 through the first back-source switch 106, and then sent to the edge node under each node switch. However, not limited to this, a scheduling server may be respectively configured for each edge node, and at this time, the bandwidth allocation ratio may be directly issued to the corresponding edge node.
Compared with the prior art, the CDN is constructed in the preset network and the standby network, and the bandwidth can be automatically switched to the standby network by monitoring the real-time transmission quality parameters of the CDN when the transmission quality of the preset network is reduced, so that the CDN service quality is guaranteed. In addition, the CDN bandwidth can be shared by using the cost of the preset network and the overall transmission quality advantage. Therefore, the CDN bandwidth is preferentially allocated in the embodiment, which is beneficial to further improving the CDN service level.
The second embodiment of the present invention relates to a CDN bandwidth scheduling method, and the second embodiment is an improvement made on the basis of the first embodiment, and the main improvement is that: in the second embodiment, the bandwidth allocation ratio is further updated according to the real-time total bandwidth, the service bandwidth of the preset network, and the principle of preferentially using the bandwidth of the preset network, so that the bandwidth of the preset network can be fully utilized when the transmission quality of the preset network is better, and the cost is saved.
Referring to fig. 3, the CDN bandwidth scheduling method of the present embodiment includes steps 301 to 307.
Step 301: and acquiring the CDN real-time transmission quality parameters.
Step 301 is the same as step 101 of the first embodiment, and is not described herein again.
Step 302: and acquiring the CDN real-time total bandwidth.
Wherein the real-time total bandwidth comprises: the real-time bandwidth of the network and the real-time bandwidth of the standby network are preset. The real-time total bandwidth of the CDN can be divided into an ingress total bandwidth and an egress total bandwidth. The total bandwidth of the inflow refers to, for example, a bandwidth flowing from the transit node to the edge node, and the total bandwidth of the outflow refers to, for example, a bandwidth flowing from the edge node to the transit node. In this embodiment, the real-time total bandwidth includes an inflow total bandwidth and an outflow total bandwidth, but is not limited thereto, and in practical applications, the real-time total bandwidth may also be the inflow total bandwidth or the outflow total bandwidth. The preset network and the standby network may respectively include a plurality of transmission lines, at this time, each transmission line of the preset network needs to be respectively collected to obtain a real-time bandwidth of each transmission line, and the plurality of transmission lines of the standby network also need to be respectively collected to obtain a real-time bandwidth of each transmission line, where each transmission line of the preset network may correspond to each transmission line of the standby network one to one, but is not limited thereto. Similar to the CDN real-time total bandwidth, the real-time bandwidths of the preset network and the standby network are also divided into an ingress bandwidth and an egress bandwidth. For simplicity, the default network and the standby network in this embodiment are described by taking one transmission line as an example.
Referring to fig. 2, the step 302 of obtaining the CDN real-time total bandwidth specifically includes: and receiving the real-time bandwidth of the preset network, and calculating to obtain the real-time total bandwidth according to the real-time bandwidth of the preset network and the bandwidth allocation ratio corresponding to the real-time bandwidth of the preset network. As shown in fig. 2, the acquisition server 108 may acquire the real-time bandwidth of the preset network 100 by acquiring port data of the first back-source switch 106 and the second back-source switch 107. The acquisition server 108 may periodically acquire the real-time bandwidth of the predetermined network, for example, acquiring the real-time bandwidth of one predetermined network every minute. In some examples, the acquisition frequency may also be set according to a fluctuation condition of the bandwidth in real time, for example, a higher bandwidth acquisition frequency is set in a period when the bandwidth fluctuation is larger, and a lower bandwidth acquisition frequency is set in a period when the bandwidth fluctuation is smaller and smoother, which is not particularly limited in this embodiment. The collection server 108 reports the collected real-time bandwidth of the preset network 100 to the scheduling server 109 in real time. In this embodiment, the bandwidth between the preset network and the standby network is allocated according to a certain proportion, that is, the real-time bandwidth of the preset network acquired each time corresponds to a specific bandwidth allocation ratio. For example, the default bandwidth allocation ratio between the preset network and the standby network is 8:2, and at this time, the bandwidth allocated to the preset network in the acquired real-time total bandwidth accounts for 80%. Therefore, the scheduling server 109 can calculate the CDN real-time total bandwidth according to the received real-time bandwidth of the preset network and the bandwidth allocation ratio corresponding to the real-time bandwidth, that is, the CDN real-time total bandwidth is equal to a quotient of the real-time bandwidth of the preset network and the corresponding bandwidth allocation ratio. The embodiment does not specifically limit the manner of acquiring the CDN real-time total bandwidth. In some examples, the acquisition server may further acquire a real-time bandwidth of the standby network and report the real-time bandwidth to the scheduling server, and similarly, the scheduling server may calculate a real-time total bandwidth of the CDN according to the real-time bandwidth of the standby network and a bandwidth allocation ratio corresponding to the real-time bandwidth.
Step 303: and calculating to obtain a new bandwidth allocation ratio according to the real-time total bandwidth, the service bandwidth of the preset network and the principle of preferentially using the bandwidth of the preset network.
Specifically, step 303 may include: and determining whether the real-time bandwidth of the preset network is greater than the service bandwidth, if so, calculating to obtain a new bandwidth allocation ratio according to a preset formula, and if not, taking the second preset ratio as the new bandwidth allocation ratio. The second preset ratio is, for example, 1:0, that is, all bandwidths of the CDN pass through transmission lines of the preset network, but is not limited thereto.
The ratio of the service bandwidth of the predetermined network to the planned bandwidth of the predetermined network may be greater than 75% and less than 85%, for example, the service bandwidth of the predetermined network is 80% of the planned bandwidth. For example, if the planned bandwidth of the preset network is 10Gbps (megabits per second), the service bandwidth of the preset network is 8Gbps, and the value of the service bandwidth of the preset network is not specifically limited in this embodiment. Since the real-time total bandwidth of the CDN is allocated between the preset network and the standby network according to the bandwidth allocation ratio, when the real-time total bandwidth increases, the bandwidth on the preset network also increases in proportion, for example, when the bandwidth allocation ratio is 1:2, and when the real-time total bandwidth increases by 3Gbps, the real-time bandwidth allocated by the preset network correspondingly increases by 1Gbps, so that by setting the service bandwidth of the preset network to the preset ratio of the planned bandwidth, the real-time bandwidth allocated to the preset network when the real-time total bandwidth suddenly increases can be prevented from exceeding the planned bandwidth, and the service quality of the preset network is ensured.
In one example, the predetermined formula may be:
P=T:(Z-T);
wherein, P is the new bandwidth allocation ratio, Z is the real-time total bandwidth, and T is the service bandwidth of the preset network.
Note that the new bandwidth allocation ratio may be divided into an inflow allocation ratio and an outflow allocation ratio. The service bandwidth of the default network can also be divided into an ingress service bandwidth and an egress service bandwidth. The inflow distribution ratio is calculated according to the inflow total bandwidth and the inflow service bandwidth of the preset network, and the outflow distribution ratio is calculated according to the outflow total bandwidth and the outflow service bandwidth of the preset network. The inflow distribution ratio and the outflow distribution ratio can be calculated by the above formulas. For example, when the inflow distribution ratio is calculated, P in the formula represents the inflow distribution ratio, T represents the inflow service bandwidth of the preset network, and Z represents the inflow total bandwidth; when the outflow distribution ratio is calculated, the number in the formula is replaced by the outflow related parameters correspondingly.
The following illustrates the new bandwidth allocation ratio calculated in step 303 and the scheduling function of the new bandwidth allocation ratio on the bandwidth in the process of changing the real-time total bandwidth from small to large and from large to small.
Assuming that the service bandwidth of the preset network is 8Gbps, the real-time total bandwidth of the CDN is 10Gbps according to the real-time bandwidth of the preset network acquired in the first round, and since the real-time total bandwidth is greater than the service bandwidth of the preset network, a new bandwidth allocation ratio is calculated according to the formula: 8: (10-8) ═ 4: 1.
The real-time bandwidth of the preset network acquired in the second round is 10Gbps, and the corresponding real-time total bandwidth is as follows: 10/(4/5) ═ 12.5Gbps, the real-time total bandwidth is still greater than the service bandwidth of the preset network, and at this time, the new bandwidth allocation ratio calculated according to the above formula is: 8: (12.5-8) ═ 16: 9. Because 16:9 is less than 4:1, when the real-time total bandwidth is increased, the bandwidth allocation ratio can be automatically reduced, more bandwidth can be allocated to the standby network, and the run-up cut-out of the bandwidth is realized.
The third round acquires the real-time bandwidth of the preset network as 7Gbps, calculates the real-time total bandwidth as 7/(16/25) ═ 11Gbps, the real-time total bandwidth is reduced but still greater than the service bandwidth of the preset network as 8Gbps, calculates the new bandwidth allocation ratio according to the formula as follows: 8: and (11-8) is 8:3, and since 8:3 is larger than 16:9, when the real-time total bandwidth is reduced, the bandwidth allocation ratio is automatically increased, more bandwidth is allocated to the preset network, and the reduction back cut of the bandwidth is realized.
The fourth acquisition obtains that the real-time bandwidth of the preset network is 5Gbps, the corresponding calculation obtains that the real-time total bandwidth is 5/(8/11) which is 6.875Gbps, namely, the real-time total bandwidth is smaller than the service bandwidth of the preset network by 8Gbps, and at the moment, 1:0 is taken as a new bandwidth allocation ratio, so that all the bandwidths are allocated to the preset network, and the full back cut of the bandwidths is realized.
Through step 303, when the real-time total bandwidth is larger (i.e., larger than the service bandwidth of the preset network) and continuously increases, more bandwidths can be automatically allocated to the standby network, when the real-time total bandwidth is larger and continuously decreases, a part of the bandwidths are automatically switched back to the preset network, and when the real-time total bandwidth is smaller (i.e., smaller than or equal to the service bandwidth of the preset network), the whole bandwidth is switched to the preset network, so that the transmission of the internal traffic of the CDN can be maximally realized by using the preset network.
In some examples, the calculation manner of the new bandwidth allocation ratio may also be determined according to the difference between the service bandwidth of the preset network and the service bandwidth of the standby network. Assuming that the ratio of the service bandwidth of the preset network to the service bandwidth of the standby network is greater than 50% and less than 100%, that is, the difference between the service bandwidth of the preset network and the service bandwidth of the standby network is not too large, a corresponding relationship between the real-time total bandwidth and the new bandwidth allocation ratio may be established in advance, the corresponding relationship may be stored in a table manner shown in table one, for example, and then the corresponding new bandwidth allocation ratio may be obtained by looking up the table according to the real-time total bandwidth.
Watch 1
Total bandwidth in real time Presetting service bandwidth of network Ratio of bandwidth allocation
0~7Gbps 8Gbps 1:0
7~9Gbps 8Gbps 4:1
8Gbps
11~12Gbps 8Gbps 3:2
The present embodiment does not specifically limit the calculation method of the new bandwidth allocation ratio. It should be noted that, because the preset network corresponds to a preferred network with better cost, performance, and the like, when a new bandwidth allocation ratio is determined according to the real-time total bandwidth and the service bandwidth of the preset network, the principle of preferential allocation of the service bandwidth of the preset network is adopted, that is, the part exceeding the service bandwidth of the preset network can be switched to the standby network on the basis of fully utilizing the service bandwidth of the preset network.
Step 304: it is determined whether the real-time transmission quality parameter satisfies a predetermined condition, and if the real-time transmission quality parameter satisfies the predetermined condition, step 305 is executed, and if the real-time transmission quality parameter does not satisfy the predetermined condition, step 306 is executed.
Specifically, the real-time transmission quality parameter is determined to meet the preset condition if one of the following conditions is met: presetting that the quality parameter of the network is less than or equal to a first threshold; or the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than the second threshold, and the quality parameter of the preset network is larger than the first threshold. Please refer to step 102 in the first embodiment for the setting of the first threshold and the second threshold in this embodiment, which is not described herein again. In step 304, if the packet loss rate of the predetermined network is 30%, that is, the packet loss rate of the predetermined network is less than the first threshold, it is determined that the real-time transmission quality parameter meets the predetermined condition, or if the packet loss rate of the predetermined network is 52% and the packet loss rate of the standby network is 45%, that is, the absolute value of the difference between the quality parameter of the predetermined network and the quality parameter of the standby network is less than the second threshold, and the quality parameter of the predetermined network is greater than the first threshold, it is determined that the real-time transmission quality parameter meets the predetermined condition.
Step 305: and updating the bandwidth allocation ratio to the new bandwidth allocation ratio.
When it is determined in step 304 that the real-time transmission quality parameter satisfies the preset condition, more bandwidth can be allocated to the preset network by updating the bandwidth allocation ratio to the new bandwidth allocation ratio.
Step 306: and updating the bandwidth allocation ratio to a first preset ratio.
Step 307: and issuing the updated bandwidth allocation ratio to the edge node of the CDN, so that the edge node of the CDN allocates bandwidths in corresponding proportions to the preset network and the standby network according to the updated bandwidth allocation ratio.
The scheduling server 109 issues the updated bandwidth allocation ratio to each edge node in the CDN, and the CDN allocates bandwidths in corresponding proportions to the preset network and the standby network according to the updated bandwidth allocation ratio.
Compared with the prior art, the CDN is constructed in the preset network and the standby network, and the bandwidth can be automatically switched to the standby network by monitoring the real-time transmission quality parameters of the CDN when the transmission quality of the preset network is reduced, so that the CDN service quality is guaranteed. And the CDN bandwidth can be shared by using the cost of the preset network and the overall transmission quality advantage. Therefore, the embodiment is beneficial to promoting the CDN service level to be further improved by preferentially distributing the CDN bandwidth. In addition, the embodiment can more flexibly and fully utilize the better network for data transmission, and improves the competitiveness of CDN service.
A third embodiment of the present invention relates to a CDN bandwidth scheduling method, please continue to refer to fig. 2, and the method is applied to the acquisition server 108 in fig. 2. Referring to fig. 4, the CDN bandwidth scheduling method of the present embodiment includes steps 401 and 402.
Step 401: and collecting the CDN real-time transmission quality parameters.
That is, the real-time bandwidth of the preset network is obtained by collecting port data of the first back-source switch 106 and the second back-source switch 107.
Step 402: and sending the CDN real-time transmission quality parameter to a CDN scheduling server for the CDN scheduling server to update the bandwidth allocation ratio according to the CDN real-time transmission quality parameter. The bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN on the preset network and the standby network.
In an example, the CDN bandwidth scheduling method according to the embodiment may further include monitoring working parameters of the preset network and the standby network in real time. The operating parameters include one or any combination of the following:
presetting the bandwidth of the transmission line of each of the network and the standby network;
presetting the transmission bandwidth of the service type of one or any combination of the following networks:
on-demand broadcasting, live broadcasting and webpage data;
presetting transmission bandwidths of domain name granularities of a network and a standby network;
and presetting the share ratio of each download rate, the share ratio of each download success rate and the share ratio of each download abnormity of the transmission lines of the network and the standby network.
The download rate, the download success rate and the download abnormity of the transmission lines of the preset network and the standby network can be acquired in real time. For example, the download rate is divided into a plurality of rate intervals, the download success rate and the download abnormality may be divided into a plurality of intervals, and the download rate occupation ratio is an occupation ratio of a certain download rate in the plurality of rate intervals. The download success rate is the ratio of a certain download success rate in a plurality of success rate intervals, and the download abnormal ratio is the ratio of a certain download abnormal ratio in a plurality of abnormal ratio intervals.
By monitoring the bandwidths of different transmission lines, the transmission bandwidths of different service types and the transmission bandwidth of domain name granularity, the actual requirements of the bandwidths can be mastered conveniently, and the subsequent capacity expansion is facilitated. By monitoring the occupation ratio of each download rate, the occupation ratio of each download success rate, the occupation ratio of each download abnormity and the like of different transmission lines, the lines with poor service performance can be maintained in time.
Compared with the prior art, the embodiment collects the real-time transmission quality parameters of the CDN and reports the real-time transmission quality parameters to the scheduling server, so that the scheduling server can update the bandwidth allocation ratio according to the transmission quality of the preset network and the transmission quality of the standby network, and further control the allocation of the total bandwidth of the CDN on the preset network and the standby network. On the basis, the network with better quality can be preferentially used, and the method is favorable for ensuring high-quality CDN service.
A fourth embodiment of the present invention relates to a CDN bandwidth scheduling method, please continue to refer to fig. 2, and the method is applied to the CDN shown in fig. 2. Wherein, CDN includes: a plurality of edge nodes 102, transit nodes 103, and network devices, where the network devices include, for example: a first node switch 104, a second node switch 105, a first back-source switch 106, and a second back-source switch 107. Referring to fig. 5, the CDN bandwidth scheduling method of the present embodiment includes steps 501 to 503.
Step 501: an updated bandwidth allocation ratio value is received.
Specifically, each edge node in the CDN receives a bandwidth allocation ratio. The bandwidth allocation ratio is issued by the scheduling server in the CDN bandwidth scheduling method according to the first or second embodiment.
Step 502: and setting a preset field value of the IP data packet according to the bandwidth allocation ratio.
Step 503: and determining to adopt a preset network or a standby network of the CDN to transmit the IP data packet according to the preset field value.
Specifically, in steps 502 and 503, for the outflow distribution ratio, the edge node sets a preset field value of the outflow IP data packet according to the outflow distribution ratio, and the network device of the CDN determines to transmit the outflow IP data packet by using a preset network or a standby network of the CDN according to the preset field value of the outflow IP data packet; and aiming at the inflow distribution ratio, the edge node sends the received inflow distribution ratio to a transit node of the CDN, the transit node sets a preset field value of the inflow IP data packet according to the inflow distribution ratio, and the network equipment determines to adopt a preset network or a standby network of the CDN to transmit the inflow IP data packet according to the preset field value of the inflow IP data packet.
The preset field value may be a Differentiated Services Code Point (DSCP), but is not limited thereto.
In this embodiment, the network device includes the first node switch 104 and the second node switch 105 (collectively referred to as core switches) in fig. 2. The core switch is used for selecting a preset network or a standby network for an IP data packet according to an IP protocol, and the specific principle is as follows:
first, please refer to the IP protocol format as shown in the following table.
Figure BDA0002000153430000151
Among them, the format of 8-bit service Type (TOS) is shown in fig. 6. The DSCP value is the first six bits Of TOS (Type Of Service), and the last two bits are the Currently Unused (CU) field. The embodiment selects the DSCP as the preset field, so that the core switch determines the transmission line of the IP packet according to the DSCP value.
Specifically, the routing priority of the core switch is as follows: artificially specify route > OSPF > default route. The core switch executes different routes according to the DSCP value after receiving the IP data packet. For example, when the DSCP value is binary 000000, the core switch selects a preset network to transmit data according to an Open Shortest Path First (OSPF) protocol. If the DSCP value is equal to 1 (i.e., binary 000001), the core switch forces to select an alternate network to transmit data, but is not limited thereto.
How the CDN allocates the bandwidth in the corresponding proportion to the preset network 100 and the standby network 101 according to the received updated bandwidth allocation ratio is described below with reference to fig. 2.
In fig. 2, a Border Gateway Protocol (BGP) is executed between the first node switch 104 and the second node switch 105, so that the first back source switch 106 and the second back source switch 107 learn a routing entry of an opposite node through the BGP, and the first node switch 104 and the second node switch 105 also learn a routing entry of the opposite node mutually. If the target transit node is also a transit node under the first node switch 104 when the edge node under the first node switch 104 wants to transit back to the transit node, the route forwarding can be directly performed through the first node switch 104; if the destination transit node is a transit node below the second node switch 105, the packet is encapsulated and then reaches the gateway (the first node switch 104), and then the packet is routed through the routing table, and then the packet is sent to the first back-source switch 106, and then the packet is transmitted to the transit node below the second node switch 105 by the second back-source switch 107 (i.e., the packet is transmitted to the transit node through the predetermined network), or the packet is transmitted to the transit node below the second node switch 105 through the backup network. The packet return principle is the same as above.
The edge node 102 receives a scheduling result from the scheduling server 109, where the scheduling result includes: local IP, destination IP, and new bandwidth allocation ratio. When the edge node sends a download request to the transfer node, a target IP is resolved according to the domain name and is matched with the target IP sent by the scheduling server, and if the matching is successful, a DSCP value is set according to a new bandwidth allocation ratio and a network connection unit.
In this embodiment, when the edge node 102 sends a download request to the transit node 103, the DSCP value is set according to the bandwidth allocation ratio sent by the scheduling server 109. The outgoing DSCP value is set by the edge node 102, and the incoming DSCP value is set by the transit node. Specifically, the edge node sets the outgoing DSCP value in units of one network connection according to the received bandwidth allocation ratio. The edge node carries a status code to the transit node 103 through the HTTP packet header, and the transit node 103 sets an incoming DSPC value according to the status code when returning data. The core switch analyzes the DSCP value from the received IP data packet, if the inflow DSCP value is 1, the standby network is selected to transmit data, if the inflow DSCP value is 0, the preset network is selected to transmit data, and the outflow DSCP value is also processed similarly.
Compared with the prior art, the bandwidth allocation ratio can be determined according to the network quality, or the bandwidth allocation ratio can be determined according to the network quality and the bandwidth bearing capacity of the preset network, so that the automatic allocation of the CDN bandwidth between the preset network and the standby network is realized. On the basis, the network with lower cost and better network quality can be preferentially used for transmitting data, so that the competitiveness of the CDN service is improved. And moreover, the DSCP value of the IP data packet is set through the edge node or the transit node, so that the routing selection of the preset network and the standby network is realized, and the method is easy to realize.
A fifth embodiment of the present invention relates to a scheduling server. As shown in fig. 7, the scheduling server includes: a memory 702 and a processor 701;
wherein the memory 702 stores instructions executable by the at least one processor 701 to perform, by the at least one processor 701,: acquiring a CDN real-time transmission quality parameter; the CDN is constructed in a preset network and a standby network;
updating a bandwidth allocation ratio according to the real-time transmission quality parameter; the bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN on the preset network and the standby network;
and issuing the updated bandwidth allocation ratio to the CDN, so that the CDN allocates bandwidths in corresponding proportions to the preset network and the standby network according to the updated bandwidth allocation ratio.
One or more processors 701 and a memory 702, one processor 701 being illustrated in fig. 7. The processor 701 and the memory 702 may be connected by a bus or by other means, and fig. 7 illustrates an example of a bus connection. Memory 702, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 701 executes various functional applications and data processing of the device by running nonvolatile software programs, instructions, and modules stored in the memory 702, that is, the CDN bandwidth scheduling method is implemented.
The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function. Further, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to an external device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 702 and when executed by the one or more processors 701 perform the CDN bandwidth scheduling method in any of the method embodiments described above.
The above-mentioned device can execute the method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method, and reference may be made to the method provided by the embodiment of the present invention for technical details that are not described in detail in the embodiment.
Compared with the prior art, the CDN is constructed in the preset network and the standby network, and the bandwidth can be automatically switched to the standby network by monitoring the real-time transmission quality parameters of the CDN when the transmission quality of the preset network is reduced, so that the CDN service quality is guaranteed. And the CDN bandwidth can be shared by using the cost of the preset network and the overall transmission quality advantage. Therefore, the embodiment is beneficial to promoting the CDN service level to be further improved by preferentially distributing the CDN bandwidth. In addition, the embodiment can more flexibly and fully utilize the better network for data transmission, and improves the competitiveness of CDN service.
A sixth embodiment of the present invention relates to an acquisition server. As shown in fig. 8, the acquisition server includes: a memory 802 and a processor 801;
wherein the memory 802 stores instructions executable by the at least one processor 801, the instructions being executed by the at least one processor 801 to implement the CDN bandwidth scheduling method according to the third embodiment.
Compared with the prior art, the embodiment collects the real-time transmission quality parameters of the CDN and reports the real-time transmission quality parameters to the scheduling server, so that the scheduling server can update the bandwidth allocation ratio according to the transmission quality of the preset network and the transmission quality of the standby network, and further control the allocation of the total bandwidth of the CDN on the preset network and the standby network. On this basis, the network with better quality can be preferentially used, which is beneficial to ensuring high-quality CDN service.
A seventh embodiment of the invention is directed to a non-volatile storage medium for storing a computer readable program for causing a computer to perform some or all of the above method embodiments.
That is, those skilled in the art can understand that all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (16)

1. A CDN bandwidth scheduling method is applied to a scheduling server and is characterized by comprising the following steps:
acquiring a CDN real-time transmission quality parameter; the CDN is constructed in a preset network and a standby network;
updating a bandwidth allocation ratio according to the real-time transmission quality parameter; the bandwidth allocation ratio is used for determining the allocation proportion of the bandwidth of the CDN to the preset network and the standby network;
and issuing the updated bandwidth allocation ratio to an edge node of the CDN, so that the edge node of the CDN allocates bandwidths in corresponding proportions to the preset network and the standby network according to the updated bandwidth allocation ratio.
2. The CDN bandwidth scheduling method of claim 1, wherein the real-time transmission quality parameters include: the quality parameters of the preset network;
the updating of the bandwidth allocation ratio according to the real-time transmission quality parameter specifically includes:
if the quality parameter of the preset network is greater than a first threshold value, taking a first preset ratio as the updated bandwidth allocation ratio;
and if the quality parameter of the preset network is smaller than or equal to the first threshold and the corresponding bandwidth allocation ratio is the first preset ratio, updating the bandwidth allocation ratio.
3. The CDN bandwidth scheduling method of claim 1, wherein the real-time transmission quality parameters include: the quality parameters of the preset network and the quality parameters of the standby network;
the updating of the bandwidth allocation ratio according to the real-time transmission quality parameter specifically includes:
if the difference between the quality parameter of the preset network and the quality parameter of the standby network is greater than a second threshold value, taking a first preset ratio as the updated bandwidth allocation ratio;
and if the absolute value of the difference between the quality parameter of the preset network and the quality parameter of the standby network is smaller than or equal to the second threshold, the quality parameter of the preset network is larger than the first threshold, and the bandwidth allocation ratio corresponding to the real-time transmission quality parameter is the first preset ratio, updating the bandwidth allocation ratio.
4. The CDN bandwidth scheduling method of claim 1, wherein the real-time transmission quality parameter comprises a packet loss ratio or a transmission delay.
5. The CDN bandwidth scheduling method of any one of claims 1 to 4, wherein the updating a bandwidth allocation ratio according to the real-time transmission quality parameter specifically comprises:
acquiring the real-time total bandwidth of the CDN; wherein the real-time total bandwidth comprises: presetting real-time bandwidth of a network and real-time bandwidth of a standby network;
calculating to obtain a new bandwidth allocation ratio according to the real-time total bandwidth, the service bandwidth of the preset network and a principle of preferentially using the bandwidth of the preset network;
and determining whether the real-time transmission quality parameter meets a preset condition, and if so, updating the bandwidth allocation ratio to the new bandwidth allocation ratio.
6. The CDN bandwidth scheduling method of claim 5, wherein the calculating a new bandwidth allocation ratio according to the real-time total bandwidth, the service bandwidth of the preset network, and a principle of preferentially using the bandwidth of the preset network specifically includes:
determining whether the real-time bandwidth of the preset network is larger than a service bandwidth, and if so, calculating to obtain the new bandwidth allocation ratio according to a preset formula;
and if the real-time bandwidth of the preset network is smaller than or equal to the service bandwidth, taking a second preset ratio as the new bandwidth allocation ratio.
7. The CDN bandwidth scheduling method of claim 6 wherein the predetermined formula is:
P=T:(Z-T);
and P is the new bandwidth allocation ratio, Z is the real-time total bandwidth, and T is the service bandwidth of the preset network.
8. A CDN bandwidth scheduling method is characterized by comprising the following steps:
collecting CDN real-time transmission quality parameters;
sending the CDN real-time transmission quality parameter to a CDN scheduling server for the CDN scheduling server to update a bandwidth allocation ratio according to the CDN real-time transmission quality parameter; the bandwidth allocation ratio is used for determining the allocation ratio of the bandwidth of the CDN on the preset network and the standby network.
9. The CDN bandwidth scheduling method of claim 8, further comprising:
and monitoring working parameters of the preset network and the standby network in real time.
10. The CDN bandwidth scheduling method of claim 9, wherein the operating parameters include one or any combination of the following:
bandwidth of transmission lines of the preset network and the standby network;
the preset network and the standby network respectively have transmission bandwidth of one or any combination of the following service types:
on-demand broadcasting, live broadcasting and webpage data;
the transmission bandwidth of the domain name granularity of each of the preset network and the standby network;
the download rate, the download success rate and the download exception of the transmission lines of the preset network and the standby network are respectively used.
11. A CDN bandwidth scheduling method is characterized by comprising the following steps:
receiving the updated bandwidth allocation ratio; wherein, the bandwidth allocation ratio is issued by the scheduling server in the CDN bandwidth scheduling method of any one of claims 1 to 7;
setting a preset field value of an IP data packet according to the bandwidth allocation ratio;
and determining to adopt a preset network or a standby network of the CDN to transmit the IP data packet according to the preset field value.
12. The CDN bandwidth scheduling method of claim 11, wherein the bandwidth allocation ratio comprises: an inflow distribution ratio and an outflow distribution ratio;
the receiving of the updated bandwidth allocation ratio specifically includes:
an edge node of the CDN receives the bandwidth allocation ratio;
the setting of a preset field value of an IP data packet according to the bandwidth allocation ratio and the determination of the adoption of a preset network or a standby network of the CDN to transmit the IP data packet according to the preset field value specifically include:
the edge node sets a preset field value of an outgoing IP data packet according to the outgoing distribution ratio, and a network device of the CDN determines to adopt a preset network or a standby network of the CDN to transmit the outgoing IP data packet according to the preset field value of the outgoing IP data packet;
the edge node sends the received inflow distribution ratio to a transit node of the CDN, the transit node sets a preset field value of an inflow IP data packet according to the inflow distribution ratio, and the network equipment determines to adopt a preset network or a standby network of the CDN to transmit the inflow IP data packet according to the preset field value of the inflow IP data packet.
13. The CDN bandwidth scheduling method of claim 11 wherein the predetermined field value is a differentiated services code point value.
14. A dispatch server, comprising: a memory storing a computer program and a processor running the computer program to implement the CDN bandwidth scheduling method of any one of claims 1 to 7.
15. An acquisition server, comprising: a memory storing a computer program and a processor running the computer program to implement the CDN bandwidth scheduling method of any one of claims 8 to 10.
16. A storage medium storing a computer readable program for causing a computer to perform the CDN bandwidth scheduling method of any one of claims 1-13.
CN201910209886.3A 2019-03-19 2019-03-19 CDN bandwidth scheduling method, acquisition and scheduling server and storage medium Active CN109818881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209886.3A CN109818881B (en) 2019-03-19 2019-03-19 CDN bandwidth scheduling method, acquisition and scheduling server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209886.3A CN109818881B (en) 2019-03-19 2019-03-19 CDN bandwidth scheduling method, acquisition and scheduling server and storage medium

Publications (2)

Publication Number Publication Date
CN109818881A CN109818881A (en) 2019-05-28
CN109818881B true CN109818881B (en) 2022-09-27

Family

ID=66609517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209886.3A Active CN109818881B (en) 2019-03-19 2019-03-19 CDN bandwidth scheduling method, acquisition and scheduling server and storage medium

Country Status (1)

Country Link
CN (1) CN109818881B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445723B (en) * 2019-07-02 2022-05-27 网宿科技股份有限公司 Network data scheduling method and edge node
CN111404623B (en) * 2020-03-13 2023-03-14 北京小米移动软件有限公司 Data transmission method, device and storage medium based on mobile network
CN112165691B (en) * 2020-09-24 2022-02-08 百度在线网络技术(北京)有限公司 Content delivery network scheduling method, device, server and medium
CN114844949B (en) * 2021-02-02 2023-10-27 北京金山云网络技术有限公司 Service scheduling method, device, equipment and storage medium
CN113038191B (en) * 2021-02-26 2022-09-23 北京百度网讯科技有限公司 Live stream scheduling method and device, electronic equipment and readable storage medium
CN115134369B (en) * 2021-03-26 2024-01-19 北京金山云网络技术有限公司 CDN node distribution method and device, electronic equipment and storage medium
CN113079045B (en) * 2021-03-26 2022-03-25 北京达佳互联信息技术有限公司 Bandwidth allocation method, device, server and storage medium
CN114500285B (en) * 2021-12-28 2024-01-02 天翼云科技有限公司 Bandwidth scheduling method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897566A (en) * 2005-07-14 2007-01-17 中兴通讯股份有限公司 System and method for realizing convergent point service quality guarantee based on class grading
CN101316141A (en) * 2007-05-29 2008-12-03 华为技术有限公司 Band width distribution method, device, communication apparatus and system
CN102088405A (en) * 2010-12-13 2011-06-08 中国人民解放军信息工程大学 Status selection-based method and system for controlling network bandwidth
CN102158391A (en) * 2010-11-12 2011-08-17 华为数字技术有限公司 Method and device for adjusting link bandwidth
CN102195793A (en) * 2010-03-12 2011-09-21 华为技术有限公司 Dynamic bandwidth assignment realization method, master node and tangent node
CN104302008A (en) * 2014-10-20 2015-01-21 上海电机学院 Wireless multi-hop network bandwidth allocation method integrating time division and cache proportion
CN105721544A (en) * 2016-01-19 2016-06-29 福州华鹰重工机械有限公司 Inter-vehicle information sharing method and device based on contents
CN107094122A (en) * 2017-05-18 2017-08-25 武汉烽火技术服务有限公司 A kind of method and system of the adjust automatically network bandwidth
CN108600115A (en) * 2018-05-03 2018-09-28 北京中普达技术有限公司 The method and device of network bandwidth resources optimization

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10506257B2 (en) * 2015-09-28 2019-12-10 Cybrook Inc. Method and system of video processing with back channel message management

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897566A (en) * 2005-07-14 2007-01-17 中兴通讯股份有限公司 System and method for realizing convergent point service quality guarantee based on class grading
CN101316141A (en) * 2007-05-29 2008-12-03 华为技术有限公司 Band width distribution method, device, communication apparatus and system
CN102195793A (en) * 2010-03-12 2011-09-21 华为技术有限公司 Dynamic bandwidth assignment realization method, master node and tangent node
CN102158391A (en) * 2010-11-12 2011-08-17 华为数字技术有限公司 Method and device for adjusting link bandwidth
CN102088405A (en) * 2010-12-13 2011-06-08 中国人民解放军信息工程大学 Status selection-based method and system for controlling network bandwidth
CN104302008A (en) * 2014-10-20 2015-01-21 上海电机学院 Wireless multi-hop network bandwidth allocation method integrating time division and cache proportion
CN105721544A (en) * 2016-01-19 2016-06-29 福州华鹰重工机械有限公司 Inter-vehicle information sharing method and device based on contents
CN107094122A (en) * 2017-05-18 2017-08-25 武汉烽火技术服务有限公司 A kind of method and system of the adjust automatically network bandwidth
CN108600115A (en) * 2018-05-03 2018-09-28 北京中普达技术有限公司 The method and device of network bandwidth resources optimization

Also Published As

Publication number Publication date
CN109818881A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109787921B (en) CDN bandwidth scheduling method, acquisition and scheduling server and storage medium
CN109818881B (en) CDN bandwidth scheduling method, acquisition and scheduling server and storage medium
US10855618B2 (en) Bandwidth adjustment method and related device
CN109787801B (en) Network service management method, device and system
US11588733B2 (en) Slice-based routing
EP1851921B1 (en) Admission control and routing in a telecommunications network based on the consideration of all physical and logical links
CA2882535C (en) Control device discovery in networks having separate control and forwarding devices
EP2587750B1 (en) Addressing the large flow problem for equal cost multi-path in the datacenter
CN110932989B (en) Elephant flow path monitoring and scheduling method based on SDN data center network
US20040008687A1 (en) Method and apparatus for path configuration in networks
CN108234309B (en) Network data transmission method
CN109617810B (en) Data transmission method and device
CN111512600B (en) Method and apparatus for distributing traffic in a telecommunications network
EP2869506B1 (en) Congestion avoidance and fairness in data networks with multiple traffic sources
CN109873776B (en) Multicast message load sharing balancing method and device
US10075364B2 (en) Method and apparatus for self-tuned adaptive routing
CN111083061B (en) Method, equipment and system for determining DF (distribution function) of multicast flow
CN109088822B (en) Data flow forwarding method, device, system, computer equipment and storage medium
US8149694B2 (en) Enforcing fairness in ad hoc mesh networks
CN104735673A (en) Bound link configuration processing method and configuration method and device
CN102932268A (en) Data packet transmitting method and device
EP2220568B1 (en) Methods and systems for providing efficient provisioning of data flows
CN109474523B (en) Networking method and system based on SDN
Nithin et al. Efficient load balancing for multicast traffic in data center networks using SDN
KR101541168B1 (en) Route control method for flow of controller in software defined network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant