CN101056212A - Method for Web page ADSL test via push technology - Google Patents

Method for Web page ADSL test via push technology Download PDF

Info

Publication number
CN101056212A
CN101056212A CN 200610025549 CN200610025549A CN101056212A CN 101056212 A CN101056212 A CN 101056212A CN 200610025549 CN200610025549 CN 200610025549 CN 200610025549 A CN200610025549 A CN 200610025549A CN 101056212 A CN101056212 A CN 101056212A
Authority
CN
China
Prior art keywords
page
test
client
request
adsl
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
Application number
CN 200610025549
Other languages
Chinese (zh)
Other versions
CN101056212B (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.)
Shanghai Xinguotai Information Communication Co., Ltd.
Original Assignee
XINTAI COMMUNICATION TECHNOLOGY Co Ltd SHANGHAI
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 XINTAI COMMUNICATION TECHNOLOGY Co Ltd SHANGHAI filed Critical XINTAI COMMUNICATION TECHNOLOGY Co Ltd SHANGHAI
Priority to CN2006100255491A priority Critical patent/CN101056212B/en
Publication of CN101056212A publication Critical patent/CN101056212A/en
Application granted granted Critical
Publication of CN101056212B publication Critical patent/CN101056212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method of ADSL test for web page through the push technology, it is characterized in that realizing it on the Web server in software mode, this software is compiled in C# language, and installed in Windows operating system, through combined with the IIS, use the request page blocking method to maintain the network connection channel when there are the client terminal request, during acquire the intermediate results with the push technology, push the JavaScript scenario to the client terminal through the connecting channel to control the client terminal browser to display the page of results, its advantage is that solved the real-time display of results and interaction problems during the long time request processing of client terminal / browser framework, ensure the ADSL test system client terminal software is easy to maintain and arrange, and also save the cost.

Description

