Tracker server maintenance method and device, equipment and storage medium
The client extracts and reports the tracer server URL in the seed file. The server performs quality rating and filters, and provides high-quality tracer server URLs, which solves the problem of invalid tracer server information in BitTorrent download and improves the user experience.
Patent Information
- Application Number
- CN202510213538.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-25
- Publication Date
- 2025-05-16
AI Technical Summary
In BitTorrent download, the tracer server information carried in the seed file is prone to failure or is unavailable in the short term, resulting in the download failure and the lack of an effective and high-quality tracer server URL providing mechanism.
The client extracts the tracer server URL from the seed file, generates the URL's characteristic information, and reports it to the server. The server scores the URL quality based on feature information, filters out high-quality URLs as the target URL, and uses it to generate a request response for the tracker server request.
When the tracer server information in the seed file is invalid or unavailable, provide users with efficient and available tracer server URLs to improve user experience.
Smart Images

Figure CN120017637A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a tracker server maintenance method, device, equipment and storage medium. Background Art
[0002] The BitTorrent (BT) protocol is an Internet P2P (peer-to-peer) transmission protocol, which has the characteristic that the more people download, the faster the download speed.
[0003] BT downloads rely on seed files, which contain tracker server information. Tracker servers act as information indexes in BT downloads, exchanging peer-to-peer client information for all clients downloading the same seed. However, the tracker server information carried in the seed is added when the uploader creates the seed. Since the tracker server is not highly centralized and authoritative, it is very common for the tracker information in the seed file to be completely invalid or unavailable for a short period of time, which will cause BT download failure. At this time, the URL of the tracker server needs to be provided to the user. Therefore, how to provide users with effective and high-quality tracker server URLs is an urgent problem that needs to be solved. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a tracker server maintenance method, device, equipment and storage medium, which can provide users with efficient and available tracker server URLs when the tracker server information in the seed file is invalid or unavailable, thereby improving the user experience. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a tracker server maintenance method, which is applied to a server and includes:
[0006] Acquire URLs reported by multiple clients and feature information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate feature information of each URL by accessing the URLs in sequence;
[0007] Scoring the quality of all the URLs based on the characteristic information;
[0008] A tracker server request is obtained, a high-quality website is selected as a target website according to the score, and a request response corresponding to the tracker server request is generated based on the target website.
[0009] Optionally, extracting the URLs of all tracker servers from the seed file contained in the local client includes:
[0010] Extract the URL of the primary server and the URL of the candidate server from the seed file contained in the local client;
[0011] The URL of the candidate server is extracted from the magnetic link corresponding to the seed file contained in the local client.
[0012] Optionally, the characteristic information includes performance data of the URL and the number of peer nodes maintained by the tracker server corresponding to the URL, and the performance data includes connectivity information and connection time information;
[0013] Scoring the quality of all the URLs based on the feature information includes:
[0014] Generate indicator parameters corresponding to the website based on the characteristic information generated by each visit to the website within the target duration; the indicator parameters include connectivity rate, average connection time, and average number of peer nodes;
[0015] According to the weight allocation rules corresponding to various indicators, the weight corresponding to each indicator parameter is determined, and the score of the website is determined by weighted calculation; among them, the higher the connectivity rate, the higher the weight, the higher the average connection time, the lower the weight, and the more peer nodes there are, the higher the weight.
[0016] Optionally, after generating a request response corresponding to the tracker server request based on the target URL, the method further includes:
[0017] Record the number of times the target URL is returned;
[0018] Correspondingly, the characteristic information generated by each visit to the website within the target duration is used to generate the indicator parameters corresponding to the website, including:
[0019] Based on the characteristic information generated by each visit to the URL within the target duration and the number of returns corresponding to each URL, the indicator parameters corresponding to the URL are generated; the indicator parameters include connectivity rate, average connection time, average number of peer nodes, and number of returns; among which, the more times the URL is returned, the lower the weight.
[0020] Optionally, before obtaining the URLs reported by multiple clients and the characteristic information of the URLs, the method further includes:
[0021] Obtaining a public URL of a public tracker server and characteristic information of the public URL;
[0022] The quality of all the public URLs is scored according to the characteristic information of the public URLs.
[0023] Optionally, before scoring the quality of all the URLs based on the feature information, the method further includes:
[0024] Determine the region information corresponding to the client, and construct a correspondence between the URL and the region information according to the URL reported by the client and the region information corresponding to the client;
[0025] Accordingly, selecting high-quality URLs as target URLs according to the scores includes:
[0026] Determining a target region corresponding to the tracker server request;
[0027] Filtering out a set of URLs corresponding to the target region according to the correspondence between the URLs and the region information;
[0028] According to the score of each URL in the URL set, a target URL is screened out from the URL set.
[0029] In a second aspect, the present application discloses a tracker server maintenance method, which is applied to a client and includes:
[0030] Extract the URLs of all tracker servers from the seed file contained in the local client;
[0031] Generate characteristic information of each website by accessing the website in sequence;
[0032] The characteristic information is reported to the server so that the server scores the quality of all URLs based on the characteristic information, and after obtaining the tracker server request, the server selects high-quality URLs as target URLs according to the scores, and generates a request response corresponding to the tracker server request based on the target URL.
[0033] In a third aspect, the present application discloses a tracker server maintenance device, which is applied to a server and includes:
[0034] A feature information acquisition module is used to acquire the URLs reported by multiple clients and the feature information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the feature information of each URL by accessing the URLs in sequence;
[0035] A scoring module, used for scoring the quality of all the URLs based on the characteristic information;
[0036] The request response module is used to obtain the tracker server request, screen out high-quality URLs as target URLs according to the scores, and generate a request response corresponding to the tracker server request based on the target URL.
[0037] In a fourth aspect, the present application discloses an electronic device, including:
[0038] Memory, used to store computer programs;
[0039] The processor is used to execute the computer program to implement the aforementioned tracker server maintenance method.
[0040] In a fifth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned tracker server maintenance method when executed by a processor.
[0041] In the present application, the URLs reported by multiple clients and the characteristic information of the URLs are obtained; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the characteristic information of each URL by accessing the URLs in sequence; the quality of all the URLs is scored based on the characteristic information; the tracker server request is obtained, and the high-quality URLs are screened out as the target URLs according to the score, and the request response corresponding to the tracker server request is generated based on the target URL. It can be seen that the client collects the URLs of the tracker servers contained in the seed file, and obtains the characteristic information of the URLs by accessing the URLs. The server performs a comprehensive analysis through the URLs and characteristic information reported by each client, scores the quality of each URL, and then obtains the tracker server request initiated by the user. According to the quality score of each URL, a high-quality URL is screened out as the target URL and fed back to the user, so that when the tracker server information in the seed file is invalid or unavailable, the user is provided with an efficient and available tracker server URL, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0043] Figure 1 A flow chart of a tracker server maintenance method provided for this application;
[0044] Figure 2 A flow chart of a specific tracker server maintenance method provided for this application;
[0045] Figure 3 A schematic diagram of the structure of a tracker server maintenance device provided in this application;
[0046] Figure 4 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] In the prior art, BT downloads rely on seed files, which contain tracker server information. The tracker server acts as an information index in BT downloads, exchanging peer client information for all clients downloading the same seed. However, the tracker server information carried in the seed is added when the uploader creates the seed. Since the tracker server is not highly centralized and authoritative, it is very common for the tracker information in the seed file to be completely invalid or unavailable for a short period of time, which will cause the download to fail. In order to overcome the above technical problems, the present application proposes a tracker server maintenance method, which can provide users with efficient and available tracker server URLs when the tracker server information in the seed file is invalid or unavailable, thereby improving the user experience.
[0049] The present application embodiment discloses a tracker server maintenance method, which is applied to the server, see Figure 1 As shown, the method may include the following steps:
[0050] Step S11: obtaining URLs reported by multiple clients and characteristic information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate characteristic information of each URL by accessing the URLs in sequence.
[0051] The server obtains the URLs of the tracker servers and the characteristic information of the URLs reported by multiple clients. That is, the client extracts the URLs of all tracker servers from the local seed file, and then visits each URL in turn, and generates the characteristic information of each URL based on the accessed data. The characteristic information can reflect the availability and efficiency of the URL and other characteristics.
[0052] Specifically, the above URL can be a Uniform Resource Locator (URL), that is, the URL of the tracker server reported by the client to the server. The tracker server is a server used to manage file sharing in the BitTorrent network. Its main function is to help users find the same files uploaded by other users and coordinate the connection between them; for example, when a user wants to download a file, he obtains a seed file containing file metadata and the tracker server address from the tracker server, uses the seed file to start the download, and establishes connections with other users through the tracker server to download different parts of the file.
[0053] In some embodiments, extracting the URLs of all tracker servers from the seed file contained in the local client may include: extracting the URL of the primary server and the URL of the candidate server from the seed file contained in the local client; extracting the URL of the candidate server from the magnetic link corresponding to the seed file contained in the local client. Specifically, the "announce" field in the seed file records the URL of the primary tracker server, and the "announce-list" field in the seed file records the URL of the backup tracker server; the magnetic link is a link form used for BT downloads, using a special encoding format to represent the information of the BT seed file, and the "tr=" field in the magnetic link may also record the URL of the backup tracker server.
[0054] The above-mentioned characteristic information includes but is not limited to the performance data of the website, the number of peer nodes maintained by the tracker server corresponding to the website, and the above-mentioned performance data includes but is not limited to connectivity information and connection time information. Peer nodes refer to computers that participate in resource sharing and communication in a P2P network. In a peer-to-peer network, each participant is both a resource provider and a resource acquirer. There is no central server, and all nodes communicate and share resources directly. It can be understood that the connectivity information is used to analyze whether the website is accessible. The connectivity under the UDP (User Datagram Protocol) protocol is based on the packet return; the connection time information can be used to analyze whether the access is efficient. Under the UDP protocol, it is calculated based on the first packet return time; the number of peer nodes can reflect the activity and performance of the network. The number of peer nodes directly reflects the number of active users in the current network. A large number of nodes means that more users are participating in file sharing and downloading, which is proportional to the activity of the network; the number of peer nodes can affect network performance. In theory, more peer nodes can provide more download sources, thereby improving download speed and network throughput.
[0055] After the client extracts the URL, it visits the websites one by one and records the connectivity information, connection time information and number of peer nodes corresponding to each URL; connectivity can be represented by 0 and 1, such as 1 for connectivity and 0 for unsuccessful communication. Then all the collected information is reported as a whole. The reporting format is as follows:
[0056] "url": "http: / / fun.foo.com / tr / announce"; URL;
[0057] "connection": 1; connectivity;
[0058] "cost": 392; Connection time;
[0059] "hit": 17; The number of peer nodes.
[0060] "url": "udp: / / fun2.foo.com / bt / announce"; URL;
[0061] "connection": 0; Connectivity.
[0062] "url": "udp: / / 7fun.foo.com / tr / udpqb4an / nounce"; URL;
[0063] "cost": 4392; Connection time;
[0064] "hit": 3; the number of peer nodes.
[0065] That is, connection indicates connectivity or disconnection, cost indicates the connection time, and hit indicates the number of peer nodes. For udp tracker servers, after the existence of cost and hit fields, connection is 1, which is an implicit meaning and can be omitted.
[0066] In some embodiments, before obtaining the URLs reported by multiple clients and the characteristic information of the URLs, the process may also include: obtaining the public URLs of the public tracker servers and the characteristic information of the public URLs; and scoring the quality of all the public URLs according to the characteristic information of the public URLs. That is, there may be some public tracker server URLs, which are usually organized and published by users on their own initiative. These URLs are usually of high quality, but not all of them are available. Therefore, these public URLs can be scored first, and websites that meet the scoring requirements can also be used as content provided to users later to expand the sample size of the scored URLs.
[0067] Step S12: Score the quality of all the URLs based on the characteristic information.
[0068] The quality of each URL is scored based on the acquired feature information, so that high-quality URLs with high connectivity rate and low connection time can be screened out based on the score and provided to users.
[0069] Specifically, scoring the quality of all the URLs based on the characteristic information may include: generating an indicator parameter corresponding to the URL based on the characteristic information generated by each visit to the URL within the target duration; the indicator parameter includes connectivity rate, average connection time, and average number of peer nodes. That is, according to the number of visits to the URL within the target duration and the connectivity information of the URL each time, the number of successful visits can be determined, and then the connectivity rate of the URL can be obtained; the average connection time can be obtained by each connection time and the total number of connections; the average number of peer nodes maintained by the tracker server corresponding to the URL can be obtained. Then, according to the weight allocation rules corresponding to various indicators, the weight corresponding to each indicator parameter is determined, and the score of the URL is determined by weighted calculation; wherein, the higher the connectivity rate, the higher the weight corresponding to the connectivity rate, the higher the average connection time, the lower the weight corresponding to the average connection time, and the more the number of peer nodes, the higher the weight corresponding to the number of peer nodes. That is, since different indicators have different influences on the quality score, by presetting weight allocation rules for various indicators, the corresponding weight is calculated according to the actual indicator parameters during scoring, and finally the quality score of the URL is obtained by weighted calculation. Taking the connectivity rate as an example, when the connectivity rate is 60%, the weight of the connectivity rate of the website is 0.6; when the connectivity rate is 80%, the weight of the connectivity rate of the website is 0.8.
[0070] Step S13: Obtain the tracker server request, select high-quality URLs as target URLs according to the scores, and generate a request response corresponding to the tracker server request based on the target URLs.
[0071] When the URL of the tracker server in the seed file is not available, the user usually does not know which tracker servers are available, let alone which URLs are efficient and fast. Therefore, this application obtains a large number of URLs through multiple clients, and the server uniformly scores the quality. Specifically, it can be sorted by score, and the target number of URLs before sorting are selected as the target URLs. The target number can be customized. Finally, the target URL is sent to the user so that the user can find a peer from a reliable tracker server to increase the chance of task download.
[0072] In some embodiments, after the request response corresponding to the request of the tracker server is generated based on the target URL, it may also include: recording the number of times the target URL is returned; accordingly, the characteristic information generated by each visit to the URL within the target duration to generate the indicator parameters corresponding to the URL includes: generating the indicator parameters corresponding to the URL based on the characteristic information generated by each visit to the URL within the target duration, and the number of times each URL is returned; the indicator parameters include connectivity rate, average connection time, average number of peer nodes, and number of times returned; wherein, the more times returned, the lower the weight. It can be understood that in order to achieve load balancing and avoid feeding back the same URL to the user every time, so that the tracker server of the URL is overloaded, it is necessary to record it after each feedback of the target URL to the user, and consider the number of times the URL is returned in the subsequent quality scoring, and negatively weight the number of returns, that is, the more times it is returned, the lower the weight of this indicator, and then the score of the URL will also be reduced, thereby achieving load balancing of different tracker servers. For example, when the number of returns is 20, the corresponding weight is 0.8, and when the number of returns is 200, the corresponding weight is 0.
[0073] In some embodiments, before scoring the quality of all the URLs based on the feature information, it may also include: determining the region information corresponding to the client, and constructing a correspondence between the URL and the region information according to the URL reported by the client and the region information corresponding to the client; accordingly, selecting high-quality URLs as target URLs according to the score includes: determining the target region corresponding to the request of the tracker server; selecting a set of URLs corresponding to the target region according to the correspondence between the URL and the region information; selecting the target URL from the set of URLs according to the score of each URL in the set of URLs. It is understandable that a URL that is highly usable in a certain area may not work well in another area. Therefore, when the server obtains the URL reported by the client, it records the region to which it belongs based on the IP reported by the client, and also adds its last report time as the last update time to the record. Group all reported records by region, and each URL in each group corresponds to a record entity, and merge all reports. For example, the URL udp: / / fun2.foo.com / bt / announce in Shanghai, all records in the last 3 days, the cumulative number of connections is m, the number of failures is n, and the connection rate is m / (m+n); the average cost of all connections is x milliseconds, and the average number of peer nodes (hit) is y. When a tracker server request is received, the corresponding regional group is found according to the region to which the request IP belongs, and all the URLs corresponding to the regional group are obtained as a URL set; of course, if the URL set contains fewer URLs at this time, or there are no high-quality URLs, global screening without region restrictions can be performed to filter out high-quality tracker servers.
[0074] As can be seen from the above, in this embodiment, the URLs reported by multiple clients and the characteristic information of the URLs are obtained; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the characteristic information of each URL by accessing the URLs in sequence; the quality of all the URLs is scored based on the characteristic information; the tracker server request is obtained, and a high-quality URL is screened out as the target URL according to the score, and a request response corresponding to the tracker server request is generated based on the target URL. It can be seen that the client collects the URL of the tracker server contained in the seed file, and obtains the characteristic information of the URL by accessing the URL. The server performs a comprehensive analysis through the URLs and characteristic information reported by each client, scores the quality of each URL, and then obtains the tracker server request initiated by the user. According to the quality score of each URL, a high-quality URL is screened out as the target URL and fed back to the user, so that when the tracker server information in the seed file is invalid or unavailable, the user is provided with an efficient and available tracker server URL, thereby improving the user experience.
[0075] The present application embodiment discloses a specific tracker server maintenance method, which is applied to the client, see Figure 2 As shown, the method may include the following steps:
[0076] Step S21: extracting the URLs of all tracker servers from the seed file contained in the local client.
[0077] Step S22: Generate characteristic information of each website by accessing the website in sequence.
[0078] Step S23: reporting the characteristic information to the server so that the server scores the quality of all URLs based on the characteristic information, and after obtaining the tracker server request, filtering out high-quality URLs as target URLs according to the scores, and generating a request response corresponding to the tracker server request based on the target URLs.
[0079] The method of extracting the URLs of all tracker servers from the seed file contained in the local client includes: extracting the URL of the main server and the URL of the candidate server from the seed file contained in the local client; and extracting the URL of the candidate server from the magnetic link corresponding to the seed file contained in the local client.
[0080] The above-mentioned characteristic information includes performance data of the URL and the number of peer nodes maintained by the tracker server corresponding to the URL, and the performance data includes connectivity information and connection time information; the above-mentioned scoring of the quality of all the URLs based on the characteristic information includes: generating indicator parameters corresponding to the URL based on the characteristic information generated each time the URL is visited within the target time; the indicator parameters include connectivity rate, average connection time, and average number of peer nodes; according to the weight allocation rules corresponding to each type of indicator, the weight corresponding to each of the indicator parameters is determined, and the score of the URL is determined by weighted calculation; wherein, the higher the connectivity rate, the higher the weight, the higher the average connection time, the lower the weight, and the more the number of peer nodes, the higher the weight.
[0081] After generating a request response corresponding to the tracker server request based on the target URL, it also includes: recording the number of times the target URL is returned; accordingly, based on the feature information generated by each visit to the URL within the target duration, generating indicator parameters corresponding to the URL, including: based on the feature information generated by each visit to the URL within the target duration, and the number of times each URL is returned, generating indicator parameters corresponding to the URL; the indicator parameters include connectivity rate, average connection time, average number of peer nodes, and number of returns; wherein, the more times the URL is returned, the lower the weight.
[0082] Before obtaining the URLs reported by multiple clients and the characteristic information of the URLs, the method further includes: obtaining the public URLs of the public tracker servers and the characteristic information of the public URLs; and scoring the quality of all the public URLs according to the characteristic information of the public URLs.
[0083] Before scoring the quality of all the URLs based on the feature information, the method further includes: determining the region information corresponding to the client, and constructing a correspondence between the URL and the region information according to the URL reported by the client and the region information corresponding to the client; accordingly, selecting high-quality URLs as target URLs according to the scores, including: determining the target region corresponding to the tracker server request; selecting a set of URLs corresponding to the target region according to the correspondence between the URL and the region information; and selecting the target URL from the set of URLs according to the score of each URL in the set of URLs.
[0084] As can be seen from the above, in this embodiment, the URLs reported by multiple clients and the characteristic information of the URLs are obtained; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the characteristic information of each URL by accessing the URLs in sequence; the quality of all the URLs is scored based on the characteristic information; the tracker server request is obtained, and a high-quality URL is screened out as the target URL according to the score, and a request response corresponding to the tracker server request is generated based on the target URL. It can be seen that the client collects the URL of the tracker server contained in the seed file, and obtains the characteristic information of the URL by accessing the URL. The server performs a comprehensive analysis through the URLs and characteristic information reported by each client, scores the quality of each URL, and then obtains the tracker server request initiated by the user. According to the quality score of each URL, a high-quality URL is screened out as the target URL and fed back to the user, so that when the tracker server information in the seed file is invalid or unavailable, the user is provided with an efficient and available tracker server URL, thereby improving the user experience.
[0085] The embodiment of the present application discloses a tracker server maintenance system, including a client and a server. The client collects a large number of seeds used by users in actual daily scenarios, collects a list of tracker servers mentioned therein, and reports the actual use effect of each tracker server in the list; it has a large number of data sources and can effectively evaluate the server. The server evaluates and scores the use effect of the collected tracker servers, that is, the connectivity and time consumed by the access, etc., and provides data basis for subsequent requests to return appropriate target URLs, thereby improving the efficiency of users obtaining peers; based on multiple factors, the optimal tracker server is provided to the client, and the server load can be scheduled and balanced by comprehensively considering the visitor's region, server availability, and load.
[0086] Correspondingly, the present application embodiment also discloses a tracker server maintenance device, see Figure 3 As shown, the device comprises:
[0087] The characteristic information acquisition module 11 is used to obtain the URLs reported by multiple clients and the characteristic information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the characteristic information of each URL by accessing the URLs in sequence;
[0088] A scoring module 12, used for scoring the quality of all the URLs based on the characteristic information;
[0089] The request response module 13 is used to obtain the tracker server request, select high-quality URLs as target URLs according to the scores, and generate a request response corresponding to the tracker server request based on the target URLs.
[0090] As can be seen from the above, in this embodiment, the URLs reported by multiple clients and the characteristic information of the URLs are obtained; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the characteristic information of each URL by accessing the URLs in sequence; the quality of all the URLs is scored based on the characteristic information; the tracker server request is obtained, and a high-quality URL is screened out as the target URL according to the score, and a request response corresponding to the tracker server request is generated based on the target URL. It can be seen that the client collects the URL of the tracker server contained in the seed file, and obtains the characteristic information of the URL by accessing the URL. The server performs a comprehensive analysis through the URLs and characteristic information reported by each client, scores the quality of each URL, and then obtains the tracker server request initiated by the user. According to the quality score of each URL, a high-quality URL is screened out as the target URL and fed back to the user, so that when the tracker server information in the seed file is invalid or unavailable, the user is provided with an efficient and available tracker server URL, thereby improving the user experience.
[0091] In some specific embodiments, the feature information acquisition module 11 may specifically include:
[0092] A first URL extraction unit, used to extract the URL of the main server and the URL of the candidate server from the seed file contained in the local client;
[0093] The second website address extraction unit is used to extract the website address of the candidate server from the magnetic link corresponding to the seed file contained in the local client.
[0094] In some specific embodiments, the characteristic information includes performance data of the URL and the number of peer nodes maintained by the tracker server corresponding to the URL, and the performance data includes connectivity information and connection time information;
[0095] The scoring module 12 may specifically include:
[0096] An indicator parameter determination unit, configured to generate an indicator parameter corresponding to the website based on feature information generated each time the website is visited within a target duration; the indicator parameters include connectivity rate, average connection time, and average number of peer nodes;
[0097] The scoring calculation unit is used to determine the weight corresponding to each of the indicator parameters according to the weight allocation rules corresponding to various indicators, and determine the score of the website through weighted calculation; wherein, the higher the connectivity rate, the higher the weight, the higher the average connection time, the lower the weight, and the more peer nodes, the higher the weight.
[0098] In some specific embodiments, the tracker server maintenance device may specifically include:
[0099] A recording unit, configured to record the number of times the target URL is returned after generating a request response corresponding to the request of the tracker server based on the target URL;
[0100] Correspondingly, the indicator parameter determination unit is used to generate indicator parameters corresponding to the URL based on the characteristic information generated by each visit to the URL within the target duration, and the number of returns corresponding to each URL; the indicator parameters include connectivity rate, average connection time, average number of peer nodes, and number of returns; wherein, the more times the URL is returned, the lower the weight.
[0101] In some specific embodiments, the tracker server maintenance device may specifically include:
[0102] A public URL acquisition unit, configured to acquire a public URL of a public tracker server and the characteristic information of the public URL before acquiring the URLs reported by multiple clients and the characteristic information of the URLs;
[0103] The scoring unit is used to score the quality of all the public URLs according to the characteristic information of the public URLs.
[0104] In some specific embodiments, the tracker server maintenance device may specifically include:
[0105] A region information determination unit, configured to determine the region information corresponding to the client before scoring the quality of all the URLs based on the feature information, and to construct a correspondence between the URL and the region information according to the URL reported by the client and the region information corresponding to the client;
[0106] Accordingly, the request response module 13 may specifically include:
[0107] a target region determining unit, configured to determine a target region corresponding to the tracker server request;
[0108] A website set screening unit, configured to screen out a website set corresponding to the target region according to the correspondence between the website and the region information;
[0109] The target website address determination unit is used to filter out the target website address from the website address set according to the score of each website address in the website address set.
[0110] Furthermore, the present application also discloses an electronic device, see Figure 4 As shown, the contents in the drawings should not be considered as any limitation on the scope of use of the present application.
[0111] Figure 4 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the tracker server maintenance method disclosed in any of the aforementioned embodiments.
[0112] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0113] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including feature information, etc. The storage method can be temporary storage or permanent storage.
[0114] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the tracker server maintenance method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0115] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the tracker server maintenance method disclosed in any of the aforementioned embodiments are implemented.
[0116] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0117] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0118] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0119] The above is a detailed introduction to a tracker server maintenance method, device, equipment and storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A tracker server maintenance method, characterized in that: Applicable to servers, including: Acquire URLs reported by multiple clients and feature information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate feature information of each URL by accessing the URLs in sequence; Scoring the quality of all the URLs based on the characteristic information; A tracker server request is obtained, a high-quality website is selected as a target website according to the score, and a request response corresponding to the tracker server request is generated based on the target website.
2. The tracker server maintenance method according to claim 1, characterized in that: The URLs of all tracker servers are extracted from the seed file contained in the local client, including: Extract the URL of the primary server and the URL of the candidate server from the seed file contained in the local client; The URL of the candidate server is extracted from the magnetic link corresponding to the seed file contained in the local client.
3. The tracker server maintenance method according to claim 1, characterized in that: The characteristic information includes performance data of the website and the number of peer nodes maintained by the tracker server corresponding to the website, and the performance data includes connectivity information and connection time information; Scoring the quality of all the URLs based on the feature information includes: Generate indicator parameters corresponding to the website based on the characteristic information generated by each visit to the website within the target duration; the indicator parameters include connectivity rate, average connection time, and average number of peer nodes; According to the weight allocation rules corresponding to various indicators, the weight corresponding to each indicator parameter is determined, and the score of the website is determined by weighted calculation; among them, the higher the connectivity rate, the higher the weight, the higher the average connection time, the lower the weight, and the more peer nodes there are, the higher the weight.
4. The tracker server maintenance method according to claim 3, characterized in that: After generating a request response corresponding to the tracker server request based on the target URL, the method further includes: Record the number of times the target URL is returned; Correspondingly, the characteristic information generated by each visit to the website within the target duration is used to generate the indicator parameters corresponding to the website, including: Based on the characteristic information generated by each visit to the URL within the target duration and the number of returns corresponding to each URL, the indicator parameters corresponding to the URL are generated; the indicator parameters include connectivity rate, average connection time, average number of peer nodes, and number of returns; among which, the more times the URL is returned, the lower the weight.
5. The tracker server maintenance method according to claim 1, characterized in that: Before obtaining the URLs reported by multiple clients and the characteristic information of the URLs, the method further includes: Obtaining a public URL of a public tracker server and characteristic information of the public URL; The quality of all the public URLs is scored according to the characteristic information of the public URLs.
6. The tracker server maintenance method according to claim 1, characterized in that: Before scoring the quality of all the URLs based on the feature information, the method further includes: Determine the region information corresponding to the client, and construct a correspondence between the URL and the region information according to the URL reported by the client and the region information corresponding to the client; Accordingly, selecting high-quality URLs as target URLs according to the scores includes: Determining a target region corresponding to the tracker server request; Filtering out a set of URLs corresponding to the target region according to the correspondence between the URLs and the region information; According to the score of each URL in the URL set, a target URL is screened out from the URL set.
7. A tracker server maintenance method, characterized in that: Applied to the client, including: Extract the URLs of all tracker servers from the seed file contained in the local client; Generate characteristic information of each website by accessing the website in sequence; The characteristic information is reported to the server so that the server scores the quality of all URLs based on the characteristic information, and after obtaining the tracker server request, the server selects high-quality URLs as target URLs according to the scores, and generates a request response corresponding to the tracker server request based on the target URL.
8. A tracker server maintenance device, characterized in that: Applicable to servers, including: A feature information acquisition module is used to acquire the URLs reported by multiple clients and the feature information of the URLs; the client is used to extract the URLs of all tracker servers from the seed file contained in the local client, and generate the feature information of each URL by accessing the URLs in sequence; A scoring module, used for scoring the quality of all the URLs based on the characteristic information; The request response module is used to obtain the tracker server request, screen out high-quality URLs as target URLs according to the scores, and generate a request response corresponding to the tracker server request based on the target URL.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the tracker server maintenance method according to any one of claims 1 to 6, or the tracker server maintenance method according to claim 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein when the computer program is executed by a processor, the tracker server maintenance method according to any one of claims 1 to 6 or the tracker server maintenance method according to claim 7 is implemented.