WO2017041648A1 - 用于处理应用请求的方法与设备 - Google Patents

用于处理应用请求的方法与设备 Download PDF

Info

Publication number
WO2017041648A1
WO2017041648A1 PCT/CN2016/097491 CN2016097491W WO2017041648A1 WO 2017041648 A1 WO2017041648 A1 WO 2017041648A1 CN 2016097491 W CN2016097491 W CN 2016097491W WO 2017041648 A1 WO2017041648 A1 WO 2017041648A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
information
target
application
target application
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.)
Ceased
Application number
PCT/CN2016/097491
Other languages
English (en)
French (fr)
Inventor
王笑臣
陈传文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2017041648A1 publication Critical patent/WO2017041648A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Definitions

  • the present invention relates to the field of computers, and in particular, to a technique for processing an application request.
  • the Internet is increasingly integrated into more fields, such as e-commerce, digital city construction, enterprise data management, medical field, Internet finance, etc. Users can achieve more efficient, user-friendly and diversified experiences, improve the technical content of social public facilities construction, and meet the needs of people increasingly pursuing high-quality life.
  • Internet-based application products generally require users to access corresponding content in their corresponding servers through the application's access interface, for example, by going to HTTP ( The Hyper Text Transfer Protocol) server issues HTTP access requests and the like.
  • HTTP The Hyper Text Transfer Protocol
  • new Internet-based products need online real-time request traffic for functional testing or stress testing before going online. How to ensure the overall performance of the product, its server can withstand The amount of visits, etc., will be a key issue.
  • the request flow test software needs to be installed separately; when the test system has a problem, the introduction of the request traffic cannot be stopped in time; the request is not set. Traffic filtering process and more.
  • a method for processing an application request includes:
  • a device for processing an application request comprising:
  • a request parsing information obtaining apparatus configured to acquire request parsing information corresponding to an application request received by a current application device
  • a request parsing information filtering device configured to perform filtering processing on the request parsing information to obtain corresponding target request parsing information
  • a target application request constructing device configured to construct a corresponding target application request according to the target request parsing information
  • the target application request sending means is configured to send the target application request to the corresponding target application device.
  • the present application obtains request parsing information corresponding to an application request received by a current application device, for example, requesting a corresponding request method, a requested time, a domain name, a URL (Uniform Resource Locator), and the like. Filtering the request parsing information to obtain corresponding target request parsing information, parsing the target application request corresponding to the target request parsing information, and transmitting the target application request to the corresponding target application device, so that the target can be made
  • the application device performs corresponding analysis and processing on the obtained application request from the current application device, so as to implement detailed information about the application request received by the current application device, and also analyzes and determines that the current application device receives the corresponding request.
  • Information capabilities such as capabilities.
  • the application may also filter the request by using preset drainage policy information, obtain corresponding request traffic information, and perform corresponding testing or analysis, for example, filtering out a request that meets a certain request method, or filtering out the subscription request.
  • Request for time, etc. and if the target application device is a test system, the capability of the new product to withstand the request amount can be tested by obtaining the corresponding request information, and the corresponding current device is determined to respond to the application request.
  • the performance indicator is used to evaluate the performance of the current application device.
  • the target application device can also obtain the required request traffic information by using the solution of the present application, for example, the application request amount at a certain time point, to count the user corresponding to the time. Access to meet demand-based request volume information for further availability of other useful information.
  • the application may further determine the working state of the target application device according to the response condition of the target application device after receiving the target application request, and stop the target application request corresponding to the target request analysis information when the target application device is in the non-working state; Therefore, the configuration that the target application device is not in the working state and the target application request is no longer performed is implemented to save resources and improve the accuracy of the corresponding request flow information acquired by the target application device.
  • FIG. 1 shows a schematic diagram of an apparatus for processing an application request in accordance with an aspect of the present application
  • FIG. 2 shows a schematic diagram of an apparatus for processing an application request in accordance with a preferred embodiment of the present application
  • FIG. 3 shows a flow chart of a method for processing an application request in accordance with another aspect of the present application
  • FIG. 4 shows a flow diagram of a method for processing an application request in accordance with a preferred embodiment of the present application.
  • the terminal, the device of the service network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage,
  • computer readable media does not include non-transitory computer readable media, such as modulated data signals and carrier waves.
  • a method for processing an application request according to an aspect of the present application includes:
  • S1 acquires request resolution information corresponding to an application request received by the current application device
  • S3 constructs a corresponding target application request according to the target request parsing information
  • S4 sends the target application request to the corresponding target application device.
  • the current application device may include a server corresponding to an application request, for example, an HTTP request server, etc.; the target application device may include a test, a statistics, and an analysis a system device that requests an application request information received by a server corresponding to the application, for example, the test system is configured to test case information of the HTTP request server receiving the HTTP request, and the like; the application request may include a certain application layer protocol, for example, an HTTP protocol.
  • the SPDY speedy, TCP-based application layer protocol developed by Google
  • the access request information for accessing the current application device is used interchangeably according to a certain application layer protocol.
  • the request parsing information corresponding to the application request received by the current application device is obtained.
  • the manner of obtaining the request parsing information may include directly acquiring the application received by the current application device.
  • the requested request parsing information in this case, the current application device needs to parse the received application request to obtain the corresponding request parsing information, and may also include obtaining the application request information received by the current application device, and then applying the request to the application.
  • the request information is parsed, and the required information is obtained therefrom, for example, the requested time information, the requested method information, the requested content information, and the like.
  • the current application device does not affect the processing of the normal application by the current application device.
  • the request parsing information is filtered to obtain corresponding target request parsing information.
  • the request may be requested according to specific needs and applications. Parsing the information and filtering out the target request resolution information that meets the requirements for later processing; specifically, the filtering condition may be preset in the current application device, and the user may perform corresponding adjustment according to specific requirements, for example, may be parsed according to the request.
  • the time in which the application sends the request, the way the application is requested, and the specific request method of the application request are set.
  • the filtering of the request parsing information may be performed by comparing the request parsing information of the application request with a preset filtering condition, determining whether the preset condition is met, and meeting the preset condition, thereby becoming a target. Request to parse information.
  • the target application request corresponding to the target request parsing information is configured.
  • the device for processing the application request of the present application may be set in the current application device. and also Can be set separately.
  • the process of constructing the target application request in step S3 can be understood as a process of restoring the request parsing information, or a process of constructing the request parsing information into a form conforming to the transport protocol, for later transmission to the corresponding device system. Further processing. For example, if the current application device and the target application device perform data transmission based on the HTTP protocol, the request parsing information needs to be constructed as a complete HTTP request packet to be sent to Target application device.
  • the target application request is sent to the corresponding target application device, specifically, the specific manner of sending the target application request to the target application device in step S4, Performing in a wired or wireless connection manner with the target application device according to respective communication protocols, including but not limited to TCP/IP, Near Field Communication (NFC), Bluetooth, Short messages, infrared data transmission (IrDA), ZigBee, Ultra WideBand, WiMedia, GPS, DECT, wireless 1394 and other proprietary wireless systems.
  • the format of the target application request conforms to the communication protocol between the foregoing and the target application device.
  • the method further includes:
  • S5 receives a request response returned by the target application device based on the target application request.
  • step S5 receiving a request response returned by the target application device based on the target application request, specifically, after the target application device successfully receives the target application request sent in step S4,
  • the request response is returned to indicate that the target application device has successfully received the target application request;
  • the request response may include a response packet, or may include a wireless signal conforming to a preset condition, etc.; specifically, the request
  • the content of the response may be arbitrary, and the content depends on the specific processing manner, result, and the like of the target application device requesting the target application.
  • the specific manner of receiving the request response returned by the target application device based on the target application request may be through a wired or wireless connection manner established with the target application device.
  • the target application device successfully receives the target application request based on the corresponding target application request, the target application device successfully receives the target application request, and after receiving the request response, the request response content may be directly discarded without any processing. .
  • the method further includes:
  • the step S3 includes:
  • Target application request When the target application device is in a non-working state, stopping to construct a correspondence according to the target request parsing information Target application request.
  • step S6 determining the working state of the target application device according to the request response returned by the target application device, specifically, in step S6, according to whether the target application device is received.
  • the target application request is sent to the target application device within a preset time, and the return request response corresponding to the target application request is not received, and the target can be determined.
  • the application device is in a non-working state; of course, the working state of the target application device may be further determined by determining the type of the request response returned by the received target application device.
  • step S3 when the target application device is in the non-working state, stopping the target application request corresponding to the target request parsing information configuration, specifically, because in the step S3
  • the purpose of constructing the corresponding target application request is to ensure that the target application request is sent to the target application device, and if the target application device is in a non-working state, the target application request may be stopped to save resources. And improving the efficiency and the accuracy of the output information of the target application device; specifically, a corresponding prompting mechanism, such as an indicator light, a prompt sound, etc., may be set at this time, so that the user can know the working state of the target application device in real time, thereby obtaining More accurate results.
  • a corresponding prompting mechanism such as an indicator light, a prompt sound, etc.
  • the method further comprises:
  • the manner of discarding the request response may include receiving the request response, directly deleting, or may include directly receiving the request response without any further processing.
  • the information collection station perform regular deletion and cleaning. At this time, it is only necessary to record whether a request response corresponding to the transmitted target application request is received, and does not care about the specific content of the received request response.
  • the step S2 comprises:
  • S21 performs filtering processing on the request parsing information according to predetermined drainage policy information to obtain corresponding target request parsing information.
  • the request parsing information is filtered according to predetermined drainage policy information to obtain corresponding target request parsing information, wherein the predetermined draining policy information includes a pre- And the specific filtering policy for filtering the application request by filtering the request parsing information of the application request.
  • the draining policy information may include filtering the policy information of the application request according to the time information of the application request. For example, filtering an application request within a certain time period to obtain application request amount information in the time period, thereby obtaining information such as user access amount in the time period, specifically, the time information of the application request may pass Obtained from the request parsing information parsed in the application request, or directly obtained according to the time of the application request take.
  • the method may further include filtering, according to the content information requested by the application, the policy information of the application request, for example, filtering out an HTTP application request that meets the “GET” request method, to obtain an HTTP application request amount information by “GET”, thereby obtaining Information such as the amount of user access to the "GET” request method.
  • the setting manner of the drainage policy information needs to be set according to the needs of the user and the requirements of the specific target application device data information, and the specific manners and types are not limited.
  • the method further comprises:
  • S8 determines the drainage policy information according to the target application device.
  • the drainage policy information is determined according to the target application device. Specifically, the drainage policy information is used to filter the request resolution information corresponding to the application request, but the filtered request is The target application request corresponding to the parsing information is used for transmission to the target application device, and the target application device performs further processing on the target application request, and accordingly, the target application request required by the target application device requests the corresponding request parsing information, According to the request analysis information corresponding to the target application request filtered by the drainage policy, the specific content and type of the drainage policy need to be set and determined according to the specific application requirements of the target application device, for example, if the target application device needs Obtaining the access request information of a certain server device in a certain time point/segment to analyze and test it; then, the drainage policy meets the application request corresponding to the time point/segment for the time when the access request occurs.
  • Request information for the target application for example, if the target application is set The access request quantity information required to access the HTTP server device through the "POST" request method is required to be analyzed and tested; then, the drainage policy is the application request corresponding to the method of "POST" for the access request. Request information, etc. for the target application.
  • the drainage policy information includes: occurrence time information of the request resolution information that satisfies the target request resolution information corresponding to the application request; and/or, the request resolution information meets the target request analysis information corresponding to Content information.
  • the drainage policy information includes time information of the request resolution information that meets the target request resolution information corresponding to the application request, wherein the time information of the corresponding application request in the request resolution information is
  • the time information of the application request corresponding to the request parsing information specifically, the time information of the application request occurrence may be directly recorded when the application request access occurs, or may be obtained by parsing the application request.
  • the information about the drainage policy may include the information that the time when the application request meets the preset time, and further, the application request that the time when the access request occurs meets the preset time information is the target application. Request information.
  • the drainage policy information includes that the target request is satisfied in the request resolution information.
  • the content information corresponding to the information is analyzed, wherein the content information requested by the corresponding application in the request analysis information is specific content information that is requested by the application, for example, the request method, the domain name, the URL, and the like included in the request, specifically
  • the drainage policy information may include any content information that is representative of the application request feature, for example, request method information that may be used for the application request, and the request method of the application request received by the current application device satisfies the request method preset in the drainage policy. That is, the target application request information; thereby obtaining the required target application request information.
  • the drainage policy information includes:
  • the request parsing information satisfies the occurrence time information of the target request parsing information corresponding to the application request;
  • the step S2 includes:
  • S22 Filter the request parsing information according to the time information in the drainage policy information to obtain corresponding target request parsing information.
  • the drainage policy information includes time information of the request resolution information that meets the target request resolution information corresponding to the application request, wherein the time information of the corresponding application request in the request resolution information is
  • the time information of the application request corresponding to the request parsing information specifically, the time information of the application request occurrence may be directly recorded when the application request access occurs, or may be obtained by parsing the application request. Obtaining in the parsing information; further, the draining policy information may include information that the occurrence time of the application request meets the preset time.
  • the request parsing information is filtered according to the time information in the drainage policy information to obtain corresponding target request parsing information, specifically, in step S22.
  • the application request that meets the preset time information is filtered out according to the time information preset in the drainage policy information, that is, the target application request information, and further, the application request occurrence may be preset in the drainage policy information.
  • the time information that needs to be met for example, at 0:00 am on November 11 (January 11 of each year), the application request information of the early morning zero of the double eleven is filtered according to the preset time information, in preparation for the target application.
  • the device analyzes to obtain information such as user clicks/volumes at this point in time.
  • the drainage policy information includes:
  • the step S2 includes:
  • S23 Filter the request parsing information according to the content information in the drainage policy information to obtain corresponding target request parsing information.
  • the drainage policy information includes content information that meets the target request resolution information in the request resolution information, where the content information requested by the corresponding application in the request resolution information is an application.
  • the specific content information after the parsing is requested, for example, the request method, the domain name, the URL, and the like included in the request.
  • the drainage policy information may include any content information that represents the application request feature, for example, a request method that can be used for the application request.
  • the information requesting method of the application request received by the current application device meets the request method preset in the drainage policy, that is, requesting information for the target application; thereby obtaining the required target application request information.
  • the request parsing information is filtered according to the content information in the drainage policy information to obtain corresponding target request parsing information, specifically, in step S23, according to Presetting the content information in the drainage policy information, filtering out an application request that satisfies the preset content information, that is, requesting information for the target application, and further, by presetting the application request feature in the drainage policy information
  • Any suitable content information may set the request method corresponding to the application request, the requested domain name, and the like.
  • the content may be set to satisfy the “GET” request method, and only the request parsing information of the application request is The request parsing information whose corresponding request method is "GET” is filtered out as the target request parsing information, thereby obtaining the application request amount information by the "GET” request method, and the user access amount and the like by the "GET” request method.
  • the drainage policy information further includes:
  • the target request analysis information corresponds to the quantity information of the target application request
  • the step S3 includes:
  • the drainage policy information further includes the quantity information of the target application request corresponding to the target request resolution information, and specifically, the quantity information is the quantity information corresponding to the specific application request required by the target application device, For example, the number of application requests of the GET request method is required to be greater than or equal to the number of application requests corresponding to the target request resolution information filtered by the request resolution information in the step S2, that is, the two are irrelevant. Only relevant to the needs of the target application device.
  • the occurrence time information of the application request corresponding to the target request parsing information is satisfied, and/or the request parsing is performed.
  • the target application request corresponding to the target request resolution information in the drainage policy information is preset in step S31.
  • the quantity information constructs a target application request that meets the quantity requirement.
  • step S31 according to the obtained corresponding target request parsing information, constructing a target that meets the quantity information of the target application request corresponding to the target request parsing information in the drainage policy
  • the application request in particular, when the number of target request information filtered out in step S2 is greater than the quantity information, only the target application request corresponding to the target request resolution information configuration needs to be further sent to the target application device, For example, if the target application device needs 50 target application requests that are requested by the GET method, and in step S2, 100 target application requests that are requested by the GET method are filtered out, at this time, only the 100 eligible conditions are needed.
  • step S2 Extracting 50 target application requests and constructing a corresponding target application request; meanwhile, when the number of target request information filtered in step S2 is smaller than the number required by the target application device, the target request resolution information needs to be correspondingly configured. After the target application request is further sent to the target application device to reach the target application device requirement, wherein the number of repeated transmissions is required, according to the number of each transmission and the number of the target application requests required by the target application device.
  • the target application request is further sent to the target application device to reach the target application device requirement, wherein the number of repeated transmissions is required, according to the number of each transmission and the number of the target application requests required by the target application device.
  • the current application device is based on the same application layer protocol as the target application device.
  • the current application device and the target application device are based on the same application layer protocol, specifically, the current application device and the target application device perform the transmission of the target application request, and the return of the request response needs to be established in the Based on a certain transmission protocol.
  • the specific type of the application layer protocol is not limited, and may be, for example, FTP (File Transfer Protocol), Telnet (Remote Login Protocol), SMTP (Simple Mail Transfer Protocol), HTTP, SNMP (simple Network Management Protocol), RIP. (Routing Information Protocol), NFS (Network File System), DNS (Domain Name System), etc. are implemented.
  • the present application parses the request by obtaining the request parsing information corresponding to the application request received by the current application device, for example, requesting the corresponding request method, the requested time, the domain name, the URL, and the like.
  • the information is filtered to obtain corresponding target request resolution information, and the target application request corresponding to the target request parsing information is configured to send the target application request to the corresponding target application device, so that the target application device can obtain the
  • the application from the current application device requests corresponding analysis and processing to implement detailed information about the application request received by the current application device, and at the same time, can also analyze and determine the performance of the current application device to receive the corresponding request information. .
  • the application may also filter the request by using preset drainage policy information, obtain corresponding request traffic information, and perform corresponding testing or analysis, for example, filtering out a request that meets a certain request method, or filtering out the subscription request.
  • Request for time, etc. and if the target application device is a test system, the capability of the new product to withstand the request amount can be tested by obtaining the corresponding request information, and the corresponding current device is determined to respond to the application request.
  • the performance indicator is used to evaluate the performance of the current application device.
  • the target application device can also obtain the required request traffic information by using the solution of the present application, for example, the application request amount at a certain time point, to count the user corresponding to the time. Access to meet demand-based request volume information, further gaining other Use sexual information.
  • the application may further determine the working state of the target application device according to the response condition of the target application device after receiving the target application request, and stop the target application request corresponding to the target request analysis information when the target application device is in the non-working state; Therefore, the configuration that the target application device is not in the working state and the target application request is no longer performed is implemented to save resources and improve the accuracy of the corresponding request flow information acquired by the target application device.
  • FIG. 3 a schematic diagram of a device for processing an application request according to another aspect of the present application is shown, where the device includes:
  • the request parsing information obtaining means 11 acquires request parsing information corresponding to the application request received by the current application device;
  • the request parsing information filtering device 12 performs filtering processing on the request parsing information to obtain corresponding target request parsing information
  • the target application request constructing means 13 constructs a corresponding target application request according to the target request parsing information
  • the target application request transmitting device 14 transmits the target application request to the corresponding target application device.
  • the current application device may include a server corresponding to an application request, for example, an HTTP request server, etc.; the target application device may include a test, a statistics, and an analysis a system device that requests an application request information received by a server corresponding to the application, for example, the test system is configured to test case information of the HTTP request server receiving the HTTP request, and the like; the application request may include a certain application layer protocol, for example, an HTTP protocol.
  • the SPDY speedy, TCP-based application layer protocol developed by Google
  • the access request information for accessing the current application device is used interchangeably according to a certain application layer protocol.
  • the request parsing information obtaining apparatus 11 acquires the request parsing information corresponding to the application request received by the current application device, and specifically, the manner in which the request parsing information acquiring apparatus 11 acquires the request parsing information may include directly acquiring the current The request parsing information of the application request received by the application device.
  • the current application device needs to parse the received application request, so that the request parsing information obtaining device 11 obtains the corresponding request parsing information, and may also include acquiring the current application device.
  • the application request information is parsed, and the required information, such as the requested time information, the requested method information, the requested content information, and the like, are obtained therefrom.
  • the request parsing information obtaining apparatus 11 acquires the request parsing information corresponding to the application request received by the current application device, the current application device does not affect the current application device. The processing of the normal program.
  • the request parsing information filtering device 12 performs filtering processing on the request parsing information to obtain corresponding target request parsing information.
  • the request parsing information filtering device 12 can be requested according to specific needs and applications. Requesting the parsing information, filtering out the target request parsing information that meets the demand situation, for later processing; specifically, the filtering condition may be preset in the current application device, and the user may perform corresponding adjustment according to specific requirements, for example, according to the request The time in which the application request is issued in the analysis information, the manner in which the application is requested, and the specific request method of the application request are set.
  • the filtering of the request parsing information may be performed by comparing the request parsing information of the application request with a preset filtering condition, determining whether the preset condition is met, and meeting the preset condition, thereby becoming a target. Request to parse information.
  • the target application request constructing device 13 constructs a corresponding target application request according to the target request parsing information.
  • the device for processing an application request of the present application may be set in the current application device, and Can be set separately.
  • the process of constructing the target application request by the target application request constructing device 13 can be understood as a process of restoring the request parsing information, or a process of constructing the request parsing information into a form conforming to the transport protocol, for later transmission to the corresponding device system. Further processing. For example, if the data is transmitted between the current application device and the target application device based on the HTTP protocol, the target application request constructing device 13 needs to construct the request resolution information as a complete HTTP request. The packet is sent to the target application device.
  • the target application request sending device 14 sends the target application request to the corresponding target application device, specifically, the specific manner in which the target application requesting device 14 sends the target application request to the target application device, Performing in a wired or wireless connection manner with the target application device according to respective communication protocols, including but not limited to TCP/IP, Near Field Communication (NFC), Bluetooth, Short messages, infrared data transmission (IrDA), ZigBee, Ultra WideBand, WiMedia, GPS, DECT, wireless 1394 and other proprietary wireless systems.
  • the format of the target application request conforms to the communication protocol between the foregoing and the target application device.
  • the device further includes:
  • the request response receiving means 15 receives a request response returned by the target application device based on the target application request.
  • the request response receiving device 15 receives the request response returned by the target application device based on the target application request, specifically, after the target application device successfully receives the target application request sent by the target application requesting device 14 Returning a request response to indicate that the target application device has successfully received the target application request;
  • the request response may include a response packet, and may also include a wireless signal conforming to a preset condition, etc.; specifically, the content of the request response may be arbitrary, and the content depends on the target application device to the target. The specific processing method, result, etc. of the application request.
  • the specific manner in which the request response receiving device 15 receives the request response returned by the target application device based on the target application request may be based on a wired or wireless connection established with the target application device.
  • the corresponding communication protocol is performed.
  • the wireless connection mode refer to the description in the foregoing embodiment, and details are not described herein again.
  • the request response receiving device 15 since the target application device successfully receives the target application request based on the request response returned by the corresponding target application request, the request response receiving device 15 receives the request response, and may perform no processing directly. Discard the request response content.
  • the device further includes:
  • the target application device working state determining means 16 determines the working state of the target application device according to the request response returned by the target application device;
  • the target application requests the constructing device:
  • the target application device working state determining device 16 determines the working state of the target application device according to the request response returned by the target application device. Specifically, the target application device working state determining device 16 may be based on whether Receiving the request response returned by the target application device to determine the working device of the corresponding target application device, for example, the target application device working state determining device 16 does not receive the target within a preset time after the target application requests to be sent to the target application device.
  • the application request corresponding to the return request response may determine that the target application device is in a non-working state; of course, the working state of the target application device may be further determined by determining the type of the request response returned by the received target application device.
  • the target application request constructing means 13 stops the target application request corresponding to the target request parsing information configuration when the target application device is in the non-operating state, specifically, the target application request constructing means 13
  • the purpose of constructing the corresponding target application request is to ensure that the target application request is sent to the target application device, and if the target application device is in a non-working state, the target application request may be stopped to save resources, The efficiency and the accuracy of the output information of the target application device are improved.
  • a corresponding prompting mechanism such as an indicator light, a prompt sound, and the like, may be set at this time, so that the user can know the working state of the target application device in real time, thereby obtaining more Accurate results.
  • the device further comprises:
  • the request response discarding means (not shown) discards the request response.
  • the manner in which the request response discarding device discards the request response may include receiving the request response, directly deleting, or may include directly receiving the information response after receiving the request response without performing any further processing. In the station, perform regular deletion and cleaning. At this time, the request response discarding apparatus only needs to record whether the request response corresponding to the transmitted target application request is received, and does not care about the specific content of the received request response.
  • the request parsing information filtering device :
  • the request parsing information filtering apparatus performs filtering processing on the request parsing information to obtain corresponding target request parsing information according to predetermined drainage policy information, wherein the predetermined drainage policy information includes a preset The specific filtering policy for filtering the application request by filtering the request parsing information of the application request.
  • the draining policy information may include filtering the policy information of the application request according to the time information of the application request, for example, And filtering the application request in a certain time period to obtain the application request amount information in the time period, thereby obtaining information such as the user access amount in the time period, and specifically, the time information of the application request may be obtained from the application.
  • the method may further include filtering, according to the content information requested by the application, the policy information of the application request, for example, filtering out an HTTP application request that meets the “GET” request method, to obtain an HTTP application request amount information by “GET”, thereby obtaining Information such as the amount of user access to the "GET” request method.
  • the setting manner of the drainage policy information needs to be set according to the needs of the user and the requirements of the specific target application device data information, and the specific manners and types are not limited.
  • the device further comprises:
  • the drainage policy information determining means determines the drainage policy information according to the target application device.
  • the drainage policy information determining apparatus determines the drainage policy information according to the target application device. Specifically, the drainage policy information is used to filter the request resolution information corresponding to the application request, but the filtered request analysis information.
  • the corresponding target application request is used for transmission to the target application device, and the target application device further processes the target application request, and accordingly, the target application request required by the target application device requests the corresponding request resolution information, which should be based on the drainage
  • the specific application content and type of the traffic policy are required to be set and determined according to the specific application requirements of the target application device. For example, if the target application device needs to obtain a certain amount, the target application device needs to obtain a certain amount.
  • the access request quantity information of a server device at a time point/segment is analyzed and tested; then, at this time, the drainage policy satisfies the time when the access request occurs.
  • the application request corresponding to the time point/segment is the target application request information; for example, if the target application device needs to obtain the access request amount information of the HTTP server device through the "POST" request method, it is analyzed and tested; Then, at this time, the drainage policy is that the application request corresponding to the method of accessing the request is “POST”, that is, the target application request information.
  • the drainage policy information includes: occurrence time information of the request resolution information that satisfies the target request resolution information corresponding to the application request; and/or, the request resolution information meets the target request analysis information corresponding to Content information.
  • the drainage policy information includes time information of the request resolution information that meets the target request resolution information corresponding to the application request, wherein the time information of the corresponding application request in the request resolution information is
  • the time information of the application request corresponding to the request parsing information specifically, the time information of the application request occurrence may be directly recorded when the application request access occurs, or may be obtained by parsing the application request.
  • the information about the drainage policy may include the information that the time when the application request meets the preset time, and further, the application request that the time when the access request occurs meets the preset time information is the target application. Request information.
  • the drainage policy information includes content information that meets the target request resolution information in the request resolution information, where the content information requested by the corresponding application in the request resolution information is an application request.
  • the parsed specific content information for example, the request method, the domain name, the URL, and the like included in the request.
  • the drainage policy information may include any content information that represents the application request feature, for example, request method information that may be used for the application request.
  • the drainage policy information includes:
  • the request parsing information satisfies the occurrence time information of the target request parsing information corresponding to the application request;
  • the request parsing information filtering device :
  • the drainage policy information includes time information of the request resolution information that meets the target request resolution information corresponding to the application request, wherein the time information of the corresponding application request in the request resolution information is
  • the time information of the application request corresponding to the request parsing information specifically, the time information of the application request occurrence may be directly recorded when the application request access occurs, or may be obtained by parsing the application request. Obtaining in the parsing information; further, the draining policy information may include when the application request occurs Information that meets the preset time.
  • the request parsing information filtering device 12 filters the request parsing information according to the time information in the drainage policy information to obtain corresponding target request parsing information, specifically, request parsing information.
  • the filtering device 12 filters out an application request that satisfies the preset time information according to the time information preset in the drainage policy information, that is, requests information for the target application, and further, may preset the application by using the drainage policy information.
  • the time information that needs to be met when the request occurs for example, at 0:00 am on November 11 (January 11 of each year)
  • the request analysis information filtering device 12 filters out the morning zero of the double eleven according to the preset time information.
  • the application request information is analyzed by the target application device to obtain information such as user click/volume at this point in time.
  • the drainage policy information includes:
  • the request parsing information filtering device :
  • the drainage policy information includes content information that meets the target request resolution information in the request resolution information, where the content information of the corresponding application request in the request resolution information is an application request resolution.
  • the specific content information for example, the request method, the domain name, the URL, and the like included in the request, specifically, the drainage policy information may include any content information representing the application request feature, for example, request method information that may be used for the application request,
  • the target application request information is obtained; thereby obtaining the required target application request information.
  • the request parsing information filtering device 12 filters the request parsing information according to the content information in the drainage policy information to obtain corresponding target request parsing information, specifically, request parsing information filtering.
  • the device 12 filters out an application request that satisfies the preset content information according to the content information preset in the drainage policy information, that is, requests information for the target application, and further, the representative application is preset by using the drainage policy information.
  • Any suitable content information of the request feature for example, a request method corresponding to the application request, a domain name of the request, and the like may be set, for example, the content may be set to satisfy a "GET" request method, and only the request of the application request.
  • the request parsing information in which the corresponding request method in the parsing information is "GET” is filtered out as the target request parsing information, thereby obtaining the application request amount information by the "GET" request method, and the user access amount by the "GET” request method. And other information.
  • the drainage policy information further includes:
  • the target request analysis information corresponds to the quantity information of the target application request
  • the target application requests the constructing device:
  • the drainage policy information further includes the quantity information of the target application request corresponding to the target request resolution information, and specifically, the quantity information is the quantity information corresponding to the specific application request required by the target application device, For example, the number of application requests of the GET request method is required to be greater than or equal to the number of application requests corresponding to the target request resolution information filtered by the request resolution information filtering device, that is, the two are irrelevant.
  • the requirements of the target application device are related.
  • the request parsing information filtering apparatus satisfies the occurrence time information of the target request parsing information corresponding to the application request according to the request parsing information preset in the drainage policy information, and/or the request parsing After the content information corresponding to the target request parsing information is satisfied in the information, and the target request parsing information is obtained by filtering, the target application request constructing device further needs to parse the target application request corresponding to the target request parsing information in the draining policy information.
  • the quantity information, constructing a target application request that meets the quantity requirements.
  • the target application request constructing device constructs a target application that meets the quantity information of the target application request corresponding to the target request parsing information in the drainage policy according to the obtained corresponding target request parsing information.
  • the request in particular, when the number of the target request information filtered by the request parsing information filtering device is greater than the quantity information, only the target application request corresponding to the part of the target request parsing information configuration needs to be further sent to the target application device, For example, if the target application device requires 50 target application requests requested by the GET method, and the request resolution information filtering device filters out 100 target application requests requested by the GET method, the target application request constructing device only needs to be from the Extracting 50 target application requests that satisfy the condition, and constructing a corresponding target application request; meanwhile, when the number of target request information filtered by the request resolution information filtering device is smaller than the number required by the target application device, the Target request parsing information construct corresponding After the target application is requested, the application is further repeatedly sent to the target application
  • the current application device is based on the same application layer protocol as the target application device.
  • the current application device and the target application device are based on the same application layer protocol, specifically, the current application device and the target application device perform the transmission of the target application request, and the return of the request response needs to be established in the Based on a certain transmission protocol.
  • the specific type of the application layer protocol is not limited, and may be, for example, FTP (File Transfer Protocol), Telnet (Telnet), and SMTP (Simple Mail Transfer). Protocol, HTTP (Hyper Text Transfer Protocol), SNMP (Simple Network Management Protocol), RIP (Routing Information Protocol), NFS (Network File System), DNS (Domain Name System), etc.
  • the present application parses the request by obtaining the request parsing information corresponding to the application request received by the current application device, for example, requesting the corresponding request method, the requested time, the domain name, the URL, and the like.
  • the information is filtered to obtain corresponding target request resolution information, and the target application request corresponding to the target request parsing information is configured to send the target application request to the corresponding target application device, so that the target application device can obtain the
  • the application from the current application device requests corresponding analysis and processing to implement detailed information about the application request received by the current application device, and at the same time, can also analyze and determine the performance of the current application device to receive the corresponding request information. .
  • the application may also filter the request by using preset drainage policy information, obtain corresponding request traffic information, and perform corresponding testing or analysis, for example, filtering out a request that meets a certain request method, or filtering out the subscription request.
  • Request for time, etc. and if the target application device is a test system, the capability of the new product to withstand the request amount can be tested by obtaining the corresponding request information, and the corresponding current device is determined to respond to the application request.
  • the performance indicator is used to evaluate the performance of the current application device.
  • the target application device can also obtain the required request traffic information by using the solution of the present application, for example, the application request amount at a certain time point, to count the user corresponding to the time. Access to meet demand-based request volume information for further availability of other useful information.
  • the application may further determine the working state of the target application device according to the response condition of the target application device after receiving the target application request, and stop the target application request corresponding to the target request analysis information when the target application device is in the non-working state; Therefore, the configuration that the target application device is not in the working state and the target application request is no longer performed is implemented to save resources and improve the accuracy of the corresponding request flow information acquired by the target application device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种用于处理应用请求的方法及设备,通过获取与当前应用设备所接收的应用请求相对应的请求解析信息(S1),例如,请求对应的请求方法、请求的时间、域名、URL等信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息(S2),根据所述目标请求解析信息构造对应的目标应用请求(S3),将所述目标应用请求发送至对应的目标应用设备(S4),以解决对基于互联网产品的请求流量的分析,并可进一步实现对所述产品的性能测试。

Description

用于处理应用请求的方法与设备
本申请要求2015年09月09日递交的申请号为201510570817.7、发明名称为“用于处理应用请求的方法与设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机领域,尤其涉及一种用于处理应用请求的技术。
背景技术
随着科技的发展,尤其是云计算、分布式等,使得互联网越来越深入的融入更多领域,例如,电子商务、数字化城市建设、企业数据管理、医疗领域、互联网金融等等,相应地,用户可以实现更加高效、人性化、多样化的体验,提高社会公共设施建设的技术含量,满足人们日益追求高质量生活的需求等等。
然而,随着互联网领域越来越融入人们生活的各个方面,相应地,基于互联网的应用产品,一般均需要用户通过应用的访问界面,访问其对应服务器中的相应内容,例如,通过向HTTP(Hyper Text Transfer Protocol)服务器发出HTTP访问请求等。随着,越来越多的人们加入互联网体验群体中来,基于互联网的新产品在上线前,需要线上真实请求流量做功能测试或者压力测试,如何确保该产品整体性能,其服务器能够承受的访问量等,将成为关键问题。
目前,针对上述问题,在新产品上线前进行性能测试时存在如下不完美的地方,例如,需要单独安装请求流量测试软件;在测试系统出现问题时,不能及时停止请求流量的引入;未设置请求流量过滤过程等等。
发明内容
本申请的目的是提供一种的用于处理应用请求的方法与设备,以解决对基于互联网产品的请求流量的分析,并可进一步实现对所述产品的性能测试。
根据本申请的一个方面,提供了一种用于处理应用请求的方法,其中,该方法包括:
获取与当前应用设备所接收的应用请求相对应的请求解析信息;
对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
根据所述目标请求解析信息构造对应的目标应用请求;
将所述目标应用请求发送至对应的目标应用设备。
根据本申请的另一方面,还提供了一种用于处理应用请求的设备,其中,该设备包括:
请求解析信息获取装置,用于获取与当前应用设备所接收的应用请求相对应的请求解析信息;
请求解析信息过滤装置,用于对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
目标应用请求构造装置,用于根据所述目标请求解析信息构造对应的目标应用请求;
目标应用请求发送装置,用于将所述目标应用请求发送至对应的目标应用设备。
与现有技术相比,本申请通过获取与当前应用设备所接收的应用请求相对应的请求解析信息,例如,请求对应的请求方法、请求的时间、域名、URL(Uniform Resource Locator)等信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,根据所述目标请求解析信息构造对应的目标应用请求,将所述目标应用请求发送至对应的目标应用设备,从而可以使目标应用设备对获取的来自当前应用设备的应用请求进行相应的分析、处理;以实现对当前应用设备所接收的应用请求的详细信息,同时,还可以以此分析判断出该当前应用设备接收相应请求信息的能力等性能。
而且,本申请还可以通过预设的引流策略信息对请求进行过滤,获得对应的请求流量信息,以便进行相应的测试或者分析等;例如,过滤出符合一定请求方法的请求,或过滤出符合预定请求时间的请求等,同时,若目标应用设备为测试系统时,可通过获取的对应请求信息,测试该新产品承受请求量的能力等,判断出对应当前应用设备在应对应用请求时的各种性能指标,以实现对当前应用设备的性能的评估,同时,目标应用设备也可以通过本申请的方案获取需要的请求流量信息,例如,某时间点的应用请求量,以统计该时间对应的用户访问情况,以满足基于需求的请求量信息,进一步获得其他有用性信息。
此外,本申请还可以根据目标应用设备接收目标应用请求后的响应情况,确定目标应用设备的工作状态,在目标应用设备处于非工作状态时,停止根据目标请求解析信息构造对应的目标应用请求;从而实现在目标应用设备未处于工作状态,不再进行目标应用请求的构造,以节约资源、并提高目标应用设备获取的相应请求流量信息的准确性等。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1示出根据本申请一个方面的一种用于处理应用请求的设备示意图;
图2示出根据本申请一个优选实施例的一种用于处理应用请求的设备示意图;
图3示出根据本申请另一个方面的一种用于处理应用请求的方法流程图;
图4示出根据本申请一个优选实施例的一种用于处理应用请求的方法流程图。
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
下面结合附图对本发明作进一步详细描述。
在本申请一个典型的配置中,终端、服务网络的设备和可信方均包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
为更进一步阐述本申请所采取的技术手段及取得的效果,下面结合附图及较佳实施例,对本申请的技术方案,进行清楚和完整的描述。
参图1所示,展示了根据本申请的一个方面提供的一种用于处理应用请求的方法,其中,该方法包括:
S1获取与当前应用设备所接收的应用请求相对应的请求解析信息;
S2对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
S3根据所述目标请求解析信息构造对应的目标应用请求;
S4将所述目标应用请求发送至对应的目标应用设备。
本领域技术人员应能理解,在具体的方案实施中,所述当前应用设备可包括应用请求对应的服务器,例如,HTTP请求服务器等;所述目标应用设备可包括用于测试、统计、分析所述应用请求对应的服务器接收的应用请求信息的系统设备,例如,测试系统用于测试HTTP请求服务器接收HTTP请求的情况信息等;所述应用请求可包括基于一定的应用层协议,例如,HTTP协议、SPDY(speedy,Google开发的基于TCP的应用层协议)协议等,访问当前应用设备的访问请求信息。为表述方便,我们将在实施例中对当前应用设备与应用请求对应的服务器,目标应用设备与用于测试、统计、分析所述应用请求对应的服务器接收的应用请求信息的系统设备,应用请求与基于一定的应用层协议,访问当前应用设备的访问请求信息分别进行互换使用。
在该实施例中,在所述步骤S1中,获取与当前应用设备所接收的应用请求相对应的请求解析信息,具体地,获取请求解析信息的方式,可包括直接获取当前应用设备接收的应用请求的请求解析信息,此时,需要当前应用设备将接收到的应用请求进行解析,以备获取其对应的请求解析信息;还可以包括获取当前应用设备所接收的应用请求信息后,对该应用请求信息进行解析,从中获取需要的信息,例如,请求的时间信息,请求的方法信息、请求的内容信息等。另外,需要指出的是,此处,获取与当前应用设备所接收的应用请求相对应的请求解析信息时,不影响当前应用设备对接收到的应用请求进行正常程序的处理。
继续在该实施例中,在所述步骤S2中,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,具体地,在步骤S2中可根据具体需求情况,及应用请求的请求解析信息,过滤出符合需求情况的目标请求解析信息,以备后续处理;具体地,过滤条件可预设在当前应用设备中,用户可根据具体的需求进行相应的调整,例如,可根据请求解析信息中应用请求发出的时间,应用请求的方式、应用请求的具体请求方法等进行设置。具体地,对所述请求解析信息进行过滤的方式,可通过将应用请求的请求解析信息与预设过滤条件进行比较、判断是否符合预设条件,在符合预设条件的情况下,便成为目标请求解析信息。
继续在该实施例中,在所述步骤S3中,根据所述目标请求解析信息构造对应的目标应用请求,具体地,本申请的用于处理应用请求的设备,可设置在当前应用设备内,也 可单独设置。在步骤S3中构造目标应用请求的过程,可理解为将请求解析信息进行还原的过程,或者为将请求解析信息构造成符合传输协议的形式的过程,以备后续发送至相应的设备系统中进行进一步处理。以设置在当前应用设备内为例,若当前应用设备与目标应用设备之间基于HTTP协议进行数据传输,此时,还需要将请求解析信息构造为一个完整的HTTP请求的数据包,以发送至目标应用设备。
继续在该实施例中,在所述步骤S4中,将所述目标应用请求发送至对应的目标应用设备,具体地,在步骤S4中向目标应用设备发送所述目标应用请求的具体方式,可通过与目标应用设备之间建立的有线或无线连接方式,根据各自对应的通信协议进行,其中,所述无线连接方式包括但不限于TCP/IP、近场通信(NFC)、蓝牙(Bluetooth)、短信息、红外数据传输(IrDA)、ZigBee、超宽频(Ultra WideBand)、WiMedia、GPS、DECT、无线1394和其他专用无线系统等。其中目标应用请求的格式符合上述与目标应用设备之间的通信协议。
参图2所示,优选地,该方法还包括:
S5接收所述目标应用设备基于所述目标应用请求返回的请求响应。
在该实施例中,在所述步骤S5中,接收所述目标应用设备基于所述目标应用请求返回的请求响应,具体地,目标应用设备成功接收到所述步骤S4发送的目标应用请求后,会返回请求响应,以表示目标应用设备已成功接收所述目标应用请求;进一步地,该请求响应,可以包括应答包,也可以包括符合预设条件的无线信号等等;具体地,所述请求响应的内容可以是任意的,该内容取决于目标应用设备对所述目标应用请求的具体处理方式、结果等。
继续在该实施例中,在所述步骤S5中,接收所述目标应用设备基于所述目标应用请求返回的请求响应的具体方式,可通过与目标应用设备之间建立的有线或无线连接方式,根据各自对应的通信协议进行,其中,所述无线连接方式请参考上述实施例中的描述,在此不再赘述。另外,由于目标应用设备基于对应的目标应用请求返回的请求响应,仅代表目标应用设备成功接收了所述目标应用请求,故接收到所述请求响应后,可不做任何处理直接丢弃该请求响应内容。
参图2所示,优选地,该方法还包括:
S6根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态;
其中,所述步骤S3包括:
在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应 的目标应用请求。
在该实施例中,在所述步骤S6中,根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态,具体地,在步骤S6中,可根据是否接收到目标应用设备返回的请求响应,来判断对应目标应用设备的工作装置,例如,在目标应用请求发送至目标应用设备后预设时间内,未接收到该目标应用请求对应的返回请求响应,则可判断出目标应用设备处于非工作状态;当然,也可以通过判断接收的目标应用设备返回的请求响应的类型情况,进一步判断出目标应用设备的工作状态。
继续在该实施例中,在所述步骤S3中,在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应的目标应用请求,具体地,由于在所述步骤S3中构造所述对应的目标应用请求的目的,便是为了确保将所述目标应用请求发送至目标应用设备,若目标应用设备处于非工作状态,便可停止构造所述目标应用请求,以节约资源、提高效率及目标应用设备输出信息的准确率等;具体地,此时可以设置相应的提示机制,例如,指示灯、提示声音等等,以使用户实时获知目标应用设备的工作状态,从而获得更准确的结果。
优选地,该方法还包括:
S7(未示出)丢弃所述请求响应。
具体地,在所述步骤S7中,丢弃所述请求响应的方式,可包括接收到该请求响应,直接删除,也可包括接收到所述请求响应后,不做任何进一步的处理,而直接存储在信息回收站中,再进行定期删除清理等。此时,仅需要记录是否接收到与发送的目标应用请求对应的请求响应,而不关心接收到的请求响应的具体内容。
优选地,所述步骤S2包括:
S21根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息。
在该实施例中,在所述步骤S21中,根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,其中,所述预定的引流策略信息,包括预设的用于通过过滤应用请求的请求解析信息,来实现应用请求的过滤的具体过滤策略,具体地,所述引流策略信息,可包括根据应用请求的时间信息,过滤所述应用请求的策略信息,例如,过滤出某时间段范围内的应用请求,以获得该时间段内的应用请求量信息,从而获得该时间段内的用户访问量等信息,具体地,应用请求的时间信息,可通过从应用请求中解析出的请求解析信息中获得,也可直接根据应用请求发出的时间获 取。也可包括根据应用请求的内容信息,过滤所述应用请求的策略信息,例如,过滤出符合“GET”请求方法的HTTP应用请求,以获得通过“GET”的HTTP应用请求量信息,从而获得通过“GET”请求方法的用户访问量等信息。进一步地,引流策略信息的设置方式,需要根据用户的需求及具体目标应用设备数据信息的需求进行设置,具体的方式、类型等不做限制。
优选地,该方法还包括:
S8(未示出)根据所述目标应用设备确定所述引流策略信息。
在该实施例中,在所述步骤S8中,根据所述目标应用设备确定所述引流策略信息,具体地,引流策略信息用于过滤所述应用请求对应的请求解析信息,但是过滤出的请求解析信息对应的目标应用请求用于传输至目标应用设备,由目标应用设备对所述目标应用请求进行进一步的处理,相应地,目标应用设备需要的目标应用请求对应的请求解析信息,便应为根据引流策略过滤出的目标应用请求对应的请求解析信息,故引流策略的具体内容、类型等需要根据目标应用设备所需要的目标应用请求的具体情况进行设置、确定,例如,若目标应用设备需要获得一定时间点/段内某服务器设备的访问请求量信息,以对其进行分析、测试;那么,此时引流策略便为访问请求发生的时间满足所述时间点/段所对应的应用请求即为目标应用请求信息;再例如,若目标应用设备需要获得通过“POST”请求方法请求访问HTTP服务器设备的访问请求量信息,以对其进行分析、测试;那么,此时引流策略便为访问请求的方法为“POST”所对应的应用请求即为目标应用请求信息等。
优选地,所述引流策略信息包括:所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;和/或,所述请求解析信息中满足所述目标请求解析信息对应的内容信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,其中,所述请求解析信息中对应的应用请求的时间信息,为所述请求解析信息对应的应用请求发生的时间信息,具体地,所述应用请求发生的时间信息,可以在应用请求访问发生时直接进行记录,也可以通过解析所述应用请求,从获得的请求解析信息中获取;进一步地,引流策略信息可包括应用请求的发生时间满足预设时间的信息,更进一步地,此时访问请求发生的时间满足所述预设时间信息的应用请求即为目标应用请求信息。
继续在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求 解析信息对应的内容信息,其中,所述请求解析信息中对应的应用请求的内容信息,为应用请求解析后的具体内容信息,例如,该请求包括的请求方法、域名、URL等信息,具体地,引流策略信息可包括代表应用请求特征的任何内容信息,例如,可以为应用请求使用的请求方法信息,当前应用设备接收到的应用请求的请求方法满足预设在引流策略中的请求方法时,即为目标应用请求信息;从而获得需要的目标应用请求信息。
更优选地,所述引流策略信息包括:
所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;
其中,所述步骤S2包括:
S22根据所述引流策略信息中的所述时间信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,其中,所述请求解析信息中对应的应用请求的时间信息,为所述请求解析信息对应的应用请求发生的时间信息,具体地,所述应用请求发生的时间信息,可以在应用请求访问发生时直接进行记录,也可以通过解析所述应用请求,从获得的请求解析信息中获取;进一步地,引流策略信息可包括应用请求的发生时间满足预设时间的信息。
继续在该实施例中,在所述步骤S22中,根据所述引流策略信息中的所述时间信息,过滤所述请求解析信息,以获得对应的目标请求解析信息,具体地,在步骤S22中根据预设在引流策略信息中的所述时间信息,过滤出满足所述预设时间信息的应用请求,即为目标应用请求信息,进一步地,可通过在引流策略信息中预设应用请求发生所需要满足的时间信息,例如,双十一(每年的11月11日)的凌晨零点,便根据预设的所述时间信息,过滤出双十一的凌晨零点的应用请求信息,以备目标应用设备进行分析,从而获得此时间点的用户点击/成交量等信息。
更优选地,所述引流策略信息包括:
所述请求解析信息中满足所述目标请求解析信息对应的内容信息;
其中,所述步骤S2包括:
S23根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应的内容信息,其中,所述请求解析信息中对应的应用请求的内容信息,为应用 请求解析后的具体内容信息,例如,该请求包括的请求方法、域名、URL等信息,具体地,引流策略信息可包括代表应用请求特征的任何内容信息,例如,可以为应用请求使用的请求方法信息,当前应用设备接收到的应用请求的请求方法满足预设在引流策略中的请求方法时,即为目标应用请求信息;从而获得需要的目标应用请求信息。
继续在该实施例中,在所述步骤S23中,根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息,具体地,在步骤S23中根据预设在引流策略信息中的所述内容信息,过滤出满足所述预设内容信息的应用请求,即为目标应用请求信息,进一步地,可通过在引流策略信息中预设代表应用请求特征的任何合适的内容信息,例如,可以设置该应用请求对应的请求方法、请求的域名等信息,例如,可将所述内容设置为满足“GET”请求方法,此时只有应用请求的请求解析信息中对应的请求方法为“GET”的请求解析信息被过滤出来,作为目标请求解析信息,从而获得通过“GET”请求方法的应用请求量信息,及通过“GET”请求方法的用户访问量等信息。
更更优选地,所述引流策略信息还包括:
所述目标请求解析信息对应的目标应用请求的数量信息;
其中,所述步骤S3包括:
S31根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标应用请求。
在该实施例中,所述引流策略信息还包括所述目标请求解析信息对应的目标应用请求的数量信息,具体地,此处的数量信息为目标应用设备需要的具体应用请求对应的数量信息,例如,需要通过GET请求方法的100个应用请求量,该数量信息可能大于或小于等于在所述步骤S2中请求解析信息过滤出的目标请求解析信息对应的应用请求数量,也即二者无关,仅与目标应用设备的需求有关。
继续在该实施例中,在所述步骤S2中根据引流策略信息中预设的所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,和/或,所述请求解析信息中满足所述目标请求解析信息对应的内容信息,进行过滤获得目标请求解析信息后,还需要在步骤S31中根据预设在引流策略信息中的所述目标请求解析信息对应的目标应用请求的数量信息,构造出符合数量要求的目标应用请求。
继续在该实施例中,在所述步骤S31中,根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标 应用请求,具体地,当在步骤S2中过滤出的目标请求信息的数量大于所述数量信息时,仅需要将其中部分的目标请求解析信息构造对应的目标应用请求,进一步发送至目标应用设备,例如,若目标应用设备需要50个通过GET方法请求的目标应用请求,而在步骤S2中过滤出了100个通过GET方法请求的目标应用请求,此时,仅需要从所述100个满足条件的目标应用请求中抽取50个,并构造对应的目标应用请求;同时,当在步骤S2中过滤出的目标请求信息的数量小于目标应用设备需要的数量时,需要将所述目标请求解析信息构造对应的目标应用请求后,进一步重复发送至目标应用设备,以达到目标应用设备需求的数量,其中具体需要重复发送的次数,根据每次发送的数量及目标应用设备需要的所述目标应用请求的数量相关。
优选地,所述当前应用设备与所述目标应用设备基于相同的应用层协议。
在该实施例中,所述当前应用设备与所述目标应用设备基于相同的应用层协议,具体地,当前应用设备与目标应用设备进行目标应用请求的传输,以及请求响应的返回均需要建立在一定的传输协议基础上。进一步地,应用层协议的具体类型不做限制,可通过例如,FTP(File Transfer Protocol)、Telnet(远程登录协议)、SMTP(Simple Mail Transfer Protocol)、HTTP、SNMP(simple Network Management Protocol)、RIP(Routing Information Protocol)、NFS(Network File System)、DNS(Domain Name System)等来实现。
与现有技术相比,本申请通过获取与当前应用设备所接收的应用请求相对应的请求解析信息,例如,请求对应的请求方法、请求的时间、域名、URL等信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,根据所述目标请求解析信息构造对应的目标应用请求,将所述目标应用请求发送至对应的目标应用设备,从而可以使目标应用设备对获取的来自当前应用设备的应用请求进行相应的分析、处理;以实现对当前应用设备所接收的应用请求的详细信息,同时,还可以以此分析判断出该当前应用设备接收相应请求信息的能力等性能。
而且,本申请还可以通过预设的引流策略信息对请求进行过滤,获得对应的请求流量信息,以便进行相应的测试或者分析等;例如,过滤出符合一定请求方法的请求,或过滤出符合预定请求时间的请求等,同时,若目标应用设备为测试系统时,可通过获取的对应请求信息,测试该新产品承受请求量的能力等,判断出对应当前应用设备在应对应用请求时的各种性能指标,以实现对当前应用设备的性能的评估,同时,目标应用设备也可以通过本申请的方案获取需要的请求流量信息,例如,某时间点的应用请求量,以统计该时间对应的用户访问情况,以满足基于需求的请求量信息,进一步获得其他有 用性信息。
此外,本申请还可以根据目标应用设备接收目标应用请求后的响应情况,确定目标应用设备的工作状态,在目标应用设备处于非工作状态时,停止根据目标请求解析信息构造对应的目标应用请求;从而实现在目标应用设备未处于工作状态,不再进行目标应用请求的构造,以节约资源、并提高目标应用设备获取的相应请求流量信息的准确性等。
参图3所示,展示了根据本申请的另一个方面提供的一种用于处理应用请求的设备示意图,其中,该设备包括:
请求解析信息获取装置11,获取与当前应用设备所接收的应用请求相对应的请求解析信息;
请求解析信息过滤装置12,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
目标应用请求构造装置13,根据所述目标请求解析信息构造对应的目标应用请求;
目标应用请求发送装置14,将所述目标应用请求发送至对应的目标应用设备。
本领域技术人员应能理解,在具体的方案实施中,所述当前应用设备可包括应用请求对应的服务器,例如,HTTP请求服务器等;所述目标应用设备可包括用于测试、统计、分析所述应用请求对应的服务器接收的应用请求信息的系统设备,例如,测试系统用于测试HTTP请求服务器接收HTTP请求的情况信息等;所述应用请求可包括基于一定的应用层协议,例如,HTTP协议、SPDY(speedy,Google开发的基于TCP的应用层协议)协议等,访问当前应用设备的访问请求信息。为表述方便,我们将在实施例中对当前应用设备与应用请求对应的服务器,目标应用设备与用于测试、统计、分析所述应用请求对应的服务器接收的应用请求信息的系统设备,应用请求与基于一定的应用层协议,访问当前应用设备的访问请求信息分别进行互换使用。
在该实施例中,请求解析信息获取装置11获取与当前应用设备所接收的应用请求相对应的请求解析信息,具体地,请求解析信息获取装置11获取请求解析信息的方式,可包括直接获取当前应用设备接收的应用请求的请求解析信息,此时,需要当前应用设备将接收到的应用请求进行解析,以备请求解析信息获取装置11获取其对应的请求解析信息;还可以包括获取当前应用设备所接收的应用请求信息后,对该应用请求信息进行解析,从中获取需要的信息,例如,请求的时间信息,请求的方法信息、请求的内容信息等。另外,需要指出的是,此处,请求解析信息获取装置11获取与当前应用设备所接收的应用请求相对应的请求解析信息时,不影响当前应用设备对接收到的应用请求进行正 常程序的处理。
继续在该实施例中,请求解析信息过滤装置12对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,具体地,请求解析信息过滤装置12可根据具体需求情况,及应用请求的请求解析信息,过滤出符合需求情况的目标请求解析信息,以备后续处理;具体地,过滤条件可预设在当前应用设备中,用户可根据具体的需求进行相应的调整,例如,可根据请求解析信息中应用请求发出的时间,应用请求的方式、应用请求的具体请求方法等进行设置。具体地,对所述请求解析信息进行过滤的方式,可通过将应用请求的请求解析信息与预设过滤条件进行比较、判断是否符合预设条件,在符合预设条件的情况下,便成为目标请求解析信息。
继续在该实施例中,目标应用请求构造装置13根据所述目标请求解析信息构造对应的目标应用请求,具体地,本申请的用于处理应用请求的设备,可设置在当前应用设备内,也可单独设置。目标应用请求构造装置13构造目标应用请求的过程,可理解为将请求解析信息进行还原的过程,或者为将请求解析信息构造成符合传输协议的形式的过程,以备后续发送至相应的设备系统中进行进一步处理。以设置在当前应用设备内为例,若当前应用设备与目标应用设备之间基于HTTP协议进行数据传输,那么此时,目标应用请求构造装置13需要将请求解析信息构造为一个完整的HTTP请求的数据包,以发送至目标应用设备。
继续在该实施例中,目标应用请求发送装置14将所述目标应用请求发送至对应的目标应用设备,具体地,目标应用请求装置14向目标应用设备发送所述目标应用请求的具体方式,可通过与目标应用设备之间建立的有线或无线连接方式,根据各自对应的通信协议进行,其中,所述无线连接方式包括但不限于TCP/IP、近场通信(NFC)、蓝牙(Bluetooth)、短信息、红外数据传输(IrDA)、ZigBee、超宽频(Ultra WideBand)、WiMedia、GPS、DECT、无线1394和其他专用无线系统等。其中目标应用请求的格式符合上述与目标应用设备之间的通信协议。
参图4所示,在一个优选的实施例中,该设备还包括:
请求响应接收装置15,接收所述目标应用设备基于所述目标应用请求返回的请求响应。
在该实施例中,请求响应接收装置15接收所述目标应用设备基于所述目标应用请求返回的请求响应,具体地,目标应用设备成功接收到所述目标应用请求装置14发送的目标应用请求后,会返回请求响应,以表示目标应用设备已成功接收所述目标应用请求; 进一步地,该请求响应,可以包括应答包,也可以包括符合预设条件的无线信号等等;具体地,所述请求响应的内容可以是任意的,该内容取决于目标应用设备对所述目标应用请求的具体处理方式、结果等。
继续在该实施例中,请求响应接收装置15接收所述目标应用设备基于所述目标应用请求返回的请求响应的具体方式,可通过与目标应用设备之间建立的有线或无线连接方式,根据各自对应的通信协议进行,其中,所述无线连接方式请参考上述实施例中的描述,在此不再赘述。另外,由于目标应用设备基于对应的目标应用请求返回的请求响应,仅代表目标应用设备成功接收了所述目标应用请求,故请求响应接收装置15接收到所述请求响应后,可不做任何处理直接丢弃该请求响应内容。
参图4所示,优选地,该设备还包括:
目标应用设备工作状态确定装置16,根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态;
其中,所述目标应用请求构造装置:
在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应的目标应用请求。
在该实施例中,目标应用设备工作状态确定装置16根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态,具体地,目标应用设备工作状态确定装置16,可根据是否接收到目标应用设备返回的请求响应,来判断对应目标应用设备的工作装置,例如,在目标应用请求发送至目标应用设备后预设时间内,目标应用设备工作状态确定装置16未接收到该目标应用请求对应的返回请求响应,则可判断出目标应用设备处于非工作状态;当然,也可以通过判断接收的目标应用设备返回的请求响应的类型情况,进一步判断出目标应用设备的工作状态。
继续在该实施例中,目标应用请求构造装置13在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应的目标应用请求,具体地,由于目标应用请求构造装置13构造所述对应的目标应用请求的目的,便是为了确保将所述目标应用请求发送至目标应用设备,若目标应用设备处于非工作状态,便可停止构造所述目标应用请求,以节约资源、提高效率及目标应用设备输出信息的准确率等;具体地,此时可以设置相应的提示机制,例如,指示灯、提示声音等等,以使用户实时获知目标应用设备的工作状态,从而获得更准确的结果。
优选地,该设备还包括:
请求响应丢弃装置(未示出),丢弃所述请求响应。
具体地,请求响应丢弃装置丢弃所述请求响应的方式,可包括接收到该请求响应,直接删除,也可包括接收到所述请求响应后,不做任何进一步的处理,而直接存储在信息回收站中,再进行定期删除清理等。此时,请求响应丢弃装置仅需要记录是否接收到与发送的目标应用请求对应的请求响应,而不关心接收到的请求响应的具体内容。
在其中一个优选的实施例中,所述请求解析信息过滤装置:
根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息。
在该实施例中,请求解析信息过滤装置根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,其中,所述预定的引流策略信息,包括预设的用于通过过滤应用请求的请求解析信息,来实现应用请求的过滤的具体过滤策略,具体地,所述引流策略信息,可包括根据应用请求的时间信息,过滤所述应用请求的策略信息,例如,过滤出某时间段范围内的应用请求,以获得该时间段内的应用请求量信息,从而获得该时间段内的用户访问量等信息,具体地,应用请求的时间信息,可通过从应用请求中解析出的请求解析信息中获得,也可直接根据应用请求发出的时间获取。也可包括根据应用请求的内容信息,过滤所述应用请求的策略信息,例如,过滤出符合“GET”请求方法的HTTP应用请求,以获得通过“GET”的HTTP应用请求量信息,从而获得通过“GET”请求方法的用户访问量等信息。进一步地,引流策略信息的设置方式,需要根据用户的需求及具体目标应用设备数据信息的需求进行设置,具体的方式、类型等不做限制。
优选地,该设备还包括:
引流策略信息确定装置(未示出),根据所述目标应用设备确定所述引流策略信息。
在该实施例中,引流策略信息确定装置根据所述目标应用设备确定所述引流策略信息,具体地,引流策略信息用于过滤所述应用请求对应的请求解析信息,但是过滤出的请求解析信息对应的目标应用请求用于传输至目标应用设备,由目标应用设备对所述目标应用请求进行进一步的处理,相应地,目标应用设备需要的目标应用请求对应的请求解析信息,便应为根据引流策略过滤出的目标应用请求对应的请求解析信息,故引流策略的具体内容、类型等需要根据目标应用设备所需要的目标应用请求的具体情况进行设置、确定,例如,若目标应用设备需要获得一定时间点/段内某服务器设备的访问请求量信息,以对其进行分析、测试;那么,此时引流策略便为访问请求发生的时间满足所述 时间点/段所对应的应用请求即为目标应用请求信息;再例如,若目标应用设备需要获得通过“POST”请求方法请求访问HTTP服务器设备的访问请求量信息,以对其进行分析、测试;那么,此时引流策略便为访问请求的方法为“POST”所对应的应用请求即为目标应用请求信息等。
优选地,所述引流策略信息包括:所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;和/或,所述请求解析信息中满足所述目标请求解析信息对应的内容信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,其中,所述请求解析信息中对应的应用请求的时间信息,为所述请求解析信息对应的应用请求发生的时间信息,具体地,所述应用请求发生的时间信息,可以在应用请求访问发生时直接进行记录,也可以通过解析所述应用请求,从获得的请求解析信息中获取;进一步地,引流策略信息可包括应用请求的发生时间满足预设时间的信息,更进一步地,此时访问请求发生的时间满足所述预设时间信息的应用请求即为目标应用请求信息。
继续在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应的内容信息,其中,所述请求解析信息中对应的应用请求的内容信息,为应用请求解析后的具体内容信息,例如,该请求包括的请求方法、域名、URL等信息,具体地,引流策略信息可包括代表应用请求特征的任何内容信息,例如,可以为应用请求使用的请求方法信息,当前应用设备接收到的应用请求的请求方法满足预设在引流策略中的请求方法时,即为目标应用请求信息;从而获得需要的目标应用请求信息。
更优选地,所述引流策略信息包括:
所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;
其中,所述请求解析信息过滤装置:
根据所述引流策略信息中的所述时间信息,过滤所述请求解析信息,以获得对应的目标请求解析信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,其中,所述请求解析信息中对应的应用请求的时间信息,为所述请求解析信息对应的应用请求发生的时间信息,具体地,所述应用请求发生的时间信息,可以在应用请求访问发生时直接进行记录,也可以通过解析所述应用请求,从获得的请求解析信息中获取;进一步地,引流策略信息可包括应用请求的发生时 间满足预设时间的信息。
继续在该实施例中,所述请求解析信息过滤装置12根据所述引流策略信息中的所述时间信息,过滤所述请求解析信息,以获得对应的目标请求解析信息,具体地,请求解析信息过滤装置12根据预设在引流策略信息中的所述时间信息,过滤出满足所述预设时间信息的应用请求,即为目标应用请求信息,进一步地,可通过在引流策略信息中预设应用请求发生所需要满足的时间信息,例如,双十一(每年的11月11日)的凌晨零点,请求解析信息过滤装置12便根据预设的所述时间信息,过滤出双十一的凌晨零点的应用请求信息,以备目标应用设备进行分析,从而获得此时间点的用户点击/成交量等信息。
更优选地,所述引流策略信息包括:
所述请求解析信息中满足所述目标请求解析信息对应的内容信息;
其中,所述请求解析信息过滤装置:
根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
在该实施例中,所述引流策略信息包括所述请求解析信息中满足所述目标请求解析信息对应的内容信息,其中,所述请求解析信息中对应的应用请求的内容信息,为应用请求解析后的具体内容信息,例如,该请求包括的请求方法、域名、URL等信息,具体地,引流策略信息可包括代表应用请求特征的任何内容信息,例如,可以为应用请求使用的请求方法信息,当前应用设备接收到的应用请求的请求方法满足预设在引流策略中的请求方法时,即为目标应用请求信息;从而获得需要的目标应用请求信息。
继续在该实施例中,所述请求解析信息过滤装置12根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息,具体地,请求解析信息过滤装置12根据预设在引流策略信息中的所述内容信息,过滤出满足所述预设内容信息的应用请求,即为目标应用请求信息,进一步地,可通过在引流策略信息中预设代表应用请求特征的任何合适的内容信息,例如,可以设置该应用请求对应的请求方法、请求的域名等信息,例如,可将所述内容设置为满足“GET”请求方法,此时只有应用请求的请求解析信息中对应的请求方法为“GET”的请求解析信息被过滤出来,作为目标请求解析信息,从而获得通过“GET”请求方法的应用请求量信息,及通过“GET”请求方法的用户访问量等信息。
更更优选地,所述引流策略信息还包括:
所述目标请求解析信息对应的目标应用请求的数量信息;
其中,所述目标应用请求构造装置:
根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标应用请求。
在该实施例中,所述引流策略信息还包括所述目标请求解析信息对应的目标应用请求的数量信息,具体地,此处的数量信息为目标应用设备需要的具体应用请求对应的数量信息,例如,需要通过GET请求方法的100个应用请求量,该数量信息可能大于或小于等于所述请求解析信息过滤装置过滤出的目标请求解析信息对应的应用请求数量,也即二者无关,仅与目标应用设备的需求有关。
继续在该实施例中,在请求解析信息过滤装置根据引流策略信息中预设的所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息,和/或,所述请求解析信息中满足所述目标请求解析信息对应的内容信息,进行过滤获得目标请求解析信息后,还需要目标应用请求构造装置根据预设在引流策略信息中的所述目标请求解析信息对应的目标应用请求的数量信息,构造出符合数量要求的目标应用请求。
继续在该实施例中,所述目标应用请求构造装置根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标应用请求,具体地,当请求解析信息过滤装置过滤出的目标请求信息的数量大于所述数量信息时,仅需要将其中部分的目标请求解析信息构造对应的目标应用请求,进一步发送至目标应用设备,例如,若目标应用设备需要50个通过GET方法请求的目标应用请求,而请求解析信息过滤装置过滤出了100个通过GET方法请求的目标应用请求,此时目标应用请求构造装置仅需要从所述100个满足条件的目标应用请求中抽取50个,并构造对应的目标应用请求;同时,当请求解析信息过滤装置过滤出的目标请求信息的数量小于目标应用设备需要的数量时,需要将所述目标请求解析信息构造对应的目标应用请求后,进一步重复发送至目标应用设备,以达到目标应用设备需求的数量,其中具体需要重复发送的次数,根据每次发送的数量及目标应用设备需要的所述目标应用请求的数量相关。
优选地,所述当前应用设备与所述目标应用设备基于相同的应用层协议。
在该实施例中,所述当前应用设备与所述目标应用设备基于相同的应用层协议,具体地,当前应用设备与目标应用设备进行目标应用请求的传输,以及请求响应的返回均需要建立在一定的传输协议基础上。进一步地,应用层协议的具体类型不做限制,可通过例如,FTP(File Transfer Protocol)、Telnet(远程登录协议)、SMTP(Simple Mail Transfer  Protocol)、HTTP(Hyper Text Transfer Protocol)、SNMP(simple Network Management Protocol)、RIP(Routing Information Protocol)、NFS(Network File System)、DNS(Domain Name System)等来实现。
与现有技术相比,本申请通过获取与当前应用设备所接收的应用请求相对应的请求解析信息,例如,请求对应的请求方法、请求的时间、域名、URL等信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息,根据所述目标请求解析信息构造对应的目标应用请求,将所述目标应用请求发送至对应的目标应用设备,从而可以使目标应用设备对获取的来自当前应用设备的应用请求进行相应的分析、处理;以实现对当前应用设备所接收的应用请求的详细信息,同时,还可以以此分析判断出该当前应用设备接收相应请求信息的能力等性能。
而且,本申请还可以通过预设的引流策略信息对请求进行过滤,获得对应的请求流量信息,以便进行相应的测试或者分析等;例如,过滤出符合一定请求方法的请求,或过滤出符合预定请求时间的请求等,同时,若目标应用设备为测试系统时,可通过获取的对应请求信息,测试该新产品承受请求量的能力等,判断出对应当前应用设备在应对应用请求时的各种性能指标,以实现对当前应用设备的性能的评估,同时,目标应用设备也可以通过本申请的方案获取需要的请求流量信息,例如,某时间点的应用请求量,以统计该时间对应的用户访问情况,以满足基于需求的请求量信息,进一步获得其他有用性信息。
此外,本申请还可以根据目标应用设备接收目标应用请求后的响应情况,确定目标应用设备的工作状态,在目标应用设备处于非工作状态时,停止根据目标请求解析信息构造对应的目标应用请求;从而实现在目标应用设备未处于工作状态,不再进行目标应用请求的构造,以节约资源、并提高目标应用设备获取的相应请求流量信息的准确性等。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。装置权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。

Claims (22)

  1. 一种用于处理应用请求的方法,其中,该方法包括:
    获取与当前应用设备所接收的应用请求相对应的请求解析信息;
    对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
    根据所述目标请求解析信息构造对应的目标应用请求;
    将所述目标应用请求发送至对应的目标应用设备。
  2. 根据权利要求1所述的方法,其中,该方法还包括:
    接收所述目标应用设备基于所述目标应用请求返回的请求响应。
  3. 根据权利要求2所述的方法,其中,该方法还包括:
    根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态;
    其中,所述根据所述目标请求解析信息构造对应的目标应用请求包括:
    在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应的目标应用请求。
  4. 根据权利要求2或3所述的方法,其中,该方法还包括:
    丢弃所述请求响应。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息包括:
    根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息。
  6. 根据权利要求5所述的方法,其中,该方法还包括:
    根据所述目标应用设备确定所述引流策略信息。
  7. 根据权利要求5或6所述的方法,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;和/或
    所述请求解析信息中满足所述目标请求解析信息对应的内容信息。
  8. 根据权利要求7所述的方法,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;
    其中,所述对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息包括:
    根据所述引流策略信息中的所述时间信息过滤所述请求解析信息,以获得对应的目 标请求解析信息。
  9. 根据权利要求7所述的方法,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应的内容信息;
    其中,所述对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息包括:
    根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
  10. 根据权利要求8或9所述的方法,其中,所述引流策略信息还包括:
    所述目标请求解析信息对应的目标应用请求的数量信息;
    其中,所述根据所述目标请求解析信息构造对应的目标应用请求包括:
    根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标应用请求。
  11. 根据权利要求1至10中任一项所述的方法,其中,所述当前应用设备与所述目标应用设备基于相同的应用层协议。
  12. 一种用于处理应用请求的设备,其中,该设备包括:
    请求解析信息获取装置,用于获取与当前应用设备所接收的应用请求相对应的请求解析信息;
    请求解析信息过滤装置,用于对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息;
    目标应用请求构造装置,用于根据所述目标请求解析信息构造对应的目标应用请求;
    目标应用请求发送装置,用于将所述目标应用请求发送至对应的目标应用设备。
  13. 根据权利要求12所述的设备,其中,该设备还包括:
    请求响应接收装置,用于接收所述目标应用设备基于所述目标应用请求返回的请求响应。
  14. 根据权利要求13所述的设备,其中,该设备还包括:
    目标应用设备工作状态确定装置,用于根据所述目标应用设备返回的请求响应,确定所述目标应用设备的工作状态;
    其中,所述目标应用请求构造装置用于:
    在所述目标应用设备处于非工作状态时,停止根据所述目标请求解析信息构造对应 的目标应用请求。
  15. 根据权利要求13或14所述的设备,其中,该设备还包括:
    请求响应丢弃装置,用于丢弃所述请求响应。
  16. 根据权利要求12至15中任一项所述的设备,其中,所述请求解析信息过滤装置用于:
    根据预定的引流策略信息,对所述请求解析信息进行过滤处理以获得对应的目标请求解析信息。
  17. 根据权利要求16所述的设备,其中,该设备还包括:
    引流策略信息确定装置,用于根据所述目标应用设备确定所述引流策略信息。
  18. 根据权利要求16或17所述的设备,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;和/或
    所述请求解析信息中满足所述目标请求解析信息对应的内容信息。
  19. 根据权利要求18所述的设备,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应应用请求的发生时间信息;
    其中,所述请求解析信息过滤装置用于:
    根据所述引流策略信息中的所述时间信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
  20. 根据权利要求18所述的设备,其中,所述引流策略信息包括:
    所述请求解析信息中满足所述目标请求解析信息对应的内容信息;
    其中,所述请求解析信息过滤装置用于:
    根据所述引流策略信息中的所述内容信息过滤所述请求解析信息,以获得对应的目标请求解析信息。
  21. 根据权利要求19或20所述的设备,其中,所述引流策略信息还包括:
    所述目标请求解析信息对应的目标应用请求的数量信息;
    其中,所述目标应用请求构造装置用于:
    根据所述获得的对应的目标请求解析信息,构造符合所述引流策略中所述目标请求解析信息对应的目标应用请求的数量信息的目标应用请求。
  22. 根据权利要求12至21中任一项所述的设备,其中,所述当前应用设备与所述目标应用设备基于相同的应用层协议。
PCT/CN2016/097491 2015-09-09 2016-08-31 用于处理应用请求的方法与设备 Ceased WO2017041648A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510570817.7 2015-09-09
CN201510570817.7A CN106528396B (zh) 2015-09-09 2015-09-09 用于处理应用请求的方法与设备

Publications (1)

Publication Number Publication Date
WO2017041648A1 true WO2017041648A1 (zh) 2017-03-16

Family

ID=58240538

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097491 Ceased WO2017041648A1 (zh) 2015-09-09 2016-08-31 用于处理应用请求的方法与设备

Country Status (2)

Country Link
CN (1) CN106528396B (zh)
WO (1) WO2017041648A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413523A (zh) * 2019-07-26 2019-11-05 百度时代网络技术(北京)有限公司 引流测试方法、引流测试中台及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953452A (zh) * 2006-10-24 2007-04-25 中国科学院电工研究所 一种流媒体的动态认证及授权方法
CN102271136A (zh) * 2011-08-16 2011-12-07 赛尔网络有限公司 Nat网络环境下的访问控制方法和设备
CN102868693A (zh) * 2012-09-17 2013-01-09 苏州迈科网络安全技术股份有限公司 针对http分片请求的url过滤方法及系统
US20130151587A1 (en) * 2011-11-04 2013-06-13 Hitachi, Ltd. Filtering system and filtering method
CN103327025A (zh) * 2013-06-28 2013-09-25 北京奇虎科技有限公司 网络访问控制方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6684257B1 (en) * 1999-10-15 2004-01-27 International Business Machines Corporation Systems, methods and computer program products for validating web content tailored for display within pervasive computing devices
CN103428041B (zh) * 2012-05-22 2017-03-15 同方股份有限公司 一种基于云的端到端流量内容检测系统和检测方法
CN103491060B (zh) * 2012-06-13 2017-11-21 北京新媒传信科技有限公司 一种防御Web攻击的方法、装置、及系统
CN104601483A (zh) * 2013-10-31 2015-05-06 华为技术有限公司 报文转发方法、装置及转发设备
CN104301311B (zh) * 2014-09-28 2018-01-23 北京奇虎科技有限公司 Dns过滤网络数据内容的方法及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1953452A (zh) * 2006-10-24 2007-04-25 中国科学院电工研究所 一种流媒体的动态认证及授权方法
CN102271136A (zh) * 2011-08-16 2011-12-07 赛尔网络有限公司 Nat网络环境下的访问控制方法和设备
US20130151587A1 (en) * 2011-11-04 2013-06-13 Hitachi, Ltd. Filtering system and filtering method
CN102868693A (zh) * 2012-09-17 2013-01-09 苏州迈科网络安全技术股份有限公司 针对http分片请求的url过滤方法及系统
CN103327025A (zh) * 2013-06-28 2013-09-25 北京奇虎科技有限公司 网络访问控制方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413523A (zh) * 2019-07-26 2019-11-05 百度时代网络技术(北京)有限公司 引流测试方法、引流测试中台及计算机可读存储介质
CN110413523B (zh) * 2019-07-26 2023-07-25 百度时代网络技术(北京)有限公司 引流测试方法、引流测试中台及计算机可读存储介质

Also Published As

Publication number Publication date
CN106528396A (zh) 2017-03-22
CN106528396B (zh) 2019-06-11

Similar Documents

Publication Publication Date Title
US11606439B2 (en) Exit node benchmark feature
US9491077B2 (en) Network metric reporting system
CN104994133B (zh) 一种基于网络KPI的移动Web网页访问用户体验感知评测方法
CN102088377B (zh) 一种用于资产管理的人机对应方法及装置
CN106411629B (zh) 一种用于监控cdn节点的状态的方法和设备
CN108134816B (zh) 对远程设备上的数据的访问
CN113055420B (zh) Https业务识别方法、装置及计算设备
WO2019137208A1 (zh) 一种底层数据监控方法、介质、设备及装置
CN110633195B (zh) 一种性能数据的展示方法、装置、电子设备及存储介质
CN114071544B (zh) 网络测试方法、装置和电子设备
CN109639767A (zh) 一种业务网关数据处理方法、装置、设备
CN107992416A (zh) 一种网页时延的确定方法及装置
CN105871734A (zh) 获取本地域名系统流量分布信息的方法和装置
CN107135091B (zh) 一种应用质量指标映射方法、服务器和客户端
CN108880920A (zh) 云服务管理方法、装置以及电子设备
WO2017041648A1 (zh) 用于处理应用请求的方法与设备
CN113453076B (zh) 用户视频业务质量评估方法、装置、计算设备和存储介质
US10621496B2 (en) Management of context data
WO2017005118A1 (zh) 维持通信连接的方法、装置、终端及服务器
WO2016197982A1 (zh) 一种群智感知方法及装置
CN204836205U (zh) 一种基于云计算的网络监测系统
CN105357287B (zh) 一种兼容snmp和smi-s的存储管理服务端及系统
CN105337778A (zh) 物联网事件驱动服务管理系统
WO2017079893A1 (zh) 数据推送方法、系统及装置
CN116418701A (zh) 质量监测方法、装置、通信设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843586

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843586

Country of ref document: EP

Kind code of ref document: A1