Proxy server testing method, device, electronic device and storage medium

By obtaining proxy service requests and server feature information, combining terminal device feature information, evaluating and determining the target test proxy server, the problem of incomplete data in the existing test methods is solved, and the testing efficiency and effect are improved.

CN114138584BActive Publication Date: 2025-04-25BEIJING SINO BRIDGE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111501723.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2025-04-25
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

Due to incomplete data, the existing testing methods cannot efficiently implement the test and cannot effectively evaluate the performance and status of the proxy server.

Method used

By obtaining a proxy service request, the number of target connections is determined, and the target connections are determined among multiple proxy servers. Send server feature upload instructions to obtain server feature information, including the number of connection requests issued, number of received, number of exception requests, number of parallel bearers, error logs and computer room status information. Combining the characteristic information of the terminal device, evaluate and determine the target test proxy server.

Benefits of technology

By evaluating the characteristic information of the proxy server and the characteristic information of the terminal device from multiple angles, the target test proxy server is determined, which significantly improves the testing efficiency and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138584B_ABST
    Figure CN114138584B_ABST
Patent Text Reader

Abstract

The present disclosure embodiment discloses a proxy server testing method, apparatus, electronic device and storage medium, the method comprising: obtaining a proxy service request, and obtaining a target connection number according to the proxy service request; obtaining information of a proxy server to be connected, and determining the target connection number of proxy servers from a plurality of proxy servers indicated by the information of the proxy server to be connected; sending a server feature upload instruction, and obtaining server feature information sent by the target connection number of proxy servers in response to the server feature upload instruction; obtaining terminal device feature information; determining a target test proxy server from the target connection number of proxy servers according to the server feature information and the terminal device feature information, and testing the target test proxy server.
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 proxy server testing method, device, electronic device and storage medium. Background Art

[0002] Testing is a necessary procedure to ensure that the website can be used normally. Automated testing is a process that converts human-driven testing behavior into machine execution. Usually, after designing test cases and passing the review, the test is executed according to the procedures described in the test cases to compare the actual results with the expected results. The existing testing methods have the problem of incomplete data, which makes it impossible to implement testing efficiently. Summary of the invention

