Method, system, device and medium for generating recommended IP list

By generating a recommended IP list, the problem that users cannot know the stable IP address in advance is solved, and the success rate and stability of VPN connections are improved. Users can choose high-quality IP addresses from which to connect.

CN118764329BActive Publication Date: 2024-11-22CHENGDU ZHUOZHUO TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411255876.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-22
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

When users choose a VPN server, they cannot know in advance which IP addresses can be connected and stable, which will affect the user experience.

Method used

By sending the initial IP list to the VPN user, receiving the test results, generating a recommended IP list based on the communication quality, a preferred IP address and adding it to the list, including random and regional IP addresses to improve availability.

Benefits of technology

Improves the connection success rate and communication stability of IP addresses, allowing users to choose IP addresses with high communication quality to connect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764329B_ABST
    Figure CN118764329B_ABST
Patent Text Reader

Abstract

The present application relates to a method, system, device and medium for generating a recommended IP list. The generating method comprises: sending an initial IP list to multiple VPN clients; the initial IP list includes multiple IP addresses; receiving test results returned by multiple VPN clients, the test results including test data obtained by the VPN client based on the IP address and the regional identification information of the VPN client; determining the communication quality of the IP address corresponding to different regional identification information according to the test data and the regional identification information; generating a recommended IP list corresponding to the regional identification information according to the communication quality. The method can be used to obtain a recommended IP list corresponding to different regions, and the IP addresses in the recommended IP list have higher communication quality and better availability. VPN clients in different regions can obtain the corresponding recommended IP list based on their regional identification information, and selecting an IP address from the recommended IP list for connection has a higher connection success rate, and the communication is also more stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, system, device and medium for generating a recommended IP list. Background Art

[0002] VPN (Virtual Private Network) is committed to providing secure and stable network connections for users around the world. Its principle is to achieve secure communication between remote users and private networks by establishing encrypted tunnels and virtual private channels on public networks.

[0003] Generally speaking, VPNs provide users with a variety of servers to choose from. Each server corresponds to a different IP address. These servers may be located in different regions and countries around the world. Users can choose a server to connect to based on their needs. After selecting a server, VPN will automatically assign the user an IP (Internet Protocol) address on that server.

[0004] However, due to the differences in network conditions of different operators in each country and region, in this complex and diversified user system, users cannot know in advance which IP addresses can be connected and which IP addresses are more stable, and need to make multiple attempts, which seriously affects the user experience. Summary of the invention

[0005] Based on this, a method, system, device and medium for generating a recommended IP list are provided to solve the problem in the prior art that a stable IP address cannot be provided to users.

[0006] On the one hand, a method for generating a recommended IP list is provided, which is applied to a VPN server, and the generating method comprises:

[0007] Sending an initial IP list to multiple VPN clients; the initial IP list includes multiple IP addresses;

[0008] receiving test results returned by the plurality of VPN clients, the test results comprising test data obtained by the VPN client based on the IP address and regional identification information of the VPN client;

[0009] Determining, according to the test data and the region identification information, the communication quality of the IP address corresponding to different region identification information;

[0010] A recommended IP list corresponding to the region identification information is generated according to the communication quality.

[0011] Optionally, generating a recommended IP list corresponding to the region identification information according to the communication quality includes:

[0012] Determining a preferred IP address based on the communication quality;

[0013] The recommended IP list corresponding to the region identification information is generated according to the preferred IP address.

[0014] Optionally, after generating the recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes:

[0015] Obtain a random IP address; wherein the random IP address is generated by a virtual private server VPS;

[0016] The random IP address is added to the recommended IP list.

[0017] Optionally, after generating the recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes:

[0018] Obtaining a regional IP address; wherein the regional IP address is obtained by obtaining IP addresses of different regions;

[0019] Add the regional IP address to the recommended IP list.

[0020] Optionally, determining, according to the test data and the region identification information, the communication quality of the IP address corresponding to different region identification information includes:

[0021] Grouping the test data of the same IP address according to the region identification information;

[0022] Determining a qualified number of said test data in each group;

[0023] The communication quality of the IP address corresponding to different area identification information is determined according to the qualified number of the test data in each group and the total number of the test data.

[0024] Optionally, after the step of generating a recommended IP list corresponding to the region identification information according to the communication quality, the step further includes:

[0025] The recommended IP list is used as the initial IP list, and the step of sending the initial IP list to multiple VPN clients is performed again, so as to iterate the recommended IP list according to the test results returned by the VPN clients.

[0026] Optionally, after the step of generating a recommended IP list corresponding to the region identification information according to the communication quality, the step further includes:

[0027] The recommended IP list and the region identification information are stored in a one-to-one correspondence.

[0028] In a second aspect, a system for generating a recommended IP list is provided, which is applied to a VPN server, and the generation system includes:

[0029] A sending module, used to send an initial IP list to multiple VPN clients; the initial IP list includes multiple IP addresses;

[0030] A receiving module, configured to receive test results returned by the plurality of VPN clients, wherein the test results include test data obtained by the VPN client based on the IP address and regional identification information of the VPN client;

[0031] A determination module, used for determining the communication quality of the IP address corresponding to different regional identification information according to the test data and the regional identification information;

[0032] A list generating module is used to generate a recommended IP list corresponding to the region identification information according to the communication quality.

[0033] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0034] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0035] On the basis of conforming to the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present application.

[0036] The method, system, device and medium for generating the recommended IP list above determine the communication quality of IP addresses corresponding to different regions by obtaining test results with region identification information returned by multiple VPN clients based on the initial IP list, and generate a recommended IP list corresponding to the region identification information according to the communication quality, so that the IP addresses in the recommended IP list have higher communication quality and higher availability. VPN clients in different regions can obtain the corresponding recommended IP list based on their region identification information, and selecting an IP address from the recommended IP list for connection has a higher connection success rate, and the communication is also more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of a method for generating a recommended IP list in an embodiment;

[0038] Figure 2 A schematic diagram of a communication quality determination process of a method for generating a recommended IP list in an embodiment;

[0039] Figure 3 A schematic diagram of the structure of a system for generating a recommended IP list in one embodiment;

[0040] Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] It should be noted that the diagram provided in the present embodiment only illustrates the basic concept of the present application in a schematic manner, so the diagram only shows the components related to the present application rather than drawing according to the number, shape and size of the components during actual implementation. The form, quantity and ratio of each component during actual implementation can be a random change, and its component layout form may also be more complicated. The structure, proportion, size, etc. illustrated by the accompanying diagram of this specification are only used to match the content disclosed in the specification, so that people familiar with this technology can understand and read, and are not used to limit the restrictive conditions that can be implemented in this application, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effect that can be produced by this application and the purpose that can be achieved, should still fall within the scope that the technical content disclosed in this application can cover. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are also only for the convenience of narration, rather than for limiting the scope that can be implemented in this application. The change or adjustment of its relative relationship, without substantial change of technical content, should also be regarded as the scope that can be implemented in this application.

[0043] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the text does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0044] As shown in this document, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural, unless the context clearly indicates an exception. Generally speaking, the terms "include" and "comprise" only indicate that the steps and elements that have been clearly identified are included, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0045] The definitions of inclusion in this document, such as the terms "having", "may have", "include" or "may include" used herein, indicate the existence of the corresponding functions, operations, elements, etc. herein, and do not limit the existence of one or more other functions, operations, elements, etc. In addition, it should be understood that the terms "including" or "having" used herein indicate the existence of the features, numbers, steps, operations, elements, components, or a combination thereof described in the specification, without excluding the existence or addition of one or more other features, numbers, steps, operations, elements, components, or a combination thereof.

[0046] In the embodiments of the present application, prefixes such as "first" and "second" are used only to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. The use of prefixes such as ordinal numbers to distinguish description objects in the embodiments of the present application does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes. In addition, in the description of the present embodiment, unless otherwise specified, the meaning of "multiple" is two or more.

[0047] The working mode of VPN client is that users initiate connection requests through VPN client, and VPN server responds to these requests and establishes connections. The two work together to achieve secure data transmission and provide users with secure and convenient remote access and data transmission services. Different servers of VPN client are distributed in different countries and regions. Users can choose the server to connect to according to their needs. VPN server will automatically assign IP addresses on the server to users. However, the network conditions of operators in each region are different. Users cannot know in advance which IP addresses can be used to connect and which IP addresses are more stable.

