CN109639533A - A kind of test method, system and the terminal device of subdispatch strategy - Google Patents
A kind of test method, system and the terminal device of subdispatch strategy Download PDFInfo
- Publication number
- CN109639533A CN109639533A CN201910016637.2A CN201910016637A CN109639533A CN 109639533 A CN109639533 A CN 109639533A CN 201910016637 A CN201910016637 A CN 201910016637A CN 109639533 A CN109639533 A CN 109639533A
- Authority
- CN
- China
- Prior art keywords
- node
- subdispatch
- attribute information
- strategy
- test
- 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
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application discloses a kind of test methods of subdispatch strategy, comprising: initial request and attribute information are sent to source camouflage equipment by test client;Source pretends equipment according to initial request and attribute information construction tested region request, and tested region request is sent to dispatch server;Dispatch server executes subdispatch strategy and is requested to generate node allocation result according to tested region, and node allocation result is sent to test client;Test client judges whether the node of distribution is expectation node according to node allocation result, and determines whether subdispatch strategy passes through test according to obtained judging result.The application realizes the client without using true each region by test client and source camouflage equipment, greatly reduces the testing cost of subdispatch strategy.The application additionally provides test macro, terminal device, dispatch server and the computer readable storage medium of a kind of subdispatch strategy simultaneously, has above-mentioned beneficial effect.
Description
Technical field
This application involves content distributing network field, in particular to a kind of test method of subdispatch strategy, system, end
End equipment, dispatch server and computer readable storage medium.
Background technique
In content distributing network (Content Delivery Network, CDN) system, client is sent out to CDN system
The request of file is played or downloads out, intelligent dispatching system will distribute reasonable CDN node for client and provide number for client
According to download service.
The reliability of intelligent dispatching system is the basis of entire CDN system reliability, in order to guarantee intelligent dispatching system
Reliability, common practices are to construct tested region request scene to carry out correlation reliably to the subdispatch strategy of intelligent dispatching system
Property test, however, if to test different zones client issue scheduling request return as a result, it is desirable to look for different zones
Client, and the node in returning the result not necessarily completely covers scheduling strategy;For region, it cannot achieve with practical
Different region clients test, and the client of different operators is relatively easy to realize, but there is also testing costs
Excessively high problem.
Therefore, how to reduce the testing cost of subdispatch strategy is the technology that those skilled in the art need to solve at present
Problem.
Summary of the invention
The purpose of the application is to provide the test method, system, terminal device, dispatch server of a kind of subdispatch strategy
And computer readable storage medium, for reducing the testing cost of subdispatch strategy.
In order to solve the above technical problems, the application provides a kind of test method of subdispatch strategy, this method comprises:
Test client receives initial request, attribute information and the expectation node of input;Wherein, the attribute information includes
Area attribute information and operator's attribute information;
The initial request and the attribute information are sent to source camouflage equipment by the test client;
Source camouflage equipment is according to the initial request and attribute information construction tested region request, and by institute
It states tested region request and is sent to dispatch server;
The dispatch server executes subdispatch strategy and is requested to generate node allocation result according to the tested region, and
The node allocation result is sent to the test client;
The test client judges whether the node of distribution is the expectation node according to the node allocation result, and
Determine whether the subdispatch strategy passes through test according to obtained judging result.
The application also provides a kind of test method of subdispatch strategy, is applied to test client, which comprises
Receive initial request, attribute information and the expectation node of input;Wherein, the attribute information includes area attribute letter
Breath and operator's attribute information;
The initial request and the attribute information are sent to source camouflage equipment, so that the source pretends equipment root
According to the initial request and attribute information construction tested region request, and tested region request is sent to scheduling clothes
Business device;
Receive the node allocation result that the dispatch server is sent;Wherein, the node allocation result is the scheduling
Server executes what subdispatch strategy was generated according to tested region request;
Whether the node that distribution is judged according to the node allocation result is the expectation node, and according to obtained judgement
As a result determine whether the subdispatch strategy passes through test.
Optionally, the initial request for receiving input, attribute information and expectation node, comprising:
Receive parameter information, the attribute information and the expectation node of input;Wherein, the parameter information includes association
Discuss head, demand file path, client release parameter, source IP;
The data message of http agreement is constructed according to the parameter information, and is initially asked using the data message as described
It asks.
The application also provides a kind of test method of subdispatch strategy, is applied to dispatch server, which comprises
Receipt source pretends the tested region request that equipment is sent;
It executes subdispatch strategy to be requested to generate node allocation result according to the tested region, and the node is distributed
As a result it is sent to test client, so that whether the test client judges the node distributed according to the node allocation result
For the expectation node, and determine whether the subdispatch strategy passes through test according to obtained judging result.
Optionally, before the tested region request that receipt source camouflage equipment is sent, the method also includes:
Receive the hardware device basic information and attribute information of input;Wherein, the attribute information includes area attribute letter
Breath and operator's attribute information;
According to the hardware device basic information and the attribute information structure node data, and according to the node data
Construct simulated environment on line.
Optionally, the execution subdispatch strategy requests to generate node allocation result according to the tested region, comprising:
The subdispatch strategy is executed in simulated environment on the line according to tested region request generation
Node allocation result.
The application also provides a kind of test macro of subdispatch strategy, and the system comprises be stored with test client journey
The terminal device of sequence, source pretend equipment, dispatch server, in which:
The terminal device, initial request, attribute information and expectation node for receiving input;Wherein, the attribute
Information includes area attribute information and operator's attribute information;The initial request and the attribute information are sent to source puppet
It installs standby;Whether the node that distribution is judged according to the node allocation result that the dispatch server is sent is the expectation node,
And determine whether the subdispatch strategy passes through test according to obtained judging result;
The source pretends equipment, for being requested according to the initial request and attribute information construction tested region,
And tested region request is sent to dispatch server;
The dispatch server requests to generate node distribution knot according to the tested region for executing subdispatch strategy
Fruit, and the node allocation result is sent to the test client.
The application also provides a kind of terminal device, which includes:
Memory, for storing client-side program;
Processor is realized as described in any of the above-described when for executing the client-side program applied to test client
The step of test method of subdispatch strategy.
The application also provides a kind of dispatch server, which includes:
Memory, for storing computer program;
Processor is realized as described in any of the above-described when for executing the computer program applied to dispatch server
The step of test method of subdispatch strategy.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
Machine program, the computer program can be executed by one or more processor, be applied to as described in any of the above-described with realizing
The step of test method of the subdispatch strategy of dispatch server.
The test method of subdispatch strategy provided herein, comprising: the initial request of test client reception input,
Attribute information and expectation node;Wherein, attribute information includes area attribute information and operator's attribute information;Test client will
Initial request and attribute information are sent to source camouflage equipment;Source pretends equipment and constructs quilt according to initial request and attribute information
Region request is surveyed, and tested region request is sent to dispatch server;Dispatch server executes subdispatch strategy according to quilt
It surveys region request and generates node allocation result, and node allocation result is sent to test client;Test client is according to section
Point allocation result judges whether the node of distribution is expectation node, and determines that subdispatch strategy is according to obtained judging result
It is no to pass through test.
Technical solution provided herein pretends the initial request that equipment is received according to test client by source
And attribute information construction tested region request, and tested region request is sent to dispatch server, so that dispatch server is held
Row subdispatch strategy requests to generate node allocation result according to tested region, and node allocation result is sent to test client
End;Test client judges whether the node of distribution is expectation node according to node allocation result, and according to obtained judgement knot
Fruit determines whether subdispatch strategy passes through test, without using the client in true each region in entire test process, passes through
Test client and source camouflage equipment can be realized, and greatly reduce the testing cost of subdispatch strategy.The application is same
When additionally provide test macro, equipment and the computer readable storage medium of a kind of subdispatch strategy, have it is above-mentioned beneficial to effect
Fruit, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the test method of subdispatch strategy provided by the embodiment of the present application;
Fig. 2 is the flow chart of the test method of another kind subdispatch strategy provided by the embodiment of the present application;
Fig. 3 is a kind of structure chart of terminal device provided by the embodiment of the present application;
Fig. 4 is the flow chart of the test method of another subdispatch strategy provided by the embodiment of the present application;
Fig. 5 is a kind of structure chart of dispatch server provided by the embodiment of the present application;
Fig. 6 is a kind of structure chart of the test macro of subdispatch strategy provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide the test method, system, terminal device, dispatch server of a kind of subdispatch strategy
And computer readable storage medium, for reducing the testing cost of subdispatch strategy.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of process of the test method of subdispatch strategy provided by the embodiment of the present application
Figure.
It specifically comprises the following steps:
S101: test client receives initial request, attribute information and the expectation node of input;
CDN is that the content distributing network constructed on network by the Edge Server for being deployed in various regions passes through center
The functional modules such as load balancing, content distribution, the scheduling of platform, its object is to be obtained nearby by subdispatch strategy use family
Required content is taken, network congestion is reduced, improves user's access response speed and hit rate;
Initial request mentioned herein is specially the scheduling request of user's input sent for simulant-client, can
To use python language, the data message of http agreement, including protocol header, demand file path, client release ginseng are constructed
Number, the parts such as source ip;
Attribute information mentioned herein includes area attribute information and operator's attribute information, and area attribute is client
The attribute of name server in place local area network or ISP network, operator's attribute are operator used in client, such as
Movement, connection, telecommunications, Tie Tong etc.;
Expectation node mentioned herein, source are specifically as follows user's input or system introducing, it can be understood as can
The node allocation result returned by the subdispatch strategy of test for being compared with node allocation result, and then determines
Whether subdispatch strategy passes through test.
S102: initial request and attribute information are sent to source camouflage equipment by test client;
S103: source pretends equipment according to initial request and attribute information construction tested region request, and by tested region
Request is sent to dispatch server;
Source camouflage equipment be used for by the initial request that test client is sent disguise oneself as normal client transmission be tested
Region request, as initial request increase area attribute and operator's attribute, so that intelligent dispatching system is that the tested region is asked
Distribution node is sought, does not need to greatly reduce the testing cost of subdispatch strategy using the client in true each region.
S104: dispatch server executes subdispatch strategy and is requested to generate node allocation result according to tested region, and will
Node allocation result is sent to test client;
Dispatch server mentioned herein executes subdispatch strategy and is requested to generate node allocation result according to tested region,
It, which is specifically as follows dispatch server and executes subdispatch strategy in environment on line, requests to generate node point according to tested region
With result;
Preferably, also not necessarily complete based on the distribution of environment interior joint on line and uneven, to prevent environment pair on line
Test result impacts, and dispatch server can also receive the hardware device basic information and attribute information of input in advance, and
According to hardware device basic information and attribute information structure node data, and according to simulated environment on node data construction line;Into
One step, dispatch server mentioned herein executes subdispatch strategy and is requested to generate node allocation result according to tested region,
It specifically may be:
Dispatch server executes subdispatch strategy in simulated environment on line and is requested to generate node point according to tested region
With result;
Based on the embodiment of the present application, user can be preset node simulated domain, and by node simulated domain to hardware
The basic information of equipment is input in dispatch server, allows dispatch server according to hardware device basic information and attribute
Information structuring node data, and simulated environment on line is constructed according to node data, region is executed in simulated environment on final online
Scheduling strategy requests to generate node allocation result according to tested region, increases the accuracy of subdispatch strategy test.
S105: test client judges whether the node of distribution is expectation node according to node allocation result, and according to
To judging result determine whether subdispatch strategy passes through test.
It is mentioned herein, determine whether subdispatch strategy passes through test according to obtained judging result, it specifically can be with
Are as follows:
If the node of distribution is desired node, it is determined that subdispatch strategy passes through test;
If the node of distribution is not expectation node, it is determined that subdispatch strategy does not pass through test.
Based on the above-mentioned technical proposal, the test method of a kind of subdispatch strategy provided herein passes through source puppet
The standby initial request received according to test client of installing and attribute information construction tested region request, and tested region is asked
It asks and is sent to dispatch server, so that dispatch server executes subdispatch strategy and requested to generate node distribution according to tested region
As a result, and node allocation result is sent to test client;The section that test client is distributed according to the judgement of node allocation result
Whether point is expectation node, and determines that whether subdispatch strategy passes through test, entirely tested according to obtained judging result
Without using the client in true each region in journey, pretending equipment by test client and source be can be realized, and greatly be dropped
The low testing cost of subdispatch strategy.
Present invention also provides the test methods of another subdispatch strategy, are applied to test client, please refer to figure
2, Fig. 2 be the flow chart of the test method of another kind subdispatch strategy provided by the embodiment of the present application.
It specifically comprises the following steps:
S201: initial request, attribute information and the expectation node of input are received;
Wherein, attribute information includes area attribute information and operator's attribute information;
Optionally, mentioned herein, initial request, attribute information and the expectation node of input are received, is specifically as follows:
Receive the parameter information, attribute information and expectation node of input;Wherein, parameter information includes protocol header, request text
Part path, client release parameter, source IP;
The data message of http agreement is constructed according to parameter information, and using data message as initial request.
The embodiment of the present application can voluntarily construct the data message of http agreement according to the parameter information of input, and by the number
According to message as initial request.
S202: initial request and attribute information are sent to source camouflage equipment, so that source pretends equipment according to initial
Request and attribute information construction tested region request, and tested region request is sent to dispatch server;
S203: the node allocation result that dispatch server is sent is received;
Wherein, node allocation result is that dispatch server executes subdispatch strategy according to tested region request generation;
S204: whether the node that distribution is judged according to node allocation result is expectation node, and according to obtained judgement knot
Fruit determines whether subdispatch strategy passes through test.
Referring to FIG. 3, Fig. 3 is a kind of structure chart of terminal device provided by the embodiment of the present application.
As shown in figure 3, the terminal device 300 may include: processor 301, memory 302.The terminal device 300 may be used also
To include multimedia component 303, one or more of input/output (I/O) interface 304 and communication component 305.
Wherein, processor 301 is used to control the integrated operation of the terminal device 300, above-mentioned applied to test visitor to complete
All or part of the steps in the test method of the subdispatch strategy at family end.Memory 302 is for storing various types of numbers
The operation in the terminal device 300 is supported accordingly, these data for example may include for operating on the terminal device 300
The instruction of any application or method and the relevant data of application program, such as contact data, the message of transmitting-receiving, figure
Piece, audio, video etc..The memory 302 can by any kind of volatibility or non-volatile memory device or they
Combination realize that such as static random access memory (Static Random Access Memory, abbreviation SRAM), electricity can
Erasable programmable read-only memory (EPROM) (Electrically Erasable Programmable Read-Only Memory, referred to as
EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, abbreviation
EPROM), programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), read-only memory
(Read-Only Memory, abbreviation ROM), magnetic memory, flash memory, disk or CD.Multimedia component 303 can wrap
Include screen and audio component.Wherein screen for example can be touch screen, and audio component is used for output and/or input audio signal.
For example, audio component may include a microphone, microphone is for receiving external audio signal.The received audio signal can
To be further stored in memory 302 or be sent by communication component 305.Audio component further includes at least one loudspeaker,
For output audio signal.I/O interface 304 provides interface, other above-mentioned interfaces between processor 301 and other interface modules
Module can be keyboard, mouse, button etc..These buttons can be virtual push button or entity button.Communication component 305 is used for
Wired or wireless communication is carried out between the terminal device 300 and other equipment.Wireless communication, such as Wi-Fi, bluetooth, near field are logical
Believe (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, because
This corresponding communication component 305 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, terminal device 300 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing the test method of the above-mentioned subdispatch strategy applied to test client.
Present invention also provides the test methods of another subdispatch strategy, are applied to dispatch server, please refer to figure
4, Fig. 4 be the flow chart of the test method of another subdispatch strategy provided by the embodiment of the present application.
It specifically comprises the following steps:
S401: receipt source pretends the tested region request that equipment is sent;
S402: it executes subdispatch strategy and is requested to generate node allocation result according to tested region, and node is distributed and is tied
Fruit is sent to test client, so that test client judges whether the node of distribution is expectation section according to node allocation result
Point, and determine whether subdispatch strategy passes through test according to obtained judging result.
Preferably, before the tested region request that receipt source camouflage equipment is sent, can also include the following steps:
Receive the hardware device basic information and attribute information of input;Wherein, attribute information include area attribute information and
Operator's attribute information;
According to hardware device basic information and attribute information structure node data, and constructs according to node data and simulated on line
Environment.
Further, mentioned herein, it executes subdispatch strategy and is requested to generate node allocation result according to tested region,
It is specifically as follows:
Subdispatch strategy is executed in simulated environment on line to be requested to generate node allocation result according to tested region.
Based on the above embodiment, node simulated domain can be preset in user, and will set in node simulated domain to hardware
Standby basic information is input in dispatch server, and dispatch server is believed according to hardware device basic information and attribute
Structure node data are ceased, and construct simulated environment on line according to node data, execute region tune on final online in simulated environment
Degree strategy requests to generate node allocation result according to tested region, increases the accuracy of subdispatch strategy test.
Referring to FIG. 5, Fig. 5 is a kind of structure chart of dispatch server provided by the embodiment of the present application.
The dispatch server 500 can generate bigger difference because configuration or performance are different, may include one or one
It a above processor (central processing units, CPU) 522 (for example, one or more processors) and deposits
Reservoir 532, one or more storage application programs 542 or data 544 storage medium 530 (such as one or one with
Upper mass memory unit).Wherein, memory 532 and storage medium 530 can be of short duration storage or persistent storage.It is stored in
The program of storage media 530 may include one or more modules (diagram does not mark), and each module may include to device
In series of instructions operation.Further, processor 522 can be set to communicate with storage medium 530, in dispatch service
The series of instructions operation in storage medium 530 is executed on device 500.
Dispatch server 500 can also include one or more power supplys 525, one or more are wired or wireless
Network interface 550, one or more input/output interfaces 558, and/or, one or more operating systems 541, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the test method of subdispatch strategy described in above-mentioned Fig. 4 is based on the Fig. 5 by hard disk identification equipment
Shown in structure realize.
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 device, device and method, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
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.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application
Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
Referring to FIG. 6, Fig. 6 is a kind of structure of the test macro of subdispatch strategy provided by the embodiment of the present application
Figure.
The system may include the terminal device 100 for being stored with test client program, source camouflage equipment 200, scheduling
Server 300, in which:
Terminal device 100, initial request, attribute information and expectation node for receiving input;Wherein, attribute information packet
Include area attribute information and operator's attribute information;Initial request and attribute information are sent to source camouflage equipment 200;According to
The node allocation result that dispatch server 300 is sent judges whether the node of distribution is expectation node, and according to obtained judgement
As a result determine whether subdispatch strategy passes through test;
Source pretends equipment 200, for according to initial request and attribute information construction tested region request, and by tested area
Domain request is sent to dispatch server 300;
Dispatch server 300 requests to generate node allocation result according to tested region for executing subdispatch strategy, and
Node allocation result is sent to terminal device 100.
Preferably, the terminal device 100 can be also used for receiving the parameter information of input, attribute information and expectation node;
Wherein, parameter information includes protocol header, demand file path, client release parameter, source IP;It is constructed according to parameter information
The data message of http agreement, and using data message as initial request;
Preferably, the dispatch server 300 can be also used for the hardware device basic information for receiving input and attribute letter
Breath;Wherein, attribute information includes area attribute information and operator's attribute information;Believed according to hardware device basic information and attribute
Structure node data are ceased, and according to simulated environment on node data construction line.
Since the embodiment of components of system as directed is corresponded to each other with the embodiment of method part, the embodiment of components of system as directed is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
A kind of test method of subdispatch strategy provided herein, system, terminal device and scheduling are taken above
Business device is described in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, with
The explanation of upper embodiment is merely used to help understand the present processes and its core concept.It should be pointed out that being led for this technology
For the those of ordinary skill in domain, under the premise of not departing from the application principle, can also to the application carry out it is several improvement and
Modification, these improvement and modification are also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or equipment for including element.
Claims (10)
1. a kind of test method of subdispatch strategy, which is characterized in that the described method includes:
Test client receives initial request, attribute information and the expectation node of input;Wherein, the attribute information includes region
Attribute information and operator's attribute information;
The initial request and the attribute information are sent to source camouflage equipment by the test client;
Source camouflage equipment is according to the initial request and attribute information construction tested region request, and by the quilt
It surveys region request and is sent to dispatch server;
The dispatch server, which executes subdispatch strategy, requests to generate node allocation result according to the tested region, and by institute
It states node allocation result and is sent to the test client;
The test client judges whether the node of distribution is the expectation node according to the node allocation result, and according to
Obtained judging result determines whether the subdispatch strategy passes through test.
2. a kind of test method of subdispatch strategy, which is characterized in that be applied to test client, which comprises
Receive initial request, attribute information and the expectation node of input;Wherein, the attribute information include area attribute information and
Operator's attribute information;
The initial request and the attribute information are sent to source camouflage equipment, so that the source pretends equipment according to institute
Initial request and attribute information construction tested region request are stated, and tested region request is sent to dispatch service
Device;
Receive the node allocation result that the dispatch server is sent;Wherein, the node allocation result is the dispatch service
Device executes what subdispatch strategy was generated according to tested region request;
Whether the node that distribution is judged according to the node allocation result is the expectation node, and according to obtained judging result
Determine whether the subdispatch strategy passes through test.
3. test method according to claim 2, which is characterized in that the initial request for receiving input, attribute information
And expectation node, comprising:
Receive parameter information, the attribute information and the expectation node of input;Wherein, the parameter information includes agreement
Head, demand file path, client release parameter, source IP;
The data message of http agreement is constructed according to the parameter information, and using the data message as the initial request.
4. a kind of test method of subdispatch strategy, which is characterized in that be applied to dispatch server, which comprises
Receipt source pretends the tested region request that equipment is sent;
It executes subdispatch strategy to be requested to generate node allocation result according to the tested region, and by the node allocation result
It is sent to test client, so that the test client judges whether the node of distribution is institute according to the node allocation result
Desired node is stated, and determines whether the subdispatch strategy passes through test according to obtained judging result.
5. test method according to claim 4, which is characterized in that sent in receipt source camouflage equipment tested
Before region request, the method also includes:
Receive the hardware device basic information and attribute information of input;Wherein, the attribute information include area attribute information and
Operator's attribute information;
It is constructed according to the hardware device basic information and the attribute information structure node data, and according to the node data
Simulated environment on line.
6. test method according to claim 5, which is characterized in that the execution subdispatch strategy is according to described tested
Region request generates node allocation result, comprising:
The subdispatch strategy is executed in simulated environment on the line, the node is generated according to tested region request
Allocation result.
7. a kind of test macro of subdispatch strategy, which is characterized in that the system comprises be stored with test client program
Terminal device, source pretend equipment, dispatch server, in which:
The terminal device, initial request, attribute information and expectation node for receiving input;Wherein, the attribute information
Including area attribute information and operator's attribute information;The initial request and the attribute information are sent to the installing of source puppet
It is standby;Judge whether the node distributed is the expectation node according to the node allocation result that the dispatch server is sent, and root
Determine whether the subdispatch strategy passes through test according to obtained judging result;
The source pretends equipment, for being requested according to the initial request and attribute information construction tested region, and will
The tested region request is sent to dispatch server;
The dispatch server requests to generate node allocation result according to the tested region for executing subdispatch strategy,
And the node allocation result is sent to the test client.
8. a kind of terminal device, which is characterized in that the terminal device includes:
Memory, for storing test client program;
Processor realizes the survey of the subdispatch strategy as described in Claims 2 or 3 when for executing the test client program
The step of method for testing.
9. a kind of dispatch server characterized by comprising
Memory, for storing computer program;
Processor, realizing the subdispatch strategy as described in claim any one of 4-6 when for executing the computer program
The step of test method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program, the computer program can be executed by one or more processor, to realize the subdispatch as described in claim 4-6
The step of test method of strategy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016637.2A CN109639533B (en) | 2019-01-08 | 2019-01-08 | Method and system for testing regional scheduling strategy and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016637.2A CN109639533B (en) | 2019-01-08 | 2019-01-08 | Method and system for testing regional scheduling strategy and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109639533A true CN109639533A (en) | 2019-04-16 |
CN109639533B CN109639533B (en) | 2022-06-10 |
Family
ID=66060277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910016637.2A Active CN109639533B (en) | 2019-01-08 | 2019-01-08 | Method and system for testing regional scheduling strategy and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639533B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515819A (en) * | 2019-08-27 | 2019-11-29 | 深圳市网心科技有限公司 | Performance test methods, electronic equipment, scheduling system and medium |
CN116489709A (en) * | 2023-06-20 | 2023-07-25 | 中电科新型智慧城市研究院有限公司 | Node scheduling policy determination method, terminal equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100313230A1 (en) * | 2009-06-08 | 2010-12-09 | Comcast Cable Communications, Llc | Testing a Content-Delivery System |
CN102347864A (en) * | 2011-11-02 | 2012-02-08 | 网宿科技股份有限公司 | System and method for monitoring service quality of content distribution networks |
CN103491112A (en) * | 2012-06-08 | 2014-01-01 | 北京百度网讯科技有限公司 | Large-scale cluster task scheduling method, large-scale cluster task scheduling system and CDN node |
CN104363313A (en) * | 2014-12-02 | 2015-02-18 | 网宿科技股份有限公司 | Method and system for guaranteeing resource utilization rate of website using content distribution network |
US20160150464A1 (en) * | 2013-06-13 | 2016-05-26 | Telefonaktiebolaget L M Ericsson (Publ) | Methods, Apparatus, Network Node, and Computer Program Product for Dynamically Providing CDN Service Through Mobile Network |
CN106130816A (en) * | 2016-06-24 | 2016-11-16 | 腾讯科技(深圳)有限公司 | A kind of content distributing network monitoring method, monitoring server and system |
CN109067670A (en) * | 2018-09-28 | 2018-12-21 | 杭州领智云画科技有限公司 | A kind of CDN dispatching method and CDN controlling equipment |
-
2019
- 2019-01-08 CN CN201910016637.2A patent/CN109639533B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100313230A1 (en) * | 2009-06-08 | 2010-12-09 | Comcast Cable Communications, Llc | Testing a Content-Delivery System |
CN102347864A (en) * | 2011-11-02 | 2012-02-08 | 网宿科技股份有限公司 | System and method for monitoring service quality of content distribution networks |
CN103491112A (en) * | 2012-06-08 | 2014-01-01 | 北京百度网讯科技有限公司 | Large-scale cluster task scheduling method, large-scale cluster task scheduling system and CDN node |
US20160150464A1 (en) * | 2013-06-13 | 2016-05-26 | Telefonaktiebolaget L M Ericsson (Publ) | Methods, Apparatus, Network Node, and Computer Program Product for Dynamically Providing CDN Service Through Mobile Network |
CN104363313A (en) * | 2014-12-02 | 2015-02-18 | 网宿科技股份有限公司 | Method and system for guaranteeing resource utilization rate of website using content distribution network |
CN106130816A (en) * | 2016-06-24 | 2016-11-16 | 腾讯科技(深圳)有限公司 | A kind of content distributing network monitoring method, monitoring server and system |
CN109067670A (en) * | 2018-09-28 | 2018-12-21 | 杭州领智云画科技有限公司 | A kind of CDN dispatching method and CDN controlling equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515819A (en) * | 2019-08-27 | 2019-11-29 | 深圳市网心科技有限公司 | Performance test methods, electronic equipment, scheduling system and medium |
CN116489709A (en) * | 2023-06-20 | 2023-07-25 | 中电科新型智慧城市研究院有限公司 | Node scheduling policy determination method, terminal equipment and storage medium |
CN116489709B (en) * | 2023-06-20 | 2023-11-17 | 中电科新型智慧城市研究院有限公司 | Node scheduling policy determination method, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109639533B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103685583B (en) | A kind of method and system of domain name mapping | |
CN110365752A (en) | Processing method, device, electronic equipment and the storage medium of business datum | |
CN105721318B (en) | The method and apparatus of network topology are found in a kind of software defined network SDN | |
CN108173938A (en) | Server load shunt method and device | |
CN104852934A (en) | Method for realizing flow distribution based on front-end scheduling, device and system thereof | |
CN107113520A (en) | The system and method for the media device used in media environment for test and certification connection | |
CN109379247A (en) | The method and device that the network delay of a kind of pair of application program is detected | |
CN105553993B (en) | A kind of remote service calling method, device and server | |
CN109408132A (en) | A kind of configuration file processing method and server, user terminal, storage medium | |
US20230283526A1 (en) | Method for gathering traffic analytics data about a communication network | |
CN103002069A (en) | Domain name resolution method, device and system | |
CN109710270A (en) | A kind of security application delivery method, device and storage medium | |
US9559915B2 (en) | System and method for dynamically testing networked target systems | |
CN107086984A (en) | A kind of method, terminal and server for obtaining and generating identifying code | |
CN104301444B (en) | Network IP acquisition methods, device, application platform, client and system | |
US9173050B2 (en) | Application store system and development method using the application store system | |
CN109639782A (en) | Message sends platform, method | |
CN109358880A (en) | A kind of universal gateway configuration method and device | |
CN108415710A (en) | The method and system of API is issued, called in Intelligent dialogue development platform | |
CN110557290A (en) | Processing method and device for network acceleration service | |
CN109451042A (en) | For matching network method without screen smart machine | |
CN105741093A (en) | Payment method, device and system of mobile application | |
CN109510878A (en) | A kind of long connection session keeping method and device | |
CN109639533A (en) | A kind of test method, system and the terminal device of subdispatch strategy | |
CN109889468A (en) | Transmission method, system, device, equipment and the storage medium of network data |
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 |