[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide a proxy server testing method, device, electronic device and storage medium.

[0004] In a first aspect, an embodiment of the present disclosure provides a proxy server testing method, which is applied to a terminal device and includes:

[0005] Obtain a proxy service request, and obtain the target connection number according to the proxy service request;

[0006] Obtaining information of a proxy server to be connected, and determining a target number of proxy servers to be connected from a plurality of proxy servers indicated by the information of the proxy server to be connected;

[0007] Send a server feature upload instruction, and obtain server feature information sent by a target number of proxy servers in response to the server feature upload instruction, the server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, error logs, and computer room status information. The number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The target time interval is before the target time of sending the server feature upload instruction. The number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval. The number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval. The number of parallel-bearing agents is the number of proxy services parallelly carried by the proxy server within the target time interval. The error log includes the network log when an error occurs in the proxy server within the target time interval. The computer room status information is the status information of the computer room where the proxy server is located within the target time interval.

[0008] Acquire terminal device characteristic information, the terminal device characteristic information includes the network delay between the terminal device and the proxy server within the target time interval, and the application characteristic information of the terminal device within the target time interval;

[0009] A target test proxy server is determined from a target number of connected proxy servers according to the server feature information and the terminal device feature information, and the target test proxy server is tested.

[0010] In one implementation of the present disclosure, the application characteristic information includes business type information and business characteristic information of the application running on the terminal device within the target time interval, the business type information is used to indicate the business type of the business corresponding to the application, and the business types include live broadcast business, streaming media business, online retail business, game business, and chat business. The business characteristic information is used to indicate the write data rate, read data rate, number of concurrent threads, number of errors per unit time, and number of restarts per unit time of the business corresponding to the application.

[0011] In one implementation of the present disclosure, determining a target test proxy server from a target number of proxy servers according to server feature information and client terminal feature information includes:

[0012] Determine the proxy server with the largest number of connection requests received among the target number of proxy servers;

[0013] Determine a proxy server having the smallest number of connection requests sent out among the proxy servers having the largest number of connection requests received;

[0014] Determine a proxy server having the least number of abnormal connection requests received among the proxy servers having the least number of connection requests sent;

[0015] Determine a proxy server with the least number of parallel-hosted proxies among the proxy servers that receive the least number of abnormal connection requests;

[0016] Determine, among the proxy servers with the least number of parallel-hosted proxies, a proxy server having an error count in an error log that is less than or equal to a preset error count threshold;

[0017] Among the proxy servers whose error count is less than or equal to the preset error count threshold, the proxy server whose network delay with the terminal device within the target time interval is the smallest, whose error type in the error log does not belong to the preset error type set, whose computer room status information matches the preset computer room status information, and whose application feature information indicated by the corresponding application identification matches the application feature information of the terminal device within the target time interval is determined as the target test proxy server.

[0018] In one implementation of the present disclosure, determining a target test proxy server from a target number of proxy servers according to server feature information and client terminal feature information includes:

[0019] Obtain a pre-trained proxy server determination model, and use the server feature information and the client terminal feature information as inputs, and input them into the proxy server determination model to obtain proxy server indication information;

[0020] Determine the target test proxy server in the target number of proxy servers for connection according to the proxy server instructions.

[0021] In one implementation of the present disclosure, before obtaining the proxy service request, the method further includes:

[0022] receiving updated weight parameters sent by the edge server, and updating the private proxy server determination model according to the updated weight parameters;

[0023] Acquire proxy server rating data collected in real time, and determine a real-time proxy server among multiple proxy servers according to the proxy server rating data;

[0024] Acquire the proxy server characteristic information and the client terminal characteristic information collected in real time, and use the target server characteristic information and the client terminal characteristic information collected in real time as input, use the proxy server indication information corresponding to the real-time proxy server as output, and train the updated private proxy server determination model;

[0025] When the trained private proxy server determines that the model has not converged, a gradient update vector is obtained according to the trained private proxy server determination model, and the gradient update vector is sent, and the edge server is used to aggregate the gradient update vector, and update the weight parameter of the shared proxy server determination model of the edge server according to the aggregated gradient update vector to obtain the updated weight parameter;

[0026] When the trained private proxy server determination model converges, a proxy server determination model is obtained according to the trained private proxy server determination model.

[0027] In one implementation of the present disclosure, before receiving the update weight parameter sent by the edge server, the method further includes:

[0028] Receive private data upload instructions;

[0029] In response to the private data upload instruction, sending the pre-collected proxy server rating data, target server feature information, and client terminal feature information;

[0030] Receiving initial weight parameters sent by the edge server;

[0031] The initial proxy server determination model is updated according to the initial weight parameters to obtain a private proxy server determination model.

[0032] In one implementation of the present disclosure, before sending the pre-collected proxy server rating data, target server feature information, and client terminal feature information, the method further includes:

[0033] Adding noise to the pre-collected proxy server rating data, target server feature information, and client terminal feature information;

[0034] Send the pre-collected proxy server rating data, target server feature information, and client terminal feature information, including:

[0035] Send the proxy server score data, target server feature information, and client terminal feature information after adding noise.

[0036] In a second aspect, an embodiment of the present disclosure provides a proxy server testing device, including:

[0037] The proxy service request acquisition module is configured to acquire the proxy service request and acquire the target connection number according to the proxy service request;

[0038] A server information acquisition module is configured to acquire information of a proxy server to be connected, and determine a target connection number of proxy servers from a plurality of proxy servers indicated by the information of the proxy server to be connected;

[0039] The feature upload instruction acquisition module is configured to send a server feature upload instruction and obtain server feature information sent by a target number of proxy servers in response to the server feature upload instruction, the server feature information including the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, error logs and computer room status information. The number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within a target time interval. The target time interval is before the target time of sending the server feature upload instruction. The number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval. The number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval. The number of parallel-bearing agents is the number of proxy services parallelly carried by the proxy server within the target time interval. The error log includes the network log when an error occurs in the proxy server within the target time interval. The computer room status information is the status information of the computer room where the proxy server is located within the target time interval.

[0040] The terminal feature acquisition module is configured to acquire terminal device feature information, wherein the terminal device feature information includes a network delay between the terminal device and the proxy server within a target time interval and application feature information of the terminal device within the target time interval;

[0041] The proxy server determination module is configured to determine a target test proxy server from a target number of connected proxy servers according to the server characteristic information and the terminal device characteristic information, and to test the target test proxy server.

[0042] In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement any one of the methods in the first aspect or any one of the second aspect.

[0043] In a fourth aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, on which computer instructions are stored, wherein the computer instructions, when executed by a processor, implement any method in the first aspect or any method in the second aspect.

[0044] In the technical solution provided by the present disclosure, a proxy service request is obtained, and a target number of connections is obtained according to the proxy service request; information of a proxy server to be connected is obtained, and a target number of proxy servers of connection is determined from multiple proxy servers indicated by the information of the proxy server to be connected; a server feature upload instruction is sent, and server feature information of the target number of proxy servers of connection is obtained in response to the server feature upload instruction. The server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing proxies, error logs, and computer room status information. The number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The target time interval is before the target time of sending the server feature upload instruction. The number of connections received is the number of servers within the target time interval that are within the target time interval. The number of servers corresponding to the connection requests received by the proxy server in the time interval, the number of abnormal connection requests received is the number of abnormal requests received by the proxy server in the target time interval, the number of parallel-bearing agents is the number of proxy services carried in parallel by the proxy server in the target time interval, the error log includes the network log when the proxy server has an error in the target time interval, and the computer room status information is the status information of the computer room where the proxy server is located in the target time interval; obtain terminal device feature information, the terminal device feature information includes the network delay between the terminal device and the proxy server in the target time interval, and the application feature information of the terminal device in the target time interval; determine the target test proxy server in the target connection number of proxy servers according to the server feature information and the terminal device feature information, and test the target test proxy server. Among them, the terminal device determines the target connection number by obtaining the proxy service request. Then, the target connection number of proxy servers is determined by the obtained proxy server information. And the feature information of the proxy server and the terminal device feature information are comprehensively evaluated through the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, the error log and the computer room status information, and the target test proxy server to be tested is determined from multiple angles, which greatly increases the test efficiency.

[0045] 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

[0046] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0047] Figure 1 A schematic structural block diagram of a proxy server testing system according to an embodiment of the present disclosure is shown;

