Access request processing method, device, computer equipment and storage medium

By receiving the access request from the terminal and querying the saturation status of the access line, the access line is switched to solve the problem of excessive resource occupation of the access line, thereby improving the access efficiency of the website server.

CN108763396BActive Publication Date: 2024-09-17BEIJING HAOLEYOU TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810493596.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-05-22
Publication Date
2024-09-17
Estimated Expiration
2038-05-22

AI Technical Summary

Technical Problem

When a terminal accesses the website server, too many requests lead to excessive use of access line resources, reducing the access efficiency of the website server.

Method used

By receiving the terminal's access request, extract the access domain name and user ID, and query whether the current access line carries an access saturation label. If so, switch to an access line that does not carry a saturation label to ensure resource utilization of the access line and avoid resource overload. .

Benefits of technology

It effectively improves the access efficiency of the website server, avoids excessive occupation of access line resources, and ensures access speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108763396B
    Figure CN108763396B
Patent Text Reader

Abstract

The present application relates to an access request processing method, device, computer equipment and storage medium. The method includes: receiving an access request sent by a terminal, extracting an access domain name and a user identifier carried in the access request; using an access line query strategy to query the current access line corresponding to the user identifier according to the access domain name; querying whether the current access line carries an access saturation label; when the current access line carries an access saturation label, switching the current access line. This method can be used to switch to different access lines, so that the terminal can access the website server through different access lines, thereby avoiding excessive resource occupation and improving the access efficiency of the website server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network management, and in particular to an access request processing method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, more and more users can obtain relevant information through the Internet. When users visit a website, they generally first obtain the network address of the corresponding website server, and then they can send an access request to the corresponding website server according to the network address to visit the corresponding website.

[0003] Traditionally, when a terminal requests to access a website server, all terminals access the website server through the access line corresponding to the network address of the website server. If there are too many terminals requesting to access the website server, the resources of the access line will be too large, thereby reducing the access efficiency of the website server. Summary of the invention

[0004] Based on this, it is necessary to provide an access request processing method, apparatus, computer device and storage medium that can flexibly improve access efficiency in response to the above technical problems.

[0005] A method for processing an access request, the method comprising:

[0006] Receiving an access request sent by a terminal, and extracting an access domain name and a user identifier carried in the access request;

[0007] Query the current access line corresponding to the user identifier using an access line query strategy according to the access domain name;

[0008] Query whether the current access line carries an access saturation label;

[0009] When the current access line carries an access saturation tag, the current access line is switched.

[0010] In one embodiment, switching the current access line includes:

[0011] Detecting whether there is an access line without an access saturation label in the current server area corresponding to the current access line;

[0012] If yes, then select a first access line with the lowest access traffic from the access lines that do not carry the access saturation label, and switch the current access line to the first access line;

[0013] When all access lines in the server area corresponding to the current access line carry access saturation tags, basic information of the operator corresponding to the user identifier is obtained, and a second access line matching the basic information of the operator is obtained from another server area;

[0014] The current access line is switched to the second access line.

[0015] In one embodiment, after querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, the method further includes:

[0016] When the current access line does not carry an access saturation label, generating a first access network address according to the queried current access line;

[0017] The first access network address is sent to a corresponding terminal, where the first access network address is used to instruct the terminal to access the webpage corresponding to the access domain name through the current access line.

[0018] In one embodiment, querying the current access line corresponding to the user identifier using an access line query strategy according to the access domain name includes:

[0019] Acquire the region to which the terminal belongs according to the access domain name and the user identifier;

[0020] Querying the current server area corresponding to the region to which the terminal belongs;

[0021] The basic information of the operator corresponding to the user identifier is queried, and the current access line in the current server area is queried according to the basic information of the operator.

[0022] In one embodiment, after querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, the method further includes:

[0023] Query whether the current access line carries a suspension tag;

[0024] When the current access line carries a suspension tag, receiving an access line switching instruction;

[0025] According to the access line switching instruction, a third access line not carrying a suspension label is selected from the current server area as the current access line;

[0026] After querying whether the current access line carries a saturation label, the method further includes:

[0027] When the current access line does not carry the saturation label, the second access network address corresponding to the third access line serving as the current access line is extracted, and the second access network address is sent to the terminal. The second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

[0028] In one embodiment, the method further comprises:

[0029] Counting the access traffic of the current access line;

[0030] When the access traffic reaches a preset bandwidth value, an access saturation tag is added to the current access line corresponding to the access traffic.

[0031] In one of the embodiments, after adding the access saturation label to the current access line corresponding to the access traffic, the method includes:

[0032] Detecting a time period for adding the access saturation label corresponding to the current access line;

[0033] When the added time period is greater than or equal to the preset time period, querying the user identifier of the maximum access bandwidth value within the added time period in the current access line to which the access saturation tag is added;

[0034] Receiving a modification instruction for modifying the limit value of the maximum access bandwidth corresponding to the user identifier;

[0035] According to the change instruction, the limit value of the maximum access bandwidth is changed.

[0036] An access request processing device, the device comprising:

[0037] An extraction module, used to receive an access request sent by a terminal, and extract an access domain name and a user identifier carried in the access request;

[0038] A first query module, configured to query a current access line corresponding to the user identifier using an access line query strategy according to the access domain name;

[0039] A second query module, used to query whether the current access line carries an access saturation tag;

[0040] The switching module is used to switch the current access line when the current access line carries an access saturation label.

[0041] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0042] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0043] The access request processing method, device, computer equipment and storage medium described above, when receiving an access request sent by a terminal, extracts the access domain name and user identifier carried in the access request, and then uses an access line query strategy to query the current access line corresponding to the user identifier, and queries whether the current access line carries an access saturation label. If it carries an access saturation label, the current access line is switched, that is, when the access line corresponding to the received access request is an access line with an access saturation label, the access line is switched, and the user can access the web page corresponding to the access domain name through other access lines. Different lines can be switched, so that the website server can be accessed through different access lines, thereby avoiding excessive resource occupation of the access line and improving the access efficiency of the website server. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 An application scenario diagram of an access request processing method in an embodiment;

[0045] Figure 2 A schematic diagram of a flow chart of an access request processing method in one embodiment;

[0046] Figure 3 A schematic diagram of a flow chart of steps for switching access lines in one embodiment;

[0047] Figure 4 is a structural block diagram of an access request processing device in one embodiment;

[0048] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

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

[0050] The access request processing method provided by this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 is connected to the access request processing server 104 through the network. The access request processing server 104 receives the access request sent by the terminal 102, and then extracts the access domain name and user identification carried in the access request, and then the access request processing server 104 uses the access line query strategy to query the current access line corresponding to the user identification, and then the access request processing server 104 queries whether the current access line carries an access saturation tag. When it carries an access saturation tag, the current access line is switched, so that the terminal 102 can directly access the corresponding website through the current access line. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the access request processing server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0051] In one embodiment, Figure 2 As shown, a method for processing an access request is provided, which is applied to Figure 1 The access request processing server in the example is used as an example to illustrate, including the following steps:

[0052] S202: Receive an access request sent by a terminal, and extract an access domain name and a user identifier carried in the access request.

[0053] Specifically, an access request refers to request data sent by a terminal to access a target web page. The access request may carry the domain name of the target web page and the user ID corresponding to the terminal. The access domain name refers to the web page domain name corresponding to the target web page requested by the terminal to access. The access domain name may be the relevant ID of the target web page requested by the terminal to access. The user ID refers to the specific identity information of the terminal sending the access request. The user ID may be the verification information corresponding to the terminal sending the access request, or may be the network address of the network area where the terminal sending the access request is located.

[0054] Specifically, the access request processing server receives the request data sent by the terminal requesting access to the target web page, and the access request data carries the access domain name of the corresponding target web page to be accessed, as well as the corresponding identity information. The access request processing server can extract the access domain name and identity identification of the target to be accessed carried in the request data through the received request data requesting access to the target web page. For example, the terminal sends the request data requesting access to the Lu Technology web page, and the access request processing server extracts the domain name of the Lu Technology web page carried in the request data and the user identity information corresponding to the terminal sending the access request, such as the current user name corresponding to the corresponding terminal, and the user network address of the network area where the terminal is located, etc.

[0055] S204: Query the current access line corresponding to the user identifier using the access line query strategy according to the access domain name.

[0056] Specifically, the access line query strategy refers to a query rule for querying the access line corresponding to the user identifier based on the access domain name. The terminal can query the corresponding access line through the query rule and access the web page corresponding to the access domain name through the access line. . The current access line refers to the designated line through which the terminal can access the web page corresponding to the access domain name. The current access line corresponds to the corresponding current access network address. The terminal can access the web page corresponding to the access domain name through the current access network address. Specifically, when the access request processing server receives the access request sent by the terminal, it extracts the web page corresponding to the access domain name requested by the terminal, that is, the web page corresponding to the access domain name, and then uses the access line query strategy to query according to the extracted user identifier. It can be that the access line query strategy is used to match the user identifier with the user identifier corresponding to different preset access lines. When the match is successful, the access line that successfully matches is selected as the current access line.

[0057] S206: Query whether the current access line carries an access saturation label.

[0058] Specifically, the access saturation tag refers to the access saturation identifier carried on the access line. When the access line carries the access saturation tag, the access line has an access flow exceeding the preset value, that is, when the webpage corresponding to the access domain name is accessed through the access line carrying the access saturation tag, there will be a slower access speed. Further, when the access request processing server receives the access request sent by the terminal and uses the access query strategy to query the corresponding current access line according to the user identifier carried in the access request, when the current access line is queried, it queries whether the current access line carries the access tag, that is, it queries whether the current terminal can access through the current line.

[0059] S208: When the current access line carries an access saturation label, the current access line is switched.

[0060] Specifically, when the access request processing server inquires that the current access line carries an access saturation label, the current access line is switched to a line that does not carry a saturation label. The line that does not carry a saturation label can be a line that does not carry a saturation label in the same server area, or a line that does not carry a saturation label in a different server area. It can be that when the access request processing server inquires that the current access line carries an access saturation label, the access line that does not carry an access saturation label is inquired, thereby directly switching the access line to the access line that does not carry a saturation label, so that the terminal can access the web page corresponding to the access domain name through the access line that does not carry a saturation label. Alternatively, when the access request processing server finds that the current access line carries an access saturation tag, it queries for access lines that do not carry access saturation tags. When an access line that does not carry a saturation tag is found, the corresponding access line options are displayed, and the user selects a specific access line to switch to. A corresponding switching instruction is generated based on the user's selection, and the access request processing server switches to the access line that does not carry a saturation tag based on the received switching instruction, so that the terminal can access the web page corresponding to the access domain name through the access line that does not carry a saturation tag.

[0061] In this embodiment, the access request processing server receives the access request sent by the terminal, and then extracts the access domain name and user identifier carried in the access request, and uses the access line strategy to query the current access line corresponding to the user identifier, and then queries whether the current access line carries an access saturation label. If it carries an access saturation label, the current access line is switched, that is, the terminal does not need to access the web page through an access line, and can switch to a line that does not carry an access saturation label for access, so that it can switch between different lines, so that it can switch flexibly, and avoid excessive resource occupation of the access line, thereby reducing the access speed, that is, avoiding a reduction in the access efficiency of the website server.

[0062] In one embodiment, see Figure 3 , a flow chart of an access line switching step is provided, the access line switching, that is, switching the current access line, includes: detecting whether there is an access line without an access saturation label in the current server area corresponding to the current access line; when there is, selecting the first access line with the lowest access traffic from the access lines without adding the access saturation label, and switching the current access line to the first access line; when the access lines in the server area corresponding to the current access line all carry the access saturation label, obtaining the basic information of the operator corresponding to the user identifier, and obtaining the second access line matching the basic information of the operator from another server area; switching the current access line to the second access line.

[0063] Specifically, a server area refers to an area that contains different access lines set up according to different regions. The terminal can query the available server area and the available access lines contained in the server area through the access request processing server. For example, the server area can be set with a northern region server area and a southern region server area. Access traffic refers to the bandwidth value occupied by the current access line when accessing the network, that is, the amount of data transmitted in the access line. The first access line refers to an access line that is located in the same server area as the current access line and does not carry an access saturation label. The second access line refers to an access line that is located in a different server area from the current access line and does not carry an access saturation label.

[0064] Specifically, when the access request processing server receives an access request, it queries the access line that can access the web page corresponding to the access domain name. When the access line carries an access saturation label, it is necessary to switch the access line, that is, perform a first-level switch. The access request processing server detects whether other access lines in the current server area corresponding to the current access line carrying the access saturation label that are queried carry access saturation labels. When the access request processing server queries that there is an access line in the current server area corresponding to the current access line carrying the access saturation label that does not carry the access saturation label, the access request processing server switches the access line to the access line, which is also the first access line. When the access request processing server queries that there are more than one access lines in the current server area corresponding to the current access line carrying the access saturation label that do not carry the access saturation label, the access traffic in the access lines that do not carry the access saturation label is queried, and then the access line with the lowest access traffic is selected as the first access line, so that the access request processor Switch the access line to the access line with the lowest access traffic; when the current access lines carrying saturation tags all carry access saturation tags, perform a second-level query, and the access request processing server obtains the basic information of the operator in the user identifier carried in the access request, and then queries the basic information of the operator corresponding to each access line in another server, and selects the access line that relatively matches the basic information of the operator in the user identifier, so that the access request processing server switches the current access line to the access line that matches the basic information of the operator carried in the access request, that is, switches to the second access line; optionally, when the access line that matches the basic information of the operator carried in the access line also carries an access saturation tag, query whether there is an access line that does not carry an access saturation tag in the area of ​​another server. When there is an access line that does not carry an access saturation tag, the access request processing server switches to the access line. If more than one access line does not carry an access saturation tag, the access request processing server selects the access line with the lowest access traffic for switching.

[0065] For example, when the access request processing server receives an access request, it queries that the access line that can access the web page corresponding to the access domain name is the mobile operator access line in the A server area. When the access line carries an access saturation tag, it is necessary to switch the access line, that is, to perform a first-level switch. The access request processing server detects whether other access lines in the A server area corresponding to the mobile operator access line carrying the access saturation tag carry the access saturation tag. When the access request processing server queries that there is an access line in the A server area corresponding to the mobile operator access line carrying the access saturation tag, such as China Unicom When the operator access line does not carry an access saturation tag, the access request processing server switches the access line to the Unicom operator access line, which is also the first access line; when the access request processing server inquires that more than one access line in the A server area corresponding to the mobile operator access line carrying the access saturation tag does not carry the access saturation tag, the access traffic in the access lines that do not carry the access saturation tag is queried, and then the access line with the lowest access traffic, such as the telecom operator access line, is selected as the first access line, so that the access request processor switches the access line to the access line with the lowest access traffic. When all current access lines carrying saturation labels carry access saturation labels, a second-level query is performed, and the access request processing server obtains the basic information of the operator in the user identifier carried in the access request. For example, if the basic information of the operator carried is a mobile operator, the basic information of the operator corresponding to each access line in another server area, that is, the B server area, is obtained respectively, and the access line matching the mobile operator in the basic information of the operator in the user identifier is selected, so that the access request processing server switches the current access line to the access line matching the basic information of the operator carried in the access request, that is, switches to B. The mobile operator access line in the server area, optionally, when the access line matching the basic information of the operator carried in the access line also carries an access saturation tag, it is queried whether there is an access line in the B server area that does not carry the access saturation tag. When there is an access line that does not carry the access saturation tag, such as the China Unicom operator access line in the B server area does not carry the access saturation tag, the access request processing server switches to the China Unicom operator access line in the B server area. If there is more than one access line that does not carry the access saturation tag, the access request processing server selects the access line with the lowest access traffic for switching.

