CN107483294A - Monitor the method and device of network request - Google Patents
Monitor the method and device of network request Download PDFInfo
- Publication number
- CN107483294A CN107483294A CN201710833971.8A CN201710833971A CN107483294A CN 107483294 A CN107483294 A CN 107483294A CN 201710833971 A CN201710833971 A CN 201710833971A CN 107483294 A CN107483294 A CN 107483294A
- Authority
- CN
- China
- Prior art keywords
- request
- network
- sub
- network request
- mark
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a kind of method and device for monitoring network request, it is related to Internet technical field.Methods described is applied in proxy server, and methods described includes:When receiving network request, detect the request initial time that the network request whether is carried in the network request, if the request initial time is not carried in the network request, the request initial time will be defined as current time, the first data equipment is obtained according to the request address of the network request to respond for the network of the network request, the network response carries the request end time of the network request, the request address is defined as to the tracking path of the network request, and the tracking path is marked using the request initial time and the request end time.The present invention can be monitored to the process for handling network request, supported in order to provide data for the process of optimization processing network request, improved the efficiency and reliability of processing network request.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for monitoring network request.
Background technology
With the development of Internet technology, network brings increasing facility to user's life.User can pass through
Client sends network request to data equipment (such as service server etc.), and the data equipment is according to the network request to the visitor
Family end feedback network response, so as to provide Internet resources or service for client.Because some data equipment may be same again
Time receives multiple network requests, and this may make the data equipment processing network request effect occur because of reasons such as load excessives
The problems such as rate is relatively low or even can not normally handle network request, so, in order to be optimized to the process for handling network request, urgently
Need a kind of method for monitoring network request.
In the prior art, client can send network request to proxy server, and proxy server please according to the network
The request address of carrying is sought, it is determined that corresponding data equipment, and the network request is sent into the data equipment, and the data are set
The standby network response for the network request is sent to client.But proxy server is difficult to get and processing network request
The relevant data of process, also just it is difficult to optimize the process for handling network request offer data support, it is necessary to there is related skill
Art personnel are rule of thumb adjusted to some parameters in proxy server or data equipment, it is difficult to effectively improve processing network
The efficiency and reliability of request.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the method and device of the monitoring network request of problem.
According to one aspect of the present invention, there is provided a kind of method for monitoring network request, applied in proxy server,
Including:
When receiving network request, when detecting the request starting that the network request whether is carried in the network request
Between;
If not carrying the request initial time in the network request, the request starting will be defined as current time
Time;
The first data equipment is obtained according to the request address of the network request to respond for the network of the network request,
The network response carries the request end time of the network request;
The request address is defined as to the tracking path of the network request, and using the request initial time and institute
State the request end time mark tracking path.
Optionally, the network response also carries request responsive state;
It is described the request address is defined as the tracking path of the network request after, in addition to:
The tracking path is marked using the request responsive state.
Optionally, whether carried in the detection network request network request request initial time it
Afterwards, in addition to:
If not carrying the request initial time in the network request, the tracking mark of the network request is generated;
It is described the request address is defined as the tracking path of the network request after, in addition to:
The tracking path is marked using the tracking mark.
Optionally, sub- request address, the sub- request starting of at least one sub-network request are also carried in the network response
Time and son request end time, each sub-network request are asked for the sub-network of the network request;
Methods described also includes:
The request address, each sub- request address are defined as the tracking path of the network request, and institute is respectively adopted
Request initial time, request end time, the sub- request initial time and the sub- request end time are stated to described
Tracking path is marked.
Optionally, the set membership mark of the network request and the request of each sub-network is also carried in the network response;
It is described the request address, each sub- request address are defined as the tracking path of the network request after, also
Including:
The set membership mark that the network request and the request of each sub-network is respectively adopted enters rower to the tracking path
Note.
According to another aspect of the present invention, there is provided a kind of method for monitoring network request, applied to the first data equipment
In, including:
When receiving and completing network request, be defined as to the request end time of the network request current time;
The network response for the network request is sent to proxy server, the request is carried in the network response
End time, so that the proxy server is when receiving the network response, the request address of the network request is true
It is set to the tracking path of the network request, and the request initial time using the network request and the request end time
The tracking path is marked.
Optionally, before the network response for being sent to proxy server and being directed to the network request, in addition to:
Determine the request responsive state of the network request;
The request responsive state is responded added to the network, so that the proxy server is rung using the request
Answer state that the tracking path is marked.
Optionally, before the request end time that current time is defined as to the network request, in addition to:
According to the network request, at least one sub-network request is generated, and each sub-network will be defined as current time and asked
The son request initial time asked;
The sub- request address asked according to each sub-network, obtained from least one second data equipment and be directed to each sub-network
The sub-network response of request, to carry out business processing to the network request, corresponding sub-network is carried in each sub-network response
The son request end time of request;
Sub- request address, sub- request initial time and the son request end time of at least one sub-network request are added
Add to the network response.
Optionally, described according to the network request, after generating at least one sub-network request, in addition to:
Determine the set membership mark of the network request and the request of each sub-network;
The set membership mark that the network request and each sub-network are asked is responded added to the network, so that described
The tracking path is marked the set membership mark that proxy server is asked using the network request and each sub-network.
Optionally, the set membership mark for determining the network request and the request of each sub-network includes:
Generate the father's mark of the network request;
The sub-mark of each sub-network request is generated according to the father's mark.
According to another aspect of the present invention, there is provided a kind of device for monitoring network request, applied in proxy server,
Including:
Detection module, for when receiving network request, detecting and the network request whether being carried in the network request
Request initial time;
First determining module, if for not carrying the request initial time in the network request, by current time
It is defined as the request initial time;
Acquisition module, please for the network for obtaining the first data equipment according to the request address of the network request
The network response asked, the network response carry the request end time of the network request;
Second determining module, for the request address to be defined as to the tracking path of the network request, and use institute
State request initial time and the request end time marks the tracking path.
Optionally, the network response also carries request responsive state;
Described device also includes:
First mark module, for marking the tracking path using the request responsive state.
Optionally, described device also includes:
Generation module, if for not carrying the request initial time in the network request, generating the network please
The tracking mark asked;
Second mark module, for marking the tracking path using the tracking mark.
Optionally, sub- request address, the sub- request starting of at least one sub-network request are also carried in the network response
Time and son request end time, each sub-network request are asked for the sub-network of the network request;
Described device also includes:
3rd determining module, for the request address, each sub- request address to be defined as to the tracking of the network request
Path, and the request initial time, the request end time, the sub- request initial time and the son is respectively adopted and asks
Ask the end time that the tracking path is marked.
Optionally, the set membership mark of the network request and the request of each sub-network is also carried in the network response;
3rd mark module, the set membership for the network request and the request of each sub-network to be respectively adopted are identified to institute
Tracking path is stated to be marked.
According to another aspect of the present invention, there is provided a kind of device for monitoring network request, applied to the first data equipment
In, including:
First determining module, for when receiving and completing network request, the network request will to be defined as current time
The request end time;
Sending module, for sending the network response for the network request, the network response to proxy server
It is middle to carry the request end time, so that the proxy server asks the network when receiving the network response
The request address asked is defined as the tracking path of the network request, and the request initial time using the network request and institute
State and ask the end time that the tracking path is marked.
Optionally, described device also includes:
Second determining module, for determining the request responsive state of the network request;
First add module, for the request responsive state to be responded added to the network, so that agency's clothes
The tracking path is marked using the request responsive state for business device.
Optionally, described device also includes:
3rd determining module, for according to the network request, generating at least one sub-network request, and by current time
It is defined as the son request initial time of each sub-network request;
Acquisition module, for the sub- request address asked according to each sub-network, obtained from least one second data equipment
The sub-network response for the request of each sub-network is taken, to carry out business processing to the network request, is taken in each sub-network response
The son request end time with the request of corresponding sub-network;
Second add module, for by the sub- request address of at least one sub-network request, sub- request initial time
Responded with the sub- request end time added to the network.
Optionally, described device also includes:
4th determining module, for determining the set membership mark of the network request and the request of each sub-network;
3rd add module, it is described for the set membership mark of the network request and the request of each sub-network to be added to
Network responds, so that the set membership that the proxy server is asked using the network request and each sub-network is identified to described
Tracking path is marked.
Optionally, the 4th determining module includes:
First generation submodule, for generating the father's mark of the network request;
Second generation submodule, for generating the sub-mark of each sub-network request according to the father's mark.
In embodiments of the present invention, first, proxy server can be detected in network request when receiving network request
Whether carrying request initial time, and when generating the request starting when not carrying in the network request request initial time
Between.Secondly, proxy server can obtain the network response for being directed to the network request according to request address from the first data equipment,
And carry the request end time in network response.Therefore, during handling network request, proxy server can
Obtain handling the data such as the request address of network request, request initial time and request end time with monitoring.By the request
Tracking path is marked as tracking path, and using request initial time and request end time for location, i.e., can be easy to
The process for handling network request is analyzed according to the tracking path, the process for optimization processing network request provides data
Support, improve the efficiency and reliability of processing network request.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is a kind of system architecture diagram of network request processing system according to embodiments of the present invention;
Fig. 2 is a kind of topological diagram of proxy server according to embodiments of the present invention;
Fig. 3 is a kind of step flow chart of the method for according to embodiments of the present invention one monitoring network request;
Fig. 4 is a kind of step flow chart of the method for according to embodiments of the present invention two monitoring network request;
Fig. 5 is a kind of step flow chart of the method for according to embodiments of the present invention three monitoring network request;
Fig. 6 is a kind of step flow chart of the method for monitoring network request according to embodiments of the present invention;
Fig. 7 is a kind of structured flowchart of the device of according to embodiments of the present invention four monitoring network request;
Fig. 8 is a kind of structured flowchart of the device of according to embodiments of the present invention five monitoring network request.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Before to the present invention carrying out that explanation is explained in detail, first the network request processing system in the present invention is situated between
Continue.
Reference picture 1, client 1, at least one proxy server 2 can be included in network request processing system (in Fig. 1 only
Show proxy server A, proxy server B and proxy server C) and at least one data equipment 3 (illustrate only in Fig. 1
Data equipment A, data equipment B and data equipment C).Can be by network connection, respectively between client 1 and each proxy server
Network connection can also be passed through between proxy server and each data equipment 3.
Client can include application program, and the application program can run on the computers such as mobile phone, computer, intelligent watch
Equipment, so as to send network request to proxy server.
Wherein, network request can include HTTP (Hyper Text Transfer Protocol,
HTTP)。
Proxy server can be that a server or a server cluster, the proxy server being capable of roots
According to the network request and other relevant informations received, the network request is sent to data equipment, so that data equipment
Responded according to network corresponding to the network request to client return.And the proxy server can also be by performing following implementations
The method of processing network request described in example, to obtain the data during processing network request, so as to be optimization processing network
The process of request provides support, is advantageous to improve the efficiency and reliability of processing network request.
Wherein, as shown in Figure 1, the network request received by proxy server may be from and client, it is also possible to come
From in data equipment.
When data during processing network request can include the request address of each network request called, request starting
Between and request end time etc..Request address can be used in the proxy server or data equipment of explanation processing network request, please
It is the time for starting to handle network request to seek initial time, request the end time be network request processing is terminated when
Between, so as to which the request initial time and the request end time can be used in illustrating that the duration shared by processing network (is asked
End time and the difference of request initial time).
Data equipment can include service server, and the service server can be a server or one
Server cluster.The data equipment when receiving network request, can according to the network request carry out business processing, and according to
Service processing result feedback network responds.And the data equipment can be by performing the processing network request described in following embodiments
Method, come make proxy server get processing network request during data.
Wherein, data equipment may generate the sub-network request of 0 or more when carrying out business processing, and pass through
Proxy server, the sub-network response for sub-network request is obtained from other data equipments.
For example, in network request processing system as shown in Figure 1, client 1 sends network request to proxy server A
1, network request 1 is sent to data equipment A by proxy server A.Data equipment A receives network request 1, if it is determined that is not required to
Call sub-network to ask, then after business processing completion, network can be returned to client 1 by proxy server A and rung
Should;If it is determined that needing to call sub-network request, then sub-network request 1 and sub-network request 2 are generated, sub-network request 1 is led to
Cross proxy server B to send to data equipment B, sub-network request 2 is sent to data equipment C by proxy server C, so as to
Get for the sub-network response of sub-network request 1 and responded for the sub-network of sub-network request 2, and it is complete in business processing
Cheng Shi, responded by proxy server A to the feedback network of client 1.
In addition, in the examples described above, the topological diagram of proxy server can with as shown in Fig. 2 i.e. by proxy server A,
Proxy server B and proxy server C, is handled network request 1.
Embodiment one
Reference picture 3, show a kind of step flow chart of the method for monitoring network request in the embodiment of the present invention.The party
Method is applied in proxy server, and specific steps include:
Step 301, when receiving network request, the request that the network request whether is carried in the network request is detected
Initial time.
From the foregoing it will be appreciated that the network request received by proxy server may be from and client, it is also possible to comes from
Non-customer end (such as first data equipment), when the network request comes from client, may just it start to the network request
Handled, so the data relevant with handling the network request may be not carried in the network request, such as request starting
Time etc., and when the network request comes from the first data equipment, the subnet of some network request when the network request is possible
Network is asked, so the information such as request initial time may have been carried in the network request, so in order to handling network request
Process be monitored, so as to for optimization processing network request process provides data support, raising handle network request effect
Rate and reliability, it can detect and request initial time whether is carried in the network request.
Wherein it is possible to the first field is set in the header of network request in advance to illustrate the request initial time, it
Afterwards, can detect whether the first field is empty in the header of the network request, then determine not carrying the request if sky
Initial time, if being not sky, it is determined that carry the request initial time.
By taking HTTP as an example, the data format of the header of network request can be expressed as Header-Name:Value, wherein
Header-Name represents that first place claims, key assignments corresponding to value expressions.Can claim in header including one or more first places with
And corresponding key assignments, so as to illustrate to handle the relevant information of the network request, such as, Host:Www.123.com, you can with table
The domain name for showing the server for handling the network request is www.123.com.Therefore, the first field can be set in header,
Claim including first place and corresponding key assignments, to illustrate to ask initial time.
Whether proxy server can carry request initial time by the plug-in unit set in advance to detect in network request.
Step 302, if not carrying the request initial time in the network request, will be defined as at current time described
Ask initial time.
From the foregoing it will be appreciated that if network request does not carry the request initial time, may just start to enter the network request
Row processing, it is possible to the request initial time will be determined current time, that is to say, generate the request initial time.
Wherein it is possible to the request initial time of generation is write into the first field, so as to which the request initial time be carried
In the network request.
In addition, if having carried the request initial time in the network request, the network request can be directly transmitted
To the first data equipment, responded with the network obtained from first data equipment for the network request.
Step 303, the first data equipment is obtained for the network request according to the request address of the network request
Network responds, and the network response carries the request end time of the network request.
The network request can be sent to the first data and set by proxy server according to the request address of the network request
It is standby, the network for carrying out business processing according to the network request and feeding back is responded so as to obtain first data equipment.
Request address can include URL (Uniform Resource Locator, URL).
Wherein, proxy server can be previously stored the corresponding relation between request address and the first data equipment mark,
So as to according to request address, in the corresponding relation between the request address and the first data equipment mark, find corresponding
First data equipment is identified, and the network request is sent into the first data equipment corresponding to the first data equipment mark.Certainly
If the request address corresponds to multiple first data equipment marks, the proxy server can also be according to the first number pre-set
According to equipment selection rule (such as first data equipment of selection load minimum etc.), identified from the plurality of first data equipment corresponding
The first data equipment select first data equipment, the network request is sent to the first selected data equipment.
First data equipment identifies can include for one the first data equipment of unique mark, the first data equipment mark
Character or character string etc..
Ask the end time can be by the first data equipment at the end of business processing is carried out according to network request, will be current
Time be defined as the request end time and obtain.
Second field can be set in the header of network request in advance to illustrate the request end time, and will generation
The request end time write the second field, by the request end time carry network response in.
Step 304, the request address is defined as to the tracking path of the network request, and originated using the request
Time and the request end time mark the tracking path.
From the foregoing it will be appreciated that request address can illustrate handle network request during proxy server and the first data
Equipment etc., so request address can be used for proxy server and first data equipment of the tracking process network request etc.,
Can be using the request address as tracking path.In addition, in order to illustrate that each proxy server or the first data equipment are being handled
The spent time during network request, request initial time and request end time can be used to carry out the tracking path
Mark.It that is to say, can be by the tracking path after mark, the proxy server passed through to processing network request, the first number
Supervised according to equipment and each proxy server or the first data equipment time spent during network request is handled
Control, consequently facilitating according to the tracking path after mark, it is determined whether the process for handling network request is optimized and optimized
Mode etc., to effectively improve the efficiency and reliability of processing network request.
Wherein it is possible to the corresponding relation between request address and proxy server mark is previously stored, so as to basis
Proxy server corresponding to request address determination.
Proxy server identifies can include character for one proxy server of unique mark, proxy server mark
Or character string.
Certainly, in actual applications, can also come otherwise according to request address, it is determined that handling the request address
The proxy server of corresponding network request or the first data equipment.
For example, the tracking path of network request 1 is (http://api.vip.com/services/ck.action,
1496570852610,1496570852650).Wherein, http://api.vip.com/services/ck.action is request
Address, 1496570852610 be request initial time, and 1496570852650 be the request end time.If according to the request
Location determines that proxy server is the proxy server A in Fig. 1, and the first data equipment is the first data equipment A in Fig. 1, then may be used
To determine that processing network request 1 have invoked proxy server A and the first data equipment A, and proxy server A and the first data are set
Standby A taken during handling network request 1 when a length of 40.
In embodiments of the present invention, it is preferred that request initial time can be used and ask the difference between the end time
Request address is marked.
Tracking path is marked for visual pattern, can opening up according to the tracking path construction proxy server
Figure (than topological diagram as shown in Figure 2) is flutterred, in the topological diagram, is terminated using the request initial time of each network request and request
Time, proxy server corresponding to the network request is marked.
Proxy server can be shown the tracking path after mark, in order to person skilled according to mark after
Tracking path analysis processing network request process it is whether normal, and then determine the need for corresponding proxy server or
First data equipment optimizes, fault detect, fault restoration etc., so as to be optimized to the process for handling network request.Or
Person, the proxy server still can set poor, the default request address number of preset time, request address blacklist, generation in advance
It is at least one in reason server blacklist, first data equipment blacklist etc., if detecting that the tracking path after mark meets
Following alert if are at least one, then for the tracking path alert, in order to determine whether to corresponding agency
Server or the first data equipment optimize, fault detect, fault restoration etc..The alert if can be included in tracking path
Including request address be the request address in the request address blacklist, the number of request address are more than the default request ground
Location number, request initial time and the corresponding difference asked between the end time are more than the preset time is poor, handles the network
Include the proxy server in the proxy server blacklist during request, handle that include during the network request should
First data equipment in first data equipment blacklist etc..
In addition, the proxy server can also store in the tracking path after mark into daily record, or, after this is marked
Tracking path send to other first data equipments etc..
In embodiments of the present invention, first, proxy server can be detected in network request when receiving network request
Whether carrying request initial time, and when generating the request starting when not carrying in the network request request initial time
Between.Secondly, proxy server can obtain the network response for being directed to the network request according to request address from the first data equipment,
And carry the request end time in network response.Therefore, during handling network request, proxy server can
Obtain handling the data such as the request address of network request, request initial time and request end time with monitoring.By the request
Tracking path is marked as tracking path, and using request initial time and request end time for location, i.e., can be easy to
The process for handling network request is analyzed according to the tracking path, the process for optimization processing network request provides data
Support, improve the efficiency and reliability of processing network request.
Embodiment two
Reference picture 4, show a kind of step flow chart of the method for monitoring network request in the embodiment of the present invention.The party
Method is applied in the first data equipment, and specific steps include:
Step 401, when receiving and completing network request, the request that current time is defined as to the network request terminates
Time.
First data equipment can carry out business processing when receiving network request according to the network request, and
Completed in business processing, that is, when completing network request, be defined as to the request end time of the network request current time.
Step 402, the network response for the network request is sent to proxy server, is carried in the network response
The request end time so that the proxy server is when receiving network response, by the network request please
Address is asked to be defined as the tracking path of the network request, and the request initial time using the network request and the request
End time, the tracking path was marked.
Wherein, proxy server receive network response after performed operation may be referred to it is foregoing in correlation retouch
State, no longer repeat one by one herein.
In embodiments of the present invention, the first data equipment can determine when receiving and completing network request and complete the net
The request end time of network request, and the request end time is fed back into proxy server by network response, so that generation
Server is managed during handling network request, can monitor to obtain the request address of processing network request, request
The data such as initial time and request end time.Using the request address as tracking path, and using request initial time and ask
Ask the end time that tracking path is marked, i.e., can be easy to carry out the process for handling network request according to the tracking path
Analysis, data support is provided for the process of optimization processing network request, improves the efficiency and reliability of processing network request.
Embodiment three
Reference picture 5, show a kind of step flow chart of the method for monitoring network request in the embodiment of the present invention.The party
Method is applied in the interacting of proxy server and the first data equipment, and specific steps include:
Step 501, when the proxy server receives network request, detect described in whether being carried in the network request
The request initial time of network request.
Wherein, the mode of request initial time whether is carried in proxy server detection network request, may refer to foregoing
In associated description, no longer repeat one by one herein.
Due to request initial time detect, ability be in order to determine whether the network request is start to process, so,
In embodiments of the present invention, it is preferred that can detect and whether be carried in the network request in tracking mark and request initial time
It is at least one, if it is not, then the network request ability start to process can be determined, if it is, the network request can be determined
It is not ability start to process.
Tracking mark can be generated by the proxy server for the request initial time for generating the network request, for the net
Network request tracking path be identified, in order to according to the tracking mark find exactly corresponding to tracking path, to enter
One step is easy to rapidly and accurately find the tracking path of corresponding network request according to tracking mark, so as to handling the ad hoc networks
The process of network request, which optimizes, provides data support.
The 3rd field can be set to illustrate tracking mark in the header of network request in advance, so as to the 3rd
Field is detected.If there is the 3rd field, it is determined that network request carries tracking mark, if there is no the 3rd word
Section, it is determined that do not carry tracking mark in network request.
Step 502, if not carrying the request initial time in the network request, the proxy server will be current
Moment is defined as the request initial time.
Wherein it is determined that request initial time mode may refer to it is foregoing in associated description, no longer repeat one by one herein.
In embodiments of the present invention, it is preferred that if the request initial time is not carried in the network request, generation
The tracking mark of the network request.
Proxy server can generate tracking mark, and the tracking is identified to the 3rd field of write-in network request.
In embodiments of the present invention, it is preferred that the request address of the network request can also be write thing by proxy server
In the 4th field first set.
For example, in such as Fig. 1, proxy server A receives network request 1, and the first word in the header of network request 1
Section and the 3rd field are sky, i.e., do not carry request initial time and tracking identifies, so, generation tracking is identified as
ZhuizongID1, generation request initial time is 1496570852610, by the head of 1496570852610 write-in network requests 1
The first field in information, the 3rd field zhuizongID1 write in the header of network request 1, by http://
The 4th field in the header of api.vip.com/services/ck.action write-in network requests 1.
In embodiments of the present invention, it is preferred that due to during network request is handled, more than one may be called
Sub-network request, the network request is father's network request of sub-network request, therefore, the network request for convenience of description
For father's network request, to guarantee to illustrate call relation between each network request by subsequent step, acquisition processing is improved
The accuracy of the data of network request process, the proxy server can also generate father's mark, and father's mark write-in is set in advance
The 5th field put.
Father's mark is used to illustrate that network request is father's network request, and father's mark can include a character or character string, than
Such as, father's mark can be English alphabet or numeral.
In addition, from the foregoing it will be appreciated that proxy server can detect whether carried in network request tracking mark and ask
At least one in time beginning, therefore, if not carrying tracking mark and request initial time in the network request, generation is asked
Initial time and tracking is asked to identify;If at least one in carrying tracking mark and request initial time, request is not generated
Initial time and tracking are identified, but network request directly is sent into the first data equipment.
Step 503, the network request is sent to first data equipment by the proxy server.
Network request can be sent to the first data equipment by proxy server, so that the first data equipment being capable of basis
The network request carries out business processing.
Step 504, when first data equipment receives and completes the network request, institute will be defined as current time
State the request end time of network request.
In embodiments of the present invention, it is preferred that in order to illustrate the network request handle successfully, failure or its
Its state, request responsive state can be determined according to the process of processing network request.
Wherein, request responsive state can be identified by character or character string, such as, 200 can represent to handle successfully,
404 can represent that the network request is not responded.
In embodiments of the present invention, it is preferred that from the foregoing it will be appreciated that during processing network request, son may be called
Network request, therefore, in order to further illustrate processing network request during the call relation of each sub-network request (act on behalf of
Call relation between server and the first data equipment), provide data branch to be optimized to the process for handling network request
Hold, the first data equipment can generate at least one sub-network request, and will be defined as at current time according to the network request
The son request initial time of each sub-network request, the sub- request address asked according to each sub-network, from least one second data
The sub-network response for the request of each sub-network is obtained in equipment, to carry out business processing, each sub-network to the network request
The son request end time of corresponding sub-network request is carried in response.
First data equipment can be previously stored the call relation between each request address, and receive father's network request
When, according to the request address of father's network request carrying, required adjust is searched from the call relation between each request address of storage
At least one request address, so as to according at least one request address, determine at least one sub-network of father's network request
Request.Certainly, in actual applications, the first data equipment can also come according to the generation of father's network request at least otherwise
One sub- network request.
First data equipment can be by the proxy server or other proxy servers, will according to each request address
At least one sub-network request is sent at least one second data equipment, so as to be obtained from least one second data equipment
Take the sub-network response for the request of each sub-network.
Wherein, the first data equipment respectively can ask each sub-network sub- request address, sub- request initial time are write
In the header for entering sub-network request, it is, of course, also possible to which the tracking mark of father's network request, request address, request are originated
Time etc. is write in the header of sub-network request.
6th field can be set in the header of network request in advance, to store father's network request of the network request
Tracking mark, request address, the request data such as initial time, and the son request ground of the sub-network request of the network request
The data such as location, sub- request initial time.
For example, in such as Fig. 1, data equipment A receives network request 1, and tracking mark is carried in network request 1
ZhuizongID1, request initial time 1496570852610, request address http://api.vip.com/services/
Ck.action, data equipment A is according to http://api.vip.com/services/ck.action determines processing network request 1
The request address for also needing to call is http://cm.iqiyi.com/user/vinfo.action and http://
Serv.iqiyi.com/level.action, therefore sub-network request 1 and sub-network request 2 are generated, wherein, sub-network request 1
It is middle to carry sub- request address http://cm.iqiyi.com/user/vinfo.action, sub- request initial time
1496570852620, and identify zhuizongID1, request initial time as the tracking of the network request 1 of father's network request
1496570852610th, request address http://api.vip.com/services/ck.action;Carried in sub-network request 2
Sub- request address http://serv.iqiyi.com/level.action, sub- request initial time 1496570852635, and
As the tracking mark zhuizongID1 of the network request 1 of father's network request, request initial time 1496570852610, request
Address http://api.vip.com/services/ck.action.Data equipment A please by sub-network by proxy server B
Ask 1 to be sent to data equipment B, sub-network request 2 is sent to by data equipment C by proxy server C.
In embodiments of the present invention, it is preferred that in order to accurately illustrate during handling network request, the tune of each network request
With relation, data support is provided further to be optimized for processing network request process, the first data equipment can determine institute
State the set membership mark of network request and the request of each sub-network.
Set membership mark can include father's mark and sub-mark, so as to illustrate that network request and each sub-network ask it
Between set membership.
Wherein, the form of father's mark and sub-mark can be with identical.For example, father's mark is 1, then sub-mark can be 1.1,
1.2 wait;Father's mark is A, then sub-mark can be A.A, A.B etc..
From the foregoing it will be appreciated that proxy server can generate the father's mark of network request, so, the first data equipment can be straight
The sub-mark for generating each sub-network according to the father's mark and asking is connect, and sub-mark can be write in the 5th field.Of course, it is possible to it is
The father's mark of the network request is generated by the first data equipment, the son that each sub-network request is generated according to the father's mark is marked
Know.
In addition, the mode of the second data equipment processing sub-network request, may be referred to the first data equipment processing network please
The mode asked, is no longer repeated one by one herein.
Step 505, first data equipment sends the network sound for the network request to the proxy server
Should, carry the request end time in the network response.
In embodiments of the present invention, it is preferred that the first data equipment can be by the son of at least one sub-network request
Request address, sub- request initial time and son request end time respond added to the network, i.e., in described network response also
Sub- request address, sub- request initial time and son request end time, each sub-network for carrying at least one sub-network request please
Ask the sub-network request for the network request.
In embodiments of the present invention, it is preferred that the first data equipment can ask the network request and each sub-network
Set membership mark responded added to the network, i.e., also carry the network request and each sub-network in network response
The set membership mark of request.
In embodiments of the present invention, it is preferred that the first data equipment can respond request responsive state added to network,
I.e. described network response also carries request responsive state.
The request responsive state of the network request (i.e. father's network request) can be carried in network response, of course, it is possible to
The son request responsive state of sub-network request, and the son request responsive state that each sub-network is asked are obtained from sub-network response
In being responded added to network.Wherein, the request responsive state of the network request can write the 7th field set in advance, each son
The request responsive state of request can write the 6th field.
Certainly, in actual applications, in order to improve the efficiency that proxy server obtains the data of processing network request process,
The request address for the network request that first data equipment can also include the header of network request, ask initial time etc.
Information is also added in network response.
Wherein, above-mentioned first field, the second field, the 3rd be may each comprise in network request and the header of network response
Field, the 4th field, the 5th field, the 6th field and the 7th field, so as to carry above-mentioned request address, request starting when
Between, request the end time, father's mark, request responsive state, tracking mark, and sub-network request sub- request address, son please
Seek the information such as initial time, sub- request end time.
For example, in such as Fig. 1, the request address of father's network request can be carried in the network response 1 of data equipment A feedbacks
http://api.vip.com/services/ck.action, father's mark 1, request initial time 1496570852610, request
End time 1496570852650, and the sub- request address http of sub-network request 1://cm.iqiyi.com/user/
Vinfo.action, sub- request initial time 1496570852620, sub- request end time 1496570852630, sub-mark
1.1, and the sub- request address http of sub-network request 2://serv.iqiyi.com/level.action, sub- request starting
Time 1496570852635, sub- request end time 1496570852640, sub-mark 1.2.
In addition, in another preferred embodiment of invention, the request end time of network request can be by proxy server
When receiving the network response for the network request, it is defined as the request end time of the network request at the time of will be current
Obtain.
Step 506, the request address is defined as the tracking path of the network request by the proxy server, and adopts
The tracking path is marked with the request initial time and the request end time.
In embodiments of the present invention, it is preferred that for the ease of determining the state of processing network request, improve to handling network
The accuracy that request process is monitored, the process that network request whether is handled in order to accurate judgement optimize, further
The efficiency and reliability of processing network request is improved, the request responsive state can be used to mark the tracking path.
In embodiments of the present invention, it is preferred that inquired about for the ease of the tracking subsequently to each network request, or,
Data support is carried out to carrying out the other analyses relevant with processing network request or processing, the tracking mark mark can be used
The tracking path.
Certainly, in actual applications, it can not also use tracking mark that tracking path is marked, but store tracking
Corresponding relation between mark and tracking path.
In embodiments of the present invention, it is preferred that during the processing network request that explains in precise term, each network request
Call relation, and then determine to handle each proxy server call relation (such as topological diagram etc.) during the network request, can be with
The request address, each sub- request address are defined as the tracking path of the network request, and described ask is respectively adopted
Time, request end time, the sub- request initial time and the sub- request end time begin to the tracking path
It is marked.
Wherein it is possible to by asking initial time and request end time, rower is entered to the request address in tracking path
Note;By sub- request initial time and son request end time, the sub- request address in tracking path is marked.
In embodiments of the present invention, it is preferred that the father and son of the network request and the request of each sub-network can be respectively adopted
The tracking path is marked relation identity.
Wherein it is possible to which request address is marked by father's mark, sub- request address is marked by sub-mark.
The sub- request address in the tracking path is entered it is, of course, also possible to ring state using the son request of sub-network request
Line flag.
For example, in such as Fig. 2, the tracking for the network request 1 that proxy server A is obtained is identified as zhuizongID1, tracking
Path is (http://api.vip.com/services/ck.action, 1496570852610,1496570852650),
(http://cm.iqiyi.com/user/vinfo.action, 1496570852620,1496570852630), (http://
Serv.iqiyi.com/level.action, 1496570852635,1496570852640) data format in path, that is, is followed the trail of
For (request address, asking initial time, ask the end time), (sub- request address, sub- request initial time, sub- request terminate
Time);Or in another form, tracking path is (1, http://api.vip.com/services/ck.action,
1496570852610,1496570852650)), (1.1, http://cm.iqiyi.com/user/vinfo.action,
1496570852620,1496570852630), (1.2, http://serv.iqiyi.com/level.action,
1496570852635,1496570852640) data format for, that is, following the trail of path is (father's mark, the request of father's network request
Location, initial time is asked, asks the end time), (sub-mark, sub- request address, sub- request initial time, at the end of sub- request
Between).
In embodiments of the present invention, first, proxy server can be detected in network request when receiving network request
Whether carrying request initial time, and when generating the request starting when not carrying in the network request request initial time
Between.Secondly, the first data equipment it is determined that asking the end time, and request can be tied when receiving and completing the network request
The beam time carries feeds back to proxy server in network response.Therefore, during handling network request, agency
Server can monitor to obtain the data such as the request address of processing network request, request initial time and request end time.Will
Tracking path is marked as tracking path, and using request initial time and request end time for the request address, i.e.,
It can be easy to analyze the process for handling network request according to the tracking path, be carried for the process of optimization processing network request
Data support has been supplied, has improved the efficiency and reliability of processing network request.
In addition, proxy server can enable proxy server by following the trail of mark to being marked in the tracking path
Enough tracking paths for rapidly and accurately finding processing particular network request, and then according to the tracking path to handling network request
Process analyzed or optimized, with it is further improve handle network request efficiency and reliability.
In addition, proxy server will can handle the request address of father's network request that is called during network request and
The sub- request address of each sub-network request is used as tracking path, and by asking initial time, request end time, set membership
Mark, request responsive state, sub- request initial time and son request end time etc., the tracking path was marked, so as to
Enough explain in precise term during processing network request, the call relation of each network request, that is, determine each proxy server or number
According to the call relation of equipment, and the information such as time of business processing is carried out by each network request, so as to further be easy to pair
The process of processing network request is analyzed or optimized.
It should be noted that for foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know,
Embodiment described in this description belongs to preferred embodiment, and involved action is not necessarily essential to the invention.
The application is more fully understood for the ease of those skilled in the art, below by way of a specific example to the present invention
A kind of method of processing network request of embodiment illustrates, and reference picture 6, specifically comprises the following steps:
Step 601, client sends network request 1 to proxy server A, and the request address carried in network request 1 is
http://api.vip.iqiyi.com/service/ck.action。
Step 602, proxy server A receives network request 1, and detect do not carried in network request 1 tracking mark,
Ask the information such as initial time.
Step 603, proxy server A generates the tracking mark of network request 1, request initial time, and the tracking is marked
Knowledge, request address, request initial time are write in the header of the network request 1, and network request 1 is sent into real server
A。
Real server is the actual data equipment that business processing is carried out according to network request 1.
Wherein, tracking is identified as 123s24ef2343-09329832, request address http://
Api.vip.iqiyi.com/service/ck.action, request initial time are 120.
Step 604, real server A receives network request 1 and feedback network responds when handling completion.
Wherein, real server A can be handled network request 1 by the associated description in following sub-steps.
Sub-step 6041, real server A judge whether to need to call sub-network request, if it is perform sub-step
6042, if otherwise performing step 6048.
Sub-step 6042, real server determine calling sub-network request 1, and the request address of sub-network request 1 is
http://cm.passport.com/services/vinfo.action。
Sub-step 6043, tracking mark that real server carries network request 1, request address, request initial time
The header of sub-network request 1 is write, and generates the son request initial time of sub-network request 1, the son by sub-network request 1 please
In the header for asking the son request initial time write-in sub-network request 1 of address and generation, sub-network request 1 is sent to agency
Server B.
Wherein, the tracking mark 123s24ef2343- of father's network request is carried in the header of sub-network request 1
09329832, the request address of father's network request is http://api.vip.iqiyi.com/service/ck.action, please
It is 120 to seek initial time;Also carry the http of sub- request address://cm.passport.com/services/
Vinfo.action, sub- request initial time 140.
Step 6044, proxy server B receives sub-network request 1, detects and tracking mark is carried in sub-network request 1
Know and ask initial time, sub-network request 1 is sent to real server B.
Step 6045, real server B receives sub-network request 1, carries out business processing according to sub-network request 1, really
Surely the end time is asked, the sub-network that sub-network request 1 is sent to real server B responds.
Wherein, the tracking mark of father's network request is carried in the header of the sub-network response of sub-network request 1
123s24ef2343-09329832, the request address of father's network request is http://api.vip.iqiyi.com/service/
Ck.action, request initial time are 120;Also carry sub- request address http://cm.passport.com/
Services/vinfo.action, sub- request initial time 140, son is asked to ask end time 150, sub- request responsive state 200.
Step 6046, proxy server B receives the sub-network response of sub-network request 1, and the network is responded into what is carried
The tracking mark 123s24ef2343-09329832 of father's network request, the request address of father's network request is http://
Api.vip.iqiyi.com/service/ck.action, request initial time are 120;Also carry sub- request address
http://cm.passport.com/services/vinfo.action, sub- request initial time 140, sub- request end time
150, the information such as sub- request responsive state 200 is stored into daily record, and network response is sent into real server A.
Step 6047, real server A receives the sub-network response of sub-network request 1, and network request 1 is carried out at business
Reason, it is determined that the request end time, the network that network request 1 is sent to proxy server A responds.
Wherein, real server A can ask sub-network the 1 sub- request address carried, request initial time, sub- request
In the network response of end time and son request responsive state write-in network request 1, and the tracking of network request 1 is identified, please
Ask address, request initial time, request end time and the network response for asking responsive state write-in network request 1.Now, should
The tracking mark 123s24ef2343-09329832 of father's network request, the request address of father's network request are carried in network response
For http://api.vip.iqiyi.com/service/ck.action, request initial time be 120, request the end time be
150, request responsive state is 200;Also carry sub- request address http://cm.passport.com/services/
Vinfo.action, sub- request initial time 140, sub- request end time 150, sub- request responsive state 200.
The above-mentioned process for only calling a sub- network request during network request 1 is handled using real server A as
Example illustrates, and in practical application, real server A can call more or less sub-networks to ask, such as, also call son
Network request 2, by proxy server C, the sub-network response of sub-network request 2 is obtained from real server C.Certainly, very
Real server B or C may determine whether to call sub-network request etc..
Step 6048, real server A is according to network request 1, it is determined that the request end time, sends to proxy server A
Network of network responds.
Due to no calling sub-network request, so, real server A can identify the tracking of network request 1
123s24ef2343-09329832, the request address http of father's network request://api.vip.iqiyi.com/service/
Ck.action, initial time 120 is asked, ask the end time 150, write in the header of network response, and can be with root
According to the processing procedure to network request 1, it is determined that responsive state is asked, such as 200 or 404 etc., and will request responsive state write-in
In the header of network response.
Step 6049, real server A receives the network response of network request 1, and the network is responded into the above-mentioned of carrying
Information is stored into daily record, and network response is sent into client.
For example, the above- mentioned information that real server can store network response carrying in daily record is:Tracking mark
123s24ef2343-09329832, follow the trail of path (http://api.vip.iqiyi.com/service/ck.action,
120,160,200, (http://cm.passport.com/services/vinfo.action, 140,150,200)).Due to
The tracking path is understood, during handling network request 1, two request address is have invoked, including a son
Request address, a length of 10 when being taken by sub- request address processing business, business processing is carried out to network request 1 and takes total duration
For 40.Or the tracking path stored is (http://api.vip.iqiyi.com/service/ck.action, 120,
160,200), from the tracking path, during handling network request 1, never call sub-network is asked, and to net
It is 40 that network request 1, which carries out business processing and takes total duration,.
Wherein, initial time, request end time, request responsive state is asked to be used to request address be marked,
Son request initial time and son request end time are used to sub- request address be marked.
Example IV
Reference picture 7, show a kind of structured flowchart of the device of monitoring network request in the embodiment of the present invention.
Described device is applied in proxy server, can include:
Detection module 701, for when receiving network request, detect whether carried in the network request network please
The request initial time asked;
First determining module 702, if for not carrying the request initial time in the network request, when will be current
It is defined as the request initial time quarter;
Acquisition module 703, the net is directed to for obtaining the first data equipment according to the request address of the network request
The network response of network request, the network response carry the request end time of the network request;
Second determining module 704, for the request address to be defined as to the tracking path of the network request, and use
The request initial time and the request end time mark the tracking path.
Optionally, the network response also carries request responsive state;
Described device also includes:
First mark module, for marking the tracking path using the request responsive state.
Optionally, described device also includes:
Generation module, if for not carrying the request initial time in the network request, generating the network please
The tracking mark asked;
Second mark module, for marking the tracking path using the tracking mark.
Optionally, sub- request address, the sub- request starting of at least one sub-network request are also carried in the network response
Time and son request end time, each sub-network request are asked for the sub-network of the network request;
Described device also includes:
3rd determining module, for the request address, each sub- request address to be defined as to the tracking of the network request
Path, and the request initial time, the request end time, the sub- request initial time and the son is respectively adopted and asks
Ask the end time that the tracking path is marked.
Optionally, the set membership mark of the network request and the request of each sub-network is also carried in the network response;
3rd mark module, the set membership for the network request and the request of each sub-network to be respectively adopted are identified to institute
Tracking path is stated to be marked.
In embodiments of the present invention, first, proxy server can be examined when receiving network request by detection module
By the when surveying in network request and whether carry request initial time, and not carrying in the network request request initial time
One determining module determines the request initial time.Secondly, proxy server can by acquisition module according to request address from the
One data equipment obtains the network response for the network request, and carries the request end time in network response.Therefore, exist
During handling network request, proxy server can monitor to obtain the request address of processing network request, request
The data such as initial time and request end time.Tracking path is regard the request address as by the second determining module, and used
Request initial time and request end time, tracking path was marked, i.e., can be easy to according to the tracking path to handling net
The process of network request is analyzed, and provides data support for the process of optimization processing network request, improving processing network please
The efficiency and reliability asked.
Embodiment five
Reference picture 8, show a kind of structured flowchart of the device of processing network request in the embodiment of the present invention.
Described device is applied in the first data equipment, can include:
First determining module 801, please for that when receiving and completing network request, will be defined as the network current time
The request end time asked;
Sending module 802, for sending the network response for the network request to proxy server, the network rings
Should in carry request end time so that the proxy server is when receiving the network response, by the network
The request address of request is defined as the tracking path of the network request, and using the network request request initial time and
The request end time, the tracking path was marked.
Optionally, described device also includes:
Second determining module, for determining the request responsive state of the network request;
First add module, for the request responsive state to be responded added to the network, so that agency's clothes
The tracking path is marked using the request responsive state for business device.
Optionally, described device also includes:
3rd determining module, for according to the network request, generating at least one sub-network request, and by current time
It is defined as the son request initial time of each sub-network request;
Acquisition module, for the sub- request address asked according to each sub-network, obtained from least one second data equipment
The sub-network response for the request of each sub-network is taken, to carry out business processing to the network request, is taken in each sub-network response
The son request end time with the request of corresponding sub-network;
Second add module, for by the sub- request address of at least one sub-network request, sub- request initial time
Responded with the sub- request end time added to the network.
Optionally, described device also includes:
4th determining module, for determining the set membership mark of the network request and the request of each sub-network;
3rd add module, it is described for the set membership mark of the network request and the request of each sub-network to be added to
Network responds, so that the set membership that the proxy server is asked using the network request and each sub-network is identified to described
Tracking path is marked.
Optionally, the 4th determining module includes:
First generation submodule, for generating the father's mark of the network request;
Second generation submodule, for generating the sub-mark of each sub-network request according to the father's mark.
In embodiments of the present invention, the first data equipment can determine when receiving and completing network request by first
Module determines to complete the request end time of the network request, and is rung the request end time by network by sending module
Proxy server should be fed back to, so that proxy server during network request is handled, can monitor to obtain
Handle the data such as request address, request initial time and the request end time of network request.Using the request address as tracking
Path, and tracking path is marked using request initial time and request end time, i.e., it can be easy to according to the tracking
Path is analyzed the process for handling network request, is provided data support for the process of optimization processing network request, is improved
The efficiency and reliability of processing network request.
For the device embodiment of above-mentioned monitoring network request, because it is substantially similar to embodiment of the method, so
What is described is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It would have readily occurred to a person skilled in the art that be:Any combination application of above-mentioned each embodiment is all feasible, therefore
Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited,
This is not just detailed one by one.
The method for monitoring network request provided herein is not consolidated with any certain computer, virtual system or miscellaneous equipment
There is correlation.Various general-purpose systems can also be used together with teaching based on this.As described above, construction has this hair
Structure required by the system of bright scheme is obvious.In addition, the present invention is not also directed to any certain programmed language.Should
Understand, the content of invention described herein can be realized using various programming languages, and language-specific is done above
Description is to disclose the preferred forms of the present invention.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself
The separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Mode it can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize one in processing network request scheme according to embodiments of the present invention
The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such realization
The program of the present invention can store on a computer-readable medium, or can have the form of one or more signal.This
The signal of sample can be downloaded from internet website and obtained, and either provided on carrier signal or carried in the form of any other
For.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (20)
- A kind of 1. method for monitoring network request, it is characterised in that applied in proxy server, including:When receiving network request, the request initial time that the network request whether is carried in the network request is detected;If not carrying the request initial time in the network request, when will be defined as the request starting current time Between;The first data equipment is obtained according to the request address of the network request to respond for the network of the network request, it is described Network response carries the request end time of the network request;The request address is defined as to the tracking path of the network request, and using the request initial time and it is described please The end time is asked to mark the tracking path.
- 2. according to the method for claim 1, it is characterised in that the network response also carries request responsive state;It is described the request address is defined as the tracking path of the network request after, in addition to:The tracking path is marked using the request responsive state.
- 3. according to the method for claim 1, it is characterised in that whether carried in the detection network request described After the request initial time of network request, in addition to:If not carrying the request initial time in the network request, the tracking mark of the network request is generated;It is described the request address is defined as the tracking path of the network request after, in addition to:The tracking path is marked using the tracking mark.
- 4. according to the method for claim 1, it is characterised in that also carrying at least one sub-network in the network response please Sub- request address, sub- request initial time and the son request end time asked, each sub-network request are the son of the network request Network request;Methods described also includes:The request address, each sub- request address are defined as the tracking path of the network request, and described ask is respectively adopted Initial time, request end time, the sub- request initial time and the sub- request end time are asked to the tracking Path is marked.
- 5. according to the method for claim 4, it is characterised in that the network request and each is also carried in network response The set membership mark of sub-network request;It is described the request address, each sub- request address are defined as the tracking path of the network request after, in addition to:The tracking path is marked the set membership mark that the network request and the request of each sub-network is respectively adopted.
- A kind of 6. method for monitoring network request, it is characterised in that applied in the first data equipment, including:When receiving and completing network request, be defined as to the request end time of the network request current time;The network response for the network request is sent to proxy server, carrying the request in the network response terminates Time, so that the request address of the network request is defined as by the proxy server when receiving the network response The tracking path of the network request, and the request initial time of the use network request and the request end time are to institute Tracking path is stated to be marked.
- 7. according to the method for claim 6, it is characterised in that please for the network in described sent to proxy server Before the network response asked, in addition to:Determine the request responsive state of the network request;The request responsive state is responded added to the network, so that the proxy server responds shape using the request The tracking path is marked state.
- 8. according to the method for claim 6, it is characterised in that current time is defined as the network request described Before asking the end time, in addition to:According to the network request, at least one sub-network request is generated, and current time is defined as each sub-network request Son request initial time;The sub- request address asked according to each sub-network, obtain from least one second data equipment and asked for each sub-network Sub-network response, to carry out business processing to the network request, corresponding sub-network request is carried in the response of each sub-network Son request the end time;Sub- request address, sub- request initial time and the son request end time of at least one sub-network request are added to The network response.
- 9. according to the method for claim 8, it is characterised in that described at least one according to the network request, generation After sub-network request, in addition to:Determine the set membership mark of the network request and the request of each sub-network;The set membership mark that the network request and each sub-network are asked is responded added to the network, so that the agency The tracking path is marked the set membership mark that server is asked using the network request and each sub-network.
- 10. according to the method for claim 9, it is characterised in that the determination network request and the request of each sub-network Set membership mark include:Generate the father's mark of the network request;The sub-mark of each sub-network request is generated according to the father's mark.
- A kind of 11. device for monitoring network request, it is characterised in that applied in proxy server, including:Detection module, asking for the network request whether is carried in the network request for when receiving network request, detecting Seek initial time;First determining module, if for not carrying the request initial time in the network request, it will determine at current time For the request initial time;Acquisition module, for obtaining the first data equipment for the network request according to the request address of the network request Network responds, and the network response carries the request end time of the network request;Second determining module, for the request address to be defined as to the tracking path of the network request, and use described ask Initial time and the request end time is asked to mark the tracking path.
- 12. device according to claim 11, it is characterised in that the network response also carries request responsive state;Described device also includes:First mark module, for marking the tracking path using the request responsive state.
- 13. device according to claim 11, it is characterised in that described device also includes:Generation module, if for not carrying the request initial time in the network request, generate the network request Tracking mark;Second mark module, for marking the tracking path using the tracking mark.
- 14. device according to claim 11, it is characterised in that also carry at least one sub-network in the network response Sub- request address, sub- request initial time and the son request end time of request, each sub-network request is the network request Sub-network is asked;Described device also includes:3rd determining module, for the request address, each sub- request address to be defined as to the tracking path of the network request, And the request initial time, request end time, the sub- request initial time and the sub- request knot is respectively adopted The beam time, the tracking path was marked.
- 15. device according to claim 14, it is characterised in that also carried in the network response network request and The set membership mark of each sub-network request;3rd mark module, the set membership mark for the network request and the request of each sub-network to be respectively adopted chase after to described Track path is marked.
- A kind of 16. device for monitoring network request, it is characterised in that applied in the first data equipment, including:First determining module, for when receiving and completing network request, being defined as into asking for the network request current time Ask the end time;Sending module, for sending the network response for the network request to proxy server, taken in the network response With the request end time, so that the proxy server is when receiving the network response, by the network request Request address is defined as the tracking path of the network request, and using the network request request initial time and it is described please Ask the end time that the tracking path is marked.
- 17. device according to claim 16, it is characterised in that described device also includes:Second determining module, for determining the request responsive state of the network request;First add module, for the request responsive state to be responded added to the network, so that the proxy server The tracking path is marked using the request responsive state.
- 18. device according to claim 16, it is characterised in that described device also includes:3rd determining module, for according to the network request, generating at least one sub-network request, and will determine at current time For the son request initial time of each sub-network request;Acquisition module, for the sub- request address asked according to each sub-network, pin is obtained from least one second data equipment The sub-network of each sub-network request is responded, to carry out business processing to the network request, phase is carried in each sub-network response The son request end time for the sub-network request answered;Second add module, for sub- request address, sub- request initial time and the son for asking at least one sub-network The end time is asked to be responded added to the network.
- 19. device according to claim 18, it is characterised in that described device also includes:4th determining module, for determining the set membership mark of the network request and the request of each sub-network;3rd add module, for the network request and the set membership mark of each sub-network request to be added into the network Response, so that the set membership that the proxy server is asked using the network request and each sub-network is identified to the tracking Path is marked.
- 20. device according to claim 19, it is characterised in that the 4th determining module includes:First generation submodule, for generating the father's mark of the network request;Second generation submodule, for generating the sub-mark of each sub-network request according to the father's mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710833971.8A CN107483294B (en) | 2017-09-15 | 2017-09-15 | Method and device for monitoring network request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710833971.8A CN107483294B (en) | 2017-09-15 | 2017-09-15 | Method and device for monitoring network request |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107483294A true CN107483294A (en) | 2017-12-15 |
CN107483294B CN107483294B (en) | 2020-06-19 |
Family
ID=60584517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710833971.8A Active CN107483294B (en) | 2017-09-15 | 2017-09-15 | Method and device for monitoring network request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107483294B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109561457A (en) * | 2018-12-21 | 2019-04-02 | 海南新软软件有限公司 | A kind of method, apparatus and system of client network optimization |
CN109657485A (en) * | 2018-12-13 | 2019-04-19 | 广州虎牙信息科技有限公司 | Permission processing method, device, terminal device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100169479A1 (en) * | 2008-12-26 | 2010-07-01 | Electronics And Telecommunications Research Institute | Apparatus and method for extracting user information using client-based script |
CN101808017A (en) * | 2010-03-26 | 2010-08-18 | 中国科学院计算技术研究所 | Method and system for quantificationally calculating network abnormity index |
CN102437935A (en) * | 2011-12-16 | 2012-05-02 | 江西省电力公司信息通信中心 | WEB application monitoring method and equipment |
US8185621B2 (en) * | 2007-09-17 | 2012-05-22 | Kasha John R | Systems and methods for monitoring webpages |
CN102684934A (en) * | 2011-03-17 | 2012-09-19 | 阿里巴巴集团控股有限公司 | Method and system for monitoring property of web application program and web server |
CN105978723A (en) * | 2016-05-11 | 2016-09-28 | 广州唯品会信息科技有限公司 | Network information management method and device |
-
2017
- 2017-09-15 CN CN201710833971.8A patent/CN107483294B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8185621B2 (en) * | 2007-09-17 | 2012-05-22 | Kasha John R | Systems and methods for monitoring webpages |
US20100169479A1 (en) * | 2008-12-26 | 2010-07-01 | Electronics And Telecommunications Research Institute | Apparatus and method for extracting user information using client-based script |
CN101808017A (en) * | 2010-03-26 | 2010-08-18 | 中国科学院计算技术研究所 | Method and system for quantificationally calculating network abnormity index |
CN102684934A (en) * | 2011-03-17 | 2012-09-19 | 阿里巴巴集团控股有限公司 | Method and system for monitoring property of web application program and web server |
CN102437935A (en) * | 2011-12-16 | 2012-05-02 | 江西省电力公司信息通信中心 | WEB application monitoring method and equipment |
CN105978723A (en) * | 2016-05-11 | 2016-09-28 | 广州唯品会信息科技有限公司 | Network information management method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109657485A (en) * | 2018-12-13 | 2019-04-19 | 广州虎牙信息科技有限公司 | Permission processing method, device, terminal device and storage medium |
CN109561457A (en) * | 2018-12-21 | 2019-04-02 | 海南新软软件有限公司 | A kind of method, apparatus and system of client network optimization |
CN109561457B (en) * | 2018-12-21 | 2022-07-19 | 海南新软软件有限公司 | Method, device and system for optimizing client network |
Also Published As
Publication number | Publication date |
---|---|
CN107483294B (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11539578B2 (en) | Generating actionable alert messages for resolving incidents in an information technology environment | |
US10951500B2 (en) | Method and apparatus for warning | |
CN110149423B (en) | Domain name processing method and device, readable storage medium and electronic equipment | |
KR102076862B1 (en) | Network performance indicator visualization method and apparatus, and system | |
KR102076861B1 (en) | Network performance diagnosis method and apparatus, and system | |
CN108153670A (en) | A kind of interface test method, device and electronic equipment | |
CN105099811A (en) | Interface testing method and device | |
CN107003877A (en) | The context deep-link of application | |
US9929930B2 (en) | Reducing an amount of captured network traffic data to analyze | |
US9554323B2 (en) | Generating sequenced instructions for connecting through captive portals | |
CN108900388A (en) | Method and apparatus for monitor network quality | |
CN110187983A (en) | A kind of remote invocation method, device and electronic equipment | |
CN109639809A (en) | A kind of method and device of service data request link monitoring | |
CN112954089B (en) | Method, device, equipment and storage medium for analyzing data | |
EP3609134A1 (en) | Bgp anycast cluster service quality detection method and detection apparatus | |
CN112311620A (en) | Method, apparatus, electronic device and readable medium for diagnosing network | |
CN107171889A (en) | Network application interface test method and device and electronic equipment | |
CN107483294A (en) | Monitor the method and device of network request | |
US11470167B2 (en) | Method and apparatus for generating information | |
CN115705190A (en) | Method and device for determining dependence degree | |
Golla et al. | T4: A highly threaded server-on-a-chip with native support for heterogeneous computing | |
CN109698774A (en) | Method and device for monitoring device working condition | |
CN108345508A (en) | Interface calls test method and device | |
US8935410B2 (en) | Cobrowsing macros | |
US11630756B2 (en) | Methods and systems for measuring user and system metrics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |