CN102938716B - Content distribution network acceleration test method and device - Google Patents

Content distribution network acceleration test method and device Download PDF

Info

Publication number
CN102938716B
CN102938716B CN201210518120.1A CN201210518120A CN102938716B CN 102938716 B CN102938716 B CN 102938716B CN 201210518120 A CN201210518120 A CN 201210518120A CN 102938716 B CN102938716 B CN 102938716B
Authority
CN
China
Prior art keywords
test
edge node
access
content
target url
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.)
Expired - Fee Related
Application number
CN201210518120.1A
Other languages
Chinese (zh)
Other versions
CN102938716A (en
Inventor
洪珂
孙达康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mesh Technology Co ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201210518120.1A priority Critical patent/CN102938716B/en
Publication of CN102938716A publication Critical patent/CN102938716A/en
Application granted granted Critical
Publication of CN102938716B publication Critical patent/CN102938716B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses content distribution network acceleration test method and device, solves before website formally carries out CDN acceleration, cannot know the problem of acceleration effect. Its technical scheme is: method comprises: obtain the target URL address for testing; Target URL is pulled the test of file, judges that whether the access to this target URL is normal; To the target URL of normal access, each edge node of content of announcement distributing network performs pre-deployment, is performing the content of buffer memory target URL on the pre-edge node disposed; By to the contrast test of source station and edge node, record access time, and the test report according to the Test data generation network acceleration effect returned.

Description

Content distribution network acceleration test method and device
Technical field
The present invention relates to the analysis technology that the service quality of content distributing network is relevant, particularly relate to the accelerated test method on content distributing network and device.
Background technology
The full name of CDN is ContentDeliveryNetwork, i.e. content distributing network, and its basic ideas avoid the bottleneck and the link that likely affect data rate and stability on internet as far as possible, make content delivery sooner, more stable. By placing, at network, one layer of intelligent virtual network on basis, existing internet that node server forms everywhere, CDN system can in real time according to the connection of network flow and each node, load state and the request of user again led from the nearest service node of user to the integrated information such as Distance geometry time of response of user. Its objective is to make user can obtain required content nearby, solve the situation that Internet network is crowded, it is to increase the response speed of user's access websites.
As CDN user, when buying CDN service, often need to understand the acceleration effect of CDN service provider. The how acceleration effect of quantum evaluation distributing network, step conventional at present is:
(1) CDN service provider carries out website and accelerates to configure and dispose;
(2) website domain name is pointed to CDN service provider provide acceleration domain name try out;
(3) by third party's service quality prospecting tools, the terminal user installing client terminal is utilized to initiate request, the time of record access source station and the acceleration single page elements of node or full page;
(4) monitor data that use is collected is as the judging criterion of acceleration effect.
But the method configuration is loaded down with trivial details, it is necessary to CDN user does domain name adjustment, and test period is long, there are some problems in actual use:
(1) acceleration effect of CDN service intuitively cannot be provided at sales section;
(2) extend purpose client commercial affairs and reach the required time;
(3) considerably increase non-targeted client the resource of CDN service provider to be used.
Summary of the invention
It is an object of the invention to solve the problem, it provides a kind of content distribution network acceleration test method and device, solve before website formally carries out CDN acceleration, the problem of acceleration effect cannot be known.
The technical scheme of the present invention is: present invention is disclosed a kind of content distribution network acceleration test method, comprising:
Obtain the target URL address for testing;
Target URL is pulled the test of file, judges that whether the access to this target URL is normal;
To the target URL of normal access, each edge node of content of announcement distributing network performs pre-deployment, is performing the content of buffer memory target URL on the pre-edge node disposed;
By to the contrast test of source station and edge node, record access time, and the test report according to the Test data generation network acceleration effect returned.
One embodiment of the content distribution network acceleration test method according to the present invention, in the pre-process disposed, pulls all elements on target URL file or the page to source station, the content of target URL is buffered in and performs on the pre-edge node disposed.
One embodiment of the content distribution network acceleration test method according to the present invention, in the process that source station and edge node carry out contrast test, comprising:
One browser page is provided;
Being accessed the URL content on source station and edge node by this locality, it may also be useful to the time of URL content on script record access source station and edge node, the test report wherein generated comprises the contrast of local test time simultaneously.
One embodiment of the content distribution network acceleration test method according to the present invention, in the process that source station and edge node carry out contrast test, comprising:
Access source station and edge node respectively by single test monitoring point, record the access time of each control point page elements;
The access time according to each control point page elements obtains the reduced time that in the page, each element is downloaded, and the test report wherein generated comprises single control point page elements time contrast.
One embodiment of the content distribution network acceleration test method according to the present invention, in the process that source station and edge node carry out contrast test, comprising:
Access source station and edge node respectively by multiple test monitoring point, record the loading deadline of the whole page;
The loading deadline according to the whole page obtains the access time correlation curve in each region, and the test report wherein generated comprises the contrast of many control points full page time.
Present invention further teaches a kind of content distributing network accelerated test device, comprising:
Target URL acquisition module, obtains the target URL address for testing;
Access condition detection module, pulls the test of file, judges that whether the access to this target URL is normal target URL;
Pre-deployment module, to the target URL of normal access, each edge node of content of announcement distributing network performs pre-deployment, is performing the content of buffer memory target URL on the pre-edge node disposed;
Contrast test module, by the contrast test of source station and edge node, record access time, and the test report according to the Test data generation network acceleration effect returned.
One embodiment of the content distributing network accelerated test device according to the present invention, in pre-deployment module, pulls all elements on target URL file or the page to source station, the content of target URL is buffered in and performs on the pre-edge node disposed.
One embodiment of the content distributing network accelerated test device according to the present invention, contrast test module comprises local test submodule block, and local test submodule block comprises further:
Browser page unit a, it is provided that browser page;
Script access unit, accesses the URL content on source station and edge node by this locality simultaneously, it may also be useful to the time of URL content on script record access source station and edge node;
Local test report generation unit, the result accessing unit according to script generates test report, contrasts comprising the local test time.
One embodiment of the content distributing network accelerated test device according to the present invention, contrast test module comprises single control point test submodule block, and single control point test submodule block comprises further:
Single control point access unit, accesses source station and edge node respectively by single test monitoring point, records the access time of each control point page elements;
Single control point report generation unit, obtains, according to the access time of each control point page elements, the reduced time that in the page, each element is downloaded, the test report of generation, and report comprises single control point page elements time contrast.
One embodiment of the content distributing network accelerated test device according to the present invention, contrast test module comprises many control points test submodule block, and many control points test submodule block comprises:
Many control points access unit, accesses source station and edge node respectively by multiple test monitoring point, records the loading deadline of the whole page;
Many control points report generation unit, obtains the access time correlation curve in each region according to the loading deadline of the whole page, generates test report, and report comprises the contrast of many control points full page time.
The present invention contrasts prior art following useful effect: the solution of the present invention is pre-deployment services and replaces contrast test. Pre-deployment services refers to that edge node provides the buffer memory to the target URL page and service. By being disposed in advance by the website URL of input, buffer memory corresponding contents also provides interim WEB service, simulates the scene of true acceleration, thus solves the problem that cannot intuitively provide CDN service acceleration effect at sales section. Alternately contrast test specifies the measure of merit that conducted interviews in source station and pre-deployment edge node. Adopt source station and the pre-alternately testing disposing edge node, the record access time contrasts respectively, shown the acceleration effect of prediction to client by comparison report intuitively, thus shorten purpose client commercial affairs and reach the required time, reduce non-targeted client to the resource consumption of CDN service provider. Compared to conventional art, by carrying out pre-deployment and the acceleration effect test of URL on CDN, the actual effect accelerated of prediction before carrying out formal acceleration, avoid loaded down with trivial details configuration and website adjustment on the one hand, shorten the cycle of test on the other hand, effectively save the time of concluding parties.
Accompanying drawing explanation
Fig. 1 shows the schema of the better embodiment of the content distribution network acceleration test method of the present invention.
Fig. 2 shows the sub-schema of the acceleration effect test of the present invention.
Fig. 3 shows the schematic diagram of the better embodiment of the content distributing network accelerated test device of the present invention.
Fig. 4 A-4C respectively illustrates the local test submodule block of the present invention, submodule block is tested in single control point and the schematic diagram of many control points test submodule block.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
Fig. 1 shows the flow process of the better embodiment of the content distribution network acceleration test method of the present invention. Referring to Fig. 1, here is the detailed description of the implementation step of the embodiment of the accelerated test method to the present embodiment.
Step S10: obtain test URL.
There is provided the target URL address of test by test user, the content of this URL is using the object as buffer memory.
Step S11:URL return code is verified.
The URL of user's input is pulled file test, and verifies the HTTP status code returned.
Step S12:HTTP status code returns 200 for normal access, enters step S13, and all the other situations are considered as access exception, enter step S16.
By this verification step, avoid that invalid URL is carried out pre-deployment and accelerate and test, reduce the wasting of resources.
Step S13: notice edge node, buffer memory URL content.
Notify that each edge node performs pre-deployment, pull all elements on target URL file or the page to source station, target data are carried out buffer memory according to the rule of working lipe (such as 3 days), node exists during ensureing this corresponding contents. Specific access source is provided WEB service by each edge node, makes outside HTTP access can obtain target URL content. By this pre-deploying step, solve the problem that CDN service acceleration effect intuitively cannot be provided at sales section.
Step S14: acceleration effect is tested, by source station and edge node being carried out contrast test, the record access time.
This step can comprise 3 kinds of implementations: local browser testing, control point page elements compares and the control point full page time compares.
Local browser testing mode is to provide a browser page, accesses the URL content on source station and edge node by user is local simultaneously, by the time on JS script record both sides, thus carry out accelerating the comparison of front and back page open time after opening.
It is notify single test monitoring point that control point page elements compares, and accesses source station and edge node respectively, records the time of return of each element, result is returned to system, thus obtains the reduced time that in the page, each element is downloaded.
It is notify multiple test monitoring point that the control point full page time compares, and accesses source station and edge node respectively, records the loading deadline of the whole page, result is returned to system, obtain the access time correlation curve in each region. This test can carry out in real time, it is possible to timing performs or performs according to the cycle.
Step S15: generate and experience report, according to the test data that step S14 returns, generates acceleration effect and experiences report.
The experience of acceleration effect is reported and is comprised the contrast of local test time, single control point page elements time contrast and the contrast of many control points full page time, and this report can be used as the effect prediction before formally using service. By on-the-spot demonstration and acceleration effect is experienced report and is supplied to client, thus shorten purpose client's commercial affairs and reach required time, reduce non-targeted client to the resource consumption of CDN service provider.
Step S16: return failure, flow process terminates.
The subflow journey of the acceleration effect test that Fig. 2 shows also is exactly single testing process of acceleration effect test, and process step describes in detail as follows.
Step S20: open any browser.
Open local browser or call the browser of remote monitoring end.
Step S21: clear empty buffer memory.
Clear empty browser buffer memory, avoids this test to use local cache content.
Step S22: access destination URL.
Call the target URL on browser access source station or edge node.
Step S23: return content measurement.
According to call request, return time or the full page time of each element.
Step S24: close browser.
Close browser, terminate single test.
Fig. 3 shows the principle of the better embodiment of the content distributing network accelerated test device of the present invention. Referring to Fig. 3, the content distributing network accelerated test device of the present embodiment comprises: target URL acquisition module 10, access condition detection module 11, pre-deployment module 12, contrast test module 13.
Target URL acquisition module 10 obtains the target URL address for testing.
Target URL is pulled the test of file by access condition detection module 11, judges that whether the access to this target URL is normal.
The target URL of normal access, each edge node of content of announcement distributing network is performed pre-deployment by pre-deployment module 12, is performing the content of buffer memory target URL on the pre-edge node disposed. In pre-deployment module 12, pull all elements on target URL file or the page to source station, the content of target URL is buffered in and performs on the pre-edge node disposed.
Contrast test module 13 is passed through the contrast test of source station and edge node, record access time, and the test report according to the Test data generation network acceleration effect returned. Contrast test module 13 can comprise the arbitrary combination of following submodule block: local test submodule block 130, single control point test submodule block 132, many control points test submodule block 134.
As shown in Figure 4 A, local test submodule block 130 comprises further: browser page unit 1300, script access unit 1302, local test report generation unit 1304. Browser page unit 1300 provides a browser page. Script access unit 1302 accesses the URL content on source station and edge node by local simultaneously, it may also be useful to the time of URL content on script record access source station and edge node. The result that local test report generation unit 1304 accesses unit according to script generates test report, contrasts comprising the local test time.
As shown in Figure 4 B, single control point test submodule block 132 comprises further: single control point access unit 1320, single control point report generation unit 1322. Single control point access unit 1320 accesses source station and edge node respectively by single test monitoring point, records the access time of each control point page elements. Single control point report generation unit 1322 obtains the reduced time that in the page, each element is downloaded, the test report of generation according to the access time of each control point page elements, and report comprises single control point page elements time contrast.
As shown in Figure 4 C, test submodule block 134 in many control points comprises: the access of many control points unit 1340, many control points report generation unit 1342. Many control points access unit 1340 accesses source station and edge node respectively by multiple test monitoring point, records the loading deadline of the whole page. Many control points report generation unit 1342 obtains the access time correlation curve in each region according to the loading deadline of the whole page, generates test report, and report comprises the contrast of many control points full page time.
Above-described embodiment is available to those of ordinary skill in the art and realizes and use the present invention's; those of ordinary skill in the art can be without departing from the present invention in the case of the inventive idea; above-described embodiment is made various modifications or change; thus protection scope of the present invention is not limit by above-described embodiment, and should be the maximum range meeting the inventive features that claim book is mentioned.

Claims (6)

1. a content distribution network acceleration test method, comprising:
Obtain the target URL address for testing;
Target URL is pulled the test of file, judges that whether the access to this target URL is normal;
To the target URL of normal access, each edge node of content of announcement distributing network performs pre-deployment, is performing the content of buffer memory target URL on the pre-edge node disposed;
By the alternately contrast test to source station and edge node, record access time respectively, and the test report according to the Test data generation network acceleration effect returned;
Wherein comprise further in the process that source station and edge node are carried out alternately contrast test:
Source station and edge node is accessed respectively by single test monitoring point, record the access time of each control point page elements, the access time according to each control point page elements obtains the reduced time that in the page, each element is downloaded, and the test report wherein generated comprises single control point page elements time contrast; Or
Access source station and edge node respectively by multiple test monitoring point, record the loading deadline of the whole page; The loading deadline according to the whole page obtains the access time correlation curve in each region, and the test report wherein generated comprises the contrast of many control points full page time.
2. content distribution network acceleration test method according to claim 1, it is characterised in that, in the pre-process disposed, pull all elements on target URL file or the page to source station, the content of target URL is buffered in and performs on the pre-edge node disposed.
3. content distribution network acceleration test method according to claim 1, it is characterised in that, in the process that source station and edge node are carried out contrast test, comprising:
One browser page is provided;
Being accessed the URL content on source station and edge node by this locality, it may also be useful to the time of URL content on script record access source station and edge node, the test report wherein generated comprises the contrast of local test time simultaneously.
4. a content distributing network accelerated test device, comprising:
Target URL acquisition module, obtains the target URL address for testing;
Access condition detection module, pulls the test of file, judges that whether the access to this target URL is normal target URL;
Pre-deployment module, to the target URL of normal access, each edge node of content of announcement distributing network performs pre-deployment, is performing the content of buffer memory target URL on the pre-edge node disposed;
Contrast test module, by the alternately contrast test to source station and edge node, record access time respectively, and the test report according to the Test data generation network acceleration effect returned, wherein contrast test module comprises single control point test submodule block or many control points test submodule block, wherein:
Single control point test submodule block comprises further:
Single control point access unit, accesses source station and edge node respectively by single test monitoring point, records the access time of each control point page elements;
Single control point report generation unit, obtains, according to the access time of each control point page elements, the reduced time that in the page, each element is downloaded, the test report of generation, and report comprises single control point page elements time contrast;
Many control points test submodule block comprises:
Many control points access unit, accesses source station and edge node respectively by multiple test monitoring point, records the loading deadline of the whole page;
Many control points report generation unit, obtains the access time correlation curve in each region according to the loading deadline of the whole page, generates test report, and report comprises the contrast of many control points full page time.
5. content distributing network accelerated test device according to claim 4, it is characterised in that, in pre-deployment module, pull all elements on target URL file or the page to source station, the content of target URL is buffered in and performs on the pre-edge node disposed.
6. content distributing network accelerated test device according to claim 4, it is characterised in that, contrast test module comprises local test submodule block, and local test submodule block comprises further:
Browser page unit a, it is provided that browser page;
Script access unit, accesses the URL content on source station and edge node by this locality simultaneously, it may also be useful to the time of URL content on script record access source station and edge node;
Local test report generation unit, the result accessing unit according to script generates test report, contrasts comprising the local test time.
CN201210518120.1A 2012-12-06 2012-12-06 Content distribution network acceleration test method and device Expired - Fee Related CN102938716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210518120.1A CN102938716B (en) 2012-12-06 2012-12-06 Content distribution network acceleration test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210518120.1A CN102938716B (en) 2012-12-06 2012-12-06 Content distribution network acceleration test method and device

Publications (2)

Publication Number Publication Date
CN102938716A CN102938716A (en) 2013-02-20
CN102938716B true CN102938716B (en) 2016-06-01

Family

ID=47697588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210518120.1A Expired - Fee Related CN102938716B (en) 2012-12-06 2012-12-06 Content distribution network acceleration test method and device

Country Status (1)

Country Link
CN (1) CN102938716B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717186B (en) * 2013-12-16 2019-06-25 腾讯科技(深圳)有限公司 A kind of method, apparatus and data transmission system for transmitting data in network system
CN103825906B (en) * 2014-03-14 2017-02-15 网宿科技股份有限公司 Enterprise private key self-encryption and self-arrangement method based on content distribution network
CN105471665A (en) * 2014-08-21 2016-04-06 北京奇虎科技有限公司 Website function testing method, website function testing system and website server
CN108933683B (en) * 2017-05-23 2021-09-28 中国电信股份有限公司 Network acceleration sensing method, device and system
CN107786668B (en) * 2017-11-09 2020-06-12 成都知道创宇信息技术有限公司 Weight caching website method based on CDN (content delivery network)
CN110336790B (en) * 2019-05-29 2021-05-25 网宿科技股份有限公司 Website detection method and system
CN113014443B (en) * 2019-12-19 2022-07-05 福建天泉教育科技有限公司 Method and system for testing whether CDN (content delivery network) resources hit cache
CN112202643B (en) * 2020-10-12 2022-03-29 成都知道创宇信息技术有限公司 Network detection method, device, test host and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039329A (en) * 2006-12-28 2007-09-19 中兴通讯股份有限公司 Media delivery system of network TV system based on media delivery
CN102347864A (en) * 2011-11-02 2012-02-08 网宿科技股份有限公司 System and method for monitoring service quality of content distribution networks
CN102647299A (en) * 2012-04-24 2012-08-22 网宿科技股份有限公司 Hierarchical alarm analysis method and hierarchical alarm analysis system based on content delivery network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8320274B2 (en) * 2010-04-21 2012-11-27 Telcordia Technologies, Inc. Distributed method for equitable bandwidth allocation for content distribution in a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039329A (en) * 2006-12-28 2007-09-19 中兴通讯股份有限公司 Media delivery system of network TV system based on media delivery
CN102347864A (en) * 2011-11-02 2012-02-08 网宿科技股份有限公司 System and method for monitoring service quality of content distribution networks
CN102647299A (en) * 2012-04-24 2012-08-22 网宿科技股份有限公司 Hierarchical alarm analysis method and hierarchical alarm analysis system based on content delivery network

Also Published As

Publication number Publication date
CN102938716A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102938716B (en) Content distribution network acceleration test method and device
CN106528432B (en) The construction method and device of test scene data bury a test method
US9736258B2 (en) Assessment of content delivery services using performance measurements from within an end user client application
US10693746B2 (en) Instrumentation and monitoring of service level agreement (SLA) and service policy enforcement
US11005918B2 (en) Network-aware structured content downloads
US9288256B2 (en) URL prefetching
US8452837B2 (en) Data delivery
CN106302445B (en) Method and apparatus for handling request
CN108494860B (en) WEB access system, WEB access method and device for client
CN103685590B (en) Obtain the method and system of IP address
US20110314092A1 (en) Unified collection and distribution of data
US20130036351A1 (en) Apparatus, system, and method for dynamically customizing a web page
KR20120037417A (en) Method and apparatus for modifying internet content through redirection of embedded objects
CN104572099B (en) Lower coupling frame data processing method and system based on component and middleware
CN106657180A (en) Information transmission method and device for cloud services, terminal equipment, and system
CN109819033A (en) A kind of resource file loading method and system
JP2017516202A (en) Promotion status data monitoring method, apparatus, device, and non-executable computer storage medium
US20140047267A1 (en) System, method and computer program product for reconstructing data received by a computer in a manner that is independent of the computer
US10127335B2 (en) System and method of performing analytics with respect to content storing servers caching popular content
CN110798496A (en) CDN scheduling system, method and device
CN107634976B (en) Information pushing method, information obtaining method, advertisement pushing method, advertisement obtaining method and device
CN109302465A (en) The management method and system of multiterminal Service Source
CN104731801A (en) Page adaptation method, platform and system
CN103546525B (en) A kind of buffer scheduling method and apparatus
CN118034651A (en) Information processing method, information processing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201124

Address after: 100083 Beijing Haidian District 39 Xueyuan Road 6 real estate building.

Patentee after: Beijing Mesh Technology Co.,Ltd.

Address before: 200030 Shanghai Xuhui District Xietu Road No. 2669 15 Floor

Patentee before: WANGSU SCIENCE & TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160601

Termination date: 20211206

CF01 Termination of patent right due to non-payment of annual fee