CN114039944A - Website access address selection method, equipment, storage medium and device - Google Patents

Website access address selection method, equipment, storage medium and device Download PDF

Info

Publication number
CN114039944A
CN114039944A CN202111174137.5A CN202111174137A CN114039944A CN 114039944 A CN114039944 A CN 114039944A CN 202111174137 A CN202111174137 A CN 202111174137A CN 114039944 A CN114039944 A CN 114039944A
Authority
CN
China
Prior art keywords
access
website
address
candidate
quintuple
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111174137.5A
Other languages
Chinese (zh)
Inventor
宗均然
何晓萌
金迪
张鑫
王梓霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111174137.5A priority Critical patent/CN114039944A/en
Publication of CN114039944A publication Critical patent/CN114039944A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention relates to the technical field of internet, and discloses a website access address selection method, equipment, a storage medium and a device, wherein the method comprises the following steps: selecting a candidate website from the read current website information table, analyzing a domain name corresponding to the candidate website to obtain an address to be accessed, performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website, and selecting a target access address from the address to be accessed according to the performance index; according to the invention, the candidate website is selected according to the current website information table, the optimal access address of the candidate website at different time periods is analyzed by detecting the access performance of the candidate website at different addresses, and the optimal access address is issued to the access equipment, so that the access equipment can access the website through the optimal access address, and therefore, no additional storage space is required to be arranged, the cost is saved, the website access speed is increased, and the user experience is improved.

Description