[0048] In order to ensure that the IP address connection obtained when the user initiates a connection request is stable, the IP address provided to the user by the VPN can be optimized, IP address tests can be performed on multiple users, and an initial IP list can be sent to multiple VPN client terminals to obtain test results of multiple VPN client terminals based on the initial IP list, thereby determining the recommended IP list corresponding to different regions based on the test results of multiple VPN client terminals.

[0049] Based on this, when the user opens the VPN client and enters the IP address selection interface, an IP list acquisition request including the region identification information is sent to the VPN server, and the recommended IP list corresponding to the region identification information returned by the VPN server can be obtained and displayed. The IP addresses selected from the recommended IP list have high communication quality and high availability. When users select an IP address from the recommended IP list for connection, the connection success rate is high and the communication is more stable.

[0050] Figure 1 A flowchart of a method for generating a recommended IP list provided by an exemplary embodiment of the present application, the generating method is applied to a VPN server, and the generating method comprises the following steps:

[0051] S11. Sending an initial IP list to multiple VPN clients.

[0052] The initial IP list includes multiple IP addresses.

[0053] After receiving the initial IP list, the VPN client sends test packets (Ping packets) to the servers corresponding to the multiple IP addresses in the initial IP list, and receives the reply packets (Reply packets) returned by the server to obtain the test data of the VPN client for the IP address.

[0054] In one embodiment, since the VPN client is affected by the network when it is in the connecting state and the connected state, in order to eliminate interference, the initial IP list can be sent to multiple VPN clients respectively when the VPN client is disconnected for testing.

[0055] In order not to affect the user experience, the test rate can be 1% of the average daily active VPN users in the current region. For example, if there are 100,000 daily active users in the current region, 1,000 users are selected for testing and the initial IP list is sent.

[0056] Alternatively, the test probability is determined according to the user's frequency of use. For example, if the user frequently uses the VPN client, no test is required; if the user occasionally uses the VPN client, the test is performed when the user enters the VPN client but is not connected to the VPN. Specifically, when the user opens the VPN client but is not connected to the VPN, an initial IP list can be sent to the VPN client, and test results of multiple VPN clients based on the initial IP list can be obtained, thereby determining the recommended IP list that is finally sent to all users based on the test results of multiple VPN clients, following the voting principle of minority obeys majority, so that the access of most VPN clients is guaranteed.

[0057] The length of the initial IP list sent by the VPN server is about 200-500, for example, it includes 200 to 500 IP addresses. The concurrent number of IP address tests is 500, for example, the initial IP list is sent to 500 VPN clients at the same time.

[0058] The VPN client tests by sending a Ping packet (Packet INternet Groper) to the server corresponding to the IP address in the initial IP list and receiving the response packet returned by the server. The Ping packet content is a random size packet within an MTU (Maximum Transmission Unit).

[0059] It is understandable that in order to avoid affecting the user experience, when the user enters the testing process of the VPN client, a splash screen animation, advertisements, etc. can be used to extend the user's entry into the VPN connection interface. When the user enters the VPN client and actively triggers an operation that will change the VPN status, such as clicking to connect to the VPN, the test process is canceled to avoid affecting subsequent test results.

[0060] S12. Receive test results returned by multiple VPN clients.

[0061] The test results include test data obtained by the VPN client based on the IP address in the initial IP list and the region identification information of the VPN client. The region identification information may include at least one of geographic location information, longitude and latitude coordinates, time zone information, region code, and region name.

[0062] Specifically, the VPN client sends test packets (Ping packets) to the servers corresponding to the multiple IP addresses in the initial IP list for testing, and obtains test data according to the response packets returned by the servers.

[0063] Generally speaking, the test data may include at least one of packet loss rate, delay time, and bandwidth.

[0064] For example, the same VPN client sends 10 test packets to the server corresponding to the same IP address, and the packet loss rate is determined by the number of response packets (ICMP Echo Reply) returned by the server corresponding to the IP address.

[0065] For example, the VPN client sends a test packet to the server corresponding to the IP address at the first time, and receives a response packet returned by the server at the second time. The round-trip time (RTT) of the communication, that is, the delay duration, can be obtained based on the difference between the two timestamps of the first time and the second time.

[0066] S13. Determine the communication quality of the IP address corresponding to different regional identification information according to the test data and the regional identification information.

[0067] Since different regions have different daily average activity, that is, different numbers of users who open VPN clients, the number of test results that VPN servers can receive from VPN clients in different regions is also different. Therefore, you can obtain test results within a certain period of time and analyze them after the number of test results returned by VPN clients reaches a preset number.

[0068] In one embodiment, step S13 includes:

[0069] Count the number of test results returned by VPN clients corresponding to the same region identification information;

[0070] When the number of response test results reaches a preset number, the communication quality of the IP address corresponding to different regional identification information is determined based on the test data and the regional identification information.

[0071] For example, when a VPN client starts up, it sends a startup signal to the VPN server. After receiving the startup signal, the VPN server sends an initial IP list to the corresponding VPN client for testing. The VPN server counts the number of test results returned by VPN clients with the same regional identification information to determine whether the data volume can support the analysis of the communication quality of the IP address in the region.

[0072] In one embodiment, Figure 2 As shown, according to the test data and the regional identification information, the communication quality of the IP address corresponding to different regional identification information is determined, including:

[0073] S21, grouping the test data of the same IP address according to the region identification information;

[0074] S22, determining the qualified number of test data in each group;

[0075] S23. Determine the communication quality of the IP address corresponding to the identification information of different regions according to the number of qualified test data in each group and the total number of test data.

[0076] In step S21, the VPN server usually receives test results returned by multiple VPN clients corresponding to different regional identification information. The test results are first grouped according to the IP address and regional identification information, that is, the test results corresponding to the same IP address and the same regional identification information are grouped together and entered into the database by group, so that the test results for the same IP address returned by multiple VPN clients in the same region in the same group are grouped together.

[0077] In step S22, if the test data returned by the VPN client includes data on parameters such as packet loss rate, delay time, and test time, the test data can be judged to be qualified based on whether the parameters such as packet loss rate and delay time meet the standards, and then the qualified number of test data in each group can be counted.

[0078] For example, the test data is qualified when the packet loss rate is less than 1%.

[0079] For example, the test data is qualified when the packet loss rate is less than 1% and the average delay time is less than 5 seconds.

[0080] If the test data returned by the VPN client is an identifier representing "qualified" or "unqualified", the VPN server can directly count the number of test data in each group that is an identifier representing "qualified" to obtain the above-mentioned qualified number.

[0081] For example, if the same VPN client sends 10 test packets to the server corresponding to the same IP address, and receives 10 response packets from the server corresponding to the IP address, the test is judged to be qualified, and the test data returned to the VPN server can be a mark indicating "qualified". If the number of response packets received is less than 10, the test is judged to be unqualified, and the test data returned to the VPN server can be a mark indicating "unqualified".

[0082] For another example, if the same VPN client sends 10 test packets to the server corresponding to the same IP address, and receives 10 response packets from the server corresponding to the IP address within 5 seconds, the test is considered to be qualified, and the test data returned to the VPN server can be a mark indicating "qualified". If the 10 response packets returned by the server corresponding to the IP address are not received within 5 seconds, the test is considered to be unqualified, and the test data returned to the VPN server can be a mark indicating "unqualified".

[0083] Since multiple VPN clients in the same group and in the same region return test results for the same IP address, the ratio of the qualified number of test data to the total number is calculated to obtain the communication quality of the IP address corresponding to the region / region identification information.

[0084] In step S23, the ratio of the qualified number of test data to the total number in each group is counted respectively, so that the communication quality of each IP address corresponding to different area identification information can be obtained.

[0085] For example, for a certain IP address, multiple VPN clients conducted 100 tests on it in total, of which 51 tests were qualified, and the calculated communication quality was 51%. Therefore, the communication quality of the IP address in the current region identification information corresponding to the group is good.

[0086] Taking the test results including delay duration as an example, if the delay durations in more than 50% of the test results in the same group of the same IP address are less than 5 seconds, it means that the communication quality of the current region identification information corresponding to the IP address in the group is good.

[0087] Taking the test results including packet loss rate as an example, if the packet loss rate in the same group of the same IP address is lower than 2%, it means that the communication quality of the current region identification information corresponding to the IP address in the group is good.

[0088] S14. Generate a recommended IP list corresponding to the region identification information according to the communication quality.

[0089] In one embodiment, generating a recommended IP list corresponding to the region identification information according to the communication quality includes:

[0090] Determine the preferred IP address based on communication quality;

[0091] Generate a recommended IP list corresponding to the region identification information based on the preferred IP address.

[0092] Typically, a priority IP address is first determined based on a preset quality threshold and communication quality, and then a plurality of preferred IP addresses corresponding to the same region identification information are combined to obtain a recommended IP list corresponding to the region identification information.

[0093] Exemplarily, the communication quality of IP address J corresponding to regional identification information K is 51%. If the preset quality threshold is 50%, the communication quality is greater than the preset quality threshold, which means that if the VPN user terminal corresponding to regional identification information K selects IP address J for connection, the connection success rate is high and the communication is stable.

[0094] The communication qualities of all IP addresses corresponding to the region identification information K are compared with a preset quality threshold to obtain a plurality of preferred IP addresses, and these preferred IP addresses are combined to obtain a recommended IP list corresponding to the region identification information K.

[0095] In one embodiment, after generating a recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes:

[0096] Obtain a random IP address; wherein the random IP address is generated by a virtual private server VPS;

[0097] Add a random IP address to the recommended IP list.

[0098] In order to improve the stability of the IP address, choose to open a new VPS (Virtual Private Server), generate a random IP address, add the random IP address generated by the new VPS to the recommended IP list, and sort it after the preferred IP list.

[0099] Since VPS services usually provide dynamic IP dial-up functions, which means that you will obtain a new IP address each time you connect, the use of dynamic IP addresses can improve privacy protection. VPS service providers will ensure the stability and continuity of IP addresses, so the IP addresses provided by VPS usually have higher availability.

[0100] If the IP addresses in the recommended IP list sorted as ["1", "2", "3", "4"] are random IP addresses, and the scan results in the past 30 minutes are all failures, then ["1", "2"] will be shut down.

[0101] In one embodiment, if the recommended IP list can include a preset number of preferred IP addresses, for example, 200 preferred IP addresses and 50 random IP addresses, but the number of preferred IP addresses is less than 200, the number of random IP addresses is increased. For example, if the number of preferred IP addresses in the recommended IP list is 180, the number of random IP addresses is 70. While ensuring that the number of IP addresses in the recommended IP list reaches a sufficient number, the availability of IP addresses is guaranteed.

[0102] In one embodiment, after generating a recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes:

[0103] Obtain regional IP addresses; wherein, regional IP addresses are obtained by obtaining IP addresses of different regions;

[0104] Add the regional IP address to the recommended IP list.

[0105] Since the network conditions of different operators in each country and region are different, samples from various regions around the world can be selected for different countries and regions. A regional IP address is obtained for each country, and the regional IP address is added to the recommended IP list, thereby bringing together the preferred IP addresses, random IP addresses and globally hashed regional IP addresses voted by the region corresponding to the regional identification information, which is more reliable.

[0106] In one embodiment, the recommended IP list includes preferred IP addresses, random IP addresses and regional IP addresses, and the preferred IP addresses are sorted before the random IP addresses.

[0107] For example, if the recommended IP list includes 300 IP addresses, the 300 IP addresses include 200 preferred IP addresses, 50 random IP addresses and 50 regional IP addresses, and the preferred IP addresses are sorted before the random IP addresses. If the number of preferred IP addresses is less than 200, the number of random IP addresses is increased so that the sum of the two reaches the target number, for example, 250.

[0108] In one embodiment, after step S14, the method further includes:

[0109] The recommended IP list is used as the initial IP list, and steps S11-S14 are performed again to iterate the recommended IP list according to the test results returned by the VPN client.

[0110] Exemplarily, after obtaining the above-mentioned recommended IP list, it can also be sent to the VPN client again as the initial IP list. The VPN server will continuously iterate the recommended IP list according to the test results returned by the VPN client, and obtain the final recommended IP list after the iteration reaches a preset number of times, so as to further improve the communication quality of the IP addresses in the recommended IP list, so that the connection success rate and availability of the IP addresses in the recommended IP list are high.

[0111] Based on this, when the user opens the VPN client and enters the IP address selection interface, an IP list acquisition request including the region identification information is sent to the VPN server, and the recommended IP list corresponding to the region identification information returned by the VPN server is obtained and displayed. The user selects an IP address from the list to connect, and the connection success rate is higher, and the communication is more stable.

[0112] In one embodiment, after step S14, the method further includes:

[0113] S15. Store the recommended IP list and the region identification information in one-to-one correspondence.

[0114] Exemplarily, the obtained recommended IP list is stored according to the regional identification information, and the regional identification information is represented by different key values. After entering the IP address selection interface, the VPN client sends an IP list acquisition request including the key value to the VPN server, and the VPN server can query the recommended IP list corresponding to the kye value and return it to the VPN client.

[0115] It should be understood that although Figure 1 and Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in any other order. Moreover, Figure 1 and Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0116] Corresponding to the aforementioned embodiment of the method for generating a recommended IP list, the embodiment of the present application also provides an embodiment of a system for generating a recommended IP list.

[0117] Figure 3 A module diagram of a system for generating a recommended IP list provided by an exemplary embodiment of the present application, which is applied to a VPN server, includes:

[0118] The sending module 31 is used to send an initial IP list to multiple VPN clients; the initial IP list includes multiple IP addresses;

[0119] A receiving module 32, configured to receive test results returned by multiple VPN clients, the test results including test data obtained by the VPN client based on the IP address and regional identification information of the VPN client;

[0120] A determination module 33, used to determine the communication quality of the IP address corresponding to different regional identification information according to the test data and the regional identification information;

[0121] The list generating module 34 is used to generate a recommended IP list corresponding to the region identification information according to the communication quality.

[0122] In one embodiment, the list generation module 34 is further used to:

[0123] Determine the preferred IP address based on communication quality;

[0124] Generate a recommended IP list corresponding to the region identification information based on the preferred IP address.

[0125] In one embodiment, the list generation module 34 is further used to:

[0126] Obtain a random IP address; wherein the random IP address is generated by a virtual private server VPS;

[0127] Add a random IP address to the recommended IP list.

[0128] In one embodiment, the list generation module 34 is further used to:

[0129] Obtain regional IP addresses; wherein, regional IP addresses are obtained by obtaining IP addresses of different regions;

[0130] Add the regional IP address to the recommended IP list.

[0131] In one embodiment, the determination module 33 is further configured to:

[0132] Group the test data of the same IP address according to the regional identification information;

[0133] Determine the qualified number of test data in each group;

[0134] The communication quality of the IP address corresponding to the identification information of different regions is determined according to the qualified number of test data in each group and the total number of test data.

[0135] In one embodiment, the list generation module 34 is further used to:

[0136] The recommended IP list is used as the initial IP list, and the sending module 41 is called again to send the initial IP list to multiple VPN clients, so as to iterate the recommended IP list according to the test results returned by the VPN clients.

[0137] In one embodiment, the generating system further comprises:

[0138] The storage module is used to store the recommended IP list and the region identification information in a one-to-one correspondence.

[0139] For the system embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The system embodiment described above is only illustrative, wherein the units described as separate components may or may not be physically separated, and the components as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application solution.

[0140] Figure 4 This is a schematic diagram of the structure of an electronic device shown in an example embodiment of the present application, the electronic device includes a memory, a processor, and a computer program stored in the memory and used to run on the processor, and when the processor executes the computer program, it implements the method for generating a recommended IP list described in any of the above embodiments. Figure 4 The electronic device 40 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0141] like Figure 4As shown, the electronic device 40 may be in the form of a general computing device, for example, it may be a server device. The components of the electronic device 40 may include but are not limited to: at least one processor 41, at least one memory 42, and a bus 43 connecting different system components (including the memory 42 and the processor 41).

[0142] The bus 43 includes a data bus, an address bus, and a control bus.

[0143] The memory 42 may include a volatile memory, such as a random access memory (RAM) 421 and / or a cache memory 422 , and may further include a read only memory (ROM) 423 .

[0144] The memory 42 may also include a program tool 425 (or utility) having a set (at least one) of program modules 424, such program modules 424 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0145] The processor 41 executes various functional applications and data processing by running the computer program stored in the memory 42, such as the method for generating the recommended IP list provided in any of the above embodiments.

[0146] The electronic device 40 may also communicate with one or more external devices 44 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 45. In addition, the electronic device 40 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 46. As shown, the network adapter 46 communicates with other modules of the electronic device 40 via a bus 43. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 40, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0147] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0148] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the method for generating a recommended IP list provided in any of the above embodiments is implemented.

[0149] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0150] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for generating a recommended IP list.

[0151] Among them, the program code for executing the computer program product of the present application can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0153] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a recommended IP list, It is characterized in that Applied to a VPN server, the generation method includes: Sending an initial IP list to the plurality of VPN clients according to the received startup signals of the plurality of VPN clients; the initial IP list includes a plurality of IP addresses; receiving test results returned by the plurality of VPN clients, the test results comprising test data obtained by the VPN client based on the IP address and regional identification information of the VPN client; Determining, according to the test data and the region identification information, the communication quality of the IP address corresponding to different region identification information; Generating a recommended IP list corresponding to the region identification information according to the communication quality; The determining, according to the test data and the region identification information, the communication quality of the IP address corresponding to different region identification information includes: Grouping the test data of the same IP address according to the region identification information; Determining a qualified number of said test data in each group; Determining the communication quality of the IP address corresponding to different regional identification information according to the qualified number of the test data in each group and the total number of the test data; After the step of generating a recommended IP list corresponding to the region identification information according to the communication quality, the method further includes: The recommended IP list is used as the initial IP list, and the step of sending the initial IP list to multiple VPN clients is performed again, so as to iterate the recommended IP list according to the test results returned by the VPN clients.

2. The generation method according to claim 1, It is characterized in that The generating a recommended IP list corresponding to the region identification information according to the communication quality includes: Determining a preferred IP address based on the communication quality; The recommended IP list corresponding to the region identification information is generated according to the preferred IP address.

3. The generation method according to claim 2, It is characterized in that After generating the recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes: Obtain a random IP address; wherein the random IP address is generated by a virtual private server VPS; Add the random IP address to the recommended IP list.

4. The generation method according to claim 2, It is characterized in that After generating the recommended IP list corresponding to the region identification information according to the preferred IP address, the method further includes: Obtaining a regional IP address; wherein the regional IP address is obtained by obtaining IP addresses of different regions; Add the regional IP address to the recommended IP list.

5. The generation method according to any one of claims 1 to 4, It is characterized in that After the step of generating a recommended IP list corresponding to the region identification information according to the communication quality, the method further includes: The recommended IP list and the region identification information are stored in a one-to-one correspondence.

6. A system for generating a recommended IP list, It is characterized in that Applied to a VPN server, the generation system includes: A sending module, configured to send an initial IP list to the plurality of VPN clients according to the received startup signals of the plurality of VPN clients; the initial IP list includes a plurality of IP addresses; A receiving module, configured to receive test results returned by the plurality of VPN clients, wherein the test results include test data obtained by the VPN client based on the IP address and regional identification information of the VPN client; A determination module, used for determining the communication quality of the IP address corresponding to different regional identification information according to the test data and the regional identification information; A list generating module, used for generating a recommended IP list corresponding to the region identification information according to the communication quality; The determining module is also used for: Grouping the test data of the same IP address according to the region identification information; Determining a qualified number of said test data in each group; Determining the communication quality of the IP address corresponding to different regional identification information according to the qualified number of the test data in each group and the total number of the test data; The list generation module is also used for: The recommended IP list is used as the initial IP list, and the step of sending the initial IP list to multiple VPN clients is performed again, so as to iterate the recommended IP list according to the test results returned by the VPN clients.

7. An electronic device comprising a memory, a processor and a computer program stored in the memory and for running on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.