Realize that by push technology the Web page carries out the method for ADSL test
Technical field
The present invention relates to a kind of method of carrying out the ADSL test, relate in particular to a kind of testing hardware that cooperates by the method and can use Web browser to carry out the ADSL test, belong to communication technical field by the push technology realization Web page.
Background technology
Along with asymmetric digital subscriber line (ADSL) power system capacity enlarges rapidly, traffic carrying capacity is sharply increased sharply, and in the installation of ADSL new equipment, existing equipment were safeguarded, the line test problem was outstanding day by day.Since nearly 2 years, each test producer has been put into the research and development emphasis on the ADSL testing equipment gradually, various ADSL testing equipments and testing scheme also begin to appear on the telecommunication market, the hardware testing equipment of each producer of lateral comparison, similar on the individual event test function that can provide, may be each has something to recommend him on test performance and precision.Like this, how on the basis of individual event hardware testing, set up complete, abundant, the comprehensive ADSL test of cover analysis expert system and become focus on the recent market.
The framework of the ADSL test macro described in the literary composition as shown in Figure 1, wherein, narrow band switching machine and broadband DSLAM equipment, NM server is all provided by other device fabrication manufacturers, is deployed in scene, telecommunication bureau side.And the ADSL test macro is connected to above-mentioned each server as external equipment, and the test function of responsible wide and narrow strip circuit.
This test macro comprises: 1. testing hardware, link together by test bus and wide and narrow strip switch, and the most basic wide and narrow strip test function is provided; 2.ADSL testing server, as the test analysis server, on accept the test request of client, under connect testing hardware.The ADSL testing server can be initiated different individual event tests to testing hardware according to the different situations of fault, carry out analysis-by-synthesis according to the result of each individual event test and declare barrier, and Comprehensive analysis results returned to client, and in test process, also can send a large amount of individual event test results in real time.3.Web server, the FTP client FTP here relies on " browser/server " framework and develops, the basic thought of its design is to dispose a Web server in the service end position, the all service logics of system all realize at the Web server end, and client only need use common browser (such as IE, Netscape etc.) to get final product.The advantage of doing like this is quite obvious, IE (the Windows system carries) is housed on the client computer or other browsers just can carry out business operation and not need to install any other software as long as be exactly; And later on during system update also as long as the Web server of update service end.This framework is disposed simple, and is easy to maintenance, is particularly suitable for the multi-point and wide-ranging situation of client deployment.Because present stage, the basic maintenance of adsl line of telecommunication bureau side finished by basic unit's line attendant of each end office (EO), so just require us test client to be deployed on the front end processor of each end office (EO), and end office's quantity of a local network is many, as Beijing Netcom, a local network has more than 100 end office (EO), for one also is not very ripe at present, and means of testing also needs testing software further on probation at the scene and that grope, and frequent improvement and renewal are necessary.So the framework of such FTP client FTP is very suitable for the demand and the actual field condition of telecommunications enterprise.4. the foreground browser can be the Web browser of any standard, such as IE and Netscape, just can use ADSL test macro as herein described as long as any operating system has been installed browser.
Client browser uses a kind of interactive mode that is connected of lacking with Web server.Under this mode, the connection that does not keep network between Web browser and the server when request is not handled only just can connect Web server when client is submitted requests for page.And the general handling process that browser is initiated after the request is as follows: client browser carries out the page and submits and promptly initiate request-Web server and obtain the page of submitting, handle client requests-service end and handle request, generate new results page-client browser and obtain results page and refresh the page.That is to say, as adopt common mode to handle, then a client requests can only generate a results page, must could show after request is finished dealing with, and also can't carry out other interactive operations with regard to current request with service end in the request processing procedure.And for our ADSL test, once comprehensive analytical test is owing to can carry out repeatedly different individual event test and analysis result as required, so the longlyest may need three fens halfs just can finish test, in test process, also can obtain the middle test result of a plurality of individual events.Develop the Web client if adopt common mode, client is initiated after the test feedback that clock in a measure be can't see any detecting information, and can't in test, carry out other interactive operations, in the test line engaged line, client needs the real-time informing service end to toll breakdown circuit or abandons test.These defectives become the bottleneck of the ADSL test client of exploitation Web browser mode.Overcome these defectives, we must solve two hang-ups in the design:
1. solve Web server when handling client requests, can release the difficult problem of the intermediate object program of test to client by other channels.
2. solve Web server when handling client requests, can be simultaneously and client current processing procedure is carried out a mutual difficult problem.
Summary of the invention
The purpose of this invention is to provide and a kind ofly realize that by push technology the Web page carries out the method for ADSL test, this method when handling client-requested, can realize and client between interactive operation, and the control client shows various intermediate object programs.
For realizing above purpose, technical scheme of the present invention provides a kind of method of carrying out the ADSL test by the push technology realization Web page, it is characterized in that, on Web server, realize with software mode, software is to write with C# language, be installed on the Windows operating system, by with the cooperation of IIS, network interface channel when the method for using requests for page to block is kept client-requested, use push technology when obtaining intermediate object program, to release the JavaScript script to client, with the control client browser display result page by interface channel. its method is:
(1) at first, in the browser of client, dispose three pages: the test request page, test interaction page and results page, the test request page is responsible for submitting test request, this page is a hidden page, mutual request in the test interaction page transmission test is hidden page, and the test result page is responsible for showing final testing result;
(2) after Web server obtains the requests for page that the client submits, Web server pins requests for page and does not return, initiate test request to the ADSL testing server simultaneously, because the page request of browser is not returned at test period, thus this moment Web server and client browser between the network interface channel will keep always;
(3) then Web server after the ADSL testing server is initiated test command, the ADSL testing server begins to carry out the control of testing process, in test process, the ADSL testing server can send the result and the Comprehensive analysis results of some individual event tests to Web server, after finishing, test can send the EOT sign, Web server finds original maintained network interface channel after receiving these results, send the script script by this passage to client browser and come the display result page, realize the process of push technology with the control client browser;
(4) if need in the test process alternately, then client browser can be initiated request from another interaction page, and Web server can transfer to the ADSL testing server to request after receiving request, the interactive operation between realization and the client;
(5) Web server will return the client requests that is lockable at first simultaneously after receiving the EOT sign that the ADSL testing server sends, and has so just discharged the interface channel of service end and client.
Mode provided by the invention is applicable to the request processing situation of the long-time response of needs under " browser/service end " framework, in this case, the person has a feeling of impatience can to make the interface operation if hang up for a long time request during without any response, and can not see the details that current request is handled in time, nor can in handling, request realize the mutual of any and service end, such as when test proceeds to half, wanting to stop test, if at this moment use mode provided by the invention then can solve above all problems, experience thereby can make the user obtain better interface, also can satisfy the situation that some must use interactive operation.
Advantage of the present invention is that framework is simple and clear, only needs to drop into a spot of technological transformation and just can make the user obtain the experience of better interface, and can better carry out micro-control to testing process in the ADSL test.
Description of drawings
Fig. 1 is an ADSL test macro Organization Chart;
Fig. 2 is ADSL test control interaction figure;
Fig. 3 is the web server software flow chart.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Embodiment
In the request processing procedure, can be associated with following each level and server.
1. client browser: client browser can be any web browser, and such as IE or Netscape, browser is responsible for showing client's operation interface, and this interface is the html page of standard, and the requests for page of client is submitted to Web server;
2.Web server: Web server is to being responsible for accepting the page request of client down, generates the html result page of standard and be sent to client to show for client browser.Web server can be accepted concurrent client-requested, promptly a Web server can be hung a plurality of client browsers down, in this ADSL test macro, can accept a plurality of test request simultaneously, and asking process object to maintain in the storehouse, so that the result is pushed to client.Web server and client browser produce mutual by http protocol.Http protocol full name HTML (Hypertext Markup Language) is a kind of standard agreement, is widely used in the communication between Web server and the Web browser.Web server is to last connection ADSL testing server, the test request of client is transmitted to the ADSL testing server handles, and be responsible for accepting the test result of ADSL testing server loopback, generates results page thus to be pushed to client;
3.ADSL testing server: testing server connects and the control testing hardware, is responsible for the actual testing process control and the analysis of synthesis result, and the ADSL testing server is connected by SOCKET with Web server, and it is mutual that both use internal agreement to produce.
We set forth the related parameter of system:
Can call Page_Load () function when Web server is received test request, in this function request be handled, request was handled and is come to an end when this function withdrawed from, and results page will be responsible for passing to client browser by IIS and show for it.
Can obtain a Page object when Web server is received test request, this object has comprised relevant informations such as network connection and Http processing, is generated automatically by system.This object promptly lost efficacy after Page_Load () function returned.
In order to realize blocking method, generate a system semaphore object signal in Page_Load () porch.
Describe the specific implementation method below in detail:
1. as shown in Figure 2, be ADSL test control interaction figure, at first, in the browser of client, dispose three pages: the test request page, test interaction page and results page, the test request page is responsible for submitting test request, this page can be a hidden page, mutual request in the test interaction page transmission test, it can be hidden page, the test result page is responsible for showing final testing result, with requests for page and results page separately is because Web processing of request mode is once to submit the mode of once returning, can not show the intermediate object program of a plurality of tests in real time in the test request processing procedure if results page is identical with requests for page, this is a committed step that realizes push technology;
2. the return results page immediately when Web server is received test request, and should block this.Block the words that request handles and handle function Page_Load (), promptly in Page_Load () function, tangle thread and do not withdraw from and get final product as long as block request.We can use the semaphore of operating system to realize blocking method, promptly before withdrawing from, calls Page_Load () signal.wait () method, function will block like this, and we will call sinal.notify () method and notify obstruction to finish behind EOT, and function withdraws from;
3. as shown in Figure 3, be the web server software flow chart, because Web server needs the test request of a plurality of client browsers of parallel processing, then Web server must keep two set, if set A _ Pages preserves current all test request page object of handling, set is for the form of Hash table, and major key is the unique index tested number.If set A _ Signals preserves current all semaphore objects of handling, gather form for Hash table, major key is the unique index number of test.The roughly processing procedure of Page_Load () method is as follows: generate test indices number, call number can be a unique progressive whole number of the overall situation; Generate the signal object, page object and signal object are saved in the corresponding set; Send test command to the ADSL testing server, comprise test indices number in the test command; Call signal.wait () method, block current thread;
4. behind the test starting, the ADSL testing server can repeatedly send the test result of individual event and Comprehensive analysis results to Web server.Web server earlier according to the call number query set A_Pages of test, obtains the relevant requests for page object page of this test after receiving every result.Follow analysis result, and the result is pushed to client browser, by the client browser display result by the page object.Because the in store network of page object connects, so the method is feasible.Must be noted that, be pushed to the form that must meet the Http agreement of client, and connect the requests for page that the clients corresponding page is just hidden this moment, to be pushed to the result in the results page and then must use the JavaScript script, utilize the characteristic that browser can executed in real time JavaScript script that script is pushed to client, results page is shown with the control client.In results page, write the JavaScript function showResult () of a display result such as us, suppose not only results page and requests for page but also under same homepage, then we only need to push script<scriptlanguage=" javascript "〉parent.frame[" result "] .showResult (parameter 1, number 2......)</script〉get final product, client browser will be carried out this script, will call the showResult method of results page, then can show different results according to different parameters.So, we have just realized the push technology process;
5. mutual as needing in the test process, then submit request by interaction page.Web server is transmitted to the ADSL testing server obtaining the test indices that directly will import into after the request that interaction page submits number and interactive command, is handled by it;
6.ADSL testing server can send end to Web server when EOT, this moment, Web server will be according to test indices index set A_signals, get access to the relevant signal object of test, and call signal.notify () method, then the entrance function Page_Load () of initial request will withdraw from, and request disposes.Also need remove the object relevant among set A _ signals and the set A _ pages this moment with this test.