Website access address selection method, equipment, storage medium and device
Technical Field
The invention relates to the technical field of internet, in particular to a website access address selection method, equipment, a storage medium and a device.
Background
Currently, in order to optimize the website access experience, the access speed is usually increased by preloading website resources. However, preloading website resources is based on a caching mechanism, and additional storage space is required, which increases cost.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a website access address selection method, equipment, a storage medium and a device, and aims to solve the technical problems that in the prior art, the website access speed is increased by preloading website resources, extra storage space is required, and the cost is increased.
In order to achieve the above object, the present invention provides a website access address selection method, which comprises the following steps:
selecting a candidate website from the read current website information table, and acquiring an address to be accessed corresponding to the candidate website;
performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website;
and selecting a target access address according to the performance index and the address to be accessed.
Optionally, the step of selecting a target access address according to the performance indicator and the address to be accessed includes:
generating an access quadruple according to the performance index and the address to be accessed, and classifying the access quadruple to obtain an access quadruple population;
carrying out population evolution on the visit quadruplet population to obtain a visit quintuple representative;
determining the fitness value of the access quintuple representation according to a preset fitness model;
and selecting a target access address according to the fitness value.
Optionally, the step of selecting a target access address according to the fitness score includes:
sorting the access quintuple representations according to the adaptability scores to obtain sorting results;
selecting a candidate access quintuple from the access quintuple representative according to the sorting result;
acquiring a discrete value of the candidate access quintuple, and selecting a target access quintuple from the candidate access quintuple according to the discrete value;
and selecting a target access address according to the target access quintuple.
Optionally, the step of obtaining a discrete value of the candidate access five-tuple and selecting a target access five-tuple from the candidate access five-tuple according to the discrete value includes:
acquiring a discrete value of the candidate access quintuple, and judging whether the discrete value is in a discrete threshold range;
if so, acquiring an access address of the candidate access quintuple, and acquiring an access hit rate of the access address;
and when the access hit rate is greater than a preset hit rate threshold value, taking the candidate access quintuple as a target access quintuple.
Optionally, after the step of selecting the target access address according to the performance indicator and the address to be accessed, the method further includes:
obtaining a local cache access address, and matching the target access address with the local cache access address;
and when the matching fails, sending the target access address to the access equipment.
Optionally, before the step of selecting a candidate website from the read current website information table and obtaining the address to be accessed corresponding to the candidate website, the method further includes:
receiving website access information returned when the access equipment accesses the website;
and updating the initial website information table according to the website access information to obtain the current website information table.
Optionally, the step of updating the initial website information table according to the website access information to obtain the current website information table includes:
extracting a current access address and current access performance corresponding to the current access address from the website access information;
searching expected access performance corresponding to the current access address, and generating a performance reference score according to the current access performance and the expected access performance;
and updating the initial website information table according to the website access information and the performance reference value to obtain a current website information table.
In addition, in order to achieve the above object, the present invention further provides a website access address selecting apparatus, where the website access address selecting apparatus includes a memory, a processor, and a website access address selecting program stored in the memory and operable on the processor, and the website access address selecting program is configured to implement the website access address selecting method described above.
In addition, in order to achieve the above object, the present invention further provides a storage medium, in which a website access address selection program is stored, and the website access address selection program, when executed by a processor, implements the website access address selection method as described above.
In addition, to achieve the above object, the present invention further provides a website access address selecting apparatus, including: the device comprises an address acquisition module, a performance detection module and an address selection module;
the address acquisition module is used for selecting a candidate website from the read current website information table and acquiring an address to be accessed corresponding to the candidate website;
the performance detection module is used for performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website;
and the address selection module is used for selecting a target access address according to the performance index and the address to be accessed.
Selecting a candidate website from a read current website information table, analyzing a domain name corresponding to the candidate website to obtain an address to be accessed, performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website, and selecting a target access address from the address to be accessed according to the performance index; according to the invention, the candidate website is selected according to the current website information table, the optimal access address of the candidate website at different time periods is analyzed by detecting the access performance of the candidate website at different addresses, and the optimal access address is issued to the access equipment, so that the access equipment can access the website through the optimal access address, and therefore, no additional storage space is required to be arranged, the cost is saved, the website access speed is increased, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a website access address selecting device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a website access address selection method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a website access address selecting method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of access equipment and control center settings according to an embodiment of the method for selecting a website access address of the present invention
FIG. 5 is a flowchart illustrating a website access address selecting method according to a third embodiment of the present invention;
fig. 6 is a block diagram illustrating a website access address selecting apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a website access address selecting device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the website access address selecting apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the website access address selection device and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in FIG. 1, memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a website access address selection program.
In the website access address selection device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the website access address selection device calls a website access address selection program stored in the memory 1005 through the processor 1001, and executes the website access address selection method provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the website access address selection method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a website access address selection method according to a first embodiment of the present invention, and provides the website access address selection method according to the first embodiment of the present invention.
Step S10: and selecting a candidate website from the read current website information table, and acquiring the address to be accessed corresponding to the candidate website.
It should be understood that the main body of the method of the present embodiment may be a website access address selecting device with data processing, network communication and program running functions, such as a server, or other electronic devices capable of implementing the same or similar functions. In this embodiment and other embodiments, the control center is taken as an execution subject for illustration.
It can be understood that, for optimizing website access experience, there are two main methods at present, and the first method is to achieve the effect of improving the first access experience of a webpage by preloading the webpage, intercepting a browser request and using a local cache; and secondly, the purpose of reducing webpage resource downloading is achieved by enhancing the functions of the Web server and applying the history cache of the browser.
However, the core ideas of the two ways are that the purpose of shortening the first access time is achieved by preloading webpage resources, and both are based on a cache mechanism, and need to rely on extra storage space, thereby increasing the cost.
In order to overcome the above defects, in this embodiment, a candidate website is selected according to a current website information table, then, by detecting access performance of the candidate website at different addresses, optimal access addresses of the candidate website at different time periods are analyzed, and the optimal access addresses are issued to the access device, so that the access device can access the website through the optimal access addresses, and thus, no additional storage space needs to be set, the cost is saved, the website access speed is increased, and the user experience is improved.
It should be noted that the website information table may include a time range, a website domain name, a total number of visits, an IP address, a DOM value, a number of visits, a number of hits, and a hit rate. The IP address can be an IP address for accessing a website, the DOM value is used for representing the time for the browser to present the website to a user, and the smaller the DOM value is, the faster the website access speed is.
It can be understood that if the optimal access address is generated for all websites, the resources are wasted. In order to overcome the above drawbacks, in this embodiment, the websites in the current website information table are first screened to select a common website as a candidate website.
It should be understood that, the selection of the candidate websites from the read current website information table may be to sort the website domain names according to the total number of visits from large to small, and take a predetermined number of websites ranked first as the candidate websites. Wherein the preset number may be preset.
It should be understood that, acquiring the address to be visited corresponding to the candidate website may be periodically sending a DNS message to the candidate website to acquire an IP address, i.e., the address to be visited, of the candidate website.
The IP address corresponding to the candidate website may also be searched in the current website information table, which is not limited in this embodiment.
Step S20: and performing performance detection on the candidate website according to the address to be accessed to obtain the performance index of the candidate website.
It will be appreciated that the speed of accessing a web site through different IP addresses varies. In order to select the optimal IP address, the access speed of the website is ensured. In this embodiment, the access performance of the candidate website under each address to be accessed is respectively detected, and the optimal IP address is selected according to the access performance.
It should be understood that, the performance detection of the candidate website according to the addresses to be visited may be to detect the visiting performance of the candidate website under each address to be visited separately.
It should be noted that the performance index of the candidate website may be a DOM value of the candidate website when the candidate website is accessed through each address to be accessed, and the smaller the DOM value is, the faster the website access speed is.
Step S30: and selecting a target access address according to the performance index and the address to be accessed.
It should be understood that, in order to select an access address with a higher access speed, in this embodiment, the addresses to be accessed may be sorted according to the performance index, and the target access address may be selected according to the sorting result.
It can be appreciated that the smaller the DOM value, the faster the website access speed. Therefore, the addresses to be accessed are sorted according to the performance index, the target access addresses are selected according to the sorting result, the addresses to be accessed can be sorted from small to large according to the DOM value, and the addresses to be accessed which are sorted most front are used as the target access addresses.
In the first embodiment, the method comprises the steps of selecting a candidate website from a read current website information table, analyzing a domain name corresponding to the candidate website to obtain an address to be accessed, performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website, and selecting a target access address from the address to be accessed according to the performance index; according to the embodiment, the candidate website is selected according to the current website information table, the optimal access address of the candidate website at different time periods is analyzed by detecting the access performance of the candidate website at different addresses, and the optimal access address is issued to the access equipment, so that the access equipment can access the website through the optimal access address, no additional storage space is needed, the cost is saved, the website access speed is increased, and the user experience is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a website access address selecting method according to a second embodiment of the present invention, and the website access address selecting method according to the second embodiment of the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, before the step S10, the method further includes:
step S01: and receiving website access information returned when the access equipment accesses the website.
It is understood that, in practical applications, the website information in the website information table changes in real time. Therefore, if the website information table is not updated in real time, the website information in the website information table may be inaccurate. In order to overcome the above defect, in this embodiment, the website access information returned when the access device accesses the website is received first, and then the initial website information table is updated according to the website access information to obtain the current website information table.
It should be noted that the access device may be a user terminal device, such as a mobile phone or a computer. The access equipment is responsible for accessing the network and is connected with the control center.
It should be understood that when the access device first registers with the control center, the control center issues a website resolution table to the access device. The website resolution table may include: website list and IP address corresponding to each website. Before the access equipment accesses the website, whether a website analysis table exists locally or not is firstly inquired, and if the website analysis table exists, the website is accessed according to an IP address in the website analysis table; if no record exists, the IP address is analyzed through the DNS, the website is accessed according to the IP address, and the website is reported to the control center.
For ease of understanding, the description will be made with reference to fig. 4, but this scheme is not limited thereto. Fig. 4 is a schematic diagram of the access device and the control center, in fig. 4, the access device is connected to the control center, and the access device can call the network node by inputting the IP address corresponding to the network node.
It should be noted that the website access information may include a generation time, an IP address, and a DOM value. The generation time can be the generation time of the website access request, the IP address can be the IP address of the accessed website, the DOM value is used for representing the time of the browser for presenting the website to the user, and the smaller the DOM value is, the faster the website access speed is.
Step S02: and updating the initial website information table according to the website access information to obtain the current website information table.
For ease of understanding, the description is made with reference to table 1, but this scheme is not limited thereto. Table 1 is an initial website information table, in which website information includes a time range, a website domain name, a total number of visits, an IP address, a DOM value, a number of visits, a number of hits, and a hit rate.
Table 1 initial website information table
Figure BDA0003294159750000081
It should be understood that, the initial website information table is updated according to the website access information, and the obtaining of the current website information table may be updating the total number of website accesses and the number of accesses of the corresponding IP address in the initial website information table according to the generation time and the IP address in the website access information.
Further, in order to update the hit number and the hit rate of the IP address in time, step S02 includes:
extracting a current access address and current access performance corresponding to the current access address from the website access information;
searching expected access performance corresponding to the current access address, and generating a performance reference score according to the current access performance and the expected access performance;
and updating the initial website information table according to the website access information and the performance reference value to obtain a current website information table.
It should be noted that the access performance may be a DOM value, where the DOM value is used to represent the time when the browser presents the website to the user, and the smaller the DOM value, the faster the website access speed.
It should be understood that generating the performance reference score according to the current access performance and the expected access performance may be calculating the performance reference score through a preset performance formula according to the current access performance and the expected access performance. Wherein, the preset performance formula is as follows:
Figure BDA0003294159750000091
in the formula, DaTo refer to the score for performance, D1Is the current DOM value, D2Is the historical DOM value.
It can be understood that, the initial website information table is updated according to the performance reference score, and the current website information table can be obtained by updating the total website access times and the access times of the corresponding IP addresses in the initial website information table according to the generation time and the IP addresses in the website access information and then judging DaWhether or not it satisfies 0 < Da< m, where m is a predetermined constant value, and 1.5 is exemplified in this example. If so, judging that the access effect of the current IP address is consistent with the expectation, adding 1 to the hit frequency, and updating the hit rate of the current IP address after the comparison is completed.
It should be understood that different website information tables are generated according to different time ranges, and the hit rates of the time periods are not interfered with each other, so as to meet the requirement of comprehensive coverage.
In the second embodiment, the method comprises the steps of receiving website access information returned when access equipment accesses a website, updating an initial website information table according to the website access information, and obtaining a current website information table; in the embodiment, the website information table can be updated in real time, so that the real-time performance and the reliability of the website information table are ensured.
In the second embodiment, the step S30 includes:
step S301: and generating an access quadruple according to the performance index and the address to be accessed, and classifying the access quadruple to obtain an access quadruple population.
It will be appreciated that single-dimensional selection of a target access address by means of performance indicators alone may result in inaccurate access addresses. In order to overcome the above defect, in this embodiment, an access quadruple is generated according to the performance index and the address to be accessed, and then the target access address is selected by performing subsequent processing on the access quadruple.
It should be noted that the access quadruplet may be composed of a website domain name, an IP address, a generation time, and a DOM value.
For ease of understanding, the description is made with reference to table 2, but this scheme is not limited thereto. Table 2 is an access quadruplet, the IP address in the table is the address to be accessed, the DOM value is the performance index, and the website domain name and the generation time can be uploaded by the access device.
Table 2 accessing quadruplets
Website domain name IP address Generating time DOM value
www.mit.edu 3.9.12.214 09:12:32 35
It can be understood that the four-tuple access is classified, and the four-tuple access population is obtained by grouping four-tuples access with the same time range, the same website domain name and the same IP address into the same population.
It should be appreciated that in classifying the access quadruples, the access quadruple population also needs to be defined. In this and other embodiments, the number of access quadruplets in the access quadruplet population is limited to be greater than k. Where k is a constant value, which may be preset.
Step S302: and carrying out population evolution on the visit quadruplet population to obtain a visit quintuple representation.
It should be noted that the access quintuple representative may include a website domain name, an IP address, a generation time, a DOM expected value, and a DOM dispersion value, where the DOM expected value may be a DOM average value of the access quadruplet group, and the DOM dispersion value may be a DOM variance value of the access quadruplet group.
For ease of understanding, the description is made with reference to table 3, but this scheme is not limited thereto. Table 3 is a visit quintuple representation.
TABLE 3 Access quintuple representation
Website domain name IP address Generating time DOM expected value Discrete value of DOM
www.mit.edu 1.0.15.215 09:23:14 32 0.7
It is to be understood that population evolving the visit quad population may be population evolving when the number of visit quad in the visit quad population is greater than a threshold k. When the population evolves, the number of the seed visit quadruplets is unified, individuals with early generation time are preferentially eliminated by taking a threshold k as a reference, and therefore a visit quintuple representative is generated.
Step S303: and determining the fitness value of the access quintuple representation according to a preset fitness model.
It should be noted that the fitness score may be used to represent a relationship between the access quintuple representation and the access speed, and the higher the fitness score is, the faster the access speed of the website is, and the better the experience of the user is.
It should be understood that the preset fitness model may be as follows:
Figure BDA0003294159750000101
wherein f (x) is fitness score, E is DOM expected value, and DmaxAcceptable DOM threshold, DmaxAs a constant value, it can be set in advance.
It will be appreciated that, at E>DmaxAt this time, it is stated that the DOM expected value is greater than the acceptable DOM threshold value, and at this time, the fitness score of the negative value needs to be set to avoid accessing the quintuple representation.
Step S304: and selecting a target access address according to the fitness value.
It should be understood that the selecting of the target access address according to the fitness value may be sorting the access quintuple representations according to the fitness value from large to small, obtaining a sorting result, taking the access quintuple representation sorted most in the sorting as the target access quintuple, and taking the IP address of the target access quintuple as the target access address.
In the second embodiment, the method comprises the steps of generating an access quadruplet according to a performance index and an address to be accessed, classifying the access quadruplet to obtain an access quadruplet population, performing population evolution on the access quadruplet population to obtain an access quintet representation, determining the fitness value of the access quintet representation according to a preset fitness model, and selecting a target access address according to the fitness value; in the embodiment, the access quadruplet is generated according to the performance index and the address to be accessed, the access quadruplet is processed, the access quintuple representation is determined, and the target access address is selected according to the access quintuple representation, so that the target access address can be selected from multiple dimensions, and the reliability of the target access address is improved.
In the second embodiment, after the step S30, the method further includes:
step S40: and acquiring a local cache access address, and matching the target access address with the local cache access address.
It should be understood that, since the present embodiment is a time-sharing process, the process is performed once every preset period. Therefore, the optimal access address also exists in the previous cycle, and in the embodiment, the optimal access address of the previous cycle exists locally as the local cache access address. If the local cache access address is the same as the target access address, the optimal access address does not need to be updated. Thus, there is no need to send the target access address to the access device either.
Step S50: and when the matching fails, sending the target access address to the access equipment.
It is understood that when the matching fails, it is stated that the local cache access address is the same as the target access address, and the optimal access address needs to be updated. Therefore, the target access address needs to be sent to the access device.
In a second embodiment, a method for obtaining a local cache access address, matching a target access address with the local cache access address, and sending the target access address to an access device when matching fails is disclosed; in the embodiment, when the target access address is sent to the access device, whether the optimal access address needs to be updated or not is verified, so that unnecessary address update is avoided, and resource waste is reduced.
Referring to fig. 5, fig. 5 is a flowchart illustrating a website access address selecting method according to a third embodiment of the present invention, and the third embodiment of the website access address selecting method according to the present invention is proposed based on the first embodiment illustrated in fig. 2.
In a third embodiment, the step S304 includes:
step S3041: and sorting the access quintuple representations according to the adaptability scores to obtain sorting results.
It should be understood that in practical applications, if the most ordered access five-tuple representation is directly used as the target access five-tuple and the IP address of the target access five-tuple is used as the target access address, there may be a case where the target access address is not accurate enough. In order to overcome the above drawback, in this embodiment, the target access quintuple is further selected according to the discrete value of the access quintuple.
It can be understood that the access quintuple representations are sorted according to the fitness score, and the obtained sorting result can be obtained by sorting the access quintuple representations from large to small according to the fitness score.
Step S3042: and selecting a candidate access quintuple from the access quintuple representation according to the sorting result.
It should be appreciated that selecting a candidate access five-tuple from the access five-tuple representations according to the ranking result may be to have the top-ranked access five-tuple representation as the candidate access five-tuple.
Step S3043: and acquiring a discrete value of the candidate access quintuple, and selecting a target access quintuple from the candidate access quintuple according to the discrete value.
It should be noted that the discrete value may be a DOM discrete value, and the DOM discrete value may be a DOM variance value for accessing the four-tuple group.
It should be understood that selecting the target access quintuple from the candidate access quintuples according to the discrete value may be determining whether the discrete value is within a discrete threshold range, and if so, taking the candidate access quintuple as the target access quintuple. Wherein the discrete threshold range may be [ Lmax,Lmin],LmaxAnd LminIt may be preset.
Further, in practical applications, if the hit rate of an IP address is too low, an access error may occur when an access is performed through the IP address. In order to overcome the above drawback, the step S3043 includes:
acquiring a discrete value of the candidate access quintuple, and judging whether the discrete value is in a discrete threshold range;
if so, acquiring an access address of the candidate access quintuple, and acquiring an access hit rate of the access address;
and when the access hit rate is greater than a preset hit rate threshold value, taking the candidate access quintuple as a target access quintuple.
It should be noted that the preset hit rate threshold may be preset, for example, 0.8 is taken as the preset hit rate threshold.
For convenience of understanding, the following description is given by way of example, but the present invention is not limited thereto. Determining the target access quintuple includes:
a) selecting the quintuple with the highest fitness score in the visit quintuple representatives as a candidate visit quintuple, and judging whether the dispersion value of the candidate visit quintuple falls on a dispersion threshold value [ L ]max,Lmin]If yes, turning to b); if not, LmaxAnd LminRespectively executing plus 1 operation, removing the candidate access quintuple, and turning to c);
b) inquiring a current website information table, if the current IP hit rate of the access address of the candidate access quintuple is greater than 0.8 or 0, judging that the candidate access quintuple is a target access quintuple, finishing screening, and otherwise turning to c);
c) and judging whether an access quintuple with the fitness score larger than 0 exists in the access quintuple representative, if so, turning to a), if not, informing the access equipment of self-analyzing the current website in the current time period without the optimal IP, and otherwise, informing the access equipment of self-analyzing the current website.
Step S3044: and selecting a target access address according to the target access quintuple.
It should be appreciated that selecting the destination access address based on the destination access quintuple may be to use the IP address of the destination access quintuple as the destination access address.
In the third embodiment, the method comprises the steps of sorting access quintuple representatives according to the adaptability scores, obtaining a sorting result, selecting candidate access quintuple from the access quintuple representatives according to the sorting result, obtaining a discrete value of the candidate access quintuple, selecting a target access quintuple from the candidate access quintuple according to the discrete value, and selecting a target access address according to the target access quintuple; in the embodiment, the fitness value and the discrete value are additionally introduced to select the target access quintuple, so that the reliability of the target access quintuple is improved, and the accuracy of the target access address is improved.
In addition, an embodiment of the present invention further provides a storage medium, where a website access address selection program is stored on the storage medium, and the website access address selection program, when executed by a processor, implements the website access address selection method described above.
In addition, referring to fig. 6, an embodiment of the present invention further provides a website access address selecting apparatus, where the website access address selecting apparatus includes: the system comprises an address acquisition module 10, a performance detection module 20 and an address selection module 30;
the address obtaining module 10 is configured to select a candidate website from the read current website information table, and obtain an address to be accessed corresponding to the candidate website.
It can be understood that, for optimizing website access experience, there are two main methods at present, and the first method is to achieve the effect of improving the first access experience of a webpage by preloading the webpage, intercepting a browser request and using a local cache; and secondly, the purpose of reducing webpage resource downloading is achieved by enhancing the functions of the Web server and applying the history cache of the browser.
However, the core ideas of the two ways are that the purpose of shortening the first access time is achieved by preloading webpage resources, and both are based on a cache mechanism, and need to rely on extra storage space, thereby increasing the cost.
In order to overcome the above defects, in this embodiment, a candidate website is selected according to a current website information table, then, by detecting access performance of the candidate website at different addresses, optimal access addresses of the candidate website at different time periods are analyzed, and the optimal access addresses are issued to the access device, so that the access device can access the website through the optimal access addresses, and thus, no additional storage space needs to be set, the cost is saved, the website access speed is increased, and the user experience is improved.
It should be noted that the website information table may include a time range, a website domain name, a total number of visits, an IP address, a DOM value, a number of visits, a number of hits, and a hit rate. The IP address can be an IP address for accessing a website, the DOM value is used for representing the time for the browser to present the website to a user, and the smaller the DOM value is, the faster the website access speed is.
It can be understood that if the optimal access address is generated for all websites, the resources are wasted. In order to overcome the above drawbacks, in this embodiment, the websites in the current website information table are first screened to select a common website as a candidate website.
It should be understood that, the selection of the candidate websites from the read current website information table may be to sort the website domain names according to the total number of visits from large to small, and take a predetermined number of websites ranked first as the candidate websites. Wherein the preset number may be preset.
It should be understood that, acquiring the address to be visited corresponding to the candidate website may be periodically sending a DNS message to the candidate website to acquire an IP address, i.e., the address to be visited, of the candidate website.
The IP address corresponding to the candidate website may also be searched in the current website information table, which is not limited in this embodiment.
The performance detection module 20 is configured to perform performance detection on the candidate website according to the address to be accessed, so as to obtain a performance index of the candidate website.
It will be appreciated that the speed of accessing a web site through different IP addresses varies. In order to select the optimal IP address, the access speed of the website is ensured. In this embodiment, the access performance of the candidate website under each address to be accessed is respectively detected, and the optimal IP address is selected according to the access performance.
It should be understood that, the performance detection of the candidate website according to the addresses to be visited may be to detect the visiting performance of the candidate website under each address to be visited separately.
It should be noted that the performance index of the candidate website may be a DOM value of the candidate website when the candidate website is accessed through each address to be accessed, and the smaller the DOM value is, the faster the website access speed is.
The address selecting module 30 is configured to select a target access address according to the performance indicator and the address to be accessed.
It should be understood that, in order to select an access address with a higher access speed, in this embodiment, the addresses to be accessed may be sorted according to the performance index, and the target access address may be selected according to the sorting result.
It can be appreciated that the smaller the DOM value, the faster the website access speed. Therefore, the addresses to be accessed are sorted according to the performance index, the target access addresses are selected according to the sorting result, the addresses to be accessed can be sorted from small to large according to the DOM value, and the addresses to be accessed which are sorted most front are used as the target access addresses.
In this embodiment, it is disclosed that a candidate website is selected from a read current website information table, a domain name corresponding to the candidate website is analyzed to obtain an address to be accessed, performance detection is performed on the candidate website according to the address to be accessed to obtain a performance index of the candidate website, and a target access address is selected from the address to be accessed according to the performance index; according to the embodiment, the candidate website is selected according to the current website information table, the optimal access address of the candidate website at different time periods is analyzed by detecting the access performance of the candidate website at different addresses, and the optimal access address is issued to the access equipment, so that the access equipment can access the website through the optimal access address, no additional storage space is needed, the cost is saved, the website access speed is increased, and the user experience is improved.
In an embodiment, the address selecting module 20 is further configured to generate an access quadruplet according to the performance index and the address to be accessed, classify the access quadruplet to obtain an access quadruplet population, perform population evolution on the access quadruplet population to obtain an access quintuple representation, determine a fitness value of the access quintuple representation according to a preset fitness model, and select a target access address according to the fitness value;
in an embodiment, the address selecting module 20 is further configured to sort the visit quintuple representations according to the adaptability scores, obtain a sorting result, select a candidate visit quintuple from the visit quintuple representations according to the sorting result, obtain a discrete value of the candidate visit quintuple, select a target visit quintuple from the candidate visit quintuple according to the discrete value, and select a target visit address according to the target visit quintuple;
in an embodiment, the address selecting module 20 is further configured to obtain a discrete value of the candidate access quintuple, and determine whether the discrete value is within a discrete threshold range, if so, obtain an access address of the candidate access quintuple, and obtain an access hit rate of the access address, and when the access hit rate is greater than a preset hit rate threshold, take the candidate access quintuple as a target access quintuple;
in an embodiment, the website access address selecting apparatus further includes: an address sending module;
the address sending module is used for acquiring a local cache access address and matching the target access address with the local cache access address; when the matching fails, the target access address is sent to the access equipment;
in an embodiment, the website access address selecting apparatus further includes: an information table updating module;
the information table updating module is used for receiving website access information returned when the access equipment accesses the website; updating the initial website information table according to the website access information to obtain a current website information table;
in an embodiment, the information table updating module is further configured to extract a current access address and a current access performance corresponding to the current access address from the website access information; searching expected access performance corresponding to the current access address, and generating a performance reference score according to the current access performance and the expected access performance; and updating the initial website information table according to the website access information and the performance reference value to obtain a current website information table.
Other embodiments or specific implementation manners of the website access address selecting device according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order, but rather the words first, second, third, etc. are to be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling an Access device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A website access address selection method is characterized by comprising the following steps:
selecting a candidate website from the read current website information table, and acquiring an address to be accessed corresponding to the candidate website;
performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website;
and selecting a target access address according to the performance index and the address to be accessed.
2. The method for selecting website access address according to claim 1, wherein the step of selecting the target access address according to the performance index and the address to be accessed comprises:
generating an access quadruple according to the performance index and the address to be accessed, and classifying the access quadruple to obtain an access quadruple population;
carrying out population evolution on the visit quadruplet population to obtain a visit quintuple representative;
determining the fitness value of the access quintuple representation according to a preset fitness model;
and selecting a target access address according to the fitness value.
3. The website access address selection method according to claim 2, wherein the step of selecting the target access address according to the fitness score comprises:
sorting the access quintuple representations according to the adaptability scores to obtain sorting results;
selecting a candidate access quintuple from the access quintuple representative according to the sorting result;
acquiring a discrete value of the candidate access quintuple, and selecting a target access quintuple from the candidate access quintuple according to the discrete value;
and selecting a target access address according to the target access quintuple.
4. The website access address selection method according to claim 3, wherein the step of obtaining a discrete value of the candidate access quintuple and selecting a target access quintuple from the candidate access quintuple according to the discrete value comprises:
acquiring a discrete value of the candidate access quintuple, and judging whether the discrete value is in a discrete threshold range;
if so, acquiring an access address of the candidate access quintuple, and acquiring an access hit rate of the access address;
and when the access hit rate is greater than a preset hit rate threshold value, taking the candidate access quintuple as a target access quintuple.
5. The website access address selection method according to any one of claims 1 to 4, wherein after the step of selecting the target access address according to the performance index and the address to be accessed, the method further comprises:
obtaining a local cache access address, and matching the target access address with the local cache access address;
and when the matching fails, sending the target access address to the access equipment.
6. The website access address selection method according to any one of claims 1 to 4, wherein before the step of selecting the candidate website from the read current website information table and obtaining the address to be accessed corresponding to the candidate website, the method further comprises:
receiving website access information returned when the access equipment accesses the website;
and updating the initial website information table according to the website access information to obtain the current website information table.
7. The website access address selection method according to claim 6, wherein the step of updating the initial website information table according to the website access information to obtain the current website information table comprises:
extracting a current access address and current access performance corresponding to the current access address from the website access information;
searching expected access performance corresponding to the current access address, and generating a performance reference score according to the current access performance and the expected access performance;
and updating the initial website information table according to the website access information and the performance reference value to obtain a current website information table.
8. A website access address selection device, characterized in that the website access address selection device comprises: a memory, a processor and a website access address selection program stored on the memory and operable on the processor, the website access address selection program, when executed by the processor, implementing the website access address selection method according to any one of claims 1 to 7.
9. A storage medium having a website access address selection program stored thereon, wherein the website access address selection program, when executed by a processor, implements the website access address selection method according to any one of claims 1 to 7.
10. A website access address selection device, wherein the website access address selection device comprises: the device comprises an address acquisition module, a performance detection module and an address selection module;
the address acquisition module is used for selecting a candidate website from the read current website information table and acquiring an address to be accessed corresponding to the candidate website;
the performance detection module is used for performing performance detection on the candidate website according to the address to be accessed to obtain a performance index of the candidate website;
and the address selection module is used for selecting a target access address according to the performance index and the address to be accessed.
CN202111174137.5A 2021-10-08 2021-10-08 Website access address selection method, equipment, storage medium and device Pending CN114039944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111174137.5A CN114039944A (en) 2021-10-08 2021-10-08 Website access address selection method, equipment, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111174137.5A CN114039944A (en) 2021-10-08 2021-10-08 Website access address selection method, equipment, storage medium and device

Publications (1)

Publication Number Publication Date
CN114039944A true CN114039944A (en) 2022-02-11

Family

ID=80134741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111174137.5A Pending CN114039944A (en) 2021-10-08 2021-10-08 Website access address selection method, equipment, storage medium and device

Country Status (1)

Country Link
CN (1) CN114039944A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069104A1 (en) * 2006-09-15 2008-03-20 Citrix Systems, Inc. Systems and methods for selecting efficient connection paths between computing devices
US7426576B1 (en) * 2002-09-20 2008-09-16 Network Appliance, Inc. Highly available DNS resolver and method for use of the same
US20130246359A1 (en) * 2012-03-19 2013-09-19 Fujitsu Limited Computer product, verification support method, and verification support apparatus
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
US20150156069A1 (en) * 2012-08-22 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Configuring Proxy Server
CN106357841A (en) * 2016-11-02 2017-01-25 腾讯科技(深圳)有限公司 Domain name resolution method, device and system
CN107896241A (en) * 2017-10-23 2018-04-10 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of network access speed
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN113037680A (en) * 2019-12-09 2021-06-25 中盈优创资讯科技有限公司 Application server access method and device based on domain name resolution result

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426576B1 (en) * 2002-09-20 2008-09-16 Network Appliance, Inc. Highly available DNS resolver and method for use of the same
US20080069104A1 (en) * 2006-09-15 2008-03-20 Citrix Systems, Inc. Systems and methods for selecting efficient connection paths between computing devices
US20130246359A1 (en) * 2012-03-19 2013-09-19 Fujitsu Limited Computer product, verification support method, and verification support apparatus
US20150156069A1 (en) * 2012-08-22 2015-06-04 Tencent Technology (Shenzhen) Company Limited Method and Apparatus for Configuring Proxy Server
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN106357841A (en) * 2016-11-02 2017-01-25 腾讯科技(深圳)有限公司 Domain name resolution method, device and system
CN107896241A (en) * 2017-10-23 2018-04-10 东软集团股份有限公司 Detection method, device, storage medium and the electronic equipment of network access speed
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN113037680A (en) * 2019-12-09 2021-06-25 中盈优创资讯科技有限公司 Application server access method and device based on domain name resolution result