[0066] In this embodiment, the access request processing server can query the access line according to the access request, and then switch the access line when the current access line is added with an access saturation label. When switching the access line, first-level switching and second-level switching can be performed, thereby achieving flexible switching, and then accurately switching to an available access line, thereby improving the access efficiency of the website server.

[0067] In one of the embodiments, after querying the current access line corresponding to the user identifier using the current access line query strategy according to the access domain name, it also includes: when the current access line does not carry an access saturation label, generating a first access network address according to the queried current access line; sending the first access network address to the corresponding terminal, the first access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the current access line.

[0068] Specifically, the first access network address refers to the network address corresponding to the current access line, which is also the network address of the website server of the web page corresponding to the access domain name. The first access network address can uniquely identify the website server in the network, and the website server can use the network address as a communication identifier when communicating with other terminals or servers. Specifically, when the access request processing server receives the access request, it uses the access line query strategy to query the current access line corresponding to the user identifier according to the access request, and then when it is found that the current access line does not carry an access saturation label, the first access network address is generated for the queried current access line, and then the generated first access network address is sent to the corresponding terminal, so that the terminal can communicate with the website server corresponding to the access domain name according to the first access network address, and then access the web page corresponding to the access domain name carried in the access request.

[0069] In this embodiment, when no access saturation label is found on the current access line, the first access network address corresponding to the current access line is directly queried, and the first access network address is sent to the terminal. The terminal can access the web page corresponding to the access domain name on the current access line through the first access network address. When the current access line does not carry an access saturation label, the first access network address can be accurately found, thereby ensuring the accuracy of the access and improving the access efficiency.

[0070] In one embodiment, the current access line query strategy is used to query the current access line corresponding to the user identifier according to the access domain name, including: obtaining the region to which the terminal belongs according to the access domain name and the user identifier. Querying the current server area corresponding to the region to which the terminal belongs. Querying the basic information of the operator corresponding to the user identifier, and querying the current access line in the current server area according to the basic information of the operator.

[0071] Specifically, the basic information of the operator refers to the corresponding information for distinguishing the operator that provides the user task. For example, the basic information of the operator can indicate the operator to which the terminal corresponding to the user identifier belongs. For example, the basic information of the operator can be a mobile operator, a Unicom operator, a telecom operator, etc. When the access request processing server receives the access request sent by the terminal, it extracts the access domain name and user identifier carried in the access request, and then the access request processing server queries the web page corresponding to the access domain name based on the access domain name, and then matches the user identifier with the pre-stored user identifier based on the user identifier. The pre-stored user identifiers correspond to different regions. When the user identifier extracted from the access request successfully matches the pre-stored user identifier, the region corresponding to the pre-stored user identifier is extracted as the region to which the terminal belongs, and then the current server area corresponding to the region to which the terminal belongs is queried. It can be that when the queried region to which the terminal belongs is the southern region, the server area corresponding to the southern region is selected; when the queried region to which the terminal belongs is the northern region, the server area corresponding to the northern region is selected. Then, when the current server area is queried based on the region to which the terminal belongs, the basic information of the operator is queried based on the user identifier. Based on the queried basic information of the operator, the access line corresponding to the basic information of the operator is selected in the queried server area, so that the terminal can access the web page corresponding to the access domain name through the access line.

[0072] For example, when the access request processing server obtains the user identification, such as the user network address, it can match the pre-stored user network address according to the user network address. When the match is successful, the area corresponding to the successfully matched user network address is extracted as the area corresponding to the user network address of the terminal. For example, the area is Shanghai, and then it is queried that Shanghai is in the south, then it is queried that the current server area corresponding to the south is server area A, and the access request server is entered to query the basic information of the operator corresponding to the user network address corresponding to the terminal. It is a mobile operator, then the access request processing server selects the corresponding mobile operator access line in area A as the current access line.

[0073] In this embodiment, the access request processing server queries the area corresponding to the terminal according to the user identifier, and then queries the server area according to the area, and then queries the access line in the server area as the current access line according to the basic information of the operator corresponding to the user identifier. After two levels of query, there is no need to query as a whole, thereby saving time for querying the access line, thereby ensuring that the access network address corresponding to the access line can be quickly fed back to the terminal, thereby enhancing applicability.

[0074] In one of the embodiments, after querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, it can also include: querying whether the current access line carries a suspension tag. When the current access line carries the suspension tag, an access line switching instruction is received. According to the access line switching instruction, a third access line that does not carry a suspension tag is selected from the current server area as the current access line. After querying whether the current access line carries a saturation tag, it also includes: when the current access line does not carry the saturation tag, extracting the second access network address corresponding to the third access line as the current access line, and sending the second access network address to the terminal, the second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

[0075] Specifically, the suspension label refers to the suspension mark carried on the access line corresponding to the access line. When the access line carries the suspension mark, the website server that can access the web page corresponding to the access domain name through the access line is in the maintenance or testing stage, that is, the terminal cannot communicate with the website server through the access line, so as to access the web page corresponding to the access domain name. The third access line refers to an access line in the same server area as the current access line and does not carry a suspension label. The second access network address refers to the network address corresponding to the third access line, and the second access network address is also the network address of the website server of the web page corresponding to the access domain name. The second access network address can uniquely identify the website server in the network. When the website server communicates with other terminals or servers, the network address can be used as a communication identifier. Further, the first access network address and the second access network address are respectively used to indicate that the terminal accesses the web page corresponding to the access domain name through different access routes. The first access network address refers to the access network address corresponding to the current access line, that is, the directly selected and available access line, and the second access network address refers to the second access address corresponding to the access line in the same server area as the current access line and does not carry a suspension label. When the access request processing server queries different access lines, the access lines correspond to corresponding access addresses. Since the access lines involve server areas and corresponding operator information, the access addresses will change. Then, according to the different access network addresses corresponding to the access lines, the same website server is found, so that the terminal can send a corresponding access request to the website server and access the same website.

[0076] Specifically, when the access request processing server inquires about the current access line, it inquires whether the current access line carries a suspension tag. When it is found that the current access line does not carry the suspension tag, the current access line can be accessed normally, and then the access request processing server inquires whether the current access line carries an access saturation tag. If it does not carry the access saturation tag, the corresponding web page is accessed through the current access line. If it carries the access saturation tag, the above steps are used to switch the current access line. When the access request processing server inquires that the current access line carries a suspension tag, the website server corresponding to the access line cannot be accessed normally temporarily, and it is necessary to switch the access line, so as to obtain the corresponding access network address after switching the access line to access the web page corresponding to the access domain name, and then the corresponding prompt information is displayed on the display interface of the access request processing server. , the user chooses whether to switch the access line according to the corresponding prompt information. When the user chooses to switch the access line, the access request processing server generates a corresponding switching line instruction according to the user's choice. The access request processing server queries the access line in the current server area that does not carry the suspension label as the third access line according to the received switching line instruction. The third access line is used as the current access line, and then the access saturation label is queried. If the current access line does not carry the access saturation label, the web page can be accessed through the third access line as the current access line, and then the second access network address corresponding to the third access line as the current access line is extracted, and the extracted second access network address is sent to the terminal, so that the terminal can communicate with the website server according to the received second access network address, so as to access the web page corresponding to the access domain name. It should be noted that when the access request processing server inquires that all the access lines in the current server area carry the suspension label, it queries whether the access line in another server carries the suspension label. When it does not carry the suspension label, the current access line is switched to the access line in another server that does not carry the suspension label.

[0077] In this embodiment, when the access request processing server selects the current access line, it will perform further checks before extracting the access network address corresponding to the current access line and sending it to the corresponding terminal to ensure that when the current access line cannot communicate normally with the website server and cannot access the web page, the web page can still be accessed through other access lines, thereby ensuring access efficiency and enhancing usability.

[0078] In one embodiment, the access request processing method may further include: counting the access traffic of the current access line, and when the access traffic reaches a preset bandwidth value, adding an access saturation tag to the current access line corresponding to the access traffic.

[0079] Specifically, the access request processing server monitors the access traffic on each access line in each server area, thereby realizing flexible switching of access lines. The access request processor is preset with an access traffic bandwidth value, and the access request processing server monitors the access traffic on each line in each server area in real time. When it is detected that the access traffic of the access line reaches the preset bandwidth value, accessing the web page corresponding to the access domain name through this line will cause the access speed to be too slow, so that diversion processing is required, and an access saturation label is added to the access line whose access traffic exceeds the access traffic bandwidth value. Then, when the access request processing server receives an access request and the queried access line is the access line with the access saturation label added, the line is switched.

[0080] In this embodiment, the access request processor monitors different access lines in different server areas in real time, and adds an access saturation tag when the access traffic in the access line exceeds the preset value. Real-time monitoring can ensure timely detection of excessive access traffic, thereby ensuring timely switching of access lines and improving access efficiency.

[0081] In one embodiment, after adding an access saturation tag to the current access line corresponding to the access traffic, the method includes: detecting the time period for adding the access saturation tag corresponding to the current access line. When the adding time period is greater than or equal to the preset time period, querying the user ID of the maximum access bandwidth value within the adding time period in the current access line to which the access saturation tag is added. Receive a change instruction for changing the limit value of the maximum access bandwidth corresponding to the user ID. According to the change instruction, change the limit value of the maximum access bandwidth.

[0082] Specifically, when an access line carrying an access saturation label is queried in the server area, it is queried whether the access line with the saturation label continues to reach the saturation state. When the saturation state is continuously reached, the speed of the access user who occupies the largest bandwidth is limited, thereby gradually reducing the access traffic pressure of the access line. Specifically, a time period is preset on the access request processing server. When the access request processing server detects that an access line carries an access saturation tag, the time period of the access saturation tag added to the current access line is queried. The time period may be queried for the start time of adding the access saturation tag, thereby querying the current system time, and calculating the time period for adding the access saturation tag according to the current system time and the start time. When the time period for adding the access saturation tag is greater than or equal to the preset time period, the added time period is greater than the preset time period, and the continuous access traffic of the access line with the access saturation tag added is too large. Then, the access request processing server queries the user ID with the largest bandwidth occupied when accessing the web page corresponding to the access domain name through the access line, that is, the terminal with the largest bandwidth is queried, and then the corresponding prompt information is displayed on the display interface of the access request processing server. The user reduces the limit value of the maximum access bandwidth corresponding to the user ID through the prompt information displayed on the interface. According to the reduction of the limit value of the maximum access bandwidth, a corresponding change instruction is generated. The access request processing server reduces the limit value of the maximum access bandwidth according to the change instruction, thereby limiting the speed of the terminal occupying the largest bandwidth in the current line, thereby gradually alleviating the pressure on the access line with the access saturation tag added. For example, the access request processing server is set with a preset time period of 10 minutes. When the time period for adding the access saturation tag is found to be 12 minutes, the user identifier of the maximum access bandwidth value within the added time period is queried, such as the user network address, and the maximum access bandwidth limit value of the user network address is reduced. It should be noted that the preset time period can be 10 minutes, 11 minutes, 12 minutes, 15 minutes, 17 minutes, etc.

[0083] In this embodiment, when the access request processing server detects that the time period for adding the access saturation label carried on the access line exceeds the preset time period, the terminal occupying the largest bandwidth in the access line to which the access saturation label is added is speed limited, thereby gradually reducing the access traffic pressure of the access line, and access can be achieved through the access line as soon as possible, thereby realizing diversion processing and enhancing applicability.

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

[0085] In one embodiment, Figure 4 As shown, an access request processing device 400 is provided, comprising: an extraction module 410, a first query module 420, a second query module 430 and a switching module 440, wherein:

[0086] The extraction module 410 is used to receive an access request sent by a terminal, and extract an access domain name and a user identifier carried in the access request.

[0087] The first query module 420 is used to query the current access line corresponding to the user identifier according to the access domain name using the access line query strategy.

[0088] The second query module 430 is used to query whether the current access line carries an access saturation tag.

[0089] The switching module 440 is configured to switch the current access line when the current access line carries an access saturation label.

[0090] In one embodiment, the switching module 440 may include:

[0091] The detection unit is used to detect whether there is an access line without an access saturation label in the current server area corresponding to the current access line.

[0092] The selection unit is used to select a first access line with the lowest access traffic from the access lines that do not carry the access saturation label, and switch the current access line to the first access line.

[0093] The acquisition unit is used to acquire the basic information of the operator corresponding to the user identifier when all the access lines in the server area corresponding to the current access line carry the access saturation tag, and acquire a second access line matching the basic information of the operator from another server area.

[0094] The switching unit is used to switch the current access line to the second access line.

[0095] In one of the embodiments, the access request processing device may further include:

[0096] The generating module is used to generate a first access network address according to the queried current access line when the current access line does not carry the access saturation label.

[0097] The sending module is used to send the first access network address to the corresponding terminal, and the first access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the current access line.

[0098] In one embodiment, the first query module 420 may include:

[0099] The region acquisition unit is used to acquire the region to which the terminal belongs according to the access domain name and the user identifier.

[0100] The current server area query unit is used to query the current server area corresponding to the region to which the terminal belongs.

[0101] The current access line query unit is used to query the basic information of the operator corresponding to the user identifier, and query the current access line in the current server area according to the basic information of the operator.

[0102] In one embodiment, the first query module may further include:

[0103] The query subunit is used to query whether the current access line carries a suspension label.

[0104] The instruction receiving subunit is used to receive an instruction to switch the access line when the current access line carries a suspension label.

[0105] The selection subunit is used to select a third access line that does not carry a suspension label from the current server area as the current access line according to the access line switching instruction.

[0106] An extraction subunit is used to extract the second access network address corresponding to the third access line as the current access line when the current access line does not carry the saturation label, and send the second access network address to the terminal, and the second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

[0107] In one embodiment, the access request processing server 400 may further include:

[0108] The statistics module is used to count the access traffic of the current access line.

[0109] The adding module is used to add an access saturation label to the current access line corresponding to the access traffic when the access traffic reaches a preset bandwidth value.

[0110] In one embodiment, the access request processing server 400 may further include:

[0111] The detection module is used to detect the time period for adding the access saturation label corresponding to the current access line.

[0112] The user identification query module is used to query the user identification of the maximum access bandwidth value within the added time period in the current access line to which the access saturation label is added when the added time period is greater than or equal to the preset time period.

[0113] The change instruction receiving module is used to receive a change instruction for changing the limit value of the maximum access bandwidth corresponding to the user identification.

[0114] The change module is used to change the limit value of the maximum access bandwidth according to the change instruction.

[0115] For the specific definition of the access request processing device, please refer to the definition of the access request processing method above, which will not be repeated here. Each module in the above access request processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0116] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store access request processing data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an access request processing method is implemented.

[0117] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: receiving an access request sent by a terminal, and extracting an access domain name and a user identifier carried in the access request. Using an access line query strategy according to the access domain name to query the current access line corresponding to the user identifier. Query whether the current access line carries an access saturation label. When the current access line carries an access saturation label, the current access line is switched.

[0119] In one embodiment, the processor switches the current access line when executing a computer program, and may also include: detecting whether there is an access line that does not carry an access saturation tag in the current server area corresponding to the current access line. If so, the first access line with the lowest access traffic is selected from the access lines that do not carry the access saturation tag, and the current access line is switched to the first access line. When all the access lines in the server area corresponding to the current access line carry the access saturation tag, the basic information of the operator corresponding to the user identifier is obtained, and the second access line that matches the basic information of the operator is obtained from another server area. The current access line is switched to the second access line.

[0120] In one embodiment, after the processor executes the computer program to query the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, it may also include: when the current access line does not carry the access saturation tag, generating a first access network address according to the queried current access line. Sending the first access network address to the corresponding terminal, the first access network address is used to instruct the terminal to access the webpage corresponding to the access domain name through the current access line.

[0121] In one embodiment, when the processor executes the computer program, querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name may include: obtaining the region to which the terminal belongs according to the access domain name and the user identifier. Querying the current server region corresponding to the region to which the terminal belongs. Querying the basic information of the operator corresponding to the user identifier, and querying the current access line in the current server region according to the basic information of the operator.

[0122] In one embodiment, after the processor executes the computer program to query the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, it can also include: querying whether the current access line carries a suspended use tag. When the current access line carries the suspended use tag, an access line switching instruction is received. According to the access line switching instruction, a third access line that does not carry a suspended use tag is selected from the current server area as the current access line. After querying whether the current access line carries a saturation tag, it also includes: when the current access line does not carry the saturation tag, extracting the second access network address corresponding to the third access line as the current access line, and sending the second access network address to the terminal, the second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

[0123] In one embodiment, when the processor executes the computer program, the following steps are further implemented: counting the access traffic of the current access line, and when the access traffic reaches a preset bandwidth value, adding an access saturation tag to the current access line corresponding to the access traffic.

[0124] In one embodiment, after the processor executes the computer program to add an access saturation label to the current access line corresponding to the access traffic, the method includes: detecting the time period for adding the access saturation label corresponding to the current access line. When the adding time period is greater than or equal to the preset time period, querying the user ID of the maximum access bandwidth value within the adding time period in the current access line to which the access saturation label is added. Receive a change instruction for changing the limit value of the maximum access bandwidth corresponding to the user ID. According to the change instruction, change the limit value of the maximum access bandwidth.

[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving an access request sent by a terminal, extracting an access domain name and a user identifier carried in the access request. Using an access line query strategy to query the current access line corresponding to the user identifier according to the access domain name. Querying whether the current access line carries an access saturation label. When the current access line carries an access saturation label, switching the current access line.

[0126] In one embodiment, when the computer program is executed by the processor, the current access line is switched, and it may also include: detecting whether there is an access line that does not carry an access saturation tag in the current server area corresponding to the current access line. If it exists, the first access line with the lowest access traffic is selected from the access lines that do not carry the access saturation tag, and the current access line is switched to the first access line. When the access lines in the server area corresponding to the current access line all carry the access saturation tag, the basic information of the operator corresponding to the user identifier is obtained, and the second access line matching the basic information of the operator is obtained from another server area. The current access line is switched to the second access line.

[0127] In one embodiment, after the computer program is executed by the processor to query the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, it can also include: when the current access line does not carry the access saturation label, a first access network address is generated according to the queried current access line. The first access network address is sent to the corresponding terminal, and the first access network address is used to instruct the terminal to access the webpage corresponding to the access domain name through the current access line.

[0128] In one embodiment, when the computer program is executed by the processor, the current access line corresponding to the user identifier is queried using the access line query strategy according to the access domain name, which may include: obtaining the region to which the terminal belongs according to the access domain name and the user identifier. Querying the current server region corresponding to the region to which the terminal belongs. Querying the basic information of the operator corresponding to the user identifier, and querying the current access line in the current server region according to the basic information of the operator.

[0129] In one embodiment, when the computer program is executed by the processor, it is implemented to query the basic information of the operator corresponding to the user identifier. After querying the current access line in the current server area according to the basic information of the operator, it can also include: querying whether the current access line carries a suspension label. When the current access line carries the suspension label, an access line switching instruction is received. According to the access line switching instruction, a third access line that does not carry the suspension label is selected from the current server area as the current access line. After querying whether the current access line carries a saturation label, it also includes: when the current access line does not carry the saturation label, extracting the second access network address corresponding to the third access line as the current access line, and sending the second access network address to the terminal, the second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

[0130] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: counting the access traffic of the current access line, and when the access traffic reaches a preset bandwidth value, adding an access saturation tag to the current access line corresponding to the access traffic.

[0131] In one embodiment, after the computer program is executed by the processor to add an access saturation label to the current access line corresponding to the access traffic, the computer program includes: detecting the time period for adding the access saturation label corresponding to the current access line. When the adding time period is greater than or equal to the preset time period, the user ID of the maximum access bandwidth value within the adding time period is queried in the current access line to which the access saturation label is added. A change instruction for changing the limit value of the maximum access bandwidth corresponding to the user ID is received. According to the change instruction, the limit value of the maximum access bandwidth is changed.

[0132] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

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

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

Claims

1. A method for processing an access request, the method comprising: Receiving an access request sent by a terminal, and extracting an access domain name and a user identifier carried in the access request; The current access line corresponding to the user identifier is queried according to the access domain name using an access line query strategy, specifically including: obtaining the region to which the terminal belongs according to the access domain name and the user identifier; querying the current server area corresponding to the region to which the terminal belongs; querying the basic information of the operator corresponding to the user identifier, and querying the current access line in the current server area according to the basic information of the operator; Query whether the current access line carries an access saturation label; When the current access line carries an access saturation label, switching the current access line; Wherein, the switching of the current access line includes: detecting whether there is an access line without an access saturation label in the current server area corresponding to the current access line; if so, selecting the first access line with the lowest access traffic from the access lines without the access saturation label, and switching the current access line to the first access line; when all the access lines in the server area corresponding to the current access line carry the access saturation label, obtaining the basic information of the operator corresponding to the user identifier, and obtaining the second access line matching the basic information of the operator from another server area; switching the current access line to the second access line; After querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, the method also includes: when the current access line does not carry an access saturation label, generating a first access network address according to the queried current access line; sending the first access network address to the corresponding terminal, the first access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the current access line.

2. The method according to claim 1, characterized in that After querying the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, the method further includes: Query whether the current access line carries a suspension tag; When the current access line carries a suspension tag, receiving an access line switching instruction; According to the access line switching instruction, a third access line not carrying a suspension label is selected from the current server area as the current access line; After querying whether the current access line carries a saturation label, the method further includes: When the current access line does not carry the saturation label, the second access network address corresponding to the third access line which is the current access line is extracted, and the second access network address is sent to the terminal. The second access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the third access line.

3. The method according to any one of claims 1 or 2, characterized in that: The method further comprises: Counting the access traffic of the current access line; When the access traffic reaches a preset bandwidth value, an access saturation tag is added to the current access line corresponding to the access traffic.

4. The method according to claim 3, characterized in that After adding the access saturation label to the current access line corresponding to the access traffic, the method includes: Detecting a time period for adding the access saturation label corresponding to the current access line; When the added time period is greater than or equal to the preset time period, querying the user identifier of the maximum access bandwidth value within the added time period in the current access line to which the access saturation tag is added; Receiving a modification instruction for modifying the limit value of the maximum access bandwidth corresponding to the user identifier; According to the change instruction, the limit value of the maximum access bandwidth is changed.

5. An access request processing device, characterized in that: The device comprises: An extraction module, used to receive an access request sent by a terminal, and extract an access domain name and a user identifier carried in the access request; The first query module is used to query the current access line corresponding to the user identifier using the access line query strategy according to the access domain name, and the first query module also includes: a region acquisition unit, used to obtain the region to which the terminal belongs according to the access domain name and the user identifier; a current server region query unit, used to query the current server region corresponding to the region to which the terminal belongs; a current access line query unit, used to query the basic information of the operator corresponding to the user identifier, and query the current access line in the current server region according to the basic information of the operator; A second query module, used to query whether the current access line carries an access saturation tag; A switching module, used for switching the current access line when the current access line carries an access saturation tag, the switching module also includes: a detection unit, used for detecting whether there is an access line that does not carry an access saturation tag in the current server area corresponding to the current access line; a selection unit, used for selecting a first access line with the lowest access traffic from the access lines that do not carry the access saturation tag when such access line exists, and switching the current access line to the first access line; an acquisition unit, used for acquiring basic operator information corresponding to the user identifier when all access lines in the server area corresponding to the current access line carry access saturation tags, and acquiring a second access line that matches the basic operator information from another server area; A generating module, configured to generate a first access network address according to the queried current access line when the current access line does not carry an access saturation label; The sending module is used to send the first access network address to the corresponding terminal, and the first access network address is used to instruct the terminal to access the web page corresponding to the access domain name through the current access line.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.