[0048] Figure 2 A schematic flow chart showing a proxy server testing method according to an embodiment of the present disclosure;

[0049] Figure 3 A schematic structural block diagram of a proxy server testing device according to an embodiment of the present disclosure is shown;

[0050] Figure 4 A schematic structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0051] Figure 5 It is a structural schematic diagram of an electronic device suitable for implementing the proxy server testing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0053] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the specification, and do not exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0054] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0055] The details of the embodiments of the present disclosure are described in detail below through specific examples.

[0056] Testing is a necessary procedure to ensure that the website can be used normally. Automated testing is a process that converts human-driven testing behavior into machine execution. Usually, after designing test cases and passing the review, the test is executed according to the procedures described in the test cases to compare the actual results with the expected results. The existing testing methods have the problem of incomplete data, which makes it impossible to implement testing efficiently.

[0057] In view of the above-mentioned defects, the technical solution provided by the present invention comprises the following steps: obtaining a proxy service request, and obtaining a target number of connections according to the proxy service request; obtaining information of a proxy server to be connected, and determining a target number of proxy servers among multiple proxy servers indicated by the information of the proxy server to be connected; sending a server feature upload instruction, and obtaining server feature information sent by the target number of proxy servers in response to the server feature upload instruction, wherein the server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel hosted proxies, the error log, and the computer room status information; the number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval; the target time interval is before the target time of sending the server feature upload instruction, and the number of connections received is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The number of servers corresponding to the connection requests received by the proxy server in the target time interval, the number of abnormal connection requests received is the number of abnormal requests received by the proxy server in the target time interval, the number of parallel-bearing proxies is the number of proxy services carried in parallel by the proxy server in the target time interval, the error log includes the network log when an error occurs in the proxy server in the target time interval, and the computer room status information is the status information of the computer room where the proxy server is located in the target time interval; obtain terminal device feature information, the terminal device feature information includes the network delay between the terminal device and the proxy server in the target time interval, and the application feature information of the terminal device in the target time interval; determine the target test proxy server from the target number of proxy servers based on the server feature information and the terminal device feature information, and test the target test proxy server. Among them, the terminal device determines the target number of connections by obtaining the proxy service request. Then, the target number of proxy servers is determined by the obtained proxy server information. In addition, the proxy server's characteristic information and terminal device characteristic information are comprehensively evaluated through the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel hosting agents, error logs, and computer room status information. The target test proxy server to be tested is determined from multiple angles, which greatly increases the test efficiency.

[0058] Figure 1A schematic structural block diagram of a proxy server test system according to an embodiment of the present disclosure is shown, wherein the proxy server test system includes a proxy server 101, a terminal device 102, and a network 103, wherein the terminal device 102 is a variety of electronic devices with a network access function, including but not limited to a mobile communication terminal, a desktop computer, a tablet computer, a laptop computer, a wearable device, etc. The network 103 is used to provide a medium for a communication link between the proxy server 101 and the terminal device 102, and the network 103 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0059] Figure 2 FIG. 1 is a schematic flow chart of a proxy server testing method according to an embodiment of the present disclosure, wherein the proxy server testing method is applied to a terminal device. Figure 2 As shown, the proxy server testing method includes the following steps:

[0060] In step S101, a proxy service request is obtained, and a target connection number is obtained according to the proxy service request.

[0061] The terminal device may obtain a proxy service request from a remote server, and then determine the number of target connections to be connected according to the proxy service request, thereby determining the number of proxy servers to be connected according to the target number of connections.

[0062] In step S102, information of the proxy server to be connected is obtained, and a target connection number of proxy servers is determined from a plurality of proxy servers indicated by the information of the proxy server to be connected.

[0063] Specifically, the terminal device may obtain proxy server information, wherein the proxy server information may indicate multiple proxy servers. Then the terminal device determines a target connection proxy server among the multiple proxy servers. Figure 1 As shown, for example, if the number of target connections is 4, the terminal device can connect to 4 proxy servers.

[0064] In step S103, a server feature upload instruction is sent, and server feature information sent by target connected proxy servers in response to the server feature upload instruction is obtained.

[0065] Among them, the server characteristic information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, error logs and computer room status information. The number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The target time interval is before the target time of sending the server characteristic upload instruction. The number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval. The number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval. The number of parallel-bearing agents is the number of proxy services carried in parallel by the proxy server within the target time interval. The error log includes the network log when an error occurs in the proxy server within the target time interval. The computer room status information is the status information of the computer room where the proxy server is located within the target time interval.

[0066] Among them, the number of connection requests sent, the number of connection requests received, and the number of abnormal connection requests received by the proxy server. For example, the number of connection requests sent is 6, and the number of connection requests received can be 5, then the number of abnormal connection requests received is 1 at this time.

[0067] The computer room status information is used to indicate the last startup time, the last shutdown time, and the startup time of the computer room.

[0068] In step S104, terminal device characteristic information is obtained, and the terminal device characteristic information includes the network delay between the terminal device and the proxy server within the target time interval and the application characteristic information of the terminal device within the target time interval.

[0069] The network delay can be calculated using a preset delay algorithm, wherein the target time interval is set by the user and is not specifically limited here.

[0070] In step S105, a target test proxy server is determined from among the target connected proxy servers according to the server characteristic information and the terminal device characteristic information, and the target test proxy server is tested.

[0071] In one embodiment of the present disclosure, a target test proxy server to be tested is determined by using the characteristic information of the server and the characteristic information of the terminal device, thereby improving the efficiency of the test.

[0072] In this embodiment, a proxy service request is obtained, and a target number of connections is obtained according to the proxy service request; information of a proxy server to be connected is obtained, and a target number of proxy servers for connection is determined from multiple proxy servers indicated by the information of the proxy server to be connected; a server feature upload instruction is sent, and server feature information of the target number of proxy servers for connection is obtained in response to the server feature upload instruction. The server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel hosted proxies, error logs, and computer room status information. The number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The target time interval is before the target time of sending the server feature upload instruction. The number of connections received is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval. The number of servers corresponding to the connection requests received by the proxy server in the target time interval, the number of abnormal connection requests received is the number of abnormal requests received by the proxy server in the target time interval, the number of parallel-bearing proxies is the number of proxy services carried in parallel by the proxy server in the target time interval, the error log includes the network log when the proxy server has an error in the target time interval, and the computer room status information is the status information of the computer room where the proxy server is located in the target time interval; obtain terminal device feature information, the terminal device feature information includes the network delay between the terminal device and the proxy server in the target time interval, and the application feature information of the terminal device in the target time interval; determine the target test proxy server in the target number of proxy servers according to the server feature information and the terminal device feature information, and test the target test proxy server. Among them, the terminal device determines the target number of connections by obtaining the proxy service request. Then, the target number of proxy servers is determined by the obtained proxy server information. And the feature information of the proxy server and the terminal device feature information are comprehensively evaluated by the number of connection requests sent by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing proxies, the error log and the computer room status information, and the target test proxy server to be tested is determined from multiple angles, which greatly increases the test efficiency.

[0073] In one implementation of the present disclosure, the application characteristic information includes business type information and business characteristic information of the application running on the terminal device within the target time interval, the business type information is used to indicate the business type of the business corresponding to the application, and the business types include live broadcast business, streaming media business, online retail business, game business, and chat business. The business characteristic information is used to indicate the write data rate, read data rate, number of concurrent threads, number of errors per unit time, and number of restarts per unit time of the business corresponding to the application.

[0074] The business type is not limited to the above-described business, but may also be other industries. And the live broadcast business may be the live broadcast business of any live broadcast platform.

[0075] In the above implementation, the service characteristic information is used to indicate the write data rate, read data rate, number of concurrent threads, number of errors per unit time, and number of restarts per unit time of the service corresponding to the application. Thus, the target test server can be efficiently determined through the above service characteristics.

[0076] In one embodiment of the present disclosure, determining a target test proxy server from a target number of connected proxy servers according to server feature information and client terminal feature information includes:

[0077] Determine the proxy server with the largest number of connection requests received among the target number of proxy servers;

[0078] Determine a proxy server having the smallest number of connection requests sent out among the proxy servers having the largest number of connection requests received;

[0079] Determine a proxy server having the least number of abnormal connection requests received among the proxy servers having the least number of connection requests sent;

[0080] Determine a proxy server with the least number of parallel-hosted proxies among the proxy servers that receive the least number of abnormal connection requests;

[0081] Determine, among the proxy servers with the least number of parallel-hosted proxies, a proxy server having an error count in an error log that is less than or equal to a preset error count threshold;

[0082] Among the proxy servers whose error count is less than or equal to the preset error count threshold, the proxy server whose network delay with the terminal device within the target time interval is the smallest, whose error type in the error log does not belong to the preset error type set, whose computer room status information matches the preset computer room status information, and whose application feature information indicated by the corresponding application identification matches the application feature information of the terminal device within the target time interval is determined as the target test proxy server.

[0083] In one embodiment of the present disclosure, specifically, the proxy server with the largest number of connection request receptions is determined among the target number of proxy servers; the proxy server with the smallest number of connection request issuances is determined among the proxy servers with the largest number of connection request receptions; the proxy server with the smallest number of abnormal connection request receptions is determined among the proxy servers with the smallest number of connection request issuances; the proxy server with the smallest number of parallel load agents is determined among the proxy servers with the smallest number of abnormal connection request receptions; the proxy server with the smallest number of parallel load agents is determined among the proxy servers with the smallest number of parallel load agents, the proxy server with the number of errors in the error log being less than or equal to the preset error number threshold; the proxy server with the smallest network delay with the terminal device within the target time interval is determined among the proxy servers with the number of errors being less than or equal to the preset error number threshold, the proxy server with the smallest error type in the error log not belonging to the preset error type set, the computer room status information matching the preset computer room status information, and the application feature information of the application indicated by the corresponding application indication matching the application feature information of the terminal device within the target time interval as the target test proxy server. Among them, the terminal device determines the target server through the above steps, which effectively improves the efficiency of the test. And the target test server to be tested is screened from multiple aspects such as request connection, request reception, abnormal connection, parallel load and error log, so that the test effect is more efficient.

[0084] In one embodiment of the present disclosure, determining a target test proxy server from a target number of connected proxy servers according to server feature information and client terminal feature information includes:

[0085] Obtain a pre-trained proxy server determination model, and use the server feature information and the client terminal feature information as inputs, and input them into the proxy server determination model to obtain proxy server indication information;

[0086] Determine the target test proxy server in the target number of proxy servers for connection according to the proxy server instructions.

[0087] In one embodiment of the present disclosure, the proxy server determination model can be a neural network model, a convolutional neural network model, a long short-term memory network model, etc.

[0088] In this embodiment, a pre-trained proxy server determination model is obtained, and the server feature information and the client terminal feature information are used as inputs and input into the proxy server determination model to obtain the proxy server indication information; the target test proxy server is determined from the target connection number of proxy servers according to the proxy server indication information. Through the proxy server model, the indication information of the proxy server can be obtained according to the server feature information and the client terminal feature information, that is, the indication information of the target test proxy server can be determined according to the proxy server model. Then the terminal device can determine the target test proxy server from the target connection number of proxy servers according to the proxy server indication information. Then, through the above method, the technical effect of automatically selecting the target test proxy server from multiple target connection number of proxy servers is achieved.

[0089] In one embodiment of the present disclosure, before obtaining the proxy service request, the method further includes:

[0090] receiving updated weight parameters sent by the edge server, and updating the private proxy server determination model according to the updated weight parameters;

[0091] Acquire proxy server rating data collected in real time, and determine a real-time proxy server among multiple proxy servers according to the proxy server rating data;

[0092] Acquire the proxy server characteristic information and the client terminal characteristic information collected in real time, and use the target server characteristic information and the client terminal characteristic information collected in real time as input, use the proxy server indication information corresponding to the real-time proxy server as output, and train the updated private proxy server determination model;

[0093] When the trained private proxy server determines that the model has not converged, a gradient update vector is obtained according to the trained private proxy server determination model, and the gradient update vector is sent, and the edge server is used to aggregate the gradient update vector, and update the weight parameter of the shared proxy server determination model of the edge server according to the aggregated gradient update vector to obtain the updated weight parameter;

[0094] When the trained private proxy server determination model converges, a proxy server determination model is obtained according to the trained private proxy server determination model.

[0095] In one embodiment of the present disclosure, the proxy server scoring data collected in real time may be obtained by reading the proxy server scoring data pre-stored in the terminal device, or by receiving the proxy server scoring data sent by other devices or systems.

[0096] In one embodiment of the present disclosure, the private proxy server determination model and the shared proxy server determination model can both be a neural network model, a convolutional neural network model, a long short-term memory network model, or the like.

[0097] In one embodiment of the present disclosure, obtaining a proxy server determination model based on a trained private proxy server determination model can be understood as storing the trained private proxy server determination model as a proxy server determination model, or can be understood as directly identifying the trained private proxy server determination model as a proxy server determination model.

[0098] In this embodiment, the updated weight parameter sent by the edge server is received by the terminal device, which is obtained by the edge server aggregating the gradient update vectors sent by multiple terminal devices, and updating the weight parameter of the shared proxy server determination model of the edge server according to the aggregated gradient update vector, so that the updated shared proxy server determination model can reflect the shared proxy server determination model of the edge server learned in the previous round of training. Real-time collected proxy server scoring data is obtained, and a real-time proxy server is determined among multiple proxy servers according to the proxy server scoring data. By obtaining real-time collected proxy server feature information and real-time collected client terminal feature information, and taking real-time collected target server feature information and real-time collected client terminal feature information as input, and taking the proxy server indication information corresponding to the real-time proxy server as output, the updated private proxy server determination model is trained, so that the updated private proxy server determination model can learn the law of the shared proxy server on the basis of learning the law of the shared proxy server, and can also learn the collected proxy server feature information and the real-time collected client terminal feature information in a personalized way, so that the trained private proxy server determination model can learn the law of the shared proxy server. When the trained private proxy server determination model has not converged, it means that the trained private proxy server determination model still needs to be trained. By obtaining the gradient update vector according to the trained private proxy server determination model and sending the gradient update vector, the edge server can continue to obtain the corresponding update weight parameters based on the gradient update vectors uploaded by multiple terminal devices without leaking the user's personal data of the terminal device, so as to continue to train the private proxy server determination model of each terminal device. When the trained private proxy server determination model converges, the proxy server determination model is obtained according to the trained private proxy server determination model. The proxy server determination module can obtain the target test proxy server based on the input target server feature information and the client terminal feature information collected in real time, so the converged private proxy server determination model is used as the proxy server determination model.

[0099] In one embodiment of the present disclosure, before receiving the update weight parameter sent by the edge server, the method further includes:

[0100] Receive private data upload instructions;

[0101] In response to the private data upload instruction, sending the pre-collected proxy server rating data, target server feature information, and client terminal feature information;

[0102] Receiving initial weight parameters sent by the edge server;

[0103] The initial proxy server determination model is updated according to the initial weight parameters to obtain a private proxy server determination model.

[0104] The initial proxy server determination model may be a neural network model, a convolutional neural network model, a long short-term memory network model, etc. The initial proxy server determination model may be understood as an untrained model.

[0105] In this embodiment, by receiving a private data upload instruction and responding to the private data upload instruction, the pre-collected proxy server scoring data, target server feature information, and client terminal feature information are sent to perform preliminary training on the initial proxy server determination model of the terminal device, thereby obtaining a shared proxy server determination model. Afterwards, the terminal device updates the initial proxy server determination model according to the initial weight parameters obtained by the shared proxy server determination model to obtain a private proxy server determination model. The private proxy server determination model can be understood as a model that has learned the rules learned by the shared proxy server determination model, that is, at this time, the private proxy server determination model can also be understood as a model that has been preliminarily learned the shared proxy server rules of multiple terminal devices, thereby facilitating multiple rounds of training of the private proxy server determination model, without the need to train based on the initial proxy server determination model, thereby reducing the difficulty of training.

[0106] In one embodiment of the present disclosure, before sending the pre-collected proxy server rating data, target server feature information, and client terminal feature information, the method further includes:

[0107] Adding noise to the pre-collected proxy server rating data, target server feature information, and client terminal feature information;

[0108] Send the pre-collected proxy server rating data, target server feature information, and client terminal feature information, including:

[0109] Send the proxy server score data, target server feature information, and client terminal feature information after adding noise.

[0110] Among them, adding noise to the real-time identity authentication log can be adding random noise to the pre-collected proxy server scoring data, target server feature information and client terminal feature information, or adding Laplace noise to the pre-collected proxy server scoring data, target server feature information and client terminal feature information.

[0111] In this embodiment, noise is added to the pre-collected proxy server scoring data, target server characteristic information and client terminal characteristic information to obtain the noise pre-collected proxy server scoring data, target server characteristic information and client terminal characteristic information, and the real-time pre-collected proxy server scoring data, target server characteristic information and client terminal characteristic information are sent to avoid leakage of the real-time pre-collected proxy server scoring data, target server characteristic information and client terminal characteristic information, thereby improving the security of information.

[0112] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.

[0113] Figure 3 A schematic structural block diagram of a proxy server testing device according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the proxy server test 300 includes:

[0114] The proxy server request acquisition module 301 is configured to acquire a proxy service request and acquire a target connection number according to the proxy service request;

[0115] The server information acquisition module 302 is configured to acquire information of a proxy server to be connected, and determine a target connection number of proxy servers from a plurality of proxy servers indicated by the information of the proxy server to be connected;

[0116] The feature upload instruction acquisition module 303 is configured to send a server feature upload instruction and obtain server feature information sent by a target number of proxy servers in response to the server feature upload instruction. The server feature information includes the number of connection requests sent by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, the error log, and the computer room status information. The number of connection requests sent is the number of servers corresponding to the connection requests sent by the proxy server within the target time interval. The target time interval is before the target time of sending the server feature upload instruction. The number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval. The number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval. The number of parallel-bearing agents is the number of proxy services parallelly carried by the proxy server within the target time interval. The error log includes the network log when an error occurs in the proxy server within the target time interval. The computer room status information is the status information of the computer room where the proxy server is located within the target time interval.

[0117] The terminal feature acquisition module 304 is configured to acquire terminal device feature information, where the terminal device feature information includes a network delay between the terminal device and the proxy server within a target time interval and application feature information of the terminal device within the target time interval;

[0118] The proxy server determination module 305 is configured to determine a target test proxy server from among the target connected proxy servers according to the server characteristic information and the terminal device characteristic information, and to test the target test proxy server.

[0119] The present disclosure also discloses an electronic device, Figure 4 A schematic structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402; wherein,

[0120] The memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement any method in the embodiments of the present disclosure.

[0121] Figure 5 It is a structural schematic diagram of an electronic device suitable for implementing the network policy detection method according to an embodiment of the present disclosure.

[0122] like Figure 5As shown, the electronic device 500 includes a processing unit 501, which can be implemented as a processing unit such as a CPU, a GPU, an FPGA, and an NPU. The processing unit 501 can perform various processes in the embodiments of any of the above methods of the present disclosure according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In RAM503, various programs and data required for the action of the electronic device 500 are also stored. The processing unit 501, ROM502, and RAM503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0123] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0124] In particular, according to an embodiment of the present disclosure, any method in the above referenced embodiment of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing any method in the embodiment of the present disclosure. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511.

[0125] The flowchart and block diagram in the accompanying drawings illustrate the possible implementation architecture, functions and actions of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the road map or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0126] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be arranged in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0127] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0128] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A proxy server testing method, the method being applied to a terminal device, comprising: Obtaining a proxy service request, and obtaining a target number of connections according to the proxy service request; Acquire information of a proxy server to be connected, and determine the target connection number of proxy servers from a plurality of proxy servers indicated by the information of the proxy server to be connected; Send a server feature upload instruction, and obtain server feature information sent by the target connection number proxy servers in response to the server feature upload instruction, the server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, error logs and computer room status information, the number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval, the target time interval is before the target time of sending the server feature upload instruction, the number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval, the number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval, the number of parallel-bearing agents is the number of proxy services parallelly carried by the proxy server within the target time interval, the error log includes the network log when an error occurs in the proxy server within the target time interval, and the computer room status information is the status information of the computer room where the proxy server is located within the target time interval; Acquire characteristic information of the terminal device, wherein the characteristic information of the terminal device includes a network delay between the terminal device and the proxy server within the target time interval and application characteristic information of the terminal device within the target time interval; A target test proxy server is determined from the target connection proxy servers according to the server feature information and the terminal device feature information, and the target test proxy server is tested.

2. According to the proxy server testing method of claim 1, the application characteristic information includes business type information and business characteristic information of the application running on the terminal device within the target time interval, the business type information is used to indicate the business type of the business corresponding to the application, the business types include live broadcast business, streaming media business, online retail business, game business, and chat business, and the business characteristic information is used to indicate the write data rate, read data rate, number of concurrent threads, number of errors per unit time, and number of restarts per unit time of the business corresponding to the application.