Similar Documents

Publication Publication Date Title
CN111125695B (en) Account risk assessment method, device, equipment and storage medium
CN108280168B (en) Webpage processing method/system, computer readable storage medium and electronic device
CN111163072B (en) Method and device for determining characteristic value in machine learning model and electronic equipment
US20130117358A1 (en) Method of identifying remote users of websites
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN113378899A (en) Abnormal account identification method, device, equipment and storage medium
CN113806653B (en) Page preloading method, device, computer equipment and storage medium
CN111459658A (en) Resource data acquisition method and related equipment
CN110674832B (en) Method, device and terminal for identifying enterprise to which Internet user belongs
CN114039944A (en) Website access address selection method, equipment, storage medium and device
CN109951549B (en) Network page access method and device and computer readable storage medium
CN113765850A (en) Internet of things anomaly detection method and device, computing equipment and computer storage medium
CN114448849B (en) Method for detecting supporting mode of IPv6 network of website and electronic equipment
CN116108880A (en) Training method of random forest model, malicious website detection method and device
CN115080397A (en) System reliability testing method, device, equipment and storage medium
CN113127767B (en) Mobile phone number extraction method and device, electronic equipment and storage medium
CN110401639B (en) Method and device for judging abnormality of network access, server and storage medium thereof
CN113315670A (en) Network flow analysis method, device and storage medium
CN116302911A (en) Page test method, device, equipment and storage medium
CN112491737A (en) Flow data acquisition method and device
JP2007293520A (en) Information processor and information processing program
CN113139146B (en) Website quality assessment method and device and computing equipment
CN113342664B (en) Dial testing method, device, storage medium and computer equipment
CN114978674B (en) Crawler recognition enhancement method and device, storage medium and electronic equipment
JP5222691B2 (en) Search information provision system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination