CN101610183B - Method and device for probing processing ability of hypertext transfer protocol server - Google Patents

Method and device for probing processing ability of hypertext transfer protocol server Download PDF

Info

Publication number
CN101610183B
CN101610183B CN2009100888638A CN200910088863A CN101610183B CN 101610183 B CN101610183 B CN 101610183B CN 2009100888638 A CN2009100888638 A CN 2009100888638A CN 200910088863 A CN200910088863 A CN 200910088863A CN 101610183 B CN101610183 B CN 101610183B
Authority
CN
China
Prior art keywords
http
connection
time
http server
connects
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
CN2009100888638A
Other languages
Chinese (zh)
Other versions
CN101610183A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009100888638A priority Critical patent/CN101610183B/en
Publication of CN101610183A publication Critical patent/CN101610183A/en
Application granted granted Critical
Publication of CN101610183B publication Critical patent/CN101610183B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for probing processing ability of a hypertext transfer protocol (HTTP) server. The method utilizes the characteristics that the HTTP server based on an HTTP protocol can respond to HTTP request messages, launches the establishment of a plurality of connections with the HTTP server in parallel and sends the HTTP request messages on the connections, thereby probing the HTTP server. The probing of the processing ability of the HTTP server can be realized by HTTP message interaction in accordance with the invention.

Description

A kind of method and apparatus of probing processing ability of hypertext transfer protocol server
Technical field
(technical field is specifically related to a kind of detection http server method of processing capacity and HTTP detecting devices to the present invention relates to HTML (Hypertext Markup Language) (HTTP, Hypertext Transfer Protocol).
Background technology
HTTP is in order to browse the design of simple HTML (HTML, HyperText MarkupLanguage) file at first, is a kind of succinct fast protocol of stateless suitable several data information.Early stage HTTP/0.9 version is only supported simple request (Simple-Request) and simple response (Simple-Response) message, in use far can not satisfy the needs of various application.Proposed the HTTP/1.0 version in 1992, and after this constantly enriched and development.HTTP has developed into the HTTP/1.1 version at present.
Along with constantly popularizing of the Internet, emerge in an endless stream based on the application of HTTP, therefore be necessary the http server that the HTTP service is provided is surveyed, to obtain the correlated performance parameter of http server.The detection method of existing http server has two kinds: a kind of is whether can respond basic probe requests thereby by detecting http server, determines whether http server is online; Another kind is that special agent software is installed on http server in advance, responds various probe requests thereby by this agent software, returns the relevant parameter of http server.Above-mentioned first kind of detection method can not obtain enough parameters that can reflect the http server performance; And second kind of detection method need be installed special agent software on http server, so its cost is higher and the scope of application is narrower.
Summary of the invention
Embodiment of the invention technical problem to be solved provides a kind of detection http server method of processing capacity and HTTP detecting devices, utilize the HTTP detecting devices initiate to set up with http server between many be used to transmit being connected of HTTP message, utilize these connections to realize detection to the http server disposal ability.
For solving the problems of the technologies described above, the embodiment of the invention provides scheme as follows:
A kind of detection HTML (Hypertext Markup Language) http server method of processing capacity comprises:
Steps A, the HTTP detecting devices is parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message, and the successfully time is set up in the connection that first connection that time and success set up is initiated in the connection of writing down every connection; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect;
Step B, HTTP detecting devices calculate described first quantity and described first and first quotient of value, obtain first index of the concurrent concatenation ability of described http server in the unit interval.
Preferably, in the said method,
In described steps A, the HTTP detecting devices further writes down the second connection failure time that connects of setting up failure, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect;
In described step B, the HTTP detecting devices further calculates described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
Preferably, in the said method, also comprise:
Step C, the HTTP detecting devices repeats described steps A and step B, obtain a plurality of described first indexs and a plurality of described second index, and a plurality of described first indexs are averaged, obtain the concurrent concatenation ability parameter of described http server in the unit interval; A plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
Preferably, in the said method, described http server is a http server in the http server cluster, the HTTP detecting devices is further carried out described steps A, B and C respectively to other http server in the described http server cluster, obtains the concurrent concatenation ability parameter of described other http server in the unit interval.
Preferably, in the said method, also comprise:
Described HTTP detecting devices connects transmission the one HTTP request message by described first, uploads data to http server;
Described HTTP detecting devices write down for described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects;
Described HTTP detecting devices add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
Preferably, in the said method, also comprise:
Described HTTP detecting devices connects transmission the 2nd HTTP request message by described first, and request is from the http server data download;
Described HTTP detecting devices writes down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects;
Described HTTP detecting devices is added up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
Preferably, in the said method, described HTTP detecting devices further connects transmission the 3rd HTTP request message by described first, ask the resource information under the specific resources path of described http server, and, judge whether the resource information on the described http server hits nominal key according to the http response message that string searching algorithm search http server returns.
Preferably, in the said method, describedly be connected to that transmission control protocol socket TCP SOCKET connects or security socket layer SSL connects.
The embodiment of the invention also provides a kind of HTTP detecting devices, comprising:
Concurrent connection probe unit, be used for parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message;
First statistic unit is used to write down the connection initiation time of every connection and the successfully time is set up in the connection of first connection that success is set up; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect; Calculate described first quantity and described first and first quotient of value, obtain first index of the concurrent concatenation ability of described http server in the unit interval.
Preferably, in the above-mentioned HTTP detecting devices, described concurrent connection probe unit, also be used to write down the second connection failure time that connects of setting up failure, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect;
Described first statistic unit, also be used to calculate described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
Preferably, in the above-mentioned HTTP detecting devices, also comprise:
Control unit is used for repeatedly starting the described concurrent connection probe unit and first statistic unit, obtains a plurality of described first indexs and a plurality of described second index;
Second statistic unit is used for a plurality of described first indexs are averaged, and obtains the concurrent concatenation ability parameter of described http server in the unit interval; And a plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
Preferably, in the above-mentioned HTTP detecting devices, described concurrent connection probe unit also is used for sending a HTTP request message by described first connection, uploads data to http server;
Described first statistic unit also was used to write down described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects; Add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
Preferably, in the above-mentioned HTTP detecting devices, described concurrent connection probe unit also is used for sending the 2nd HTTP request message by described first connection, and request is from the http server data download;
Described first statistic unit also is used to write down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects; Add up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
Preferably, in the above-mentioned HTTP detecting devices, described concurrent connection probe unit, also be used for connecting transmission the 3rd HTTP request message by described first, ask the resource information under the specific resources path of described http server, and, judge whether the resource information on the described http server hits nominal key according to the http response message that string searching algorithm search http server returns.
From the above as can be seen, detection http server method of processing capacity that the embodiment of the invention provides and HTTP detecting devices, by set up with http server between be connected, transmission HTTP message in described connection, utilize http server can respond the characteristics of HTTP request message, realized detection, thereby need not special agent software is installed on http server, can realize detection http server relevant treatment ability parameter to http server.Http server disposal ability parameter by the embodiment of the invention is obtained can provide decision-making foundation for upper layer application such as load balancing, also can be used for the Performance Evaluation that back http server cluster is built in the website.
Description of drawings
Fig. 1 is the applied environment schematic diagram of the described method of the embodiment of the invention;
Fig. 2 is the schematic flow sheet of the described detection http server of present embodiment method of processing capacity;
Fig. 3 is the structural representation of the described HTTP detecting devices of the embodiment of the invention.
Embodiment
Utilization of the present invention can respond the characteristics of HTTP request message based on the http server of http protocol, parallel initiate to set up with http server between many be connected, on these connect, send the HTTP request message, realize detection to http server.Because http server can respond connection request and HTTP request message, so the present invention need not any agent software is installed on http server, can realize the detection to http server correlated performance parameter.Below with reference to accompanying drawing, the present invention is described further by specific embodiment.
Figure 1 shows that the applied environment schematic diagram of the described method of the embodiment of the invention, wherein the HTTP detecting devices is connected with http server by IP network.In the present embodiment, the HTTP detecting devices is to be used for equipment that http server is surveyed, http server provides the server of HTTP service, HTTP detecting devices and http server all are arranged in the IP network, can reach each other, and realize time synchronized by NTP (Network Time Protocol) (NTP, Network Time Protocol) or SNTP (SNTP, Simple Network Time Protocol) each other.As shown in Figure 2, the described detection http server of present embodiment method of processing capacity may further comprise the steps:
Step 11, in once concurrent connection is surveyed, the HTTP detecting devices is parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message.
Step 12, the connection of every connection of HTTP detecting devices record is initiated the connection of the connection of time and success foundation (for convenience of description, being designated hereinafter simply as first connects) and is set up the successfully time; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect;
Step 13, the HTTP detecting devices with described first quantity divided by described first and the value, obtain first quotient, with first index of described first quotient as the concurrent concatenation ability of described http server in the unit interval.
In the above-mentioned steps 12, the connection of all right further record of HTTP detecting devices foundation failure (for convenience of description, being designated hereinafter simply as second connects) the connection failure time, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect; Then in step 13, calculate described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
In the above-mentioned steps 11, whether parallel many connections of initiating of HTTP detecting devices can all set up success, depend on the concurrent processing ability of http server.Repeatedly survey the statistical average result who obtains, more approach the actual performance of http server usually.For this reason, in said method, the HTTP detecting devices can also repeat above-mentioned steps 11~13, survey to carry out repeatedly concurrent connection, obtain a plurality of described first indexs and a plurality of described second index, and a plurality of described first indexs are averaged, obtain the concurrent concatenation ability parameter of described http server in the unit interval; A plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
The concurrent concatenation ability parameter, the connection that obtain by said method are created as the concurrent performance that power parameter can reflect http server.Therefore, can utilize the said method of present embodiment, every http server in the http server cluster is all carried out identical test, thereby obtain the relevant parameter of each http server, be created as power parameter by concurrent concatenation ability parameter, the connection of comparing each http server, can provide decision-making foundation for the load balancing of http server cluster.
Here, after the connection between HTTP detecting devices and the http server was set up successfully, HTTP message can connect the arrival http server by this.Present embodiment has utilized the http server of supporting http protocol to respond and has set up and has been used to transmit the connection request of HTTP message and the characteristics that respond the HTTP request message, thereby need not to be provided with on http server the probe requests thereby that special agent software responds the HTTP detecting devices.Survey for HTTP, the transmission control protocol socket (TCP SOCKET) that is connected to described here connects.For Secure Hypertext Transfer Protocol (HTTPS, HTTP over SSL) surveys, described connection then is security socket layer (SSL, Secure Socket Layer) connects, and, before sending the HTTP request message, also need on the HTTP detecting devices, dispose the relevant parameter that SSL connects, for example dispose PKIX (PKI, Public Key Infrastructure) parameters such as entity, PKI territory and SSL strategy, and when http server requires Authentication Client, also need on the HTTP detecting devices, import related credentials in advance.Here, described HTTP request message includes but not limited to: HTTP GET request message, HTTP PUT request message, HTTP HEAD request message, HTTPOPTIONS request message and HTTP POST request message.
Here, the user can be in advance to concrete detection customized information and the configuration information of HTTP detecting devices input, the HTTP detecting devices generates corresponding HTTP request message in view of the above, specifically surveys customized information and configuration information and comprises but be not limited only to following content:
1) be detected the IP address (IPv4 address or IPv6 address) of object (http server), this IP address can be a host address, can also be the address of some network segments or certain several network segment;
2) be detected the serve port information of object (http server), such as ports such as " 80 ", " 8080 ", " 443 ";
3) configuration HTTP surveys or the HTTPS detection; Survey for HTTP, the HTTP detecting devices is by calling the SOCKET interface, set up with http server between TCP SOCKET be connected; Survey for HTTPS, what set up between HTTP detecting devices and the http server is that SSL is connected, then except the relevant interface that configuration SSL connects, also need to dispose parameters such as PKI entity, PKI territory, SSL strategy, and under the scene of server requirement Authentication Client, also need to import related credentials;
4) method in the message header of HTTP request message (HTTP Client Method), for example ClientMethod such as HTTPGET, HTTP HEAD, HTTP POST, HTTP PUT and HTTP OPTION;
5) certain in the HTTP request message head or a few stature domain information are such as host/user-agent/server/authentication etc.;
6) the concrete resource path information in the HTTP request message head is such as "/", "/news/chinanews.html " etc.;
7) the http response message content keyword message that need hit is such as " H1N1 " etc.;
8) time-out time of appointment HTTP request message wait acknowledge;
9) once survey or detecting periodically, if detecting periodically also needs to specify detect cycle.
Present embodiment is the data upload/download capabilities parameter of test http server further.Concrete, the test data upload ability is:
First connection that the HTTP detecting devices passes through successfully to set up sends a HTTP request message, uploads data to http server, and a described HTTP request message can be HTTP PUT request message or HTTP POST request message; Described HTTP detecting devices write down for described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects; Described HTTP detecting devices add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
The test data download capabilities is:
First connection that described HTTP detecting devices passes through successfully to set up sends the 2nd HTTP request message, and request is from the http server data download, and described the 2nd HTTP request message can be a HTTP GET request message; Described HTTP detecting devices writes down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects; Described HTTP detecting devices is added up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
In the present embodiment, described HTTP detecting devices can also further connect transmission the 3rd HTTP request message (as HTTP GET request message) by described first, ask the resource information under the specific resources path of described http server, and, judge whether described resource information hits described nominal key according to the described resource information of string searching algorithm search.At this moment, need to specify concrete resource path information in the message header of HTTP request message.
Need to prove, can exist certain transmitting time poor strictly speaking between parallel many HTTP request messages that send of HTTP detecting devices, is not parallel fully the transmission.But with respect to connection setup time, this transmitting time difference can be ignored, so these HTTP request messages can be regarded as what synchronization sent in the present embodiment.
From the above as can be seen, present embodiment is connected by many between the concurrent foundation of HTTP detecting devices and the http server, and by with the mutual HTTP message of http server, realized the parallel connection processing ability of http server, data upload/download capabilities and keyword such as are hit at detecting function, obtained the relevant treatment ability parameter of http server.Http server disposal ability parameter by present embodiment obtains can provide decision-making foundation for upper layer application such as load balancing, also can be used for the Performance Evaluation etc. that back http server cluster is built in the website.
At last, in order more clearly to understand the described method of the embodiment of the invention, be described in more detail below in conjunction with a concrete detection flow process.In this detection flow process, the HTTP detecting devices sends HTTP GET request message by the HTTPS mode, initiates once concurrent connection and surveys, and download a file from http server in this detection process.
At first the user surveys customized information below the input of HTTP detecting devices:
(1) HTTPS detection mode
(2) configuration KPI entity, PKI territory and SSL strategy, similar as follows:
#
Pki entity abcd (configuration PKI entity)
common-name?abcd
organization-unit?abcd
organization?abcd
locality?name?abcd
state?beijing
country?cn
#
Pki domain abcd (configuration PKI territory)
ca?identifier?win2003ser
certificate?request?url?http://192.168.1.100/certsrv/mscep/mscep.dll
certificate?request?from?ra
certificate?request?entity?abcd
certificate?request?mode?auto
root-certificate?fingerprint?md5ECCFA7027543F6EA5CD5E7E49E3F9D83
crl?url?http://192.168.1.100/certsrv/certenroll/win2003ser.crl
#
Ssl client-policy httpprobe (configuration SSL strategy)
pki-domain?abcd
#
(3) configuration HTTP Client Method is that HTTP GET method, resource path are "/version/2200.mp3 "; Connection header field content is " Keep-Alive ";
(4) single detection wait-for-response time-out time being set is 60 seconds;
(5) detection mission being set is repeatedly concurrent connection detection (as 10 times), and concurrent connection number (is 2000 as each concurrent connection number) in each concurrent connection detection, the blanking time between each concurrent connection is surveyed are set;
(6) keyword that http response message need hit is set and is " Spears "
Then, the HTTP detecting devices generates corresponding HTTP request message according to above-mentioned detection customized information, and according to above-mentioned blanking time, initiates concurrent connection one by one and survey.In each concurrent connection is surveyed, the HTTP detecting devices writes down each connection initiation time ct1 and sets up successfully time ct2 with being connected, calculate the connection setup time (ct2-ct1) of each connection of successfully setting up, the connection setup time sum of adding up all connections of successfully setting up; Add up successfully the quantity of the connection of setting up, with described number of connection divided by described connection setup time quotient of obtaining of sum, the index of the concurrent concatenation ability of http server in the unit interval described in surveying as this concurrent connection.At last, after 10 concurrent connection detections are all finished, 10 indexs that obtain in 10 concurrent connection detections are averaged, obtain the concurrent concatenation ability parameter of http server in the unit interval.
In concurrent connection was surveyed, http server can also connect action below the execution at every SSL that success is set up:
1) sends HTTP GET request message to http server;
2) asynchronous wait and receive the http response message that http server returns at above-mentioned HTTP GET request message, overtime up to the wait-for-response time-out time;
3) resolve http response message, according to string searching algorithm search http response message, judge whether the content of http response message hits keyword " Spears ", thereby judge whether the resource information on the http server hits keyword " Spears ".
Based on the above method, present embodiment also provides a kind of HTTP detecting devices, and as shown in Figure 3, this HTTP detecting devices comprises:
Concurrent connection probe unit, be used for parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message.Here, describedly be connected to that TCP SOCKET connects or SSL connects.
First statistic unit is used to write down the connection initiation time of every connection and the successfully time is set up in the connection of first connection that success is set up; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect; Calculate described first quantity and described first and first quotient of value, obtain first index of the concurrent concatenation ability of described http server in the unit interval.
Preferably, described concurrent connection probe unit, also be used to write down the second connection failure time that connects of setting up failure, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect; Described first statistic unit, also be used to calculate described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
Preferably, HTTP detecting devices shown in Figure 3 can also comprise:
Control unit is used for repeatedly starting the described concurrent connection probe unit and first statistic unit, obtains a plurality of described first indexs and a plurality of described second index;
Second statistic unit is used for a plurality of described first indexs are averaged, and obtains the concurrent concatenation ability parameter of described http server in the unit interval; And a plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
Preferably, described concurrent connection probe unit can also be used for sending a HTTP request message by described first connection, uploads data to http server; Described first statistic unit also was used to write down described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects; Add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
Preferably, described concurrent connection probe unit can also be used for sending the 2nd HTTP request message by described first connection, and request is from the http server data download; Described first statistic unit also is used to write down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects; Add up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
Described concurrent connection probe unit, can also be used for connecting transmission the 3rd HTTP request message by described first, ask the resource information under the specific resources path of described http server, and, judge whether the resource information on the described http server hits nominal key according to the http response message that string searching algorithm search http server returns.
In sum, detection http server method of processing capacity that the embodiment of the invention provides and HTTP detecting devices, by utilizing the HTTP request message to survey, need not at http server installation agent software, promptly realized the detection of http server relevant treatment ability parameter.
The above only is embodiments of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (14)

