Reverse proxy server and network diagnosis method and device

By using mapped storage tables to store network address mapping relationships in reverse proxy servers, the problem of traditional technology being difficult to adapt to the rapidly changing network environment is solved, efficient data crawling of diagnosis network addresses and target server addresses is achieved, and the efficiency and accuracy of network diagnosis is improved.

CN119892698APending Publication Date: 2025-04-25HANGZHOU DPTECH TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510005413.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Traditional network monitoring and troubleshooting technologies are difficult to adapt to rapidly changing and upgrading network environments, and cannot be processed and analyzed in real time when facing a large amount of data, resulting in extended fault location and resolution time, and it is difficult to detect potential network risks or hidden dangers in a timely manner.

Method used

The mapped storage table is preset in the reverse proxy server, and the network address mapping relationship between the reverse proxy server and the actual server is stored in a custom data structure. After receiving the network diagnostic request, the target server address of the network address to be diagnosed is extracted from the mapped storage table and data is crawled.

Benefits of technology

It realizes efficient and accurate data capture of diagnostic network addresses and target server addresses, and improves the convenience and efficiency of developers' diagnosis of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892698A_ABST
    Figure CN119892698A_ABST
Patent Text Reader

Abstract

The invention provides a reverse proxy server and a network diagnosis method and device. The reverse proxy server comprises a mapping storage table used for storing a mapping relation between each network address in a network address set of the reverse proxy server and the network address of each actual server in a self-defined data structure; the processor is used for extracting a to-be-diagnosed network address from a network request under the condition that the network diagnosis request is received, determining a target server address corresponding to the to-be-diagnosed network address based on the mapping storage table, performing data capture on the to-be-diagnosed network address and the target server address, and sending the data to the to-be-diagnosed network address to the to-be-diagnosed network address to the to-be-diagnosed network address. Therefore, developers can carry out network diagnosis according to the grabbed data. Through the reverse proxy server provided by the application, data capture can be performed on the network address to be diagnosed and the target server address more efficiently and accurately, and the convenience and efficiency of network diagnosis by developers are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a reverse proxy server, a network diagnosis method and a device. Background Art

[0002] With the continuous development of network architecture and technology, network diagnosis and troubleshooting have become more complex, and traditional network monitoring and troubleshooting technologies have gradually exposed some inherent limitations. These traditional technologies often rely on static rules and manual intervention, and are difficult to adapt to the rapidly changing and constantly upgrading network environment. At the same time, with the sharp increase in network traffic and the number of devices, traditional monitoring tools may not be able to process and analyze large amounts of data in real time, resulting in a significant increase in the time to locate and resolve faults, and even the inability to promptly discover potential network risks or hidden dangers.

[0003] A reverse proxy is a proxy server that forwards client requests to an internal server and returns responses to the client. In the related art, diagnosing network faults in a reverse proxy architecture usually relies on capturing messages from both the reverse proxy server and the actual server, and correlating the traffic relationship between the client and the backend server by analyzing the XFF (X-Forwarded-For, forwarding source address) field in the message. However, this network diagnostic method usually has the problems of low efficiency and poor accuracy. Summary of the invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a reverse proxy server, a network diagnosis method and a device.

[0005] According to a first aspect of an embodiment of the present disclosure, the present application provides a reverse proxy server, including:

[0006] A mapping storage table, used to store the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in a custom data structure;

[0007] A processor is used to, upon receiving a network diagnosis request, extract a network address to be diagnosed from the network request, determine a target server address corresponding to the network address to be diagnosed based on the mapping storage table, and capture data for the network address to be diagnosed and the target server address, so that a user can perform network diagnosis based on the captured data, wherein the network address to be diagnosed is a network address in the network address set of the reverse proxy server.

[0008] In one embodiment, the custom data structure is a local communication endpoint structure LPC, and the mapping storage table stores the LPC of each network address of the reverse proxy server and the LPC of each actual server, and the LPC of the network address of the reverse proxy server stores the LPC identifier of the bound actual server, and the LPC of the actual server stores the LPC identifier of the network address of the bound reverse proxy server.

[0009] In one of the embodiments, the LPC corresponding to the network address of the reverse proxy server also stores interface information corresponding to the network address;

[0010] The LPC corresponding to the actual server also stores the interface information of the actual server.

[0011] According to a second aspect of an embodiment of the present disclosure, the present application provides a network diagnosis method, the method being applied to a reverse proxy server, the reverse proxy server being used as a reverse proxy for at least one actual server, comprising:

[0012] In response to receiving a network diagnosis request, extracting a network address to be diagnosed from the network diagnosis request;

[0013] Based on the mapping storage table, determining the target server address corresponding to the network address to be diagnosed;

[0014] Data is captured for the network address to be diagnosed and the target server address, so that developers can perform network diagnosis based on the captured data.

[0015] In combination with any embodiment of the present disclosure, the determining, based on the mapping storage table, the target server address corresponding to the network address to be diagnosed includes:

[0016] Determine a target network address of a reverse proxy server that matches the network address to be diagnosed;

[0017] Determine the opposite end LPC corresponding to the target network address from the LPC of the target network address;

[0018] The target server address corresponding to the network address to be diagnosed is obtained from the opposite LPC.

[0019] In combination with any embodiment of the present disclosure, the mapping storage table further stores interface information corresponding to each network address of the reverse proxy server and interface information of each actual server;

[0020] The data capture for the to-be-diagnosed network address and the target server address includes:

[0021] Determine the first interface information corresponding to the to-be-diagnosed network address and the second interface information of the target server from the mapping storage table;

[0022] Based on the first interface information and the second interface information, data is captured for the network address to be diagnosed and the target server address.

[0023] In combination with any embodiment of the present disclosure, the method further includes:

[0024] When it is determined that the data capture duration is greater than or equal to a preset duration threshold, and / or a capture termination instruction initiated by a developer is received, a target file is generated based on the captured data, and the target file is uploaded for the developer to perform network diagnosis based on the target file.

[0025] According to a third aspect of the embodiments of the present disclosure, the present application provides a network diagnosis device, the device comprising:

[0026] An address extraction module, configured to extract a network address to be diagnosed from the network diagnosis request in response to receiving the network diagnosis request;

[0027] An address determination module, used to determine the target server address corresponding to the network address to be diagnosed based on the mapping storage table;

[0028] The data capture module is used to capture data for the network address to be diagnosed and the target server address, so that developers can perform network diagnosis based on the captured data.

[0029] In one embodiment, the address determination module is specifically used for:

[0030] Determine a target network address of a reverse proxy server that matches the network address to be diagnosed;

[0031] Determine the opposite end LPC corresponding to the target network address from the LPC of the target network address;

[0032] The target server address corresponding to the network address to be diagnosed is obtained from the opposite LPC.

[0033] In one embodiment, the mapping storage table also stores interface information corresponding to each network address of the reverse proxy server and interface information of each actual server; the data capture module is specifically used for:

[0034] Determine the first interface information corresponding to the to-be-diagnosed network address and the second interface information of the target server from the mapping storage table;

[0035] Based on the first interface information and the second interface information, data is captured for the network address to be diagnosed and the target server address.

[0036] In one embodiment, the network diagnostic device further includes:

[0037] The file generation module is used to generate a target file based on the captured data and upload the target file when it is determined that the data capture time is greater than or equal to a preset time threshold and / or a capture termination instruction initiated by a developer is received, so that the developer can perform network diagnosis based on the target file.

[0038] In a fourth aspect, the present application provides a computer program product, comprising a computer program / instructions, which implement the steps of the method described in any embodiment when executed by a processor.

[0039] In a fifth aspect, the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any of the above embodiments when executing the program.

[0040] In a sixth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any of the above embodiments.

[0041] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0042] In the disclosed embodiment, a mapping storage table is preset in the reverse proxy server to use a custom data structure to map the relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server. When a network diagnosis request for the network address to be diagnosed is received, the target server address that actually corresponds to the network address to be diagnosed can be directly determined from the mapping storage table. This enables more efficient and accurate data capture of the network address to be diagnosed and the target server address, so that developers can perform network diagnosis on the captured data, thereby improving the convenience and efficiency of developers in diagnosing the network.

[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0045] Figure 1 It is a schematic diagram of a reverse proxy server shown in some exemplary embodiments.

[0046] Figure 2 is a schematic diagram of an LPC shown in some exemplary embodiments.

[0047] Figure 3 is a schematic diagram of another LPC shown in some exemplary embodiments.

[0048] Figure 4 The present invention is a flow chart of a network diagnosis method shown in some exemplary embodiments.

[0049] Figure 5 The invention is a block diagram of a network diagnosis device showing some exemplary embodiments.

[0050] Figure 6 The figure is a hardware structure diagram of a computer device shown in some exemplary embodiments. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0053] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0054] In the related art, the method of diagnosing network faults in the reverse proxy architecture usually relies on capturing messages from both the reverse proxy server and the actual server, and correlating the traffic relationship between the client and the backend server by analyzing the XFF field in the message. However, this network diagnosis method has many limitations. For example, if the actual server has SSL (Secure Sockets Layer) encryption, the XFF field in the actual server cannot be directly extracted, that is, further network diagnosis cannot be performed; or, the client may forge the XFF field through a network security testing tool (such as Burp Suite), resulting in inaccurate message data captured by the reverse proxy server, thereby affecting the results of the developer's diagnosis of the network.

[0055] In view of this, the present disclosure provides a reverse proxy server, a network diagnosis method and a device.

[0056] The first aspect of the present disclosure provides a reverse proxy server, such as Figure 1 As shown, it includes a mapping storage table for storing the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in a custom data structure.

[0057] Among them, the customized data structure may include LPC (Local Procedure Calls, local communication endpoint structure), the mapping storage table may be composed of multiple LPCs, the mapping storage table may include the LPC corresponding to each network address in the network address set of the reverse proxy server, and the LPC corresponding to each actual server, and the LPC of the network address of the reverse proxy server stores the LPC identifier of the bound actual server, and the LPC of the actual server stores the LPC identifier of the network address of the bound reverse proxy server.

[0058] Optionally, for each network address in the network address set of the reverse proxy server, the LPC corresponding to the network address can be as follows: Figure 2 As shown, the LPC identifier of the network address (e.g., LPC1), the network address (e.g., 1.1.1.1), and the LPC identifier of the opposite end corresponding to the network address, i.e., the LPC identifier of the actual server bound to the network address (e.g., LPC2), etc. are stored. Further, according to the LPC identifier of the opposite end corresponding to the network address, the LPC of the opposite end, i.e., the LPC of the actual server bound to the network address, can be found from the mapping storage table, in which the LPC identifier of the actual server, the network address of the actual server, etc., are stored.

[0059] It can be understood that by storing the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in LPC in the mapping storage table, the mapping relationship between each network address and the network address of each actual server can be clearly and effectively managed, thereby achieving a more efficient and accurate positioning of the network address of the actual server corresponding to each network address.

[0060] The reverse proxy server also includes a processor, which is used to extract the network address to be diagnosed from the network request when a network diagnosis request is received, determine the target server address corresponding to the network address to be diagnosed based on the mapping storage table, and capture data for the network address to be diagnosed and the target server address, so that developers can perform network diagnosis based on the captured data.

[0061] Among them, a network diagnostic request refers to a request for fault diagnosis for one or more network addresses. The network diagnostic request can be initiated by the developer, or it can be initiated by the reverse proxy server itself when a network failure is detected at a network address. The network address to be diagnosed refers to the network address where a network failure occurs and needs to be diagnosed. The network address to be diagnosed is essentially a network address in the network address set of the reverse proxy server. The target server refers to the actual server corresponding to the network address to be diagnosed, and the target server address refers to the network address of the target server.

[0062] Optionally, when receiving a network diagnosis request, the reverse proxy server can analyze the network diagnosis request and extract the network address to be diagnosed; then, based on the network address to be diagnosed, find the LPC of the target network address of the reverse proxy server that matches the network address to be diagnosed from the mapping storage table, and find the opposite end LPC from the LPC of the target network address; further, the network address stored in the opposite end LPC can be used as the target server address corresponding to the network address to be diagnosed; data can be captured for the network address to be diagnosed and the target server address, and the captured data can be uploaded to the developer for the developer to perform network diagnosis on the captured data.

[0063] In the disclosed embodiment, a mapping storage table is preset in the reverse proxy server to store the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in a custom data structure. When a network diagnosis request for the network address to be diagnosed is received, the target server address actually corresponding to the network address to be diagnosed can be directly determined from the mapping storage table, thereby enabling more efficient and accurate data capture of the network address to be diagnosed and the target server address, so that developers can perform network diagnosis on the captured data, thereby achieving the effect of improving the convenience and efficiency of developers in diagnosing the network.

[0064] In an exemplary embodiment, the LPC corresponding to the network address of the reverse proxy server also stores interface information corresponding to the network address; and the LPC corresponding to the actual server also stores interface information of the actual server.

[0065] Exemplarily, the interface information corresponding to the network address to be diagnosed can be obtained from the LPC corresponding to the network address to be diagnosed, and the target server address and the interface information of the target server can be obtained from the opposite LPC corresponding to the network address to be diagnosed (i.e., the LPC of the target server corresponding to the network address to be diagnosed), and then based on the interface information corresponding to the network address to be diagnosed and the interface information of the target server, data is captured for the network address to be diagnosed and the target server address. Figure 3 As shown, if the network address to be diagnosed is 1.1.1.1, the LPC of the network address to be diagnosed can be found based on the network address to be diagnosed, and the interface information corresponding to the network address to be diagnosed can be obtained therefrom; further, the opposite LPC identifier can be determined to be LPC2, and the opposite LPC described by LPC2 can be found, and then the network address of the actual server corresponding to the network address to be diagnosed and the interface information of the actual server can be obtained from the opposite LPC.

[0066] It should be noted that, compared to obtaining the target server address corresponding to the network address to be diagnosed and then searching for the interface information of the target server from the target server, by storing the interface information of each network address in the network address set of the reverse proxy server and the interface information of each actual server in the mapping storage table, it is possible to more efficiently obtain the interface information corresponding to the network address to be diagnosed and the interface information of the target server, and then, based on the interface information corresponding to the network address to be diagnosed and the interface information of the target server, achieve the effect of improving the efficiency and comprehensiveness of network diagnosis for the network address to be diagnosed and the target server address.

[0067] The second aspect of the present disclosure provides a network diagnosis method, which is applied to the reverse proxy server as described in the first aspect, and the reverse proxy server is used to act as a reverse proxy for at least one actual server; the reverse proxy server is used to forward the network access request initiated by the client to the corresponding actual server when receiving the network access request initiated by the client, and feed back the response information returned by the actual server to the client, thereby hiding the real address of each actual server from the client, and distributing the network request initiated by the client to different actual servers to help achieve load balancing. Figure 4 , the method comprises the following steps:

[0068] S401 , in response to receiving a network diagnosis request, extracting a network address to be diagnosed from the network diagnosis request.

[0069] Optionally, when a network diagnosis request is received, the network request may be analyzed to extract the network address to be diagnosed.

[0070] S402: Determine the target server address corresponding to the network address to be diagnosed based on the mapping storage table.

[0071] Optionally, after determining the network address to be diagnosed, the network address of the actual server corresponding to the network address to be diagnosed, ie, the target server address, may be determined based on the mapping relationship between each network address stored in the mapping storage table and the network address of each actual server.

[0072] S403, capturing data for the network address to be diagnosed and the target server address, so that the developer can perform network diagnosis based on the captured data.

[0073] Optionally, after determining the target server network address corresponding to the network address to be diagnosed, the data flow between the network address to be diagnosed and the target server address can be captured through a data capture tool (such as Wireshark, tcpdump, etc.), such as network protocols, data packets in the communication process, delays, packet loss, connection status and other information; and then a target file can be generated based on the captured data, and the target file can be uploaded so that developers can perform more accurate network diagnosis based on the target file to prevent the problem of inaccurate diagnostic results caused by data loss.

[0074] In this embodiment, a mapping storage table for storing the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server is preset in the reverse proxy server. When a network diagnosis request for the network address to be diagnosed is received, there is no need to capture data from both the client and the actual server respectively. Instead, the target server address actually corresponding to the network address to be diagnosed is directly determined from the mapping storage table. This enables more efficient and accurate data capture of the network address to be diagnosed and the target server address at the same time, so that developers can perform network diagnosis on the captured data, thereby achieving the effect of improving the convenience and efficiency of developers in diagnosing the network.

[0075] On the basis of the above embodiments, in an exemplary embodiment, if the mapping storage table stores the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in LPC, that is, the mapping storage table includes the LPC corresponding to each network address in the network address set of the reverse proxy server and the LPC corresponding to each actual server, then the target network address of the reverse proxy server matching the network address to be diagnosed can be determined; the opposite LPC corresponding to the target network address can be determined from the LPC of the target network address; and the target server address corresponding to the network address to be diagnosed can be obtained from the opposite LPC.

[0076] Exemplarily, after obtaining the network address to be diagnosed, the target network address of the reverse proxy server that matches the network address to be diagnosed can be found from the mapping storage table, and the LPC corresponding to the target network address can be determined. According to the peer LPC identifier stored in the LPC corresponding to the target network address, the peer LPC corresponding to the target network address, that is, the LPC of the target server, can be found; further, the network address of the target server can be directly obtained from the LPC of the target server, that is, the address of the target server corresponding to the network address to be diagnosed. For example, if the peer LPC identifier stored in the LPC corresponding to the target network address of the reverse proxy server that matches the network address to be diagnosed is LPC2, then the LPC identified as LPC2 can be used as the LPC of the target server, and the network address recorded in the LPC of the target server can be used as the address of the target server corresponding to the network address to be diagnosed.

[0077] It can be understood that by storing the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in LPC in the mapping storage table, the mapping relationship between each network address and the network address of each actual server can be clearly and effectively managed, thereby achieving a more efficient and accurate positioning of the target server address corresponding to the network address to be diagnosed.

[0078] In an exemplary embodiment, the mapping storage table also stores interface information corresponding to each network address of the reverse proxy server and interface information of each actual server;

[0079] Determine the first interface information corresponding to the network address to be diagnosed and the second interface information of the target server from the mapping storage table; and capture data for the network address to be diagnosed and the target server address based on the first interface information and the second interface information.

[0080] Exemplarily, each network address stored in the mapping storage table may carry interface information corresponding to the network address; after determining the network address to be diagnosed, the first interface information corresponding to the network address to be diagnosed may be obtained from the mapping storage table, and then the target server address corresponding to the network address to be diagnosed may be determined based on the mapping relationship, and the second interface information of the target server may be obtained; further, based on the obtained first interface information and second interface information, the communication data between the network address to be diagnosed and the target server address may be captured from the first interface and the second interface, so that developers can perform network diagnosis based on the captured data.

[0081] Alternatively, the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server is stored in the mapping storage table as LPC, and, for each network address in the network address set of the reverse proxy server, the LPC corresponding to the network address includes the interface information corresponding to the network address, and for each actual server, the LPC corresponding to the actual server includes the interface information of the actual server. The first interface information corresponding to the network address to be diagnosed can be obtained from the LPC corresponding to the network address to be diagnosed; and the second interface information of the target server can be obtained from the opposite LPC corresponding to the network address to be diagnosed (i.e., the LPC corresponding to the target server); further, based on the acquired first interface information and second interface information, the communication data flow between the network address to be diagnosed and the target server address can be captured from the first interface and the second interface, so that the developer can perform network diagnosis based on the captured data.

[0082] It should be noted that by obtaining the first interface information corresponding to the network address to be diagnosed and the second interface information corresponding to the target server network address, based on the first interface information and the second interface information, the data between the network address to be diagnosed and the target server address can be captured more comprehensively, thereby improving the accuracy and comprehensiveness of the network diagnosis performed by developers based on the captured data.

[0083] In an exemplary embodiment, when it is determined that the data capture duration is greater than or equal to a preset duration threshold and / or a capture termination instruction initiated by a developer is received, a target file is generated based on the captured data and the target file is uploaded.

[0084] Among them, the data capture duration greater than or equal to the preset duration threshold is a pre-set data capture termination condition. Similarly, the data capture termination condition can also be that the data capture quantity is greater than the preset quantity threshold, etc.; when it is determined that the data capture termination condition is met, the data capture can be terminated, and a target file can be generated based on the captured data, and then the target file can be uploaded for developers to perform network diagnosis based on the target file. The capture termination instruction refers to an instruction manually initiated by the developer to terminate data capture.

[0085] In one case, during the data capture process for the network address to be diagnosed and the target server address, the data capture duration can be monitored; if it is determined that the data capture duration is greater than or equal to a preset threshold, the data capture operation can be terminated, and then the target file can be automatically generated based on the captured data, and the target file can be uploaded for the developer to perform network diagnosis based on the target file.

[0086] It can be understood that by pre-setting data capture termination conditions such as the data capture duration being greater than or equal to a preset duration threshold, and terminating the data capture operation when it is determined that the data capture termination conditions are met, it is possible to ensure the comprehensiveness of the captured data and avoid missing important network events (such as occasional network fluctuations, short-term high loads, etc.) due to too short capture time or too small a data capture amount. Furthermore, the target file is automatically generated and uploaded based on the captured data, thereby improving the accuracy of the developer's network diagnosis based on the target file.

[0087] In another case, when a crawl termination instruction initiated by a developer is received, a target file can be generated according to the crawled data and the target file can be uploaded.

[0088] Optionally, the developer can initiate a crawl termination instruction to the reverse proxy server by double-clicking a button or other operations; upon receiving the crawl termination instruction, the reverse proxy server can terminate the data crawling operation, automatically generate a target file based on the captured data, and upload the generated target file for the developer to perform network diagnosis.

[0089] It should be noted that by manually initiating a crawl termination instruction by the developer and promptly terminating the data crawling operation when the crawl termination instruction is received, it is possible to avoid crawling duplicate or invalid data and adjust the crawling strategy in a timely manner, thereby improving the comprehensiveness and accuracy of the crawled data, and further improving the accuracy of network diagnosis based on the target file generated based on the crawled data.

[0090] Corresponding to the embodiments of the aforementioned method, the present disclosure also provides embodiments of a device and a terminal to which the device is applied.

[0091] In a third aspect, the present application also provides a network diagnostic device, such as Figure 5 As shown, including:

[0092] The address extraction module 501 is used for extracting the network address to be diagnosed from the network diagnosis request in response to receiving the network diagnosis request;

[0093] An address determination module 502 is used to determine the target server address corresponding to the network address to be diagnosed based on a mapping storage table;

[0094] The data capture module 503 is used to capture data for the network address to be diagnosed and the target server address, so that the developer can perform network diagnosis based on the captured data.

[0095] In one embodiment, the address determination module 502 is specifically used to:

[0096] Determine a target network address of a reverse proxy server that matches the network address to be diagnosed;

[0097] Determine the opposite end LPC corresponding to the target network address from the LPC of the target network address;

[0098] The target server address corresponding to the network address to be diagnosed is obtained from the opposite LPC.

[0099] In one embodiment, the mapping storage table also stores interface information corresponding to each network address of the reverse proxy server and interface information of each actual server; the data capture module 503 is specifically used for:

[0100] Determine the first interface information corresponding to the to-be-diagnosed network address and the second interface information of the target server from the mapping storage table;

[0101] Based on the first interface information and the second interface information, data is captured for the network address to be diagnosed and the target server address.

[0102] In one embodiment, the network diagnostic device further includes:

[0103] The file generation module is used to generate a target file based on the captured data and upload the target file when it is determined that the data capture time is greater than or equal to a preset time threshold and / or a capture termination instruction initiated by a developer is received, so that the developer can perform network diagnosis based on the target file.

[0104] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0105] A fourth aspect of the present disclosure provides a computer program product, including a computer program / instruction, which implements the method described in the second aspect when executed by a processor.

[0106] For the device embodiments and computer program product embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. In addition, the device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative labor.

[0107] In a fifth aspect, the embodiments of the network diagnostic apparatus provided by the present disclosure can be applied to computer equipment. Figure 6 , which exemplarily shows a hardware schematic diagram of a computer device. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0108] The device 600 may include one or more of the following components: a processing component 601 , a memory 602 , a power component 603 , a multimedia component 604 , an audio component 605 , an input / output (I / O) interface 606 , a sensor component 607 , and a communication component 608 .

[0109] The processing component 601 generally controls the overall actions of the device 600, such as actions associated with display, phone calls, data communications, camera actions, and recording actions. The processing component 601 may include one or more processors 609 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 601 may include one or more modules to facilitate the interaction between the processing component 601 and other components. For example, the processing component 601 may include a multimedia module to facilitate the interaction between the multimedia component 604 and the processing component 601.

[0110] The memory 602 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0111] The power component 603 provides power to the various components of the device 600. The power component 603 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 600.

[0112] The multimedia component 604 includes a screen providing an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, the multimedia component 604 includes a front camera and / or a rear camera. When the device 600 is in an action mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0113] The audio component 605 is configured to output and / or input audio signals. For example, the audio component 605 includes a microphone (MIC), and when the device 600 is in an action mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 602 or sent via the communication component 608. In some embodiments, the audio component 605 also includes a speaker for outputting audio signals.

[0114] I / O interface 606 provides an interface between processing component 601 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0115] The sensor assembly 607 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 607 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 607 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 607 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 607 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 607 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0116] The communication component 608 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 608 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 608 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0117] In an exemplary embodiment, the device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned network diagnostic method for a computer device.

[0118] In a sixth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 602 including instructions, and the instructions can be executed by a processor 609 of a device 600 to complete the network diagnosis method of the computer device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0119] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the inventions claimed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not claimed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0121] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0122] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A reverse proxy server, characterized in that: include: A mapping storage table, used to store the mapping relationship between each network address in the network address set of the reverse proxy server and the network address of each actual server in a custom data structure; A processor is used to, upon receiving a network diagnosis request, extract a network address to be diagnosed from the network request, determine a target server address corresponding to the network address to be diagnosed based on the mapping storage table, and capture data for the network address to be diagnosed and the target server address, so that a user can perform network diagnosis based on the captured data, wherein the network address to be diagnosed is a network address in the network address set of the reverse proxy server.

2. The reverse proxy server according to claim 1, characterized in that: The custom data structure is a local communication endpoint structure LPC, and the mapping storage table stores the LPC of each network address of the reverse proxy server and the LPC of each actual server. The LPC of the network address of the reverse proxy server stores the LPC identifier of the bound actual server, and the LPC of the actual server stores the LPC identifier of the network address of the bound reverse proxy server.

3. The reverse proxy server according to claim 2, characterized in that: The LPC corresponding to the network address of the reverse proxy server also stores interface information corresponding to the network address; The LPC corresponding to the actual server also stores the interface information of the actual server.

4. A network diagnosis method, characterized in that: The method is applied to the reverse proxy server according to any one of claims 1 to 3, wherein the reverse proxy server is used as a reverse proxy for at least one actual server, and comprises: In response to receiving a network diagnosis request, extracting a network address to be diagnosed from the network diagnosis request; Based on the mapping storage table, determining the target server address corresponding to the network address to be diagnosed; Data is captured for the network address to be diagnosed and the target server address, so that developers can perform network diagnosis based on the captured data.

5. The method according to claim 4, characterized in that The determining, based on the mapping storage table, the target server address corresponding to the network address to be diagnosed includes: Determine a target network address of a reverse proxy server that matches the network address to be diagnosed; Determine the opposite end LPC corresponding to the target network address from the LPC of the target network address; The target server address corresponding to the network address to be diagnosed is obtained from the opposite LPC.

6. The method according to claim 4, characterized in that The mapping storage table also stores interface information corresponding to each network address of the reverse proxy server and interface information of each actual server; The data capture for the to-be-diagnosed network address and the target server address includes: Determine the first interface information corresponding to the to-be-diagnosed network address and the second interface information of the target server from the mapping storage table; Based on the first interface information and the second interface information, data is captured for the network address to be diagnosed and the target server address.

7. The method according to claim 4, characterized in that The method further comprises: When it is determined that the data capture duration is greater than or equal to a preset duration threshold, and / or a capture termination instruction initiated by a developer is received, a target file is generated based on the captured data and the target file is uploaded for the developer to perform network diagnosis based on the target file.

8. A network diagnostic device, characterized in that: The device comprises: An address extraction module, configured to extract a network address to be diagnosed from the network diagnosis request in response to receiving the network diagnosis request; An address determination module, used to determine the target server address corresponding to the network address to be diagnosed based on the mapping storage table; The data capture module is used to capture data for the network address to be diagnosed and the target server address, so that developers can perform network diagnosis based on the captured data.

9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 4 to 7 is implemented.

10. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 4 to 7 is implemented.