3. The proxy server testing method according to claim 1, wherein determining a target test proxy server from among the target connection proxy servers according to the server feature information and the terminal device feature information comprises: Determine, among the target number of proxy servers, a proxy server with the largest number of connection requests received; Determine, among the proxy servers with the largest number of connection request receptions, a proxy server with the smallest number of connection request transmissions; Determining a proxy server having the least number of abnormal connection requests received among the proxy servers having the least number of connection requests sent; Determine a proxy server with the least number of parallel-bearing proxies among the proxy servers that receive the least number of abnormal connection requests; Determine, among the proxy servers with the least number of parallel bearer agents, a proxy server having an error count in an error log that is less than or equal to a preset error count threshold; Among the proxy servers whose number of errors is less than or equal to the preset error number threshold, the proxy server whose network delay with the terminal device within the target time interval is the smallest, the error type in the error log does not belong to the preset error type set, the computer room status information matches the preset computer room status information, and the application feature information of the application indicated by the corresponding application identification matches the application feature information of the terminal device within the target time interval is determined as the target test proxy server.

4. The proxy server testing method according to claim 1, wherein determining a target test proxy server from among the target connection proxy servers according to the server feature information and the terminal device feature information comprises: Obtaining a pre-trained proxy server determination model, and taking the server feature information and the terminal device feature information as input, inputting the proxy server determination model to obtain proxy server indication information; The target test proxy server is determined from the target connection number of proxy servers according to the proxy server indication information.

5. The proxy server testing method according to claim 4, before obtaining the proxy service request, the method further comprises: receiving updated weight parameters sent by the edge server, and updating the private proxy server determination model according to the updated weight parameters; Acquire proxy server scoring data collected in real time, and determine a real-time proxy server among multiple proxy servers according to the proxy server scoring data; Acquire proxy server characteristic information and terminal device characteristic information collected in real time, use the target server characteristic information and terminal device characteristic information collected in real time as input, use proxy server indication information corresponding to the real-time proxy server as output, and train the updated private proxy server determination model; When the trained private proxy server determination model has not converged, a gradient update vector is obtained according to the trained private proxy server determination model, and the gradient update vector is sent, and the edge server is used to aggregate the gradient update vector, and update the weight parameter of the shared proxy server determination model of the edge server according to the aggregated gradient update vector to obtain the updated weight parameter; When the trained private proxy server determination model converges, the proxy server determination model is obtained according to the trained private proxy server determination model.

6. The proxy server testing method according to claim 5, before receiving the updated weight parameter sent by the edge server, the method further comprises: Receive private data upload instructions; In response to the private data upload instruction, sending the pre-collected proxy server rating data, target server feature information, and terminal device feature information; Receiving initial weight parameters sent by the edge server; The initial proxy server determination model is updated according to the initial weight parameters to obtain the private proxy server determination model.

7. The proxy server testing method according to claim 6, before sending the pre-collected proxy server scoring data, target server feature information and terminal device feature information, the method further comprises: Adding noise to the pre-collected proxy server rating data, target server characteristic information, and terminal device characteristic information; The sending of the pre-collected proxy server rating data, target server feature information, and terminal device feature information includes: The proxy server score data, target server feature information, and terminal device feature information after adding the noise are sent.

8. A proxy server testing device, comprising: A proxy service request acquisition module is configured to acquire a proxy service request and acquire a target connection number according to the proxy service request; A server information acquisition module is configured to acquire information of a proxy server to be connected, and determine the target connection number of proxy servers from a plurality of proxy servers indicated by the information of the proxy server to be connected; The feature upload instruction acquisition module is configured to send a server feature upload instruction and acquire server feature information sent by the target connection number proxy servers in response to the server feature upload instruction, wherein the server feature information includes the number of connection requests issued by the proxy server, the number of connection requests received, the number of abnormal connection requests received, the number of parallel-bearing agents, the error log and the computer room status information, wherein the number of connection requests issued is the number of servers corresponding to the connection requests issued by the proxy server within the target time interval, the target time interval is before the target time of sending the server feature upload instruction, the number of connections received is the number of servers corresponding to the connection requests received by the proxy server within the target time interval, the number of abnormal connection requests received is the number of abnormal requests received by the proxy server within the target time interval, the number of parallel-bearing agents is the number of proxy services parallelly carried by the proxy server within the target time interval, the error log includes the network log when an error occurs in the proxy server within the target time interval, and the computer room status information is the status information of the computer room where the proxy server is located within the target time interval; A terminal feature acquisition module is configured to acquire terminal device feature information, wherein the terminal device feature information includes a network delay between the terminal device and the proxy server within the target time interval and application feature information of the terminal device within the target time interval; The proxy server determination module is configured to determine a target test proxy server from the target connection proxy servers according to the server feature information and the terminal device feature information, and to test the target test proxy server.

9. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, wherein when the computer instructions are executed by a processor, the method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Page access method, server, terminal, electronic device and readable storage medium

    CN110674435A

  • Proxy authority management device, terminal equipment and storage medium

    CN112688983A