CN110098978A - A kind of test method, device and the network equipment of DNS scheduling - Google Patents
A kind of test method, device and the network equipment of DNS scheduling Download PDFInfo
- Publication number
- CN110098978A CN110098978A CN201910295063.7A CN201910295063A CN110098978A CN 110098978 A CN110098978 A CN 110098978A CN 201910295063 A CN201910295063 A CN 201910295063A CN 110098978 A CN110098978 A CN 110098978A
- Authority
- CN
- China
- Prior art keywords
- cache server
- scheduling
- domain name
- test
- node
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0896—Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses test method, device and the network equipments of a kind of DNS scheduling.The described method includes: obtaining the current bandwidth data of CDN;It is the test band data under the test scene by the current bandwidth data point reuse according to test scene;The test scene is to be determined according to the testing requirement of DNS scheduling system to be tested;The scheduling result of the DNS scheduling system to be tested is obtained, the scheduling result is that the DNS scheduling system to be tested determines under the test scene according to the test band data;It according to the scheduling result, determines whether the DNS scheduling system to be tested meets the requirements, is unable to get the problems such as guarantee, test scene and actual scene are not inconsistent to solve test period length, test coverage in the prior art.
Description
Technical field
Test method, device and the network dispatched the present invention relates to software testing technology field more particularly to a kind of DNS are set
It is standby.
Background technique
Content distributing network (Content Delivery Network, CDN) is that various nets are cached by cache server
Cache server is simultaneously distributed to each area by network content, and client guides the access of client into when accessing Web content
Apart from nearest cache server, to realize network acceleration.Current more and more Internet usage CDN technologies are added
Speed, using distance priority principle, with operator's priority principle etc., raising user's access speed and the pressure for reducing source station.
Due to the complexity of network, cache server can be because of a variety of causes such as network interruption, network fluctuation, load too high
Cause to service it is unavailable or in poor service, influence CDN acceleration effect.At this point, to guarantee that CDN accelerates available, need pair
Cache server is scheduled: it is not available to select available cache server (hereinafter referred to as replacement cache server) replacement service
Cache server (is hereinafter referred to as replaced cache server).Domain name analysis system (Domain Name Server, DNS) scheduling
Afterwards, what access CDN accelerated that domain name generates, which be sent to, which is replaced the request of caching, will gradually be transferred to replacement cache server, i.e. bandwidth
Replacement cache server has been transferred to from cache server is replaced.For guaranteed qos, therefore, to assure that replacement cache server energy
This Partial Incremental bandwidth is enough carried, to avoid frequently scheduling or mistake scheduling from influencing the normal operation of CDN, needs to exchange in advance
Degree is tested.
Since current network scale is very huge, existing test method is difficult to be suitable for actual network environment, causes
Test effect is bad.
Summary of the invention
The embodiment of the present invention provides test method, device and the network equipment of a kind of DNS scheduling, to solve in the prior art
Test period length, test coverage are unable to get the problems such as guarantee, test scene and actual scene are not inconsistent.
The embodiment of the present invention provides a kind of test method of DNS scheduling, which comprises
Obtain the current bandwidth data of CDN;
It is the test band data under the test scene by the current bandwidth data point reuse according to test scene;Institute
Stating test scene is to be determined according to the testing requirement of DNS scheduling system to be tested;
The scheduling result of the DNS scheduling system to be tested is obtained, the scheduling result is the DNS tune to be tested
Degree system is determined according to the test band data;
According to the scheduling result, determine whether the DNS scheduling system to be tested meets the requirements.
By the above method, test scene is determined according to the testing requirement of DNS scheduling system to be tested, according to checkout area
The current bandwidth data point reuse is the test band data under the test scene by scape;Actively construct expected test
Scene meets the scene runed on practical line, and is able to satisfy testing requirement, and test period is short, and can achieve effective test
Coverage rate;It according to the scheduling result, determines whether the DNS scheduling system to be tested meets the requirements, and then determines scheduling
Influence situation to network bandwidth reduces difficulty of test.
A kind of possible implementation, the CDN include at least one node;The node includes at least one caching clothes
Business device;The cache server accelerates domain name corresponding data cached for caching;
The current bandwidth data for obtaining CDN, comprising:
It obtains the current bandwidth data of node belonging to the current bandwidth data of cache server, cache server, accelerate
Domain name occupied current bandwidth data on cache server.
By the needs according to test scene, the required band data in CDN is obtained, it is expected further to construct
Test scene carries out the test of DNS scheduling.
A kind of possible implementation, it is described according to test scene, it is the test by the current bandwidth data point reuse
Test band data under scene, comprising:
If the test scene is for cache server, it is determined that the first adjustment amount of the cache server;
According to the first adjustment amount, the current bandwidth data of node belonging to the cache server are adjusted,
Obtain the test band data of node belonging to the cache server;
According to the first adjustment amount, the current bandwidth data of each acceleration domain name on the cache server are adjusted
It is whole, obtain the test band data of each acceleration domain name on the cache server.
By the above method, the test scene generated for node is realized, can reduce test scene establishes difficulty,
Also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
A kind of possible implementation, it is described according to test scene, it is the test by the current bandwidth data point reuse
Test band data under scene, comprising:
If the test scene is for node, it is determined that the second adjustment amount of the node;
According to the second adjustment amount, the current bandwidth data of each cache server of the node are adjusted, are obtained
To the test band data of each cache server of the node;
According to the second adjustment amount, the current bandwidth data of each acceleration domain name on each cache server are carried out
Adjustment, obtains the test band data of each acceleration domain name on the cache server of the node.
By the above method, the test scene generated for node is realized, can reduce test scene establishes difficulty,
Also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
A kind of possible implementation, it is described according to test scene, the band data of the CDN is adjusted to the test
Test band data under scene, comprising:
If the test scene is for acceleration domain name, it is determined that the third adjustment amount for accelerating domain name;
According to the third adjustment amount, the current bandwidth data of the corresponding each cache server of the acceleration domain name are carried out
Adjustment obtains the test band data of the corresponding each cache server of the acceleration domain name;
According to the third adjustment amount, to the current band of node belonging to the corresponding each cache server of the acceleration domain name
Wide data are adjusted, and obtain the test band data of node belonging to the corresponding each cache server of the acceleration domain name.
By the above method, realizes for the test scene for accelerating domain name to generate, the foundation of test scene can be reduced
Difficulty, also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
A kind of possible implementation, the scheduling result include: the acceleration domain name of the cache server of scheduling, scheduling;
It is described according to the scheduling result, determine whether the DNS scheduling system to be tested meets the requirements, comprising:
According to the test band data for accelerating domain name, and the cache server for accelerating domain name to accelerate before scheduling,
Determine the scheduling bandwidth amount for accelerating domain name;
According to the scheduling bandwidth amount for accelerating domain name, and the cache server for accelerating domain name to accelerate after scheduling, really
The bandwidth scheduling amount of node belonging to the bandwidth scheduling amount of the cache server and the cache server after degree of setting the tone;
If it is determined that node belonging to bandwidth scheduling amount and the cache server after the scheduling of the cache server
Bandwidth scheduling amount meets the bandwidth requirement of cache server and the node, it is determined that the DNS scheduling system to be tested is full
Foot requires.
By accelerating the test band data and scheduling result of domain name, the CDN tested each caching clothes after scheduling are determined
Business device and node whether meet dispatching requirement, the influence situation dispatched to bandwidth can be directly determined out, widened test can
Verify range.
The embodiment of the present invention provides a kind of test device of DNS scheduling, and described device includes:
Transmit-Receive Unit, for obtaining the current bandwidth data of CDN;Obtain the scheduling of the DNS scheduling system to be tested
As a result, the scheduling result is that the DNS scheduling system to be tested is determined according to the test band data;
Processing unit, for being the survey under the test scene by the current bandwidth data point reuse according to test scene
Try band data;The test scene is to be determined according to the testing requirement of DNS scheduling system to be tested;According to the scheduling
As a result, determining whether the DNS scheduling system to be tested meets the requirements.
A kind of possible implementation, the CDN include at least one node;The node includes at least one caching clothes
Business device;The cache server accelerates domain name corresponding data cached for caching;
The Transmit-Receive Unit, is specifically used for: obtaining section belonging to the current bandwidth data of cache server, cache server
The current bandwidth data of point accelerate domain name occupied current bandwidth data on cache server.
A kind of possible implementation, the processing unit are specifically used for:
If the test scene is for cache server, it is determined that the first adjustment amount of the cache server;According to
The first adjustment amount is adjusted the current bandwidth data of node belonging to the cache server, obtains the caching
The test band data of node belonging to server;According to the first adjustment amount, to each acceleration on the cache server
The current bandwidth data of domain name are adjusted, and obtain the test band data of each acceleration domain name on the cache server.
A kind of possible implementation, the processing unit are specifically used for:
If the test scene is for node, it is determined that the second adjustment amount of the node;According to the second adjustment
Amount, is adjusted the current bandwidth data of each cache server of the node, obtains each cache server of the node
Test band data;According to the second adjustment amount, to the current bandwidth of each acceleration domain name on each cache server
Data are adjusted, and obtain the test band data of each acceleration domain name on the cache server of the node.
A kind of possible implementation, the processing unit are specifically used for:
If the test scene is for acceleration domain name, it is determined that the third adjustment amount for accelerating domain name;According to described
Third adjustment amount is adjusted the current bandwidth data of the corresponding each cache server of the acceleration domain name, obtains described add
The test band data of the corresponding each cache server of fast domain name;It is corresponding to the acceleration domain name according to the third adjustment amount
Each cache server belonging to the current bandwidth data of node be adjusted, obtain the corresponding each caching clothes of the acceleration domain name
The test band data of node belonging to business device.
A kind of possible implementation, the scheduling result include: the acceleration domain name of the cache server of scheduling, scheduling;
The processing unit, is specifically used for: according to the test band data for accelerating domain name, and dispatching the preceding acceleration
The cache server that domain name accelerates determines the scheduling bandwidth amount for accelerating domain name;According to the scheduling bandwidth for accelerating domain name
The cache server for accelerating domain name to accelerate, determines the bandwidth scheduling amount of the cache server after scheduling after amount, and scheduling
And the bandwidth scheduling amount of node belonging to the cache server;If it is determined that the bandwidth scheduling after the scheduling of the cache server
The bandwidth scheduling amount of node belonging to amount and the cache server meets the bandwidth requirement of cache server and the node, then
Determine that the DNS scheduling system to be tested is met the requirements.
The embodiment of the present application also provides a kind of network equipment, which, which has, realizes test side as described above
The function of method.The function can execute corresponding software realization by hardware, and in a kind of possible design, which includes:
Processor, transceiver, memory;The memory for storing computer executed instructions, the transceiver for realizing the device with
Other communication entities are communicated, which is connect with the memory by the bus, when the apparatus is operative, the processor
The computer executed instructions of memory storage are executed, so that the device executes test method as described above.
The embodiment of the present invention also provides a kind of computer storage medium, stores software program in the storage medium, this is soft
Part program realizes survey described in above-mentioned various possible implementations when being read and executed by one or more processors
Method for testing.
The embodiment of the present invention also provides a kind of computer program product comprising instruction, when run on a computer,
So that computer executes test method described in above-mentioned various possible implementations.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced.
Fig. 1 is the schematic diagram for the system architecture that the embodiment of the present invention is applicable in;
Fig. 2 is a kind of configuration diagram of CDN provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the test method of DNS scheduling provided in the embodiment of the present invention;
Flow diagram corresponding to the test method that Fig. 4 also provides for the embodiment of the present invention;
Flow diagram corresponding to the test method that Fig. 5 also provides for the embodiment of the present invention;
Flow diagram corresponding to the test method that Fig. 6 also provides for the embodiment of the present invention;
Scheduling schematic diagram corresponding to the test method that Fig. 7 also provides for the embodiment of the present invention;
Flow diagram corresponding to the test method that Fig. 8 also provides for the embodiment of the present invention;
Scheduling schematic diagram corresponding to the test method that Fig. 9 also provides for the embodiment of the present invention;
Structural schematic diagram corresponding to the test device that Figure 10 also provides for the embodiment of the present invention;
Structural schematic diagram corresponding to the network equipment that Figure 11 also provides for the embodiment of the present invention.
Specific embodiment
The application is specifically described with reference to the accompanying drawings of the specification, the concrete operation method in embodiment of the method can also
To be applied in Installation practice.
Fig. 1 illustratively shows the embodiment of the present invention and provides the system architecture that the test method of DNS scheduling is applicable in, should
System architecture may include DNS scheduling system 101, test macro 102, CDN103.
In conjunction with Fig. 1, as shown in Fig. 2, including at least one node in CDN103;The node includes at least one caching clothes
Business device;The cache server accelerates domain name corresponding data cached for caching;It include caching clothes by taking Fig. 2 as an example, in node 1
Be engaged in device 211-213, includes cache server 221-223 in node 2, includes cache server 231-233 in node 3.
CDN103 can also include dns server;Dns server is made of Domain Name Resolver and name server.Domain
Name server, which refers to, preserves the domain name of All hosts and corresponding IP address in the network, and has domain name being converted to IP address
The server of function.The process that domain name is mapped as IP address is known as " domain name mapping ".Access request is sent to CDN in user
Afterwards, dns server carries out global load balancing dns resolution to the acceleration domain name in the access request, this time global load balancing
Dns resolution is used to determine the IP address of CDN cache server.For example, parsing corresponding IP address according to geographical location information.Add
Fast domain name can be understood as the domain name that client's domain name accelerates in public network access CDN, for example, original domain name is
The acceleration domain name of " www.xxxx.com. " on public network has " www.xxxx.com.lxdns.com. ".CDN adds according to different
Fast type projects go out different clients and accelerate domain name, and it may include program request acceleration, webpage acceleration, live streaming acceleration that client, which accelerates type,
Deng correspondingly, accelerating domain name can also divide into program request acceleration, webpage accelerates, live streaming accelerates etc..CDN is directed to different networks
Resource, can go out different acceleration domain names according to different acceleration type projects, and different acceleration domain names may be cooked up not
Same CDN cache server resource is to provide different acceleration services.
After obtaining the IP address of cache server, access request is issued to corresponding cache server;Buffer service
The domain name to be accessed that device is provided according to browser obtains the IP address of this domain name by the dns resolution of cache server, then by
Cache server submits access request to this IP address;After cache server secondary IP address obtains content, on the one hand in local
It is saved, in case use later, the data of acquisition are returned to client by two aspects, complete data service procedure;Client
The data returned by cache server are obtained to show later and complete the data request process entirely browsed.
As shown in Fig. 2, in cache server 211 and cache server 222, being assigned bandwidth in CDN103, use
It is cached in the data for accelerating domain name A.In cache server 223 and cache server 233, it is assigned bandwidth, is used
It is cached in the data for accelerating domain name B.
Due to the complexity of network, cache server can be because of a variety of causes such as network interruption, network fluctuation, load too high
Cause to service it is unavailable or in poor service, influence CDN acceleration effect.DNS dispatches system 101 for the resource tune in CDN
Degree, when determining that access exception occurs in some cache server IP address, for example, determining the cache server in CDN
High load or it is unavailable when, scheduling system 101 can by the corresponding distribution of the acceleration domain name to other servers made in CDN103,
Allow CDN by from client it is nearest and the normal cache server of service access initiate normal response.DNS scheduling with
Afterwards, what access CDN accelerated that domain name generates, which be sent to, which is replaced the request of caching, will gradually be transferred to replacement caching, i.e. bandwidth is from being replaced
It changes caching and has been transferred to replacement caching.In order to guarantee QOS, therefore, to assure that replacement caching can carry this Partial Incremental bandwidth
BwAdd, that is, it needs to meet:
1) the bandwidth upper limit Bw of cache server is replacedMaxReplace current bandwidth BwNow > Bw of cache serverAdd;
2) the bandwidth upper limit NodeBw of node where replacement cache serverMaxNode works as where replacement cache server
Preceding bandwidth NodeBwNow > BwAdd。
In the prior art, due to BwMaxWith BwNow, BwNow and NodeBwNow, NodeBwMaxThere is industry with NodeBwNow
The band data of business relevance, million rank of manual construction is not high as the feasibility of test input;And only construction portion bandwidth
Data can not assess data not plenary session not and will lead to test coverage and is imperfect;Actual bandwidth is continued jitters, and is constructed
Data it is then relatively fixed and actual scene is not inconsistent, the accuracy of test is lower.
If directlying adopt the bandwidth of operating environment on line as test data, due to can not actively construct expected survey
Examination hall scape, need to wait on line occur in operating environment cache server high load or it is unavailable the problems such as when, and need
When user accesses corresponding cache server, DNS scheduling can be just triggered, test period is long, and test coverage is low, is unable to satisfy survey
The needs of examination.
In addition, system is dispatched to online DNS for test, since the scheduling result of test environment will not really give birth to
Effect, therefore, directlys adopt the band data runed on line, and bandwidth can not be allowed to be transferred to replacement caching by being replaced caching, for
Load too high and the excessively high scene of node load are cached, since load does not decline, the DNS system runed on line can still continue
DNS scheduling is carried out, the scheduling result for testing environment and actual scene is caused not to be inconsistent, can not determine that needs are tested to online DNS
Whether the scheduling of scheduling system meets needs.
Test macro 102 is used to monitor the band data in CDN, and interacts with DNS scheduling system, and then test
DNS dispatches system 101.
Based on the above issues, the embodiment of the present invention provides a kind of test method of DNS scheduling, as shown in figure 3, the method
Include:
Step 301: obtaining the current bandwidth data of CDN;
Step 302: being the test bandwidth under the test scene by the current bandwidth data point reuse according to test scene
Data;
Wherein, the test scene is to be determined according to the testing requirement of DNS scheduling system to be tested.The present invention is implemented
DNS scheduling system 101 to be tested in example can dispatch system for the DNS run on line, be also possible to need it is to be tested to
Online DNS dispatches system, can according to actual test it needs to be determined that, it is not limited here.Test scene can be caching
Server high load or unavailable, node high load or it is unavailable, accelerate domain name high load or it is unavailable in it is one or more
Etc. scenes.
Step 303: obtaining the scheduling result of the DNS scheduling system to be tested, the scheduling result is described to be measured
The DNS scheduling system of examination is determined according to the test band data;
Step 304: according to the scheduling result, determining whether the DNS scheduling system to be tested meets the requirements.
By the above method, test scene is determined according to the testing requirement of DNS scheduling system to be tested, according to checkout area
The current bandwidth data point reuse is the test band data under the test scene by scape;Actively construct expected test
Scene meets the scene runed on practical line, and is able to satisfy testing requirement, and test period is short, and can achieve effective test
Coverage rate;It according to the scheduling result, determines whether the DNS scheduling system to be tested meets the requirements, and then determines scheduling
Influence situation to network bandwidth reduces difficulty of test.
For the needs for better meeting test scene, the required band data in CDN is obtained, it is pre- further to construct
The test scene of phase carries out the test of DNS scheduling.The current bandwidth data for obtaining CDN, comprising: obtain cache server
Current bandwidth data, the current bandwidth data of node belonging to cache server, accelerate domain name shared on cache server
Current bandwidth data.
In the specific implementation process, test macro can obtain the band data of CDN in real time, can be according to the time of setting
Period updates current bandwidth data.
In step 302, it can be stored in advance into configuration file, be surveyed according to the mode that test scene carries out Bandwidth adjustment
Test system, according to the needs of test, reads corresponding configuration file, after the band data for obtaining CDN to carry out Bandwidth adjustment.Band
The configuration of width adjustment can be various dimensions, in the embodiment of the present invention, can be directed to belonging to cache server, cache server
One or more carry out Bandwidth adjustments in node, acceleration domain name.
The embodiment of the present invention provides a kind of test scene for cache server adjustment, for example, under the test scene,
211 high load of cache server then needs the current bandwidth data according to cache server 211, according to the checkout area of high load
Scape determines that cache server 211 is more than the first adjustment amount N of the bandwidth threshold of high load.
As shown in figure 4, be the test band data under the test scene by the current bandwidth data point reuse, it is specific to wrap
It includes:
Step 401: if the test scene is for cache server, it is determined that the first adjustment amount of cache server;
In the specific implementation process, the adjustment amount of the bandwidth of cache server can be adjusted based on ratio and/or based on finger
Definite value adjustment.In conjunction with above-mentioned example, for determining the first adjustment amount based on designated value Bw: if it is determined that cache server 211 is worked as
Preceding bandwidth B wNow is 100M, and the bandwidth threshold Bw for the high load for needing to be scheduled is 200M, then can be by the first adjustment amount N
It is determined as Bw-BwNow=100M.To determine that the method for the first adjustment amount N can be with based on ratio Rate1 are as follows: the first adjustment amount N is
(Rate1-1)*BwNow。
At this point, the current bandwidth data that the test band data of cache server is cache server are adjusted plus described first
Whole amount N.
Separately for example, for cache server fault scenes, however, it is determined that 232 failure of cache server, it is determined that caching
The first adjustment amount N of server 232 is the current bandwidth amount of cache server 232;For example, the current band of cache server 232
Width amount is 200M, and under fault scenes, the bandwidth of cache server 232 need to be reduced to 0, and the first adjustment amount N is 200M.
Step 402: according to the first adjustment amount, the current bandwidth data of node belonging to cache server being adjusted
It is whole, obtain the test band data of node belonging to cache server;
In a kind of specific embodiment, the test band data Node of node belonging to cache server can be equal to section
The current bandwidth data NodeNow of point adds the first adjustment amount N.
Step: 403: according to the first adjustment amount, to the current bandwidth data of each acceleration domain name on cache server
It is adjusted, obtains the test band data of each acceleration domain name on cache server.
If assume to accelerate the network bandwidth that is occupied on each cache server of domain name be it is identical, can be by the first adjustment
It measures in each acceleration domain name in N mean allocation to cache server, with each test band data for accelerating domain name of determination.
In a kind of specific embodiment, it can be adjusted by traversing each acceleration domain name, specific formula:
BwI, j=BwNowI, j+N/D
Wherein, BwI, jTo accelerate test band data of the domain name i on cache server j, BwNowI, jTo accelerate domain name i
Current bandwidth data on cache server j;i≤D;D is the number of the acceleration domain name on cache server j.
It is, of course, also possible to determine bandwidth allocation situation of each acceleration domain name on cache server, really according to actual scene
The weight of bandwidth allocation of the fixed each acceleration domain name on cache server, by the first adjustment amount N according to weight distribution to caching
In a acceleration domain name on server, Bandwidth adjustment is carried out to a acceleration domain name to realize.
By the above method, the test scene generated for node is realized, can reduce test scene establishes difficulty,
Also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
As shown in figure 5, it is described according to test scene, it is the survey under the test scene by the current bandwidth data point reuse
Try band data, comprising:
Step 501: if the test scene is for node, it is determined that the second adjustment amount of node;
For example, under the test scene, 1 high load of node then needs the current bandwidth data according to node 1, according to height
The test scene of load determines that node 1 is more than the second adjustment amount NodeBw of the bandwidth threshold of high load.In specific implementation process
In, the adjustment amount of the bandwidth of node can be adjusted based on ratio and/or be adjusted based on designated value.For example, to be based on designated value
NodeBw1 is determined for second adjustment amount: if it is determined that 1 current bandwidth NodeBwNow of node is 800M, the height for needing to be scheduled
The bandwidth threshold NodeBw1 of load is 1000M, then second adjustment amount NodeBw can be determined as NodeBw1-NodeBwNow
=200M.To determine that the method for second adjustment amount NodeBw can be with based on ratio Rate2 are as follows: second adjustment amount NodeBw is
(Rate2-1)*NodeBwNow。
At this point, the current bandwidth data that the test band data of node is node add the second adjustment amount NodeBw.
Step 502: according to second adjustment amount, the current bandwidth data of each cache server of node being adjusted, are obtained
To the test band data of each cache server of the node;
It, can be by the cache server under second adjustment amount mean allocation to node, i.e., in a kind of specific embodiment
Bandwidth adjustment the amount NodeBw/C, C of each cache server under node are the quantity of the cache server under node;Node k's
The test band data of each cache server:
Bwn=BwNown+NodeBw/C
Wherein, BwnFor the test band data of the cache server n in node k, BwNownFor the caching in node k
The current bandwidth data of server n;n≤C;C is the number of the cache server in node k.
It is of course also possible to the weight of the Bandwidth adjustment of the cache server under node is determined according to the needs of test scene,
To determine the Bandwidth adjustment amount of each cache server under node.
Step 503: according to second adjustment amount, to the current bandwidth number of each acceleration domain name on each cache server of node
According to being adjusted, the test band data of each acceleration domain name on the cache server of the node is obtained.
If assume to accelerate the network bandwidth that is occupied on each cache server of domain name be it is identical, can be by second adjustment
It measures in each acceleration domain name in NodeBw mean allocation to node, with each test band data for accelerating domain name of determination.
In a kind of specific embodiment, it can be accelerated by each cache server under traverse node and cache server
Each acceleration domain name, with realize it is each accelerate domain name Bandwidth adjustment, specific formula:
NodeBwN, m=Node BwNowN, m+NodeBw/(C1*D1)
Wherein, NodeBwN, mTo accelerate test band data of the domain name m on cache server n, NodeBwNowN, mTo add
Current bandwidth data of the fast domain name m on cache server n;m≤C1;D1 is the number of the acceleration domain name on cache server n;
C1 is the number of the cache server on node k.
It is, of course, also possible to determine bandwidth allocation situation of each acceleration domain name on cache server, really according to actual scene
The weight of fixed each bandwidth allocation on cache server that accelerates domain name, by second adjustment amount according to weight distribution to caching clothes
It is engaged in each acceleration domain name on device, Bandwidth adjustment is carried out to each acceleration domain name to realize.
By the above method, the test scene generated for node is realized, can reduce test scene establishes difficulty,
Also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
As shown in fig. 6, it is described according to test scene, the band data of the CDN is adjusted under the test scene
Test band data, comprising:
Step 601: if the test scene is for acceleration domain name, it is determined that accelerate the third adjustment amount of domain name;
For example, access accelerates domain name A high load under the test scene, then need according to the current bandwidth for accelerating domain name A
Data determine the third adjustment amount for the bandwidth threshold for accelerating domain name A to be more than high load according to the test scene of high load
DomainBw.In the specific implementation process, accelerating the adjustment amount of the bandwidth of domain name can be adjusted based on ratio and/or based on specified
Value adjustment.For example, for determining third adjustment amount based on designated value DomainBw1: if it is determined that accelerating the current bandwidth of domain name A
DomainBwNow is 400M, and the bandwidth threshold DomainBw1 for the high load for needing to be scheduled is 700M, then can be by third
Adjustment amount DomainBw is determined as DomainBw1-DomainBwNow=300M.To determine third adjustment amount based on ratio Rate3
The method of DomainBw can be with are as follows: third adjustment amount DomainBw is (Rate3-1) * DomainBwNow.
At this point, accelerating the test band data of domain name is to accelerate the current bandwidth data of domain name plus the third adjustment amount
DomainBw。
Step 602: according to third adjustment amount, the current bandwidth data for accelerating the corresponding each cache server of domain name being carried out
Adjustment obtains the test band data of the corresponding each cache server of the acceleration domain name;
If assume to accelerate the network bandwidth that is occupied on each cache server of domain name be it is identical, third can be adjusted
It measures in DomainBw mean allocation to each cache server for accelerating domain name, with the test bandwidth number of each cache server of determination
According to.
In a kind of specific embodiment, the corresponding each cache server of domain name can be accelerated by traversal, it is each to realize
The Bandwidth adjustment of cache server and node, specific formula:
DomainBwL, g=DomainBwNowL, g+DomainBw/(C2)
Wherein, DomainBwL, gTo accelerate test band data of the domain name l on cache server g, DomainBwNowL, g
To accelerate current bandwidth data of the domain l on cache server g;g≤C2;C2 is to take to the caching for accelerating domain name l to be accelerated
The number of business device.
It is, of course, also possible to determine bandwidth allocation situation of each acceleration domain name on cache server, really according to actual scene
The weight of bandwidth allocation of the fixed each acceleration domain name on cache server, by third adjustment amount according to weight distribution to each caching
On server.
Step 603: according to third adjustment amount, to the current band for accelerating node belonging to the corresponding each cache server of domain name
Wide data are adjusted, and obtain the test band data of node belonging to the corresponding each cache server of the acceleration domain name.
In a kind of specific embodiment, the corresponding section of the corresponding each cache server of domain name can be accelerated by traversal
Point, to realize the Bandwidth adjustment of node;The adjustment amount of the real-time bandwidth of node can be where corresponding nodal cache server
DomainBw/ (C2), or according to actual scene, determine bandwidth allocation feelings of each acceleration domain name on cache server
Condition determines the weight of bandwidth allocation of each acceleration domain name on cache server, and then the tune of the real-time bandwidth of the node determined
Whole amount.
By the above method, realizes for the test scene for accelerating domain name to generate, the foundation of test scene can be reduced
Difficulty, also, the amount of bandwidth of the test scene generated improves testing efficiency closer to real scene.
It should be noted that since bandwidth is unable to adjust to 0 hereinafter, if there is cache server adjusted or node
Test band data less than 0, then prompt test band data setting it is unreasonable, to re-start the configuration of test scene.
DNS scheduling system is sent by bandwidth adjusted.A kind of possible implementation, the scheduling result include:
The acceleration domain name of scheduling, scheduling cache server.Specifically, if the cache server of scheduling includes being replaced cache server
With replacement cache server, then scheduling result may include accelerating domain name, and accelerate that domain name is corresponding is replaced cache server
With replacement cache server.
For example, as shown in fig. 7, the cache server for accelerating domain name A to be accelerated before scheduling is 211 He of cache server
Cache server 222, scheduling result are, by the bandwidth scheduling of the acceleration domain name A in cache server 211 to cache server
231。
As shown in figure 8, a kind of possible implementation, described according to the scheduling result, the DNS to be tested is determined
The method whether scheduling system meets the requirements may include:
Step 801: according to the test band data for accelerating domain name, and the caching for accelerating domain name to accelerate before scheduling
Server determines the scheduling bandwidth amount for accelerating domain name;
In conjunction with Fig. 7, however, it is determined that scheduling result is by the bandwidth scheduling of the acceleration domain name A in cache server 211 to caching
Server 231.At this point, accelerating the scheduling bandwidth amount of domain name A is the test amount of bandwidth for accelerating domain name.
Step 802: according to the scheduling bandwidth amount for accelerating domain name, and the caching clothes for accelerating domain name to accelerate after scheduling
Be engaged in device, determine scheduling after the cache server bandwidth scheduling amount and the cache server belonging to node bandwidth scheduling
Amount;
In a kind of specific embodiment, it can determine CDN Bandwidth adjustment amount according to the real process of scheduling, that is, subtract
It is replaced the bandwidth of cache server less, increases the bandwidth of replacement cache server.
Specifically, may include:
Step 1: each cache server list of the acceleration domain name A before traversal scheduling, by acceleration domain name A in each caching
Bandwidth on server removes;
For example, however, it is determined that in scheduling result, the cache server that do not replace, the then acceleration domain name after dispatching accelerates
Cache server list LafterThe cache server list L that acceleration domain name before=scheduling acceleratesbeforeThe caching being replaced
Server;If it is determined that there are the cache servers of replacement in scheduling result, then the buffer service that the acceleration domain name after dispatching accelerates
Device list LafterThe cache server list L that acceleration domain name before=scheduling acceleratesbeforeCache server+the replacement being replaced
Cache server.
For example, determining that accelerating the test band data of domain name A is DomainBwA, it is responsible for accelerating the corresponding caching clothes of domain name A
The bandwidth decrement of business device n is DomainBwA/Cbefore, CbeforeIt is to be responsible for accelerating the correspondence buffer service of domain name A before scheduling
The quantity of device;
After DNS scheduling, being responsible for accelerating the bandwidth increment of the cache server m of domain name A is DomainBw/Cafter, Cafter
It is the quantity of the cache server after scheduling;If a cache server all accelerates acceleration domain name before and after scheduling,
Then the Bandwidth adjustment amount of the cache server is DomainBw/Cafter-DomainBw/Cbefore。
Step 803: if it is determined that belonging to bandwidth scheduling amount and the cache server after the scheduling of the cache server
The bandwidth scheduling amount of node meet the bandwidth requirement of cache server and the node, it is determined that the DNS tune to be tested
Degree system is met the requirements.
For example, however, it is determined that the amount of bandwidth of node declines, less than the bandwidth upper limit of the high load of node;If it is determined that caching
The amount of bandwidth of server declines, less than the bandwidth upper limit of the high load of cache server;Then determination does not need to dispatch again.
A kind of possible implementation, since bandwidth transfer gradually comes into force, it can be assumed that bandwidth transfer process is line
Property, it is assumed that the time come into force completely is T, as shown in figure 9, the then real-time bandwidth scheduling quantum of cache server are as follows:
1) bandwidth scheduling amount * ((current time-scheduling time)/T) current time-scheduling time < T
2) bandwidth scheduling amount current time-scheduling time >=T
By accelerating the test band data and scheduling result of domain name, it can also determine that the CDN of test is every in scheduling process
Whether a cache server and node meet dispatching requirement, can directly determine out the influence situation dispatched to bandwidth, broadening
Test can verify that range, be conducive to targetedly improve the progress that DNS is dispatched.
By accelerating the test band data and scheduling result of domain name, the CDN tested each caching clothes after scheduling are determined
Business device and node whether meet dispatching requirement, the influence situation dispatched to bandwidth can be directly determined out, widened test can
Verify range.
In the embodiment of the present invention, it can be directly accessed operating environment on line, the real-time bandwidth data of CDN are obtained, according to survey
Examination needs to be adjusted the band data of CDN in a test system, is not only bonded practical application scene, but also being able to satisfy test need to
It asks, improves testing efficiency.It, on the one hand can be with furthermore it is possible to the scheduling result of DNS scheduling tests environment is made to act on flow bandwidth
On the other hand the amount of bandwidth for the scheduling for triggering load too high can observe scheduling to band closer to the scheduling needs of scheduling system
Wide influence situation.Just the reasonability of dispatching algorithm can be verified before DNS scheduling new function is online.
Based on identical inventive concept, as shown in Figure 10, the embodiment of the present invention provides a kind of test device of DNS scheduling,
Described device includes:
Transmit-Receive Unit 1001, for obtaining the current bandwidth data of CDN;Obtain the DNS scheduling system to be tested
Scheduling result, the scheduling result are that the DNS scheduling system to be tested is determined according to the test band data;
Processing unit 1002, for being under the test scene by the current bandwidth data point reuse according to test scene
Test band data;The test scene is to be determined according to the testing requirement of DNS scheduling system to be tested;According to described
Scheduling result, determines whether the DNS scheduling system to be tested meets the requirements.
A kind of possible implementation, the CDN include at least one node;The node includes at least one caching clothes
Business device;The cache server accelerates domain name corresponding data cached for caching;
Transmit-Receive Unit 1001, is specifically used for: obtaining section belonging to the current bandwidth data of cache server, cache server
The current bandwidth data of point accelerate domain name occupied current bandwidth data on cache server.
A kind of possible implementation, processing unit 1002 are specifically used for:
If the test scene is for cache server, it is determined that the first adjustment amount of the cache server;According to
The first adjustment amount is adjusted the current bandwidth data of node belonging to the cache server, obtains the caching
The test band data of node belonging to server;According to the first adjustment amount, to each acceleration on the cache server
The current bandwidth data of domain name are adjusted, and obtain the test band data of each acceleration domain name on the cache server.
A kind of possible implementation, processing unit 1002 are specifically used for:
If the test scene is for node, it is determined that the second adjustment amount of the node;According to the second adjustment
Amount, is adjusted the current bandwidth data of each cache server of the node, obtains each cache server of the node
Test band data;According to the second adjustment amount, to the current bandwidth of each acceleration domain name on each cache server
Data are adjusted, and obtain the test band data of each acceleration domain name on the cache server of the node.
A kind of possible implementation, processing unit 1002 are specifically used for:
If the test scene is for acceleration domain name, it is determined that the third adjustment amount for accelerating domain name;According to described
Third adjustment amount is adjusted the current bandwidth data of the corresponding each cache server of the acceleration domain name, obtains described add
The test band data of the corresponding each cache server of fast domain name;It is corresponding to the acceleration domain name according to the third adjustment amount
Each cache server belonging to the current bandwidth data of node be adjusted, obtain the corresponding each caching clothes of the acceleration domain name
The test band data of node belonging to business device.
A kind of possible implementation, the scheduling result include: the acceleration domain name of the cache server of scheduling, scheduling;
Processing unit 1002, is specifically used for: according to the test band data for accelerating domain name, and dispatching the preceding acceleration
The cache server that domain name accelerates determines the scheduling bandwidth amount for accelerating domain name;According to the scheduling bandwidth for accelerating domain name
The cache server for accelerating domain name to accelerate, determines the bandwidth scheduling amount of the cache server after scheduling after amount, and scheduling
And the bandwidth scheduling amount of node belonging to the cache server;If it is determined that the bandwidth scheduling after the scheduling of the cache server
The bandwidth scheduling amount of node belonging to amount and the cache server meets the bandwidth requirement of cache server and the node, then
Determine that the DNS scheduling system to be tested is met the requirements.
Figure 11 is the structural schematic diagram of the network equipment provided in the embodiment of the present application, as shown in figure 11, the network equipment
1100 include processor 1110, memory 1120 and communication interface 1130.Optionally, which further includes that input is set
Standby 640, output equipment 650 and bus 660.Wherein, processor 1110, memory 1120, communication interface 1130 pass through bus 550
It is connected with each other.Store instruction or program in memory 1120, processor 1110 is for executing the instruction stored in memory 1120
Or program.The instruction or program stored in memory 1120 is performed, and the processor 1110 is for executing above method implementation
The operation that processing unit 1020 executes in example, communication interface 1130 are used to execute what Transmit-Receive Unit 510 in above-described embodiment executed
Operation.
It is mentioned it should be noted that the network equipment 1100 provided by the embodiments of the present application can correspond to the execution embodiment of the present invention
For either method the network equipment, and the operation and/or function of the modules in the network equipment 1100 respectively in order to
The corresponding process for realizing method shown in Fig. 2 to Fig. 9, for sake of simplicity, details are not described herein.
It should be understood that the processor referred in the embodiment of the present application can be central processing unit (central
Processing unit, CPU), it can also be other general processors, digital signal processor (digital signal
Processor, DSP), it is specific integrated circuit (application specific integrated circuit, ASIC), existing
At programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also
To be any conventional processor etc..
It should also be understood that the memory referred in the embodiment of the present application can be volatile memory or non-volatile memories
Device, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory
(read-only memory, ROM), programmable read only memory (programmable ROM, PROM), erasable programmable are only
Read memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM,
) or flash memory EEPROM.Volatile memory can be random access memory (random access memory, RAM), use
Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access
Memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random-access
Memory (synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (double data
Rate SDRAM, DDR SDRAM), it is enhanced Synchronous Dynamic Random Access Memory (enhanced SDRAM, ESDRAM), same
Step connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct rambus random access memory
(direct rambus RAM, DR RAM).
It should be noted that when processor is general processor, DSP, ASIC, FPGA or other programmable logic devices
When part, discrete gate or transistor logic, discrete hardware components, memory (memory module) is integrated in the processor.
It should be noted that memory described herein is intended to include but is not limited to the storage of these and any other suitable type
Device.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention
Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited
The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (14)
1. a kind of test method of DNS scheduling, which is characterized in that the described method includes:
Obtain the current bandwidth data of content distributing network CDN;
It is the test band data under the test scene by the current bandwidth data point reuse according to test scene;The survey
Examination hall scape is to be determined according to the testing requirement of DNS scheduling system to be tested;
The scheduling result of the DNS scheduling system to be tested is obtained, the scheduling result is the DNS scheduling system to be tested
What system determined under the test scene according to the test band data;
According to the scheduling result, determine whether the DNS scheduling system to be tested meets the requirements.
2. the method as described in claim 1, which is characterized in that the CDN includes at least one node;The node includes extremely
A few cache server;The cache server accelerates domain name corresponding data cached for caching;
The current bandwidth data for obtaining CDN, including following one or more:
It obtains the current bandwidth data of node belonging to the current bandwidth data of cache server, cache server, accelerate domain name
The occupied current bandwidth data on cache server.
3. method according to claim 2, which is characterized in that it is described by the current bandwidth data point reuse be the checkout area
Test band data under scape, comprising:
If the test scene is for cache server, it is determined that the first adjustment amount of the cache server;
According to the first adjustment amount, the current bandwidth data of node belonging to the cache server are adjusted, are obtained
The test band data of node belonging to the cache server;
According to the first adjustment amount, the current bandwidth data of each acceleration domain name on the cache server are adjusted,
Obtain the test band data of each acceleration domain name on the cache server.
4. method according to claim 2, which is characterized in that it is described according to test scene, by the current bandwidth data tune
The whole test band data under the test scene, comprising:
If the test scene is for node, it is determined that the second adjustment amount of the node;
According to the second adjustment amount, the current bandwidth data of each cache server of the node are adjusted, institute is obtained
State the test band data of each cache server of node;
According to the second adjustment amount, the current bandwidth data of each acceleration domain name on each cache server are adjusted
It is whole, obtain the test band data of each acceleration domain name on the cache server of the node.
5. method according to claim 2, which is characterized in that it is described according to test scene, by the band data tune of the CDN
The whole test band data under the test scene, comprising:
If the test scene is for acceleration domain name, it is determined that the third adjustment amount for accelerating domain name;
According to the third adjustment amount, the current bandwidth data of the corresponding each cache server of the acceleration domain name are adjusted
It is whole, obtain the test band data of the corresponding each cache server of the acceleration domain name;
According to the third adjustment amount, to the current bandwidth number of node belonging to the corresponding each cache server of the acceleration domain name
According to being adjusted, the test band data of node belonging to the corresponding each cache server of the acceleration domain name is obtained.
6. method according to claim 2, which is characterized in that the scheduling result includes: the acceleration domain name of scheduling, scheduling
Cache server;
It is described according to the scheduling result, determine whether the DNS scheduling system to be tested meets the requirements, comprising:
According to the test band data for accelerating domain name, and the cache server for accelerating domain name to accelerate before scheduling, it determines
The scheduling bandwidth amount for accelerating domain name;
According to the scheduling bandwidth amount for accelerating domain name, and the cache server for accelerating domain name to accelerate after scheduling, it determines and adjusts
The bandwidth scheduling amount of node belonging to the bandwidth scheduling amount of the cache server and the cache server after degree;
If it is determined that the bandwidth of node belonging to bandwidth scheduling amount and the cache server after the scheduling of the cache server
Scheduling quantum meets the bandwidth requirement of cache server and the node, it is determined that the DNS scheduling system satisfaction to be tested is wanted
It asks.
7. a kind of test device of DNS scheduling, which is characterized in that described device includes:
Transmit-Receive Unit, for obtaining the current bandwidth data of CDN;The scheduling result of the DNS scheduling system to be tested is obtained,
The scheduling result is that the DNS scheduling system to be tested determines under the test scene according to the test band data
's;
Processing unit, for being the calibration tape under the test scene by the current bandwidth data point reuse according to test scene
Wide data;The test scene is to be determined according to the testing requirement of DNS scheduling system to be tested;It is tied according to the scheduling
Fruit, determines whether the DNS scheduling system to be tested meets the requirements.
8. device as claimed in claim 7, which is characterized in that the CDN includes at least one node;The node includes extremely
A few cache server;The cache server accelerates domain name corresponding data cached for caching;
The Transmit-Receive Unit, is specifically used for: obtaining node belonging to the current bandwidth data of cache server, cache server
Current bandwidth data accelerate domain name occupied current bandwidth data on cache server.
9. device as claimed in claim 8, which is characterized in that the processing unit is specifically used for:
If the test scene is for cache server, it is determined that the first adjustment amount of the cache server;According to described
The first adjustment amount is adjusted the current bandwidth data of node belonging to the cache server, obtains the buffer service
The test band data of node belonging to device;According to the first adjustment amount, to each acceleration domain name on the cache server
Current bandwidth data be adjusted, obtain the test band data of each acceleration domain name on the cache server.
10. device as claimed in claim 8, which is characterized in that the processing unit is specifically used for:
If the test scene is for node, it is determined that the second adjustment amount of the node;It is right according to the second adjustment amount
The current bandwidth data of each cache server of the node are adjusted, and obtain the test of each cache server of the node
Band data;According to the second adjustment amount, to the current bandwidth data of each acceleration domain name on each cache server into
Row adjustment, obtains the test band data of each acceleration domain name on the cache server of the node.
11. device as claimed in claim 8, which is characterized in that the processing unit is specifically used for:
If the test scene is for acceleration domain name, it is determined that the third adjustment amount for accelerating domain name;According to the third
Adjustment amount is adjusted the current bandwidth data of the corresponding each cache server of the acceleration domain name, obtains the acceleration domain
The test band data of the corresponding each cache server of name;It is corresponding to the acceleration domain name each according to the third adjustment amount
The current bandwidth data of node belonging to cache server are adjusted, and obtain the corresponding each cache server of the acceleration domain name
The test band data of affiliated node.
12. device as claimed in claim 8, which is characterized in that the scheduling result includes: the cache server of scheduling, adjusts
The acceleration domain name of degree;
The processing unit, is specifically used for: according to the test band data for accelerating domain name, and dispatching the preceding acceleration domain name
The cache server of acceleration determines the scheduling bandwidth amount for accelerating domain name;According to the scheduling bandwidth amount for accelerating domain name, and
The cache server for accelerating domain name to accelerate after scheduling determines after scheduling the bandwidth scheduling amount of the cache server and described
The bandwidth scheduling amount of node belonging to cache server;If it is determined that bandwidth scheduling amount and institute after the scheduling of the cache server
The bandwidth scheduling amount for stating node belonging to cache server meets the bandwidth requirement of cache server and the node, it is determined that institute
DNS scheduling system to be tested is stated to meet the requirements.
13. a kind of network equipment, including memory, processor and it is stored on the memory and can transports on the processor
Capable computer program, which is characterized in that the processor is realized as described in claim any one of 1-6 when executing described program
DNS scheduling test method.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The step in the test method of DNS scheduling as claimed in any one of claims 1 to 6 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295063.7A CN110098978B (en) | 2019-04-12 | 2019-04-12 | DNS scheduling test method and device, network equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910295063.7A CN110098978B (en) | 2019-04-12 | 2019-04-12 | DNS scheduling test method and device, network equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110098978A true CN110098978A (en) | 2019-08-06 |
CN110098978B CN110098978B (en) | 2021-02-26 |
Family
ID=67444786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910295063.7A Expired - Fee Related CN110098978B (en) | 2019-04-12 | 2019-04-12 | DNS scheduling test method and device, network equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110098978B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500663A (en) * | 2021-12-28 | 2022-05-13 | 网宿科技股份有限公司 | Scheduling method, device, equipment and storage medium for content distribution network equipment |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2362302A (en) * | 2000-05-08 | 2001-11-14 | 3Com Corp | Network management data storage |
CN101266566A (en) * | 2007-03-13 | 2008-09-17 | 中国电信股份有限公司 | Multi- test scene automatic dispatch system and method |
CN102045411A (en) * | 2009-10-13 | 2011-05-04 | 中国移动通信集团公司 | Method, server and system for domain name resolution |
CN104410691A (en) * | 2014-11-27 | 2015-03-11 | 网宿科技股份有限公司 | Method and system for website acceleration on basis of content delivery network |
CN104852912A (en) * | 2015-04-29 | 2015-08-19 | 中国互联网络信息中心 | Domain name registration server performance testing system and domain name registration server performance testing method |
CN105653451A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Software performance testing method and device |
CN106027408A (en) * | 2016-04-26 | 2016-10-12 | 乐视控股(北京)有限公司 | CDN (Content Delivery Network) network model node server access pressure detection method and system |
CN106034083A (en) * | 2015-03-12 | 2016-10-19 | 阿里巴巴集团控股有限公司 | CDN system and rate-limiting control method thereof, CND node, and server |
CN106331213A (en) * | 2016-08-29 | 2017-01-11 | 广东欧珀移动通信有限公司 | Domain name system DNS processing method and apparatus |
CN106528432A (en) * | 2016-12-12 | 2017-03-22 | 北京三快在线科技有限公司 | Construction method and apparatus for test scene data, and buried point test method |
CN106571981A (en) * | 2016-11-15 | 2017-04-19 | 中国互联网络信息中心 | DNS (Domain Name System) server automated testing method and system |
CN106789360A (en) * | 2017-02-15 | 2017-05-31 | 中国互联网络信息中心 | A kind of DNS flow simulations system |
CN108259237A (en) * | 2018-01-05 | 2018-07-06 | 葛晗 | Network access accelerated method, cloud dns server, CE and cloud IP accelerate network system |
CN109067938A (en) * | 2018-10-15 | 2018-12-21 | 网宿科技股份有限公司 | A kind of method and device for testing dns server |
CN109361622A (en) * | 2018-11-30 | 2019-02-19 | 网宿科技股份有限公司 | The method and CDN system of bandwidth control are carried out to the service connection of CDN system |
CN109542613A (en) * | 2017-09-22 | 2019-03-29 | 中兴通讯股份有限公司 | Distribution method, device and the storage medium of service dispatch in a kind of CDN node |
-
2019
- 2019-04-12 CN CN201910295063.7A patent/CN110098978B/en not_active Expired - Fee Related
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2362302A (en) * | 2000-05-08 | 2001-11-14 | 3Com Corp | Network management data storage |
CN101266566A (en) * | 2007-03-13 | 2008-09-17 | 中国电信股份有限公司 | Multi- test scene automatic dispatch system and method |
CN102045411A (en) * | 2009-10-13 | 2011-05-04 | 中国移动通信集团公司 | Method, server and system for domain name resolution |
CN104410691A (en) * | 2014-11-27 | 2015-03-11 | 网宿科技股份有限公司 | Method and system for website acceleration on basis of content delivery network |
CN106034083A (en) * | 2015-03-12 | 2016-10-19 | 阿里巴巴集团控股有限公司 | CDN system and rate-limiting control method thereof, CND node, and server |
CN104852912A (en) * | 2015-04-29 | 2015-08-19 | 中国互联网络信息中心 | Domain name registration server performance testing system and domain name registration server performance testing method |
CN105653451A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Software performance testing method and device |
CN106027408A (en) * | 2016-04-26 | 2016-10-12 | 乐视控股(北京)有限公司 | CDN (Content Delivery Network) network model node server access pressure detection method and system |
CN106331213A (en) * | 2016-08-29 | 2017-01-11 | 广东欧珀移动通信有限公司 | Domain name system DNS processing method and apparatus |
CN106571981A (en) * | 2016-11-15 | 2017-04-19 | 中国互联网络信息中心 | DNS (Domain Name System) server automated testing method and system |
CN106528432A (en) * | 2016-12-12 | 2017-03-22 | 北京三快在线科技有限公司 | Construction method and apparatus for test scene data, and buried point test method |
CN106789360A (en) * | 2017-02-15 | 2017-05-31 | 中国互联网络信息中心 | A kind of DNS flow simulations system |
CN109542613A (en) * | 2017-09-22 | 2019-03-29 | 中兴通讯股份有限公司 | Distribution method, device and the storage medium of service dispatch in a kind of CDN node |
CN108259237A (en) * | 2018-01-05 | 2018-07-06 | 葛晗 | Network access accelerated method, cloud dns server, CE and cloud IP accelerate network system |
CN109067938A (en) * | 2018-10-15 | 2018-12-21 | 网宿科技股份有限公司 | A kind of method and device for testing dns server |
CN109361622A (en) * | 2018-11-30 | 2019-02-19 | 网宿科技股份有限公司 | The method and CDN system of bandwidth control are carried out to the service connection of CDN system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500663A (en) * | 2021-12-28 | 2022-05-13 | 网宿科技股份有限公司 | Scheduling method, device, equipment and storage medium for content distribution network equipment |
CN114500663B (en) * | 2021-12-28 | 2024-04-12 | 网宿科技股份有限公司 | Scheduling method, device, equipment and storage medium of content distribution network equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110098978B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104363313B (en) | Use the resource utilization support method and system of the website of content distributing network | |
CN108667748B (en) | Method, device, equipment and storage medium for controlling bandwidth | |
CN105872079B (en) | A kind of link equalization method based on domain name system DNS | |
US10652318B2 (en) | Systems and methods for load balancing using predictive routing | |
US7930393B1 (en) | Monitoring domain allocation performance | |
CN105743962A (en) | End-to-end datacenter performance control | |
CN110366720A (en) | The system and method for user's space network stack while bypassing container Linux network stack in operation Docker container | |
CN108965381A (en) | Implementation of load balancing, device, computer equipment and medium based on Nginx | |
CN107637034A (en) | System and method for the Virtual base facilities management between carrier network | |
CN108563544A (en) | System performance testing method, apparatus, computer equipment and storage medium | |
US10630573B2 (en) | Machine learning for quality of experience optimization | |
CN105610993B (en) | A kind of domain name analytic method, apparatus and system | |
CN1175147A (en) | Virtual enclosed cluster capable of recovery | |
BR112014020579B1 (en) | METHOD, DEVICE AND SYSTEM FOR RDC VOLUME ALLOCATION | |
CN109951543A (en) | A kind of data search method of CDN node, device and the network equipment | |
CN111666131A (en) | Load balancing distribution method and device, computer equipment and storage medium | |
CN107888717A (en) | A kind of domain name determines method, apparatus and electronic equipment | |
CN108881516A (en) | A kind of method and apparatus for dispatching more CDN service systems | |
CN109067926A (en) | Load-balancing method, device, computer equipment and storage medium | |
CN110301119A (en) | Improve the system and method for computer network performance for the multiplexing application-level flow for network flow | |
CN111654561B (en) | Method and device for determining IP address number, electronic equipment and storage medium | |
CN108271219A (en) | The control method and device of wireless network resource | |
CN111966556A (en) | Performance pressure measurement method and device, server and computer readable storage medium | |
CN110098978A (en) | A kind of test method, device and the network equipment of DNS scheduling | |
CN113556397A (en) | Cloud service resource scheduling method facing gateway of Internet of things |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210226 |