Claims (1)

1. realize that by push technology the Web page carries out the method for ADSL test for one kind, it is characterized in that, on Web server, realize with software mode, software is to write with C# language, be installed on the Windows operating system, by with the cooperation of IIS, network interface channel when the method for using requests for page to block is kept client-requested, use push technology when obtaining intermediate object program, to release the JavaScript script to client, with the control client browser display result page by interface channel. its method is:
(1) at first, in the browser of client, dispose three pages: the test request page, test interaction page and results page, the test request page is responsible for submitting test request, this page is a hidden page, mutual request in the test interaction page transmission test is hidden page, and the test result page is responsible for showing final testing result;
(2) after Web server obtains the requests for page that the client submits, Web server pins requests for page and does not return, initiate test request to the ADSL testing server simultaneously, because the page request of browser is not returned at test period, thus this moment Web server and client browser between the network interface channel will keep always;
(3) then Web server after the ADSL testing server is initiated test command, the ADSL testing server begins to carry out the control of testing process, in test process, the ADSL testing server can send the result and the Comprehensive analysis results of some individual event tests to Web server, after finishing, test can send the EOT sign, Web server finds original maintained network interface channel after receiving these results, send the script script by this passage to client browser and come the display result page, realize the process of push technology with the control client browser;
(4) if need in the test process alternately, then client browser can be initiated request from another interaction page, and Web server can transfer to the ADSL testing server to request after receiving request, the interactive operation between realization and the client;
(5) Web server will return the client requests that is lockable at first simultaneously after receiving the EOT sign that the ADSL testing server sends, and has so just discharged the interface channel of service end and client.
CN2006100255491A 2006-04-10 2006-04-10 Method for Web page ADSL test via push technology Active CN101056212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100255491A CN101056212B (en) 2006-04-10 2006-04-10 Method for Web page ADSL test via push technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100255491A CN101056212B (en) 2006-04-10 2006-04-10 Method for Web page ADSL test via push technology

Publications (2)

Publication Number Publication Date
CN101056212A true CN101056212A (en) 2007-10-17
CN101056212B CN101056212B (en) 2010-09-08

Family

ID=38795837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100255491A Active CN101056212B (en) 2006-04-10 2006-04-10 Method for Web page ADSL test via push technology

Country Status (1)

Country Link
CN (1) CN101056212B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989B (en) * 2006-08-31 2010-11-24 中国银联股份有限公司 Automatization test method and device for Web applied system
CN101635655B (en) * 2008-07-25 2012-01-04 阿里巴巴集团控股有限公司 Method, device and system for page performance test
CN103067214A (en) * 2011-10-19 2013-04-24 阿里巴巴集团控股有限公司 Method, client, server and system used for testing web site performance
CN104268266A (en) * 2014-10-11 2015-01-07 北京国双科技有限公司 Webpage access request sending method and device
CN104850560A (en) * 2014-02-18 2015-08-19 北京京东尚科信息技术有限公司 Method and system for loading business data in webpage in real time
CN106126426A (en) * 2016-07-04 2016-11-16 网易(杭州)网络有限公司 The method of testing of computer software and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2320385C (en) * 2000-09-21 2011-01-11 Medical Council Of Canada Method and apparatus for administering an internet based examination to remote sites
US6799147B1 (en) * 2001-05-31 2004-09-28 Sprint Communications Company L.P. Enterprise integrated testing and performance monitoring software
CN1588857A (en) * 2004-09-28 2005-03-02 中国电子产品可靠性与环境试验研究所 Integrated circuit remote detecting system and its detecting method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989B (en) * 2006-08-31 2010-11-24 中国银联股份有限公司 Automatization test method and device for Web applied system
CN101635655B (en) * 2008-07-25 2012-01-04 阿里巴巴集团控股有限公司 Method, device and system for page performance test
CN103067214A (en) * 2011-10-19 2013-04-24 阿里巴巴集团控股有限公司 Method, client, server and system used for testing web site performance
CN103067214B (en) * 2011-10-19 2016-08-03 阿里巴巴集团控股有限公司 For testing the method for web site performance, client, server and system
CN104850560A (en) * 2014-02-18 2015-08-19 北京京东尚科信息技术有限公司 Method and system for loading business data in webpage in real time
CN104268266A (en) * 2014-10-11 2015-01-07 北京国双科技有限公司 Webpage access request sending method and device
CN104268266B (en) * 2014-10-11 2017-12-19 北京国双科技有限公司 The method and apparatus for sending web access requests
CN106126426A (en) * 2016-07-04 2016-11-16 网易(杭州)网络有限公司 The method of testing of computer software and device
CN106126426B (en) * 2016-07-04 2018-09-11 网易(杭州)网络有限公司 The test method and device of computer software

Also Published As

Publication number Publication date
CN101056212B (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN101056212B (en) Method for Web page ADSL test via push technology
DE69931259T2 (en) METHOD AND APPARATUS FOR THE DIGITAL SUBSCRIPTION GRINDING QUALIFICATION
EP0779733B1 (en) Method for billing the use of telecommunication services, as well as switching system, service control and network management devices
CN101836195B (en) Method for permitting and blocking use of internet by detecting plural terminals on network
DE102006032108B4 (en) System and method for a multi-site test execution
CN1116757C (en) System for managing subscriber related service within telecommunications network
CN110110002A (en) Big data virtual interactive interface system
CN103995807B (en) Magnanimity data query and the method for after-treatment under a kind of framework based on Web
CN101848116A (en) Simple and quick automatic pressure test method of Web server
CN110928767A (en) Webpage analysis method, device, equipment and storage medium
CN108401164A (en) Fault handling method and device
CN102752140A (en) Method for comprehensively detecting and solving slow network speed
CN100466556C (en) Network device management method and system
CN107346280A (en) A kind of data report the method, apparatus and electronic equipment with data processing
CN103297419A (en) Method and system for fusing off-line data and on-line data
DE112010004422B4 (en) Correlating Log Files of a Telephone Call Using a Voice Spectrogram (Voice Print)
CN1870524A (en) Network element warning data obtaining method
CN1160916C (en) Selecting IPX/IGX nodes in multi-domain environment
CN203104490U (en) Housekeeper broadband self-service system
CN1545260A (en) A method of data observation applied to network management system
EP2232835B1 (en) A unified multi technology switchboard system
US20030126149A1 (en) System for providing private branch exchange operation information
DE69935453T2 (en) CHANGE BETWEEN OPERATION OF A TERMINAL TO A SUB-CENTER SYSTEM
CN113489624A (en) Outlet bandwidth flow optimization method and device, computer equipment and storage medium
CN1997019B (en) A message monitoring and receiving method based on FTP transfer

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
C56 Change in the name or address of the patentee

Owner name: SHANGHAI XINGUOTAI INFORMATION COMMUNICATION CO.,

Free format text: FORMER NAME: XINTAI COMMUNICATION TECHNOLOGY CO., LTD., SHANGHAI

CP03 Change of name, title or address

Address after: 200437, Shanghai, Handan Road, No. 173, building 3, two, three, Hongkou District

Patentee after: Shanghai Xinguotai Information Communication Co., Ltd.

Address before: 200437 Building No. 171, Handan Road, Hongkou District, Shanghai, 4

Patentee before: Xintai Communication Technology Co., Ltd., Shanghai