1. survey HTML (Hypertext Markup Language) http server method of processing capacity for one kind, it is characterized in that, comprising:
Steps A, the HTTP detecting devices is parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message, and the successfully time is set up in the connection that first connection that time and success set up is initiated in the connection of writing down every connection; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect;
Step B, HTTP detecting devices calculate described first quantity and described first and first quotient of value, obtain first index of the concurrent concatenation ability of described http server in the unit interval.
2. the method for claim 1 is characterized in that,
In described steps A, the HTTP detecting devices further writes down the second connection failure time that connects of setting up failure, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect;
In described step B, the HTTP detecting devices further calculates described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
3. method as claimed in claim 2 is characterized in that, also comprises:
Step C, the HTTP detecting devices repeats described steps A and step B, obtain a plurality of described first indexs and a plurality of described second index, and a plurality of described first indexs are averaged, obtain the concurrent concatenation ability parameter of described http server in the unit interval; A plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
4. method as claimed in claim 3, it is characterized in that, described http server is a http server in the http server cluster, the HTTP detecting devices is further carried out described steps A, B and C respectively to other http server in the described http server cluster, obtains the concurrent concatenation ability parameter of described other http server in the unit interval.
5. method as claimed in claim 4 is characterized in that, also comprises:
Described HTTP detecting devices connects transmission the one HTTP request message by described first, uploads data to http server;
Described HTTP detecting devices write down for described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects;
Described HTTP detecting devices add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
6. as claim 4 or 5 described methods, it is characterized in that, also comprise:
Described HTTP detecting devices connects transmission the 2nd HTTP request message by described first, and request is from the http server data download;
Described HTTP detecting devices writes down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects;
Described HTTP detecting devices is added up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
7. the method for claim 1 is characterized in that,
Described HTTP detecting devices further connects transmission the 3rd HTTP request message by described first, ask the resource information under the specific resources path of described http server, and, judge whether the resource information on the described http server hits nominal key according to the http response message that string searching algorithm search http server returns.
8. the method for claim 1 is characterized in that, describedly is connected to that transmission control protocol socket TCP SOCKET connects or security socket layer SSL connects.
9. a HTTP detecting devices is characterized in that, comprising:
Concurrent connection probe unit, be used for parallel initiate to set up with described http server between predetermined quantity, be used to transmit being connected of HTTP message;
First statistic unit is used to write down the connection initiation time of every connection and the successfully time is set up in the connection of first connection that success is set up; Calculate every first connection setup time that connects, and first first quantity that is connected with value and first of adding up all first connection setup times that connect; Calculate described first quantity and described first and first quotient of value, obtain first index of the concurrent concatenation ability of described http server in the unit interval.
10. HTTP detecting devices as claimed in claim 9 is characterized in that,
Described concurrent connection probe unit, also be used to write down the second connection failure time that connects of setting up failure, calculating every second connects from connecting the duration of initiation time to connection failure time, it is consuming time to obtain every second connection that connects, and adds up all second connection second and values consuming time that connect;
Described first statistic unit, also be used to calculate described first quantity and the 3rd and second quotient of value, obtain second index that the connection of described http server in the unit interval is created as power, the wherein said the 3rd and value be described first and value and second with the value sum.
11. HTTP detecting devices as claimed in claim 10 is characterized in that, also comprises:
Control unit is used for repeatedly starting the described concurrent connection probe unit and first statistic unit, obtains a plurality of described first indexs and a plurality of described second index;
Second statistic unit is used for a plurality of described first indexs are averaged, and obtains the concurrent concatenation ability parameter of described http server in the unit interval; And a plurality of described second indexs are averaged, obtain the connection of described http server in the unit interval and be created as power parameter.
12. HTTP detecting devices as claimed in claim 10 is characterized in that,
Described concurrent connection probe unit also is used for sending a HTTP request message by described first connection, uploads data to http server;
Described first statistic unit also was used to write down described first data upload time started and the data upload concluding time that connects, and calculated for the described first data upload time that connects; Add up all first connect upload the data volume sum, and all first data upload time sums that connect, calculate described the 3rd quotient of uploading data volume sum and described data upload time sum, obtain the data upload ability parameter of described http server.
13. as claim 11 or 12 described HTTP detecting devicess, it is characterized in that,
Described concurrent connection probe unit also is used for sending the 2nd HTTP request message by described first connection, and request is from the http server data download;
Described first statistic unit also is used to write down described first data that connect and downloads time started and data download concluding time, calculates for the described first data download time that connects; Add up all first data download amount sums that connect, and all first data download time sums that connect, calculate the 4th quotient of described data download amount sum and described data download time sum, obtain the data download capabilities parameter of described http server.
14. HTTP detecting devices as claimed in claim 9 is characterized in that,
Described concurrent connection probe unit, also be used for connecting transmission the 3rd HTTP request message by described first, ask the resource information under the specific resources path of described http server, and, judge whether the resource information on the described http server hits nominal key according to the http response message that string searching algorithm search http server returns.
CN2009100888638A 2009-07-21 2009-07-21 Method and device for probing processing ability of hypertext transfer protocol server Expired - Fee Related CN101610183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100888638A CN101610183B (en) 2009-07-21 2009-07-21 Method and device for probing processing ability of hypertext transfer protocol server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100888638A CN101610183B (en) 2009-07-21 2009-07-21 Method and device for probing processing ability of hypertext transfer protocol server

