Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of an acceleration method for a router, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of an acceleration method of a router according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
step S102, responding to the target request sent by the client, and acquiring the information of the target object.
In the technical solution provided by step S102 of the present invention, the target request is used for requesting data transmission with the target website.
In this embodiment, a client sends a target request, that is, an internet access request, to a router, where the target request is used to request data transmission with a target website, for example, when the client needs to play a web video, the client sends a corresponding target request to the router to request data transmission with the video website; when the client needs to run the game, the client sends a corresponding target request to the router so as to request data transmission with the game website; when the client needs to display the webpage, the client sends a corresponding target request to the router so as to request information data transmission between the request and the webpage publishing website; when the client needs to download the file, the client sends a corresponding target request to the router to request data transmission between the client and the file publishing website.
After receiving the target request, the router responds to the target request to obtain information of the target object, where the information of the target object may include identity information of a user using the client, and may also include operation behaviors performed by the target object, such as a play behavior, a file download behavior, and the like, which is not limited herein.
Optionally, the router in this embodiment, in response to the target request, acquires a request source and a requested server address, where the request source may be used to acquire information of the target object, and the server address is an address of a server corresponding to a target website that the client requests to access.
Step S104, a first priority table is obtained based on the information of the target object.
In the technical solution provided by step S104 of the present invention, after the router responds to the target request sent by the client to obtain the information of the target object, if the first priority table exists, the first priority table is obtained based on the information of the target object. The first priority table comprises the priorities of data transmission between the target object using client and at least one website respectively.
In this embodiment, different objects may correspond to different priority tables, and the target object may have a corresponding first priority table, where the first priority table is obtained according to behavior habits of the target object in a surfing process, where the behavior habits reflect preferences of the target object in surfing the internet, and optionally, the priority tables corresponding to different objects may be different because the behavior habits of different objects in surfing the internet are different. The first priority table of this embodiment may also be referred to as an internet priority table, and includes priorities of data transmission between the target object using the client and at least one website, respectively, where the priorities may also be referred to as an acceleration priority level and an internet priority level, and are used to indicate how much resources need to be allocated by the router to meet data transmission requirements between the client and the website, and the priorities may be represented by A, B, C, D, E, F, for example, the target request is a request for requesting data transmission between a video website and may have a highest priority, and the target request is a request for requesting data transmission between a game website and may have a lower priority.
Optionally, in this embodiment, the priority corresponding to the website with fast data transmission and low delay is set to be high, and the priority corresponding to the website with fast data transmission, but the priority corresponding to the website without delay is set to be general, the requirement on the data transmission speed is low, and the priority corresponding to the website without low delay is set to be low.
Step S106, acquiring the target priority for data transmission between the client and the target website in the first priority table.
In the technical solution provided by step S106 of the present invention, after the router acquires the first priority table based on the information of the target object, the target priority for data transmission between the client and the target website is acquired in the first priority table.
In this embodiment, the target request may carry information of the target website, so as to specify the direction in which the target object is to accelerate. The router may obtain information of the target website from the target request, for example, a server address corresponding to the target website, so as to obtain a target priority for data transmission between the client and the target website in the first priority table, that is, the target priority corresponds to the target website, and optionally, different priorities correspond to different websites visited by the client.
And step S108, distributing target resources corresponding to the target priority to the client, wherein the target resources are used for accelerating data transmission between the client and the target website.
In the technical solution provided in step S108 of the present invention, after the target priority for data transmission between the client and the target website is obtained in the first priority table, the router allocates a target resource corresponding to the target priority to the client, where the target resource is used for accelerating data transmission between the client and the target website.
In this embodiment, different resources correspond to different priorities in the first priority table, and different resources may correspond to different acceleration modes. The embodiment can allocate the target resource corresponding to the target priority to the client, the target resource is used for accelerating the data transmission between the client and the target website, and can be used for accelerating the data transmission between the client and the target website, optionally, the used target resource can also ensure the requirement for delay, so that the response speed of the service requested by the client to the target website is increased, and the user experience is further improved.
In the above steps S102 to S108 of the present application, a target request sent by a client is responded, and information of a target object is obtained, where the target request is used for requesting data transmission with a target website; acquiring a first priority table based on the information of the target object, wherein the first priority table comprises the priority of the target object in data transmission with at least one website respectively by using the client; acquiring a target priority for data transmission between a client and a target website in a first priority table; and allocating target resources corresponding to the target priority to the client, wherein the target resources are used for accelerating data transmission between the client and the target website. That is to say, the acceleration priorities corresponding to different objects of this embodiment may be different, the acceleration priorities corresponding to different objects are obtained through information of the objects, and then, resources required for data transmission between the client and the corresponding website are determined based on the acceleration priorities, so as to meet the acceleration requirements, automatic acceleration can be performed when data transmission is performed between the client and the target website, it is avoided that the acceleration priorities are manually fixedly set for a certain scene, and then the technical problem of the limitation of router acceleration due to the fact that the acceleration priorities of the router are fixed is solved, the technical effect of reducing the limitation of router acceleration is achieved, and further, user experience is improved.
The above-described method of this embodiment is further described below.
As an optional implementation manner, the higher the target priority is, the more the target resources are, and the faster the speed of data transmission between the accelerated client and the target website is.
In this embodiment, the higher the target priority for achieving acceleration, the more target resources are required for data transmission between the client and the target website, and the target resources may be idle resources, so that the data transmission between the client and the target website is accelerated by using the target resources, and thus the speed of data transmission between the client and the target website after acceleration is faster.
As an optional implementation manner, step S102, in response to a target request sent by a client, acquiring information of a target object, includes: responding to a target request, and acquiring information of a target object from the target request, wherein the target request also carries a server address corresponding to a target website; acquiring a target priority for data transmission between the client and the target website in the first priority table, wherein step S106 includes: a target priority corresponding to the server address is obtained in a first priority table.
In this embodiment, the target request may include information of the target object, for example, information indicating the user Identity, such as an Identity (Identity, abbreviated as ID) or an account number of the user, is used by the client, so that when the target request is sent to the router, the ID or the account number of the user may be carried by the target request, and thus the router may obtain the ID or the account number of the user from the target request.
In this embodiment, the target request may also carry a server address corresponding to a target website that the client needs to access, for example, the server address is an Internet Protocol (IP) address for interconnection between networks of the server. Optionally, priorities corresponding to different server addresses are recorded in the first priority table, so that a target priority of a server address corresponding to a target website can be obtained in the first priority table. The router of this embodiment may further identify an operation behavior corresponding to the target object based on the target request, for example, identify a play behavior, a browse webpage behavior, a play behavior, a download file behavior, and the like.
For example, user a is prepared to perform a theatrical action, and user b is prepared to perform an action of playing a networked battle game. The client sides used by the users send target requests to the router, the router identifies that the user identity is a after receiving the target requests sent by the client sides used by the users a, the behavior is dramatic behavior, the service IP address 1 requested by the client sides is inquired by the router, the router inquires a priority table corresponding to the users a, the priority of the server IP address 1 is determined to be A in the priority table, and the priority is the highest priority, so that more resources are allocated for accelerating the client sides used by the users a; after the router receives a target request sent by a client used by a user b, the identity of the user is b, the behavior is the behavior of playing a networked battle game, the service IP address 2 requested by the client used by the user b is searched by the router, the priority of the server IP address 2 is determined to be D in the priority table, and if the priority is lower than the priority, less resources are allocated for accelerating the client used by the user b.
As an optional implementation, the method further comprises: and if the server address does not have the corresponding priority, forbidding the target resource from being allocated to the client.
In this embodiment, if the server address corresponding to the target website requested to be accessed by the client does not have a corresponding priority, but the target object has a corresponding first priority table, that is, the priority corresponding to at least one website in the first priority table does not include the priority corresponding to the target website, it may be stated that the target request sent by the target client is a request that is not very common, and the router prohibits allocation of the target resource to the client, that is, does not accelerate data transmission between the client and the target website.
For example, user c is ready to perform a browse web behavior. After receiving the target request sent by the client used by the user c, the router recognizes that the user identity is c, the behavior is a browsing webpage row, but if the priority table corresponding to the user c exists, the router considers that the target request sent by the client used by the user c is an uncommon request, and does not accelerate the client used by the user c.
As an optional implementation manner, before the obtaining the first priority table based on the information of the target object, the method further includes: acquiring first historical access data of a target object accessing at least one website by using a client; a first priority table is generated based on the first historical access data.
In this embodiment, the first priority table may be generated in advance before the first priority table is acquired based on the information of the target object. The embodiment acquires first historical access data of a target object accessing at least one website by using a client, wherein the first historical access data indicates operation behaviors of a user in the past time, can reflect the preference of the target object to surf the internet, and can include the frequency of websites, domain names and IP addresses accessed by the target object, the duration of access, and the flow consumed by the access, which can also be called as user behavior data packets. Optionally, the router of this embodiment has a log function, and can store the log of the user accessing the internet, and can store the frequency of websites, domain names, and IP addresses accessed by the target object, the duration of access, the flow consumed by access, and the like, thereby achieving the purpose of obtaining the behavior habits of the user, and further generating the first priority table based on the first historical access data.
As an alternative embodiment, generating the first priority table based on the first historical access data includes: acquiring an initial value of first historical access data; acquiring the corresponding priority of each website based on the first historical access data and the initial value; a first priority table is generated based on the corresponding priority of each website.
In this embodiment, the router may establish a user behavior habit base, and assign initial values to the frequency of accessing the website, the domain name, and the IP address, the duration of access, and the traffic consumed by the access, for the user, where a higher frequency may obtain a higher score, a longer duration may obtain a higher score, a higher traffic may obtain a higher score, and the priority order of the website is determined by the highest score and the lowest score. The embodiment obtains the priority corresponding to each website based on the first historical access data and the initial value allocated to the first historical access data, and then the first priority table can be formed by the priority corresponding to each website.
As an optional implementation manner, acquiring the priority corresponding to each website based on the first historical access data and the initial value includes: and performing logistic regression processing on the first historical access data and the initial value to obtain the corresponding priority of each website.
In this embodiment, when obtaining the priority corresponding to each website based on the first historical access data and the initial value is implemented, the priority corresponding to each website may be calculated by using a logistic regression algorithm according to the recorded first historical access data and the assigned initial value, and the router stores the data of the calculated priority.
As an optional implementation manner, performing logistic regression processing on the first historical access data and the initial value to obtain a priority corresponding to each website, includes: sending a calculation request to a server, wherein the calculation request is used for requesting to perform logistic regression processing on the first historical access data and the initial value so as to obtain the priority corresponding to each website; and acquiring the corresponding priority of each website returned by the server in response to the calculation request.
In this embodiment, the router may be connected to a server (server). When the first historical access data and the initial value are subjected to logistic regression processing to obtain the priority corresponding to each website, the router may send a calculation request to the server. Optionally, after receiving the calculation request of the router, the server may verify the router, calculate the user behavior habit if the router passes the verification, and complete the user behavior habit score table to indicate the priority of data transmission between the client used by the target object and each website. Optionally, the server uses a logistic regression algorithm to calculate the classification of the priority according to the frequency of the target object accessing the website, the domain name, the IP address, the duration of the access, and the flow consumed by the access.
In this embodiment, the logistic regression algorithm is added with a logistic function based on linear regression to calculate the probability of an event. According to the embodiment, the linear regression equation is obtained according to the frequency of the target object for accessing the website, the domain name and the IP address, the access duration and the priority corresponding to the website at which the three characteristics of the consumed flow are predicted, the prediction model is obtained by using gradient descent, and then the priority corresponding to the website can be obtained according to the three characteristics of the target object for accessing the website, the domain name and the IP address, the access duration and the consumed flow and the prediction model. The server of this embodiment may further perform multiple regression calculations to classify multiple priorities into two categories to achieve multiple levels of priorities. After the calculation is completed, the server side can pack the priorities of the client side and each website for data transmission and return the priorities to the router. The router can save the priority of data transmission between the client used by the target object and each website.
Alternatively, the server of this embodiment may generate the first priority table from the priority corresponding to each website, and then return the first priority table to the router, and the router stores the first priority table.
As an optional implementation manner, after acquiring the information of the target object in step S102, the method further includes: and in the case that the first priority table does not exist, providing a default routing mode for the client, wherein the default routing mode is used for forbidding acceleration when data transmission is carried out between the client and the target website.
In this embodiment, after obtaining the information of the target object, it may be determined whether the router has the first priority table for the target object. If the first priority table does not exist in the router, a default routing mode can be provided to the client, that is, the router provides the client with a routing mode without acceleration, so that acceleration cannot be performed when data transmission is performed between the client and the target website.
As an optional implementation, after providing the default routing mode to the client, the method further includes: acquiring second historical access data of a target object accessing at least one website by using a client in a target time period; a second priority table is generated based on the second historical access data.
In this embodiment, after providing the client with the default routing mode, the target client may still perform data transmission with at least one website within the target time period, so as to generate second historical access data, and may send the second historical access data to the server, so that the server performs a logistic regression process on the second historical access data and the initial value, so as to obtain a priority corresponding to each website. The target time period is a period for generating the priority table through the server, and is also a time period for updating each priority table of the router.
For example, if the priority table corresponding to user a in the router does not exist, the router first uses a default routing mode, that is, a non-accelerated routing mode is provided for the client used by user a, and after one day ends, the data of user a's behavior on one day can be sent to the server in a packet manner in the next morning (provided that the router is set to update the priority table every day, and if the priority table is updated in a week, the data of the week needs to be sent to the server in a packet manner in the morning of the monday). After receiving the behavior data of the user a, the server decompresses the data, calculates the scores of all IP addresses according to the frequency, the access duration and the consumed flow meter of the accessed websites, domain names and IP addresses in the behavior data of the user a by using a logistic regression algorithm, completes the priority table of the user according to the corresponding priorities of the scores, and returns the priority table to the router after the completion, and the router can store the priority table after receiving the priority table.
As an optional implementation, the method further comprises: acquiring third history access data of a target object accessing at least one website by using a client according to a target time period; generating a third priority table based on the third history access data; the first priority table is replaced with a third priority table.
In this embodiment, since the internet surfing preference of the target object may change in different time periods, the priority level corresponding to the target object of this embodiment indicates that the target object is dynamically updated. The third history access data of the target object accessing at least one website by using the client can be acquired according to the target time period, wherein the target time period can be day, week and month, and can be flexibly set according to a specific scene, which is not limited specifically here. In this way, the third history access data can be sent to the server according to the target time period, and the server performs processing by using a logistic regression algorithm, so that a third priority table is generated. In order to save memory and avoid conflict when determining the priority corresponding to the target object, the router acquires the third priority table, and in this embodiment, the first priority table is replaced by the third priority table in the router, that is, a new priority table is saved in the router, and an old priority table is discarded.
For example, the priority of data transmission between the user a and the video website is highest when the user a uses the client, because the user a forgets to eat and the number of times of accessing the video website by using the client is large, the consumed time is long, and the traffic is large. However, after a week, he traced the drama, felt unconscious, and started to access the game site using the client every day. And the priority list corresponding to the user a is changed, wherein the priority of the data transmission between the user a and the game website by using the client is the highest, so that the dynamic change of the priority is realized.
As an alternative implementation, step S104, acquiring a first priority table based on the information of the target object, includes: and acquiring a first priority table from at least one priority table based on the information of the target object, wherein the at least one priority table is in one-to-one correspondence with the at least one object, and each priority table comprises the priority of the corresponding object for data transmission between the corresponding client and at least one website respectively.
In this embodiment, for any object, the priority table corresponding to the generator for generating the first priority table corresponding to the target object may be adopted, and stored in the router, where each object has a priority table for drinking in the router, and each priority table may include a priority for data transmission between the corresponding object and at least one website using the corresponding client, respectively. Therefore, after the router acquires a target request sent by a client used by the target object, the router responds to the target request to acquire information of the target object, then acquires the first priority table from at least one priority table based on the information of the target object, further acquires the target priority for data transmission between the client and the target website in the first priority table, and allocates target resources corresponding to the target priority to the client, so that the acceleration of data transmission between the client and the target website is realized.
The method of the embodiment is an intelligent router acceleration method, and can record data of behavior habits of users on surfing the internet, analyze user preferences and generate corresponding priority tables for one or more users; this embodiment can be regularly (every day, weekly) carry out data statistics to one or more user, with update priority table, thereby the dynamic change of priority has been realized, with satisfy the demand of accelerating, it is by the artificial fixed setting to certain scene to have avoided accelerating the priority, thereby solved because the accelerating priority of router is fixed, and lead to the technical problem of router acceleration's limitation, reached the technological effect that reduces router acceleration's limitation, and then promoted user experience.
Example 2
The above-described method of embodiments of the present invention is described below by way of example with reference to the preferred embodiments.
With the development of the internet, the content loaded by each application and website is more and more, the requirement on the network speed is higher and higher, and along with the requirement on the service response speed of the user is higher and higher, and the faster the response is, the better the user experience is. A great number of accelerators and acceleration modes are available, wherein the accelerators are provided with software and hardware, and the acceleration mode can be a game mode, a video watching mode and the like. Therefore, the key router for surfing the internet also has an acceleration mode and a method, for example, in a game mode, the data transmission is required to be fast, the delay is low, the user experience can be ensured, and the priority is high; for another example, downloading a file requires data transmission speed but does not require delay, so the priority is general; for another example, browsing a web page, the data transmission speed requirement is not so high, and low delay is not needed, so the priority is low.
However, the priority of the conventional acceleration mode is set manually, and the specific scene requirement determines the priority of acceleration. Therefore, the acceleration priority of the router in the related art is fixed, and has a certain limitation, and the acceleration priority cannot be updated in real time according to the preference habit of the user, so that the intelligent acceleration of the router cannot be realized.
The embodiment provides a method for automatically identifying and accelerating the habits of the router, which can identify and accelerate the internet surfing habits of the user, record the behavior habits of the user and judge the direction in which the user wants to accelerate, and can automatically accelerate to improve the user experience. The method of this embodiment is further described below.
Fig. 2 is an interaction flow diagram of router automatic habit recognition and acceleration according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
step S201, the router sends a user behavior data packet to the server at regular time.
Step S202, the server calculates the corresponding priority of the client for accessing each website based on the user behavior data packet, and returns the priority to the router.
Step S203, the client sends a request for surfing the internet to the router.
Step S204, the router responds to the Internet access request, judges the priority corresponding to the website requested to be accessed by the Internet access request, and configures an acceleration mode for the client to access the website based on the priority.
Fig. 3 is a schematic diagram of a router automatic habit recognition and acceleration system according to an embodiment of the present invention. As shown in fig. 3, the system may include: client 31, router 32, and server 33.
In this embodiment, when the client 31 sends a request for surfing the internet to the router 32, the router 32 may receive a request source and a server address requesting access. The router 32 may obtain the user information according to the request source, and then obtain the priority according to the user information, according to which the client 31 is allocated to access the resource of the website corresponding to the server address. The server 33 may calculate, based on the user behavior data packet sent by the router 32, a priority corresponding to the client 31 accessing the website, and return the priority to the router 32.
Fig. 4 is a schematic diagram of another router automatic habit recognition and acceleration system according to an embodiment of the present invention. As shown in fig. 4, the system may include: client 41, client 42, client 43, router 44, router 45, and server 46.
In this embodiment, the client 41 may send an internet request to the router 44, the client 42 may send an internet request to the router 44, or may send an internet request to the router 45, and the client 43 may send an internet request to the router 45.
When client 41 sends a request for surfing the internet to router 44, router 44 may receive the source of the request and the address of the server that client 41 requests access to. The router 44 may obtain the user information according to the request source, and then obtain the priority according to the user information, according to which the client 41 is allocated to access the resource of the website corresponding to the server address.
When client 42 sends a request to router 44 for surfing the internet, router 44 may receive the source of the request and the address of the server that client 42 requests access to. Router 44 may obtain the user information according to the source of the request and then obtain the priority according to the user information, according to which resources for accessing the website corresponding to the server address are allocated to client 42.
When client 42 sends a request to router 45 for surfing the internet, router 45 may receive the source of the request and the address of the server that client 42 requests access to. The router 45 may obtain the user information according to the request source, and then obtain the priority according to the user information, according to which the client 42 is allocated to access the resources of the website corresponding to the server address.
When client 43 sends a request to router 45 for surfing the internet, router 45 may receive the source of the request and the address of the server that client 43 requests access to. The router 45 may obtain the user information according to the request source, and then obtain the priority according to the user information, according to which the client 43 is allocated to access the resource of the website corresponding to the server address.
The server 46 may calculate priorities corresponding to the client 41, the client 42, and the client 43 accessing different websites based on the user behavior data packets sent by the router 44 and the router 45, and return the priorities to the router 44 or the router 45.
Fig. 5 is an interaction flow diagram of another method for automatic habit recognition and acceleration by a router, according to an embodiment of the invention. As shown in fig. 5, the method may include the steps of:
step S501, the client initiates a request for surfing the Internet to the router.
Step S502, the router responds to the Internet access request, identifies the user information and inquires the corresponding priority table.
In step S503, the router determines whether a priority table exists.
If the router determines that the priority table exists, executing step S504; if the router determines that the priority table does not exist, step S505 is performed.
Step S504, the priority of the client for accessing the corresponding website is obtained in the priority table, and acceleration judgment and acceleration mode setting are carried out.
The embodiment can judge whether the client needs to be accelerated or not according to the priority, the accelerated resource distribution ratio and the like. The router performs acceleration determination according to the priority, for example, there are A, B, C, D, E total acceleration priority levels, and the higher the acceleration priority level is, the more idle resources are allocated.
In step S505, the acceleration mode is returned to the default acceleration mode.
Fig. 6 is a flowchart of a method for a server to generate a priority table according to an embodiment of the present invention. As shown in fig. 6, the method may include the steps of:
step S601, the router sends the behavior data packet of the target object sent by the client in the target time period to the server.
In the embodiment, the router establishes the user behavior habit base, and initial value distribution can be performed on the flow consumed by access according to the access frequency, the access duration and the access duration of the website, the domain name and the IP address, wherein the higher the frequency is, the higher the score can be obtained, the longer the duration is, the higher the score can be obtained, and the more the flow consumption is, the higher the score can be obtained; the router has a log function and can store the internet access records of the users. Optionally, the router acquires behavior habits of one or more users in a target time period, and the router is required to record information of the user initiating access, record the frequency of the user accessing a website, a domain name and an IP address, record the duration of access, and record the flow consumed by access, so as to achieve the purpose of acquiring the behavior habits of the user, and further send a behavior data packet of a target object sent by the client in the target time period to the server.
Step S602, the server authenticates the router and receives the behavior packet.
Step S603, the server decompresses the data packet and calculates the priority corresponding to the client accessing each website by using a logistic regression algorithm.
In this embodiment, the server may calculate the user behavior habits, and complete the user behavior habit score table. Alternatively, the server may calculate, by using a logistic regression algorithm, priorities corresponding to the clients accessing the respective websites according to the data recorded by the user and the assigned initial values.
Optionally, after receiving the calculation request from the router, the server in this embodiment may use a logistic regression algorithm to calculate the classification of the priority according to the frequency, the duration of the access, and the traffic consumed by the access. The logistic regression algorithm is based on linear regression and adds a logistic function to calculate the probability of an event. Optionally, the server predicts the priority according to the three features of the frequency, the duration of access, and the consumed traffic to obtain a linear regression equation, and then finds the prediction model by using gradient descent. The three features consumed by the visit and the predictive model can then be prioritized based on frequency, duration of the visit, and so on. And performing multiple regression calculation, and performing two classifications of multiple priorities to achieve multiple levels of priorities.
Step S604, the server packs the data of the priority corresponding to the client accessing each website and returns the data to the router.
After the server calculates the priority corresponding to the client accessing each website, the server packs and returns the data of the priority corresponding to the client accessing each website to the router.
Step S605, the router verifies the server information and decompresses the data packet to obtain the priority corresponding to the client accessing each website.
The router of this embodiment may store a priority table including priorities corresponding to client accesses to respective websites, or update a corresponding existing priority table.
The following illustrates a scheme of an embodiment of the present invention with reference to a specific scenario.
When a user browses a webpage or watches a play or downloads a file on the internet, a client used by the user sends an internet request to the router, wherein the internet request contains identity information of the user and internet operations performed by the user, such as browsing the webpage, watching the play, playing a game, downloading the file and the like.
For example, user a is ready to watch a drama, user b is ready to play a networked battle game, and user c is ready to browse a web page, and the clients they use all make internet requests to the router. After receiving the internet access request, the router identifies that the user identity is a, the action is watching a drama, the server IP address requested by the client is searched for the priority table corresponding to the user a, and if the priority of the IP address corresponding to the user a is A and is the highest priority, more resources can be allocated for accelerating the client used by the user a; the priority of the IP address requested by the user b is D, and if the priority is lower, less resources are allocated for accelerating the client used by the user b; if the IP address requested by the user c has no priority but a priority table corresponding to the user c exists, the internet access request is regarded as an unusual request, and the client used by the user c is not accelerated.
The above is that in the case that the priority table exists, if the priority table does not exist, the router uses the default routing mode first, that is, provides the client with the routing mode without acceleration, and after one day ends, the next morning, the user behavior data of one day is packaged into the behavior data packet and sent to the server (provided that the router is set to update the priority table every day, and if the priority table is updated in one week, the behavior data packet of one week is sent to the server in the morning of the monday). After receiving the behavior data packet, the server decompresses the behavior data packet, calculates the score of each IP address according to the frequency and time of the IP address accessed by a specific user or a plurality of users and the consumed flow by using a logistic regression algorithm, completes the priority table of the user according to the corresponding priority of the score, and returns the priority table to the router after completion, and the router receives and stores a new priority table and discards an outdated priority table.
Thus, the priority table of this embodiment is dynamic, updated on a regular basis. For example, the current highest priority of the user a is watching behavior, the user a forgets to eat and go to bed in the week, the number of times of accessing a certain video website by using the client is large, the consumed time is long, and the traffic is large. But after a week, he traced the drama, felt unconscious, and started playing the game with the client every day. Therefore, the priority table corresponding to the user a is changed, the priority corresponding to the play action is no longer the highest, and the priority position corresponding to the game action replaces the play action, thereby realizing the dynamic change of the priority.
The method of the embodiment is an intelligent router acceleration method, and can record data of behavior habits of users on surfing the internet, analyze user preferences and generate corresponding priority tables for one or more users; this embodiment can be regularly (every day, weekly) carry out data statistics to one or more user, with update priority table, thereby the dynamic change of priority has been realized, with satisfy the demand of accelerating, it is by the artificial fixed setting to certain scene to have avoided accelerating the priority, thereby solved because the accelerating priority of router is fixed, and lead to the technical problem of router acceleration's limitation, reached the technological effect that reduces router acceleration's limitation, and then promoted user experience.
Example 3
The embodiment of the invention also provides an accelerating device of the router. It should be noted that the acceleration apparatus of the router of this embodiment may be used to execute the acceleration method of the router of this embodiment of the present invention.
Fig. 7 is a schematic diagram of an acceleration apparatus of a router according to an embodiment of the present invention. As shown in fig. 7, the acceleration device 70 of the router may include: a first acquisition unit 71, a second acquisition unit 72, a third acquisition unit 73, and an allocation unit 74.
The first obtaining unit 71 is configured to obtain information of a target object in response to a target request sent by a client, where the target request is used to request data transmission with a target website.
The second obtaining unit 72 is configured to obtain a first priority table based on the information of the target object, where the first priority table includes priorities of data transmission between the target object and the at least one website respectively using the client.
A third obtaining unit 73, configured to obtain, in the first priority table, a target priority for data transmission between the client and the target website.
And an allocating unit 74, configured to allocate a target resource corresponding to the target priority to the client, where the target resource is used to accelerate data transmission between the client and the target website.
In the accelerating device of the router of the embodiment, the accelerating priorities corresponding to different objects can be different, the accelerating priorities corresponding to different objects are obtained through information of the objects, and then resources required for data transmission between the client and the corresponding website are determined based on the accelerating priorities, so as to meet the accelerating requirements, automatic acceleration can be performed when data transmission is performed between the client and the target website, the situation that the accelerating priorities are fixedly set for a certain scene manually is avoided, and the technical problem that the router is limited due to the fact that the accelerating priorities of the router are fixed and the router is limited due to the fact that the accelerating priorities of the router are fixed is solved, the technical effect of reducing the limitation of the router in acceleration is achieved, and user experience is improved.
Example 4
According to the embodiment of the invention, a storage medium is further provided, and the storage medium comprises a stored program, wherein when the program is executed by a processor, the apparatus where the storage medium is located is controlled to execute the router acceleration method of the embodiment of the invention.
Example 5
According to an embodiment of the present invention, there is also provided a processor, configured to execute a program, where the program executes the acceleration method of the router described in embodiment 1.
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 above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.