Publications (2)

Publication Number Publication Date
CN101610183A CN101610183A (en) 2009-12-23
CN101610183B true CN101610183B (en) 2011-05-11

Family

ID=41483781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100888638A Expired - Fee Related CN101610183B (en) 2009-07-21 2009-07-21 Method and device for probing processing ability of hypertext transfer protocol server

Country Status (1)

Country Link
CN (1) CN101610183B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
CN104125288B (en) * 2014-08-04 2018-02-06 上海斐讯数据通信技术有限公司 The full load test method and system of a kind of network hard disc
CN105451260B (en) * 2014-08-12 2019-12-20 优视科技有限公司 Network request method, network fluctuation measuring method and device
ES2894900T3 (en) * 2017-08-04 2022-02-16 Nokia Technologies Oy Selection of the transport procedure for the delivery of notifications from the server
CN108600051B (en) * 2018-04-28 2020-02-18 网宿科技股份有限公司 BGP Anycast cluster service quality detection method and detection equipment
CN111404772B (en) * 2020-03-09 2021-08-31 杭州迪普科技股份有限公司 SSL proxy gateway test system and method
CN116155918B (en) * 2023-02-15 2023-11-03 讯芸电子科技(中山)有限公司 Device connection method and device for carrying optoelectronic module

Also Published As

Publication number Publication date
CN101610183A (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN101610183B (en) Method and device for probing processing ability of hypertext transfer protocol server
US10778554B2 (en) Latency measurement in resource requests
US9912740B2 (en) Latency measurement in resource requests
US9253065B2 (en) Latency measurement in resource requests
US8924528B1 (en) Latency measurement in resource requests
WO2015043455A1 (en) Data transmission method, device, and system
CN101843079A (en) Communicating a selection of a potential configuration
CN101873332B (en) WEB authentication method and equipment based on proxy server
CN101355555A (en) Authentication system and authentication method
CN104821940A (en) Method and equipment for sending portal redirected address
WO2014063550A1 (en) Method and system for microblog resource sharing
US20110016523A1 (en) Apparatus and method for detecting distributed denial of service attack
CN103347092A (en) Method and device for recognizing cacheable file
CN110505188B (en) Terminal authentication method, related equipment and authentication system
CN104468852A (en) Method, device and system for client to select IP link address
CN103347087A (en) Structuring P2P and UDDI service registering and searching method and system
CN102638472A (en) Portal authentication method and equipment
WO2017181800A1 (en) Adaptive portal authentication page system based on operating system, and method for same
WO2011009339A1 (en) Method, system and device for transmitting data
JP4800332B2 (en) Service providing system, service providing method, and service providing program
CN111130948A (en) Network quality detection method and device
CN102685160B (en) Resource downloading method, server, aware services device, client and system in P2SP
JP2015045897A (en) Gateway device, communication method using gateway device, and communication program used for gateway device
JP2015204090A (en) Method, device and program for establishing secure link between server and terminal by using telephone number
KR20010077317A (en) Method & Technology of Dynamic Naming Service

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

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

Granted publication date: 20110511

Termination date: 20200721